quantum-component-library 1.4.48-dev.7 → 1.4.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/components.cjs +1 -1
  2. package/dist/components.js +44 -43
  3. package/dist/{dnd-core-vendor-C8EkmZ-Q.js → dnd-core-vendor-CEbjUoFs.js} +2 -2
  4. package/dist/{dnd-core-vendor-CrbsA5lC.cjs → dnd-core-vendor-gqRN0Czq.cjs} +1 -1
  5. package/dist/generated/graphql.d.ts +1 -1
  6. package/dist/{graphql-vendor-BGoVZGn3.cjs → graphql-vendor-AFHxLsy8.cjs} +1 -1
  7. package/dist/{graphql-vendor-BsmTENtE.js → graphql-vendor-hJezYUeG.js} +1 -1
  8. package/dist/hooks.cjs +1 -1
  9. package/dist/hooks.js +13 -13
  10. package/dist/index.cjs +1 -1
  11. package/dist/index.js +130 -125
  12. package/dist/lib/utils/cn.d.ts +2 -0
  13. package/dist/lib/utils/index.d.ts +1 -2
  14. package/dist/{lodash-vendor-CR237hSU.cjs → lodash-vendor-CF0pV_0E.cjs} +1 -1
  15. package/dist/{lodash-vendor-D4ZPCr77.js → lodash-vendor-apNdTTav.js} +1 -1
  16. package/dist/other-D9ROT7p0.js +20 -0
  17. package/dist/other-DyoApG-9.cjs +1 -0
  18. package/dist/{react-dnd-vendor-DQO87S4J.js → react-dnd-vendor-BCrg2QCX.js} +2 -2
  19. package/dist/{react-dnd-vendor-BuaDqq1-.cjs → react-dnd-vendor-PwwXhPmK.cjs} +1 -1
  20. package/dist/{react-select-vendor-C09H7eSP.cjs → react-select-vendor-BeWvSe2q.cjs} +1 -1
  21. package/dist/{react-select-vendor-D8Fzpeg3.js → react-select-vendor-BxbsY5Z-.js} +1 -1
  22. package/dist/services-action-CfZFwhy-.js +40 -0
  23. package/dist/services-action-DBOzfgMl.cjs +1 -0
  24. package/dist/services-human-B98qxeuS.js +798 -0
  25. package/dist/services-human-CnvSTmoF.cjs +1 -0
  26. package/dist/services-rom-DmV5X8yu.cjs +1 -0
  27. package/dist/services-rom-omMeC-vQ.js +18 -0
  28. package/dist/services.cjs +1 -1
  29. package/dist/services.js +52 -844
  30. package/dist/types.cjs +1 -1
  31. package/dist/types.js +11 -11
  32. package/dist/utils-cn-CgdSr4hO.js +7 -0
  33. package/dist/utils-cn-FIKrq5Mb.cjs +1 -0
  34. package/dist/utils-conversion-CWypeWsT.cjs +1 -0
  35. package/dist/utils-conversion-ChFbq8I2.js +94 -0
  36. package/dist/utils-memo-BJJP2KfI.cjs +1 -0
  37. package/dist/utils-memo-DtXdOqCT.js +13 -0
  38. package/dist/utils-parameters-BBFuBK2B.js +21 -0
  39. package/dist/utils-parameters-dwKmz1VU.cjs +1 -0
  40. package/dist/utils-text-CN3zLiZ7.js +5 -0
  41. package/dist/utils-text-lORqO4uI.cjs +1 -0
  42. package/dist/utils.cjs +1 -1
  43. package/dist/utils.js +29 -126
  44. package/dist/{vendor-CRvKgRcl.js → vendor-BOD7IxCS.js} +1 -1
  45. package/dist/{vendor-BwXiOWc8.cjs → vendor-IPtJZCbx.cjs} +1 -1
  46. package/package.json +1 -1
  47. package/dist/other-C4VnLmM6.js +0 -15
  48. package/dist/other-Dp3RPYfF.cjs +0 -1
package/dist/types.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./services.cjs"),r=require("./generated-graphql.cjs"),p=require("./lodash-vendor-CR237hSU.cjs"),m=require("./utils.cjs"),l=(e,t)=>t==="left"||t==="right"?{sagittal:e.sagittal}:t==="forward"||t==="backward"?{frontal:e.frontal}:null,S=(e,t,n)=>t==="sensor"?e?.sensor_angle??null:t==="pose"?(e?.pose_angle&&l(e.pose_angle,n))??null:e?.sensor_angle?l(e.sensor_angle)??null:(e?.pose_angle&&l(e.pose_angle,n))??null,k=(e,t)=>(t==="sensor"?e?.sensor_angle:t==="pose"?e?.pose_angle:e?.sensor_angle||e?.pose_angle)||null,R=["frontal","sagittal","transverse"],T=e=>"limbs"in e,v=(e,t)=>t==="y"&&(e==="LeftFoot"||e==="RightFoot"||e==="LeftShank"||e==="RightShank"),F=(e,t)=>{switch(e){case"Head":return"Head";case"UpperBack":return"UpperBack";case"CenterBack":return"CenterBack";case"LowerBack":return"LowerBack";case"Thigh":return t==="left"?"LeftThigh":"RightThigh";case"Shank":return t==="left"?"LeftShank":"RightShank";case"Foot":return t==="left"?"LeftFoot":"RightFoot";case"UpperArm":return t==="left"?"LeftUpperArm":"RightUpperArm";case"Forearm":return t==="left"?"LeftForearm":"RightForearm";case"Pelvis":return t==="left"?"LeftPelvis":"RightPelvis";case"Clavicle":return t==="left"?"LeftClavicle":"RightClavicle"}},A=e=>e.startsWith("Left")?"left":e.startsWith("Right")?"right":null,b=(e,t)=>{switch(e){case"Ankle":return t==="left"?"LeftAnkle":"RightAnkle";case"Knee":return t==="left"?"LeftKnee":"RightKnee";case"Hip":return t==="left"?"LeftHip":"RightHip";case"Shoulder":return t==="left"?"LeftShoulder":"RightShoulder";case"Elbow":return t==="left"?"LeftElbow":"RightElbow";case"Spine":return"TotalSpine";case"Neck":return"Neck"}},h=e=>{switch(e){case"LeftAnkle":case"RightAnkle":return"Ankle";case"LeftKnee":case"RightKnee":return"Knee";case"LeftHip":case"RightHip":return"Hip";case"LeftShoulder":case"RightShoulder":return"Shoulder";case"LeftElbow":case"RightElbow":return"Elbow";case"ChestSpine":case"NavalSpine":case"TotalSpine":return"Spine";case"Neck":return"Neck"}},u=e=>{switch(e){case"Head":return"Head";case"UpperBack":return"UpperBack";case"CenterBack":return"CenterBack";case"LowerBack":return"LowerBack";case"LeftThigh":case"RightThigh":return"Thigh";case"LeftShank":case"RightShank":return"Shank";case"LeftFoot":case"RightFoot":return"Foot";case"LeftUpperArm":case"RightUpperArm":return"UpperArm";case"LeftForearm":case"RightForearm":return"Forearm";case"LeftPelvis":case"RightPelvis":return"Pelvis";case"LeftClavicle":case"RightClavicle":return"Clavicle"}};var g=(e=>(e.Sensor="sensor",e.Pose="pose",e))(g||{});const U=e=>"joint"in e?h(e.joint):u(e.segment),w=["joint","limb","acceleration","angular_velocity"],B=["frontal","sagittal","transverse"],P=["x","y","z"],j=e=>{switch(`${e}`){case r.SensorLocation.Thorax:return"UpperBack";case r.SensorLocation.CenterBack:return"CenterBack";case r.SensorLocation.Pelvis:return"LowerBack";case r.SensorLocation.LeftThigh:return"LeftThigh";case r.SensorLocation.RightThigh:return"RightThigh";case r.SensorLocation.LeftShank:return"LeftShank";case r.SensorLocation.RightShank:return"RightShank";case r.SensorLocation.LeftFoot:return"LeftFoot";case r.SensorLocation.RightFoot:return"RightFoot";case r.SensorLocation.LeftUpperArm:return"LeftUpperArm";case r.SensorLocation.RightUpperArm:return"RightUpperArm";case r.SensorLocation.LeftForearm:return"LeftForearm";case r.SensorLocation.RightForearm:return"RightForearm";case r.SensorLocation.Head:return"Head"}return console.warn(`Unknown sensor location: ${e}`),null},N=e=>{switch(e){case r.SensorLocation.Thorax:return"Thorax";case r.SensorLocation.CenterBack:return"Center Back";case r.SensorLocation.Pelvis:return"Pelvis";case r.SensorLocation.LeftThigh:return"Left Thigh";case r.SensorLocation.RightThigh:return"Right Thigh";case r.SensorLocation.LeftShank:return"Left Shank";case r.SensorLocation.RightShank:return"Right Shank";case r.SensorLocation.LeftFoot:return"Left Foot";case r.SensorLocation.RightFoot:return"Right Foot";case r.SensorLocation.LeftUpperArm:return"Left Upper Arm";case r.SensorLocation.RightUpperArm:return"Right Upper Arm";case r.SensorLocation.LeftForearm:return"Left Forearm";case r.SensorLocation.RightForearm:return"Right Forearm";case r.SensorLocation.Head:return"Head"}return console.warn(`Unknown sensor location: ${e}`),"Unknown"},C=()=>{const e=[],t={add:(n,o,a,c,s=!1)=>{const f={unit:"Count",value:0};return o?e.push({desc:{name:n,hint:a||null},value:o,isLoading:s,suffix:c||void 0}):s&&e.push({desc:{name:n,hint:a||null},value:f,isLoading:s,suffix:c||void 0}),t},build:()=>e};return t},d=(e,t)=>({unit:e,value:t}),H=(e,t)=>{if(t!=null)return d(e,t)},L=e=>"joint"in e?e.joint:e.segment,O=e=>L(e).toString(),y=e=>"plane"in e?e.plane:e.axis,x=e=>"plane"in e?e.plane:e.axis,I=e=>"joint"in e?i.jointNames[e.joint]:i.limbNames[e.segment],E=e=>{if(!e)return"Loading...";if(!e.action)return e.name??"Unknown Action";const t=e.action.name??"Unknown Action",n=e.actionSide?`${e.actionSide}`:"";return`${t} ${n} (Trial ${e.name??"1"})`},K=e=>typeof e=="object"&&"SyncError"in e,_=(e,t)=>Object.values(e).some(n=>t.id in n&&Object.keys(n[t.id]).length>0),q=(e,t)=>Math.max(...Object.values(e).map(n=>t.id in n?Object.keys(n[t.id]).length:0)),$=(e,t,n)=>Object.values(e).some(o=>t.id in o&&n in o[t.id]),J=(e,t)=>e[t.kind]?.[t.value.id]?.[i.planeOrAxis(t)],M=(e,t,n)=>{const o=structuredClone(e);if(n===void 0){const a=i.planeOrAxis(t);t.kind in o&&t.value.id in o[t.kind]&&a in o[t.kind][t.value.id]&&delete o[t.kind][t.value.id][a]}else p.merge(o,{[t.kind]:{[t.value.id]:{[i.planeOrAxis(t)]:n}}});return o},W=e=>Object.entries(e).flatMap(([t,n])=>Object.entries(n).flatMap(([o,a])=>Object.entries(a).map(([c,s])=>({min:s.min,max:s.max,kind:m.safelyConvertEnum(s.kind),partDimension:c,partId:o,partKind:t})))),D=e=>e.reduce((t,n)=>({...t,[n.partKind]:{...t[n.partKind]||{},[n.partId]:{...t[n.partKind]?.[n.partId]||{},[n.partDimension]:{kind:n.kind,min:n.min,max:n.max}}}}),{joint:{},limb:{},acceleration:{}}),V=e=>Object.values(e).every(t=>Object.keys(t).length===0),G=(e,t)=>{if(e.kind!==t.kind)return!1;switch(e.kind){case"Zed":return e.id===t.id;case"Usb":return e.name===t.name;case"GoPro":return e.id===t.id}};exports.AngleDataSource=g;exports.analysisStatBuilder=C;exports.areThresholdsEmpty=V;exports.availablePlanes=R;exports.axes=P;exports.canBeVerticalForce=v;exports.dimensionName=x;exports.dimensionToLegacy=y;exports.getAnalysisName=E;exports.getAnalysisPartIdNoSide=U;exports.getJointIdNoSide=h;exports.getJointIdWithSide=b;exports.getLimbIdNoSide=u;exports.getLimbIdWithSide=F;exports.getPointSide=A;exports.isDeviceEqual=G;exports.isLimbTrackingFrame=T;exports.isSyncError=K;exports.jointAngle=S;exports.jointOrLimbHasThreshold=_;exports.jointOrLimbThresholdCount=q;exports.limbAngle=k;exports.mkUnit=d;exports.partAndPlaneHasThreshold=$;exports.partIdName=I;exports.partIdToJointLimbId=L;exports.partIdToString=O;exports.partKinds=w;exports.planes=B;exports.sensorLocationName=N;exports.sensorLocationToLimbId=j;exports.thresholdForPart=J;exports.thresholdFragmentsToThresholds=D;exports.thresholdsToInput=W;exports.tryMkUnit=H;exports.updateThreshold=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./services-human-CnvSTmoF.cjs"),r=require("./generated-graphql.cjs"),m=require("./lodash-vendor-CF0pV_0E.cjs"),p=require("./utils-conversion-CWypeWsT.cjs"),l=(e,t)=>t==="left"||t==="right"?{sagittal:e.sagittal}:t==="forward"||t==="backward"?{frontal:e.frontal}:null,S=(e,t,n)=>t==="sensor"?e?.sensor_angle??null:t==="pose"?(e?.pose_angle&&l(e.pose_angle,n))??null:e?.sensor_angle?l(e.sensor_angle)??null:(e?.pose_angle&&l(e.pose_angle,n))??null,k=(e,t)=>(t==="sensor"?e?.sensor_angle:t==="pose"?e?.pose_angle:e?.sensor_angle||e?.pose_angle)||null,R=["frontal","sagittal","transverse"],T=e=>"limbs"in e,v=(e,t)=>t==="y"&&(e==="LeftFoot"||e==="RightFoot"||e==="LeftShank"||e==="RightShank"),F=(e,t)=>{switch(e){case"Head":return"Head";case"UpperBack":return"UpperBack";case"CenterBack":return"CenterBack";case"LowerBack":return"LowerBack";case"Thigh":return t==="left"?"LeftThigh":"RightThigh";case"Shank":return t==="left"?"LeftShank":"RightShank";case"Foot":return t==="left"?"LeftFoot":"RightFoot";case"UpperArm":return t==="left"?"LeftUpperArm":"RightUpperArm";case"Forearm":return t==="left"?"LeftForearm":"RightForearm";case"Pelvis":return t==="left"?"LeftPelvis":"RightPelvis";case"Clavicle":return t==="left"?"LeftClavicle":"RightClavicle"}},A=e=>e.startsWith("Left")?"left":e.startsWith("Right")?"right":null,b=(e,t)=>{switch(e){case"Ankle":return t==="left"?"LeftAnkle":"RightAnkle";case"Knee":return t==="left"?"LeftKnee":"RightKnee";case"Hip":return t==="left"?"LeftHip":"RightHip";case"Shoulder":return t==="left"?"LeftShoulder":"RightShoulder";case"Elbow":return t==="left"?"LeftElbow":"RightElbow";case"Spine":return"TotalSpine";case"Neck":return"Neck"}},u=e=>{switch(e){case"LeftAnkle":case"RightAnkle":return"Ankle";case"LeftKnee":case"RightKnee":return"Knee";case"LeftHip":case"RightHip":return"Hip";case"LeftShoulder":case"RightShoulder":return"Shoulder";case"LeftElbow":case"RightElbow":return"Elbow";case"ChestSpine":case"NavalSpine":case"TotalSpine":return"Spine";case"Neck":return"Neck"}},h=e=>{switch(e){case"Head":return"Head";case"UpperBack":return"UpperBack";case"CenterBack":return"CenterBack";case"LowerBack":return"LowerBack";case"LeftThigh":case"RightThigh":return"Thigh";case"LeftShank":case"RightShank":return"Shank";case"LeftFoot":case"RightFoot":return"Foot";case"LeftUpperArm":case"RightUpperArm":return"UpperArm";case"LeftForearm":case"RightForearm":return"Forearm";case"LeftPelvis":case"RightPelvis":return"Pelvis";case"LeftClavicle":case"RightClavicle":return"Clavicle"}};var g=(e=>(e.Sensor="sensor",e.Pose="pose",e))(g||{});const U=e=>"joint"in e?u(e.joint):h(e.segment),w=["joint","limb","acceleration","angular_velocity"],B=["frontal","sagittal","transverse"],P=["x","y","z"],j=e=>{switch(`${e}`){case r.SensorLocation.Thorax:return"UpperBack";case r.SensorLocation.CenterBack:return"CenterBack";case r.SensorLocation.Pelvis:return"LowerBack";case r.SensorLocation.LeftThigh:return"LeftThigh";case r.SensorLocation.RightThigh:return"RightThigh";case r.SensorLocation.LeftShank:return"LeftShank";case r.SensorLocation.RightShank:return"RightShank";case r.SensorLocation.LeftFoot:return"LeftFoot";case r.SensorLocation.RightFoot:return"RightFoot";case r.SensorLocation.LeftUpperArm:return"LeftUpperArm";case r.SensorLocation.RightUpperArm:return"RightUpperArm";case r.SensorLocation.LeftForearm:return"LeftForearm";case r.SensorLocation.RightForearm:return"RightForearm";case r.SensorLocation.Head:return"Head"}return console.warn(`Unknown sensor location: ${e}`),null},C=e=>{switch(e){case r.SensorLocation.Thorax:return"Thorax";case r.SensorLocation.CenterBack:return"Center Back";case r.SensorLocation.Pelvis:return"Pelvis";case r.SensorLocation.LeftThigh:return"Left Thigh";case r.SensorLocation.RightThigh:return"Right Thigh";case r.SensorLocation.LeftShank:return"Left Shank";case r.SensorLocation.RightShank:return"Right Shank";case r.SensorLocation.LeftFoot:return"Left Foot";case r.SensorLocation.RightFoot:return"Right Foot";case r.SensorLocation.LeftUpperArm:return"Left Upper Arm";case r.SensorLocation.RightUpperArm:return"Right Upper Arm";case r.SensorLocation.LeftForearm:return"Left Forearm";case r.SensorLocation.RightForearm:return"Right Forearm";case r.SensorLocation.Head:return"Head"}return console.warn(`Unknown sensor location: ${e}`),"Unknown"},N=()=>{const e=[],t={add:(n,o,a,c,s=!1)=>{const f={unit:"Count",value:0};return o?e.push({desc:{name:n,hint:a||null},value:o,isLoading:s,suffix:c||void 0}):s&&e.push({desc:{name:n,hint:a||null},value:f,isLoading:s,suffix:c||void 0}),t},build:()=>e};return t},d=(e,t)=>({unit:e,value:t}),H=(e,t)=>{if(t!=null)return d(e,t)},L=e=>"joint"in e?e.joint:e.segment,O=e=>L(e).toString(),y=e=>"plane"in e?e.plane:e.axis,x=e=>"plane"in e?e.plane:e.axis,I=e=>"joint"in e?i.jointNames[e.joint]:i.limbNames[e.segment],E=e=>{if(!e)return"Loading...";if(!e.action)return e.name??"Unknown Action";const t=e.action.name??"Unknown Action",n=e.actionSide?`${e.actionSide}`:"";return`${t} ${n} (Trial ${e.name??"1"})`},K=e=>typeof e=="object"&&"SyncError"in e,_=(e,t)=>Object.values(e).some(n=>t.id in n&&Object.keys(n[t.id]).length>0),q=(e,t)=>Math.max(...Object.values(e).map(n=>t.id in n?Object.keys(n[t.id]).length:0)),$=(e,t,n)=>Object.values(e).some(o=>t.id in o&&n in o[t.id]),J=(e,t)=>e[t.kind]?.[t.value.id]?.[i.planeOrAxis(t)],M=(e,t,n)=>{const o=structuredClone(e);if(n===void 0){const a=i.planeOrAxis(t);t.kind in o&&t.value.id in o[t.kind]&&a in o[t.kind][t.value.id]&&delete o[t.kind][t.value.id][a]}else m.merge(o,{[t.kind]:{[t.value.id]:{[i.planeOrAxis(t)]:n}}});return o},W=e=>Object.entries(e).flatMap(([t,n])=>Object.entries(n).flatMap(([o,a])=>Object.entries(a).map(([c,s])=>({min:s.min,max:s.max,kind:p.safelyConvertEnum(s.kind),partDimension:c,partId:o,partKind:t})))),D=e=>e.reduce((t,n)=>({...t,[n.partKind]:{...t[n.partKind]||{},[n.partId]:{...t[n.partKind]?.[n.partId]||{},[n.partDimension]:{kind:n.kind,min:n.min,max:n.max}}}}),{joint:{},limb:{},acceleration:{}}),V=e=>Object.values(e).every(t=>Object.keys(t).length===0),G=(e,t)=>{if(e.kind!==t.kind)return!1;switch(e.kind){case"Zed":return e.id===t.id;case"Usb":return e.name===t.name;case"GoPro":return e.id===t.id}};exports.AngleDataSource=g;exports.analysisStatBuilder=N;exports.areThresholdsEmpty=V;exports.availablePlanes=R;exports.axes=P;exports.canBeVerticalForce=v;exports.dimensionName=x;exports.dimensionToLegacy=y;exports.getAnalysisName=E;exports.getAnalysisPartIdNoSide=U;exports.getJointIdNoSide=u;exports.getJointIdWithSide=b;exports.getLimbIdNoSide=h;exports.getLimbIdWithSide=F;exports.getPointSide=A;exports.isDeviceEqual=G;exports.isLimbTrackingFrame=T;exports.isSyncError=K;exports.jointAngle=S;exports.jointOrLimbHasThreshold=_;exports.jointOrLimbThresholdCount=q;exports.limbAngle=k;exports.mkUnit=d;exports.partAndPlaneHasThreshold=$;exports.partIdName=I;exports.partIdToJointLimbId=L;exports.partIdToString=O;exports.partKinds=w;exports.planes=B;exports.sensorLocationName=C;exports.sensorLocationToLimbId=j;exports.thresholdForPart=J;exports.thresholdFragmentsToThresholds=D;exports.thresholdsToInput=W;exports.tryMkUnit=H;exports.updateThreshold=M;
package/dist/types.js CHANGED
@@ -1,7 +1,7 @@
1
- import { jointNames as h, limbNames as f, planeOrAxis as l } from "./services.js";
1
+ import { n as h, m as f, G as l } from "./services-human-B98qxeuS.js";
2
2
  import { SensorLocation as n } from "./generated-graphql.js";
3
- import { m as g } from "./lodash-vendor-D4ZPCr77.js";
4
- import { safelyConvertEnum as p } from "./utils.js";
3
+ import { m as g } from "./lodash-vendor-apNdTTav.js";
4
+ import { l as p } from "./utils-conversion-ChFbq8I2.js";
5
5
  const c = (e, t) => t === "left" || t === "right" ? {
6
6
  sagittal: e.sagittal
7
7
  } : t === "forward" || t === "backward" ? {
@@ -211,15 +211,15 @@ const P = (e) => "joint" in e ? m(e.joint) : d(e.segment), x = [
211
211
  return e.name ?? "Unknown Action";
212
212
  const t = e.action.name ?? "Unknown Action", r = e.actionSide ? `${e.actionSide}` : "";
213
213
  return `${t} ${r} (Trial ${e.name ?? "1"})`;
214
- }, D = (e) => typeof e == "object" && "SyncError" in e, V = (e, t) => Object.values(e).some(
214
+ }, D = (e) => typeof e == "object" && "SyncError" in e, G = (e, t) => Object.values(e).some(
215
215
  (r) => t.id in r && Object.keys(r[t.id]).length > 0
216
- ), q = (e, t) => Math.max(
216
+ ), V = (e, t) => Math.max(
217
217
  ...Object.values(e).map(
218
218
  (r) => t.id in r ? Object.keys(r[t.id]).length : 0
219
219
  )
220
- ), z = (e, t, r) => Object.values(e).some(
220
+ ), q = (e, t, r) => Object.values(e).some(
221
221
  (a) => t.id in a && r in a[t.id]
222
- ), G = (e, t) => e[t.kind]?.[t.value.id]?.[l(t)], Z = (e, t, r) => {
222
+ ), z = (e, t) => e[t.kind]?.[t.value.id]?.[l(t)], Z = (e, t, r) => {
223
223
  const a = structuredClone(e);
224
224
  if (r === void 0) {
225
225
  const s = l(t);
@@ -296,11 +296,11 @@ export {
296
296
  b as isLimbTrackingFrame,
297
297
  D as isSyncError,
298
298
  A as jointAngle,
299
- V as jointOrLimbHasThreshold,
300
- q as jointOrLimbThresholdCount,
299
+ G as jointOrLimbHasThreshold,
300
+ V as jointOrLimbThresholdCount,
301
301
  w as limbAngle,
302
302
  L as mkUnit,
303
- z as partAndPlaneHasThreshold,
303
+ q as partAndPlaneHasThreshold,
304
304
  W as partIdName,
305
305
  R as partIdToJointLimbId,
306
306
  $ as partIdToString,
@@ -308,7 +308,7 @@ export {
308
308
  N as planes,
309
309
  E as sensorLocationName,
310
310
  _ as sensorLocationToLimbId,
311
- G as thresholdForPart,
311
+ z as thresholdForPart,
312
312
  X as thresholdFragmentsToThresholds,
313
313
  Q as thresholdsToInput,
314
314
  y as tryMkUnit,
@@ -0,0 +1,7 @@
1
+ import { t, c } from "./tailwind-vendor-B4y94WzT.js";
2
+ function n(...r) {
3
+ return t(c(r));
4
+ }
5
+ export {
6
+ n as c
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./tailwind-vendor-C0M23-WD.cjs");function r(...e){return n.twMerge(n.clsx(e))}exports.cn=r;
@@ -0,0 +1 @@
1
+ "use strict";const $=require("./services-human-CnvSTmoF.cjs"),c=require("./moment-vendor-1cRqq0AH.cjs"),h=s=>s*39.3700787402,l=s=>s/39.3700787402,m=s=>s*2.20462262185,g=s=>s/2.20462262185,i=(s,t=!1)=>s==null?null:t?s*180/Math.PI:Math.round(s*(180/Math.PI)),T=s=>s==null?null:s*(Math.PI/180),d=s=>c.hooks.duration(s,"ms").humanize({ss:1}),M=(s,t=!1,r=!0)=>{const n=c.hooks.duration(s,"ms"),o=r?n.minutes().toString().padStart(2,"0"):n.minutes().toString(),e=n.seconds().toString().padStart(2,"0"),u=Math.round(n.milliseconds()).toString().padStart(3,"0");return t?`${o}:${e}.${u}`:`${o}:${e}`},f=(s,t=!1)=>{const r=c.hooks.duration(s,"seconds"),o=(r.minutes()+r.hours()*60).toString().padStart(2,"0"),e=r.seconds().toString().padStart(2,"0");if(t){const u=Math.round(r.milliseconds()).toString().padStart(3,"0");return`${o}:${e}.${u}`}return`${o}:${e}`},S=s=>{const t=c.hooks.duration(s,"ms"),r=t.hours(),n=t.minutes(),o=t.seconds(),e=t.milliseconds();return n<1?`${o}.${Math.floor(e/100)} seconds`:r<1?`${n} minutes`:`${r} hours`},p=s=>{const t=c.hooks.duration(s,"ms"),r=t.hours().toString().padStart(2,"0"),n=t.minutes().toString().padStart(2,"0"),o=t.seconds().toString().padStart(2,"0");return`${r}:${n}:${o}`},P=s=>{const t=c.hooks.duration(s,"seconds"),r=t.hours().toString().padStart(2,"0"),n=t.minutes().toString().padStart(2,"0"),o=t.seconds().toString().padStart(2,"0");return`${r}:${n}:${o}`},F=(s,t=!1)=>{const[r,n,o]=s.split(":").map(Number),e=t?999:0;return c.hooks.duration({hours:r,minutes:n,seconds:o,milliseconds:e}).asMilliseconds()},a=(s,t)=>{const r=new Intl.NumberFormat("en-US",{maximumFractionDigits:2});switch(s){case"Milliseconds":return S(t);case"DeltaMilliseconds":return d(t);case"Meters":return`${r.format(t)}m`;case"MetersPerSecond":return`${r.format(t)}m/s`;case"MetersPerSecondSq":return`${r.format(t)}m/s²`;case"Kg":return`${Math.round(m(t))}lbs`;case"Rad":return`${r.format(i(t)??0)}°`;case"RadPerSecond":return`${r.format(i(t)??0)}°/s`;case"RadPerSecondSq":return`${r.format(i(t)??0)}°/s²`;case"Frame":return`${r.format(t)}`;case"Percent":return new Intl.NumberFormat("en-US",{style:"percent"}).format(t);case"Count":return Math.round(t).toString();case"Centimeters":return`${r.format(t)}cm`;case"PassFail":return t>0?"Pass":"Fail";default:return t.toFixed(2)}},k=s=>a(s.unit,s.value),R=s=>s,D=s=>{const t=r=>$.getParameterAngleDirectionName(r,s);switch(s.partKind){case"joint":return r=>`${a("Rad",Math.abs(r))} ${t(r)}`;case"segment":return r=>`${a("Rad",Math.abs(r))} ${t(r)}`;case"acceleration":return r=>`${a("MetersPerSecondSq",r)} ${t(r)}`;case"angular_velocity":return r=>`${a("RadPerSecond",r)} ${t(r)}`;default:return r=>r.toString()}};exports.degToRad=T;exports.getFormatterForParameter=D;exports.getUnitFormatted=k;exports.getUnitValueFormatted=a;exports.hourMinSecStrToMs=F;exports.inchesToMeters=l;exports.kgToPounds=m;exports.metersToInches=h;exports.msToDurationStr=d;exports.msToHourMinSecStr=p;exports.msToPrettyStr=S;exports.msToTimestampStr=M;exports.poundsToKg=g;exports.radToDeg=i;exports.sToTimestampStr=f;exports.safelyConvertEnum=R;exports.secondsToTimestampStr=P;
@@ -0,0 +1,94 @@
1
+ import { V as d } from "./services-human-B98qxeuS.js";
2
+ import { h as a } from "./moment-vendor-DMLRxgRE.js";
3
+ const g = (s) => s * 39.3700787402, f = (s) => s / 39.3700787402, m = (s) => s * 2.20462262185, p = (s) => s / 2.20462262185, u = (s, t = !1) => s == null ? null : t ? s * 180 / Math.PI : Math.round(s * (180 / Math.PI)), M = (s) => s == null ? null : s * (Math.PI / 180), S = (s) => a.duration(s, "ms").humanize({ ss: 1 }), P = (s, t = !1, n = !0) => {
4
+ const r = a.duration(s, "ms"), o = n ? r.minutes().toString().padStart(2, "0") : r.minutes().toString(), e = r.seconds().toString().padStart(2, "0"), i = Math.round(r.milliseconds()).toString().padStart(3, "0");
5
+ return t ? `${o}:${e}.${i}` : `${o}:${e}`;
6
+ }, T = (s, t = !1) => {
7
+ const n = a.duration(s, "seconds"), o = (n.minutes() + n.hours() * 60).toString().padStart(2, "0"), e = n.seconds().toString().padStart(2, "0");
8
+ if (t) {
9
+ const i = Math.round(n.milliseconds()).toString().padStart(3, "0");
10
+ return `${o}:${e}.${i}`;
11
+ }
12
+ return `${o}:${e}`;
13
+ }, $ = (s) => {
14
+ const t = a.duration(s, "ms"), n = t.hours(), r = t.minutes(), o = t.seconds(), e = t.milliseconds();
15
+ return r < 1 ? `${o}.${Math.floor(e / 100)} seconds` : n < 1 ? `${r} minutes` : `${n} hours`;
16
+ }, F = (s) => {
17
+ const t = a.duration(s, "ms"), n = t.hours().toString().padStart(2, "0"), r = t.minutes().toString().padStart(2, "0"), o = t.seconds().toString().padStart(2, "0");
18
+ return `${n}:${r}:${o}`;
19
+ }, b = (s) => {
20
+ const t = a.duration(s, "seconds"), n = t.hours().toString().padStart(2, "0"), r = t.minutes().toString().padStart(2, "0"), o = t.seconds().toString().padStart(2, "0");
21
+ return `${n}:${r}:${o}`;
22
+ }, R = (s, t = !1) => {
23
+ const [n, r, o] = s.split(":").map(Number), e = t ? 999 : 0;
24
+ return a.duration({ hours: n, minutes: r, seconds: o, milliseconds: e }).asMilliseconds();
25
+ }, c = (s, t) => {
26
+ const n = new Intl.NumberFormat("en-US", { maximumFractionDigits: 2 });
27
+ switch (s) {
28
+ case "Milliseconds":
29
+ return $(t);
30
+ case "DeltaMilliseconds":
31
+ return S(t);
32
+ case "Meters":
33
+ return `${n.format(t)}m`;
34
+ case "MetersPerSecond":
35
+ return `${n.format(t)}m/s`;
36
+ case "MetersPerSecondSq":
37
+ return `${n.format(t)}m/s²`;
38
+ case "Kg":
39
+ return `${Math.round(m(t))}lbs`;
40
+ case "Rad":
41
+ return `${n.format(u(t) ?? 0)}°`;
42
+ case "RadPerSecond":
43
+ return `${n.format(u(t) ?? 0)}°/s`;
44
+ case "RadPerSecondSq":
45
+ return `${n.format(u(t) ?? 0)}°/s²`;
46
+ case "Frame":
47
+ return `${n.format(t)}`;
48
+ case "Percent":
49
+ return new Intl.NumberFormat("en-US", { style: "percent" }).format(t);
50
+ case "Count":
51
+ return Math.round(t).toString();
52
+ case "Centimeters":
53
+ return `${n.format(t)}cm`;
54
+ case "PassFail":
55
+ return t > 0 ? "Pass" : "Fail";
56
+ default:
57
+ return t.toFixed(2);
58
+ }
59
+ }, I = (s) => c(s.unit, s.value), D = (s) => s, w = (s) => {
60
+ const t = (n) => d(n, s);
61
+ switch (s.partKind) {
62
+ case "joint":
63
+ return (n) => `${c("Rad", Math.abs(n))} ${t(n)}`;
64
+ case "segment":
65
+ return (n) => `${c("Rad", Math.abs(n))} ${t(n)}`;
66
+ case "acceleration":
67
+ return (n) => `${c("MetersPerSecondSq", n)} ${t(
68
+ n
69
+ )}`;
70
+ case "angular_velocity":
71
+ return (n) => `${c("RadPerSecond", n)} ${t(n)}`;
72
+ default:
73
+ return (n) => n.toString();
74
+ }
75
+ };
76
+ export {
77
+ S as a,
78
+ P as b,
79
+ $ as c,
80
+ M as d,
81
+ F as e,
82
+ b as f,
83
+ c as g,
84
+ R as h,
85
+ f as i,
86
+ I as j,
87
+ m as k,
88
+ D as l,
89
+ g as m,
90
+ w as n,
91
+ p,
92
+ u as r,
93
+ T as s
94
+ };
@@ -0,0 +1 @@
1
+ "use strict";const c=r=>{const t=new Map;return((...n)=>{const e=JSON.stringify(n);if(t.has(e))return t.get(e);const s=r(...n);return t.set(e,s),s})};exports.memo=c;
@@ -0,0 +1,13 @@
1
+ const c = (s) => {
2
+ const t = /* @__PURE__ */ new Map();
3
+ return ((...n) => {
4
+ const e = JSON.stringify(n);
5
+ if (t.has(e))
6
+ return t.get(e);
7
+ const r = s(...n);
8
+ return t.set(e, r), r;
9
+ });
10
+ };
11
+ export {
12
+ c as m
13
+ };
@@ -0,0 +1,21 @@
1
+ import { ThresholdKind as n } from "./generated-graphql.js";
2
+ const m = (i) => ({
3
+ partId: "segment" in i.id ? i.id.segment : i.id.joint,
4
+ partKind: "segment" in i.id ? "limb" : "joint",
5
+ partDimension: i.plane,
6
+ min: i.min,
7
+ max: i.max,
8
+ kind: i.kind
9
+ }), a = (i) => i.map(m), s = (i) => ({
10
+ id: i.partKind === "limb" ? { segment: i.partId } : { joint: i.partId },
11
+ plane: i.partDimension,
12
+ min: i.min,
13
+ max: i.max,
14
+ kind: i.kind === n.Limit ? n.Limit : n.Target
15
+ }), o = (i) => i.map(s);
16
+ export {
17
+ m as a,
18
+ s as b,
19
+ a as p,
20
+ o as t
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./generated-graphql.cjs"),e=i=>({partId:"segment"in i.id?i.id.segment:i.id.joint,partKind:"segment"in i.id?"limb":"joint",partDimension:i.plane,min:i.min,max:i.max,kind:i.kind}),t=i=>i.map(e),s=i=>({id:i.partKind==="limb"?{segment:i.partId}:{joint:i.partId},plane:i.partDimension,min:i.min,max:i.max,kind:i.kind===n.ThresholdKind.Limit?n.ThresholdKind.Limit:n.ThresholdKind.Target}),d=i=>i.map(s);exports.parameterToThreshold=e;exports.parametersToThresholds=t;exports.thresholdToParameter=s;exports.thresholdsToParameters=d;
@@ -0,0 +1,5 @@
1
+ const s = (a) => a.split(" ").map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" "), l = (a, p) => p === 1 ? a : `${a}s`;
2
+ export {
3
+ s as c,
4
+ l as p
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=l=>l.split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "),t=(l,i)=>i===1?l:`${l}s`;exports.capitalizeAll=a;exports.pluralize=t;
package/dist/utils.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./tailwind-vendor-C0M23-WD.cjs"),p=require("./services.cjs"),i=require("./moment-vendor-1cRqq0AH.cjs"),d=require("./generated-graphql.cjs"),$=t=>t*39.3700787402,M=t=>t/39.3700787402,l=t=>t*2.20462262185,f=t=>t/2.20462262185,c=(t,n=!1)=>t==null?null:n?t*180/Math.PI:Math.round(t*(180/Math.PI)),P=t=>t==null?null:t*(Math.PI/180),S=t=>i.hooks.duration(t,"ms").humanize({ss:1}),F=(t,n=!1,s=!0)=>{const r=i.hooks.duration(t,"ms"),e=s?r.minutes().toString().padStart(2,"0"):r.minutes().toString(),o=r.seconds().toString().padStart(2,"0"),m=Math.round(r.milliseconds()).toString().padStart(3,"0");return n?`${e}:${o}.${m}`:`${e}:${o}`},k=(t,n=!1)=>{const s=i.hooks.duration(t,"seconds"),e=(s.minutes()+s.hours()*60).toString().padStart(2,"0"),o=s.seconds().toString().padStart(2,"0");if(n){const m=Math.round(s.milliseconds()).toString().padStart(3,"0");return`${e}:${o}.${m}`}return`${e}:${o}`},h=t=>{const n=i.hooks.duration(t,"ms"),s=n.hours(),r=n.minutes(),e=n.seconds(),o=n.milliseconds();return r<1?`${e}.${Math.floor(o/100)} seconds`:s<1?`${r} minutes`:`${s} hours`},b=t=>{const n=i.hooks.duration(t,"ms"),s=n.hours().toString().padStart(2,"0"),r=n.minutes().toString().padStart(2,"0"),e=n.seconds().toString().padStart(2,"0");return`${s}:${r}:${e}`},y=t=>{const n=i.hooks.duration(t,"seconds"),s=n.hours().toString().padStart(2,"0"),r=n.minutes().toString().padStart(2,"0"),e=n.seconds().toString().padStart(2,"0");return`${s}:${r}:${e}`},I=(t,n=!1)=>{const[s,r,e]=t.split(":").map(Number),o=n?999:0;return i.hooks.duration({hours:s,minutes:r,seconds:e,milliseconds:o}).asMilliseconds()},a=(t,n)=>{const s=new Intl.NumberFormat("en-US",{maximumFractionDigits:2});switch(t){case"Milliseconds":return h(n);case"DeltaMilliseconds":return S(n);case"Meters":return`${s.format(n)}m`;case"MetersPerSecond":return`${s.format(n)}m/s`;case"MetersPerSecondSq":return`${s.format(n)}m/s²`;case"Kg":return`${Math.round(l(n))}lbs`;case"Rad":return`${s.format(c(n)??0)}°`;case"RadPerSecond":return`${s.format(c(n)??0)}°/s`;case"RadPerSecondSq":return`${s.format(c(n)??0)}°/s²`;case"Frame":return`${s.format(n)}`;case"Percent":return new Intl.NumberFormat("en-US",{style:"percent"}).format(n);case"Count":return Math.round(n).toString();case"Centimeters":return`${s.format(n)}cm`;case"PassFail":return n>0?"Pass":"Fail";default:return n.toFixed(2)}},D=t=>a(t.unit,t.value),K=t=>t,q=t=>{const n=s=>p.getParameterAngleDirectionName(s,t);switch(t.partKind){case"joint":return s=>`${a("Rad",Math.abs(s))} ${n(s)}`;case"segment":return s=>`${a("Rad",Math.abs(s))} ${n(s)}`;case"acceleration":return s=>`${a("MetersPerSecondSq",s)} ${n(s)}`;case"angular_velocity":return s=>`${a("RadPerSecond",s)} ${n(s)}`;default:return s=>s.toString()}},R=t=>{const n=new Map;return((...s)=>{const r=JSON.stringify(s);if(n.has(r))return n.get(r);const e=t(...s);return n.set(r,e),e})},T=t=>({partId:"segment"in t.id?t.id.segment:t.id.joint,partKind:"segment"in t.id?"limb":"joint",partDimension:t.plane,min:t.min,max:t.max,kind:t.kind}),x=t=>t.map(T),g=t=>({id:t.partKind==="limb"?{segment:t.partId}:{joint:t.partId},plane:t.partDimension,min:t.min,max:t.max,kind:t.kind===d.ThresholdKind.Limit?d.ThresholdKind.Limit:d.ThresholdKind.Target}),U=t=>t.map(g),j=t=>t.split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "),A=(t,n)=>n===1?t:`${t}s`;function w(...t){return u.twMerge(u.clsx(t))}exports.capitalizeAll=j;exports.cn=w;exports.degToRad=P;exports.getFormatterForParameter=q;exports.getUnitFormatted=D;exports.getUnitValueFormatted=a;exports.hourMinSecStrToMs=I;exports.inchesToMeters=M;exports.kgToPounds=l;exports.memo=R;exports.metersToInches=$;exports.msToDurationStr=S;exports.msToHourMinSecStr=b;exports.msToPrettyStr=h;exports.msToTimestampStr=F;exports.parameterToThreshold=T;exports.parametersToThresholds=x;exports.pluralize=A;exports.poundsToKg=f;exports.radToDeg=c;exports.sToTimestampStr=k;exports.safelyConvertEnum=K;exports.secondsToTimestampStr=y;exports.thresholdToParameter=g;exports.thresholdsToParameters=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./utils-cn-FIKrq5Mb.cjs"),e=require("./utils-conversion-CWypeWsT.cjs"),s=require("./utils-memo-BJJP2KfI.cjs"),t=require("./utils-parameters-dwKmz1VU.cjs"),r=require("./utils-text-lORqO4uI.cjs");exports.cn=o.cn;exports.degToRad=e.degToRad;exports.getFormatterForParameter=e.getFormatterForParameter;exports.getUnitFormatted=e.getUnitFormatted;exports.getUnitValueFormatted=e.getUnitValueFormatted;exports.hourMinSecStrToMs=e.hourMinSecStrToMs;exports.inchesToMeters=e.inchesToMeters;exports.kgToPounds=e.kgToPounds;exports.metersToInches=e.metersToInches;exports.msToDurationStr=e.msToDurationStr;exports.msToHourMinSecStr=e.msToHourMinSecStr;exports.msToPrettyStr=e.msToPrettyStr;exports.msToTimestampStr=e.msToTimestampStr;exports.poundsToKg=e.poundsToKg;exports.radToDeg=e.radToDeg;exports.sToTimestampStr=e.sToTimestampStr;exports.safelyConvertEnum=e.safelyConvertEnum;exports.secondsToTimestampStr=e.secondsToTimestampStr;exports.memo=s.memo;exports.parameterToThreshold=t.parameterToThreshold;exports.parametersToThresholds=t.parametersToThresholds;exports.thresholdToParameter=t.thresholdToParameter;exports.thresholdsToParameters=t.thresholdsToParameters;exports.capitalizeAll=r.capitalizeAll;exports.pluralize=r.pluralize;
package/dist/utils.js CHANGED
@@ -1,129 +1,32 @@
1
- import { t as d, c as S } from "./tailwind-vendor-B4y94WzT.js";
2
- import { getParameterAngleDirectionName as l } from "./services.js";
3
- import { h as i } from "./moment-vendor-DMLRxgRE.js";
4
- import { ThresholdKind as m } from "./generated-graphql.js";
5
- const I = (t) => t * 39.3700787402, b = (t) => t / 39.3700787402, $ = (t) => t * 2.20462262185, x = (t) => t / 2.20462262185, u = (t, n = !1) => t == null ? null : n ? t * 180 / Math.PI : Math.round(t * (180 / Math.PI)), k = (t) => t == null ? null : t * (Math.PI / 180), p = (t) => i.duration(t, "ms").humanize({ ss: 1 }), D = (t, n = !1, s = !0) => {
6
- const r = i.duration(t, "ms"), o = s ? r.minutes().toString().padStart(2, "0") : r.minutes().toString(), e = r.seconds().toString().padStart(2, "0"), a = Math.round(r.milliseconds()).toString().padStart(3, "0");
7
- return n ? `${o}:${e}.${a}` : `${o}:${e}`;
8
- }, R = (t, n = !1) => {
9
- const s = i.duration(t, "seconds"), o = (s.minutes() + s.hours() * 60).toString().padStart(2, "0"), e = s.seconds().toString().padStart(2, "0");
10
- if (n) {
11
- const a = Math.round(s.milliseconds()).toString().padStart(3, "0");
12
- return `${o}:${e}.${a}`;
13
- }
14
- return `${o}:${e}`;
15
- }, g = (t) => {
16
- const n = i.duration(t, "ms"), s = n.hours(), r = n.minutes(), o = n.seconds(), e = n.milliseconds();
17
- return r < 1 ? `${o}.${Math.floor(e / 100)} seconds` : s < 1 ? `${r} minutes` : `${s} hours`;
18
- }, y = (t) => {
19
- const n = i.duration(t, "ms"), s = n.hours().toString().padStart(2, "0"), r = n.minutes().toString().padStart(2, "0"), o = n.seconds().toString().padStart(2, "0");
20
- return `${s}:${r}:${o}`;
21
- }, K = (t) => {
22
- const n = i.duration(t, "seconds"), s = n.hours().toString().padStart(2, "0"), r = n.minutes().toString().padStart(2, "0"), o = n.seconds().toString().padStart(2, "0");
23
- return `${s}:${r}:${o}`;
24
- }, j = (t, n = !1) => {
25
- const [s, r, o] = t.split(":").map(Number), e = n ? 999 : 0;
26
- return i.duration({ hours: s, minutes: r, seconds: o, milliseconds: e }).asMilliseconds();
27
- }, c = (t, n) => {
28
- const s = new Intl.NumberFormat("en-US", { maximumFractionDigits: 2 });
29
- switch (t) {
30
- case "Milliseconds":
31
- return g(n);
32
- case "DeltaMilliseconds":
33
- return p(n);
34
- case "Meters":
35
- return `${s.format(n)}m`;
36
- case "MetersPerSecond":
37
- return `${s.format(n)}m/s`;
38
- case "MetersPerSecondSq":
39
- return `${s.format(n)}m/s²`;
40
- case "Kg":
41
- return `${Math.round($(n))}lbs`;
42
- case "Rad":
43
- return `${s.format(u(n) ?? 0)}°`;
44
- case "RadPerSecond":
45
- return `${s.format(u(n) ?? 0)}°/s`;
46
- case "RadPerSecondSq":
47
- return `${s.format(u(n) ?? 0)}°/s²`;
48
- case "Frame":
49
- return `${s.format(n)}`;
50
- case "Percent":
51
- return new Intl.NumberFormat("en-US", { style: "percent" }).format(n);
52
- case "Count":
53
- return Math.round(n).toString();
54
- case "Centimeters":
55
- return `${s.format(n)}cm`;
56
- case "PassFail":
57
- return n > 0 ? "Pass" : "Fail";
58
- default:
59
- return n.toFixed(2);
60
- }
61
- }, A = (t) => c(t.unit, t.value), N = (t) => t, U = (t) => {
62
- const n = (s) => l(s, t);
63
- switch (t.partKind) {
64
- case "joint":
65
- return (s) => `${c("Rad", Math.abs(s))} ${n(s)}`;
66
- case "segment":
67
- return (s) => `${c("Rad", Math.abs(s))} ${n(s)}`;
68
- case "acceleration":
69
- return (s) => `${c("MetersPerSecondSq", s)} ${n(
70
- s
71
- )}`;
72
- case "angular_velocity":
73
- return (s) => `${c("RadPerSecond", s)} ${n(s)}`;
74
- default:
75
- return (s) => s.toString();
76
- }
77
- }, w = (t) => {
78
- const n = /* @__PURE__ */ new Map();
79
- return ((...s) => {
80
- const r = JSON.stringify(s);
81
- if (n.has(r))
82
- return n.get(r);
83
- const o = t(...s);
84
- return n.set(r, o), o;
85
- });
86
- }, f = (t) => ({
87
- partId: "segment" in t.id ? t.id.segment : t.id.joint,
88
- partKind: "segment" in t.id ? "limb" : "joint",
89
- partDimension: t.plane,
90
- min: t.min,
91
- max: t.max,
92
- kind: t.kind
93
- }), C = (t) => t.map(f), h = (t) => ({
94
- id: t.partKind === "limb" ? { segment: t.partId } : { joint: t.partId },
95
- plane: t.partDimension,
96
- min: t.min,
97
- max: t.max,
98
- kind: t.kind === m.Limit ? m.Limit : m.Target
99
- }), q = (t) => t.map(h), z = (t) => t.split(" ").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" "), H = (t, n) => n === 1 ? t : `${t}s`;
100
- function L(...t) {
101
- return d(S(t));
102
- }
1
+ import { c as e } from "./utils-cn-CgdSr4hO.js";
2
+ import { d as o, n as t, j as m, g as T, h as p, i as n, k as d, m as i, a as h, e as l, c, b as S, p as g, r as u, s as f, l as x, f as P } from "./utils-conversion-ChFbq8I2.js";
3
+ import { m as M } from "./utils-memo-DtXdOqCT.js";
4
+ import { a as k, p as y, b as z, t as D } from "./utils-parameters-BBFuBK2B.js";
5
+ import { c as j, p as v } from "./utils-text-CN3zLiZ7.js";
103
6
  export {
104
- z as capitalizeAll,
105
- L as cn,
106
- k as degToRad,
107
- U as getFormatterForParameter,
108
- A as getUnitFormatted,
109
- c as getUnitValueFormatted,
110
- j as hourMinSecStrToMs,
111
- b as inchesToMeters,
112
- $ as kgToPounds,
113
- w as memo,
114
- I as metersToInches,
115
- p as msToDurationStr,
116
- y as msToHourMinSecStr,
117
- g as msToPrettyStr,
118
- D as msToTimestampStr,
119
- f as parameterToThreshold,
120
- C as parametersToThresholds,
121
- H as pluralize,
122
- x as poundsToKg,
7
+ j as capitalizeAll,
8
+ e as cn,
9
+ o as degToRad,
10
+ t as getFormatterForParameter,
11
+ m as getUnitFormatted,
12
+ T as getUnitValueFormatted,
13
+ p as hourMinSecStrToMs,
14
+ n as inchesToMeters,
15
+ d as kgToPounds,
16
+ M as memo,
17
+ i as metersToInches,
18
+ h as msToDurationStr,
19
+ l as msToHourMinSecStr,
20
+ c as msToPrettyStr,
21
+ S as msToTimestampStr,
22
+ k as parameterToThreshold,
23
+ y as parametersToThresholds,
24
+ v as pluralize,
25
+ g as poundsToKg,
123
26
  u as radToDeg,
124
- R as sToTimestampStr,
125
- N as safelyConvertEnum,
126
- K as secondsToTimestampStr,
127
- h as thresholdToParameter,
128
- q as thresholdsToParameters
27
+ f as sToTimestampStr,
28
+ x as safelyConvertEnum,
29
+ P as secondsToTimestampStr,
30
+ z as thresholdToParameter,
31
+ D as thresholdsToParameters
129
32
  };
@@ -1,5 +1,5 @@
1
1
  import { useLayoutEffect as _ } from "react";
2
- import { g as L } from "./other-C4VnLmM6.js";
2
+ import { g as L } from "./other-D9ROT7p0.js";
3
3
  var V = () => {
4
4
  }, m = V;
5
5
  function E(r) {
@@ -1 +1 @@
1
- "use strict";const q=require("react"),L=require("./other-Dp3RPYfF.cjs");var k=()=>{},m=k;function E(r){return{tag:0,0:r}}function w(r){return{tag:1,0:r}}var S=()=>typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator",T=r=>r;function M(r){return t=>e=>{var n=m;t((o=>{o===0?e(0):o.tag===0?(n=o[0],e(o)):r(o[0])?e(o):n(0)}))}}function C(r){return t=>e=>t((n=>{n===0||n.tag===0?e(n):e(w(r(n[0])))}))}function Y(r){return t=>e=>{var n=[],o=m,s=!1,i=!1;t((u=>{i||(u===0?(i=!0,n.length||e(0)):u.tag===0?o=u[0]:(s=!1,(function(d){var p=m;d((c=>{if(c===0){if(n.length){var v=n.indexOf(p);v>-1&&(n=n.slice()).splice(v,1),n.length||(i?e(0):s||(s=!0,o(0)))}}else c.tag===0?(n.push(p=c[0]),p(0)):n.length&&(e(c),p(0))}))})(r(u[0])),s||(s=!0,o(0))))})),e(E((u=>{if(u===1){i||(i=!0,o(1));for(var a=0,d=n,p=n.length;a<p;a++)d[a](1);n.length=0}else{!i&&!s?(s=!0,o(0)):s=!1;for(var c=0,v=n,x=n.length;c<x;c++)v[c](0)}})))}}function z(r){return Y(T)(r)}function F(r){return z(H(r))}function W(r){return t=>e=>t((n=>{n===0?e(0):n.tag===0?(e(n),r()):e(n)}))}function $(r){var t=[],e=m,n=!1;return o=>{t.push(o),t.length===1&&r((s=>{if(s===0){for(var i=0,u=t,a=t.length;i<a;i++)u[i](0);t.length=0}else if(s.tag===0)e=s[0];else{n=!1;for(var d=0,p=t,c=t.length;d<c;d++)p[d](s)}})),o(E((s=>{if(s===1){var i=t.indexOf(o);i>-1&&(t=t.slice()).splice(i,1),t.length||e(1)}else n||(n=!0,e(0))})))}}function K(r){return t=>e=>{var n=m,o=!1,s=0;t((i=>{o||(i===0?(o=!0,e(0)):i.tag===0?n=i[0]:s++<r?(e(i),!o&&s>=r&&(o=!0,e(0),n(1))):e(i))})),e(E((i=>{i===1&&!o?(o=!0,n(1)):i===0&&!o&&s<r&&n(0)})))}}function B(r){return t=>{var e=r[S()]&&r[S()]()||r,n=!1,o=!1,s=!1,i;t(E((async u=>{if(u===1)n=!0,e.return&&e.return();else if(o)s=!0;else{for(s=o=!0;s&&!n;)if((i=await e.next()).done)n=!0,e.return&&await e.return(),t(0);else try{s=!1,t(w(i.value))}catch(a){if(e.throw)(n=!!(await e.throw(a)).done)&&t(0);else throw a}o=!1}})))}}function G(r){return r[Symbol.asyncIterator]?B(r):t=>{var e=r[Symbol.iterator](),n=!1,o=!1,s=!1,i;t(E((u=>{if(u===1)n=!0,e.return&&e.return();else if(o)s=!0;else{for(s=o=!0;s&&!n;)if((i=e.next()).done)n=!0,e.return&&e.return(),t(0);else try{s=!1,t(w(i.value))}catch(a){if(e.throw)(n=!!e.throw(a).done)&&t(0);else throw a}o=!1}})))}}var H=G;function J(r){return t=>{var e=!1,n=r({next(o){e||t(w(o))},complete(){e||(e=!0,t(0))}});t(E((o=>{o===1&&!e&&(e=!0,n())})))}}function Q(){var r,t;return{source:$(J((e=>(r=e.next,t=e.complete,k)))),next(e){r&&r(e)},complete(){t&&t()}}}function U(r){return new Promise((t=>{var e=m,n;r((o=>{o===0?Promise.resolve(n).then(t):o.tag===0?(e=o[0])(0):(n=o[0],e(0))}))}))}var X=q.useLayoutEffect,D=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Z(r,t){return!!(r===t||D(r)&&D(t))}function ee(r,t){if(r.length!==t.length)return!1;for(var e=0;e<r.length;e++)if(!Z(r[e],t[e]))return!1;return!0}function te(r,t){t===void 0&&(t=ee);var e=null;function n(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(e&&e.lastThis===this&&t(o,e.lastArgs))return e.lastResult;var i=r.apply(this,o);return e={lastResult:i,lastArgs:o,lastThis:this},i}return n.clear=function(){e=null},n}function l(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var j=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),I=function(){return Math.random().toString(36).substring(7).split("").join(".")},P={INIT:"@@redux/INIT"+I(),REPLACE:"@@redux/REPLACE"+I()};function re(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function ne(r){if(r===void 0)return"undefined";if(r===null)return"null";var t=typeof r;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(r))return"array";if(ie(r))return"date";if(se(r))return"error";var e=oe(r);switch(e){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return e}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function oe(r){return typeof r.constructor=="function"?r.constructor.name:null}function se(r){return r instanceof Error||typeof r.message=="string"&&r.constructor&&typeof r.constructor.stackTraceLimit=="number"}function ie(r){return r instanceof Date?!0:typeof r.toDateString=="function"&&typeof r.getDate=="function"&&typeof r.setDate=="function"}function y(r){var t=typeof r;return process.env.NODE_ENV!=="production"&&(t=ne(r)),t}function V(r,t,e){var n;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?l(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?l(1):"Expected the enhancer to be a function. Instead, received: '"+y(e)+"'");return e(V)(r,t)}if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?l(2):"Expected the root reducer to be a function. Instead, received: '"+y(r)+"'");var o=r,s=t,i=[],u=i,a=!1;function d(){u===i&&(u=i.slice())}function p(){if(a)throw new Error(process.env.NODE_ENV==="production"?l(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function c(f){if(typeof f!="function")throw new Error(process.env.NODE_ENV==="production"?l(4):"Expected the listener to be a function. Instead, received: '"+y(f)+"'");if(a)throw new Error(process.env.NODE_ENV==="production"?l(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var g=!0;return d(),u.push(f),function(){if(g){if(a)throw new Error(process.env.NODE_ENV==="production"?l(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,d();var h=u.indexOf(f);u.splice(h,1),i=null}}}function v(f){if(!re(f))throw new Error(process.env.NODE_ENV==="production"?l(7):"Actions must be plain objects. Instead, the actual type was: '"+y(f)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof f.type>"u")throw new Error(process.env.NODE_ENV==="production"?l(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(a)throw new Error(process.env.NODE_ENV==="production"?l(9):"Reducers may not dispatch actions.");try{a=!0,s=o(s,f)}finally{a=!1}for(var g=i=u,b=0;b<g.length;b++){var h=g[b];h()}return f}function x(f){if(typeof f!="function")throw new Error(process.env.NODE_ENV==="production"?l(10):"Expected the nextReducer to be a function. Instead, received: '"+y(f));o=f,v({type:P.REPLACE})}function R(){var f,g=c;return f={subscribe:function(h){if(typeof h!="object"||h===null)throw new Error(process.env.NODE_ENV==="production"?l(11):"Expected the observer to be an object. Instead, received: '"+y(h)+"'");function N(){h.next&&h.next(p())}N();var _=g(N);return{unsubscribe:_}}},f[j]=function(){return this},f}return v({type:P.INIT}),n={dispatch:v,subscribe:c,getState:p,replaceReducer:x},n[j]=R,n}var O,A;function ue(){return A||(A=1,O=function r(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,o,s;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(o=n;o--!==0;)if(!r(t[o],e[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!r(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}),O}var ae=ue();const fe=L.getDefaultExportFromCjs(ae);exports.createStore=V;exports.equal=fe;exports.filter=M;exports.index=X;exports.makeSubject=Q;exports.map=C;exports.memoizeOne=te;exports.merge=F;exports.onStart=W;exports.take=K;exports.toPromise=U;
1
+ "use strict";const q=require("react"),L=require("./other-DyoApG-9.cjs");var k=()=>{},m=k;function E(r){return{tag:0,0:r}}function w(r){return{tag:1,0:r}}var S=()=>typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator",T=r=>r;function M(r){return t=>e=>{var n=m;t((o=>{o===0?e(0):o.tag===0?(n=o[0],e(o)):r(o[0])?e(o):n(0)}))}}function C(r){return t=>e=>t((n=>{n===0||n.tag===0?e(n):e(w(r(n[0])))}))}function Y(r){return t=>e=>{var n=[],o=m,s=!1,i=!1;t((u=>{i||(u===0?(i=!0,n.length||e(0)):u.tag===0?o=u[0]:(s=!1,(function(d){var p=m;d((c=>{if(c===0){if(n.length){var v=n.indexOf(p);v>-1&&(n=n.slice()).splice(v,1),n.length||(i?e(0):s||(s=!0,o(0)))}}else c.tag===0?(n.push(p=c[0]),p(0)):n.length&&(e(c),p(0))}))})(r(u[0])),s||(s=!0,o(0))))})),e(E((u=>{if(u===1){i||(i=!0,o(1));for(var a=0,d=n,p=n.length;a<p;a++)d[a](1);n.length=0}else{!i&&!s?(s=!0,o(0)):s=!1;for(var c=0,v=n,x=n.length;c<x;c++)v[c](0)}})))}}function z(r){return Y(T)(r)}function F(r){return z(H(r))}function W(r){return t=>e=>t((n=>{n===0?e(0):n.tag===0?(e(n),r()):e(n)}))}function $(r){var t=[],e=m,n=!1;return o=>{t.push(o),t.length===1&&r((s=>{if(s===0){for(var i=0,u=t,a=t.length;i<a;i++)u[i](0);t.length=0}else if(s.tag===0)e=s[0];else{n=!1;for(var d=0,p=t,c=t.length;d<c;d++)p[d](s)}})),o(E((s=>{if(s===1){var i=t.indexOf(o);i>-1&&(t=t.slice()).splice(i,1),t.length||e(1)}else n||(n=!0,e(0))})))}}function K(r){return t=>e=>{var n=m,o=!1,s=0;t((i=>{o||(i===0?(o=!0,e(0)):i.tag===0?n=i[0]:s++<r?(e(i),!o&&s>=r&&(o=!0,e(0),n(1))):e(i))})),e(E((i=>{i===1&&!o?(o=!0,n(1)):i===0&&!o&&s<r&&n(0)})))}}function B(r){return t=>{var e=r[S()]&&r[S()]()||r,n=!1,o=!1,s=!1,i;t(E((async u=>{if(u===1)n=!0,e.return&&e.return();else if(o)s=!0;else{for(s=o=!0;s&&!n;)if((i=await e.next()).done)n=!0,e.return&&await e.return(),t(0);else try{s=!1,t(w(i.value))}catch(a){if(e.throw)(n=!!(await e.throw(a)).done)&&t(0);else throw a}o=!1}})))}}function G(r){return r[Symbol.asyncIterator]?B(r):t=>{var e=r[Symbol.iterator](),n=!1,o=!1,s=!1,i;t(E((u=>{if(u===1)n=!0,e.return&&e.return();else if(o)s=!0;else{for(s=o=!0;s&&!n;)if((i=e.next()).done)n=!0,e.return&&e.return(),t(0);else try{s=!1,t(w(i.value))}catch(a){if(e.throw)(n=!!e.throw(a).done)&&t(0);else throw a}o=!1}})))}}var H=G;function J(r){return t=>{var e=!1,n=r({next(o){e||t(w(o))},complete(){e||(e=!0,t(0))}});t(E((o=>{o===1&&!e&&(e=!0,n())})))}}function Q(){var r,t;return{source:$(J((e=>(r=e.next,t=e.complete,k)))),next(e){r&&r(e)},complete(){t&&t()}}}function U(r){return new Promise((t=>{var e=m,n;r((o=>{o===0?Promise.resolve(n).then(t):o.tag===0?(e=o[0])(0):(n=o[0],e(0))}))}))}var X=q.useLayoutEffect,D=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Z(r,t){return!!(r===t||D(r)&&D(t))}function ee(r,t){if(r.length!==t.length)return!1;for(var e=0;e<r.length;e++)if(!Z(r[e],t[e]))return!1;return!0}function te(r,t){t===void 0&&(t=ee);var e=null;function n(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(e&&e.lastThis===this&&t(o,e.lastArgs))return e.lastResult;var i=r.apply(this,o);return e={lastResult:i,lastArgs:o,lastThis:this},i}return n.clear=function(){e=null},n}function l(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var j=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),I=function(){return Math.random().toString(36).substring(7).split("").join(".")},P={INIT:"@@redux/INIT"+I(),REPLACE:"@@redux/REPLACE"+I()};function re(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function ne(r){if(r===void 0)return"undefined";if(r===null)return"null";var t=typeof r;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(r))return"array";if(ie(r))return"date";if(se(r))return"error";var e=oe(r);switch(e){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return e}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function oe(r){return typeof r.constructor=="function"?r.constructor.name:null}function se(r){return r instanceof Error||typeof r.message=="string"&&r.constructor&&typeof r.constructor.stackTraceLimit=="number"}function ie(r){return r instanceof Date?!0:typeof r.toDateString=="function"&&typeof r.getDate=="function"&&typeof r.setDate=="function"}function y(r){var t=typeof r;return process.env.NODE_ENV!=="production"&&(t=ne(r)),t}function V(r,t,e){var n;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?l(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?l(1):"Expected the enhancer to be a function. Instead, received: '"+y(e)+"'");return e(V)(r,t)}if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?l(2):"Expected the root reducer to be a function. Instead, received: '"+y(r)+"'");var o=r,s=t,i=[],u=i,a=!1;function d(){u===i&&(u=i.slice())}function p(){if(a)throw new Error(process.env.NODE_ENV==="production"?l(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function c(f){if(typeof f!="function")throw new Error(process.env.NODE_ENV==="production"?l(4):"Expected the listener to be a function. Instead, received: '"+y(f)+"'");if(a)throw new Error(process.env.NODE_ENV==="production"?l(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var g=!0;return d(),u.push(f),function(){if(g){if(a)throw new Error(process.env.NODE_ENV==="production"?l(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,d();var h=u.indexOf(f);u.splice(h,1),i=null}}}function v(f){if(!re(f))throw new Error(process.env.NODE_ENV==="production"?l(7):"Actions must be plain objects. Instead, the actual type was: '"+y(f)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof f.type>"u")throw new Error(process.env.NODE_ENV==="production"?l(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(a)throw new Error(process.env.NODE_ENV==="production"?l(9):"Reducers may not dispatch actions.");try{a=!0,s=o(s,f)}finally{a=!1}for(var g=i=u,b=0;b<g.length;b++){var h=g[b];h()}return f}function x(f){if(typeof f!="function")throw new Error(process.env.NODE_ENV==="production"?l(10):"Expected the nextReducer to be a function. Instead, received: '"+y(f));o=f,v({type:P.REPLACE})}function R(){var f,g=c;return f={subscribe:function(h){if(typeof h!="object"||h===null)throw new Error(process.env.NODE_ENV==="production"?l(11):"Expected the observer to be an object. Instead, received: '"+y(h)+"'");function N(){h.next&&h.next(p())}N();var _=g(N);return{unsubscribe:_}}},f[j]=function(){return this},f}return v({type:P.INIT}),n={dispatch:v,subscribe:c,getState:p,replaceReducer:x},n[j]=R,n}var O,A;function ue(){return A||(A=1,O=function r(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,o,s;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(o=n;o--!==0;)if(!r(t[o],e[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!r(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}),O}var ae=ue();const fe=L.getDefaultExportFromCjs(ae);exports.createStore=V;exports.equal=fe;exports.filter=M;exports.index=X;exports.makeSubject=Q;exports.map=C;exports.memoizeOne=te;exports.merge=F;exports.onStart=W;exports.take=K;exports.toPromise=U;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quantum-component-library",
3
- "version": "1.4.48-dev.7",
3
+ "version": "1.4.48",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.cjs",
@@ -1,15 +0,0 @@
1
- import "react";
2
- import "./components.js";
3
- import "./hooks.js";
4
- import "./providers.js";
5
- import "./services.js";
6
- import "./types.js";
7
- import "./utils.js";
8
- var f = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
- function a(o) {
10
- return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
11
- }
12
- export {
13
- f as c,
14
- a as g
15
- };
@@ -1 +0,0 @@
1
- "use strict";require("react");require("./components.cjs");require("./hooks.cjs");require("./providers.cjs");require("./services.cjs");require("./types.cjs");require("./utils.cjs");var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=r;