quantum-component-library 1.4.45-qa → 1.4.45-qa.2
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.
- package/dist/{babel-vendor-BOM86iTb.js → babel-vendor-Brd7V25k.js} +76 -71
- package/dist/babel-vendor-pl7onWh-.cjs +3 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +48 -48
- package/dist/{dnd-core-vendor-q7mfiuVu.js → dnd-core-vendor-D0LYcGmm.js} +2 -2
- package/dist/{dnd-core-vendor-bgjKfDi6.cjs → dnd-core-vendor-DqnJnuNT.cjs} +1 -1
- package/dist/{graphql-vendor-JsvuUrRs.cjs → graphql-vendor-CPuTFvxJ.cjs} +1 -1
- package/dist/{graphql-vendor-YnA_qhJA.js → graphql-vendor-Dj6F1QIU.js} +1 -1
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +1 -1
- package/dist/lodash-vendor-Dkc3o8vE.cjs +1 -0
- package/dist/lodash-vendor-KQku4vKh.js +1602 -0
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +2 -2
- package/dist/{react-dnd-vendor-BZs2igAJ.js → react-dnd-vendor-DYGSQgr6.js} +2 -2
- package/dist/{react-dnd-vendor-BWqlt2EC.cjs → react-dnd-vendor-DyqEbdFL.cjs} +1 -1
- package/dist/{react-select-vendor-eBH7yy3O.js → react-select-vendor-B1OQPh8Y.js} +35 -35
- package/dist/{react-select-vendor-By3h6JjH.cjs → react-select-vendor-Dcon15oq.cjs} +1 -1
- package/dist/services.cjs +1 -1
- package/dist/services.js +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.js +1 -1
- package/dist/ui-vendor-C8K-cPdW.js +10755 -0
- package/dist/ui-vendor-D_H9hnvk.cjs +294 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +12 -12
- package/dist/vendor-DIPzo8rL.js +15069 -0
- package/dist/vendor-Dmlu4NZO.cjs +90 -0
- package/package.json +3 -2
- package/dist/babel-vendor-cKvSpnBp.cjs +0 -3
- package/dist/lodash-vendor-D5A6v3mw.cjs +0 -1
- package/dist/lodash-vendor-Dz4vW7Gd.js +0 -1120
- package/dist/vendor-BeqUcSbw.cjs +0 -45
- package/dist/vendor-DvX9OX-j.js +0 -7876
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const M=require("./vendor-BeqUcSbw.cjs"),s=require("./react-dnd-vendor-BWqlt2EC.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function _e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
|
|
1
|
+
"use strict";const M=require("./vendor-Dmlu4NZO.cjs"),s=require("./react-dnd-vendor-DyqEbdFL.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function _e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const A=require("./vendor-
|
|
1
|
+
"use strict";const A=require("./vendor-Dmlu4NZO.cjs");var Z={OPERATION_DEFINITION:"OperationDefinition"};class J extends Error{constructor(t,n,a,c,l,s,f){super(t),this.name="GraphQLError",this.message=t,l&&(this.path=l),n&&(this.nodes=Array.isArray(n)?n:[n]),a&&(this.source=a),c&&(this.positions=c),s&&(this.originalError=s);var p=f;if(!p&&s){var v=s.extensions;v&&typeof v=="object"&&(p=v)}this.extensions=p||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var i,r;function m(e){return new J(`Syntax Error: Unexpected token at ${r} in ${e}`)}function R(e){if(e.lastIndex=r,e.test(i))return i.slice(r,r=e.lastIndex)}var _=/ +(?=[^\s])/y;function ee(e){for(var t=e.split(`
|
|
2
2
|
`),n="",a=0,c=0,l=t.length-1,s=0;s<t.length;s++)_.lastIndex=0,_.test(t[s])&&(s&&(!a||_.lastIndex<a)&&(a=_.lastIndex),c=c||s,l=s);for(var f=c;f<=l;f++)f!==c&&(n+=`
|
|
3
3
|
`),n+=t[f].slice(a).replace(/\\"""/g,'"""');return n}function u(){for(var e=0|i.charCodeAt(r++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|i.charCodeAt(r++))if(e===35)for(;(e=0|i.charCodeAt(r++))&&e!==10&&e!==13;);r--}function M(){for(var e=r,t=0|i.charCodeAt(r++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|i.charCodeAt(r++));if(e===r-1)throw m("Name");var n=i.slice(e,--r);return u(),n}function k(){return{kind:"Name",value:M()}}var te=/(?:"""|(?:[\s\S]*?[^\\])""")/y,re=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function x(e){var t;switch(i.charCodeAt(r)){case 91:r++,u();for(var n=[];i.charCodeAt(r)!==93;)n.push(x(e));return r++,u(),{kind:"ListValue",values:n};case 123:r++,u();for(var a=[];i.charCodeAt(r)!==125;){var c=k();if(i.charCodeAt(r++)!==58)throw m("ObjectField");u(),a.push({kind:"ObjectField",name:c,value:x(e)})}return r++,u(),{kind:"ObjectValue",fields:a};case 36:if(e)throw m("Variable");return r++,{kind:"Variable",name:k()};case 34:if(i.charCodeAt(r+1)===34&&i.charCodeAt(r+2)===34){if(r+=3,(t=R(te))==null)throw m("StringValue");return u(),{kind:"StringValue",value:ee(t.slice(0,-3)),block:!0}}else{var l=r,s;r++;var f=!1;for(s=0|i.charCodeAt(r++);s===92&&(r++,f=!0)||s!==10&&s!==13&&s!==34&&s;s=0|i.charCodeAt(r++));if(s!==34)throw m("StringValue");return t=i.slice(l,r),u(),{kind:"StringValue",value:f?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 p=r++,v;(v=0|i.charCodeAt(r++))>=48&&v<=57;);var h=i.slice(p,--r);if((v=i.charCodeAt(r))===46||v===69||v===101){if((t=R(re))==null)throw m("FloatValue");return u(),{kind:"FloatValue",value:h+t}}else return u(),{kind:"IntValue",value:h};case 110:if(i.charCodeAt(r+1)===117&&i.charCodeAt(r+2)===108&&i.charCodeAt(r+3)===108)return r+=4,u(),{kind:"NullValue"};break;case 116:if(i.charCodeAt(r+1)===114&&i.charCodeAt(r+2)===117&&i.charCodeAt(r+3)===101)return r+=4,u(),{kind:"BooleanValue",value:!0};break;case 102:if(i.charCodeAt(r+1)===97&&i.charCodeAt(r+2)===108&&i.charCodeAt(r+3)===115&&i.charCodeAt(r+4)===101)return r+=5,u(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:M()}}function W(e){if(i.charCodeAt(r)===40){var t=[];r++,u();do{var n=k();if(i.charCodeAt(r++)!==58)throw m("Argument");u(),t.push({kind:"Argument",name:n,value:x(e)})}while(i.charCodeAt(r)!==41);return r++,u(),t}}function b(e){if(i.charCodeAt(r)===64){var t=[];do r++,t.push({kind:"Directive",name:k(),arguments:W(e)});while(i.charCodeAt(r)===64);return t}}function ne(){for(var e=0;i.charCodeAt(r)===91;)e++,r++,u();var t={kind:"NamedType",name:k()};do if(i.charCodeAt(r)===33&&(r++,u(),t={kind:"NonNullType",type:t}),e){if(i.charCodeAt(r++)!==93)throw m("NamedType");u(),t={kind:"ListType",type:t}}while(e--);return t}function j(){if(i.charCodeAt(r++)!==123)throw m("SelectionSet");return u(),L()}function L(){var e=[];do if(i.charCodeAt(r)===46){if(i.charCodeAt(++r)!==46||i.charCodeAt(++r)!==46)throw m("SelectionSet");switch(r++,u(),i.charCodeAt(r)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:b(!1),selectionSet:j()});break;case 111:i.charCodeAt(r+1)===110?(r+=2,u(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:k()},directives:b(!1),selectionSet:j()})):e.push({kind:"FragmentSpread",name:k(),directives:b(!1)});break;case 123:r++,u(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:L()});break;default:e.push({kind:"FragmentSpread",name:k(),directives:b(!1)})}}else{var t=k(),n=void 0;i.charCodeAt(r)===58&&(r++,u(),n=t,t=k());var a=W(!1),c=b(!1),l=void 0;i.charCodeAt(r)===123&&(r++,u(),l=L()),e.push({kind:"Field",alias:n,name:t,arguments:a,directives:c,selectionSet:l})}while(i.charCodeAt(r)!==125);return r++,u(),{kind:"SelectionSet",selections:e}}function ie(){if(u(),i.charCodeAt(r)===40){var e=[];r++,u();do{var t=void 0;if(i.charCodeAt(r)===34&&(t=x(!0)),i.charCodeAt(r++)!==36)throw m("Variable");var n=k();if(i.charCodeAt(r++)!==58)throw m("VariableDefinition");u();var a=ne(),c=void 0;i.charCodeAt(r)===61&&(r++,u(),c=x(!0)),u();var l={kind:"VariableDefinition",variable:{kind:"Variable",name:n},type:a,defaultValue:c,directives:b(!0)};t&&(l.description=t),e.push(l)}while(i.charCodeAt(r)!==41);return r++,u(),e}}function ae(e){var t=k();if(i.charCodeAt(r++)!==111||i.charCodeAt(r++)!==110)throw m("FragmentDefinition");u();var n={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:k()},directives:b(!1),selectionSet:j()};return e&&(n.description=e),n}function B(){var e=[];do{var t=void 0;if(i.charCodeAt(r)===34&&(t=x(!0)),i.charCodeAt(r)===123){if(t)throw m("Document");r++,u(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:L()})}else{var n=M();switch(n){case"fragment":e.push(ae(t));break;case"query":case"mutation":case"subscription":var a,c=void 0;(a=i.charCodeAt(r))!==40&&a!==64&&a!==123&&(c=k());var l={kind:"OperationDefinition",operation:n,name:c,variableDefinitions:ie(),directives:b(!1),selectionSet:j()};t&&(l.description=t),e.push(l);break;default:throw m("Document")}}}while(r<i.length);return e}function oe(e,t){return i=e.body?e.body:e,r=0,u(),t&&t.noLocation?{kind:"Document",definitions:B()}:{kind:"Document",definitions:B(),loc:{start:0,end:i.length,startToken:void 0,endToken:void 0,source:{body:i,name:"graphql.web",locationOffset:{line:1,column:1}}}}}function g(e,t,n){for(var a="",c=0;c<e.length;c++)c&&(a+=t),a+=n(e[c]);return a}function se(e){return JSON.stringify(e)}function ce(e){return`"""
|
|
4
4
|
`+e.replace(/"""/g,'\\"""')+`
|
package/dist/hooks.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./graphql-vendor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./graphql-vendor-CPuTFvxJ.cjs"),a=require("react"),l=require("urql"),i=require("./services.cjs"),u=require("./types.cjs"),f=({url:e,getAuthToken:t})=>new l.Client({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]}),h=({url:e,getAuthToken:t})=>a.useMemo(()=>f({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])},q=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=h;exports.useJointsForLimbIds=c;exports.useJointsForSensorLocations=m;exports.useLimbsForSensorLocations=d;exports.usePartOptionsForJoints=p;exports.usePartOptionsForLimbs=b;exports.usePartOptionsForSensorLocations=q;
|
package/dist/hooks.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as c } from "./graphql-vendor-
|
|
1
|
+
import { a as c } from "./graphql-vendor-Dj6F1QIU.js";
|
|
2
2
|
import { useMemo as i } from "react";
|
|
3
3
|
import { Client as d, fetchExchange as p } from "urql";
|
|
4
4
|
import { getAllAvailableJoints as f, limbsRequiredForJoints as b, getAllAvailableLimbs as m, getEnabledJointPlanes as g, getDefaultJointRange as h, getEnabledSegmentPlanes as L, getDefaultLimbRange as A } from "./services.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const G=require("./other-TR0ap-t4.cjs");var ne={exports:{}};ne.exports;var Jt;function Tu(){return Jt||(Jt=1,(function(r,t){var n=200,i="__lodash_hash_undefined__",u=800,o=16,f=9007199254740991,c="[object Arguments]",l="[object Array]",_="[object AsyncFunction]",p="[object Boolean]",b="[object Date]",y="[object Error]",m="[object Function]",S="[object GeneratorFunction]",x="[object Map]",P="[object Number]",E="[object Null]",A="[object Object]",Y="[object Proxy]",Z="[object RegExp]",U="[object Set]",D="[object String]",I="[object Undefined]",j="[object WeakMap]",$="[object ArrayBuffer]",R="[object DataView]",d="[object Float32Array]",N="[object Float64Array]",L="[object Int8Array]",oe="[object Int16Array]",ka="[object Int32Array]",ei="[object Uint8Array]",ri="[object Uint8ClampedArray]",ti="[object Uint16Array]",ni="[object Uint32Array]",ai=/[\\^$.*+?()[\]{}|]/g,ii=/^\[object .+?Constructor\]$/,ui=/^(?:0|[1-9]\d*)$/,T={};T[d]=T[N]=T[L]=T[oe]=T[ka]=T[ei]=T[ri]=T[ti]=T[ni]=!0,T[c]=T[l]=T[$]=T[p]=T[R]=T[b]=T[y]=T[m]=T[x]=T[P]=T[A]=T[Z]=T[U]=T[D]=T[j]=!1;var At=typeof G.commonjsGlobal=="object"&&G.commonjsGlobal&&G.commonjsGlobal.Object===Object&&G.commonjsGlobal,si=typeof self=="object"&&self&&self.Object===Object&&self,Q=At||si||Function("return this")(),jt=t&&!t.nodeType&&t,k=jt&&!0&&r&&!r.nodeType&&r,mt=k&&k.exports===jt,Oe=mt&&At.process,Rt=(function(){try{var e=k&&k.require&&k.require("util").types;return e||Oe&&Oe.binding&&Oe.binding("util")}catch{}})(),It=Rt&&Rt.isTypedArray;function oi(e,a,s){switch(s.length){case 0:return e.call(a);case 1:return e.call(a,s[0]);case 2:return e.call(a,s[0],s[1]);case 3:return e.call(a,s[0],s[1],s[2])}return e.apply(a,s)}function fi(e,a){for(var s=-1,h=Array(e);++s<e;)h[s]=a(s);return h}function ci(e){return function(a){return e(a)}}function li(e,a){return e?.[a]}function hi(e,a){return function(s){return e(a(s))}}var _i=Array.prototype,vi=Function.prototype,fe=Object.prototype,Ae=Q["__core-js_shared__"],ce=vi.toString,H=fe.hasOwnProperty,St=(function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),wt=fe.toString,pi=ce.call(Object),di=RegExp("^"+ce.call(H).replace(ai,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=mt?Q.Buffer:void 0,xt=Q.Symbol,Pt=Q.Uint8Array;le&&le.allocUnsafe;var Mt=hi(Object.getPrototypeOf,Object),Gt=Object.create,gi=fe.propertyIsEnumerable,bi=_i.splice,z=xt?xt.toStringTag:void 0,he=(function(){try{var e=Re(Object,"defineProperty");return e({},"",{}),e}catch{}})(),yi=le?le.isBuffer:void 0,Dt=Math.max,qi=Date.now,Lt=Re(Q,"Map"),ee=Re(Object,"create"),Ti=(function(){function e(){}return function(a){if(!K(a))return{};if(Gt)return Gt(a);e.prototype=a;var s=new e;return e.prototype=void 0,s}})();function B(e){var a=-1,s=e==null?0:e.length;for(this.clear();++a<s;){var h=e[a];this.set(h[0],h[1])}}function Ci(){this.__data__=ee?ee(null):{},this.size=0}function Oi(e){var a=this.has(e)&&delete this.__data__[e];return this.size-=a?1:0,a}function Ai(e){var a=this.__data__;if(ee){var s=a[e];return s===i?void 0:s}return H.call(a,e)?a[e]:void 0}function ji(e){var a=this.__data__;return ee?a[e]!==void 0:H.call(a,e)}function mi(e,a){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=ee&&a===void 0?i:a,this}B.prototype.clear=Ci,B.prototype.delete=Oi,B.prototype.get=Ai,B.prototype.has=ji,B.prototype.set=mi;function F(e){var a=-1,s=e==null?0:e.length;for(this.clear();++a<s;){var h=e[a];this.set(h[0],h[1])}}function Ri(){this.__data__=[],this.size=0}function Ii(e){var a=this.__data__,s=_e(a,e);if(s<0)return!1;var h=a.length-1;return s==h?a.pop():bi.call(a,s,1),--this.size,!0}function Si(e){var a=this.__data__,s=_e(a,e);return s<0?void 0:a[s][1]}function wi(e){return _e(this.__data__,e)>-1}function xi(e,a){var s=this.__data__,h=_e(s,e);return h<0?(++this.size,s.push([e,a])):s[h][1]=a,this}F.prototype.clear=Ri,F.prototype.delete=Ii,F.prototype.get=Si,F.prototype.has=wi,F.prototype.set=xi;function J(e){var a=-1,s=e==null?0:e.length;for(this.clear();++a<s;){var h=e[a];this.set(h[0],h[1])}}function Pi(){this.size=0,this.__data__={hash:new B,map:new(Lt||F),string:new B}}function Mi(e){var a=pe(this,e).delete(e);return this.size-=a?1:0,a}function Gi(e){return pe(this,e).get(e)}function Di(e){return pe(this,e).has(e)}function Li(e,a){var s=pe(this,e),h=s.size;return s.set(e,a),this.size+=s.size==h?0:1,this}J.prototype.clear=Pi,J.prototype.delete=Mi,J.prototype.get=Gi,J.prototype.has=Di,J.prototype.set=Li;function W(e){var a=this.__data__=new F(e);this.size=a.size}function Fi(){this.__data__=new F,this.size=0}function Ei(e){var a=this.__data__,s=a.delete(e);return this.size=a.size,s}function Hi(e){return this.__data__.get(e)}function Ui(e){return this.__data__.has(e)}function Ni(e,a){var s=this.__data__;if(s instanceof F){var h=s.__data__;if(!Lt||h.length<n-1)return h.push([e,a]),this.size=++s.size,this;s=this.__data__=new J(h)}return s.set(e,a),this.size=s.size,this}W.prototype.clear=Fi,W.prototype.delete=Ei,W.prototype.get=Hi,W.prototype.has=Ui,W.prototype.set=Ni;function zi(e,a){var s=we(e),h=!s&&Se(e),v=!s&&!h&&Nt(e),q=!s&&!h&&!v&&Bt(e),C=s||h||v||q,g=C?fi(e.length,String):[],O=g.length;for(var M in e)C&&(M=="length"||v&&(M=="offset"||M=="parent")||q&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||Ht(M,O))||g.push(M);return g}function je(e,a,s){(s!==void 0&&!de(e[a],s)||s===void 0&&!(a in e))&&me(e,a,s)}function Bi(e,a,s){var h=e[a];(!(H.call(e,a)&&de(h,s))||s===void 0&&!(a in e))&&me(e,a,s)}function _e(e,a){for(var s=e.length;s--;)if(de(e[s][0],a))return s;return-1}function me(e,a,s){a=="__proto__"&&he?he(e,a,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[a]=s}var Ki=nu();function ve(e){return e==null?e===void 0?I:E:z&&z in Object(e)?au(e):cu(e)}function Ft(e){return re(e)&&ve(e)==c}function Vi(e){if(!K(e)||ou(e))return!1;var a=Pe(e)?di:ii;return a.test(vu(e))}function $i(e){return re(e)&&zt(e.length)&&!!T[ve(e)]}function Ji(e){if(!K(e))return fu(e);var a=Ut(e),s=[];for(var h in e)h=="constructor"&&(a||!H.call(e,h))||s.push(h);return s}function Et(e,a,s,h,v){e!==a&&Ki(a,function(q,C){if(v||(v=new W),K(q))Wi(e,a,C,s,Et,h,v);else{var g=h?h(Ie(e,C),q,C+"",e,a,v):void 0;g===void 0&&(g=q),je(e,C,g)}},Kt)}function Wi(e,a,s,h,v,q,C){var g=Ie(e,s),O=Ie(a,s),M=C.get(O);if(M){je(e,s,M);return}var w=q?q(g,O,s+"",e,a,C):void 0,te=w===void 0;if(te){var Me=we(O),Ge=!Me&&Nt(O),$t=!Me&&!Ge&&Bt(O);w=O,Me||Ge||$t?we(g)?w=g:pu(g)?w=eu(g):Ge?(te=!1,w=Zi(O)):$t?(te=!1,w=ki(O)):w=[]:du(O)||Se(O)?(w=g,Se(g)?w=gu(g):(!K(g)||Pe(g))&&(w=iu(O))):te=!1}te&&(C.set(O,w),v(w,O,h,q,C),C.delete(O)),je(e,s,w)}function Xi(e,a){return hu(lu(e,a,Vt),e+"")}var Yi=he?function(e,a){return he(e,"toString",{configurable:!0,enumerable:!1,value:yu(a),writable:!0})}:Vt;function Zi(e,a){return e.slice()}function Qi(e){var a=new e.constructor(e.byteLength);return new Pt(a).set(new Pt(e)),a}function ki(e,a){var s=Qi(e.buffer);return new e.constructor(s,e.byteOffset,e.length)}function eu(e,a){var s=-1,h=e.length;for(a||(a=Array(h));++s<h;)a[s]=e[s];return a}function ru(e,a,s,h){var v=!s;s||(s={});for(var q=-1,C=a.length;++q<C;){var g=a[q],O=void 0;O===void 0&&(O=e[g]),v?me(s,g,O):Bi(s,g,O)}return s}function tu(e){return Xi(function(a,s){var h=-1,v=s.length,q=v>1?s[v-1]:void 0,C=v>2?s[2]:void 0;for(q=e.length>3&&typeof q=="function"?(v--,q):void 0,C&&uu(s[0],s[1],C)&&(q=v<3?void 0:q,v=1),a=Object(a);++h<v;){var g=s[h];g&&e(a,g,h,q)}return a})}function nu(e){return function(a,s,h){for(var v=-1,q=Object(a),C=h(a),g=C.length;g--;){var O=C[++v];if(s(q[O],O,q)===!1)break}return a}}function pe(e,a){var s=e.__data__;return su(a)?s[typeof a=="string"?"string":"hash"]:s.map}function Re(e,a){var s=li(e,a);return Vi(s)?s:void 0}function au(e){var a=H.call(e,z),s=e[z];try{e[z]=void 0;var h=!0}catch{}var v=wt.call(e);return h&&(a?e[z]=s:delete e[z]),v}function iu(e){return typeof e.constructor=="function"&&!Ut(e)?Ti(Mt(e)):{}}function Ht(e,a){var s=typeof e;return a=a??f,!!a&&(s=="number"||s!="symbol"&&ui.test(e))&&e>-1&&e%1==0&&e<a}function uu(e,a,s){if(!K(s))return!1;var h=typeof a;return(h=="number"?xe(s)&&Ht(a,s.length):h=="string"&&a in s)?de(s[a],e):!1}function su(e){var a=typeof e;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?e!=="__proto__":e===null}function ou(e){return!!St&&St in e}function Ut(e){var a=e&&e.constructor,s=typeof a=="function"&&a.prototype||fe;return e===s}function fu(e){var a=[];if(e!=null)for(var s in Object(e))a.push(s);return a}function cu(e){return wt.call(e)}function lu(e,a,s){return a=Dt(a===void 0?e.length-1:a,0),function(){for(var h=arguments,v=-1,q=Dt(h.length-a,0),C=Array(q);++v<q;)C[v]=h[a+v];v=-1;for(var g=Array(a+1);++v<a;)g[v]=h[v];return g[a]=s(C),oi(e,this,g)}}function Ie(e,a){if(!(a==="constructor"&&typeof e[a]=="function")&&a!="__proto__")return e[a]}var hu=_u(Yi);function _u(e){var a=0,s=0;return function(){var h=qi(),v=o-(h-s);if(s=h,v>0){if(++a>=u)return arguments[0]}else a=0;return e.apply(void 0,arguments)}}function vu(e){if(e!=null){try{return ce.call(e)}catch{}try{return e+""}catch{}}return""}function de(e,a){return e===a||e!==e&&a!==a}var Se=Ft((function(){return arguments})())?Ft:function(e){return re(e)&&H.call(e,"callee")&&!gi.call(e,"callee")},we=Array.isArray;function xe(e){return e!=null&&zt(e.length)&&!Pe(e)}function pu(e){return re(e)&&xe(e)}var Nt=yi||qu;function Pe(e){if(!K(e))return!1;var a=ve(e);return a==m||a==S||a==_||a==Y}function zt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f}function K(e){var a=typeof e;return e!=null&&(a=="object"||a=="function")}function re(e){return e!=null&&typeof e=="object"}function du(e){if(!re(e)||ve(e)!=A)return!1;var a=Mt(e);if(a===null)return!0;var s=H.call(a,"constructor")&&a.constructor;return typeof s=="function"&&s instanceof s&&ce.call(s)==pi}var Bt=It?ci(It):$i;function gu(e){return ru(e,Kt(e))}function Kt(e){return xe(e)?zi(e):Ji(e)}var bu=tu(function(e,a,s,h){Et(e,a,s,h)});function yu(e){return function(){return e}}function Vt(e){return e}function qu(){return!1}r.exports=bu})(ne,ne.exports)),ne.exports}var Cu=Tu();const Ou=G.getDefaultExportFromCjs(Cu);var De,Wt;function Au(){if(Wt)return De;Wt=1;function r(){this.__data__=[],this.size=0}return De=r,De}var Le,Xt;function ge(){if(Xt)return Le;Xt=1;function r(t,n){return t===n||t!==t&&n!==n}return Le=r,Le}var Fe,Yt;function be(){if(Yt)return Fe;Yt=1;var r=ge();function t(n,i){for(var u=n.length;u--;)if(r(n[u][0],i))return u;return-1}return Fe=t,Fe}var Ee,Zt;function ju(){if(Zt)return Ee;Zt=1;var r=be(),t=Array.prototype,n=t.splice;function i(u){var o=this.__data__,f=r(o,u);if(f<0)return!1;var c=o.length-1;return f==c?o.pop():n.call(o,f,1),--this.size,!0}return Ee=i,Ee}var He,Qt;function mu(){if(Qt)return He;Qt=1;var r=be();function t(n){var i=this.__data__,u=r(i,n);return u<0?void 0:i[u][1]}return He=t,He}var Ue,kt;function Ru(){if(kt)return Ue;kt=1;var r=be();function t(n){return r(this.__data__,n)>-1}return Ue=t,Ue}var Ne,en;function Iu(){if(en)return Ne;en=1;var r=be();function t(n,i){var u=this.__data__,o=r(u,n);return o<0?(++this.size,u.push([n,i])):u[o][1]=i,this}return Ne=t,Ne}var ze,rn;function ye(){if(rn)return ze;rn=1;var r=Au(),t=ju(),n=mu(),i=Ru(),u=Iu();function o(f){var c=-1,l=f==null?0:f.length;for(this.clear();++c<l;){var _=f[c];this.set(_[0],_[1])}}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=u,ze=o,ze}var Be,tn;function Su(){if(tn)return Be;tn=1;var r=ye();function t(){this.__data__=new r,this.size=0}return Be=t,Be}var Ke,nn;function wu(){if(nn)return Ke;nn=1;function r(t){var n=this.__data__,i=n.delete(t);return this.size=n.size,i}return Ke=r,Ke}var Ve,an;function xu(){if(an)return Ve;an=1;function r(t){return this.__data__.get(t)}return Ve=r,Ve}var $e,un;function Pu(){if(un)return $e;un=1;function r(t){return this.__data__.has(t)}return $e=r,$e}var Je,sn;function Fa(){if(sn)return Je;sn=1;var r=typeof G.commonjsGlobal=="object"&&G.commonjsGlobal&&G.commonjsGlobal.Object===Object&&G.commonjsGlobal;return Je=r,Je}var We,on;function X(){if(on)return We;on=1;var r=Fa(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=r||t||Function("return this")();return We=n,We}var Xe,fn;function Ea(){if(fn)return Xe;fn=1;var r=X(),t=r.Symbol;return Xe=t,Xe}var Ye,cn;function Mu(){if(cn)return Ye;cn=1;var r=Ea(),t=Object.prototype,n=t.hasOwnProperty,i=t.toString,u=r?r.toStringTag:void 0;function o(f){var c=n.call(f,u),l=f[u];try{f[u]=void 0;var _=!0}catch{}var p=i.call(f);return _&&(c?f[u]=l:delete f[u]),p}return Ye=o,Ye}var Ze,ln;function Gu(){if(ln)return Ze;ln=1;var r=Object.prototype,t=r.toString;function n(i){return t.call(i)}return Ze=n,Ze}var Qe,hn;function qe(){if(hn)return Qe;hn=1;var r=Ea(),t=Mu(),n=Gu(),i="[object Null]",u="[object Undefined]",o=r?r.toStringTag:void 0;function f(c){return c==null?c===void 0?u:i:o&&o in Object(c)?t(c):n(c)}return Qe=f,Qe}var ke,_n;function V(){if(_n)return ke;_n=1;function r(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ke=r,ke}var er,vn;function qt(){if(vn)return er;vn=1;var r=qe(),t=V(),n="[object AsyncFunction]",i="[object Function]",u="[object GeneratorFunction]",o="[object Proxy]";function f(c){if(!t(c))return!1;var l=r(c);return l==i||l==u||l==n||l==o}return er=f,er}var rr,pn;function Du(){if(pn)return rr;pn=1;var r=X(),t=r["__core-js_shared__"];return rr=t,rr}var tr,dn;function Lu(){if(dn)return tr;dn=1;var r=Du(),t=(function(){var i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function n(i){return!!t&&t in i}return tr=n,tr}var nr,gn;function Fu(){if(gn)return nr;gn=1;var r=Function.prototype,t=r.toString;function n(i){if(i!=null){try{return t.call(i)}catch{}try{return i+""}catch{}}return""}return nr=n,nr}var ar,bn;function Eu(){if(bn)return ar;bn=1;var r=qt(),t=Lu(),n=V(),i=Fu(),u=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,f=Function.prototype,c=Object.prototype,l=f.toString,_=c.hasOwnProperty,p=RegExp("^"+l.call(_).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(y){if(!n(y)||t(y))return!1;var m=r(y)?p:o;return m.test(i(y))}return ar=b,ar}var ir,yn;function Hu(){if(yn)return ir;yn=1;function r(t,n){return t?.[n]}return ir=r,ir}var ur,qn;function Tt(){if(qn)return ur;qn=1;var r=Eu(),t=Hu();function n(i,u){var o=t(i,u);return r(o)?o:void 0}return ur=n,ur}var sr,Tn;function Ha(){if(Tn)return sr;Tn=1;var r=Tt(),t=X(),n=r(t,"Map");return sr=n,sr}var or,Cn;function Te(){if(Cn)return or;Cn=1;var r=Tt(),t=r(Object,"create");return or=t,or}var fr,On;function Uu(){if(On)return fr;On=1;var r=Te();function t(){this.__data__=r?r(null):{},this.size=0}return fr=t,fr}var cr,An;function Nu(){if(An)return cr;An=1;function r(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return cr=r,cr}var lr,jn;function zu(){if(jn)return lr;jn=1;var r=Te(),t="__lodash_hash_undefined__",n=Object.prototype,i=n.hasOwnProperty;function u(o){var f=this.__data__;if(r){var c=f[o];return c===t?void 0:c}return i.call(f,o)?f[o]:void 0}return lr=u,lr}var hr,mn;function Bu(){if(mn)return hr;mn=1;var r=Te(),t=Object.prototype,n=t.hasOwnProperty;function i(u){var o=this.__data__;return r?o[u]!==void 0:n.call(o,u)}return hr=i,hr}var _r,Rn;function Ku(){if(Rn)return _r;Rn=1;var r=Te(),t="__lodash_hash_undefined__";function n(i,u){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=r&&u===void 0?t:u,this}return _r=n,_r}var vr,In;function Vu(){if(In)return vr;In=1;var r=Uu(),t=Nu(),n=zu(),i=Bu(),u=Ku();function o(f){var c=-1,l=f==null?0:f.length;for(this.clear();++c<l;){var _=f[c];this.set(_[0],_[1])}}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=u,vr=o,vr}var pr,Sn;function $u(){if(Sn)return pr;Sn=1;var r=Vu(),t=ye(),n=Ha();function i(){this.size=0,this.__data__={hash:new r,map:new(n||t),string:new r}}return pr=i,pr}var dr,wn;function Ju(){if(wn)return dr;wn=1;function r(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return dr=r,dr}var gr,xn;function Ce(){if(xn)return gr;xn=1;var r=Ju();function t(n,i){var u=n.__data__;return r(i)?u[typeof i=="string"?"string":"hash"]:u.map}return gr=t,gr}var br,Pn;function Wu(){if(Pn)return br;Pn=1;var r=Ce();function t(n){var i=r(this,n).delete(n);return this.size-=i?1:0,i}return br=t,br}var yr,Mn;function Xu(){if(Mn)return yr;Mn=1;var r=Ce();function t(n){return r(this,n).get(n)}return yr=t,yr}var qr,Gn;function Yu(){if(Gn)return qr;Gn=1;var r=Ce();function t(n){return r(this,n).has(n)}return qr=t,qr}var Tr,Dn;function Zu(){if(Dn)return Tr;Dn=1;var r=Ce();function t(n,i){var u=r(this,n),o=u.size;return u.set(n,i),this.size+=u.size==o?0:1,this}return Tr=t,Tr}var Cr,Ln;function Qu(){if(Ln)return Cr;Ln=1;var r=$u(),t=Wu(),n=Xu(),i=Yu(),u=Zu();function o(f){var c=-1,l=f==null?0:f.length;for(this.clear();++c<l;){var _=f[c];this.set(_[0],_[1])}}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=u,Cr=o,Cr}var Or,Fn;function ku(){if(Fn)return Or;Fn=1;var r=ye(),t=Ha(),n=Qu(),i=200;function u(o,f){var c=this.__data__;if(c instanceof r){var l=c.__data__;if(!t||l.length<i-1)return l.push([o,f]),this.size=++c.size,this;c=this.__data__=new n(l)}return c.set(o,f),this.size=c.size,this}return Or=u,Or}var Ar,En;function es(){if(En)return Ar;En=1;var r=ye(),t=Su(),n=wu(),i=xu(),u=Pu(),o=ku();function f(c){var l=this.__data__=new r(c);this.size=l.size}return f.prototype.clear=t,f.prototype.delete=n,f.prototype.get=i,f.prototype.has=u,f.prototype.set=o,Ar=f,Ar}var jr,Hn;function Ua(){if(Hn)return jr;Hn=1;var r=Tt(),t=(function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}})();return jr=t,jr}var mr,Un;function Ct(){if(Un)return mr;Un=1;var r=Ua();function t(n,i,u){i=="__proto__"&&r?r(n,i,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[i]=u}return mr=t,mr}var Rr,Nn;function Na(){if(Nn)return Rr;Nn=1;var r=Ct(),t=ge();function n(i,u,o){(o!==void 0&&!t(i[u],o)||o===void 0&&!(u in i))&&r(i,u,o)}return Rr=n,Rr}var Ir,zn;function rs(){if(zn)return Ir;zn=1;function r(t){return function(n,i,u){for(var o=-1,f=Object(n),c=u(n),l=c.length;l--;){var _=c[t?l:++o];if(i(f[_],_,f)===!1)break}return n}}return Ir=r,Ir}var Sr,Bn;function ts(){if(Bn)return Sr;Bn=1;var r=rs(),t=r();return Sr=t,Sr}var ae={exports:{}};ae.exports;var Kn;function ns(){return Kn||(Kn=1,(function(r,t){var n=X(),i=t&&!t.nodeType&&t,u=i&&!0&&r&&!r.nodeType&&r,o=u&&u.exports===i,f=o?n.Buffer:void 0,c=f?f.allocUnsafe:void 0;function l(_,p){if(p)return _.slice();var b=_.length,y=c?c(b):new _.constructor(b);return _.copy(y),y}r.exports=l})(ae,ae.exports)),ae.exports}var wr,Vn;function as(){if(Vn)return wr;Vn=1;var r=X(),t=r.Uint8Array;return wr=t,wr}var xr,$n;function is(){if($n)return xr;$n=1;var r=as();function t(n){var i=new n.constructor(n.byteLength);return new r(i).set(new r(n)),i}return xr=t,xr}var Pr,Jn;function us(){if(Jn)return Pr;Jn=1;var r=is();function t(n,i){var u=i?r(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}return Pr=t,Pr}var Mr,Wn;function ss(){if(Wn)return Mr;Wn=1;function r(t,n){var i=-1,u=t.length;for(n||(n=Array(u));++i<u;)n[i]=t[i];return n}return Mr=r,Mr}var Gr,Xn;function os(){if(Xn)return Gr;Xn=1;var r=V(),t=Object.create,n=(function(){function i(){}return function(u){if(!r(u))return{};if(t)return t(u);i.prototype=u;var o=new i;return i.prototype=void 0,o}})();return Gr=n,Gr}var Dr,Yn;function fs(){if(Yn)return Dr;Yn=1;function r(t,n){return function(i){return t(n(i))}}return Dr=r,Dr}var Lr,Zn;function za(){if(Zn)return Lr;Zn=1;var r=fs(),t=r(Object.getPrototypeOf,Object);return Lr=t,Lr}var Fr,Qn;function Ba(){if(Qn)return Fr;Qn=1;var r=Object.prototype;function t(n){var i=n&&n.constructor,u=typeof i=="function"&&i.prototype||r;return n===u}return Fr=t,Fr}var Er,kn;function cs(){if(kn)return Er;kn=1;var r=os(),t=za(),n=Ba();function i(u){return typeof u.constructor=="function"&&!n(u)?r(t(u)):{}}return Er=i,Er}var Hr,ea;function se(){if(ea)return Hr;ea=1;function r(t){return t!=null&&typeof t=="object"}return Hr=r,Hr}var Ur,ra;function ls(){if(ra)return Ur;ra=1;var r=qe(),t=se(),n="[object Arguments]";function i(u){return t(u)&&r(u)==n}return Ur=i,Ur}var Nr,ta;function Ka(){if(ta)return Nr;ta=1;var r=ls(),t=se(),n=Object.prototype,i=n.hasOwnProperty,u=n.propertyIsEnumerable,o=r((function(){return arguments})())?r:function(f){return t(f)&&i.call(f,"callee")&&!u.call(f,"callee")};return Nr=o,Nr}var zr,na;function Va(){if(na)return zr;na=1;var r=Array.isArray;return zr=r,zr}var Br,aa;function $a(){if(aa)return Br;aa=1;var r=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=r}return Br=t,Br}var Kr,ia;function Ot(){if(ia)return Kr;ia=1;var r=qt(),t=$a();function n(i){return i!=null&&t(i.length)&&!r(i)}return Kr=n,Kr}var Vr,ua;function hs(){if(ua)return Vr;ua=1;var r=Ot(),t=se();function n(i){return t(i)&&r(i)}return Vr=n,Vr}var ie={exports:{}},$r,sa;function _s(){if(sa)return $r;sa=1;function r(){return!1}return $r=r,$r}ie.exports;var oa;function Ja(){return oa||(oa=1,(function(r,t){var n=X(),i=_s(),u=t&&!t.nodeType&&t,o=u&&!0&&r&&!r.nodeType&&r,f=o&&o.exports===u,c=f?n.Buffer:void 0,l=c?c.isBuffer:void 0,_=l||i;r.exports=_})(ie,ie.exports)),ie.exports}var Jr,fa;function vs(){if(fa)return Jr;fa=1;var r=qe(),t=za(),n=se(),i="[object Object]",u=Function.prototype,o=Object.prototype,f=u.toString,c=o.hasOwnProperty,l=f.call(Object);function _(p){if(!n(p)||r(p)!=i)return!1;var b=t(p);if(b===null)return!0;var y=c.call(b,"constructor")&&b.constructor;return typeof y=="function"&&y instanceof y&&f.call(y)==l}return Jr=_,Jr}var Wr,ca;function ps(){if(ca)return Wr;ca=1;var r=qe(),t=$a(),n=se(),i="[object Arguments]",u="[object Array]",o="[object Boolean]",f="[object Date]",c="[object Error]",l="[object Function]",_="[object Map]",p="[object Number]",b="[object Object]",y="[object RegExp]",m="[object Set]",S="[object String]",x="[object WeakMap]",P="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",Y="[object Float64Array]",Z="[object Int8Array]",U="[object Int16Array]",D="[object Int32Array]",I="[object Uint8Array]",j="[object Uint8ClampedArray]",$="[object Uint16Array]",R="[object Uint32Array]",d={};d[A]=d[Y]=d[Z]=d[U]=d[D]=d[I]=d[j]=d[$]=d[R]=!0,d[i]=d[u]=d[P]=d[o]=d[E]=d[f]=d[c]=d[l]=d[_]=d[p]=d[b]=d[y]=d[m]=d[S]=d[x]=!1;function N(L){return n(L)&&t(L.length)&&!!d[r(L)]}return Wr=N,Wr}var Xr,la;function ds(){if(la)return Xr;la=1;function r(t){return function(n){return t(n)}}return Xr=r,Xr}var ue={exports:{}};ue.exports;var ha;function gs(){return ha||(ha=1,(function(r,t){var n=Fa(),i=t&&!t.nodeType&&t,u=i&&!0&&r&&!r.nodeType&&r,o=u&&u.exports===i,f=o&&n.process,c=(function(){try{var l=u&&u.require&&u.require("util").types;return l||f&&f.binding&&f.binding("util")}catch{}})();r.exports=c})(ue,ue.exports)),ue.exports}var Yr,_a;function Wa(){if(_a)return Yr;_a=1;var r=ps(),t=ds(),n=gs(),i=n&&n.isTypedArray,u=i?t(i):r;return Yr=u,Yr}var Zr,va;function Xa(){if(va)return Zr;va=1;function r(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Zr=r,Zr}var Qr,pa;function bs(){if(pa)return Qr;pa=1;var r=Ct(),t=ge(),n=Object.prototype,i=n.hasOwnProperty;function u(o,f,c){var l=o[f];(!(i.call(o,f)&&t(l,c))||c===void 0&&!(f in o))&&r(o,f,c)}return Qr=u,Qr}var kr,da;function ys(){if(da)return kr;da=1;var r=bs(),t=Ct();function n(i,u,o,f){var c=!o;o||(o={});for(var l=-1,_=u.length;++l<_;){var p=u[l],b=f?f(o[p],i[p],p,o,i):void 0;b===void 0&&(b=i[p]),c?t(o,p,b):r(o,p,b)}return o}return kr=n,kr}var et,ga;function qs(){if(ga)return et;ga=1;function r(t,n){for(var i=-1,u=Array(t);++i<t;)u[i]=n(i);return u}return et=r,et}var rt,ba;function Ya(){if(ba)return rt;ba=1;var r=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(i,u){var o=typeof i;return u=u??r,!!u&&(o=="number"||o!="symbol"&&t.test(i))&&i>-1&&i%1==0&&i<u}return rt=n,rt}var tt,ya;function Ts(){if(ya)return tt;ya=1;var r=qs(),t=Ka(),n=Va(),i=Ja(),u=Ya(),o=Wa(),f=Object.prototype,c=f.hasOwnProperty;function l(_,p){var b=n(_),y=!b&&t(_),m=!b&&!y&&i(_),S=!b&&!y&&!m&&o(_),x=b||y||m||S,P=x?r(_.length,String):[],E=P.length;for(var A in _)(p||c.call(_,A))&&!(x&&(A=="length"||m&&(A=="offset"||A=="parent")||S&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||u(A,E)))&&P.push(A);return P}return tt=l,tt}var nt,qa;function Cs(){if(qa)return nt;qa=1;function r(t){var n=[];if(t!=null)for(var i in Object(t))n.push(i);return n}return nt=r,nt}var at,Ta;function Os(){if(Ta)return at;Ta=1;var r=V(),t=Ba(),n=Cs(),i=Object.prototype,u=i.hasOwnProperty;function o(f){if(!r(f))return n(f);var c=t(f),l=[];for(var _ in f)_=="constructor"&&(c||!u.call(f,_))||l.push(_);return l}return at=o,at}var it,Ca;function Za(){if(Ca)return it;Ca=1;var r=Ts(),t=Os(),n=Ot();function i(u){return n(u)?r(u,!0):t(u)}return it=i,it}var ut,Oa;function As(){if(Oa)return ut;Oa=1;var r=ys(),t=Za();function n(i){return r(i,t(i))}return ut=n,ut}var st,Aa;function js(){if(Aa)return st;Aa=1;var r=Na(),t=ns(),n=us(),i=ss(),u=cs(),o=Ka(),f=Va(),c=hs(),l=Ja(),_=qt(),p=V(),b=vs(),y=Wa(),m=Xa(),S=As();function x(P,E,A,Y,Z,U,D){var I=m(P,A),j=m(E,A),$=D.get(j);if($){r(P,A,$);return}var R=U?U(I,j,A+"",P,E,D):void 0,d=R===void 0;if(d){var N=f(j),L=!N&&l(j),oe=!N&&!L&&y(j);R=j,N||L||oe?f(I)?R=I:c(I)?R=i(I):L?(d=!1,R=t(j,!0)):oe?(d=!1,R=n(j,!0)):R=[]:b(j)||o(j)?(R=I,o(I)?R=S(I):(!p(I)||_(I))&&(R=u(j))):d=!1}d&&(D.set(j,R),Z(R,j,Y,U,D),D.delete(j)),r(P,A,R)}return st=x,st}var ot,ja;function ms(){if(ja)return ot;ja=1;var r=es(),t=Na(),n=ts(),i=js(),u=V(),o=Za(),f=Xa();function c(l,_,p,b,y){l!==_&&n(_,function(m,S){if(y||(y=new r),u(m))i(l,_,S,p,c,b,y);else{var x=b?b(f(l,S),m,S+"",l,_,y):void 0;x===void 0&&(x=m),t(l,S,x)}},o)}return ot=c,ot}var ft,ma;function Qa(){if(ma)return ft;ma=1;function r(t){return t}return ft=r,ft}var ct,Ra;function Rs(){if(Ra)return ct;Ra=1;function r(t,n,i){switch(i.length){case 0:return t.call(n);case 1:return t.call(n,i[0]);case 2:return t.call(n,i[0],i[1]);case 3:return t.call(n,i[0],i[1],i[2])}return t.apply(n,i)}return ct=r,ct}var lt,Ia;function Is(){if(Ia)return lt;Ia=1;var r=Rs(),t=Math.max;function n(i,u,o){return u=t(u===void 0?i.length-1:u,0),function(){for(var f=arguments,c=-1,l=t(f.length-u,0),_=Array(l);++c<l;)_[c]=f[u+c];c=-1;for(var p=Array(u+1);++c<u;)p[c]=f[c];return p[u]=o(_),r(i,this,p)}}return lt=n,lt}var ht,Sa;function Ss(){if(Sa)return ht;Sa=1;function r(t){return function(){return t}}return ht=r,ht}var _t,wa;function ws(){if(wa)return _t;wa=1;var r=Ss(),t=Ua(),n=Qa(),i=t?function(u,o){return t(u,"toString",{configurable:!0,enumerable:!1,value:r(o),writable:!0})}:n;return _t=i,_t}var vt,xa;function xs(){if(xa)return vt;xa=1;var r=800,t=16,n=Date.now;function i(u){var o=0,f=0;return function(){var c=n(),l=t-(c-f);if(f=c,l>0){if(++o>=r)return arguments[0]}else o=0;return u.apply(void 0,arguments)}}return vt=i,vt}var pt,Pa;function Ps(){if(Pa)return pt;Pa=1;var r=ws(),t=xs(),n=t(r);return pt=n,pt}var dt,Ma;function Ms(){if(Ma)return dt;Ma=1;var r=Qa(),t=Is(),n=Ps();function i(u,o){return n(t(u,o,r),u+"")}return dt=i,dt}var gt,Ga;function Gs(){if(Ga)return gt;Ga=1;var r=ge(),t=Ot(),n=Ya(),i=V();function u(o,f,c){if(!i(c))return!1;var l=typeof f;return(l=="number"?t(c)&&n(f,c.length):l=="string"&&f in c)?r(c[f],o):!1}return gt=u,gt}var bt,Da;function Ds(){if(Da)return bt;Da=1;var r=Ms(),t=Gs();function n(i){return r(function(u,o){var f=-1,c=o.length,l=c>1?o[c-1]:void 0,_=c>2?o[2]:void 0;for(l=i.length>3&&typeof l=="function"?(c--,l):void 0,_&&t(o[0],o[1],_)&&(l=c<3?void 0:l,c=1),u=Object(u);++f<c;){var p=o[f];p&&i(u,p,f,l)}return u})}return bt=n,bt}var yt,La;function Ls(){if(La)return yt;La=1;var r=ms(),t=Ds(),n=t(function(i,u,o){r(i,u,o)});return yt=n,yt}var Fs=Ls();const Es=G.getDefaultExportFromCjs(Fs);exports.merge=Es;exports.mergeWith=Ou;
|