quantum-component-library 1.4.45-qa.4 → 1.4.45-qa.6

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 (49) hide show
  1. package/dist/{babel-vendor-Brd7V25k.js → babel-vendor-BOM86iTb.js} +71 -76
  2. package/dist/babel-vendor-cKvSpnBp.cjs +3 -0
  3. package/dist/components.cjs +3 -3
  4. package/dist/components.js +58 -57
  5. package/dist/{dnd-core-vendor-DFyhudg3.cjs → dnd-core-vendor-BYC7cLQD.cjs} +1 -1
  6. package/dist/{dnd-core-vendor-GeFJIrqw.js → dnd-core-vendor-DvzJ584W.js} +2 -2
  7. package/dist/emotion-vendor-D6PQH2K8.cjs +1 -0
  8. package/dist/emotion-vendor-DNnoMT20.js +546 -0
  9. package/dist/floating-ui-vendor-BcB50aec.js +246 -0
  10. package/dist/floating-ui-vendor-Dsd5TAjM.cjs +1 -0
  11. package/dist/{graphql-vendor-Bp1AYkpN.cjs → graphql-vendor-B5FHuhCx.cjs} +1 -1
  12. package/dist/{graphql-vendor-D5ETG7wB.js → graphql-vendor-D_K-hLF7.js} +1 -1
  13. package/dist/hooks.cjs +1 -1
  14. package/dist/hooks.js +1 -1
  15. package/dist/lodash-vendor-D5A6v3mw.cjs +1 -0
  16. package/dist/lodash-vendor-Dz4vW7Gd.js +1120 -0
  17. package/dist/moment-vendor-1cRqq0AH.cjs +10 -0
  18. package/dist/moment-vendor-DMLRxgRE.js +2589 -0
  19. package/dist/other-react-vendor-CbZyzO2N.cjs +36 -0
  20. package/dist/other-react-vendor-ZnZFHn3v.js +598 -0
  21. package/dist/providers.cjs +1 -1
  22. package/dist/providers.js +6 -6
  23. package/dist/quantum-component-library.css +1 -1
  24. package/dist/{react-dnd-vendor-bl4guadi.js → react-dnd-vendor-CN8oCpGz.js} +30 -29
  25. package/dist/react-dnd-vendor-z_kx2PK8.cjs +2 -0
  26. package/dist/{react-select-vendor-CM41In8Q.js → react-select-vendor-BAxJ-fS5.js} +45 -43
  27. package/dist/react-select-vendor-CufHBxrs.cjs +4 -0
  28. package/dist/services.cjs +1 -1
  29. package/dist/services.js +1 -1
  30. package/dist/stylis-vendor-CdCMw5Aa.js +334 -0
  31. package/dist/stylis-vendor-DzcTLVj9.cjs +1 -0
  32. package/dist/types.cjs +1 -1
  33. package/dist/types.js +1 -1
  34. package/dist/utils.cjs +1 -1
  35. package/dist/utils.js +26 -25
  36. package/dist/vendor-DVLzEdMv.js +3717 -0
  37. package/dist/vendor-DoH3f618.cjs +1 -0
  38. package/package.json +3 -4
  39. package/dist/babel-vendor-pl7onWh-.cjs +0 -3
  40. package/dist/framer-motion-vendor-BpR8WNZk.js +0 -2945
  41. package/dist/framer-motion-vendor-DmZv69_a.cjs +0 -9
  42. package/dist/lodash-vendor-Dkc3o8vE.cjs +0 -1
  43. package/dist/lodash-vendor-KQku4vKh.js +0 -1602
  44. package/dist/react-dnd-vendor-CQ6n_Iry.cjs +0 -2
  45. package/dist/react-select-vendor-qYWfPIoq.cjs +0 -4
  46. package/dist/ui-vendor-CDpwLSe-.cjs +0 -294
  47. package/dist/ui-vendor-CTkR2JkD.js +0 -10756
  48. package/dist/vendor-D0fSwmdY.cjs +0 -90
  49. package/dist/vendor-DxZbxm3m.js +0 -13085
@@ -0,0 +1,246 @@
1
+ const P = Math.min, U = Math.max, O = Math.round, x = Math.floor, F = (t) => ({
2
+ x: t,
3
+ y: t
4
+ });
5
+ function j(t) {
6
+ const {
7
+ x: e,
8
+ y: n,
9
+ width: r,
10
+ height: o
11
+ } = t;
12
+ return {
13
+ width: r,
14
+ height: o,
15
+ top: n,
16
+ left: e,
17
+ right: e + r,
18
+ bottom: n + o,
19
+ x: e,
20
+ y: n
21
+ };
22
+ }
23
+ function C() {
24
+ return typeof window < "u";
25
+ }
26
+ function W(t) {
27
+ return H(t) ? (t.nodeName || "").toLowerCase() : "#document";
28
+ }
29
+ function g(t) {
30
+ var e;
31
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
32
+ }
33
+ function _(t) {
34
+ var e;
35
+ return (e = (H(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
36
+ }
37
+ function H(t) {
38
+ return C() ? t instanceof Node || t instanceof g(t).Node : !1;
39
+ }
40
+ function k(t) {
41
+ return C() ? t instanceof Element || t instanceof g(t).Element : !1;
42
+ }
43
+ function L(t) {
44
+ return C() ? t instanceof HTMLElement || t instanceof g(t).HTMLElement : !1;
45
+ }
46
+ function A(t) {
47
+ return !C() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof g(t).ShadowRoot;
48
+ }
49
+ const K = /* @__PURE__ */ new Set(["inline", "contents"]);
50
+ function $(t) {
51
+ const {
52
+ overflow: e,
53
+ overflowX: n,
54
+ overflowY: r,
55
+ display: o
56
+ } = T(t);
57
+ return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !K.has(o);
58
+ }
59
+ function X() {
60
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
61
+ }
62
+ const Y = /* @__PURE__ */ new Set(["html", "body", "#document"]);
63
+ function G(t) {
64
+ return Y.has(W(t));
65
+ }
66
+ function T(t) {
67
+ return g(t).getComputedStyle(t);
68
+ }
69
+ function J(t) {
70
+ if (W(t) === "html")
71
+ return t;
72
+ const e = (
73
+ // Step into the shadow DOM of the parent of a slotted node.
74
+ t.assignedSlot || // DOM Element detected.
75
+ t.parentNode || // ShadowRoot detected.
76
+ A(t) && t.host || // Fallback.
77
+ _(t)
78
+ );
79
+ return A(e) ? e.host : e;
80
+ }
81
+ function I(t) {
82
+ const e = J(t);
83
+ return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : L(e) && $(e) ? e : I(e);
84
+ }
85
+ function S(t, e, n) {
86
+ var r;
87
+ e === void 0 && (e = []), n === void 0 && (n = !0);
88
+ const o = I(t), c = o === ((r = t.ownerDocument) == null ? void 0 : r.body), i = g(o);
89
+ if (c) {
90
+ const s = N(i);
91
+ return e.concat(i, i.visualViewport || [], $(o) ? o : [], s && n ? S(s) : []);
92
+ }
93
+ return e.concat(o, S(o, [], n));
94
+ }
95
+ function N(t) {
96
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
97
+ }
98
+ function Q(t) {
99
+ const e = T(t);
100
+ let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
101
+ const o = L(t), c = o ? t.offsetWidth : n, i = o ? t.offsetHeight : r, s = O(n) !== c || O(r) !== i;
102
+ return s && (n = c, r = i), {
103
+ width: n,
104
+ height: r,
105
+ $: s
106
+ };
107
+ }
108
+ function D(t) {
109
+ return k(t) ? t : t.contextElement;
110
+ }
111
+ function B(t) {
112
+ const e = D(t);
113
+ if (!L(e))
114
+ return F(1);
115
+ const n = e.getBoundingClientRect(), {
116
+ width: r,
117
+ height: o,
118
+ $: c
119
+ } = Q(e);
120
+ let i = (c ? O(n.width) : n.width) / r, s = (c ? O(n.height) : n.height) / o;
121
+ return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
122
+ x: i,
123
+ y: s
124
+ };
125
+ }
126
+ const Z = /* @__PURE__ */ F(0);
127
+ function tt(t) {
128
+ const e = g(t);
129
+ return !X() || !e.visualViewport ? Z : {
130
+ x: e.visualViewport.offsetLeft,
131
+ y: e.visualViewport.offsetTop
132
+ };
133
+ }
134
+ function et(t, e, n) {
135
+ return !1;
136
+ }
137
+ function V(t, e, n, r) {
138
+ e === void 0 && (e = !1);
139
+ const o = t.getBoundingClientRect(), c = D(t);
140
+ let i = F(1);
141
+ e && (i = B(t));
142
+ const s = et() ? tt(c) : F(0);
143
+ let a = (o.left + s.x) / i.x, l = (o.top + s.y) / i.y, v = o.width / i.x, p = o.height / i.y;
144
+ if (c) {
145
+ const y = g(c), d = r;
146
+ let m = y, u = N(m);
147
+ for (; u && r && d !== m; ) {
148
+ const h = B(u), f = u.getBoundingClientRect(), w = T(u), b = f.left + (u.clientLeft + parseFloat(w.paddingLeft)) * h.x, E = f.top + (u.clientTop + parseFloat(w.paddingTop)) * h.y;
149
+ a *= h.x, l *= h.y, v *= h.x, p *= h.y, a += b, l += E, m = g(u), u = N(m);
150
+ }
151
+ }
152
+ return j({
153
+ width: v,
154
+ height: p,
155
+ x: a,
156
+ y: l
157
+ });
158
+ }
159
+ function q(t, e) {
160
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
161
+ }
162
+ function nt(t, e) {
163
+ let n = null, r;
164
+ const o = _(t);
165
+ function c() {
166
+ var s;
167
+ clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
168
+ }
169
+ function i(s, a) {
170
+ s === void 0 && (s = !1), a === void 0 && (a = 1), c();
171
+ const l = t.getBoundingClientRect(), {
172
+ left: v,
173
+ top: p,
174
+ width: y,
175
+ height: d
176
+ } = l;
177
+ if (s || e(), !y || !d)
178
+ return;
179
+ const m = x(p), u = x(o.clientWidth - (v + y)), h = x(o.clientHeight - (p + d)), f = x(v), b = {
180
+ rootMargin: -m + "px " + -u + "px " + -h + "px " + -f + "px",
181
+ threshold: U(0, P(1, a)) || 1
182
+ };
183
+ let E = !0;
184
+ function M(z) {
185
+ const R = z[0].intersectionRatio;
186
+ if (R !== a) {
187
+ if (!E)
188
+ return i();
189
+ R ? i(!1, R) : r = setTimeout(() => {
190
+ i(!1, 1e-7);
191
+ }, 1e3);
192
+ }
193
+ R === 1 && !q(l, t.getBoundingClientRect()) && i(), E = !1;
194
+ }
195
+ try {
196
+ n = new IntersectionObserver(M, {
197
+ ...b,
198
+ // Handle <iframe>s
199
+ root: o.ownerDocument
200
+ });
201
+ } catch {
202
+ n = new IntersectionObserver(M, b);
203
+ }
204
+ n.observe(t);
205
+ }
206
+ return i(!0), c;
207
+ }
208
+ function ot(t, e, n, r) {
209
+ r === void 0 && (r = {});
210
+ const {
211
+ ancestorScroll: o = !0,
212
+ ancestorResize: c = !0,
213
+ elementResize: i = typeof ResizeObserver == "function",
214
+ layoutShift: s = typeof IntersectionObserver == "function",
215
+ animationFrame: a = !1
216
+ } = r, l = D(t), v = o || c ? [...l ? S(l) : [], ...S(e)] : [];
217
+ v.forEach((f) => {
218
+ o && f.addEventListener("scroll", n, {
219
+ passive: !0
220
+ }), c && f.addEventListener("resize", n);
221
+ });
222
+ const p = l && s ? nt(l, n) : null;
223
+ let y = -1, d = null;
224
+ i && (d = new ResizeObserver((f) => {
225
+ let [w] = f;
226
+ w && w.target === l && d && (d.unobserve(e), cancelAnimationFrame(y), y = requestAnimationFrame(() => {
227
+ var b;
228
+ (b = d) == null || b.observe(e);
229
+ })), n();
230
+ }), l && !a && d.observe(l), d.observe(e));
231
+ let m, u = a ? V(t) : null;
232
+ a && h();
233
+ function h() {
234
+ const f = V(t);
235
+ u && !q(u, f) && n(), u = f, m = requestAnimationFrame(h);
236
+ }
237
+ return n(), () => {
238
+ var f;
239
+ v.forEach((w) => {
240
+ o && w.removeEventListener("scroll", n), c && w.removeEventListener("resize", n);
241
+ }), p?.(), (f = d) == null || f.disconnect(), d = null, a && cancelAnimationFrame(m);
242
+ };
243
+ }
244
+ export {
245
+ ot as a
246
+ };
@@ -0,0 +1 @@
1
+ "use strict";const U=Math.min,P=Math.max,O=Math.round,x=Math.floor,F=t=>({x:t,y:t});function j(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function C(){return typeof window<"u"}function W(t){return H(t)?(t.nodeName||"").toLowerCase():"#document"}function g(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function _(t){var e;return(e=(H(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function H(t){return C()?t instanceof Node||t instanceof g(t).Node:!1}function k(t){return C()?t instanceof Element||t instanceof g(t).Element:!1}function L(t){return C()?t instanceof HTMLElement||t instanceof g(t).HTMLElement:!1}function A(t){return!C()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof g(t).ShadowRoot}const K=new Set(["inline","contents"]);function $(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=T(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!K.has(o)}function X(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Y=new Set(["html","body","#document"]);function G(t){return Y.has(W(t))}function T(t){return g(t).getComputedStyle(t)}function J(t){if(W(t)==="html")return t;const e=t.assignedSlot||t.parentNode||A(t)&&t.host||_(t);return A(e)?e.host:e}function I(t){const e=J(t);return G(e)?t.ownerDocument?t.ownerDocument.body:t.body:L(e)&&$(e)?e:I(e)}function S(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=I(t),c=o===((r=t.ownerDocument)==null?void 0:r.body),i=g(o);if(c){const s=N(i);return e.concat(i,i.visualViewport||[],$(o)?o:[],s&&n?S(s):[])}return e.concat(o,S(o,[],n))}function N(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Q(t){const e=T(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=L(t),c=o?t.offsetWidth:n,i=o?t.offsetHeight:r,s=O(n)!==c||O(r)!==i;return s&&(n=c,r=i),{width:n,height:r,$:s}}function D(t){return k(t)?t:t.contextElement}function B(t){const e=D(t);if(!L(e))return F(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:c}=Q(e);let i=(c?O(n.width):n.width)/r,s=(c?O(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Z=F(0);function tt(t){const e=g(t);return!X()||!e.visualViewport?Z:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function et(t,e,n){return!1}function V(t,e,n,r){e===void 0&&(e=!1);const o=t.getBoundingClientRect(),c=D(t);let i=F(1);e&&(i=B(t));const s=et()?tt(c):F(0);let a=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,v=o.width/i.x,p=o.height/i.y;if(c){const y=g(c),d=r;let m=y,l=N(m);for(;l&&r&&d!==m;){const h=B(l),f=l.getBoundingClientRect(),w=T(l),b=f.left+(l.clientLeft+parseFloat(w.paddingLeft))*h.x,E=f.top+(l.clientTop+parseFloat(w.paddingTop))*h.y;a*=h.x,u*=h.y,v*=h.x,p*=h.y,a+=b,u+=E,m=g(l),l=N(m)}}return j({width:v,height:p,x:a,y:u})}function q(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function nt(t,e){let n=null,r;const o=_(t);function c(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),c();const u=t.getBoundingClientRect(),{left:v,top:p,width:y,height:d}=u;if(s||e(),!y||!d)return;const m=x(p),l=x(o.clientWidth-(v+y)),h=x(o.clientHeight-(p+d)),f=x(v),b={rootMargin:-m+"px "+-l+"px "+-h+"px "+-f+"px",threshold:P(0,U(1,a))||1};let E=!0;function M(z){const R=z[0].intersectionRatio;if(R!==a){if(!E)return i();R?i(!1,R):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!q(u,t.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(M,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(M,b)}n.observe(t)}return i(!0),c}function ot(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=D(t),v=o||c?[...u?S(u):[],...S(e)]:[];v.forEach(f=>{o&&f.addEventListener("scroll",n,{passive:!0}),c&&f.addEventListener("resize",n)});const p=u&&s?nt(u,n):null;let y=-1,d=null;i&&(d=new ResizeObserver(f=>{let[w]=f;w&&w.target===u&&d&&(d.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),u&&!a&&d.observe(u),d.observe(e));let m,l=a?V(t):null;a&&h();function h(){const f=V(t);l&&!q(l,f)&&n(),l=f,m=requestAnimationFrame(h)}return n(),()=>{var f;v.forEach(w=>{o&&w.removeEventListener("scroll",n),c&&w.removeEventListener("resize",n)}),p?.(),(f=d)==null||f.disconnect(),d=null,a&&cancelAnimationFrame(m)}}exports.autoUpdate=ot;
@@ -1,4 +1,4 @@
1
- "use strict";const c=require("./vendor-D0fSwmdY.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(`
1
+ "use strict";const c=require("./vendor-DoH3f618.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
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
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`"""
4
4
  `+e.replace(/"""/g,'\\"""')+`
@@ -1,4 +1,4 @@
1
- import { a1 as he, a2 as V, a3 as Me, a4 as W, a5 as $, a6 as Y, a7 as $e, a8 as pe, a9 as ne, aa as qe, ab as Le, ac as L, ad as _e, ae as ke, af as le, ag as B, ah as oe, ai as Ve, aj as Qe } from "./vendor-DxZbxm3m.js";
1
+ import { o as he, f as V, a as Me, m as W, s as $, b as Y, p as $e, t as pe, d as ne, e as qe, l as Le, g as L, h as _e, i as ke, j as le, k as B, n as oe, q as Ve, r as Qe } from "./vendor-DVLzEdMv.js";
2
2
  import * as q from "react";
3
3
  var Pe = {
4
4
  OPERATION_DEFINITION: "OperationDefinition"
package/dist/hooks.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./graphql-vendor-Bp1AYkpN.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-B5FHuhCx.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-D5ETG7wB.js";
1
+ import { C as c, c as d, f as p } from "./graphql-vendor-D_K-hLF7.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";
@@ -0,0 +1 @@
1
+ "use strict";const m=require("./other-TR0ap-t4.cjs");var K,Mr;function Fa(){if(Mr)return K;Mr=1;function e(){this.__data__=[],this.size=0}return K=e,K}var V,Gr;function D(){if(Gr)return V;Gr=1;function e(r,t){return r===t||r!==r&&t!==t}return V=e,V}var k,Dr;function L(){if(Dr)return k;Dr=1;var e=D();function r(t,a){for(var n=t.length;n--;)if(e(t[n][0],a))return n;return-1}return k=r,k}var z,Lr;function Ha(){if(Lr)return z;Lr=1;var e=L(),r=Array.prototype,t=r.splice;function a(n){var i=this.__data__,u=e(i,n);if(u<0)return!1;var s=i.length-1;return u==s?i.pop():t.call(i,u,1),--this.size,!0}return z=a,z}var $,Fr;function Ea(){if(Fr)return $;Fr=1;var e=L();function r(t){var a=this.__data__,n=e(a,t);return n<0?void 0:a[n][1]}return $=r,$}var J,Hr;function Ba(){if(Hr)return J;Hr=1;var e=L();function r(t){return e(this.__data__,t)>-1}return J=r,J}var X,Er;function Ua(){if(Er)return X;Er=1;var e=L();function r(t,a){var n=this.__data__,i=e(n,t);return i<0?(++this.size,n.push([t,a])):n[i][1]=a,this}return X=r,X}var W,Br;function F(){if(Br)return W;Br=1;var e=Fa(),r=Ha(),t=Ea(),a=Ba(),n=Ua();function i(u){var s=-1,o=u==null?0:u.length;for(this.clear();++s<o;){var c=u[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=a,i.prototype.set=n,W=i,W}var Y,Ur;function Na(){if(Ur)return Y;Ur=1;var e=F();function r(){this.__data__=new e,this.size=0}return Y=r,Y}var Z,Nr;function Ka(){if(Nr)return Z;Nr=1;function e(r){var t=this.__data__,a=t.delete(r);return this.size=t.size,a}return Z=e,Z}var Q,Kr;function Va(){if(Kr)return Q;Kr=1;function e(r){return this.__data__.get(r)}return Q=e,Q}var ee,Vr;function ka(){if(Vr)return ee;Vr=1;function e(r){return this.__data__.has(r)}return ee=e,ee}var re,kr;function Ca(){if(kr)return re;kr=1;var e=typeof m.commonjsGlobal=="object"&&m.commonjsGlobal&&m.commonjsGlobal.Object===Object&&m.commonjsGlobal;return re=e,re}var te,zr;function A(){if(zr)return te;zr=1;var e=Ca(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return te=t,te}var ae,$r;function Ra(){if($r)return ae;$r=1;var e=A(),r=e.Symbol;return ae=r,ae}var ne,Jr;function za(){if(Jr)return ne;Jr=1;var e=Ra(),r=Object.prototype,t=r.hasOwnProperty,a=r.toString,n=e?e.toStringTag:void 0;function i(u){var s=t.call(u,n),o=u[n];try{u[n]=void 0;var c=!0}catch{}var f=a.call(u);return c&&(s?u[n]=o:delete u[n]),f}return ne=i,ne}var ie,Xr;function $a(){if(Xr)return ie;Xr=1;var e=Object.prototype,r=e.toString;function t(a){return r.call(a)}return ie=t,ie}var ue,Wr;function H(){if(Wr)return ue;Wr=1;var e=Ra(),r=za(),t=$a(),a="[object Null]",n="[object Undefined]",i=e?e.toStringTag:void 0;function u(s){return s==null?s===void 0?n:a:i&&i in Object(s)?r(s):t(s)}return ue=u,ue}var se,Yr;function T(){if(Yr)return se;Yr=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return se=e,se}var oe,Zr;function Sr(){if(Zr)return oe;Zr=1;var e=H(),r=T(),t="[object AsyncFunction]",a="[object Function]",n="[object GeneratorFunction]",i="[object Proxy]";function u(s){if(!r(s))return!1;var o=e(s);return o==a||o==n||o==t||o==i}return oe=u,oe}var ce,Qr;function Ja(){if(Qr)return ce;Qr=1;var e=A(),r=e["__core-js_shared__"];return ce=r,ce}var fe,et;function Xa(){if(et)return fe;et=1;var e=Ja(),r=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function t(a){return!!r&&r in a}return fe=t,fe}var ve,rt;function Wa(){if(rt)return ve;rt=1;var e=Function.prototype,r=e.toString;function t(a){if(a!=null){try{return r.call(a)}catch{}try{return a+""}catch{}}return""}return ve=t,ve}var _e,tt;function Ya(){if(tt)return _e;tt=1;var e=Sr(),r=Xa(),t=T(),a=Wa(),n=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,o=u.toString,c=s.hasOwnProperty,f=RegExp("^"+o.call(c).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(h){if(!t(h)||r(h))return!1;var g=e(h)?f:i;return g.test(a(h))}return _e=_,_e}var he,at;function Za(){if(at)return he;at=1;function e(r,t){return r?.[t]}return he=e,he}var le,nt;function mr(){if(nt)return le;nt=1;var e=Ya(),r=Za();function t(a,n){var i=r(a,n);return e(i)?i:void 0}return le=t,le}var de,it;function Oa(){if(it)return de;it=1;var e=mr(),r=A(),t=e(r,"Map");return de=t,de}var pe,ut;function E(){if(ut)return pe;ut=1;var e=mr(),r=e(Object,"create");return pe=r,pe}var ge,st;function Qa(){if(st)return ge;st=1;var e=E();function r(){this.__data__=e?e(null):{},this.size=0}return ge=r,ge}var be,ot;function en(){if(ot)return be;ot=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return be=e,be}var ye,ct;function rn(){if(ct)return ye;ct=1;var e=E(),r="__lodash_hash_undefined__",t=Object.prototype,a=t.hasOwnProperty;function n(i){var u=this.__data__;if(e){var s=u[i];return s===r?void 0:s}return a.call(u,i)?u[i]:void 0}return ye=n,ye}var qe,ft;function tn(){if(ft)return qe;ft=1;var e=E(),r=Object.prototype,t=r.hasOwnProperty;function a(n){var i=this.__data__;return e?i[n]!==void 0:t.call(i,n)}return qe=a,qe}var Ce,vt;function an(){if(vt)return Ce;vt=1;var e=E(),r="__lodash_hash_undefined__";function t(a,n){var i=this.__data__;return this.size+=this.has(a)?0:1,i[a]=e&&n===void 0?r:n,this}return Ce=t,Ce}var Re,_t;function nn(){if(_t)return Re;_t=1;var e=Qa(),r=en(),t=rn(),a=tn(),n=an();function i(u){var s=-1,o=u==null?0:u.length;for(this.clear();++s<o;){var c=u[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=a,i.prototype.set=n,Re=i,Re}var Oe,ht;function un(){if(ht)return Oe;ht=1;var e=nn(),r=F(),t=Oa();function a(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return Oe=a,Oe}var Te,lt;function sn(){if(lt)return Te;lt=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return Te=e,Te}var je,dt;function B(){if(dt)return je;dt=1;var e=sn();function r(t,a){var n=t.__data__;return e(a)?n[typeof a=="string"?"string":"hash"]:n.map}return je=r,je}var Ae,pt;function on(){if(pt)return Ae;pt=1;var e=B();function r(t){var a=e(this,t).delete(t);return this.size-=a?1:0,a}return Ae=r,Ae}var Ie,gt;function cn(){if(gt)return Ie;gt=1;var e=B();function r(t){return e(this,t).get(t)}return Ie=r,Ie}var Se,bt;function fn(){if(bt)return Se;bt=1;var e=B();function r(t){return e(this,t).has(t)}return Se=r,Se}var me,yt;function vn(){if(yt)return me;yt=1;var e=B();function r(t,a){var n=e(this,t),i=n.size;return n.set(t,a),this.size+=n.size==i?0:1,this}return me=r,me}var Pe,qt;function _n(){if(qt)return Pe;qt=1;var e=un(),r=on(),t=cn(),a=fn(),n=vn();function i(u){var s=-1,o=u==null?0:u.length;for(this.clear();++s<o;){var c=u[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=a,i.prototype.set=n,Pe=i,Pe}var xe,Ct;function hn(){if(Ct)return xe;Ct=1;var e=F(),r=Oa(),t=_n(),a=200;function n(i,u){var s=this.__data__;if(s instanceof e){var o=s.__data__;if(!r||o.length<a-1)return o.push([i,u]),this.size=++s.size,this;s=this.__data__=new t(o)}return s.set(i,u),this.size=s.size,this}return xe=n,xe}var we,Rt;function ln(){if(Rt)return we;Rt=1;var e=F(),r=Na(),t=Ka(),a=Va(),n=ka(),i=hn();function u(s){var o=this.__data__=new e(s);this.size=o.size}return u.prototype.clear=r,u.prototype.delete=t,u.prototype.get=a,u.prototype.has=n,u.prototype.set=i,we=u,we}var Me,Ot;function Ta(){if(Ot)return Me;Ot=1;var e=mr(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Me=r,Me}var Ge,Tt;function Pr(){if(Tt)return Ge;Tt=1;var e=Ta();function r(t,a,n){a=="__proto__"&&e?e(t,a,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[a]=n}return Ge=r,Ge}var De,jt;function ja(){if(jt)return De;jt=1;var e=Pr(),r=D();function t(a,n,i){(i!==void 0&&!r(a[n],i)||i===void 0&&!(n in a))&&e(a,n,i)}return De=t,De}var Le,At;function dn(){if(At)return Le;At=1;function e(r){return function(t,a,n){for(var i=-1,u=Object(t),s=n(t),o=s.length;o--;){var c=s[r?o:++i];if(a(u[c],c,u)===!1)break}return t}}return Le=e,Le}var Fe,It;function pn(){if(It)return Fe;It=1;var e=dn(),r=e();return Fe=r,Fe}var P={exports:{}};P.exports;var St;function gn(){return St||(St=1,(function(e,r){var t=A(),a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,u=i?t.Buffer:void 0,s=u?u.allocUnsafe:void 0;function o(c,f){if(f)return c.slice();var _=c.length,h=s?s(_):new c.constructor(_);return c.copy(h),h}e.exports=o})(P,P.exports)),P.exports}var He,mt;function bn(){if(mt)return He;mt=1;var e=A(),r=e.Uint8Array;return He=r,He}var Ee,Pt;function yn(){if(Pt)return Ee;Pt=1;var e=bn();function r(t){var a=new t.constructor(t.byteLength);return new e(a).set(new e(t)),a}return Ee=r,Ee}var Be,xt;function qn(){if(xt)return Be;xt=1;var e=yn();function r(t,a){var n=a?e(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}return Be=r,Be}var Ue,wt;function Cn(){if(wt)return Ue;wt=1;function e(r,t){var a=-1,n=r.length;for(t||(t=Array(n));++a<n;)t[a]=r[a];return t}return Ue=e,Ue}var Ne,Mt;function Rn(){if(Mt)return Ne;Mt=1;var e=T(),r=Object.create,t=(function(){function a(){}return function(n){if(!e(n))return{};if(r)return r(n);a.prototype=n;var i=new a;return a.prototype=void 0,i}})();return Ne=t,Ne}var Ke,Gt;function On(){if(Gt)return Ke;Gt=1;function e(r,t){return function(a){return r(t(a))}}return Ke=e,Ke}var Ve,Dt;function Aa(){if(Dt)return Ve;Dt=1;var e=On(),r=e(Object.getPrototypeOf,Object);return Ve=r,Ve}var ke,Lt;function Ia(){if(Lt)return ke;Lt=1;var e=Object.prototype;function r(t){var a=t&&t.constructor,n=typeof a=="function"&&a.prototype||e;return t===n}return ke=r,ke}var ze,Ft;function Tn(){if(Ft)return ze;Ft=1;var e=Rn(),r=Aa(),t=Ia();function a(n){return typeof n.constructor=="function"&&!t(n)?e(r(n)):{}}return ze=a,ze}var $e,Ht;function M(){if(Ht)return $e;Ht=1;function e(r){return r!=null&&typeof r=="object"}return $e=e,$e}var Je,Et;function jn(){if(Et)return Je;Et=1;var e=H(),r=M(),t="[object Arguments]";function a(n){return r(n)&&e(n)==t}return Je=a,Je}var Xe,Bt;function Sa(){if(Bt)return Xe;Bt=1;var e=jn(),r=M(),t=Object.prototype,a=t.hasOwnProperty,n=t.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(u){return r(u)&&a.call(u,"callee")&&!n.call(u,"callee")};return Xe=i,Xe}var We,Ut;function ma(){if(Ut)return We;Ut=1;var e=Array.isArray;return We=e,We}var Ye,Nt;function Pa(){if(Nt)return Ye;Nt=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Ye=r,Ye}var Ze,Kt;function xr(){if(Kt)return Ze;Kt=1;var e=Sr(),r=Pa();function t(a){return a!=null&&r(a.length)&&!e(a)}return Ze=t,Ze}var Qe,Vt;function An(){if(Vt)return Qe;Vt=1;var e=xr(),r=M();function t(a){return r(a)&&e(a)}return Qe=t,Qe}var x={exports:{}},er,kt;function In(){if(kt)return er;kt=1;function e(){return!1}return er=e,er}x.exports;var zt;function xa(){return zt||(zt=1,(function(e,r){var t=A(),a=In(),n=r&&!r.nodeType&&r,i=n&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===n,s=u?t.Buffer:void 0,o=s?s.isBuffer:void 0,c=o||a;e.exports=c})(x,x.exports)),x.exports}var rr,$t;function Sn(){if($t)return rr;$t=1;var e=H(),r=Aa(),t=M(),a="[object Object]",n=Function.prototype,i=Object.prototype,u=n.toString,s=i.hasOwnProperty,o=u.call(Object);function c(f){if(!t(f)||e(f)!=a)return!1;var _=r(f);if(_===null)return!0;var h=s.call(_,"constructor")&&_.constructor;return typeof h=="function"&&h instanceof h&&u.call(h)==o}return rr=c,rr}var tr,Jt;function mn(){if(Jt)return tr;Jt=1;var e=H(),r=Pa(),t=M(),a="[object Arguments]",n="[object Array]",i="[object Boolean]",u="[object Date]",s="[object Error]",o="[object Function]",c="[object Map]",f="[object Number]",_="[object Object]",h="[object RegExp]",g="[object Set]",y="[object String]",q="[object WeakMap]",C="[object ArrayBuffer]",j="[object DataView]",l="[object Float32Array]",U="[object Float64Array]",N="[object Int8Array]",I="[object Int16Array]",R="[object Int32Array]",b="[object Uint8Array]",d="[object Uint8ClampedArray]",G="[object Uint16Array]",p="[object Uint32Array]",v={};v[l]=v[U]=v[N]=v[I]=v[R]=v[b]=v[d]=v[G]=v[p]=!0,v[a]=v[n]=v[C]=v[i]=v[j]=v[u]=v[s]=v[o]=v[c]=v[f]=v[_]=v[h]=v[g]=v[y]=v[q]=!1;function S(O){return t(O)&&r(O.length)&&!!v[e(O)]}return tr=S,tr}var ar,Xt;function Pn(){if(Xt)return ar;Xt=1;function e(r){return function(t){return r(t)}}return ar=e,ar}var w={exports:{}};w.exports;var Wt;function xn(){return Wt||(Wt=1,(function(e,r){var t=Ca(),a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,u=i&&t.process,s=(function(){try{var o=n&&n.require&&n.require("util").types;return o||u&&u.binding&&u.binding("util")}catch{}})();e.exports=s})(w,w.exports)),w.exports}var nr,Yt;function wa(){if(Yt)return nr;Yt=1;var e=mn(),r=Pn(),t=xn(),a=t&&t.isTypedArray,n=a?r(a):e;return nr=n,nr}var ir,Zt;function Ma(){if(Zt)return ir;Zt=1;function e(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}return ir=e,ir}var ur,Qt;function wn(){if(Qt)return ur;Qt=1;var e=Pr(),r=D(),t=Object.prototype,a=t.hasOwnProperty;function n(i,u,s){var o=i[u];(!(a.call(i,u)&&r(o,s))||s===void 0&&!(u in i))&&e(i,u,s)}return ur=n,ur}var sr,ea;function Mn(){if(ea)return sr;ea=1;var e=wn(),r=Pr();function t(a,n,i,u){var s=!i;i||(i={});for(var o=-1,c=n.length;++o<c;){var f=n[o],_=u?u(i[f],a[f],f,i,a):void 0;_===void 0&&(_=a[f]),s?r(i,f,_):e(i,f,_)}return i}return sr=t,sr}var or,ra;function Gn(){if(ra)return or;ra=1;function e(r,t){for(var a=-1,n=Array(r);++a<r;)n[a]=t(a);return n}return or=e,or}var cr,ta;function Ga(){if(ta)return cr;ta=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(a,n){var i=typeof a;return n=n??e,!!n&&(i=="number"||i!="symbol"&&r.test(a))&&a>-1&&a%1==0&&a<n}return cr=t,cr}var fr,aa;function Dn(){if(aa)return fr;aa=1;var e=Gn(),r=Sa(),t=ma(),a=xa(),n=Ga(),i=wa(),u=Object.prototype,s=u.hasOwnProperty;function o(c,f){var _=t(c),h=!_&&r(c),g=!_&&!h&&a(c),y=!_&&!h&&!g&&i(c),q=_||h||g||y,C=q?e(c.length,String):[],j=C.length;for(var l in c)(f||s.call(c,l))&&!(q&&(l=="length"||g&&(l=="offset"||l=="parent")||y&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||n(l,j)))&&C.push(l);return C}return fr=o,fr}var vr,na;function Ln(){if(na)return vr;na=1;function e(r){var t=[];if(r!=null)for(var a in Object(r))t.push(a);return t}return vr=e,vr}var _r,ia;function Fn(){if(ia)return _r;ia=1;var e=T(),r=Ia(),t=Ln(),a=Object.prototype,n=a.hasOwnProperty;function i(u){if(!e(u))return t(u);var s=r(u),o=[];for(var c in u)c=="constructor"&&(s||!n.call(u,c))||o.push(c);return o}return _r=i,_r}var hr,ua;function Da(){if(ua)return hr;ua=1;var e=Dn(),r=Fn(),t=xr();function a(n){return t(n)?e(n,!0):r(n)}return hr=a,hr}var lr,sa;function Hn(){if(sa)return lr;sa=1;var e=Mn(),r=Da();function t(a){return e(a,r(a))}return lr=t,lr}var dr,oa;function En(){if(oa)return dr;oa=1;var e=ja(),r=gn(),t=qn(),a=Cn(),n=Tn(),i=Sa(),u=ma(),s=An(),o=xa(),c=Sr(),f=T(),_=Sn(),h=wa(),g=Ma(),y=Hn();function q(C,j,l,U,N,I,R){var b=g(C,l),d=g(j,l),G=R.get(d);if(G){e(C,l,G);return}var p=I?I(b,d,l+"",C,j,R):void 0,v=p===void 0;if(v){var S=u(d),O=!S&&o(d),wr=!S&&!O&&h(d);p=d,S||O||wr?u(b)?p=b:s(b)?p=a(b):O?(v=!1,p=r(d,!0)):wr?(v=!1,p=t(d,!0)):p=[]:_(d)||i(d)?(p=b,i(b)?p=y(b):(!f(b)||c(b))&&(p=n(d))):v=!1}v&&(R.set(d,p),N(p,d,U,I,R),R.delete(d)),e(C,l,p)}return dr=q,dr}var pr,ca;function Bn(){if(ca)return pr;ca=1;var e=ln(),r=ja(),t=pn(),a=En(),n=T(),i=Da(),u=Ma();function s(o,c,f,_,h){o!==c&&t(c,function(g,y){if(h||(h=new e),n(g))a(o,c,y,f,s,_,h);else{var q=_?_(u(o,y),g,y+"",o,c,h):void 0;q===void 0&&(q=g),r(o,y,q)}},i)}return pr=s,pr}var gr,fa;function La(){if(fa)return gr;fa=1;function e(r){return r}return gr=e,gr}var br,va;function Un(){if(va)return br;va=1;function e(r,t,a){switch(a.length){case 0:return r.call(t);case 1:return r.call(t,a[0]);case 2:return r.call(t,a[0],a[1]);case 3:return r.call(t,a[0],a[1],a[2])}return r.apply(t,a)}return br=e,br}var yr,_a;function Nn(){if(_a)return yr;_a=1;var e=Un(),r=Math.max;function t(a,n,i){return n=r(n===void 0?a.length-1:n,0),function(){for(var u=arguments,s=-1,o=r(u.length-n,0),c=Array(o);++s<o;)c[s]=u[n+s];s=-1;for(var f=Array(n+1);++s<n;)f[s]=u[s];return f[n]=i(c),e(a,this,f)}}return yr=t,yr}var qr,ha;function Kn(){if(ha)return qr;ha=1;function e(r){return function(){return r}}return qr=e,qr}var Cr,la;function Vn(){if(la)return Cr;la=1;var e=Kn(),r=Ta(),t=La(),a=r?function(n,i){return r(n,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:t;return Cr=a,Cr}var Rr,da;function kn(){if(da)return Rr;da=1;var e=800,r=16,t=Date.now;function a(n){var i=0,u=0;return function(){var s=t(),o=r-(s-u);if(u=s,o>0){if(++i>=e)return arguments[0]}else i=0;return n.apply(void 0,arguments)}}return Rr=a,Rr}var Or,pa;function zn(){if(pa)return Or;pa=1;var e=Vn(),r=kn(),t=r(e);return Or=t,Or}var Tr,ga;function $n(){if(ga)return Tr;ga=1;var e=La(),r=Nn(),t=zn();function a(n,i){return t(r(n,i,e),n+"")}return Tr=a,Tr}var jr,ba;function Jn(){if(ba)return jr;ba=1;var e=D(),r=xr(),t=Ga(),a=T();function n(i,u,s){if(!a(s))return!1;var o=typeof u;return(o=="number"?r(s)&&t(u,s.length):o=="string"&&u in s)?e(s[u],i):!1}return jr=n,jr}var Ar,ya;function Xn(){if(ya)return Ar;ya=1;var e=$n(),r=Jn();function t(a){return e(function(n,i){var u=-1,s=i.length,o=s>1?i[s-1]:void 0,c=s>2?i[2]:void 0;for(o=a.length>3&&typeof o=="function"?(s--,o):void 0,c&&r(i[0],i[1],c)&&(o=s<3?void 0:o,s=1),n=Object(n);++u<s;){var f=i[u];f&&a(n,f,u,o)}return n})}return Ar=t,Ar}var Ir,qa;function Wn(){if(qa)return Ir;qa=1;var e=Bn(),r=Xn(),t=r(function(a,n,i){e(a,n,i)});return Ir=t,Ir}var Yn=Wn();const Zn=m.getDefaultExportFromCjs(Yn);exports.merge=Zn;