Skip to content

The only tool you need to know what is happening and how to fix it.

feat: added testing app for demos (#229)

narrow-adventuree330486c15f3
diff --git a/testing/shop/BUGS.md b/testing/shop/BUGS.md
new file mode 100644
index 00000000..33131389
--- /dev/null
+++ b/testing/shop/BUGS.md
@@ -0,0 +1,61 @@
+# Demo Shop — Intentional Bug Catalog
+
+This app is a deliberately buggy + slow shop, built to make Traceway telemetry look
+interesting. It is meant to **appear to work** while being mostly **slow**, with a few
+actions that throw exceptions. Nothing here is a real bug to "fix" — it is the demo script.
+
+## Headline mechanic
+
+Most endpoints branch on a single helper:
+
+```go
+// backend/slow.go
+func fastPath() bool { return rand.IntN(4) == 0 }
+```
+
+So **~1 in 4 requests takes the fast, efficient path; the other ~3 in 4 take a slow path**
+(an N+1 query loop, a `time.Sleep` jitter span, or a panic). The ratio is **per-endpoint**,
+so a single page load that hits several endpoints is almost always slow overall — that is
+the intended "the whole shop just feels sluggish" effect.
+
+The backend reports as server **`shop-demo`**, version **`0.1.0`** (set in `backend/main.go`).
+The React frontend reports through `@tracewayapp/react` (`frontend/src/main.jsx`). Point both at
+the same project token so backend traces and frontend errors group together.
+
+## Backend bugs (Go / Gin / SQLite)
+
+| # | Name | Location | Trigger | App symptom | What shows up in Traceway |
+|---|------|----------|---------|-------------|---------------------------|
+| 1 | Products N+1 | `backend/products.go` → `listProducts` (slow branch) | ~75% of product-list loads | List loads, but slowly | Slow `GET /api/products` transaction with `1 + 2N` DB spans — one `SELECT name FROM categories WHERE id = ?` and one `SELECT COUNT(*) FROM reviews WHERE product_id = ?` per product |
+| 2 | Product-detail N+1 + slow recommendations | `backend/products.go` → `getProduct` (slow branch) | ~75% of detail loads | Detail page sluggish | Named span `load_reviews` wrapping N per-review `SELECT ... WHERE id = ?` spans, plus a `recommendations.fetch` span that just sleeps 80–200ms |
+| 3 | Cart N+1 | `backend/cart.go` → `getCart` (slow branch) | ~75% of cart views | Cart slow to render | Per-line `SELECT name, price_cents, image_url FROM products WHERE id = ?` spans |
+| 4 | Slow inventory check | `backend/cart.go` → `addToCart` (slow branch) | ~75% of add-to-cart calls | "Add to cart" lags 150–500ms | `inventory.check` span that only sleeps |
+| 5 | Coupon nil-map panic | `backend/coupon.go` → `applyCoupon` + package var `couponHits` | ~75% of coupon applies (valid codes) | Apply-coupon fails with a 500 | Exception **`assignment to entry in nil map`** (the package-level `couponHits` map is never initialized; only the fast path guards it). Returns 500, auto-captured by the gin middleware |
+| 5b | Unknown-coupon captured error | `backend/coupon.go` → `applyCoupon` (no-rows branch) | Applying a code that isn't seeded | "Invalid coupon code" (400) | Non-panic captured error `unknown coupon code: <code>` via `c.Error(...)` |
+| 6 | Checkout index-out-of-range | `backend/checkout.go` → `checkout` (`lines[0]`) | Checking out with an **empty cart** | Checkout 500s | Exception **`index out of range [0] with length 0`** with a Go stack trace |
+| 7 | Slow payment gateway | `backend/checkout.go` → `checkout` (`payment.charge`) | Every slow-path checkout | Checkout takes 0.3–1.2s | `payment.charge` span (sleeps 300–1200ms) + `order.persist` span; slow transaction |
+| 8 | Payment declined (manual capture) | `backend/checkout.go` → `checkout` (`rand.IntN(6)==0`) | ~1 in 6 checkouts with items | "Payment declined, try another card" (402) | Exception **`payment declined for card ****NNNN`** reported via `traceway.CaptureExceptionWithContext` — captured without a 500, demonstrating manual capture |
+
+Notes:
+- Seeded coupons: `SAVE10` (10%), `HALF50` (50%), `EXPIRED` (inactive → 400 "expired", not an exception).
+- A valid coupon therefore "works about 1 in 4 tries"; the rest panic (#5). That is the literal
+ reading of "works 1/4 of the time, slow/broken the rest."
+- Panics are recovered (the server never dies) and return 500. The exception is captured **before**
+ the response is finalized, so it still reaches Traceway.
+
+## Frontend bugs (React / Vite)
+
+| # | Name | Location | Trigger | App symptom | What shows up in Traceway |
+|---|------|----------|---------|-------------|---------------------------|
+| 9 | Uncaught async add-to-cart | `frontend/src/ProductsPage.jsx` → `handleAdd` | Backend 500s on the add-to-cart slow path | Button silently fails to add | Unhandled promise rejection auto-captured by the SDK (the handler has no try/catch on purpose) |
+| 10 | Render-time null deref | `frontend/src/CheckoutPage.jsx` → `CouponBadge` | A failed coupon apply sets `discount = null`, then the badge renders | Coupon area shows "Could not display coupon." | Frontend render exception `Cannot read properties of null (reading 'percent')`, caught by `TracewayErrorBoundary` (reported, with a fallback so the page stays usable) |
+| 11 | Undefined deref in handler | `frontend/src/ProductsPage.jsx` → `handleQuickView` | Clicking "Quick view" (products have no `variants` field) | Quick view shows "No variants available" | Frontend exception `Cannot read properties of undefined (reading 'find')`, manually reported via `useTraceway().captureException` |
+
+## Coverage
+
+- **Slowness**: #1, #2, #3, #4, #7 (N+1 fan-outs + named sleep spans → slow transactions).
+- **Exceptions**: #5, #6, #8 (backend) and #9, #10, #11 (frontend).
+- **Capture styles**: auto panic capture (#5, #6), gin `c.Error` (#5b), manual backend capture (#8),
+ SDK global unhandled-rejection (#9), React error boundary (#10), manual frontend capture (#11).
+
+See `README.md` for how to run everything and reproduce each item.
diff --git a/testing/shop/README.md b/testing/shop/README.md
new file mode 100644
index 00000000..f44ed3e8
--- /dev/null
+++ b/testing/shop/README.md
@@ -0,0 +1,95 @@
+# Demo Shop
+
+A tiny, intentionally-buggy shop app for demoing Traceway. React (Vite) frontend + Go/Gin
+backend with in-memory SQLite. No auth, single shared cart. Three pages: products, cart, checkout.
+
+The app is built to **look like it works** but be mostly **slow**, with a few actions that throw
+exceptions. Every intentional bug is cataloged in [`BUGS.md`](./BUGS.md).
+
+```
+shop/
+├── BUGS.md the demo script (what's wrong and where)
+├── backend/ Go / Gin / SQLite, serves :8090, reports as "shop-demo"
+└── frontend/ React + Vite, serves :5175, proxies /api -> :8090
+```
+
+## Prerequisites
+
+- A Traceway backend running locally on **:8082** (the `/api/report` ingestion endpoint).
+- A Traceway **project token** — create a project in the dashboard and copy its token.
+- Go 1.25+ with **CGO enabled** (`mattn/go-sqlite3` needs a C compiler; clang ships with macOS).
+- Node 18+ and npm.
+
+The backend and frontend share one connection string: `<token>@http://localhost:8082/api/report`.
+Use the **same token** on both so backend traces and frontend errors land in the same project.
+
+## Run the backend
+
+```bash
+cd backend
+go mod tidy # first time only
+TRACEWAY_ENDPOINT="<token>@http://localhost:8082/api/report" CGO_ENABLED=1 go run .
+```
+
+Serves on **http://localhost:8090**. Without `TRACEWAY_ENDPOINT` it falls back to a
+`default_token_change_me@...` placeholder and telemetry won't be accepted.
+
+## Run the frontend
+
+```bash
+cd frontend
+npm install # first time only
+cp .env.example .env # then set VITE_TW_CONNECTION to your token
+npm run dev
+```
+
+Serves on **http://localhost:5175**. The dev server proxies `/api/*` to the backend on `:8090`,
+so there is no CORS to configure. Open the URL and click around.
+
+`.env`:
+
+```
+VITE_TW_CONNECTION=<token>@http://localhost:8082/api/report
+VITE_API_BASE=/api
+```
+
+## Reproduce the telemetry
+
+With both halves running and Traceway up on :8082:
+
+```bash
+# 1. Health
+curl localhost:8090/api/health # {"status":"ok"}
+
+# 2. Slow + N+1 product list (most calls hit the slow path)
+for i in $(seq 1 12); do curl -s -o /dev/null localhost:8090/api/products; done
+
+# 3. Coupon nil-map panic (~75% return 500)
+for i in $(seq 1 8); do
+ curl -s -o /dev/null -w "%{http_code} " -X POST localhost:8090/api/coupon \
+ -H 'Content-Type: application/json' -d '{"code":"SAVE10"}'
+done; echo
+
+# 4. Empty-cart checkout panic (500: index out of range)
+curl -s -o /dev/null -w "%{http_code}\n" -X POST localhost:8090/api/checkout \
+ -H 'Content-Type: application/json' -d '{"name":"A","email":"[email protected]","card_last4":"4242"}'
+```
+
+In the browser at http://localhost:5175:
+
+- **Products** load slowly (N+1). "Quick view" throws a frontend exception (#11). "Add to cart"
+ can fail silently when the backend slow path 500s (#9).
+- **Checkout** → "Apply" a coupon: usually 500s on the backend (#5) and the badge render is caught
+ by the error boundary (#10). "Place order" with an empty cart 500s (#6); with items it is slow
+ (#7) and occasionally declined (#8, a 402).
+
+Then in the Traceway dashboard (:8082): find server **`shop-demo`** / version **`0.1.0`**.
+Transactions show slow `GET /api/products` with the N+1 DB-span fan-out; Exceptions show the
+nil-map panic, the index-out-of-range panic, the declined-card capture, and the three frontend
+errors. Cross-reference each against [`BUGS.md`](./BUGS.md).
+
+## Notes
+
+- The in-memory SQLite DB is reseeded on every backend start, so the cart and orders reset on restart.
+- The slow/fast split is `rand.IntN(4) == 0` per request (see `backend/slow.go`) — about 1 in 4 fast.
+- Panics are recovered; the server stays up and returns 500 while still capturing the exception.
diff --git a/testing/shop/backend/.gitignore b/testing/shop/backend/.gitignore
new file mode 100644
index 00000000..8d55cbd7
--- /dev/null
+++ b/testing/shop/backend/.gitignore
@@ -0,0 +1,2 @@
+/shop
+/shop-backend
diff --git a/testing/shop/backend/cart.go b/testing/shop/backend/cart.go
new file mode 100644
index 00000000..806a596d
--- /dev/null
+++ b/testing/shop/backend/cart.go
@@ -0,0 +1,129 @@
+package main
+
+import (
+ "database/sql"
+ "errors"
+ "net/http"
+
+ traceway "go.tracewayapp.com"
+ tracewaydb "go.tracewayapp.com/tracewaydb"
+
+ "github.com/gin-gonic/gin"
+)
+
+func getCart(c *gin.Context) {
+ ctx := c.Request.Context()
+ twdb := tracewaydb.NewTwDB(ctx, db)
+ lines := []CartLine{}
+
+ if fastPath() {
+ rows, err := twdb.QueryContext(ctx, `
+ SELECT ci.id, ci.product_id, p.name, p.price_cents, p.image_url, ci.qty
+ FROM cart_items ci
+ JOIN products p ON p.id = ci.product_id
+ ORDER BY ci.id`)
+ if err != nil {
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("load cart (fast): %w", err))
+ return
+ }
+ for rows.Next() {
+ var l CartLine
+ if err := rows.Scan(&l.Id, &l.ProductId, &l.Name, &l.PriceCents, &l.ImageUrl, &l.Qty); err != nil {
+ rows.Close()
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("scan cart line (fast): %w", err))
+ return
+ }
+ l.LineTotal = l.PriceCents * l.Qty
+ lines = append(lines, l)
+ }
+ rows.Close()
+ } else {
+ rows, err := twdb.QueryContext(ctx, `SELECT id, product_id, qty FROM cart_items ORDER BY id`)
+ if err != nil {
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("load cart: %w", err))
+ return
+ }
+ for rows.Next() {
+ var l CartLine
+ if err := rows.Scan(&l.Id, &l.ProductId, &l.Qty); err != nil {
+ rows.Close()
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("scan cart line: %w", err))
+ return
+ }
+ lines = append(lines, l)
+ }
+ rows.Close()
+
+ for i := range lines {
+ slowJitter(10, 40)
+ prow := twdb.QueryRowContext(ctx, `SELECT name, price_cents, image_url FROM products WHERE id = ?`, lines[i].ProductId)
+ _ = prow.Scan(&lines[i].Name, &lines[i].PriceCents, &lines[i].ImageUrl)
+ lines[i].LineTotal = lines[i].PriceCents * lines[i].Qty
+ }
+ }
+
+ total := 0
+ for _, l := range lines {
+ total += l.LineTotal
+ }
+ c.JSON(http.StatusOK, gin.H{"items": lines, "total_cents": total})
+}
+
+func addToCart(c *gin.Context) {
+ ctx := c.Request.Context()
+ var req AddToCartRequest
+ if err := c.ShouldBindJSON(&req); err != nil {
+ c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
+ return
+ }
+ if req.Qty <= 0 {
+ req.Qty = 1
+ }
+
+ twdb := tracewaydb.NewTwDB(ctx, db)
+
+ var existing int
+ prow := twdb.QueryRowContext(ctx, `SELECT id FROM products WHERE id = ?`, req.ProductId)
+ if err := prow.Scan(&existing); err != nil {
+ if errors.Is(err, sql.ErrNoRows) {
+ c.JSON(http.StatusNotFound, gin.H{"error": "product not found"})
+ return
+ }
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("lookup product: %w", err))
+ return
+ }
+
+ if !fastPath() {
+ span := traceway.StartSpan(ctx, "inventory.check")
+ slowJitter(150, 500)
+ span.End()
+ }
+
+ if _, err := twdb.ExecContext(ctx, `INSERT INTO cart_items (product_id, qty) VALUES (?, ?)`, req.ProductId, req.Qty); err != nil {
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("add to cart: %w", err))
+ return
+ }
+ c.JSON(http.StatusCreated, gin.H{"status": "added"})
+}
+
+func removeFromCart(c *gin.Context) {
+ ctx := c.Request.Context()
+ id := c.Param("id")
+ twdb := tracewaydb.NewTwDB(ctx, db)
+
+ if !fastPath() {
+ slowJitter(50, 150)
+ }
+
+ res, err := twdb.ExecContext(ctx, `DELETE FROM cart_items WHERE id = ?`, id)
+ if err != nil {
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("remove from cart: %w", err))
+ return
+ }
+ affected, _ := res.RowsAffected()
+ if affected == 0 {
+ c.JSON(http.StatusNotFound, gin.H{"error": "cart item not found"})
+ return
+ }
+ c.JSON(http.StatusOK, gin.H{"status": "removed"})
+}
diff --git a/testing/shop/backend/checkout.go b/testing/shop/backend/checkout.go
new file mode 100644
index 00000000..402d2a86
--- /dev/null
+++ b/testing/shop/backend/checkout.go
@@ -0,0 +1,79 @@
+package main
+
+import (
+ "fmt"
+ "math/rand/v2"
+ "net/http"
+
+ traceway "go.tracewayapp.com"
+ tracewaydb "go.tracewayapp.com/tracewaydb"
+
+ "github.com/gin-gonic/gin"
+)
+
+func checkout(c *gin.Context) {
+ ctx := c.Request.Context()
+ var req CheckoutRequest
+ if err := c.ShouldBindJSON(&req); err != nil {
+ c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
+ return
+ }
+
+ twdb := tracewaydb.NewTwDB(ctx, db)
+
+ rows, err := twdb.QueryContext(ctx, `
+ SELECT ci.id, ci.product_id, p.name, p.price_cents, p.image_url, ci.qty
+ FROM cart_items ci
+ JOIN products p ON p.id = ci.product_id
+ ORDER BY ci.id`)
+ if err != nil {
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("load cart for checkout: %w", err))
+ return
+ }
+ lines := []CartLine{}
+ for rows.Next() {
+ var l CartLine
+ if err := rows.Scan(&l.Id, &l.ProductId, &l.Name, &l.PriceCents, &l.ImageUrl, &l.Qty); err != nil {
+ rows.Close()
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("scan checkout line: %w", err))
+ return
+ }
+ l.LineTotal = l.PriceCents * l.Qty
+ lines = append(lines, l)
+ }
+ rows.Close()
+
+ pay := traceway.StartSpan(ctx, "payment.charge")
+ if !fastPath() {
+ slowJitter(300, 1200)
+ }
+ pay.End()
+
+ if rand.IntN(6) == 0 {
+ traceway.CaptureExceptionWithContext(ctx, traceway.NewStackTraceErrorf("payment declined for card ****%s", req.CardLast4))
+ c.JSON(http.StatusPaymentRequired, gin.H{"error": "payment declined, please try another card"})
+ return
+ }
+
+ total := 0
+ for _, l := range lines {
+ total += l.LineTotal
+ }
+
+ firstItem := lines[0]
+
+ persist := traceway.StartSpan(ctx, "order.persist")
+ orderId := fmt.Sprintf("ORD-%d", rand.IntN(900000)+100000)
+ _, err = twdb.ExecContext(ctx, `DELETE FROM cart_items`)
+ persist.End()
+ if err != nil {
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("clear cart: %w", err))
+ return
+ }
+
+ c.JSON(http.StatusOK, gin.H{
+ "order_id": orderId,
+ "total_cents": total,
+ "first_item": firstItem.Name,
+ })
+}
diff --git a/testing/shop/backend/coupon.go b/testing/shop/backend/coupon.go
new file mode 100644
index 00000000..35a724c3
--- /dev/null
+++ b/testing/shop/backend/coupon.go
@@ -0,0 +1,69 @@
+package main
+
+import (
+ "context"
+ "database/sql"
+ "errors"
+ "net/http"
+
+ traceway "go.tracewayapp.com"
+ tracewaydb "go.tracewayapp.com/tracewaydb"
+
+ "github.com/gin-gonic/gin"
+)
+
+var couponHits map[string]int
+
+func applyCoupon(c *gin.Context) {
+ ctx := c.Request.Context()
+ var req CouponRequest
+ if err := c.ShouldBindJSON(&req); err != nil {
+ c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
+ return
+ }
+
+ twdb := tracewaydb.NewTwDB(ctx, db)
+
+ var percentOff, active int
+ row := twdb.QueryRowContext(ctx, `SELECT percent_off, active FROM coupons WHERE code = ?`, req.Code)
+ if err := row.Scan(&percentOff, &active); err != nil {
+ if errors.Is(err, sql.ErrNoRows) {
+ c.Error(traceway.NewStackTraceErrorf("unknown coupon code: %s", req.Code))
+ c.JSON(http.StatusBadRequest, gin.H{"error": "invalid coupon code"})
+ return
+ }
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("lookup coupon: %w", err))
+ return
+ }
+ if active == 0 {
+ c.JSON(http.StatusBadRequest, gin.H{"error": "this coupon has expired"})
+ return
+ }
+
+ if fastPath() {
+ if couponHits != nil {
+ couponHits[req.Code]++
+ }
+ } else {
+ couponHits[req.Code]++
+ }
+
+ total := cartTotal(ctx, twdb)
+ discount := total * percentOff / 100
+ c.JSON(http.StatusOK, gin.H{
+ "code": req.Code,
+ "percent_off": percentOff,
+ "discount_cents": discount,
+ "new_total_cents": total - discount,
+ })
+}
+
+func cartTotal(ctx context.Context, twdb *tracewaydb.TwDB) int {
+ row := twdb.QueryRowContext(ctx, `
+ SELECT COALESCE(SUM(p.price_cents * ci.qty), 0)
+ FROM cart_items ci
+ JOIN products p ON p.id = ci.product_id`)
+ var total int
+ _ = row.Scan(&total)
+ return total
+}
diff --git a/testing/shop/backend/db.go b/testing/shop/backend/db.go
new file mode 100644
index 00000000..780d31bd
--- /dev/null
+++ b/testing/shop/backend/db.go
@@ -0,0 +1,128 @@
+package main
+
+import "database/sql"
+
+func initDB() {
+ var err error
+ db, err = sql.Open("sqlite3", ":memory:")
+ if err != nil {
+ panic(err)
+ }
+ db.SetMaxOpenConns(1)
+
+ schema := []string{
+ `CREATE TABLE categories (
+ id INTEGER PRIMARY KEY,
+ name TEXT NOT NULL
+ )`,
+ `CREATE TABLE products (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ name TEXT NOT NULL,
+ description TEXT NOT NULL,
+ price_cents INTEGER NOT NULL,
+ image_url TEXT NOT NULL,
+ stock INTEGER NOT NULL,
+ category_id INTEGER NOT NULL
+ )`,
+ `CREATE TABLE reviews (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ product_id INTEGER NOT NULL,
+ rating INTEGER NOT NULL,
+ body TEXT NOT NULL
+ )`,
+ `CREATE TABLE coupons (
+ code TEXT PRIMARY KEY,
+ percent_off INTEGER NOT NULL,
+ active INTEGER NOT NULL
+ )`,
+ `CREATE TABLE cart_items (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ product_id INTEGER NOT NULL,
+ qty INTEGER NOT NULL
+ )`,
+ }
+ for _, stmt := range schema {
+ if _, err := db.Exec(stmt); err != nil {
+ panic(err)
+ }
+ }
+
+ seed()
+}
+
+func mustExec(query string, args ...any) {
+ if _, err := db.Exec(query, args...); err != nil {
+ panic(err)
+ }
+}
+
+func seed() {
+ categories := []struct {
+ id int
+ name string
+ }{
+ {1, "Apparel"},
+ {2, "Electronics"},
+ {3, "Home"},
+ {4, "Books"},
+ }
+ for _, c := range categories {
+ mustExec(`INSERT INTO categories (id, name) VALUES (?, ?)`, c.id, c.name)
+ }
+
+ products := []struct {
+ name string
+ desc string
+ priceCents int
+ stock int
+ categoryId int
+ }{
+ {"Classic Tee", "Soft combed-cotton t-shirt", 1999, 120, 1},
+ {"Denim Jacket", "Vintage wash denim jacket", 8999, 30, 1},
+ {"Running Sneakers", "Lightweight everyday runners", 6499, 45, 1},
+ {"Wireless Earbuds", "Noise-cancelling earbuds", 12999, 60, 2},
+ {"Mechanical Keyboard", "Hot-swappable RGB keyboard", 10999, 25, 2},
+ {"4K Monitor", "27-inch UHD display", 29999, 15, 2},
+ {"USB-C Hub", "7-in-1 aluminium hub", 3999, 80, 2},
+ {"Scented Candle", "Cedar and sage soy candle", 1499, 200, 3},
+ {"Ceramic Mug", "Hand-glazed 12oz mug", 1299, 150, 3},
+ {"Throw Blanket", "Chunky knit wool blend", 4999, 40, 3},
+ {"Go in Practice", "Pragmatic patterns for Go services", 3499, 70, 4},
+ {"The Pragmatic Programmer", "A classic on software craft", 3999, 55, 4},
+ }
+ for _, p := range products {
+ mustExec(`INSERT INTO products (name, description, price_cents, image_url, stock, category_id) VALUES (?, ?, ?, ?, ?, ?)`,
+ p.name, p.desc, p.priceCents, "", p.stock, p.categoryId)
+ }
+ mustExec(`UPDATE products SET image_url = 'https://picsum.photos/seed/twshop' || id || '/320/200'`)
+
+ bodies := []string{
+ "Exactly as described, very happy.",
+ "Decent quality for the price.",
+ "Shipping was slow but the product is great.",
+ "Would buy again.",
+ "Not quite what I expected, but okay.",
+ "Five stars, highly recommend.",
+ }
+ for productId := 1; productId <= len(products); productId++ {
+ n := 2 + (productId % 4)
+ for i := 0; i < n; i++ {
+ rating := 3 + ((productId + i) % 3)
+ body := bodies[(productId+i)%len(bodies)]
+ mustExec(`INSERT INTO reviews (product_id, rating, body) VALUES (?, ?, ?)`, productId, rating, body)
+ }
+ }
+
+ coupons := []struct {
+ code string
+ percent int
+ active int
+ }{
+ {"SAVE10", 10, 1},
+ {"HALF50", 50, 1},
+ {"EXPIRED", 25, 0},
+ }
+ for _, cp := range coupons {
+ mustExec(`INSERT INTO coupons (code, percent_off, active) VALUES (?, ?, ?)`, cp.code, cp.percent, cp.active)
+ }
+}
diff --git a/testing/shop/backend/go.mod b/testing/shop/backend/go.mod
new file mode 100644
index 00000000..2b9b6442
--- /dev/null
+++ b/testing/shop/backend/go.mod
@@ -0,0 +1,70 @@
+module testing/shop
+
+go 1.25.1
+
+require (
+ github.com/gin-gonic/gin v1.11.0
+ github.com/mattn/go-sqlite3 v1.14.33
+ go.tracewayapp.com v1.0.4
+ go.tracewayapp.com/tracewaydb v0.0.0-00010101000000-000000000000
+ go.tracewayapp.com/tracewaygin v0.0.0-00010101000000-000000000000
+)
+
+require (
+ github.com/bytedance/sonic v1.14.0 // indirect
+ github.com/bytedance/sonic/loader v0.3.0 // indirect
+ github.com/cespare/xxhash/v2 v2.3.0 // indirect
+ github.com/cloudwego/base64x v0.1.6 // indirect
+ github.com/ebitengine/purego v0.10.1 // indirect
+ github.com/gabriel-vasile/mimetype v1.4.8 // indirect
+ github.com/gin-contrib/sse v1.1.0 // indirect
+ github.com/go-logr/logr v1.4.3 // indirect
+ github.com/go-logr/stdr v1.2.2 // indirect
+ github.com/go-ole/go-ole v1.3.0 // indirect
+ github.com/go-playground/locales v0.14.1 // indirect
+ github.com/go-playground/universal-translator v0.18.1 // indirect
+ github.com/go-playground/validator/v10 v10.27.0 // indirect
+ github.com/goccy/go-json v0.10.2 // indirect
+ github.com/goccy/go-yaml v1.18.0 // indirect
+ github.com/google/uuid v1.6.0 // indirect
+ github.com/json-iterator/go v1.1.12 // indirect
+ github.com/klauspost/cpuid/v2 v2.3.0 // indirect
+ github.com/leodido/go-urn v1.4.0 // indirect
+ github.com/lufia/plan9stats v0.0.0-20260330125221-c963978e514e // indirect
+ github.com/mattn/go-isatty v0.0.20 // indirect
+ github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
+ github.com/modern-go/reflect2 v1.0.2 // indirect
+ github.com/pelletier/go-toml/v2 v2.2.4 // indirect
+ github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
+ github.com/quic-go/qpack v0.5.1 // indirect
+ github.com/quic-go/quic-go v0.54.0 // indirect
+ github.com/shirou/gopsutil/v4 v4.26.4 // indirect
+ github.com/tklauser/go-sysconf v0.4.0 // indirect
+ github.com/tklauser/numcpus v0.12.0 // indirect
+ github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
+ github.com/ugorji/go/codec v1.3.0 // indirect
+ github.com/yusufpapurcu/wmi v1.2.4 // indirect
+ go.opentelemetry.io/auto/sdk v1.2.1 // indirect
+ go.opentelemetry.io/contrib/instrumentation/host v0.69.0 // indirect
+ go.opentelemetry.io/otel v1.44.0 // indirect
+ go.opentelemetry.io/otel/metric v1.44.0 // indirect
+ go.opentelemetry.io/otel/sdk v1.44.0 // indirect
+ go.opentelemetry.io/otel/sdk/metric v1.44.0 // indirect
+ go.opentelemetry.io/otel/trace v1.44.0 // indirect
+ go.uber.org/mock v0.5.0 // indirect
+ golang.org/x/arch v0.20.0 // indirect
+ golang.org/x/crypto v0.40.0 // indirect
+ golang.org/x/mod v0.25.0 // indirect
+ golang.org/x/net v0.42.0 // indirect
+ golang.org/x/sync v0.16.0 // indirect
+ golang.org/x/sys v0.45.0 // indirect
+ golang.org/x/text v0.27.0 // indirect
+ golang.org/x/tools v0.34.0 // indirect
+ google.golang.org/protobuf v1.36.9 // indirect
+)
+
+replace go.tracewayapp.com => ../../../../go-client
+
+replace go.tracewayapp.com/tracewaydb => ../../../../go-client/tracewaydb
+
+replace go.tracewayapp.com/tracewaygin => ../../../../go-client/tracewaygin
diff --git a/testing/shop/backend/go.sum b/testing/shop/backend/go.sum
new file mode 100644
index 00000000..63b92f79
--- /dev/null
+++ b/testing/shop/backend/go.sum
@@ -0,0 +1,137 @@
+github.com/DATA-DOG/go-sqlmock v1.5.2 h1:OcvFkGmslmlZibjAjaHm3L//6LiuBgolP7OputlJIzU=
+github.com/DATA-DOG/go-sqlmock v1.5.2/go.mod h1:88MAG/4G7SMwSE3CeA0ZKzrT5CiOU3OJ+JlNzwDqpNU=
+github.com/bytedance/sonic v1.14.0 h1:/OfKt8HFw0kh2rj8N0F6C/qPGRESq0BbaNZgcNXXzQQ=
+github.com/bytedance/sonic v1.14.0/go.mod h1:WoEbx8WTcFJfzCe0hbmyTGrfjt8PzNEBdxlNUO24NhA=
+github.com/bytedance/sonic/loader v0.3.0 h1:dskwH8edlzNMctoruo8FPTJDF3vLtDT0sXZwvZJyqeA=
+github.com/bytedance/sonic/loader v0.3.0/go.mod h1:N8A3vUdtUebEY2/VQC0MyhYeKUFosQU6FxH2JmUe6VI=
+github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
+github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/cloudwego/base64x v0.1.6 h1:t11wG9AECkCDk5fMSoxmufanudBtJ+/HemLstXDLI2M=
+github.com/cloudwego/base64x v0.1.6/go.mod h1:OFcloc187FXDaYHvrNIjxSe8ncn0OOM8gEHfghB2IPU=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/ebitengine/purego v0.10.1 h1:dewVBCBT2GaMu1SrNTYxQhgQBethzfhiwvZiLGP/qyY=
+github.com/ebitengine/purego v0.10.1/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ=
+github.com/gabriel-vasile/mimetype v1.4.8 h1:FfZ3gj38NjllZIeJAmMhr+qKL8Wu+nOoI3GqacKw1NM=
+github.com/gabriel-vasile/mimetype v1.4.8/go.mod h1:ByKUIKGjh1ODkGM1asKUbQZOLGrPjydw3hYPU2YU9t8=
+github.com/gin-contrib/sse v1.1.0 h1:n0w2GMuUpWDVp7qSpvze6fAu9iRxJY4Hmj6AmBOU05w=
+github.com/gin-contrib/sse v1.1.0/go.mod h1:hxRZ5gVpWMT7Z0B0gSNYqqsSCNIJMjzvm6fqCz9vjwM=
+github.com/gin-gonic/gin v1.11.0 h1:OW/6PLjyusp2PPXtyxKHU0RbX6I/l28FTdDlae5ueWk=
+github.com/gin-gonic/gin v1.11.0/go.mod h1:+iq/FyxlGzII0KHiBGjuNn4UNENUlKbGlNmc+W50Dls=
+github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
+github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
+github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
+github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
+github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
+github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
+github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE=
+github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78=
+github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
+github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
+github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
+github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
+github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
+github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
+github.com/go-playground/validator/v10 v10.27.0 h1:w8+XrWVMhGkxOaaowyKH35gFydVHOvC0/uWoy2Fzwn4=
+github.com/go-playground/validator/v10 v10.27.0/go.mod h1:I5QpIEbmr8On7W0TktmJAumgzX4CA1XNl4ZmDuVHKKo=
+github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
+github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
+github.com/goccy/go-yaml v1.18.0 h1:8W7wMFS12Pcas7KU+VVkaiCng+kG8QiFeFwzFb+rwuw=
+github.com/goccy/go-yaml v1.18.0/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
+github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
+github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
+github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
+github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
+github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
+github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y=
+github.com/klauspost/cpuid/v2 v2.3.0/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
+github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
+github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
+github.com/lufia/plan9stats v0.0.0-20260330125221-c963978e514e h1:Q6MvJtQK/iRcRtzAscm/zF23XxJlbECiGPyRicsX+Ak=
+github.com/lufia/plan9stats v0.0.0-20260330125221-c963978e514e/go.mod h1:autxFIvghDt3jPTLoqZ9OZ7s9qTGNAWmYCjVFWPX/zg=
+github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
+github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
+github.com/mattn/go-sqlite3 v1.14.33 h1:A5blZ5ulQo2AtayQ9/limgHEkFreKj1Dv226a1K73s0=
+github.com/mattn/go-sqlite3 v1.14.33/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
+github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
+github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4=
+github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU=
+github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
+github.com/quic-go/qpack v0.5.1 h1:giqksBPnT/HDtZ6VhtFKgoLOWmlyo9Ei6u9PqzIMbhI=
+github.com/quic-go/qpack v0.5.1/go.mod h1:+PC4XFrEskIVkcLzpEkbLqq1uCoxPhQuvK5rH1ZgaEg=
+github.com/quic-go/quic-go v0.54.0 h1:6s1YB9QotYI6Ospeiguknbp2Znb/jZYjZLRXn9kMQBg=
+github.com/quic-go/quic-go v0.54.0/go.mod h1:e68ZEaCdyviluZmy44P6Iey98v/Wfz6HCjQEm+l8zTY=
+github.com/shirou/gopsutil/v4 v4.26.4 h1:B4SXVbcwTyrocPHEmWBC4uCYr4Xcu3MK1TXqbprAOWY=
+github.com/shirou/gopsutil/v4 v4.26.4/go.mod h1:LZ6ewCSkBqUpvSOf+LsTGnRinC6iaNUNMGBtDkJBaLQ=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
+github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
+github.com/tklauser/go-sysconf v0.4.0 h1:7H0uAN+7RkwWRaxhYXDLqa5V3LPrJeV8wmD9dRUgPQU=
+github.com/tklauser/go-sysconf v0.4.0/go.mod h1:8mTNWyog7H+MpKijp4VmKJAd2bbYQ2zuUwkYRbUArPI=
+github.com/tklauser/numcpus v0.12.0 h1:NR85qdvHA9pFse3x3weVZ0r0ST8R6l5RHbZrlRaqob4=
+github.com/tklauser/numcpus v0.12.0/go.mod h1:ABHeXzJnr/qqwguhClkZKT1/8VABcYrsyUiUGobwWJg=
+github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
+github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
+github.com/ugorji/go/codec v1.3.0 h1:Qd2W2sQawAfG8XSvzwhBeoGq71zXOC/Q1E9y/wUcsUA=
+github.com/ugorji/go/codec v1.3.0/go.mod h1:pRBVtBSKl77K30Bv8R2P+cLSGaTtex6fsA2Wjqmfxj4=
+github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0=
+github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
+go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
+go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
+go.opentelemetry.io/contrib/instrumentation/host v0.69.0 h1:N/wKAdIOKd9U4bwiwY3j95e2ZR48onTMR/NI/SZQ/a4=
+go.opentelemetry.io/contrib/instrumentation/host v0.69.0/go.mod h1:rE1Bxmu3mwcmyTJV4EQdJ/C6zCUnuT9jCiinhRXLAXc=
+go.opentelemetry.io/otel v1.44.0 h1:JjwHmHpA4iZ3wBxluu2fbbE7j4kqlE8jXyAyPXH7HqU=
+go.opentelemetry.io/otel v1.44.0/go.mod h1:BMgjTHL9WPRlRjL2oZCBTL4whCGtXch2H4BhOPIAyYc=
+go.opentelemetry.io/otel/metric v1.44.0 h1:1w0gILTcHdr3YI+ixLyjemwrVnsMURbTZFrSYCdDdmc=
+go.opentelemetry.io/otel/metric v1.44.0/go.mod h1:8O7hanEPBNgEMmybD3s2VBKcgWOCsA6tzHBPODAiquo=
+go.opentelemetry.io/otel/metric/x v0.66.0 h1:YkCrx1zLOChi9ZcZ6euupOcsgzbVlec7D/xoEU1+cTA=
+go.opentelemetry.io/otel/metric/x v0.66.0/go.mod h1:d1+BDj9t96do0/1LoU1ayfCv79ZgNE41qbhBvnMOBZk=
+go.opentelemetry.io/otel/sdk v1.44.0 h1:nHYwb9lK+fJPU/dnT6s7W7Z8itMWyqrnVfbheVYrZ58=
+go.opentelemetry.io/otel/sdk v1.44.0/go.mod h1:Osuydd3Se74nqjAKxid74N5eC+jfEqfTegHRnq58oK0=
+go.opentelemetry.io/otel/sdk/metric v1.44.0 h1:3LlKgI+VjbVsjNRFZJZAJ30WjXC5VkNRks6si09iEfI=
+go.opentelemetry.io/otel/sdk/metric v1.44.0/go.mod h1:5B5pMARnXxKhltooO4xUuCBorl65a4EpnTalObqOigA=
+go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/6gtIk=
+go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE=
+go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU=
+go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM=
+golang.org/x/arch v0.20.0 h1:dx1zTU0MAE98U+TQ8BLl7XsJbgze2WnNKF/8tGp/Q6c=
+golang.org/x/arch v0.20.0/go.mod h1:bdwinDaKcfZUGpH09BB7ZmOfhalA8lQdzl62l8gGWsk=
+golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM=
+golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY=
+golang.org/x/mod v0.25.0 h1:n7a+ZbQKQA/Ysbyb0/6IbB1H/X41mKgbhfv7AfG/44w=
+golang.org/x/mod v0.25.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
+golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs=
+golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8=
+golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
+golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
+golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY=
+golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4=
+golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU=
+golang.org/x/tools v0.34.0 h1:qIpSLOxeCYGg9TrcJokLBG4KFA6d795g0xkBkiESGlo=
+golang.org/x/tools v0.34.0/go.mod h1:pAP9OwEaY1CAW3HOmg3hLZC5Z0CCmzjAF2UQMSqNARg=
+google.golang.org/protobuf v1.36.9 h1:w2gp2mA27hUeUzj9Ex9FBjsBm40zfaDtEWow293U7Iw=
+google.golang.org/protobuf v1.36.9/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/testing/shop/backend/main.go b/testing/shop/backend/main.go
new file mode 100644
index 00000000..8c422299
--- /dev/null
+++ b/testing/shop/backend/main.go
@@ -0,0 +1,63 @@
+package main
+
+import (
+ "database/sql"
+ "net/http"
+ "os"
+
+ tracewaygin "go.tracewayapp.com/tracewaygin"
+
+ "github.com/gin-gonic/gin"
+ _ "github.com/mattn/go-sqlite3"
+)
+
+var db *sql.DB
+
+func main() {
+ initDB()
+
+ endpoint := os.Getenv("TRACEWAY_ENDPOINT")
+ if endpoint == "" {
+ endpoint = "default_token_change_me@http://localhost:8082/api/report"
+ }
+
+ router := gin.Default()
+
+ router.Use(corsMiddleware())
+ router.Use(tracewaygin.New(
+ endpoint,
+ tracewaygin.WithDebug(true),
+ tracewaygin.WithServerName("shop-demo"),
+ tracewaygin.WithVersion("0.1.0"),
+ tracewaygin.WithOnErrorRecording(tracewaygin.RecordingUrl|tracewaygin.RecordingQuery|tracewaygin.RecordingHeader|tracewaygin.RecordingBody),
+ ))
+
+ router.GET("/api/health", func(c *gin.Context) {
+ c.JSON(http.StatusOK, gin.H{"status": "ok"})
+ })
+
+ router.GET("/api/products", listProducts)
+ router.GET("/api/products/:id", getProduct)
+
+ router.GET("/api/cart", getCart)
+ router.POST("/api/cart", addToCart)
+ router.DELETE("/api/cart/:id", removeFromCart)
+
+ router.POST("/api/coupon", applyCoupon)
+ router.POST("/api/checkout", checkout)
+
+ router.Run(":8090")
+}
+
+func corsMiddleware() gin.HandlerFunc {
+ return func(c *gin.Context) {
+ c.Header("Access-Control-Allow-Origin", "*")
+ c.Header("Access-Control-Allow-Methods", "GET, POST, DELETE, OPTIONS")
+ c.Header("Access-Control-Allow-Headers", "Content-Type, Authorization")
+ if c.Request.Method == http.MethodOptions {
+ c.AbortWithStatus(http.StatusNoContent)
+ return
+ }
+ c.Next()
+ }
+}
diff --git a/testing/shop/backend/models.go b/testing/shop/backend/models.go
new file mode 100644
index 00000000..af5d7411
--- /dev/null
+++ b/testing/shop/backend/models.go
@@ -0,0 +1,50 @@
+package main
+
+type Product struct {
+ Id int `json:"id"`
+ Name string `json:"name"`
+ Description string `json:"description"`
+ PriceCents int `json:"price_cents"`
+ ImageUrl string `json:"image_url"`
+ Stock int `json:"stock"`
+ CategoryId int `json:"category_id"`
+ Category string `json:"category"`
+ ReviewCount int `json:"review_count"`
+}
+
+type Review struct {
+ Id int `json:"id"`
+ ProductId int `json:"product_id"`
+ Rating int `json:"rating"`
+ Body string `json:"body"`
+}
+
+type ProductDetail struct {
+ Product
+ Reviews []Review `json:"reviews"`
+}
+
+type CartLine struct {
+ Id int `json:"id"`
+ ProductId int `json:"product_id"`
+ Name string `json:"name"`
+ PriceCents int `json:"price_cents"`
+ ImageUrl string `json:"image_url"`
+ Qty int `json:"qty"`
+ LineTotal int `json:"line_total_cents"`
+}
+
+type AddToCartRequest struct {
+ ProductId int `json:"product_id"`
+ Qty int `json:"qty"`
+}
+
+type CouponRequest struct {
+ Code string `json:"code"`
+}
+
+type CheckoutRequest struct {
+ Name string `json:"name"`
+ Email string `json:"email"`
+ CardLast4 string `json:"card_last4"`
+}
diff --git a/testing/shop/backend/products.go b/testing/shop/backend/products.go
new file mode 100644
index 00000000..8ccdd3da
--- /dev/null
+++ b/testing/shop/backend/products.go
@@ -0,0 +1,144 @@
+package main
+
+import (
+ "database/sql"
+ "errors"
+ "net/http"
+
+ traceway "go.tracewayapp.com"
+ tracewaydb "go.tracewayapp.com/tracewaydb"
+
+ "github.com/gin-gonic/gin"
+)
+
+func listProducts(c *gin.Context) {
+ ctx := c.Request.Context()
+ twdb := tracewaydb.NewTwDB(ctx, db)
+
+ if fastPath() {
+ rows, err := twdb.QueryContext(ctx, `
+ SELECT p.id, p.name, p.description, p.price_cents, p.image_url, p.stock, p.category_id,
+ c.name AS category, COUNT(r.id) AS review_count
+ FROM products p
+ LEFT JOIN categories c ON c.id = p.category_id
+ LEFT JOIN reviews r ON r.product_id = p.id
+ GROUP BY p.id
+ ORDER BY p.id`)
+ if err != nil {
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("list products (fast): %w", err))
+ return
+ }
+ products := []Product{}
+ for rows.Next() {
+ var p Product
+ if err := rows.Scan(&p.Id, &p.Name, &p.Description, &p.PriceCents, &p.ImageUrl, &p.Stock, &p.CategoryId, &p.Category, &p.ReviewCount); err != nil {
+ rows.Close()
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("scan product (fast): %w", err))
+ return
+ }
+ products = append(products, p)
+ }
+ rows.Close()
+ c.JSON(http.StatusOK, products)
+ return
+ }
+
+ rows, err := twdb.QueryContext(ctx, `SELECT id, name, description, price_cents, image_url, stock, category_id FROM products ORDER BY id`)
+ if err != nil {
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("list products: %w", err))
+ return
+ }
+ products := []Product{}
+ for rows.Next() {
+ var p Product
+ if err := rows.Scan(&p.Id, &p.Name, &p.Description, &p.PriceCents, &p.ImageUrl, &p.Stock, &p.CategoryId); err != nil {
+ rows.Close()
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("scan product: %w", err))
+ return
+ }
+ products = append(products, p)
+ }
+ rows.Close()
+
+ for i := range products {
+ slowJitter(15, 50)
+ catRow := twdb.QueryRowContext(ctx, `SELECT name FROM categories WHERE id = ?`, products[i].CategoryId)
+ _ = catRow.Scan(&products[i].Category)
+
+ countRow := twdb.QueryRowContext(ctx, `SELECT COUNT(*) FROM reviews WHERE product_id = ?`, products[i].Id)
+ _ = countRow.Scan(&products[i].ReviewCount)
+ }
+
+ c.JSON(http.StatusOK, products)
+}
+
+func getProduct(c *gin.Context) {
+ ctx := c.Request.Context()
+ id := c.Param("id")
+ twdb := tracewaydb.NewTwDB(ctx, db)
+
+ var detail ProductDetail
+ row := twdb.QueryRowContext(ctx, `SELECT id, name, description, price_cents, image_url, stock, category_id FROM products WHERE id = ?`, id)
+ if err := row.Scan(&detail.Id, &detail.Name, &detail.Description, &detail.PriceCents, &detail.ImageUrl, &detail.Stock, &detail.CategoryId); err != nil {
+ if errors.Is(err, sql.ErrNoRows) {
+ c.JSON(http.StatusNotFound, gin.H{"error": "product not found"})
+ return
+ }
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("get product: %w", err))
+ return
+ }
+
+ catRow := twdb.QueryRowContext(ctx, `SELECT name FROM categories WHERE id = ?`, detail.CategoryId)
+ _ = catRow.Scan(&detail.Category)
+
+ if fastPath() {
+ rows, err := twdb.QueryContext(ctx, `SELECT id, product_id, rating, body FROM reviews WHERE product_id = ? ORDER BY id`, detail.Id)
+ if err != nil {
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("get reviews (fast): %w", err))
+ return
+ }
+ for rows.Next() {
+ var rv Review
+ if err := rows.Scan(&rv.Id, &rv.ProductId, &rv.Rating, &rv.Body); err == nil {
+ detail.Reviews = append(detail.Reviews, rv)
+ }
+ }
+ rows.Close()
+ detail.ReviewCount = len(detail.Reviews)
+ c.JSON(http.StatusOK, detail)
+ return
+ }
+
+ span := traceway.StartSpan(ctx, "load_reviews")
+ idRows, err := twdb.QueryContext(ctx, `SELECT id FROM reviews WHERE product_id = ?`, detail.Id)
+ if err != nil {
+ span.End()
+ c.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("list review ids: %w", err))
+ return
+ }
+ reviewIds := []int{}
+ for idRows.Next() {
+ var rid int
+ if err := idRows.Scan(&rid); err == nil {
+ reviewIds = append(reviewIds, rid)
+ }
+ }
+ idRows.Close()
+
+ for _, rid := range reviewIds {
+ slowJitter(10, 30)
+ var rv Review
+ rrow := twdb.QueryRowContext(ctx, `SELECT id, product_id, rating, body FROM reviews WHERE id = ?`, rid)
+ if err := rrow.Scan(&rv.Id, &rv.ProductId, &rv.Rating, &rv.Body); err == nil {
+ detail.Reviews = append(detail.Reviews, rv)
+ }
+ }
+ span.End()
+
+ rec := traceway.StartSpan(ctx, "recommendations.fetch")
+ slowJitter(80, 200)
+ rec.End()
+
+ detail.ReviewCount = len(detail.Reviews)
+ c.JSON(http.StatusOK, detail)
+}
diff --git a/testing/shop/backend/slow.go b/testing/shop/backend/slow.go
new file mode 100644
index 00000000..ddb3f76b
--- /dev/null
+++ b/testing/shop/backend/slow.go
@@ -0,0 +1,18 @@
+package main
+
+import (
+ "math/rand/v2"
+ "time"
+)
+
+func fastPath() bool {
+ return rand.IntN(4) == 0
+}
+
+func slowJitter(minMs, maxMs int) {
+ d := minMs
+ if maxMs > minMs {
+ d += rand.IntN(maxMs - minMs)
+ }
+ time.Sleep(time.Duration(d) * time.Millisecond)
+}
diff --git a/testing/shop/frontend/.env.example b/testing/shop/frontend/.env.example
new file mode 100644
index 00000000..0bd4c357
--- /dev/null
+++ b/testing/shop/frontend/.env.example
@@ -0,0 +1,2 @@
+VITE_TW_CONNECTION=default_token_change_me@http://localhost:8082/api/report
+VITE_API_BASE=/api
diff --git a/testing/shop/frontend/.gitignore b/testing/shop/frontend/.gitignore
new file mode 100644
index 00000000..deed335b
--- /dev/null
+++ b/testing/shop/frontend/.gitignore
@@ -0,0 +1,3 @@
+node_modules/
+dist/
+.env
diff --git a/testing/shop/frontend/index.html b/testing/shop/frontend/index.html
new file mode 100644
index 00000000..79866a42
--- /dev/null
+++ b/testing/shop/frontend/index.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Traceway Demo Shop</title>
+ </head>
+ <body>
+ <div id="root"></div>
+ <script type="module" src="/src/main.jsx"></script>
+ </body>
+</html>
diff --git a/testing/shop/frontend/package-lock.json b/testing/shop/frontend/package-lock.json
new file mode 100644
index 00000000..96a6912c
--- /dev/null
+++ b/testing/shop/frontend/package-lock.json
@@ -0,0 +1,1811 @@
+{
+ "name": "shop-frontend",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "shop-frontend",
+ "dependencies": {
+ "@tracewayapp/react": "file:../../../../js-client/packages/react",
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1"
+ },
+ "devDependencies": {
+ "@vitejs/plugin-react": "^4.3.4",
+ "vite": "^7.0.0"
+ }
+ },
+ "../../../../js-client/packages/react": {
+ "name": "@tracewayapp/react",
+ "version": "1.2.0",
+ "dependencies": {
+ "@tracewayapp/frontend": "1.2.0"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",
+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",
+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",
+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.7",
+ "@babel/helper-compilation-targets": "^7.29.7",
+ "@babel/helper-module-transforms": "^7.29.7",
+ "@babel/helpers": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/template": "^7.29.7",
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz",
+ "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",
+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.29.7",
+ "@babel/helper-validator-option": "^7.29.7",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",
+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",
+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",
+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "@babel/traverse": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",
+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",
+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",
+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",
+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz",
+ "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.7"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-self": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz",
+ "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-source": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz",
+ "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",
+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz",
+ "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.7",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz",
+ "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz",
+ "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz",
+ "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz",
+ "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz",
+ "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz",
+ "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz",
+ "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz",
+ "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz",
+ "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz",
+ "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz",
+ "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz",
+ "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz",
+ "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz",
+ "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz",
+ "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz",
+ "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz",
+ "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz",
+ "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz",
+ "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz",
+ "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz",
+ "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz",
+ "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz",
+ "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz",
+ "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz",
+ "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz",
+ "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz",
+ "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-beta.27",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",
+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz",
+ "integrity": "sha512-6o7ZLZK+BeenkZCFNDXqpbjw9bD6nuWonvS/lwQJp7NoVVxm6p3qE7qQ5jGuBjiFsgvqjD8mZAU5oWxTmbOeOg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.62.2.tgz",
+ "integrity": "sha512-BaH7BllCACHoH1LguOU56UItGfUWjujlO65kS9LAodViaN4bwIKd7oeW/ZHJ/4ljr/7MIiENnNy3HJ0zXv8Zkw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.62.2.tgz",
+ "integrity": "sha512-v39RCCvj4He82I9sFmk+M1VZ0PLM9sfsLVikjfx2hYBNALhrrOR2D3JjQA6AhlaSOgcR+RzrKY7e1+bT6SUO/A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.62.2.tgz",
+ "integrity": "sha512-yl0y2vq3S3lHeuXhEdss6TWfKW8vkujImO12tn4ZkG/4oghr09LvdYm2RElVjokTQiUvDUGXLGsYeLqUMCKpGA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.62.2.tgz",
+ "integrity": "sha512-tT4pvt4qXD+vEoezupCWi+a1F0vvDiksiHc+PxRlYTOH1I6/X4id9jPxTP+Fg+545euaFT1jJVs4CEdHZAU1vw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.62.2.tgz",
+ "integrity": "sha512-6nU5F2wCW+qvCBhTn1pdIU3bzsIoF7EUwsCDRxilWGprQR6yd508YnH9+OKFCwpfS8pjZqDUmnCAr7exax0XCg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.62.2.tgz",
+ "integrity": "sha512-n1GJHPOvpIfhi3TmrCeh6S6URt9BFCt0KQE3qvexyGCTAKpR4Lg+eWvNZEqu7epxwus/8ElT3hacYEucm49SZg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.62.2.tgz",
+ "integrity": "sha512-JqgflS8wEB+UXV/vS1RpRbifGBeN4D5lz8D8oOFbFZw4vedvdOgCFAjfBmIMdW3yL10XpQQ0Ambepw6MXrhOnA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.62.2.tgz",
+ "integrity": "sha512-wnFJkogWvN4jm/hQRF2UBaeUmk20j5+DmHvoyWii2b8HJDyvz1MF2OU/6ynXt2KR63rbZLWkFpoytpdc/yBuSA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.62.2.tgz",
+ "integrity": "sha512-HVu2bp0zhvJ8xHEV9+UUs7S90VadmBSY3LcIMvozbPo4AuMGDWlz3ymHLHZPX4hR67TKTt8Qp5PJ5RBg/i+RMQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.62.2.tgz",
+ "integrity": "sha512-mQqqAV8QaoSgr9I2fKDLY2BAVvmKjWoGiu/cSYQonsLvtqwEn1E4QYfnCOcp5zoEqNhsDYin1s6jx/VJmrxlZg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.62.2.tgz",
+ "integrity": "sha512-IxKLoxCQ2IWi6bT2akyDUBGsOImDKB+sPp4EsTmwFQ/fMwpCKm8uLSSgP/Kx/QYUgKis6SEZ5/Nlhup0DIA0PQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.62.2.tgz",
+ "integrity": "sha512-Mk5ha2RQSgyFfmYYLkBpPnUk8D8FriBxesO1u9O75X0mHgXL1UQcH5Itl2lurWL2tj0RxV9b9tJgipac0hRY9A==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.62.2.tgz",
+ "integrity": "sha512-CjvEnqJL/0/TQ3TXX3OPIJ/kmBellrWd4heXUmHeJlTnmwjKpSJzoehLaL6Xk0ZnMHBu9dZuFADNOrtjF4v+2w==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.62.2.tgz",
+ "integrity": "sha512-1SiZbzwdkaDURsew/tSOrooKiYy7EQGT6m8ufavAi9NEyQb/6VuIxFXAL1fqa4iZe3g4NbNk4P7J32z2tw5Mgg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.62.2.tgz",
+ "integrity": "sha512-nQts12zJ3NQRoE6uYljOH89v7szzLDvG2JD/vsX+vGXU8w/At1GowTZ5/7qeFQ8m7L55rpR8Okugnuo5bgjy2Q==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.62.2.tgz",
+ "integrity": "sha512-E9/ll019jhPIJgpzfZoIkBGhcz+kKNgVWYRY0zr9srBdPPFVpvOKW8VaJKUbeK+eZXyQF9ltME+Kk6affeaPgg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.2.tgz",
+ "integrity": "sha512-5BqxR/pshjey51iliyzTD5Xi3EN0aLmQ2lZ3lvefVV9c82BvrLo2/6OT55iifpWBufs6kdwWbuOKS841DrmK9A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.62.2.tgz",
+ "integrity": "sha512-uNN83XxQrRAh/w0/pmAfibcwyb6YWt4gP+dpnQKPVJshAloQ785ii8CT8ZCIxkGg9opVsvAlGhFitSm6D1Jjpg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-openbsd-x64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.62.2.tgz",
+ "integrity": "sha512-srjEIxSH3LRnJN6THczDHWQplqEMFiAJrTab0msUryh9kwNpkICf3Ea6q6MN/2cZwRFUNx5w+h6Hpi4QuHS6Zg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-openharmony-arm64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.62.2.tgz",
+ "integrity": "sha512-8hOJnxgbyObnCm5AlRA3A931xX19xq80RjVTKgJOvEKWqJruP/Uf12IbAOaDjjEXYRewwHLfmF0YRIdK3OwKWA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.62.2.tgz",
+ "integrity": "sha512-mmF4AY1i0hG/bLWUctUq59gtmgaSIRa3cu/A3JFRp/sCNEme2bgDEiDS22P9FbnJB8NJNF4jPJiSP5RHQpUTDg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.62.2.tgz",
+ "integrity": "sha512-DZgkknc6jhHrk46V25vbAM0zZkyP0nSDkJB8/dRkLTxv470dOmWDqGoEJl/9A0dFfS7yE3REOwNDxpHwSLSt0Q==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.62.2.tgz",
+ "integrity": "sha512-T6xr6ucWSFto+VGajA8YH26LdpHRuP4YLHEKAtCWvJDOlnmWcDZVCI2Jmjr+IFHDlt2zRaTAKE4tfjTaWLgJBg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.62.2.tgz",
+ "integrity": "sha512-BfzEnDJOt9T8M989/lA37EcJgat01wLRnoi5dQf3QzOH7jzpqTAzdDbVfRljVr5r+jzKqpbHeyOfAaXxAd0PAA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@tracewayapp/react": {
+ "resolved": "../../../../js-client/packages/react",
+ "link": true
+ },
+ "node_modules/@types/babel__core": {
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.20.7",
+ "@babel/types": "^7.20.7",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "node_modules/@types/babel__generator": {
+ "version": "7.27.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__template": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__traverse": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.2"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vitejs/plugin-react": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",
+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.28.0",
+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",
+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",
+ "@rolldown/pluginutils": "1.0.0-beta.27",
+ "@types/babel__core": "^7.20.5",
+ "react-refresh": "^0.17.0"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "peerDependencies": {
+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
+ }
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.10.38",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.38.tgz",
+ "integrity": "sha512-31/02mVB4yuQU6adKk5SlY6m+mxDwUq5KZkyYgnLrrKl7TEm1+3PyDtDBz2kOv/wxZz41GHsvV1A/u6RmiyBvw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.28.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",
+ "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.10.12",
+ "caniuse-lite": "^1.0.30001782",
+ "electron-to-chromium": "^1.5.328",
+ "node-releases": "^2.0.36",
+ "update-browserslist-db": "^1.2.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001799",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001799.tgz",
+ "integrity": "sha512-hG1bReV+OUU+MOqK4t/ZWI0tZOyz3rqS9XuhOUz1cIcbwBKjOyJEJuw9ER5JuNyqxNk8u/JUVbGibBOL1yrjFw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.376",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.376.tgz",
+ "integrity": "sha512-cUVA7/RvbFTEuw/i3obUwDTRIXojaxkResf+ibByPFxjc6XK3VNtcQXV0NSbAlJ0FMjcJGgftVVB4Qo184EXvA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/esbuild": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz",
+ "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.27.7",
+ "@esbuild/android-arm": "0.27.7",
+ "@esbuild/android-arm64": "0.27.7",
+ "@esbuild/android-x64": "0.27.7",
+ "@esbuild/darwin-arm64": "0.27.7",
+ "@esbuild/darwin-x64": "0.27.7",
+ "@esbuild/freebsd-arm64": "0.27.7",
+ "@esbuild/freebsd-x64": "0.27.7",
+ "@esbuild/linux-arm": "0.27.7",
+ "@esbuild/linux-arm64": "0.27.7",
+ "@esbuild/linux-ia32": "0.27.7",
+ "@esbuild/linux-loong64": "0.27.7",
+ "@esbuild/linux-mips64el": "0.27.7",
+ "@esbuild/linux-ppc64": "0.27.7",
+ "@esbuild/linux-riscv64": "0.27.7",
+ "@esbuild/linux-s390x": "0.27.7",
+ "@esbuild/linux-x64": "0.27.7",
+ "@esbuild/netbsd-arm64": "0.27.7",
+ "@esbuild/netbsd-x64": "0.27.7",
+ "@esbuild/openbsd-arm64": "0.27.7",
+ "@esbuild/openbsd-x64": "0.27.7",
+ "@esbuild/openharmony-arm64": "0.27.7",
+ "@esbuild/sunos-x64": "0.27.7",
+ "@esbuild/win32-arm64": "0.27.7",
+ "@esbuild/win32-ia32": "0.27.7",
+ "@esbuild/win32-x64": "0.27.7"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "license": "MIT"
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.13",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.13.tgz",
+ "integrity": "sha512-sPdqC6ByMVVGvF1ynvvMo0/o+oD1VX7DaHhijt1bFgjvBkHBib4t49GoNDhf2NDta4oeUNlaGbSt5K7qjZ955Q==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.48",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.48.tgz",
+ "integrity": "sha512-1uz8041X6LoI6ZSdZacM9lVY28vuzDlSKitnpbSNK0RfKoIJkX29NBPVEFXhnuSuEOA9Ww0xnPJ+ILWbGAv8DA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.15",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz",
+ "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.12",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/react": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.2"
+ },
+ "peerDependencies": {
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/react-refresh": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",
+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.2.tgz",
+ "integrity": "sha512-RFnrW4lhXA3s3eqHDZvN654g8OTjzRfqpIRJYczCGB6HzphckVAi/Qh4tbPUbRuDi7s1Llv8g/NspLkttY3gTA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "1.0.9"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.62.2",
+ "@rollup/rollup-android-arm64": "4.62.2",
+ "@rollup/rollup-darwin-arm64": "4.62.2",
+ "@rollup/rollup-darwin-x64": "4.62.2",
+ "@rollup/rollup-freebsd-arm64": "4.62.2",
+ "@rollup/rollup-freebsd-x64": "4.62.2",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.62.2",
+ "@rollup/rollup-linux-arm-musleabihf": "4.62.2",
+ "@rollup/rollup-linux-arm64-gnu": "4.62.2",
+ "@rollup/rollup-linux-arm64-musl": "4.62.2",
+ "@rollup/rollup-linux-loong64-gnu": "4.62.2",
+ "@rollup/rollup-linux-loong64-musl": "4.62.2",
+ "@rollup/rollup-linux-ppc64-gnu": "4.62.2",
+ "@rollup/rollup-linux-ppc64-musl": "4.62.2",
+ "@rollup/rollup-linux-riscv64-gnu": "4.62.2",
+ "@rollup/rollup-linux-riscv64-musl": "4.62.2",
+ "@rollup/rollup-linux-s390x-gnu": "4.62.2",
+ "@rollup/rollup-linux-x64-gnu": "4.62.2",
+ "@rollup/rollup-linux-x64-musl": "4.62.2",
+ "@rollup/rollup-openbsd-x64": "4.62.2",
+ "@rollup/rollup-openharmony-arm64": "4.62.2",
+ "@rollup/rollup-win32-arm64-msvc": "4.62.2",
+ "@rollup/rollup-win32-ia32-msvc": "4.62.2",
+ "@rollup/rollup-win32-x64-gnu": "4.62.2",
+ "@rollup/rollup-win32-x64-msvc": "4.62.2",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.23.2",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.17",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/vite": {
+ "version": "7.3.5",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.5.tgz",
+ "integrity": "sha512-KuOaNhcnGFN2zIPGA7wRmzF+lJA1sea7rHq17aiJ++9lzY1WWG6Jpwqwe1KNbRVPIqHmr8GLYx7jbrQcN/7/ww==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.27.0",
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.3",
+ "postcss": "^8.5.6",
+ "rollup": "^4.43.0",
+ "tinyglobby": "^0.2.15"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^20.19.0 || >=22.12.0",
+ "jiti": ">=1.21.0",
+ "less": "^4.0.0",
+ "lightningcss": "^1.21.0",
+ "sass": "^1.70.0",
+ "sass-embedded": "^1.70.0",
+ "stylus": ">=0.54.8",
+ "sugarss": "^5.0.0",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ }
+ }
+}
diff --git a/testing/shop/frontend/package.json b/testing/shop/frontend/package.json
new file mode 100644
index 00000000..8623e42b
--- /dev/null
+++ b/testing/shop/frontend/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "shop-frontend",
+ "private": true,
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "vite build",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "@tracewayapp/react": "file:../../../../js-client/packages/react",
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1"
+ },
+ "devDependencies": {
+ "@vitejs/plugin-react": "^4.3.4",
+ "vite": "^7.0.0"
+ }
+}
diff --git a/testing/shop/frontend/src/App.jsx b/testing/shop/frontend/src/App.jsx
new file mode 100644
index 00000000..86200b4a
--- /dev/null
+++ b/testing/shop/frontend/src/App.jsx
@@ -0,0 +1,59 @@
+import React, { useState, useEffect } from 'react'
+import { getCart } from './api.js'
+import ProductsPage from './ProductsPage.jsx'
+import CartPage from './CartPage.jsx'
+import CheckoutPage from './CheckoutPage.jsx'
+
+export default function App() {
+ const [page, setPage] = useState('products')
+ const [cartCount, setCartCount] = useState(0)
+
+ async function refreshCartCount() {
+ try {
+ const cart = await getCart()
+ const count = (cart.items || []).reduce((n, l) => n + l.qty, 0)
+ setCartCount(count)
+ } catch {
+ setCartCount(0)
+ }
+ }
+
+ useEffect(() => {
+ refreshCartCount()
+ }, [page])
+
+ return (
+ <div className="app">
+ <header className="topbar">
+ <div className="brand" onClick={() => setPage('products')}>
+ <span className="logo">🛍️</span> Traceway Demo Shop
+ </div>
+ <nav>
+ <button className={page === 'products' ? 'active' : ''} onClick={() => setPage('products')}>
+ Products
+ </button>
+ <button className={page === 'cart' ? 'active' : ''} onClick={() => setPage('cart')}>
+ Cart <span className="badge">{cartCount}</span>
+ </button>
+ <button className={page === 'checkout' ? 'active' : ''} onClick={() => setPage('checkout')}>
+ Checkout
+ </button>
+ </nav>
+ </header>
+ <main className="content">
+ {page === 'products' && <ProductsPage onCartChanged={refreshCartCount} />}
+ {page === 'cart' && (
+ <CartPage onCartChanged={refreshCartCount} goCheckout={() => setPage('checkout')} />
+ )}
+ {page === 'checkout' && (
+ <CheckoutPage
+ onDone={() => {
+ refreshCartCount()
+ setPage('products')
+ }}
+ />
+ )}
+ </main>
+ </div>
+ )
+}
diff --git a/testing/shop/frontend/src/CartPage.jsx b/testing/shop/frontend/src/CartPage.jsx
new file mode 100644
index 00000000..33824e61
--- /dev/null
+++ b/testing/shop/frontend/src/CartPage.jsx
@@ -0,0 +1,79 @@
+import React, { useEffect, useState } from 'react'
+import { getCart, removeFromCart, formatPrice } from './api.js'
+
+export default function CartPage({ onCartChanged, goCheckout }) {
+ const [cart, setCart] = useState({ items: [], total_cents: 0 })
+ const [loading, setLoading] = useState(true)
+ const [error, setError] = useState('')
+
+ async function load() {
+ setLoading(true)
+ setError('')
+ try {
+ const data = await getCart()
+ setCart(data)
+ } catch (e) {
+ setError(e.message)
+ } finally {
+ setLoading(false)
+ }
+ }
+
+ useEffect(() => {
+ load()
+ }, [])
+
+ async function handleRemove(id) {
+ try {
+ await removeFromCart(id)
+ await load()
+ onCartChanged?.()
+ } catch (e) {
+ setError(e.message)
+ }
+ }
+
+ if (loading) return <div className="loading">Loading cart…</div>
+ if (error)
+ return (
+ <div className="error-box">
+ <p>{error}</p>
+ <button onClick={load}>Retry</button>
+ </div>
+ )
+
+ return (
+ <div>
+ <h1>Your Cart</h1>
+ {cart.items.length === 0 ? (
+ <p className="muted">Your cart is empty.</p>
+ ) : (
+ <div className="cart">
+ {cart.items.map((line) => (
+ <div className="cart-row" key={line.id}>
+ <img src={line.image_url} alt={line.name} />
+ <div className="cart-info">
+ <div className="card-name">{line.name}</div>
+ <div className="muted">
+ {formatPrice(line.price_cents)} × {line.qty}
+ </div>
+ </div>
+ <div className="cart-line-total">{formatPrice(line.line_total_cents)}</div>
+ <button className="ghost" onClick={() => handleRemove(line.id)}>
+ Remove
+ </button>
+ </div>
+ ))}
+ <div className="cart-footer">
+ <div className="cart-total">
+ Total: <strong>{formatPrice(cart.total_cents)}</strong>
+ </div>
+ <button className="primary" onClick={goCheckout}>
+ Proceed to checkout
+ </button>
+ </div>
+ </div>
+ )}
+ </div>
+ )
+}
diff --git a/testing/shop/frontend/src/CheckoutPage.jsx b/testing/shop/frontend/src/CheckoutPage.jsx
new file mode 100644
index 00000000..50e38b4d
--- /dev/null
+++ b/testing/shop/frontend/src/CheckoutPage.jsx
@@ -0,0 +1,115 @@
+import React, { useState } from 'react'
+import { useTraceway, TracewayErrorBoundary } from '@tracewayapp/react'
+import { applyCoupon, checkout, formatPrice } from './api.js'
+
+function CouponBadge({ discount }) {
+ return (
+ <div className="coupon-badge">
+ Coupon applied — saved {discount.percent.toFixed(0)}% ({formatPrice(discount.cents)})
+ </div>
+ )
+}
+
+export default function CheckoutPage({ onDone }) {
+ const { captureException } = useTraceway()
+ const [code, setCode] = useState('')
+ const [discount, setDiscount] = useState(undefined)
+ const [couponError, setCouponError] = useState('')
+ const [form, setForm] = useState({ name: '', email: '', card_last4: '' })
+ const [result, setResult] = useState(null)
+ const [checkoutError, setCheckoutError] = useState('')
+ const [busy, setBusy] = useState(false)
+
+ async function handleApplyCoupon() {
+ setCouponError('')
+ try {
+ const res = await applyCoupon(code)
+ setDiscount({ percent: res.percent_off, cents: res.discount_cents })
+ } catch (e) {
+ captureException(e)
+ setCouponError(e.message)
+ setDiscount(null)
+ }
+ }
+
+ async function handleCheckout(e) {
+ e.preventDefault()
+ setCheckoutError('')
+ setBusy(true)
+ try {
+ const res = await checkout(form)
+ setResult(res)
+ } catch (err) {
+ setCheckoutError(err.message)
+ } finally {
+ setBusy(false)
+ }
+ }
+
+ function update(field) {
+ return (e) => setForm({ ...form, [field]: e.target.value })
+ }
+
+ if (result) {
+ return (
+ <div className="confirmation">
+ <h1>Order confirmed 🎉</h1>
+ <p>
+ Order <strong>{result.order_id}</strong> placed for{' '}
+ <strong>{formatPrice(result.total_cents)}</strong>.
+ </p>
+ <button className="primary" onClick={onDone}>
+ Back to shop
+ </button>
+ </div>
+ )
+ }
+
+ return (
+ <div className="checkout">
+ <h1>Checkout</h1>
+
+ <section className="panel">
+ <h2>Coupon</h2>
+ <div className="coupon-row">
+ <input
+ placeholder="Coupon code (try SAVE10)"
+ value={code}
+ onChange={(e) => setCode(e.target.value)}
+ />
+ <button className="ghost" onClick={handleApplyCoupon}>
+ Apply
+ </button>
+ </div>
+ {couponError && <div className="error-inline">{couponError}</div>}
+ {discount !== undefined && (
+ <TracewayErrorBoundary fallback={<div className="error-inline">Could not display coupon.</div>}>
+ <CouponBadge discount={discount} />
+ </TracewayErrorBoundary>
+ )}
+ </section>
+
+ <section className="panel">
+ <h2>Payment</h2>
+ <form onSubmit={handleCheckout} className="checkout-form">
+ <label>
+ Name
+ <input value={form.name} onChange={update('name')} required />
+ </label>
+ <label>
+ Email
+ <input type="email" value={form.email} onChange={update('email')} required />
+ </label>
+ <label>
+ Card last 4
+ <input value={form.card_last4} onChange={update('card_last4')} maxLength={4} required />
+ </label>
+ <button className="primary" type="submit" disabled={busy}>
+ {busy ? 'Placing order…' : 'Place order'}
+ </button>
+ {checkoutError && <div className="error-inline">{checkoutError}</div>}
+ </form>
+ </section>
+ </div>
+ )
+}
diff --git a/testing/shop/frontend/src/ProductsPage.jsx b/testing/shop/frontend/src/ProductsPage.jsx
new file mode 100644
index 00000000..a71638e0
--- /dev/null
+++ b/testing/shop/frontend/src/ProductsPage.jsx
@@ -0,0 +1,94 @@
+import React, { useEffect, useState } from 'react'
+import { useTraceway } from '@tracewayapp/react'
+import { getProducts, addToCart, formatPrice } from './api.js'
+
+export default function ProductsPage({ onCartChanged }) {
+ const { captureException } = useTraceway()
+ const [products, setProducts] = useState([])
+ const [loading, setLoading] = useState(true)
+ const [error, setError] = useState('')
+ const [adding, setAdding] = useState(null)
+ const [quickView, setQuickView] = useState(null)
+ const [notice, setNotice] = useState('')
+
+ async function load() {
+ setLoading(true)
+ setError('')
+ try {
+ const data = await getProducts()
+ setProducts(data)
+ } catch (e) {
+ setError(e.message)
+ } finally {
+ setLoading(false)
+ }
+ }
+
+ useEffect(() => {
+ load()
+ }, [])
+
+ async function handleAdd(productId) {
+ setAdding(productId)
+ setNotice('')
+ await addToCart(productId, 1)
+ setNotice('Added to cart')
+ setAdding(null)
+ onCartChanged?.()
+ }
+
+ function handleQuickView(p) {
+ try {
+ const variant = p.variants.find((v) => v.default)
+ setQuickView({ name: p.name, label: variant.label })
+ } catch (e) {
+ captureException(e)
+ setQuickView({ name: p.name, label: 'No variants available' })
+ }
+ }
+
+ if (loading) return <div className="loading">Loading products…</div>
+ if (error)
+ return (
+ <div className="error-box">
+ <p>{error}</p>
+ <button onClick={load}>Retry</button>
+ </div>
+ )
+
+ return (
+ <div>
+ <h1>Products</h1>
+ {notice && <div className="notice">{notice}</div>}
+ {quickView && (
+ <div className="quickview" onClick={() => setQuickView(null)}>
+ <strong>{quickView.name}</strong> — {quickView.label} <span className="dismiss">✕</span>
+ </div>
+ )}
+ <div className="grid">
+ {products.map((p) => (
+ <div className="card" key={p.id}>
+ <img src={p.image_url} alt={p.name} loading="lazy" />
+ <div className="card-body">
+ <div className="card-cat">{p.category}</div>
+ <div className="card-name">{p.name}</div>
+ <div className="card-desc">{p.description}</div>
+ <div className="card-meta">
+ <span className="price">{formatPrice(p.price_cents)}</span>
+ <span className="reviews">★ {p.review_count}</span>
+ </div>
+ <div className="card-actions">
+ <button className="primary" disabled={adding === p.id} onClick={() => handleAdd(p.id)}>
+ {adding === p.id ? 'Adding…' : 'Add to cart'}
+ </button>
+ <button className="ghost" onClick={() => handleQuickView(p)}>
+ Quick view
+ </button>
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ )
+}
diff --git a/testing/shop/frontend/src/api.js b/testing/shop/frontend/src/api.js
new file mode 100644
index 00000000..f0de078b
--- /dev/null
+++ b/testing/shop/frontend/src/api.js
@@ -0,0 +1,61 @@
+const BASE = import.meta.env.VITE_API_BASE || '/api'
+
+async function request(path, options) {
+ const res = await fetch(BASE + path, options)
+ if (!res.ok) {
+ let detail = ''
+ try {
+ const body = await res.json()
+ detail = body.error || ''
+ } catch {
+ detail = ''
+ }
+ throw new Error(`Request to ${path} failed (${res.status})${detail ? ': ' + detail : ''}`)
+ }
+ if (res.status === 204) return null
+ return res.json()
+}
+
+export function getProducts() {
+ return request('/products')
+}
+
+export function getProduct(id) {
+ return request(`/products/${id}`)
+}
+
+export function getCart() {
+ return request('/cart')
+}
+
+export function addToCart(productId, qty = 1) {
+ return request('/cart', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ product_id: productId, qty })
+ })
+}
+
+export function removeFromCart(id) {
+ return request(`/cart/${id}`, { method: 'DELETE' })
+}
+
+export function applyCoupon(code) {
+ return request('/coupon', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ code })
+ })
+}
+
+export function checkout(payload) {
+ return request('/checkout', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify(payload)
+ })
+}
+
+export function formatPrice(cents) {
+ return '$' + (cents / 100).toFixed(2)
+}
diff --git a/testing/shop/frontend/src/main.jsx b/testing/shop/frontend/src/main.jsx
new file mode 100644
index 00000000..3ab5cf0a
--- /dev/null
+++ b/testing/shop/frontend/src/main.jsx
@@ -0,0 +1,15 @@
+import React from 'react'
+import { createRoot } from 'react-dom/client'
+import { TracewayProvider } from '@tracewayapp/react'
+import App from './App.jsx'
+import './styles.css'
+
+const connectionString =
+ import.meta.env.VITE_TW_CONNECTION ||
+ 'default_token_change_me@http://localhost:8082/api/report'
+
+createRoot(document.getElementById('root')).render(
+ <TracewayProvider connectionString={connectionString} options={{ debug: true, version: '0.1.0' }}>
+ <App />
+ </TracewayProvider>
+)
diff --git a/testing/shop/frontend/src/styles.css b/testing/shop/frontend/src/styles.css
new file mode 100644
index 00000000..d2a5ab79
--- /dev/null
+++ b/testing/shop/frontend/src/styles.css
@@ -0,0 +1,348 @@
+:root {
+ --bg: #0f1115;
+ --panel: #181b22;
+ --panel-2: #1f232c;
+ --border: #2a2f3a;
+ --text: #e8eaed;
+ --muted: #9aa3b2;
+ --accent: #6d9eff;
+ --accent-2: #4f7cff;
+ --danger: #ff6b6b;
+ --good: #4ade80;
+}
+
+* {
+ box-sizing: border-box;
+}
+
+body {
+ margin: 0;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
+ background: var(--bg);
+ color: var(--text);
+}
+
+.app {
+ max-width: 1080px;
+ margin: 0 auto;
+ padding: 0 16px 64px;
+}
+
+.topbar {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 18px 0;
+ border-bottom: 1px solid var(--border);
+ position: sticky;
+ top: 0;
+ background: var(--bg);
+ z-index: 10;
+}
+
+.brand {
+ font-size: 18px;
+ font-weight: 700;
+ cursor: pointer;
+}
+
+.logo {
+ margin-right: 4px;
+}
+
+nav {
+ display: flex;
+ gap: 8px;
+}
+
+nav button {
+ background: transparent;
+ color: var(--muted);
+ border: 1px solid transparent;
+ padding: 8px 14px;
+ border-radius: 8px;
+ cursor: pointer;
+ font-size: 14px;
+}
+
+nav button.active,
+nav button:hover {
+ color: var(--text);
+ border-color: var(--border);
+ background: var(--panel);
+}
+
+.badge {
+ display: inline-block;
+ min-width: 20px;
+ text-align: center;
+ background: var(--accent-2);
+ color: white;
+ border-radius: 999px;
+ padding: 1px 7px;
+ font-size: 12px;
+ margin-left: 4px;
+}
+
+.content {
+ padding-top: 24px;
+}
+
+h1 {
+ font-size: 24px;
+ margin: 0 0 18px;
+}
+
+h2 {
+ font-size: 16px;
+ margin: 0 0 12px;
+ color: var(--muted);
+}
+
+.grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
+ gap: 16px;
+}
+
+.card {
+ background: var(--panel);
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ overflow: hidden;
+ display: flex;
+ flex-direction: column;
+}
+
+.card img {
+ width: 100%;
+ height: 150px;
+ object-fit: cover;
+ background: var(--panel-2);
+}
+
+.card-body {
+ padding: 12px;
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ flex: 1;
+}
+
+.card-cat {
+ font-size: 11px;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: var(--accent);
+}
+
+.card-name {
+ font-weight: 600;
+}
+
+.card-desc {
+ font-size: 13px;
+ color: var(--muted);
+ flex: 1;
+}
+
+.card-meta {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.price {
+ font-weight: 700;
+}
+
+.reviews {
+ font-size: 13px;
+ color: var(--muted);
+}
+
+.card-actions {
+ display: flex;
+ gap: 8px;
+ margin-top: 4px;
+}
+
+button.primary {
+ background: var(--accent-2);
+ color: white;
+ border: none;
+ padding: 9px 14px;
+ border-radius: 8px;
+ cursor: pointer;
+ font-size: 14px;
+ flex: 1;
+}
+
+button.primary:disabled {
+ opacity: 0.6;
+ cursor: default;
+}
+
+button.ghost {
+ background: transparent;
+ color: var(--text);
+ border: 1px solid var(--border);
+ padding: 9px 12px;
+ border-radius: 8px;
+ cursor: pointer;
+ font-size: 14px;
+}
+
+.loading,
+.muted {
+ color: var(--muted);
+}
+
+.notice {
+ background: rgba(74, 222, 128, 0.12);
+ border: 1px solid rgba(74, 222, 128, 0.4);
+ color: var(--good);
+ padding: 8px 12px;
+ border-radius: 8px;
+ margin-bottom: 14px;
+}
+
+.quickview {
+ background: var(--panel-2);
+ border: 1px solid var(--border);
+ padding: 8px 12px;
+ border-radius: 8px;
+ margin-bottom: 14px;
+ cursor: pointer;
+}
+
+.dismiss {
+ float: right;
+ color: var(--muted);
+}
+
+.error-box,
+.error-inline {
+ color: var(--danger);
+}
+
+.error-box {
+ background: var(--panel);
+ border: 1px solid var(--border);
+ padding: 16px;
+ border-radius: 12px;
+}
+
+.error-inline {
+ margin-top: 8px;
+ font-size: 14px;
+}
+
+.cart {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.cart-row {
+ display: flex;
+ align-items: center;
+ gap: 14px;
+ background: var(--panel);
+ border: 1px solid var(--border);
+ border-radius: 10px;
+ padding: 10px 14px;
+}
+
+.cart-row img {
+ width: 56px;
+ height: 56px;
+ object-fit: cover;
+ border-radius: 8px;
+}
+
+.cart-info {
+ flex: 1;
+}
+
+.cart-line-total {
+ font-weight: 700;
+ margin-right: 8px;
+}
+
+.cart-footer {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-top: 12px;
+ padding-top: 14px;
+ border-top: 1px solid var(--border);
+}
+
+.cart-total {
+ font-size: 16px;
+}
+
+.checkout {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ max-width: 520px;
+}
+
+.panel {
+ background: var(--panel);
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ padding: 16px;
+}
+
+.coupon-row {
+ display: flex;
+ gap: 8px;
+}
+
+.coupon-row input,
+.checkout-form input {
+ flex: 1;
+ background: var(--panel-2);
+ border: 1px solid var(--border);
+ border-radius: 8px;
+ padding: 9px 12px;
+ color: var(--text);
+ font-size: 14px;
+ width: 100%;
+}
+
+.coupon-badge {
+ margin-top: 10px;
+ background: rgba(109, 158, 255, 0.12);
+ border: 1px solid rgba(109, 158, 255, 0.4);
+ color: var(--accent);
+ padding: 8px 12px;
+ border-radius: 8px;
+}
+
+.checkout-form {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.checkout-form label {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ font-size: 13px;
+ color: var(--muted);
+}
+
+.confirmation {
+ background: var(--panel);
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ padding: 28px;
+ text-align: center;
+ max-width: 460px;
+ margin: 0 auto;
+}
diff --git a/testing/shop/frontend/vite.config.mjs b/testing/shop/frontend/vite.config.mjs
new file mode 100644
index 00000000..42385e32
--- /dev/null
+++ b/testing/shop/frontend/vite.config.mjs
@@ -0,0 +1,12 @@
+import { defineConfig } from 'vite'
+import react from '@vitejs/plugin-react'
+
+export default defineConfig({
+ server: {
+ port: 5175,
+ proxy: {
+ '/api': 'http://localhost:8090'
+ }
+ },
+ plugins: [react()]
+})