quantum-component-library 1.4.47-dev.2 → 1.4.47-dev.4

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.
@@ -1,9 +1,13 @@
1
- import { b as e } from "./generated-esGwfMXj.js";
1
+ import { c as e } from "./generated-CB1E0us8.js";
2
2
  const i = e(`
3
3
  fragment AssessmentAction on Action {
4
4
  id
5
5
  name
6
6
  activityKind
7
+ activityType
8
+ sessionType
9
+ cameraPlacement
10
+ videoLink
7
11
  description
8
12
  instructionsPointOfInterest
9
13
  instructionsMovementReport
@@ -22,6 +26,9 @@ const i = e(`
22
26
  id
23
27
  name
24
28
  }
29
+ categories {
30
+ ...LibraryModuleCategory
31
+ }
25
32
  quantumOwned
26
33
  }
27
34
  `);
@@ -645,39 +652,42 @@ const u = e(`
645
652
  ...AssessmentAction
646
653
  }
647
654
  }
648
- `), A = e(`
655
+ `), p = e(`
649
656
  query getQuantumOwnedActions {
650
657
  quantumOwnedActions {
651
658
  ...AssessmentAction
652
659
  }
653
660
  }
654
- `), p = e(`
661
+ `), A = e(`
655
662
  query getActionById($id: ID!) {
656
663
  getActionById(id: $id) {
657
664
  ...AssessmentAction
658
665
  }
659
666
  }
660
- `), y = e(`
667
+ `);
668
+ e(`
661
669
  query searchUseCases($query: String!, $skip: Int, $limit: Int) {
662
670
  useCases(search: $query, skip: $skip, limit: $limit) {
663
671
  id
664
672
  name
665
673
  }
666
674
  }
667
- `), T = e(`
675
+ `);
676
+ e(`
668
677
  query searchQuantumOwnedUseCases($query: String!, $skip: Int, $limit: Int) {
669
678
  quantumOwnedUseCases(search: $query, skip: $skip, limit: $limit) {
670
679
  id
671
680
  name
672
681
  }
673
682
  }
674
- `), M = e(`
683
+ `);
684
+ const y = e(`
675
685
  query getGroups {
676
686
  groups {
677
687
  ...UserGroup
678
688
  }
679
689
  }
680
- `), g = e(`
690
+ `), T = e(`
681
691
  query getModulesByGroup($groupId: ID!) {
682
692
  group(id: $groupId) {
683
693
  name
@@ -687,7 +697,7 @@ const u = e(`
687
697
  ...LibraryActionModule
688
698
  }
689
699
  }
690
- `), I = e(`
700
+ `), M = e(`
691
701
  query getActionsByGroup($groupId: ID!) {
692
702
  group(id: $groupId) {
693
703
  name
@@ -705,13 +715,13 @@ e(`
705
715
  }
706
716
  }
707
717
  `);
708
- const _ = e(`
718
+ const g = e(`
709
719
  query getLibraryModule($id: ID!) {
710
720
  module(id: $id) {
711
721
  ...LibraryActionModule
712
722
  }
713
723
  }
714
- `), v = e(`
724
+ `), I = e(`
715
725
  query getAllModuleCategories {
716
726
  moduleCategories {
717
727
  ...LibraryModuleCategory
@@ -721,22 +731,20 @@ const _ = e(`
721
731
  export {
722
732
  i as A,
723
733
  o as C,
724
- M as G,
725
- n as M,
726
- T as S,
734
+ y as G,
735
+ r as M,
727
736
  l as U,
728
- I as a,
737
+ M as a,
729
738
  m as b,
730
739
  a as c,
731
740
  s as d,
732
- r as e,
733
- g as f,
741
+ n as e,
742
+ T as f,
734
743
  c as g,
735
- y as h,
736
- d as i,
737
- p as j,
738
- A as k,
744
+ d as h,
745
+ A as i,
746
+ I as j,
747
+ p as k,
739
748
  u as l,
740
- _ as m,
741
- v as n
749
+ g as m
742
750
  };
@@ -1,6 +1,6 @@
1
- "use strict";const c=require("./vendor-BjLvygDR.cjs"),Ee=require("react");function Ne(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const q=Ne(Ee);var xe={OPERATION_DEFINITION:"OperationDefinition"};class ne extends Error{constructor(t,r,n,i,a,o,v){super(t),this.name="GraphQLError",this.message=t,a&&(this.path=a),r&&(this.nodes=Array.isArray(r)?r:[r]),n&&(this.source=n),i&&(this.positions=i),o&&(this.originalError=o);var h=v;if(!h&&o){var k=o.extensions;k&&typeof k=="object"&&(h=k)}this.extensions=h||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var l,s;function C(e){return new ne(`Syntax Error: Unexpected token at ${s} in ${e}`)}function le(e){if(e.lastIndex=s,e.test(l))return l.slice(s,s=e.lastIndex)}var Q=/ +(?=[^\s])/y;function Se(e){for(var t=e.split(`
2
- `),r="",n=0,i=0,a=t.length-1,o=0;o<t.length;o++)Q.lastIndex=0,Q.test(t[o])&&(o&&(!n||Q.lastIndex<n)&&(n=Q.lastIndex),i=i||o,a=o);for(var v=i;v<=a;v++)v!==i&&(r+=`
3
- `),r+=t[v].slice(n).replace(/\\"""/g,'"""');return r}function x(){for(var e=0|l.charCodeAt(s++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|l.charCodeAt(s++))if(e===35)for(;(e=0|l.charCodeAt(s++))&&e!==10&&e!==13;);s--}function oe(){for(var e=s,t=0|l.charCodeAt(s++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|l.charCodeAt(s++));if(e===s-1)throw C("Name");var r=l.slice(e,--s);return x(),r}function V(){return{kind:"Name",value:oe()}}var Ce=/(?:"""|(?:[\s\S]*?[^\\])""")/y,De=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function $(e){var t;switch(l.charCodeAt(s)){case 91:s++,x();for(var r=[];l.charCodeAt(s)!==93;)r.push($(e));return s++,x(),{kind:"ListValue",values:r};case 123:s++,x();for(var n=[];l.charCodeAt(s)!==125;){var i=V();if(l.charCodeAt(s++)!==58)throw C("ObjectField");x(),n.push({kind:"ObjectField",name:i,value:$(e)})}return s++,x(),{kind:"ObjectValue",fields:n};case 36:if(e)throw C("Variable");return s++,{kind:"Variable",name:V()};case 34:if(l.charCodeAt(s+1)===34&&l.charCodeAt(s+2)===34){if(s+=3,(t=le(Ce))==null)throw C("StringValue");return x(),{kind:"StringValue",value:Se(t.slice(0,-3)),block:!0}}else{var a=s,o;s++;var v=!1;for(o=0|l.charCodeAt(s++);o===92&&(s++,v=!0)||o!==10&&o!==13&&o!==34&&o;o=0|l.charCodeAt(s++));if(o!==34)throw C("StringValue");return t=l.slice(a,s),x(),{kind:"StringValue",value:v?JSON.parse(t):t.slice(1,-1),block:!1}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var h=s++,k;(k=0|l.charCodeAt(s++))>=48&&k<=57;);var y=l.slice(h,--s);if((k=l.charCodeAt(s))===46||k===69||k===101){if((t=le(De))==null)throw C("FloatValue");return x(),{kind:"FloatValue",value:y+t}}else return x(),{kind:"IntValue",value:y};case 110:if(l.charCodeAt(s+1)===117&&l.charCodeAt(s+2)===108&&l.charCodeAt(s+3)===108)return s+=4,x(),{kind:"NullValue"};break;case 116:if(l.charCodeAt(s+1)===114&&l.charCodeAt(s+2)===117&&l.charCodeAt(s+3)===101)return s+=4,x(),{kind:"BooleanValue",value:!0};break;case 102:if(l.charCodeAt(s+1)===97&&l.charCodeAt(s+2)===108&&l.charCodeAt(s+3)===115&&l.charCodeAt(s+4)===101)return s+=5,x(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:oe()}}function be(e){if(l.charCodeAt(s)===40){var t=[];s++,x();do{var r=V();if(l.charCodeAt(s++)!==58)throw C("Argument");x(),t.push({kind:"Argument",name:r,value:$(e)})}while(l.charCodeAt(s)!==41);return s++,x(),t}}function I(e){if(l.charCodeAt(s)===64){var t=[];do s++,t.push({kind:"Directive",name:V(),arguments:be(e)});while(l.charCodeAt(s)===64);return t}}function _e(){for(var e=0;l.charCodeAt(s)===91;)e++,s++,x();var t={kind:"NamedType",name:V()};do if(l.charCodeAt(s)===33&&(s++,x(),t={kind:"NonNullType",type:t}),e){if(l.charCodeAt(s++)!==93)throw C("NamedType");x(),t={kind:"ListType",type:t}}while(e--);return t}function G(){if(l.charCodeAt(s++)!==123)throw C("SelectionSet");return x(),U()}function U(){var e=[];do if(l.charCodeAt(s)===46){if(l.charCodeAt(++s)!==46||l.charCodeAt(++s)!==46)throw C("SelectionSet");switch(s++,x(),l.charCodeAt(s)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:I(!1),selectionSet:G()});break;case 111:l.charCodeAt(s+1)===110?(s+=2,x(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:V()},directives:I(!1),selectionSet:G()})):e.push({kind:"FragmentSpread",name:V(),directives:I(!1)});break;case 123:s++,x(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:U()});break;default:e.push({kind:"FragmentSpread",name:V(),directives:I(!1)})}}else{var t=V(),r=void 0;l.charCodeAt(s)===58&&(s++,x(),r=t,t=V());var n=be(!1),i=I(!1),a=void 0;l.charCodeAt(s)===123&&(s++,x(),a=U()),e.push({kind:"Field",alias:r,name:t,arguments:n,directives:i,selectionSet:a})}while(l.charCodeAt(s)!==125);return s++,x(),{kind:"SelectionSet",selections:e}}function qe(){if(x(),l.charCodeAt(s)===40){var e=[];s++,x();do{var t=void 0;if(l.charCodeAt(s)===34&&(t=$(!0)),l.charCodeAt(s++)!==36)throw C("Variable");var r=V();if(l.charCodeAt(s++)!==58)throw C("VariableDefinition");x();var n=_e(),i=void 0;l.charCodeAt(s)===61&&(s++,x(),i=$(!0)),x();var a={kind:"VariableDefinition",variable:{kind:"Variable",name:r},type:n,defaultValue:i,directives:I(!0)};t&&(a.description=t),e.push(a)}while(l.charCodeAt(s)!==41);return s++,x(),e}}function Ve(e){var t=V();if(l.charCodeAt(s++)!==111||l.charCodeAt(s++)!==110)throw C("FragmentDefinition");x();var r={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:V()},directives:I(!1),selectionSet:G()};return e&&(r.description=e),r}function fe(){var e=[];do{var t=void 0;if(l.charCodeAt(s)===34&&(t=$(!0)),l.charCodeAt(s)===123){if(t)throw C("Document");s++,x(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:U()})}else{var r=oe();switch(r){case"fragment":e.push(Ve(t));break;case"query":case"mutation":case"subscription":var n,i=void 0;(n=l.charCodeAt(s))!==40&&n!==64&&n!==123&&(i=V());var a={kind:"OperationDefinition",operation:r,name:i,variableDefinitions:qe(),directives:I(!1),selectionSet:G()};t&&(a.description=t),e.push(a);break;default:throw C("Document")}}}while(s<l.length);return e}function Pe(e,t){return l=e.body?e.body:e,s=0,x(),t&&t.noLocation?{kind:"Document",definitions:fe()}:{kind:"Document",definitions:fe(),loc:{start:0,end:l.length,startToken:void 0,endToken:void 0,source:{body:l,name:"graphql.web",locationOffset:{line:1,column:1}}}}}function _(e,t,r){for(var n="",i=0;i<e.length;i++)i&&(n+=t),n+=r(e[i]);return n}function je(e){return JSON.stringify(e)}function Ie(e){return`"""
1
+ "use strict";const c=require("./vendor-BjLvygDR.cjs"),Ee=require("react");function Ne(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const q=Ne(Ee);var ke={OPERATION_DEFINITION:"OperationDefinition"};class ae extends Error{constructor(t,r,a,i,n,o,v){super(t),this.name="GraphQLError",this.message=t,n&&(this.path=n),r&&(this.nodes=Array.isArray(r)?r:[r]),a&&(this.source=a),i&&(this.positions=i),o&&(this.originalError=o);var h=v;if(!h&&o){var k=o.extensions;k&&typeof k=="object"&&(h=k)}this.extensions=h||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var l,s;function C(e){return new ae(`Syntax Error: Unexpected token at ${s} in ${e}`)}function ce(e){if(e.lastIndex=s,e.test(l))return l.slice(s,s=e.lastIndex)}var Q=/ +(?=[^\s])/y;function Se(e){for(var t=e.split(`
2
+ `),r="",a=0,i=0,n=t.length-1,o=0;o<t.length;o++)Q.lastIndex=0,Q.test(t[o])&&(o&&(!a||Q.lastIndex<a)&&(a=Q.lastIndex),i=i||o,n=o);for(var v=i;v<=n;v++)v!==i&&(r+=`
3
+ `),r+=t[v].slice(a).replace(/\\"""/g,'"""');return r}function x(){for(var e=0|l.charCodeAt(s++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|l.charCodeAt(s++))if(e===35)for(;(e=0|l.charCodeAt(s++))&&e!==10&&e!==13;);s--}function oe(){for(var e=s,t=0|l.charCodeAt(s++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|l.charCodeAt(s++));if(e===s-1)throw C("Name");var r=l.slice(e,--s);return x(),r}function V(){return{kind:"Name",value:oe()}}var Ce=/(?:"""|(?:[\s\S]*?[^\\])""")/y,De=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function $(e){var t;switch(l.charCodeAt(s)){case 91:s++,x();for(var r=[];l.charCodeAt(s)!==93;)r.push($(e));return s++,x(),{kind:"ListValue",values:r};case 123:s++,x();for(var a=[];l.charCodeAt(s)!==125;){var i=V();if(l.charCodeAt(s++)!==58)throw C("ObjectField");x(),a.push({kind:"ObjectField",name:i,value:$(e)})}return s++,x(),{kind:"ObjectValue",fields:a};case 36:if(e)throw C("Variable");return s++,{kind:"Variable",name:V()};case 34:if(l.charCodeAt(s+1)===34&&l.charCodeAt(s+2)===34){if(s+=3,(t=ce(Ce))==null)throw C("StringValue");return x(),{kind:"StringValue",value:Se(t.slice(0,-3)),block:!0}}else{var n=s,o;s++;var v=!1;for(o=0|l.charCodeAt(s++);o===92&&(s++,v=!0)||o!==10&&o!==13&&o!==34&&o;o=0|l.charCodeAt(s++));if(o!==34)throw C("StringValue");return t=l.slice(n,s),x(),{kind:"StringValue",value:v?JSON.parse(t):t.slice(1,-1),block:!1}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var h=s++,k;(k=0|l.charCodeAt(s++))>=48&&k<=57;);var y=l.slice(h,--s);if((k=l.charCodeAt(s))===46||k===69||k===101){if((t=ce(De))==null)throw C("FloatValue");return x(),{kind:"FloatValue",value:y+t}}else return x(),{kind:"IntValue",value:y};case 110:if(l.charCodeAt(s+1)===117&&l.charCodeAt(s+2)===108&&l.charCodeAt(s+3)===108)return s+=4,x(),{kind:"NullValue"};break;case 116:if(l.charCodeAt(s+1)===114&&l.charCodeAt(s+2)===117&&l.charCodeAt(s+3)===101)return s+=4,x(),{kind:"BooleanValue",value:!0};break;case 102:if(l.charCodeAt(s+1)===97&&l.charCodeAt(s+2)===108&&l.charCodeAt(s+3)===115&&l.charCodeAt(s+4)===101)return s+=5,x(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:oe()}}function xe(e){if(l.charCodeAt(s)===40){var t=[];s++,x();do{var r=V();if(l.charCodeAt(s++)!==58)throw C("Argument");x(),t.push({kind:"Argument",name:r,value:$(e)})}while(l.charCodeAt(s)!==41);return s++,x(),t}}function I(e){if(l.charCodeAt(s)===64){var t=[];do s++,t.push({kind:"Directive",name:V(),arguments:xe(e)});while(l.charCodeAt(s)===64);return t}}function _e(){for(var e=0;l.charCodeAt(s)===91;)e++,s++,x();var t={kind:"NamedType",name:V()};do if(l.charCodeAt(s)===33&&(s++,x(),t={kind:"NonNullType",type:t}),e){if(l.charCodeAt(s++)!==93)throw C("NamedType");x(),t={kind:"ListType",type:t}}while(e--);return t}function G(){if(l.charCodeAt(s++)!==123)throw C("SelectionSet");return x(),U()}function U(){var e=[];do if(l.charCodeAt(s)===46){if(l.charCodeAt(++s)!==46||l.charCodeAt(++s)!==46)throw C("SelectionSet");switch(s++,x(),l.charCodeAt(s)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:I(!1),selectionSet:G()});break;case 111:l.charCodeAt(s+1)===110?(s+=2,x(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:V()},directives:I(!1),selectionSet:G()})):e.push({kind:"FragmentSpread",name:V(),directives:I(!1)});break;case 123:s++,x(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:U()});break;default:e.push({kind:"FragmentSpread",name:V(),directives:I(!1)})}}else{var t=V(),r=void 0;l.charCodeAt(s)===58&&(s++,x(),r=t,t=V());var a=xe(!1),i=I(!1),n=void 0;l.charCodeAt(s)===123&&(s++,x(),n=U()),e.push({kind:"Field",alias:r,name:t,arguments:a,directives:i,selectionSet:n})}while(l.charCodeAt(s)!==125);return s++,x(),{kind:"SelectionSet",selections:e}}function qe(){if(x(),l.charCodeAt(s)===40){var e=[];s++,x();do{var t=void 0;if(l.charCodeAt(s)===34&&(t=$(!0)),l.charCodeAt(s++)!==36)throw C("Variable");var r=V();if(l.charCodeAt(s++)!==58)throw C("VariableDefinition");x();var a=_e(),i=void 0;l.charCodeAt(s)===61&&(s++,x(),i=$(!0)),x();var n={kind:"VariableDefinition",variable:{kind:"Variable",name:r},type:a,defaultValue:i,directives:I(!0)};t&&(n.description=t),e.push(n)}while(l.charCodeAt(s)!==41);return s++,x(),e}}function Ve(e){var t=V();if(l.charCodeAt(s++)!==111||l.charCodeAt(s++)!==110)throw C("FragmentDefinition");x();var r={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:V()},directives:I(!1),selectionSet:G()};return e&&(r.description=e),r}function le(){var e=[];do{var t=void 0;if(l.charCodeAt(s)===34&&(t=$(!0)),l.charCodeAt(s)===123){if(t)throw C("Document");s++,x(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:U()})}else{var r=oe();switch(r){case"fragment":e.push(Ve(t));break;case"query":case"mutation":case"subscription":var a,i=void 0;(a=l.charCodeAt(s))!==40&&a!==64&&a!==123&&(i=V());var n={kind:"OperationDefinition",operation:r,name:i,variableDefinitions:qe(),directives:I(!1),selectionSet:G()};t&&(n.description=t),e.push(n);break;default:throw C("Document")}}}while(s<l.length);return e}function Pe(e,t){return l=e.body?e.body:e,s=0,x(),t&&t.noLocation?{kind:"Document",definitions:le()}:{kind:"Document",definitions:le(),loc:{start:0,end:l.length,startToken:void 0,endToken:void 0,source:{body:l,name:"graphql.web",locationOffset:{line:1,column:1}}}}}function _(e,t,r){for(var a="",i=0;i<e.length;i++)i&&(a+=t),a+=r(e[i]);return a}function je(e){return JSON.stringify(e)}function Ie(e){return`"""
4
4
  `+e.replace(/"""/g,'\\"""')+`
5
5
  """`}var P=`
6
6
  `,E={OperationDefinition(e){var t="";e.description&&(t+=E.StringValue(e.description)+`
@@ -8,12 +8,12 @@
8
8
 
9
9
  `,j)},SelectionSet:e=>"{"+(P+=" ")+_(e.selections,P,j)+(P=P.slice(0,-2))+"}",Argument:e=>e.name.value+": "+j(e.value),FragmentSpread(e){var t="..."+e.name.value;return e.directives&&e.directives.length&&(t+=" "+_(e.directives," ",E.Directive)),t},InlineFragment(e){var t="...";return e.typeCondition&&(t+=" on "+e.typeCondition.name.value),e.directives&&e.directives.length&&(t+=" "+_(e.directives," ",E.Directive)),t+=" "+E.SelectionSet(e.selectionSet)},FragmentDefinition(e){var t="";return e.description&&(t+=E.StringValue(e.description)+`
10
10
  `),t+="fragment "+e.name.value,t+=" on "+e.typeCondition.name.value,e.directives&&e.directives.length&&(t+=" "+_(e.directives," ",E.Directive)),t+" "+E.SelectionSet(e.selectionSet)},Directive(e){var t="@"+e.name.value;return e.arguments&&e.arguments.length&&(t+="("+_(e.arguments,", ",E.Argument)+")"),t},NamedType:e=>e.name.value,ListType:e=>"["+j(e.type)+"]",NonNullType:e=>j(e.type)+"!"},j=e=>E[e.kind](e);function Re(e){return P=`
11
- `,E[e.kind]?E[e.kind](e):""}var Te=e=>e&&typeof e.message=="string"&&(e.extensions||e.name==="GraphQLError")?e:typeof e=="object"&&typeof e.message=="string"?new ne(e.message,e.nodes,e.source,e.positions,e.path,e,e.extensions||{}):new ne(e);class se extends Error{constructor(t){var r=(t.graphQLErrors||[]).map(Te),n=((i,a)=>{var o="";if(i)return`[Network] ${i.message}`;if(a)for(var v=0,h=a.length;v<h;v++)o&&(o+=`
12
- `),o+=`[GraphQL] ${a[v].message}`;return o})(t.networkError,r);super(n),this.name="CombinedError",this.message=n,this.graphQLErrors=r,this.networkError=t.networkError,this.response=t.response}toString(){return this.message}}var J=(e,t)=>{for(var r=0|(t||5381),n=0,i=0|e.length;n<i;n++)r=(r<<5)+r+e.charCodeAt(n);return r},R=new Set,de=new WeakMap,F=(e,t)=>{if(e===null||R.has(e))return"null";if(typeof e!="object")return JSON.stringify(e)||"";if(e.toJSON)return F(e.toJSON(),t);if(Array.isArray(e)){for(var r="[",n=0,i=e.length;n<i;n++)r.length>1&&(r+=","),r+=F(e[n],t)||"null";return r+="]"}else if(!t&&(W!==L&&e instanceof W||Y!==L&&e instanceof Y))return"null";var a=Object.keys(e).sort();if(!a.length&&e.constructor&&Object.getPrototypeOf(e).constructor!==Object.prototype.constructor){var o=de.get(e)||Math.random().toString(36).slice(2);return de.set(e,o),F({__key:o},t)}R.add(e);for(var v="{",h=0,k=a.length;h<k;h++){var y=F(e[a[h]],t);y&&(v.length>1&&(v+=","),v+=F(a[h],t)+":"+y)}return R.delete(e),v+="}"},ae=(e,t,r)=>{if(!(r==null||typeof r!="object"||r.toJSON||R.has(r)))if(Array.isArray(r))for(var n=0,i=r.length;n<i;n++)ae(e,`${t}.${n}`,r[n]);else if(r instanceof W||r instanceof Y)e.set(t,r);else{R.add(r);for(var a in r)ae(e,`${t}.${a}`,r[a])}},z=(e,t)=>(R.clear(),F(e,t||!1));class L{}var W=typeof File<"u"?File:L,Y=typeof Blob<"u"?Blob:L,Fe=/("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g,Me=/(?:#[^\n\r]+)?(?:[\r\n]+|$)/g,$e=(e,t)=>t%2==0?e.replace(Me,`
13
- `):e,ve=e=>e.split(Fe).map($e).join("").trim(),he=new Map,B=new Map,ue=e=>{var t;return typeof e=="string"?t=ve(e):e.loc&&B.get(e.__key)===e?t=e.loc.source.body:(t=he.get(e)||ve(Re(e)),he.set(e,t)),typeof e!="string"&&!e.loc&&(e.loc={start:0,end:t.length,source:{body:t,name:"gql",locationOffset:{line:1,column:1}}}),t},pe=e=>{var t;if(e.documentId)t=J(e.documentId);else if(t=J(ue(e)),e.definitions){var r=we(e);r&&(t=J(`
14
- # ${r}`,t))}return t},Le=e=>{var t,r;return typeof e=="string"?(t=pe(e),r=B.get(t)||Pe(e,{noLocation:!0})):(t=e.__key||pe(e),r=B.get(t)||e),r.loc||ue(r),r.__key=t,B.set(t,r),r},M=(e,t,r)=>{var n=t||{},i=Le(e),a=z(n,!0),o=i.__key;return a!=="{}"&&(o=J(a,o)),{key:o,query:i,variables:n,extensions:r}},we=e=>{for(var t=0,r=e.definitions.length;t<r;t++){var n=e.definitions[t];if(n.kind===xe.OPERATION_DEFINITION)return n.name?n.name.value:void 0}},Qe=e=>{for(var t=0,r=e.definitions.length;t<r;t++){var n=e.definitions[t];if(n.kind===xe.OPERATION_DEFINITION)return n.operation}},ye=(e,t,r)=>{if(!("data"in t||"errors"in t&&Array.isArray(t.errors)))throw new Error("No Content");var n=e.kind==="subscription";return{operation:e,data:t.data,error:Array.isArray(t.errors)?new se({graphQLErrors:t.errors,response:r}):void 0,extensions:t.extensions?{...t.extensions}:void 0,hasNext:t.hasNext==null?n:t.hasNext,stale:!1}},H=(e,t)=>{if(typeof e=="object"&&e!=null){if(Array.isArray(e)){e=[...e];for(var r=0,n=t.length;r<n;r++)e[r]=H(e[r],t[r]);return e}if(!e.constructor||e.constructor===Object){e={...e};for(var i in t)e[i]=H(e[i],t[i]);return e}}return t},Je=(e,t,r,n)=>{var i=e.error?e.error.graphQLErrors:[],a=!!e.extensions||!!(t.payload||t).extensions,o={...e.extensions,...(t.payload||t).extensions},v=t.incremental;"path"in t&&(v=[t]);var h={data:e.data};if(v)for(var k=function(){var m=v[y];Array.isArray(m.errors)&&i.push(...m.errors),m.extensions&&(Object.assign(o,m.extensions),a=!0);var b="data",p=h,w=[];if(m.path)w=m.path;else if(n){var S=n.find((d=>d.id===m.id));m.subPath?w=[...S.path,...m.subPath]:w=S.path}for(var f=0,A=w.length;f<A;b=w[f++])p=p[b]=Array.isArray(p[b])?[...p[b]]:{...p[b]};if(m.items)for(var N=+b>=0?b:0,u=0,g=m.items.length;u<g;u++)p[N+u]=H(p[N+u],m.items[u]);else m.data!==void 0&&(p[b]=H(p[b],m.data))},y=0,O=v.length;y<O;y++)k();else h.data=(t.payload||t).data||e.data,i=t.errors||t.payload&&t.payload.errors||i;return{operation:e.operation,data:h.data,error:i.length?new se({graphQLErrors:i,response:r}):void 0,extensions:a?o:void 0,hasNext:t.hasNext!=null?t.hasNext:e.hasNext,stale:!1}},Oe=(e,t,r)=>({operation:e,data:void 0,error:new se({networkError:t,response:r}),extensions:void 0,hasNext:!1,stale:!1});function Be(e){var t={query:void 0,documentId:void 0,operationName:we(e.query),variables:e.variables||void 0,extensions:e.extensions};return"documentId"in e.query&&e.query.documentId&&(!e.query.definitions||!e.query.definitions.length)?t.documentId=e.query.documentId:(!e.extensions||!e.extensions.persistedQuery||e.extensions.persistedQuery.miss)&&(t.query=ue(e.query)),t}var Ge=(e,t)=>{var r=e.kind==="query"&&e.context.preferGetMethod;if(!r||!t)return e.context.url;var n=Ue(e.context.url);for(var i in t){var a=t[i];a&&n[1].set(i,typeof a=="object"?z(a):a)}var o=n.join("?");return o.length>2047&&r!=="force"?(e.context.preferGetMethod=!1,e.context.url):o},Ue=e=>{var t=e.indexOf("?");return t>-1?[e.slice(0,t),new URLSearchParams(e.slice(t+1))]:[e,new URLSearchParams]},ze=(e,t)=>{if(t&&!(e.kind==="query"&&e.context.preferGetMethod)){var r=z(t),n=(v=>{var h=new Map;return(W!==L||Y!==L)&&(R.clear(),ae(h,"variables",v)),h})(t.variables);if(n.size){var i=new FormData;i.append("operations",r),i.append("map",z({...[...n.keys()].map((v=>[v]))}));var a=0;for(var o of n.values())i.append(""+a++,o);return i}return r}},We=(e,t)=>{var r={accept:e.kind==="subscription"?"text/event-stream, multipart/mixed":"application/graphql-response+json, application/graphql+json, application/json, text/event-stream, multipart/mixed"},n=(typeof e.context.fetchOptions=="function"?e.context.fetchOptions():e.context.fetchOptions)||{};if(n.headers)if((o=>"has"in o&&!Object.keys(o).length)(n.headers))n.headers.forEach(((o,v)=>{r[v]=o}));else if(Array.isArray(n.headers))n.headers.forEach(((o,v)=>{Array.isArray(o)?r[o[0]]?r[o[0]]=`${r[o[0]]},${o[1]}`:r[o[0]]=o[1]:r[v]=o}));else for(var i in n.headers)r[i.toLowerCase()]=n.headers[i];var a=ze(e,t);return typeof a=="string"&&!r["content-type"]&&(r["content-type"]="application/json"),{...n,method:a?"POST":"GET",body:a,headers:r}},Ye=/boundary="?([^=";]+)"?/i,He=/data: ?([^\n]+)/;async function*me(e){if(e.body[Symbol.asyncIterator])for await(var t of e.body)yield t;else{var r=e.body.getReader(),n;try{for(;!(n=await r.read()).done;)yield n.value}finally{r.cancel()}}}async function*ge(e,t){var r=typeof TextDecoder<"u"?new TextDecoder:null,n="",i;for await(var a of e)for(n+=a.constructor.name==="Buffer"?a.toString():r.decode(a,{stream:!0});(i=n.indexOf(t))>-1;)yield n.slice(0,i),n=n.slice(i+t.length)}async function*Ke(e,t,r){var n=!0,i=null,a;try{yield await Promise.resolve();var o=(a=await(e.context.fetch||fetch)(t,r)).headers.get("Content-Type")||"",v;/multipart\/mixed/i.test(o)?v=(async function*(O,m){var b=O.match(Ye),p="--"+(b?b[1]:"-"),w=!0,S;for await(var f of ge(me(m),`\r
11
+ `,E[e.kind]?E[e.kind](e):""}var Te=e=>e&&typeof e.message=="string"&&(e.extensions||e.name==="GraphQLError")?e:typeof e=="object"&&typeof e.message=="string"?new ae(e.message,e.nodes,e.source,e.positions,e.path,e,e.extensions||{}):new ae(e);class se extends Error{constructor(t){var r=(t.graphQLErrors||[]).map(Te),a=((i,n)=>{var o="";if(i)return`[Network] ${i.message}`;if(n)for(var v=0,h=n.length;v<h;v++)o&&(o+=`
12
+ `),o+=`[GraphQL] ${n[v].message}`;return o})(t.networkError,r);super(a),this.name="CombinedError",this.message=a,this.graphQLErrors=r,this.networkError=t.networkError,this.response=t.response}toString(){return this.message}}var J=(e,t)=>{for(var r=0|(t||5381),a=0,i=0|e.length;a<i;a++)r=(r<<5)+r+e.charCodeAt(a);return r},R=new Set,fe=new WeakMap,F=(e,t)=>{if(e===null||R.has(e))return"null";if(typeof e!="object")return JSON.stringify(e)||"";if(e.toJSON)return F(e.toJSON(),t);if(Array.isArray(e)){for(var r="[",a=0,i=e.length;a<i;a++)r.length>1&&(r+=","),r+=F(e[a],t)||"null";return r+="]"}else if(!t&&(W!==L&&e instanceof W||Y!==L&&e instanceof Y))return"null";var n=Object.keys(e).sort();if(!n.length&&e.constructor&&Object.getPrototypeOf(e).constructor!==Object.prototype.constructor){var o=fe.get(e)||Math.random().toString(36).slice(2);return fe.set(e,o),F({__key:o},t)}R.add(e);for(var v="{",h=0,k=n.length;h<k;h++){var y=F(e[n[h]],t);y&&(v.length>1&&(v+=","),v+=F(n[h],t)+":"+y)}return R.delete(e),v+="}"},ne=(e,t,r)=>{if(!(r==null||typeof r!="object"||r.toJSON||R.has(r)))if(Array.isArray(r))for(var a=0,i=r.length;a<i;a++)ne(e,`${t}.${a}`,r[a]);else if(r instanceof W||r instanceof Y)e.set(t,r);else{R.add(r);for(var n in r)ne(e,`${t}.${n}`,r[n])}},z=(e,t)=>(R.clear(),F(e,t||!1));class L{}var W=typeof File<"u"?File:L,Y=typeof Blob<"u"?Blob:L,Fe=/("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g,Me=/(?:#[^\n\r]+)?(?:[\r\n]+|$)/g,$e=(e,t)=>t%2==0?e.replace(Me,`
13
+ `):e,de=e=>e.split(Fe).map($e).join("").trim(),ve=new Map,B=new Map,ue=e=>{var t;return typeof e=="string"?t=de(e):e.loc&&B.get(e.__key)===e?t=e.loc.source.body:(t=ve.get(e)||de(Re(e)),ve.set(e,t)),typeof e!="string"&&!e.loc&&(e.loc={start:0,end:t.length,source:{body:t,name:"gql",locationOffset:{line:1,column:1}}}),t},he=e=>{var t;if(e.documentId)t=J(e.documentId);else if(t=J(ue(e)),e.definitions){var r=be(e);r&&(t=J(`
14
+ # ${r}`,t))}return t},Le=e=>{var t,r;return typeof e=="string"?(t=he(e),r=B.get(t)||Pe(e,{noLocation:!0})):(t=e.__key||he(e),r=B.get(t)||e),r.loc||ue(r),r.__key=t,B.set(t,r),r},M=(e,t,r)=>{var a=t||{},i=Le(e),n=z(a,!0),o=i.__key;return n!=="{}"&&(o=J(n,o)),{key:o,query:i,variables:a,extensions:r}},be=e=>{for(var t=0,r=e.definitions.length;t<r;t++){var a=e.definitions[t];if(a.kind===ke.OPERATION_DEFINITION)return a.name?a.name.value:void 0}},Qe=e=>{for(var t=0,r=e.definitions.length;t<r;t++){var a=e.definitions[t];if(a.kind===ke.OPERATION_DEFINITION)return a.operation}},pe=(e,t,r)=>{if(!("data"in t||"errors"in t&&Array.isArray(t.errors)))throw new Error("No Content");var a=e.kind==="subscription";return{operation:e,data:t.data,error:Array.isArray(t.errors)?new se({graphQLErrors:t.errors,response:r}):void 0,extensions:t.extensions?{...t.extensions}:void 0,hasNext:t.hasNext==null?a:t.hasNext,stale:!1}},H=(e,t)=>{if(typeof e=="object"&&e!=null){if(Array.isArray(e)){e=[...e];for(var r=0,a=t.length;r<a;r++)e[r]=H(e[r],t[r]);return e}if(!e.constructor||e.constructor===Object){e={...e};for(var i in t)e[i]=H(e[i],t[i]);return e}}return t},Je=(e,t,r,a)=>{var i=e.error?e.error.graphQLErrors:[],n=!!e.extensions||!!(t.payload||t).extensions,o={...e.extensions,...(t.payload||t).extensions},v=t.incremental;"path"in t&&(v=[t]);var h={data:e.data};if(v)for(var k=function(){var m=v[y];Array.isArray(m.errors)&&i.push(...m.errors),m.extensions&&(Object.assign(o,m.extensions),n=!0);var b="data",p=h,w=[];if(m.path)w=m.path;else if(a){var S=a.find((d=>d.id===m.id));m.subPath?w=[...S.path,...m.subPath]:w=S.path}for(var f=0,A=w.length;f<A;b=w[f++])p=p[b]=Array.isArray(p[b])?[...p[b]]:{...p[b]};if(m.items)for(var N=+b>=0?b:0,u=0,g=m.items.length;u<g;u++)p[N+u]=H(p[N+u],m.items[u]);else m.data!==void 0&&(p[b]=H(p[b],m.data))},y=0,O=v.length;y<O;y++)k();else h.data=(t.payload||t).data||e.data,i=t.errors||t.payload&&t.payload.errors||i;return{operation:e.operation,data:h.data,error:i.length?new se({graphQLErrors:i,response:r}):void 0,extensions:n?o:void 0,hasNext:t.hasNext!=null?t.hasNext:e.hasNext,stale:!1}},we=(e,t,r)=>({operation:e,data:void 0,error:new se({networkError:t,response:r}),extensions:void 0,hasNext:!1,stale:!1});function Be(e){var t={query:void 0,documentId:void 0,operationName:be(e.query),variables:e.variables||void 0,extensions:e.extensions};return"documentId"in e.query&&e.query.documentId&&(!e.query.definitions||!e.query.definitions.length)?t.documentId=e.query.documentId:(!e.extensions||!e.extensions.persistedQuery||e.extensions.persistedQuery.miss)&&(t.query=ue(e.query)),t}var Ge=(e,t)=>{var r=e.kind==="query"&&e.context.preferGetMethod;if(!r||!t)return e.context.url;var a=Ue(e.context.url);for(var i in t){var n=t[i];n&&a[1].set(i,typeof n=="object"?z(n):n)}var o=a.join("?");return o.length>2047&&r!=="force"?(e.context.preferGetMethod=!1,e.context.url):o},Ue=e=>{var t=e.indexOf("?");return t>-1?[e.slice(0,t),new URLSearchParams(e.slice(t+1))]:[e,new URLSearchParams]},ze=(e,t)=>{if(t&&!(e.kind==="query"&&e.context.preferGetMethod)){var r=z(t),a=(v=>{var h=new Map;return(W!==L||Y!==L)&&(R.clear(),ne(h,"variables",v)),h})(t.variables);if(a.size){var i=new FormData;i.append("operations",r),i.append("map",z({...[...a.keys()].map((v=>[v]))}));var n=0;for(var o of a.values())i.append(""+n++,o);return i}return r}},We=(e,t)=>{var r={accept:e.kind==="subscription"?"text/event-stream, multipart/mixed":"application/graphql-response+json, application/graphql+json, application/json, text/event-stream, multipart/mixed"},a=(typeof e.context.fetchOptions=="function"?e.context.fetchOptions():e.context.fetchOptions)||{};if(a.headers)if((o=>"has"in o&&!Object.keys(o).length)(a.headers))a.headers.forEach(((o,v)=>{r[v]=o}));else if(Array.isArray(a.headers))a.headers.forEach(((o,v)=>{Array.isArray(o)?r[o[0]]?r[o[0]]=`${r[o[0]]},${o[1]}`:r[o[0]]=o[1]:r[v]=o}));else for(var i in a.headers)r[i.toLowerCase()]=a.headers[i];var n=ze(e,t);return typeof n=="string"&&!r["content-type"]&&(r["content-type"]="application/json"),{...a,method:n?"POST":"GET",body:n,headers:r}},Ye=/boundary="?([^=";]+)"?/i,He=/data: ?([^\n]+)/;async function*ye(e){if(e.body[Symbol.asyncIterator])for await(var t of e.body)yield t;else{var r=e.body.getReader(),a;try{for(;!(a=await r.read()).done;)yield a.value}finally{r.cancel()}}}async function*me(e,t){var r=typeof TextDecoder<"u"?new TextDecoder:null,a="",i;for await(var n of e)for(a+=n.constructor.name==="Buffer"?n.toString():r.decode(n,{stream:!0});(i=a.indexOf(t))>-1;)yield a.slice(0,i),a=a.slice(i+t.length)}async function*Ke(e,t,r){var a=!0,i=null,n;try{yield await Promise.resolve();var o=(n=await(e.context.fetch||fetch)(t,r)).headers.get("Content-Type")||"",v;/multipart\/mixed/i.test(o)?v=(async function*(O,m){var b=O.match(Ye),p="--"+(b?b[1]:"-"),w=!0,S;for await(var f of me(ye(m),`\r
15
15
  `+p)){if(w){w=!1;var A=f.indexOf(p);if(A>-1)f=f.slice(A+p.length);else continue}try{yield S=JSON.parse(f.slice(f.indexOf(`\r
16
16
  \r
17
- `)+4))}catch(N){if(!S)throw N}if(S&&S.hasNext===!1)break}S&&S.hasNext!==!1&&(yield{hasNext:!1})})(o,a):/text\/event-stream/i.test(o)?v=(async function*(O){var m;for await(var b of ge(me(O),`
17
+ `)+4))}catch(N){if(!S)throw N}if(S&&S.hasNext===!1)break}S&&S.hasNext!==!1&&(yield{hasNext:!1})})(o,n):/text\/event-stream/i.test(o)?v=(async function*(O){var m;for await(var b of me(ye(O),`
18
18
 
19
- `)){var p=b.match(He);if(p){var w=p[1];try{yield m=JSON.parse(w)}catch(S){if(!m)throw S}if(m&&m.hasNext===!1)break}}m&&m.hasNext!==!1&&(yield{hasNext:!1})})(a):/text\//i.test(o)?v=(async function*(O){var m=await O.text();try{var b=JSON.parse(m);process.env.NODE_ENV!=="production"&&console.warn('Found response with content-type "text/plain" but it had a valid "application/json" response.'),yield b}catch{throw new Error(m)}})(a):v=(async function*(O){yield JSON.parse(await O.text())})(a);var h;for await(var k of v)k.pending&&!i?h=k.pending:k.pending&&(h=[...h,...k.pending]),i=i?Je(i,k,a,h):ye(e,k,a),n=!1,yield i,n=!0;i||(yield i=ye(e,{},a))}catch(y){if(!n)throw y;yield Oe(e,a&&(a.status<200||a.status>=300)&&a.statusText?new Error(a.statusText):y,a)}}function Xe(e,t,r){var n;return typeof AbortController<"u"&&(r.signal=(n=new AbortController).signal),c.onEnd((()=>{n&&n.abort()}))(c.filter((i=>!!i))(c.fromAsyncIterable(Ke(e,t,r))))}function ke(e){var t=r=>e(r);return t.toPromise=()=>c.toPromise(c.take(1)(c.filter((r=>!r.stale&&!r.hasNext))(t))),t.then=(r,n)=>t.toPromise().then(r,n),t.subscribe=r=>c.subscribe(r)(t),t}function K(e,t,r){return{...t,kind:e,context:t.context?{...t.context,...r}:r||t.context}}var Ze=()=>{},et=({forward:e,dispatchDebug:t})=>r=>{var n=c.mergeMap((a=>{var o=Be(a),v=Ge(a,o),h=We(a,o);process.env.NODE_ENV!=="production"&&t({type:"fetchRequest",message:"A fetch request is being executed.",operation:a,data:{url:v,fetchOptions:h},source:"fetchExchange"});var k=c.takeUntil(c.filter((y=>y.kind==="teardown"&&y.key===a.key))(r))(Xe(a,v,h));return process.env.NODE_ENV!=="production"?c.onPush((y=>{var O=y.data?void 0:y.error;process.env.NODE_ENV!=="production"&&t({type:O?"fetchError":"fetchSuccess",message:`A ${O?"failed":"successful"} fetch response has been returned.`,operation:a,data:{url:v,fetchOptions:h,value:O||y},source:"fetchExchange"})}))(k):k}))(c.filter((a=>a.kind!=="teardown"&&(a.kind!=="subscription"||!!a.context.fetchSubscriptions)))(r)),i=e(c.filter((a=>a.kind==="teardown"||a.kind==="subscription"&&!a.context.fetchSubscriptions))(r));return c.merge([n,i])},tt=e=>({client:t,forward:r,dispatchDebug:n})=>e.reduceRight(((i,a)=>{var o=!1;return a({client:t,forward(v){if(process.env.NODE_ENV!=="production"){if(o)throw new Error("forward() must only be called once in each Exchange.");o=!0}return c.share(i(c.share(v)))},dispatchDebug(v){process.env.NODE_ENV!=="production"&&n({timestamp:Date.now(),source:a.name,...v})}})}),r),rt=({dispatchDebug:e})=>t=>(process.env.NODE_ENV!=="production"&&(t=c.onPush((r=>{if(r.kind!=="teardown"&&process.env.NODE_ENV!=="production"){var n=`No exchange has handled operations of kind "${r.kind}". Check whether you've added an exchange responsible for these operations.`;process.env.NODE_ENV!=="production"&&e({type:"fallbackCatch",message:n,operation:r,source:"fallbackExchange"}),console.warn(n)}}))(t)),c.filter((r=>!1))(t)),nt=function e(t){if(process.env.NODE_ENV!=="production"&&!t.url)throw new Error("You are creating an urql-client without a url.");var r=0,n=new Map,i=new Map,a=new Set,o=[],v={url:t.url,fetchSubscriptions:t.fetchSubscriptions,fetchOptions:t.fetchOptions,fetch:t.fetch,preferGetMethod:t.preferGetMethod,requestPolicy:t.requestPolicy||"cache-first"},h=c.makeSubject();function k(u){(u.kind==="mutation"||u.kind==="teardown"||!a.has(u.key))&&(u.kind==="teardown"?a.delete(u.key):u.kind!=="mutation"&&a.add(u.key),h.next(u))}var y=!1;function O(u){if(u&&k(u),!y){for(y=!0;y&&(u=o.shift());)k(u);y=!1}}var m=u=>{var g=c.takeUntil(c.filter((d=>d.kind==="teardown"&&d.key===u.key))(h.source))(c.filter((d=>d.operation.kind===u.kind&&d.operation.key===u.key&&(!d.operation.context._instance||d.operation.context._instance===u.context._instance)))(N));return u.kind!=="query"?g=c.takeWhile((d=>!!d.hasNext),!0)(g):g=c.switchMap((d=>{var D=c.fromValue(d);return d.stale||d.hasNext?D:c.merge([D,c.map((()=>(d.stale=!0,d)))(c.take(1)(c.filter((T=>T.key===u.key))(h.source)))])}))(g),u.kind!=="mutation"?g=c.onEnd((()=>{a.delete(u.key),n.delete(u.key),i.delete(u.key),y=!1;for(var d=o.length-1;d>=0;d--)o[d].key===u.key&&o.splice(d,1);k(K("teardown",u,u.context))}))(c.onPush((d=>{if(d.stale)if(!d.hasNext)a.delete(u.key);else for(var D=0;D<o.length;D++){var T=o[D];if(T.key===d.operation.key){a.delete(T.key);break}}else d.hasNext||a.delete(u.key);n.set(u.key,d)}))(g)):g=c.onStart((()=>{k(u)}))(g),c.share(g)},b=this instanceof e?this:Object.create(e.prototype),p=Object.assign(b,{suspense:!!t.suspense,operations$:h.source,reexecuteOperation(u){if(u.kind==="teardown")O(u);else if(u.kind==="mutation")o.push(u),Promise.resolve().then(O);else if(i.has(u.key)){for(var g=!1,d=0;d<o.length;d++)o[d].key===u.key&&(o[d]=u,g=!0);g||a.has(u.key)&&u.context.requestPolicy!=="network-only"?(a.delete(u.key),Promise.resolve().then(O)):(o.push(u),Promise.resolve().then(O))}},createRequestOperation(u,g,d){d||(d={});var D;if(process.env.NODE_ENV!=="production"&&u!=="teardown"&&(D=Qe(g.query))!==u)throw new Error(`Expected operation of type "${u}" but found "${D}"`);return K(u,g,{_instance:u==="mutation"?r=r+1|0:void 0,...v,...d,requestPolicy:d.requestPolicy||v.requestPolicy,suspense:d.suspense||d.suspense!==!1&&p.suspense})},executeRequestOperation(u){return u.kind==="mutation"?ke(m(u)):ke(c.lazy((()=>{var g=i.get(u.key);g||i.set(u.key,g=m(u)),g=c.onStart((()=>{O(u)}))(g);var d=n.get(u.key);return u.kind==="query"&&d&&(d.stale||d.hasNext)?c.switchMap(c.fromValue)(c.merge([g,c.filter((D=>D===n.get(u.key)))(c.fromValue(d))])):g})))},executeQuery(u,g){var d=p.createRequestOperation("query",u,g);return p.executeRequestOperation(d)},executeSubscription(u,g){var d=p.createRequestOperation("subscription",u,g);return p.executeRequestOperation(d)},executeMutation(u,g){var d=p.createRequestOperation("mutation",u,g);return p.executeRequestOperation(d)},readQuery(u,g,d){var D=null;return c.subscribe((T=>{D=T}))(p.query(u,g,d)).unsubscribe(),D},query:(u,g,d)=>p.executeQuery(M(u,g),d),subscription:(u,g,d)=>p.executeSubscription(M(u,g),d),mutation:(u,g,d)=>p.executeMutation(M(u,g),d)}),w=Ze;if(process.env.NODE_ENV!=="production"){var{next:S,source:f}=c.makeSubject();p.subscribeToDebugTarget=u=>c.subscribe(u)(f),w=S}var A=tt(t.exchanges),N=c.share(A({client:p,dispatchDebug:w,forward:rt({dispatchDebug:w})})(h.source));return c.publish(N),p},Ae={},Z=q.createContext(Ae),at=Z.Provider;Z.Consumer;Z.displayName="UrqlContext";var ce=()=>{var e=q.useContext(Z);if(e===Ae&&process.env.NODE_ENV!=="production"){var t="No client has been specified using urql's Provider. please create a client and add a Provider.";throw console.error(t),new Error(t)}return e},ie={fetching:!1,stale:!1,hasNext:!1,error:void 0,data:void 0,extensions:void 0,operation:void 0},it=(e,t)=>e===t||!(!e||!t||e.key!==t.key),ee=(e,t)=>{var r={...e,...t,data:t.data!==void 0||t.error?t.data:e.data,fetching:!!t.fetching,stale:!!t.stale};return((n,i)=>{for(var a in n)if(!(a in i))return!0;for(var o in i)if(o==="operation"?!it(n[o],i[o]):n[o]!==i[o])return!0;return!1})(e,r)?r:e},ot=(e,t)=>{for(var r=0,n=t.length;r<n;r++)if(e[r]!==t[r])return!0;return!1},te=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t){process.env.NODE_ENV!=="production"&&te&&te.ReactCurrentOwner&&te.ReactCurrentOwner.current?Promise.resolve(t).then(e):e(t)}function st(e){var t=q.useRef(!0),r=ce(),[n,i]=q.useState(ie),a=q.useCallback(((o,v)=>(X(i,{...ie,fetching:!0}),c.toPromise(c.take(1)(c.filter((h=>!h.hasNext))(c.onPush((h=>{t.current&&X(i,{fetching:!1,stale:h.stale,data:h.data,error:h.error,extensions:h.extensions,operation:h.operation,hasNext:h.hasNext})}))(r.executeMutation(M(e,o),v||{}))))))),[r,e,i]);return q.useEffect((()=>(t.current=!0,()=>{t.current=!1})),[]),[n,a]}function ut(e,t){var r=q.useRef(void 0);return q.useMemo((()=>{var n=M(e,t);return r.current!==void 0&&r.current.key===n.key?r.current:(r.current=n,n)}),[e,t])}var ct=e=>{if(!e._react){var t=new Set,r=new Map;e.operations$&&c.subscribe((n=>{n.kind==="teardown"&&t.has(n.key)&&(t.delete(n.key),r.delete(n.key))}))(e.operations$),e._react={get:n=>r.get(n),set(n,i){t.delete(n),r.set(n,i)},dispose(n){t.add(n)}}}return e._react},lt=(e,t)=>t&&t.suspense!==void 0?!!t.suspense:e.suspense;function ft(e){var t=ce(),r=ct(t),n=lt(t,e.context),i=ut(e.query,e.variables),a=q.useMemo((()=>{if(e.pause)return null;var m=t.executeQuery(i,{requestPolicy:e.requestPolicy,...e.context});return n?c.onPush((b=>{r.set(i.key,b)}))(m):m}),[r,t,i,n,e.pause,e.requestPolicy,e.context]),o=q.useCallback(((m,b)=>{if(!m)return{fetching:!1};var p=r.get(i.key);if(p){if(b&&p!=null&&"then"in p)throw p}else{var w,S=c.subscribe((A=>{p=A,w&&w(p)}))(c.takeWhile((()=>b&&!w||!p||"hasNext"in p&&p.hasNext))(m));if(p==null&&b){var f=new Promise((A=>{w=A}));throw r.set(i.key,f),f}else S.unsubscribe()}return p||{fetching:!0}}),[r,i]),v=[t,i,e.requestPolicy,e.context,e.pause],[h,k]=q.useState((()=>[a,ee(ie,o(a,n)),v])),y=h[1];a!==h[0]&&ot(h[2],v)&&k([a,y=ee(h[1],o(a,n)),v]),q.useEffect((()=>{var m=h[0],b=h[2][1],p=!1,w=f=>{p=!0,X(k,(A=>{var N=ee(A[1],f);return A[1]!==N?[A[0],N,A[2]]:A}))};if(m){var S=c.subscribe(w)(c.onEnd((()=>{w({fetching:!1})}))(m));return p||w({fetching:!0}),()=>{r.dispose(b.key),S.unsubscribe()}}else w({fetching:!1})}),[r,h[0],h[2][1]]);var O=q.useCallback((m=>{var b={requestPolicy:e.requestPolicy,...e.context,...m};X(k,(p=>[n?c.onPush((w=>{r.set(i.key,w)}))(t.executeQuery(i,b)):t.executeQuery(i,b),p[1],v]))}),[t,r,i,n,e.requestPolicy,e.context,e.pause]);return[y,O]}var re=(e,t)=>K(e.kind,e,{...e.context,authAttempt:t});function dt(e){return({client:t,forward:r})=>{var n=new Set,i=c.makeSubject(),a=c.makeSubject(),o=new Map;function v(){k=void 0;var O=o;o=new Map,O.forEach(i.next)}function h(O){k=void 0;var m=o;o=new Map,m.forEach((b=>{a.next(Oe(b,O))}))}var k,y=null;return O=>{function m(){k=Promise.resolve().then((()=>e({mutate(f,A,N){var u=t.createRequestOperation("mutation",M(f,A),N);return c.toPromise(c.take(1)(c.filter((g=>g.operation.key===u.key&&u.context._instance===g.operation.context._instance))(c.onStart((()=>{var g=p(u);n.add(g.context._instance),i.next(g)}))(S))))},appendHeaders(f,A){var N=typeof f.context.fetchOptions=="function"?f.context.fetchOptions():f.context.fetchOptions||{};return K(f.kind,f,{...f.context,fetchOptions:{...N,headers:{...N.headers,...A}}})}}))).then((f=>{f&&(y=f),v()})).catch((f=>{process.env.NODE_ENV!=="production"&&console.warn("authExchange()’s initialization function has failed, which is unexpected.\nIf your initialization function is expected to throw/reject, catch this error and handle it explicitly.\nUnless this error is handled it’ll be passed onto any `OperationResult` instantly and authExchange() will block further operations and retry.",f),h(f)}))}m();function b(f){o.set(f.key,re(f,!0)),y&&!k&&(k=y.refreshAuth().then(v).catch(h))}function p(f){return y?y.addAuthToOperation(f):f}var w=c.filter(Boolean)(c.map((f=>f.kind==="teardown"?(o.delete(f.key),f):f.context._instance&&n.has(f.context._instance)?f:f.context.authAttempt?p(f):k||!y?(k||m(),o.has(f.key)||o.set(f.key,re(f,!1)),null):(function(N){return!N.context.authAttempt&&y&&y.willAuthError&&y.willAuthError(N)})(f)?(b(f),null):p(re(f,!1))))(c.merge([i.source,O]))),S=r(w);return c.merge([a.source,c.filter((f=>!n.has(f.operation.context._instance)&&f.error&&(function(N){return y&&y.didAuthError&&y.didAuthError(N.error,N.operation)})(f)&&!f.operation.context.authAttempt?(b(f.operation),!1):(n.has(f.operation.context._instance)&&n.delete(f.operation.context._instance),!0)))(S)])}}}exports.C=nt;exports.authExchange=dt;exports.f=at;exports.fetchExchange=et;exports.useClient=ce;exports.useMutation=st;exports.useQuery=ft;
19
+ `)){var p=b.match(He);if(p){var w=p[1];try{yield m=JSON.parse(w)}catch(S){if(!m)throw S}if(m&&m.hasNext===!1)break}}m&&m.hasNext!==!1&&(yield{hasNext:!1})})(n):/text\//i.test(o)?v=(async function*(O){var m=await O.text();try{var b=JSON.parse(m);process.env.NODE_ENV!=="production"&&console.warn('Found response with content-type "text/plain" but it had a valid "application/json" response.'),yield b}catch{throw new Error(m)}})(n):v=(async function*(O){yield JSON.parse(await O.text())})(n);var h;for await(var k of v)k.pending&&!i?h=k.pending:k.pending&&(h=[...h,...k.pending]),i=i?Je(i,k,n,h):pe(e,k,n),a=!1,yield i,a=!0;i||(yield i=pe(e,{},n))}catch(y){if(!a)throw y;yield we(e,n&&(n.status<200||n.status>=300)&&n.statusText?new Error(n.statusText):y,n)}}function Xe(e,t,r){var a;return typeof AbortController<"u"&&(r.signal=(a=new AbortController).signal),c.onEnd((()=>{a&&a.abort()}))(c.filter((i=>!!i))(c.fromAsyncIterable(Ke(e,t,r))))}function ge(e){var t=r=>e(r);return t.toPromise=()=>c.toPromise(c.take(1)(c.filter((r=>!r.stale&&!r.hasNext))(t))),t.then=(r,a)=>t.toPromise().then(r,a),t.subscribe=r=>c.subscribe(r)(t),t}function K(e,t,r){return{...t,kind:e,context:t.context?{...t.context,...r}:r||t.context}}var Ze=()=>{},et=({forward:e,dispatchDebug:t})=>r=>{var a=c.mergeMap((n=>{var o=Be(n),v=Ge(n,o),h=We(n,o);process.env.NODE_ENV!=="production"&&t({type:"fetchRequest",message:"A fetch request is being executed.",operation:n,data:{url:v,fetchOptions:h},source:"fetchExchange"});var k=c.takeUntil(c.filter((y=>y.kind==="teardown"&&y.key===n.key))(r))(Xe(n,v,h));return process.env.NODE_ENV!=="production"?c.onPush((y=>{var O=y.data?void 0:y.error;process.env.NODE_ENV!=="production"&&t({type:O?"fetchError":"fetchSuccess",message:`A ${O?"failed":"successful"} fetch response has been returned.`,operation:n,data:{url:v,fetchOptions:h,value:O||y},source:"fetchExchange"})}))(k):k}))(c.filter((n=>n.kind!=="teardown"&&(n.kind!=="subscription"||!!n.context.fetchSubscriptions)))(r)),i=e(c.filter((n=>n.kind==="teardown"||n.kind==="subscription"&&!n.context.fetchSubscriptions))(r));return c.merge([a,i])},tt=e=>({client:t,forward:r,dispatchDebug:a})=>e.reduceRight(((i,n)=>{var o=!1;return n({client:t,forward(v){if(process.env.NODE_ENV!=="production"){if(o)throw new Error("forward() must only be called once in each Exchange.");o=!0}return c.share(i(c.share(v)))},dispatchDebug(v){process.env.NODE_ENV!=="production"&&a({timestamp:Date.now(),source:n.name,...v})}})}),r),rt=({dispatchDebug:e})=>t=>(process.env.NODE_ENV!=="production"&&(t=c.onPush((r=>{if(r.kind!=="teardown"&&process.env.NODE_ENV!=="production"){var a=`No exchange has handled operations of kind "${r.kind}". Check whether you've added an exchange responsible for these operations.`;process.env.NODE_ENV!=="production"&&e({type:"fallbackCatch",message:a,operation:r,source:"fallbackExchange"}),console.warn(a)}}))(t)),c.filter((r=>!1))(t)),at=function e(t){if(process.env.NODE_ENV!=="production"&&!t.url)throw new Error("You are creating an urql-client without a url.");var r=0,a=new Map,i=new Map,n=new Set,o=[],v={url:t.url,fetchSubscriptions:t.fetchSubscriptions,fetchOptions:t.fetchOptions,fetch:t.fetch,preferGetMethod:t.preferGetMethod,requestPolicy:t.requestPolicy||"cache-first"},h=c.makeSubject();function k(u){(u.kind==="mutation"||u.kind==="teardown"||!n.has(u.key))&&(u.kind==="teardown"?n.delete(u.key):u.kind!=="mutation"&&n.add(u.key),h.next(u))}var y=!1;function O(u){if(u&&k(u),!y){for(y=!0;y&&(u=o.shift());)k(u);y=!1}}var m=u=>{var g=c.takeUntil(c.filter((d=>d.kind==="teardown"&&d.key===u.key))(h.source))(c.filter((d=>d.operation.kind===u.kind&&d.operation.key===u.key&&(!d.operation.context._instance||d.operation.context._instance===u.context._instance)))(N));return u.kind!=="query"?g=c.takeWhile((d=>!!d.hasNext),!0)(g):g=c.switchMap((d=>{var D=c.fromValue(d);return d.stale||d.hasNext?D:c.merge([D,c.map((()=>(d.stale=!0,d)))(c.take(1)(c.filter((T=>T.key===u.key))(h.source)))])}))(g),u.kind!=="mutation"?g=c.onEnd((()=>{n.delete(u.key),a.delete(u.key),i.delete(u.key),y=!1;for(var d=o.length-1;d>=0;d--)o[d].key===u.key&&o.splice(d,1);k(K("teardown",u,u.context))}))(c.onPush((d=>{if(d.stale)if(!d.hasNext)n.delete(u.key);else for(var D=0;D<o.length;D++){var T=o[D];if(T.key===d.operation.key){n.delete(T.key);break}}else d.hasNext||n.delete(u.key);a.set(u.key,d)}))(g)):g=c.onStart((()=>{k(u)}))(g),c.share(g)},b=this instanceof e?this:Object.create(e.prototype),p=Object.assign(b,{suspense:!!t.suspense,operations$:h.source,reexecuteOperation(u){if(u.kind==="teardown")O(u);else if(u.kind==="mutation")o.push(u),Promise.resolve().then(O);else if(i.has(u.key)){for(var g=!1,d=0;d<o.length;d++)o[d].key===u.key&&(o[d]=u,g=!0);g||n.has(u.key)&&u.context.requestPolicy!=="network-only"?(n.delete(u.key),Promise.resolve().then(O)):(o.push(u),Promise.resolve().then(O))}},createRequestOperation(u,g,d){d||(d={});var D;if(process.env.NODE_ENV!=="production"&&u!=="teardown"&&(D=Qe(g.query))!==u)throw new Error(`Expected operation of type "${u}" but found "${D}"`);return K(u,g,{_instance:u==="mutation"?r=r+1|0:void 0,...v,...d,requestPolicy:d.requestPolicy||v.requestPolicy,suspense:d.suspense||d.suspense!==!1&&p.suspense})},executeRequestOperation(u){return u.kind==="mutation"?ge(m(u)):ge(c.lazy((()=>{var g=i.get(u.key);g||i.set(u.key,g=m(u)),g=c.onStart((()=>{O(u)}))(g);var d=a.get(u.key);return u.kind==="query"&&d&&(d.stale||d.hasNext)?c.switchMap(c.fromValue)(c.merge([g,c.filter((D=>D===a.get(u.key)))(c.fromValue(d))])):g})))},executeQuery(u,g){var d=p.createRequestOperation("query",u,g);return p.executeRequestOperation(d)},executeSubscription(u,g){var d=p.createRequestOperation("subscription",u,g);return p.executeRequestOperation(d)},executeMutation(u,g){var d=p.createRequestOperation("mutation",u,g);return p.executeRequestOperation(d)},readQuery(u,g,d){var D=null;return c.subscribe((T=>{D=T}))(p.query(u,g,d)).unsubscribe(),D},query:(u,g,d)=>p.executeQuery(M(u,g),d),subscription:(u,g,d)=>p.executeSubscription(M(u,g),d),mutation:(u,g,d)=>p.executeMutation(M(u,g),d)}),w=Ze;if(process.env.NODE_ENV!=="production"){var{next:S,source:f}=c.makeSubject();p.subscribeToDebugTarget=u=>c.subscribe(u)(f),w=S}var A=tt(t.exchanges),N=c.share(A({client:p,dispatchDebug:w,forward:rt({dispatchDebug:w})})(h.source));return c.publish(N),p},Oe={},Z=q.createContext(Oe),nt=Z.Provider;Z.Consumer;Z.displayName="UrqlContext";var Ae=()=>{var e=q.useContext(Z);if(e===Oe&&process.env.NODE_ENV!=="production"){var t="No client has been specified using urql's Provider. please create a client and add a Provider.";throw console.error(t),new Error(t)}return e},ie={fetching:!1,stale:!1,hasNext:!1,error:void 0,data:void 0,extensions:void 0,operation:void 0},it=(e,t)=>e===t||!(!e||!t||e.key!==t.key),ee=(e,t)=>{var r={...e,...t,data:t.data!==void 0||t.error?t.data:e.data,fetching:!!t.fetching,stale:!!t.stale};return((a,i)=>{for(var n in a)if(!(n in i))return!0;for(var o in i)if(o==="operation"?!it(a[o],i[o]):a[o]!==i[o])return!0;return!1})(e,r)?r:e},ot=(e,t)=>{for(var r=0,a=t.length;r<a;r++)if(e[r]!==t[r])return!0;return!1},te=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t){process.env.NODE_ENV!=="production"&&te&&te.ReactCurrentOwner&&te.ReactCurrentOwner.current?Promise.resolve(t).then(e):e(t)}function st(e){var t=q.useRef(!0),r=Ae(),[a,i]=q.useState(ie),n=q.useCallback(((o,v)=>(X(i,{...ie,fetching:!0}),c.toPromise(c.take(1)(c.filter((h=>!h.hasNext))(c.onPush((h=>{t.current&&X(i,{fetching:!1,stale:h.stale,data:h.data,error:h.error,extensions:h.extensions,operation:h.operation,hasNext:h.hasNext})}))(r.executeMutation(M(e,o),v||{}))))))),[r,e,i]);return q.useEffect((()=>(t.current=!0,()=>{t.current=!1})),[]),[a,n]}function ut(e,t){var r=q.useRef(void 0);return q.useMemo((()=>{var a=M(e,t);return r.current!==void 0&&r.current.key===a.key?r.current:(r.current=a,a)}),[e,t])}var ct=e=>{if(!e._react){var t=new Set,r=new Map;e.operations$&&c.subscribe((a=>{a.kind==="teardown"&&t.has(a.key)&&(t.delete(a.key),r.delete(a.key))}))(e.operations$),e._react={get:a=>r.get(a),set(a,i){t.delete(a),r.set(a,i)},dispose(a){t.add(a)}}}return e._react},lt=(e,t)=>t&&t.suspense!==void 0?!!t.suspense:e.suspense;function ft(e){var t=Ae(),r=ct(t),a=lt(t,e.context),i=ut(e.query,e.variables),n=q.useMemo((()=>{if(e.pause)return null;var m=t.executeQuery(i,{requestPolicy:e.requestPolicy,...e.context});return a?c.onPush((b=>{r.set(i.key,b)}))(m):m}),[r,t,i,a,e.pause,e.requestPolicy,e.context]),o=q.useCallback(((m,b)=>{if(!m)return{fetching:!1};var p=r.get(i.key);if(p){if(b&&p!=null&&"then"in p)throw p}else{var w,S=c.subscribe((A=>{p=A,w&&w(p)}))(c.takeWhile((()=>b&&!w||!p||"hasNext"in p&&p.hasNext))(m));if(p==null&&b){var f=new Promise((A=>{w=A}));throw r.set(i.key,f),f}else S.unsubscribe()}return p||{fetching:!0}}),[r,i]),v=[t,i,e.requestPolicy,e.context,e.pause],[h,k]=q.useState((()=>[n,ee(ie,o(n,a)),v])),y=h[1];n!==h[0]&&ot(h[2],v)&&k([n,y=ee(h[1],o(n,a)),v]),q.useEffect((()=>{var m=h[0],b=h[2][1],p=!1,w=f=>{p=!0,X(k,(A=>{var N=ee(A[1],f);return A[1]!==N?[A[0],N,A[2]]:A}))};if(m){var S=c.subscribe(w)(c.onEnd((()=>{w({fetching:!1})}))(m));return p||w({fetching:!0}),()=>{r.dispose(b.key),S.unsubscribe()}}else w({fetching:!1})}),[r,h[0],h[2][1]]);var O=q.useCallback((m=>{var b={requestPolicy:e.requestPolicy,...e.context,...m};X(k,(p=>[a?c.onPush((w=>{r.set(i.key,w)}))(t.executeQuery(i,b)):t.executeQuery(i,b),p[1],v]))}),[t,r,i,a,e.requestPolicy,e.context,e.pause]);return[y,O]}var re=(e,t)=>K(e.kind,e,{...e.context,authAttempt:t});function dt(e){return({client:t,forward:r})=>{var a=new Set,i=c.makeSubject(),n=c.makeSubject(),o=new Map;function v(){k=void 0;var O=o;o=new Map,O.forEach(i.next)}function h(O){k=void 0;var m=o;o=new Map,m.forEach((b=>{n.next(we(b,O))}))}var k,y=null;return O=>{function m(){k=Promise.resolve().then((()=>e({mutate(f,A,N){var u=t.createRequestOperation("mutation",M(f,A),N);return c.toPromise(c.take(1)(c.filter((g=>g.operation.key===u.key&&u.context._instance===g.operation.context._instance))(c.onStart((()=>{var g=p(u);a.add(g.context._instance),i.next(g)}))(S))))},appendHeaders(f,A){var N=typeof f.context.fetchOptions=="function"?f.context.fetchOptions():f.context.fetchOptions||{};return K(f.kind,f,{...f.context,fetchOptions:{...N,headers:{...N.headers,...A}}})}}))).then((f=>{f&&(y=f),v()})).catch((f=>{process.env.NODE_ENV!=="production"&&console.warn("authExchange()’s initialization function has failed, which is unexpected.\nIf your initialization function is expected to throw/reject, catch this error and handle it explicitly.\nUnless this error is handled it’ll be passed onto any `OperationResult` instantly and authExchange() will block further operations and retry.",f),h(f)}))}m();function b(f){o.set(f.key,re(f,!0)),y&&!k&&(k=y.refreshAuth().then(v).catch(h))}function p(f){return y?y.addAuthToOperation(f):f}var w=c.filter(Boolean)(c.map((f=>f.kind==="teardown"?(o.delete(f.key),f):f.context._instance&&a.has(f.context._instance)?f:f.context.authAttempt?p(f):k||!y?(k||m(),o.has(f.key)||o.set(f.key,re(f,!1)),null):(function(N){return!N.context.authAttempt&&y&&y.willAuthError&&y.willAuthError(N)})(f)?(b(f),null):p(re(f,!1))))(c.merge([i.source,O]))),S=r(w);return c.merge([n.source,c.filter((f=>!a.has(f.operation.context._instance)&&f.error&&(function(N){return y&&y.didAuthError&&y.didAuthError(N.error,N.operation)})(f)&&!f.operation.context.authAttempt?(b(f.operation),!1):(a.has(f.operation.context._instance)&&a.delete(f.operation.context._instance),!0)))(S)])}}}exports.C=at;exports.authExchange=dt;exports.f=nt;exports.fetchExchange=et;exports.useMutation=st;exports.useQuery=ft;
@@ -1277,9 +1277,8 @@ function Dr(e) {
1277
1277
  export {
1278
1278
  Or as C,
1279
1279
  Sr as a,
1280
- je as b,
1281
- Dr as c,
1282
- Er as d,
1280
+ Dr as b,
1281
+ Er as c,
1283
1282
  Nr as f,
1284
1283
  Cr as u
1285
1284
  };
package/dist/hooks.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./graphql-vendor-CL0XsjHb.cjs"),a=require("react"),i=require("./services.cjs"),u=require("./types.cjs"),L=({url:e,getAuthToken:t})=>new l.C({url:e,requestPolicy:"cache-and-network",exchanges:[l.authExchange(r=>{const n=t();return Promise.resolve({addAuthToOperation(s){return n?r.appendHeaders(s,{Authorization:`Bearer ${n}`}):s},didAuthError:s=>/unauthorized/gi.test(s?.message),refreshAuth:()=>Promise.resolve()})}),l.fetchExchange]}),f=({url:e,getAuthToken:t})=>a.useMemo(()=>L({url:e,getAuthToken:t}),[e,t]),c=e=>{const t=i.getAllAvailableJoints();return a.useMemo(()=>t.filter(r=>r.id==="NavalSpine"||r.id==="ChestSpine"?!1:i.limbsRequiredForJoints[r.id].every(s=>e.includes(s))),[e,t])},m=e=>{const t=a.useMemo(()=>e.map(u.sensorLocationToLimbId).filter(n=>!!n),[e]);return c(t)},d=e=>a.useMemo(()=>{const r=i.getAllAvailableLimbs(),n=e.map(u.sensorLocationToLimbId);return r.filter(s=>n.includes(s.id))},[e]),p=(e,t)=>a.useMemo(()=>e.flatMap(n=>i.getEnabledJointPlanes(n,t).map(s=>({id:{joint:n},plane:s,...i.getDefaultJointRange(n,s)}))),[e,t]),b=(e,t)=>{const r=a.useMemo(()=>{const s=i.getAllAvailableLimbs();return e.filter(o=>s.some(g=>g.id===o))},[e]);return a.useMemo(()=>r.flatMap(s=>i.getEnabledSegmentPlanes(s,t).map(o=>({id:{segment:s},plane:o,...i.getDefaultLimbRange(s,o)}))),[r,t])},h=e=>{const t=d(e),r=m(e),n=p(r.map(o=>o.id),u.AngleDataSource.Sensor),s=b(t.map(o=>o.id),u.AngleDataSource.Sensor);return[...n,...s]};exports.useGraphqlClient=f;exports.useJointsForLimbIds=c;exports.useJointsForSensorLocations=m;exports.useLimbsForSensorLocations=d;exports.usePartOptionsForJoints=p;exports.usePartOptionsForLimbs=b;exports.usePartOptionsForSensorLocations=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./graphql-vendor-B-QTAQSb.cjs"),a=require("react"),i=require("./services.cjs"),u=require("./types.cjs"),L=({url:e,getAuthToken:t})=>new l.C({url:e,requestPolicy:"cache-and-network",exchanges:[l.authExchange(r=>{const n=t();return Promise.resolve({addAuthToOperation(s){return n?r.appendHeaders(s,{Authorization:`Bearer ${n}`}):s},didAuthError:s=>/unauthorized/gi.test(s?.message),refreshAuth:()=>Promise.resolve()})}),l.fetchExchange]}),f=({url:e,getAuthToken:t})=>a.useMemo(()=>L({url:e,getAuthToken:t}),[e,t]),c=e=>{const t=i.getAllAvailableJoints();return a.useMemo(()=>t.filter(r=>r.id==="NavalSpine"||r.id==="ChestSpine"?!1:i.limbsRequiredForJoints[r.id].every(s=>e.includes(s))),[e,t])},m=e=>{const t=a.useMemo(()=>e.map(u.sensorLocationToLimbId).filter(n=>!!n),[e]);return c(t)},d=e=>a.useMemo(()=>{const r=i.getAllAvailableLimbs(),n=e.map(u.sensorLocationToLimbId);return r.filter(s=>n.includes(s.id))},[e]),p=(e,t)=>a.useMemo(()=>e.flatMap(n=>i.getEnabledJointPlanes(n,t).map(s=>({id:{joint:n},plane:s,...i.getDefaultJointRange(n,s)}))),[e,t]),b=(e,t)=>{const r=a.useMemo(()=>{const s=i.getAllAvailableLimbs();return e.filter(o=>s.some(g=>g.id===o))},[e]);return a.useMemo(()=>r.flatMap(s=>i.getEnabledSegmentPlanes(s,t).map(o=>({id:{segment:s},plane:o,...i.getDefaultLimbRange(s,o)}))),[r,t])},h=e=>{const t=d(e),r=m(e),n=p(r.map(o=>o.id),u.AngleDataSource.Sensor),s=b(t.map(o=>o.id),u.AngleDataSource.Sensor);return[...n,...s]};exports.useGraphqlClient=f;exports.useJointsForLimbIds=c;exports.useJointsForSensorLocations=m;exports.useLimbsForSensorLocations=d;exports.usePartOptionsForJoints=p;exports.usePartOptionsForLimbs=b;exports.usePartOptionsForSensorLocations=h;
package/dist/hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as c, c as d, f as p } from "./graphql-vendor-BWnD0b-j.js";
1
+ import { C as c, b as d, f as p } from "./graphql-vendor-B0NjgbDB.js";
2
2
  import { useMemo as i } from "react";
3
3
  import { getAllAvailableJoints as f, limbsRequiredForJoints as b, getAllAvailableLimbs as u, getEnabledJointPlanes as g, getDefaultJointRange as h, getEnabledSegmentPlanes as L, getDefaultLimbRange as A } from "./services.js";
4
4
  import { sensorLocationToLimbId as l, AngleDataSource as a } from "./types.js";
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-Dp3RPYfF.cjs");const o=require("./components.cjs"),a=require("./hooks.cjs"),r=require("./providers.cjs"),e=require("./services.cjs"),t=require("./types.cjs"),i=require("./utils.cjs");exports.ActivityList=o.ActivityList;exports.CopyActivityForm=o.CopyActivityForm;exports.CopyModuleForm=o.CopyModuleForm;exports.ModuleForm=o.ModuleForm;exports.ParameterEditList=o.ParameterEditList;exports.ParameterEditSelect=o.ParameterEditSelect;exports.UpsertActivityForm=o.UpsertActivityForm;exports.UpsertModuleForm=o.UpsertModuleForm;exports.useGraphqlClient=a.useGraphqlClient;exports.useJointsForLimbIds=a.useJointsForLimbIds;exports.useJointsForSensorLocations=a.useJointsForSensorLocations;exports.useLimbsForSensorLocations=a.useLimbsForSensorLocations;exports.usePartOptionsForJoints=a.usePartOptionsForJoints;exports.usePartOptionsForLimbs=a.usePartOptionsForLimbs;exports.usePartOptionsForSensorLocations=a.usePartOptionsForSensorLocations;exports.QuantumLibraryProvider=r.QuantumLibraryProvider;exports.getAllAvailableJoints=e.getAllAvailableJoints;exports.getAllAvailableLimbs=e.getAllAvailableLimbs;exports.getAllAvailablePoseJoints=e.getAllAvailablePoseJoints;exports.getAllAvailablePoseLimbs=e.getAllAvailablePoseLimbs;exports.getAllAvailableSensorJoints=e.getAllAvailableSensorJoints;exports.getAngleDirectionNames=e.getAngleDirectionNames;exports.getAvailableLimbsForLimbIds=e.getAvailableLimbsForLimbIds;exports.getAvailablePoseJointsForLimbIds=e.getAvailablePoseJointsForLimbIds;exports.getAvailableSensorJointsForLimbIds=e.getAvailableSensorJointsForLimbIds;exports.getAxis=e.getAxis;exports.getDefaultAngleSource=e.getDefaultAngleSource;exports.getDefaultJointRange=e.getDefaultJointRange;exports.getDefaultLimbRange=e.getDefaultLimbRange;exports.getEnabledJointPlanes=e.getEnabledJointPlanes;exports.getEnabledSegmentPlanes=e.getEnabledSegmentPlanes;exports.getHumanBodyAngle=e.getHumanBodyAngle;exports.getIsDefaultAngleAllowed=e.getIsDefaultAngleAllowed;exports.getJointAngleDirectionAbbr=e.getJointAngleDirectionAbbr;exports.getJointAngleDirectionName=e.getJointAngleDirectionName;exports.getJointNameWithPlane=e.getJointNameWithPlane;exports.getJointOrSegmentNameWithPlane=e.getJointOrSegmentNameWithPlane;exports.getJointPlaneName=e.getJointPlaneName;exports.getNormativeJointRange=e.getNormativeJointRange;exports.getParameterAngleDirectionName=e.getParameterAngleDirectionName;exports.getParameterDirectionNames=e.getParameterDirectionNames;exports.getPartName=e.getPartName;exports.getPartNameNoSide=e.getPartNameNoSide;exports.getPlane=e.getPlane;exports.getSegmentAngleDirectionAbbr=e.getSegmentAngleDirectionAbbr;exports.getSegmentAngleDirectionName=e.getSegmentAngleDirectionName;exports.getSegmentNameWithPlane=e.getSegmentNameWithPlane;exports.getSegmentXyzName=e.getSegmentXyzName;exports.getTypicalRom=e.getTypicalRom;exports.getTypicalRomSize=e.getTypicalRomSize;exports.isAxis=e.isAxis;exports.isJoint=e.isJoint;exports.isLimb=e.isLimb;exports.isPlane=e.isPlane;exports.jointNames=e.jointNames;exports.jointsUsedByLimbs=e.jointsUsedByLimbs;exports.limbNames=e.limbNames;exports.limbsRequiredForJoints=e.limbsRequiredForJoints;exports.mkAccelerationPart=e.mkAccelerationPart;exports.mkAngularVelocityPart=e.mkAngularVelocityPart;exports.mkHumanPart=e.mkHumanPart;exports.mkJointPart=e.mkJointPart;exports.mkLimbPart=e.mkLimbPart;exports.planeOrAxis=e.planeOrAxis;exports.AngleDataSource=t.AngleDataSource;exports.analysisStatBuilder=t.analysisStatBuilder;exports.areThresholdsEmpty=t.areThresholdsEmpty;exports.availablePlanes=t.availablePlanes;exports.axes=t.axes;exports.canBeVerticalForce=t.canBeVerticalForce;exports.dimensionName=t.dimensionName;exports.dimensionToLegacy=t.dimensionToLegacy;exports.getAnalysisName=t.getAnalysisName;exports.getAnalysisPartIdNoSide=t.getAnalysisPartIdNoSide;exports.getJointIdNoSide=t.getJointIdNoSide;exports.getJointIdWithSide=t.getJointIdWithSide;exports.getLimbIdNoSide=t.getLimbIdNoSide;exports.getLimbIdWithSide=t.getLimbIdWithSide;exports.getPointSide=t.getPointSide;exports.isDeviceEqual=t.isDeviceEqual;exports.isLimbTrackingFrame=t.isLimbTrackingFrame;exports.isSyncError=t.isSyncError;exports.jointAngle=t.jointAngle;exports.jointOrLimbHasThreshold=t.jointOrLimbHasThreshold;exports.jointOrLimbThresholdCount=t.jointOrLimbThresholdCount;exports.limbAngle=t.limbAngle;exports.mkUnit=t.mkUnit;exports.partAndPlaneHasThreshold=t.partAndPlaneHasThreshold;exports.partIdName=t.partIdName;exports.partIdToJointLimbId=t.partIdToJointLimbId;exports.partIdToString=t.partIdToString;exports.partKinds=t.partKinds;exports.planes=t.planes;exports.sensorLocationName=t.sensorLocationName;exports.sensorLocationToLimbId=t.sensorLocationToLimbId;exports.thresholdForPart=t.thresholdForPart;exports.thresholdFragmentsToThresholds=t.thresholdFragmentsToThresholds;exports.thresholdsToInput=t.thresholdsToInput;exports.tryMkUnit=t.tryMkUnit;exports.updateThreshold=t.updateThreshold;exports.capitalizeAll=i.capitalizeAll;exports.cn=i.cn;exports.degToRad=i.degToRad;exports.getFormatterForParameter=i.getFormatterForParameter;exports.getUnitFormatted=i.getUnitFormatted;exports.getUnitValueFormatted=i.getUnitValueFormatted;exports.hourMinSecStrToMs=i.hourMinSecStrToMs;exports.inchesToMeters=i.inchesToMeters;exports.kgToPounds=i.kgToPounds;exports.memo=i.memo;exports.metersToInches=i.metersToInches;exports.msToDurationStr=i.msToDurationStr;exports.msToHourMinSecStr=i.msToHourMinSecStr;exports.msToPrettyStr=i.msToPrettyStr;exports.msToTimestampStr=i.msToTimestampStr;exports.parameterToThreshold=i.parameterToThreshold;exports.parametersToThresholds=i.parametersToThresholds;exports.pluralize=i.pluralize;exports.poundsToKg=i.poundsToKg;exports.radToDeg=i.radToDeg;exports.sToTimestampStr=i.sToTimestampStr;exports.safelyConvertEnum=i.safelyConvertEnum;exports.secondsToTimestampStr=i.secondsToTimestampStr;exports.thresholdToParameter=i.thresholdToParameter;exports.thresholdsToParameters=i.thresholdsToParameters;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-Dp3RPYfF.cjs");const o=require("./components.cjs"),a=require("./hooks.cjs"),r=require("./providers.cjs"),e=require("./services.cjs"),t=require("./types.cjs"),i=require("./utils.cjs");exports.ActivityList=o.ActivityList;exports.CopyActivityForm=o.CopyActivityForm;exports.CopyModuleForm=o.CopyModuleForm;exports.ModuleForm=o.ModuleForm;exports.ParameterEditList=o.ParameterEditList;exports.ParameterEditSelect=o.ParameterEditSelect;exports.UpsertActivityForm=o.UpsertActivityForm;exports.UpsertModuleForm=o.UpsertModuleForm;exports.useGraphqlClient=a.useGraphqlClient;exports.useJointsForLimbIds=a.useJointsForLimbIds;exports.useJointsForSensorLocations=a.useJointsForSensorLocations;exports.useLimbsForSensorLocations=a.useLimbsForSensorLocations;exports.usePartOptionsForJoints=a.usePartOptionsForJoints;exports.usePartOptionsForLimbs=a.usePartOptionsForLimbs;exports.usePartOptionsForSensorLocations=a.usePartOptionsForSensorLocations;exports.QuantumLibraryProvider=r.QuantumLibraryProvider;exports.getActivityKindFromActivityType=e.getActivityKindFromActivityType;exports.getAllAvailableJoints=e.getAllAvailableJoints;exports.getAllAvailableLimbs=e.getAllAvailableLimbs;exports.getAllAvailablePoseJoints=e.getAllAvailablePoseJoints;exports.getAllAvailablePoseLimbs=e.getAllAvailablePoseLimbs;exports.getAllAvailableSensorJoints=e.getAllAvailableSensorJoints;exports.getAngleDirectionNames=e.getAngleDirectionNames;exports.getAvailableLimbsForLimbIds=e.getAvailableLimbsForLimbIds;exports.getAvailablePoseJointsForLimbIds=e.getAvailablePoseJointsForLimbIds;exports.getAvailableSensorJointsForLimbIds=e.getAvailableSensorJointsForLimbIds;exports.getAxis=e.getAxis;exports.getDefaultAngleSource=e.getDefaultAngleSource;exports.getDefaultJointRange=e.getDefaultJointRange;exports.getDefaultLimbRange=e.getDefaultLimbRange;exports.getEnabledJointPlanes=e.getEnabledJointPlanes;exports.getEnabledSegmentPlanes=e.getEnabledSegmentPlanes;exports.getHumanBodyAngle=e.getHumanBodyAngle;exports.getIsDefaultAngleAllowed=e.getIsDefaultAngleAllowed;exports.getJointAngleDirectionAbbr=e.getJointAngleDirectionAbbr;exports.getJointAngleDirectionName=e.getJointAngleDirectionName;exports.getJointNameWithPlane=e.getJointNameWithPlane;exports.getJointOrSegmentNameWithPlane=e.getJointOrSegmentNameWithPlane;exports.getJointPlaneName=e.getJointPlaneName;exports.getNormativeJointRange=e.getNormativeJointRange;exports.getParameterAngleDirectionName=e.getParameterAngleDirectionName;exports.getParameterDirectionNames=e.getParameterDirectionNames;exports.getPartName=e.getPartName;exports.getPartNameNoSide=e.getPartNameNoSide;exports.getPlane=e.getPlane;exports.getSegmentAngleDirectionAbbr=e.getSegmentAngleDirectionAbbr;exports.getSegmentAngleDirectionName=e.getSegmentAngleDirectionName;exports.getSegmentNameWithPlane=e.getSegmentNameWithPlane;exports.getSegmentXyzName=e.getSegmentXyzName;exports.getTypicalRom=e.getTypicalRom;exports.getTypicalRomSize=e.getTypicalRomSize;exports.isAxis=e.isAxis;exports.isJoint=e.isJoint;exports.isLimb=e.isLimb;exports.isPlane=e.isPlane;exports.jointNames=e.jointNames;exports.jointsUsedByLimbs=e.jointsUsedByLimbs;exports.limbNames=e.limbNames;exports.limbsRequiredForJoints=e.limbsRequiredForJoints;exports.mapActivityTypeEnumToLabel=e.mapActivityTypeEnumToLabel;exports.mapSessionTypeEnumToLabel=e.mapSessionTypeEnumToLabel;exports.mkAccelerationPart=e.mkAccelerationPart;exports.mkAngularVelocityPart=e.mkAngularVelocityPart;exports.mkHumanPart=e.mkHumanPart;exports.mkJointPart=e.mkJointPart;exports.mkLimbPart=e.mkLimbPart;exports.planeOrAxis=e.planeOrAxis;exports.AngleDataSource=t.AngleDataSource;exports.analysisStatBuilder=t.analysisStatBuilder;exports.areThresholdsEmpty=t.areThresholdsEmpty;exports.availablePlanes=t.availablePlanes;exports.axes=t.axes;exports.canBeVerticalForce=t.canBeVerticalForce;exports.dimensionName=t.dimensionName;exports.dimensionToLegacy=t.dimensionToLegacy;exports.getAnalysisName=t.getAnalysisName;exports.getAnalysisPartIdNoSide=t.getAnalysisPartIdNoSide;exports.getJointIdNoSide=t.getJointIdNoSide;exports.getJointIdWithSide=t.getJointIdWithSide;exports.getLimbIdNoSide=t.getLimbIdNoSide;exports.getLimbIdWithSide=t.getLimbIdWithSide;exports.getPointSide=t.getPointSide;exports.isDeviceEqual=t.isDeviceEqual;exports.isLimbTrackingFrame=t.isLimbTrackingFrame;exports.isSyncError=t.isSyncError;exports.jointAngle=t.jointAngle;exports.jointOrLimbHasThreshold=t.jointOrLimbHasThreshold;exports.jointOrLimbThresholdCount=t.jointOrLimbThresholdCount;exports.limbAngle=t.limbAngle;exports.mkUnit=t.mkUnit;exports.partAndPlaneHasThreshold=t.partAndPlaneHasThreshold;exports.partIdName=t.partIdName;exports.partIdToJointLimbId=t.partIdToJointLimbId;exports.partIdToString=t.partIdToString;exports.partKinds=t.partKinds;exports.planes=t.planes;exports.sensorLocationName=t.sensorLocationName;exports.sensorLocationToLimbId=t.sensorLocationToLimbId;exports.thresholdForPart=t.thresholdForPart;exports.thresholdFragmentsToThresholds=t.thresholdFragmentsToThresholds;exports.thresholdsToInput=t.thresholdsToInput;exports.tryMkUnit=t.tryMkUnit;exports.updateThreshold=t.updateThreshold;exports.capitalizeAll=i.capitalizeAll;exports.cn=i.cn;exports.degToRad=i.degToRad;exports.getFormatterForParameter=i.getFormatterForParameter;exports.getUnitFormatted=i.getUnitFormatted;exports.getUnitValueFormatted=i.getUnitValueFormatted;exports.hourMinSecStrToMs=i.hourMinSecStrToMs;exports.inchesToMeters=i.inchesToMeters;exports.kgToPounds=i.kgToPounds;exports.memo=i.memo;exports.metersToInches=i.metersToInches;exports.msToDurationStr=i.msToDurationStr;exports.msToHourMinSecStr=i.msToHourMinSecStr;exports.msToPrettyStr=i.msToPrettyStr;exports.msToTimestampStr=i.msToTimestampStr;exports.parameterToThreshold=i.parameterToThreshold;exports.parametersToThresholds=i.parametersToThresholds;exports.pluralize=i.pluralize;exports.poundsToKg=i.poundsToKg;exports.radToDeg=i.radToDeg;exports.sToTimestampStr=i.sToTimestampStr;exports.safelyConvertEnum=i.safelyConvertEnum;exports.secondsToTimestampStr=i.secondsToTimestampStr;exports.thresholdToParameter=i.thresholdToParameter;exports.thresholdsToParameters=i.thresholdsToParameters;
package/dist/index.js CHANGED
@@ -1,134 +1,137 @@
1
1
  import "./other-C4VnLmM6.js";
2
- import { ActivityList as i, CopyActivityForm as r, CopyModuleForm as a, ModuleForm as n, ParameterEditList as s, ParameterEditSelect as m, UpsertActivityForm as l, UpsertModuleForm as g } from "./components.js";
3
- import { useGraphqlClient as A, useJointsForLimbIds as b, useJointsForSensorLocations as c, useLimbsForSensorLocations as T, usePartOptionsForJoints as P, usePartOptionsForLimbs as h, usePartOptionsForSensorLocations as p } from "./hooks.js";
2
+ import { ActivityList as i, CopyActivityForm as a, CopyModuleForm as r, ModuleForm as n, ParameterEditList as s, ParameterEditSelect as m, UpsertActivityForm as l, UpsertModuleForm as g } from "./components.js";
3
+ import { useGraphqlClient as A, useJointsForLimbIds as T, useJointsForSensorLocations as b, useLimbsForSensorLocations as c, usePartOptionsForJoints as p, usePartOptionsForLimbs as u, usePartOptionsForSensorLocations as P } from "./hooks.js";
4
4
  import { QuantumLibraryProvider as S } from "./providers.js";
5
- import { getAllAvailableJoints as F, getAllAvailableLimbs as N, getAllAvailablePoseJoints as J, getAllAvailablePoseLimbs as y, getAllAvailableSensorJoints as I, getAngleDirectionNames as v, getAvailableLimbsForLimbIds as D, getAvailablePoseJointsForLimbIds as f, getAvailableSensorJointsForLimbIds as x, getAxis as k, getDefaultAngleSource as E, getDefaultJointRange as M, getDefaultLimbRange as O, getEnabledJointPlanes as R, getEnabledSegmentPlanes as U, getHumanBodyAngle as j, getIsDefaultAngleAllowed as C, getJointAngleDirectionAbbr as H, getJointAngleDirectionName as W, getJointNameWithPlane as z, getJointOrSegmentNameWithPlane as B, getJointPlaneName as q, getNormativeJointRange as V, getParameterAngleDirectionName as K, getParameterDirectionNames as w, getPartName as G, getPartNameNoSide as Q, getPlane as X, getSegmentAngleDirectionAbbr as Y, getSegmentAngleDirectionName as Z, getSegmentNameWithPlane as _, getSegmentXyzName as $, getTypicalRom as ee, getTypicalRomSize as te, isAxis as oe, isJoint as ie, isLimb as re, isPlane as ae, jointNames as ne, jointsUsedByLimbs as se, limbNames as me, limbsRequiredForJoints as le, mkAccelerationPart as ge, mkAngularVelocityPart as de, mkHumanPart as Ae, mkJointPart as be, mkLimbPart as ce, planeOrAxis as Te } from "./services.js";
6
- import { AngleDataSource as he, analysisStatBuilder as pe, areThresholdsEmpty as ue, availablePlanes as Se, axes as Le, canBeVerticalForce as Fe, dimensionName as Ne, dimensionToLegacy as Je, getAnalysisName as ye, getAnalysisPartIdNoSide as Ie, getJointIdNoSide as ve, getJointIdWithSide as De, getLimbIdNoSide as fe, getLimbIdWithSide as xe, getPointSide as ke, isDeviceEqual as Ee, isLimbTrackingFrame as Me, isSyncError as Oe, jointAngle as Re, jointOrLimbHasThreshold as Ue, jointOrLimbThresholdCount as je, limbAngle as Ce, mkUnit as He, partAndPlaneHasThreshold as We, partIdName as ze, partIdToJointLimbId as Be, partIdToString as qe, partKinds as Ve, planes as Ke, sensorLocationName as we, sensorLocationToLimbId as Ge, thresholdForPart as Qe, thresholdFragmentsToThresholds as Xe, thresholdsToInput as Ye, tryMkUnit as Ze, updateThreshold as _e } from "./types.js";
7
- import { capitalizeAll as et, cn as tt, degToRad as ot, getFormatterForParameter as it, getUnitFormatted as rt, getUnitValueFormatted as at, hourMinSecStrToMs as nt, inchesToMeters as st, kgToPounds as mt, memo as lt, metersToInches as gt, msToDurationStr as dt, msToHourMinSecStr as At, msToPrettyStr as bt, msToTimestampStr as ct, parameterToThreshold as Tt, parametersToThresholds as Pt, pluralize as ht, poundsToKg as pt, radToDeg as ut, sToTimestampStr as St, safelyConvertEnum as Lt, secondsToTimestampStr as Ft, thresholdToParameter as Nt, thresholdsToParameters as Jt } from "./utils.js";
5
+ import { getActivityKindFromActivityType as y, getAllAvailableJoints as F, getAllAvailableLimbs as N, getAllAvailablePoseJoints as J, getAllAvailablePoseLimbs as v, getAllAvailableSensorJoints as I, getAngleDirectionNames as D, getAvailableLimbsForLimbIds as f, getAvailablePoseJointsForLimbIds as x, getAvailableSensorJointsForLimbIds as E, getAxis as k, getDefaultAngleSource as M, getDefaultJointRange as O, getDefaultLimbRange as R, getEnabledJointPlanes as U, getEnabledSegmentPlanes as j, getHumanBodyAngle as C, getIsDefaultAngleAllowed as H, getJointAngleDirectionAbbr as W, getJointAngleDirectionName as z, getJointNameWithPlane as B, getJointOrSegmentNameWithPlane as q, getJointPlaneName as K, getNormativeJointRange as V, getParameterAngleDirectionName as w, getParameterDirectionNames as G, getPartName as Q, getPartNameNoSide as X, getPlane as Y, getSegmentAngleDirectionAbbr as Z, getSegmentAngleDirectionName as _, getSegmentNameWithPlane as $, getSegmentXyzName as ee, getTypicalRom as te, getTypicalRomSize as oe, isAxis as ie, isJoint as ae, isLimb as re, isPlane as ne, jointNames as se, jointsUsedByLimbs as me, limbNames as le, limbsRequiredForJoints as ge, mapActivityTypeEnumToLabel as de, mapSessionTypeEnumToLabel as Ae, mkAccelerationPart as Te, mkAngularVelocityPart as be, mkHumanPart as ce, mkJointPart as pe, mkLimbPart as ue, planeOrAxis as Pe } from "./services.js";
6
+ import { AngleDataSource as Se, analysisStatBuilder as Le, areThresholdsEmpty as ye, availablePlanes as Fe, axes as Ne, canBeVerticalForce as Je, dimensionName as ve, dimensionToLegacy as Ie, getAnalysisName as De, getAnalysisPartIdNoSide as fe, getJointIdNoSide as xe, getJointIdWithSide as Ee, getLimbIdNoSide as ke, getLimbIdWithSide as Me, getPointSide as Oe, isDeviceEqual as Re, isLimbTrackingFrame as Ue, isSyncError as je, jointAngle as Ce, jointOrLimbHasThreshold as He, jointOrLimbThresholdCount as We, limbAngle as ze, mkUnit as Be, partAndPlaneHasThreshold as qe, partIdName as Ke, partIdToJointLimbId as Ve, partIdToString as we, partKinds as Ge, planes as Qe, sensorLocationName as Xe, sensorLocationToLimbId as Ye, thresholdForPart as Ze, thresholdFragmentsToThresholds as _e, thresholdsToInput as $e, tryMkUnit as et, updateThreshold as tt } from "./types.js";
7
+ import { capitalizeAll as it, cn as at, degToRad as rt, getFormatterForParameter as nt, getUnitFormatted as st, getUnitValueFormatted as mt, hourMinSecStrToMs as lt, inchesToMeters as gt, kgToPounds as dt, memo as At, metersToInches as Tt, msToDurationStr as bt, msToHourMinSecStr as ct, msToPrettyStr as pt, msToTimestampStr as ut, parameterToThreshold as Pt, parametersToThresholds as ht, pluralize as St, poundsToKg as Lt, radToDeg as yt, sToTimestampStr as Ft, safelyConvertEnum as Nt, secondsToTimestampStr as Jt, thresholdToParameter as vt, thresholdsToParameters as It } from "./utils.js";
8
8
  export {
9
9
  i as ActivityList,
10
- he as AngleDataSource,
11
- r as CopyActivityForm,
12
- a as CopyModuleForm,
10
+ Se as AngleDataSource,
11
+ a as CopyActivityForm,
12
+ r as CopyModuleForm,
13
13
  n as ModuleForm,
14
14
  s as ParameterEditList,
15
15
  m as ParameterEditSelect,
16
16
  S as QuantumLibraryProvider,
17
17
  l as UpsertActivityForm,
18
18
  g as UpsertModuleForm,
19
- pe as analysisStatBuilder,
20
- ue as areThresholdsEmpty,
21
- Se as availablePlanes,
22
- Le as axes,
23
- Fe as canBeVerticalForce,
24
- et as capitalizeAll,
25
- tt as cn,
26
- ot as degToRad,
27
- Ne as dimensionName,
28
- Je as dimensionToLegacy,
19
+ Le as analysisStatBuilder,
20
+ ye as areThresholdsEmpty,
21
+ Fe as availablePlanes,
22
+ Ne as axes,
23
+ Je as canBeVerticalForce,
24
+ it as capitalizeAll,
25
+ at as cn,
26
+ rt as degToRad,
27
+ ve as dimensionName,
28
+ Ie as dimensionToLegacy,
29
+ y as getActivityKindFromActivityType,
29
30
  F as getAllAvailableJoints,
30
31
  N as getAllAvailableLimbs,
31
32
  J as getAllAvailablePoseJoints,
32
- y as getAllAvailablePoseLimbs,
33
+ v as getAllAvailablePoseLimbs,
33
34
  I as getAllAvailableSensorJoints,
34
- ye as getAnalysisName,
35
- Ie as getAnalysisPartIdNoSide,
36
- v as getAngleDirectionNames,
37
- D as getAvailableLimbsForLimbIds,
38
- f as getAvailablePoseJointsForLimbIds,
39
- x as getAvailableSensorJointsForLimbIds,
35
+ De as getAnalysisName,
36
+ fe as getAnalysisPartIdNoSide,
37
+ D as getAngleDirectionNames,
38
+ f as getAvailableLimbsForLimbIds,
39
+ x as getAvailablePoseJointsForLimbIds,
40
+ E as getAvailableSensorJointsForLimbIds,
40
41
  k as getAxis,
41
- E as getDefaultAngleSource,
42
- M as getDefaultJointRange,
43
- O as getDefaultLimbRange,
44
- R as getEnabledJointPlanes,
45
- U as getEnabledSegmentPlanes,
46
- it as getFormatterForParameter,
47
- j as getHumanBodyAngle,
48
- C as getIsDefaultAngleAllowed,
49
- H as getJointAngleDirectionAbbr,
50
- W as getJointAngleDirectionName,
51
- ve as getJointIdNoSide,
52
- De as getJointIdWithSide,
53
- z as getJointNameWithPlane,
54
- B as getJointOrSegmentNameWithPlane,
55
- q as getJointPlaneName,
56
- fe as getLimbIdNoSide,
57
- xe as getLimbIdWithSide,
42
+ M as getDefaultAngleSource,
43
+ O as getDefaultJointRange,
44
+ R as getDefaultLimbRange,
45
+ U as getEnabledJointPlanes,
46
+ j as getEnabledSegmentPlanes,
47
+ nt as getFormatterForParameter,
48
+ C as getHumanBodyAngle,
49
+ H as getIsDefaultAngleAllowed,
50
+ W as getJointAngleDirectionAbbr,
51
+ z as getJointAngleDirectionName,
52
+ xe as getJointIdNoSide,
53
+ Ee as getJointIdWithSide,
54
+ B as getJointNameWithPlane,
55
+ q as getJointOrSegmentNameWithPlane,
56
+ K as getJointPlaneName,
57
+ ke as getLimbIdNoSide,
58
+ Me as getLimbIdWithSide,
58
59
  V as getNormativeJointRange,
59
- K as getParameterAngleDirectionName,
60
- w as getParameterDirectionNames,
61
- G as getPartName,
62
- Q as getPartNameNoSide,
63
- X as getPlane,
64
- ke as getPointSide,
65
- Y as getSegmentAngleDirectionAbbr,
66
- Z as getSegmentAngleDirectionName,
67
- _ as getSegmentNameWithPlane,
68
- $ as getSegmentXyzName,
69
- ee as getTypicalRom,
70
- te as getTypicalRomSize,
71
- rt as getUnitFormatted,
72
- at as getUnitValueFormatted,
73
- nt as hourMinSecStrToMs,
74
- st as inchesToMeters,
75
- oe as isAxis,
76
- Ee as isDeviceEqual,
77
- ie as isJoint,
60
+ w as getParameterAngleDirectionName,
61
+ G as getParameterDirectionNames,
62
+ Q as getPartName,
63
+ X as getPartNameNoSide,
64
+ Y as getPlane,
65
+ Oe as getPointSide,
66
+ Z as getSegmentAngleDirectionAbbr,
67
+ _ as getSegmentAngleDirectionName,
68
+ $ as getSegmentNameWithPlane,
69
+ ee as getSegmentXyzName,
70
+ te as getTypicalRom,
71
+ oe as getTypicalRomSize,
72
+ st as getUnitFormatted,
73
+ mt as getUnitValueFormatted,
74
+ lt as hourMinSecStrToMs,
75
+ gt as inchesToMeters,
76
+ ie as isAxis,
77
+ Re as isDeviceEqual,
78
+ ae as isJoint,
78
79
  re as isLimb,
79
- Me as isLimbTrackingFrame,
80
- ae as isPlane,
81
- Oe as isSyncError,
82
- Re as jointAngle,
83
- ne as jointNames,
84
- Ue as jointOrLimbHasThreshold,
85
- je as jointOrLimbThresholdCount,
86
- se as jointsUsedByLimbs,
87
- mt as kgToPounds,
88
- Ce as limbAngle,
89
- me as limbNames,
90
- le as limbsRequiredForJoints,
91
- lt as memo,
92
- gt as metersToInches,
93
- ge as mkAccelerationPart,
94
- de as mkAngularVelocityPart,
95
- Ae as mkHumanPart,
96
- be as mkJointPart,
97
- ce as mkLimbPart,
98
- He as mkUnit,
99
- dt as msToDurationStr,
100
- At as msToHourMinSecStr,
101
- bt as msToPrettyStr,
102
- ct as msToTimestampStr,
103
- Tt as parameterToThreshold,
104
- Pt as parametersToThresholds,
105
- We as partAndPlaneHasThreshold,
106
- ze as partIdName,
107
- Be as partIdToJointLimbId,
108
- qe as partIdToString,
109
- Ve as partKinds,
110
- Te as planeOrAxis,
111
- Ke as planes,
112
- ht as pluralize,
113
- pt as poundsToKg,
114
- ut as radToDeg,
115
- St as sToTimestampStr,
116
- Lt as safelyConvertEnum,
117
- Ft as secondsToTimestampStr,
118
- we as sensorLocationName,
119
- Ge as sensorLocationToLimbId,
120
- Qe as thresholdForPart,
121
- Xe as thresholdFragmentsToThresholds,
122
- Nt as thresholdToParameter,
123
- Ye as thresholdsToInput,
124
- Jt as thresholdsToParameters,
125
- Ze as tryMkUnit,
126
- _e as updateThreshold,
80
+ Ue as isLimbTrackingFrame,
81
+ ne as isPlane,
82
+ je as isSyncError,
83
+ Ce as jointAngle,
84
+ se as jointNames,
85
+ He as jointOrLimbHasThreshold,
86
+ We as jointOrLimbThresholdCount,
87
+ me as jointsUsedByLimbs,
88
+ dt as kgToPounds,
89
+ ze as limbAngle,
90
+ le as limbNames,
91
+ ge as limbsRequiredForJoints,
92
+ de as mapActivityTypeEnumToLabel,
93
+ Ae as mapSessionTypeEnumToLabel,
94
+ At as memo,
95
+ Tt as metersToInches,
96
+ Te as mkAccelerationPart,
97
+ be as mkAngularVelocityPart,
98
+ ce as mkHumanPart,
99
+ pe as mkJointPart,
100
+ ue as mkLimbPart,
101
+ Be as mkUnit,
102
+ bt as msToDurationStr,
103
+ ct as msToHourMinSecStr,
104
+ pt as msToPrettyStr,
105
+ ut as msToTimestampStr,
106
+ Pt as parameterToThreshold,
107
+ ht as parametersToThresholds,
108
+ qe as partAndPlaneHasThreshold,
109
+ Ke as partIdName,
110
+ Ve as partIdToJointLimbId,
111
+ we as partIdToString,
112
+ Ge as partKinds,
113
+ Pe as planeOrAxis,
114
+ Qe as planes,
115
+ St as pluralize,
116
+ Lt as poundsToKg,
117
+ yt as radToDeg,
118
+ Ft as sToTimestampStr,
119
+ Nt as safelyConvertEnum,
120
+ Jt as secondsToTimestampStr,
121
+ Xe as sensorLocationName,
122
+ Ye as sensorLocationToLimbId,
123
+ Ze as thresholdForPart,
124
+ _e as thresholdFragmentsToThresholds,
125
+ vt as thresholdToParameter,
126
+ $e as thresholdsToInput,
127
+ It as thresholdsToParameters,
128
+ et as tryMkUnit,
129
+ tt as updateThreshold,
127
130
  A as useGraphqlClient,
128
- b as useJointsForLimbIds,
129
- c as useJointsForSensorLocations,
130
- T as useLimbsForSensorLocations,
131
- P as usePartOptionsForJoints,
132
- h as usePartOptionsForLimbs,
133
- p as usePartOptionsForSensorLocations
131
+ T as useJointsForLimbIds,
132
+ b as useJointsForSensorLocations,
133
+ c as useLimbsForSensorLocations,
134
+ p as usePartOptionsForJoints,
135
+ u as usePartOptionsForLimbs,
136
+ P as usePartOptionsForSensorLocations
134
137
  };