/** * Online (light) pose-runtime loader. * * The npm package ships only the thin page runtime (`pose-runtime.js`). * TF.js + WASM backends load from a CDN; MoveNet (or a custom graph model) * loads from a URL on every WebView boot — same idea as the historical * PoseTracker Front tracking page. * * BlazePose: appends `@tensorflow-models/pose-detection` CDN after TF.js * (no graph `modelUrl`); the page runtime calls `createDetector`. */ import { POSE_RUNTIME_JS, POSE_RUNTIME_VERSION } from './poseRuntimeSource'; import { resolvePoseModel, type PoseModelAlias, type PoseModelKind, type ResolvedPoseModel, } from '../../models/poseModels'; /** TF.js version pinned for CDN scripts (matches offline SDK build). */ export const ONLINE_TFJS_VERSION = '4.22.0'; /** pose-detection UMD pin (BlazePose). */ export const ONLINE_POSE_DETECTION_VERSION = '2.1.3'; const JSDELIVR = 'https://cdn.jsdelivr.net/npm'; export interface OnlineRuntimeUrls { /** Ordered