@synnaxlabs/pluto 0.28.5 → 0.29.0
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/README.md +1 -1
- package/dist/{Animated-BpXi9NWe.js → Animated-BRUqvVsW.js} +2 -2
- package/dist/{Animated-DFza4wCT.cjs → Animated-DbOFofnA.cjs} +1 -1
- package/dist/{Keyboard-D7ybWHn0.js → Keyboard-BpXlLck_.js} +2 -2
- package/dist/{Keyboard-CbKUH8Eh.cjs → Keyboard-X_-hpfg9.cjs} +1 -1
- package/dist/LinePlot-B51qhAb1.cjs +66 -0
- package/dist/{LinePlot-BK8esSwO.js → LinePlot-CtIZPK_F.js} +2292 -2247
- package/dist/{Link-D2fnWjvq.js → Link-CrB722xh.js} +1 -1
- package/dist/{Link-B8NxnNli.cjs → Link-TUMI2ARc.cjs} +1 -1
- package/dist/{List-Dukgv-S0.js → List-BI_89AyO.js} +2 -2
- package/dist/{List-DFXYScV1.cjs → List-Cgx098Ae.cjs} +1 -1
- package/dist/{Pack-BNnq0Pnk.cjs → Pack-BgzS2BHo.cjs} +1 -1
- package/dist/{Pack-CcDPYCmE.js → Pack-l3j3YWpE.js} +4 -2
- package/dist/{Toggle-m9N7HK8Z.js → Toggle-3WohopP9.js} +7898 -7846
- package/dist/Toggle-B8cAGDWx.cjs +143 -0
- package/dist/{Video-CA6Au-LV.js → Video-Ciw4h8eF.js} +1 -1
- package/dist/{Video-Ch_mMn__.cjs → Video-JYqTPKDk.cjs} +1 -1
- package/dist/{aggregator-J7DZKy5x.js → aggregator-BpQMir30.js} +1971 -1975
- package/dist/{aggregator-C5NNOlCt.cjs → aggregator-CoVqjgd_.cjs} +28 -28
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/css-Cc1vb61S.cjs +1 -0
- package/dist/{css-BHfxGWOW.js → css-CiSR0WsA.js} +10 -10
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +33 -32
- package/dist/{external-DY98yrhu.cjs → external--UUIWzFw.cjs} +1 -1
- package/dist/{external-BrqfXbHQ.cjs → external-Ahp3C6QS.cjs} +1 -1
- package/dist/{external-CObl_IIp.js → external-B4LzaEYW.js} +4 -4
- package/dist/{external-Bad1CwNW.cjs → external-BFldRd_W.cjs} +1 -1
- package/dist/{external-qVdtuqZn.js → external-BICFLjgD.js} +5 -5
- package/dist/{external-PZRTTZBD.cjs → external-BXXNOCb0.cjs} +1 -1
- package/dist/{external-Cv1PHg1z.js → external-B_mVlkww.js} +1 -1
- package/dist/{external-BCVvWczs.cjs → external-Clb-pmsS.cjs} +1 -1
- package/dist/{external-DqipSbJg.js → external-CnWUVmQS.js} +2 -2
- package/dist/{external-fuYYBaX1.cjs → external-CqQG_X0V.cjs} +1 -1
- package/dist/{external-Drm1djcp.cjs → external-D1HsngQj.cjs} +1 -1
- package/dist/{external-DiHS7NGb.js → external-D1KK9_Hu.js} +2 -2
- package/dist/{external-Cg7eMkiE.js → external-D8r96cqI.js} +5 -5
- package/dist/{external-ecHPjGBQ.js → external-DMdyqHe5.js} +4 -4
- package/dist/{external-CpeeWTtO.cjs → external-DY38DhOK.cjs} +1 -1
- package/dist/{external-BdCCLUUg.js → external-DYr-TNbF.js} +7 -7
- package/dist/{external-CwLyjDOU.cjs → external-Dckibeci.cjs} +1 -1
- package/dist/{external-BMtI6oH4.js → external-DmgHQYvn.js} +4 -4
- package/dist/{external-D8deprwW.js → external-DnVHgC7D.js} +3 -3
- package/dist/{external-CuEzRxQ1.js → external-Dst1oSuM.js} +7 -7
- package/dist/{external-DVOz9Cj-.cjs → external-GQjdWsOX.cjs} +1 -1
- package/dist/{external-QDpeV2Bg.cjs → external-Lmkzu-RE.cjs} +1 -1
- package/dist/{external-DsWUD-xw.js → external-rB_b8uvo.js} +4 -4
- package/dist/{external-BEfayRpy.cjs → external-tnXiEaTc.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2341 -2265
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/aether/aether/aether.d.ts.map +1 -1
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts +6 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts +1 -1
- package/dist/src/input/DragButton.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts +2 -2
- package/dist/src/menu/ContextMenu.d.ts.map +1 -1
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/status/aether/types.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts +18 -18
- package/dist/src/synnax/aether/provider.d.ts.map +1 -1
- package/dist/src/telem/aether/remote.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +12 -12
- package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/tooltip/wrap.d.ts.map +1 -1
- package/dist/src/triggers/Text.d.ts.map +1 -1
- package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/connector/connector.d.ts.map +1 -1
- package/dist/src/vis/draw2d/canvas.d.ts +1 -1
- package/dist/src/vis/draw2d/canvas.d.ts.map +1 -1
- package/dist/src/vis/eraser/aether/eraser.d.ts.map +1 -1
- package/dist/src/vis/legend/Container.d.ts.map +1 -1
- package/dist/src/vis/light/aether/index.d.ts +2 -0
- package/dist/src/vis/light/aether/index.d.ts.map +1 -0
- package/dist/src/vis/light/aether/light.d.ts +112 -0
- package/dist/src/vis/light/aether/light.d.ts.map +1 -0
- package/dist/src/vis/light/index.d.ts +2 -0
- package/dist/src/vis/light/index.d.ts.map +1 -0
- package/dist/src/vis/light/use.d.ts +9 -0
- package/dist/src/vis/light/use.d.ts.map +1 -0
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts +40 -40
- package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +1 -5
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +15 -14
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +13 -16
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-t-SdMRna.js → units-BAK8qzqy.js} +1 -1
- package/dist/{units-CKv8dczK.cjs → units-C59nowP2.cjs} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +20 -20
- package/dist/LinePlot-D-BHnuDg.cjs +0 -66
- package/dist/Toggle-CGbCK-dz.cjs +0 -143
- package/dist/css-C4GOlJsi.cjs +0 -1
package/dist/align.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-Clb-pmsS.cjs");exports.Align=e.external;
|
package/dist/align.js
CHANGED
package/dist/button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external--UUIWzFw.cjs");exports.Button=e.external;
|
package/dist/button.js
CHANGED
package/dist/color.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-GQjdWsOX.cjs");exports.Color=e.external;
|
package/dist/color.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var St=Object.defineProperty;var Et=(t,e,r)=>e in t?St(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var A=(t,e,r)=>Et(t,typeof e!="symbol"?e+"":e,r);const s=require("zod"),G=s.z.tuple([s.z.number(),s.z.number()]);s.z.tuple([s.z.bigint(),s.z.bigint()]);const fe=s.z.object({width:s.z.number(),height:s.z.number()}),It=s.z.object({signedWidth:s.z.number(),signedHeight:s.z.number()}),Bt=["width","height"];s.z.enum(Bt);const Le=["start","center","end"],At=["signedWidth","signedHeight"];s.z.enum(At);const L=s.z.object({x:s.z.number(),y:s.z.number()}),Pe=s.z.object({clientX:s.z.number(),clientY:s.z.number()}),me=["x","y"],we=s.z.enum(me),He=["top","right","bottom","left"],Ct=s.z.enum(He),J=["left","right"],$e=s.z.enum(J),K=["top","bottom"],ze=s.z.enum(K),ve=["center"],Ne=s.z.enum(ve),Nt=[...He,...ve],Q=s.z.enum(Nt),Rt=s.z.enum(Le),Ze=["first","last"],_t=s.z.enum(Ze),Ye=s.z.object({lower:s.z.number(),upper:s.z.number()}),Lt=s.z.object({lower:s.z.bigint(),upper:s.z.bigint()});s.z.union([Ye,G]);s.z.union([Lt,G]);const Pt=s.z.union([we,Q]),Ht=s.z.union([we,Q,s.z.instanceof(String)]),Me=(t,e)=>typeof t=="bigint"?t-BigInt(e):t-Number(e),ke=(t,e)=>typeof t=="bigint"?t+BigInt(e):t+Number(e),Zt=(t,e,r=1e-4)=>Math.abs(t-e)<r,Yt=t=>{const e=Math.pow(10,Math.floor(Math.log10(t)));return Math.round(t/e)*e},kt=Object.freeze(Object.defineProperty({__proto__:null,add:ke,closeTo:Zt,roundToNearestMagnitude:Yt,sub:Me},Symbol.toStringTag,{value:"Module"})),l=(t,e)=>{const r={};if(typeof t=="number"||typeof t=="bigint")e!=null?(r.lower=t,r.upper=e):(r.lower=typeof t=="bigint"?0n:0,r.upper=t);else if(Array.isArray(t)){if(t.length!==2)throw new Error("bounds: expected array of length 2");[r.lower,r.upper]=t}else return ue(t);return ue(r)},Ft=Object.freeze({lower:0,upper:0}),Wt=Object.freeze({lower:-1/0,upper:1/0}),Xt=Object.freeze({lower:0,upper:1}),Dt=Object.freeze({lower:-1,upper:1}),qt=(t,e)=>{if(t==null&&e==null)return!0;if(t==null||e==null)return!1;const r=l(t),n=l(e);return(r==null?void 0:r.lower)===(n==null?void 0:n.lower)&&(r==null?void 0:r.upper)===(n==null?void 0:n.upper)},ue=t=>t.lower>t.upper?{lower:t.upper,upper:t.lower}:t,Vt=(t,e)=>{const r=l(t);return e<r.lower?r.lower:e>=r.upper?r.upper-(typeof r.upper=="number"?1:1n):e},S=(t,e)=>{const r=l(t);if(typeof e=="number"||typeof e=="bigint")return e>=r.lower&&e<r.upper;const n=l(e);return n.lower>=r.lower&&n.upper<=r.upper},Ut=(t,e)=>{const r=l(t),n=l(e);return r.lower===n.lower?!0:n.upper===r.lower||n.lower===r.upper?!1:S(r,n.upper)||S(r,n.lower)||S(n,r.upper)||S(n,r.lower)},v=t=>{const e=l(t);return e.upper-e.lower},Gt=t=>{const e=l(t);return typeof e.lower=="bigint"?e.lower===0n&&e.upper===0n:e.lower===0&&e.upper===0},Jt=t=>{const e=v(t);return typeof e=="number"?e===0:e===0n},Kt=t=>{const e=l(t);return typeof e.lower=="bigint"?!0:Number.isFinite(e.lower)&&Number.isFinite(e.upper)},Qt=t=>({lower:Math.min(...t.map(e=>l(e).lower)),upper:Math.max(...t.map(e=>l(e).upper))}),er=t=>({lower:Math.max(...t.map(e=>l(e).lower)),upper:Math.min(...t.map(e=>l(e).upper))}),tr=t=>{const e=l(t),r=typeof e.lower=="bigint";return Array.from({length:Number(v(t))},(n,o)=>r?e.lower+BigInt(o):e.lower+o)},ce=(t,e)=>{const r=t.map(i=>l(i)),n=r.findIndex((i,u)=>S(i,e)||e<r[u].lower);if(n===-1)return{index:t.length,position:0};const o=r[n];return S(o,e)?{index:n,position:Number(e-o.lower)}:{index:n,position:0}},ie={removeBefore:0,removeAfter:0,insertInto:0,deleteInBetween:0},Fe=(t,e)=>{const r=t.map(h=>l(h)),n=l(e);if(r.length===0)return ie;const o=ce(r,n.lower),i=ce(r,n.upper);if(o.index===t.length)return{...ie,insertInto:t.length};if(i.index===0)return{...ie,removeAfter:i.position};if(o.index===i.index)return o.position!==0&&i.position!==0?null:{removeAfter:i.position,removeBefore:o.position,insertInto:o.index,deleteInBetween:0};let u=i.index-o.index,c=o.index,y=Me(Number(v(r[o.index])),o.position);return o.position!==0?(u-=1,c+=1):y=0,{removeBefore:y,removeAfter:i.position,insertInto:c,deleteInBetween:u}},rr=(t,e)=>{const r=Fe(t,e),n=t.map(i=>l(i));if(r==null)return n;const o=l(e);return o.lower=ke(o.lower,r.removeBefore),o.upper=Me(o.upper,r.removeAfter),n.splice(r.insertInto,r.deleteInBetween,o),n},nr=(t,e)=>{const r=l(t),n=l(e);return r.upper<=n.lower||r.lower>=n.upper?0:r.lower>=n.lower&&r.upper<=n.upper?1:r.lower<=n.lower&&r.upper>=n.upper?v(n)/v(r):r.lower<=n.lower?(r.upper-n.lower)/v(r):(n.upper-r.lower)/v(r)},or=Object.freeze(Object.defineProperty({__proto__:null,CLIP:Dt,DECIMAL:Xt,INFINITE:Wt,ZERO:Ft,bounds:Ye,buildInsertionPlan:Fe,clamp:Vt,construct:l,contains:S,equals:qt,exposure:nr,findInsertPosition:ce,insert:rr,isFinite:Kt,isZero:Gt,linspace:tr,makeValid:ue,max:Qt,min:er,overlapsWith:Ut,span:v,spanIsZero:Jt},Symbol.toStringTag,{value:"Module"})),We=Pt,z=t=>me.includes(t)?t:K.includes(t)?"y":"x",ir=t=>z(t)==="x"?"y":"x",sr=t=>z(t)==="x"?"width":"height",ur=t=>z(t)==="x"?"left":"top",cr=t=>We.safeParse(t).success,lr=t=>z(t)==="x"?"signedWidth":"signedHeight",Xe=Object.freeze(Object.defineProperty({__proto__:null,construct:z,crude:We,dimension:sr,direction:we,isDirection:cr,location:ur,signedDimension:lr,swap:ir},Symbol.toStringTag,{value:"Module"})),ar=t=>{const e=t.replace(/_[a-z]/g,r=>r[1].toUpperCase());return e.length>1&&e[0]===e[0].toUpperCase()&&e[1]===e[1].toUpperCase()?e:e[0].toLowerCase()+e.slice(1)},De=t=>{const e=(r,n=q)=>{if(typeof r=="string")return t(r);if(Array.isArray(r))return r.map(u=>e(u,n));if(!F(r))return r;n=Ge(n);const o={},i=r;return Object.keys(i).forEach(u=>{let c=i[u];const y=t(u);n.recursive&&(F(c)?ae(c,n.keepTypesOnRecursion)||(c=e(c,n)):n.recursiveInArray&&le(c)&&(c=[...c].map(h=>{let d=h;return F(h)?ae(d,n.keepTypesOnRecursion)||(d=e(h,n)):le(h)&&(d=e({key:h},n).key),d}))),o[y]=c}),o};return e},qe=De(ar),pr=t=>t.replace(/([a-z0-9])([A-Z])/g,(e,r,n)=>`${r}_${n.toLowerCase()}`),Ve=De(pr),Ue=t=>t.length===0?t:t[0].toUpperCase()+t.slice(1),q={recursive:!0,recursiveInArray:!0,keepTypesOnRecursion:[Number,String,Uint8Array]},Ge=(t=q)=>(t.recursive==null?t=q:t.recursiveInArray==null&&(t.recursiveInArray=!1),t),le=t=>t!=null&&Array.isArray(t),F=t=>t!=null&&typeof t=="object"&&!Array.isArray(t),ae=(t,e)=>(e||[]).some(r=>t instanceof r),hr=Object.freeze(Object.defineProperty({__proto__:null,belongToTypes:ae,camelToSnake:Ve,capitalize:Ue,defaultOptions:q,isArrayObject:le,isValidObject:F,snakeToCamel:qe,validateOptions:Ge},Symbol.toStringTag,{value:"Module"})),yr=$e,dr=ze,gr={top:"bottom",right:"left",bottom:"top",left:"right",center:"center"},br={top:"left",right:"top",bottom:"right",left:"bottom",center:"center"},xr=Ht,j=t=>t instanceof String?t:me.includes(t)?t==="x"?"left":"top":t,Je=t=>gr[j(t)],fr=t=>br[j(t)],P=t=>{const e=j(t);return e==="top"||e==="bottom"?"y":"x"},Ke=s.z.object({x:$e.or(Ne),y:ze.or(Ne)}),Qe=s.z.object({x:$e,y:ze}),N=Object.freeze({x:"left",y:"top"}),Oe=Object.freeze({x:"right",y:"top"}),ee=Object.freeze({x:"left",y:"bottom"}),je=Object.freeze({x:"right",y:"bottom"}),te=Object.freeze({x:"center",y:"center"}),et=Object.freeze({x:"center",y:"top"}),tt=Object.freeze({x:"center",y:"bottom"}),rt=Object.freeze({x:"right",y:"center"}),nt=Object.freeze({x:"left",y:"center"}),ot=Object.freeze([nt,rt,et,tt,N,Oe,ee,je,te]),re=(t,e)=>t.x===e.x&&t.y===e.y,it=(t,e)=>{if(typeof e=="object"){let r=!0;return"x"in e&&(t.x===e.x||(r=!1)),"y"in e&&(t.y===e.y||(r=!1)),r}return t.x===e||t.y===e},st=t=>[t.x,t.y],W=t=>P(j(t))==="x",mr=t=>P(j(t))==="y",wr=t=>`${t.x}${Ue(t.y)}`,$r=(t,e)=>{let r,n;if(typeof t=="object"&&"x"in t?(r=t.x,n=t.y):(r=j(t),n=j(e??t)),P(r)===P(n)&&r!=="center"&&n!=="center")throw new Error(`[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`);const o={...te};return r==="center"?W(n)?[o.x,o.y]=[n,r]:[o.x,o.y]=[r,n]:n==="center"?W(r)?[o.x,o.y]=[r,n]:[o.x,o.y]=[n,r]:W(r)?[o.x,o.y]=[r,n]:[o.x,o.y]=[n,r],o},Te=Object.freeze(Object.defineProperty({__proto__:null,BOTTOM_CENTER:tt,BOTTOM_LEFT:ee,BOTTOM_RIGHT:je,CENTER:te,CENTER_LOCATIONS:ve,LEFT_CENTER:nt,RIGHT_CENTER:rt,TOP_CENTER:et,TOP_LEFT:N,TOP_RIGHT:Oe,XY_LOCATIONS:ot,X_LOCATIONS:J,Y_LOCATIONS:K,construct:j,constructXY:$r,corner:Qe,crude:xr,direction:P,isX:W,isY:mr,location:Q,outer:Ct,rotate90:fr,swap:Je,x:yr,xy:Ke,xyCouple:st,xyEquals:re,xyMatches:it,xyToString:wr,y:dr},Symbol.toStringTag,{value:"Module"})),pe=s.z.union([s.z.number(),L,G,fe,It,Pe]),p=(t,e)=>{if(typeof t=="string"){if(e===void 0)throw new Error("The y coordinate must be given.");return t==="x"?{x:e,y:0}:{x:0,y:e}}return typeof t=="number"?{x:t,y:e??t}:Array.isArray(t)?{x:t[0],y:t[1]}:"signedWidth"in t?{x:t.signedWidth,y:t.signedHeight}:"clientX"in t?{x:t.clientX,y:t.clientY}:"width"in t?{x:t.width,y:t.height}:{x:t.x,y:t.y}},m=Object.freeze({x:0,y:0}),ut=Object.freeze({x:1,y:1}),zr=Object.freeze({x:1/0,y:1/0}),vr=Object.freeze({x:NaN,y:NaN}),V=(t,e,r=0)=>{const n=p(t),o=p(e);return r===0?n.x===o.x&&n.y===o.y:Math.abs(n.x-o.x)<=r&&Math.abs(n.y-o.y)<=r},Mr=t=>V(t,m),Or=(t,e,r)=>{const n=p(t),o=p(e,r);return{x:n.x*o.x,y:n.y*o.y}},ct=(t,e)=>{const r=p(t);return{x:r.x+e,y:r.y}},lt=(t,e)=>{const r=p(t);return{x:r.x,y:r.y+e}},U=(t,e,r,...n)=>typeof e=="string"&&typeof r=="number"?e==="x"?ct(t,r):lt(t,r):[t,e,r??m,...n].reduce((o,i)=>{const u=p(i);return{x:o.x+u.x,y:o.y+u.y}},m),jr=(t,e,r)=>{const n=p(t);return e==="x"?{x:r,y:n.y}:{x:n.x,y:r}},Tr=(t,e)=>{const r=p(t),n=p(e);return Math.sqrt((r.x-n.x)**2+(r.y-n.y)**2)},Sr=(t,e)=>{const r=p(t),n=p(e);return{x:n.x-r.x,y:n.y-r.y}},Er=t=>{const e=p(t);return Number.isNaN(e.x)||Number.isNaN(e.y)},Ir=t=>{const e=p(t);return Number.isFinite(e.x)&&Number.isFinite(e.y)},Br=t=>{const e=p(t);return[e.x,e.y]},Ar=t=>{const e=p(t);return{left:e.x,top:e.y}},he=(t,e=0)=>{const r=p(t);return{x:Number(r.x.toFixed(e)),y:Number(r.y.toFixed(e))}},Cr=Object.freeze(Object.defineProperty({__proto__:null,INFINITY:zr,NAN:vr,ONE:ut,ZERO:m,clientXY:Pe,construct:p,couple:Br,crudeZ:pe,css:Ar,distance:Tr,equals:V,isFinite:Ir,isNan:Er,isZero:Mr,scale:Or,set:jr,translate:U,translateX:ct,translateY:lt,translation:Sr,truncate:he,xy:L},Symbol.toStringTag,{value:"Module"})),H=s.z.union([s.z.number(),s.z.string()]);s.z.object({top:H,left:H,width:H,height:H});s.z.object({left:s.z.number(),top:s.z.number(),right:s.z.number(),bottom:s.z.number()});const Nr=s.z.object({one:L,two:L,root:Qe}),at={one:m,two:m,root:N},Rr={one:m,two:ut,root:ee},pt=(t,e)=>({one:t.one,two:t.two,root:e??t.root}),a=(t,e,r=0,n=0,o)=>{const i={one:{...m},two:{...m},root:o??N};if(typeof t=="number"){if(typeof e!="number")throw new Error("Box constructor called with invalid arguments");return i.one={x:t,y:e},i.two={x:i.one.x+r,y:i.one.y+n},i}return"one"in t&&"two"in t&&"root"in t?{...t,root:o??t.root}:("getBoundingClientRect"in t&&(t=t.getBoundingClientRect()),"left"in t?(i.one={x:t.left,y:t.top},i.two={x:t.right,y:t.bottom},i):(i.one=t,e==null?i.two={x:i.one.x+r,y:i.one.y+n}:typeof e=="number"?i.two={x:i.one.x+e,y:i.one.y+r}:"width"in e?i.two={x:i.one.x+e.width,y:i.one.y+e.height}:"signedWidth"in e?i.two={x:i.one.x+e.signedWidth,y:i.one.y+e.signedHeight}:i.two=e,i))},_r=(t,e,r)=>{const n=a(t);if(typeof e=="string"){if(r==null)throw new Error("Invalid arguments for resize");const o=z(e);return a(n.one,void 0,o==="x"?r:w(n),o==="y"?r:$(n),n.root)}return a(n.one,e,void 0,void 0,n.root)},Lr=(t,e,r=!0)=>{const n=a(t);let o=(i,u)=>i<u;return r&&(o=(i,u)=>i<=u),"one"in e?o(M(n),M(e))&&o(E(e),E(n))&&o(O(n),O(e))&&o(I(e),I(n)):o(M(n),e.x)&&o(e.x,E(n))&&o(O(n),e.y)&&o(e.y,I(n))},Pr=(t,e)=>V(t.one,e.one)&&V(t.two,e.two)&&re(t.root,e.root),ht=t=>({width:w(t),height:$(t)}),Hr=t=>({signedWidth:ne(t),signedHeight:oe(t)}),Zr=t=>({top:O(t),left:M(t),width:w(t),height:$(t)}),Se=(t,e,r=!1)=>{const n=z(e)==="y"?oe(t):ne(t);return r?n:Math.abs(n)},R=(t,e)=>{const r=a(t);return{x:e.x==="center"?ye(r).x:B(r,e.x),y:e.y==="center"?ye(r).y:B(r,e.y)}},B=(t,e)=>{const r=a(t),n=st(r.root).includes(e)?Math.min:Math.max;return J.includes(e)?n(r.one.x,r.two.x):n(r.one.y,r.two.y)},Yr=t=>t.one.x===t.two.x&&t.one.y===t.two.y,w=t=>Se(t,"x"),$=t=>Se(t,"y"),ne=t=>{const e=a(t);return e.two.x-e.one.x},oe=t=>{const e=a(t);return e.two.y-e.one.y},yt=t=>R(t,N),kr=t=>R(t,Oe),Fr=t=>R(t,ee),Wr=t=>R(t,je),E=t=>B(t,"right"),I=t=>B(t,"bottom"),M=t=>B(t,"left"),O=t=>B(t,"top"),ye=t=>U(yt(t),{x:ne(t)/2,y:oe(t)/2}),Ee=t=>{const e=a(t);return e.root.x==="left"?M(e):E(e)},Ie=t=>{const e=a(t);return e.root.y==="top"?O(e):I(e)},Xr=t=>({x:Ee(t),y:Ie(t)}),X=t=>{const e=a(t);return{lower:e.one.x,upper:e.two.x}},D=t=>{const e=a(t);return{lower:e.one.y,upper:e.two.y}},Dr=(t,e)=>pt(t,e),qr=(t,e)=>{const r=a(t),n=J.includes(e)?"x":K.includes(e)?"y":null;if(n===null)throw new Error(`Invalid location: ${Te}`);const o=e==="top"||e==="left"?Math.min:Math.max,i={...r.one},u={...r.two};return i[n]=o(r.one[n],r.two[n]),u[n]=o(r.one[n],r.two[n]),[i,u]},Vr=(t,e)=>{const r=a(t),n=a(e),o=Ee(n)+(w(n)-w(r))/2,i=Ie(n)+($(n)-$(r))/2;return a({x:o,y:i},ht(r))},dt=t=>typeof t!="object"||t==null?!1:"one"in t&&"two"in t&&"root"in t,Ur=t=>w(t)/$(t),Gr=(t,e,r)=>{if(typeof e=="string"){if(r==null)throw new Error("Undefined amount passed into box.translate");const o=z(e);e=p(o,r)}const n=a(t);return a(U(n.one,e),U(n.two,e),void 0,void 0,n.root)},gt=(t,e)=>{const r=Math.max(M(t),M(e)),n=Math.max(O(t),O(e)),o=Math.min(E(t),E(e)),i=Math.min(I(t),I(e));return r>o||n>i?at:a({x:r,y:n},{x:o,y:i},void 0,void 0,t.root)},bt=t=>w(t)*$(t),Jr=(t,e)=>{const r=a(t);return a(he(r.one,e),he(r.two,e),void 0,void 0,r.root)},xt=(t,e,r,n,o,i)=>{const u={x:t,y:e},c={x:t+r,y:e+n};return o.x!==i.x&&(o.x==="center"?(u.x-=r/2,c.x-=r/2):(u.x-=r,c.x-=r)),o.y!==i.y&&(o.y==="center"?(u.y-=n/2,c.y-=n/2):(u.y-=n,c.y-=n)),a(u,c,void 0,void 0,i)},Kr=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:Rr,ZERO:at,area:bt,areaIsZero:Yr,aspect:Ur,bottom:I,bottomLeft:Fr,bottomRight:Wr,box:Nr,center:ye,construct:a,constructWithAlternateRoot:xt,contains:Lr,copy:pt,css:Zr,dim:Se,dims:ht,edgePoints:qr,equals:Pr,height:$,intersection:gt,isBox:dt,left:M,loc:B,positionInCenter:Vr,reRoot:Dr,resize:_r,right:E,root:Xr,signedDims:Hr,signedHeight:oe,signedWidth:ne,top:O,topLeft:yt,topRight:kr,translate:Gr,truncate:Jr,width:w,x:Ee,xBounds:X,xyLoc:R,y:Ie,yBounds:D},Symbol.toStringTag,{value:"Module"})),ft=s.z.object({signedWidth:s.z.number(),signedHeight:s.z.number()}),Qr=s.z.union([fe,ft,L,G]),en={width:0,height:0},tn={width:1,height:1},g=(t,e)=>typeof t=="number"?{width:t,height:e??t}:Array.isArray(t)?{width:t[0],height:t[1]}:"x"in t?{width:t.x,height:t.y}:"signedWidth"in t?{width:t.signedWidth,height:t.signedHeight}:{...t},rn=(t,e)=>{if(e==null)return!1;const r=g(t),n=g(e);return r.width===n.width&&r.height===n.height},nn=t=>{const e=g(t);return{width:e.height,height:e.width}},on=t=>{const e=g(t);return`0 0 ${e.width} ${e.height}`},sn=t=>{const e=g(t);return[e.width,e.height]},un=t=>({width:Math.max(...t.map(e=>g(e).width)),height:Math.max(...t.map(e=>g(e).height))}),cn=t=>({width:Math.min(...t.map(e=>g(e).width)),height:Math.min(...t.map(e=>g(e).height))}),ln=(t,e)=>{const r=g(t);return{width:r.width*e,height:r.height*e}},an=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:tn,ZERO:en,construct:g,couple:sn,crude:Qr,dimensions:fe,equals:rn,max:un,min:cn,scale:ln,signed:ft,svgViewBox:on,swap:nn},Symbol.toStringTag,{value:"Module"}));var pn=Object.defineProperty,hn=(t,e,r)=>e in t?pn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,f=(t,e,r)=>hn(t,typeof e!="symbol"?e+"":e,r);const mt=(t,e,r)=>e!==void 0&&t<e?e:r!==void 0&&t>r?r:t,yn=s.z.object({offset:pe,scale:pe}),dn=t=>(e,r,n,o)=>r==="dimension"?[e,n]:[e,o?n-t:n+t],gn=t=>(e,r,n,o)=>[e,o?n/t:n*t],bn=t=>(e,r,n)=>{if(e===null)return[t,n];const{lower:o,upper:i}=e,{lower:u,upper:c}=t,y=i-o,h=c-u;if(r==="dimension")return[t,n*(h/y)];const d=(n-o)*(h/y)+u;return[t,d]},xn=t=>(e,r,n)=>[t,n],fn=()=>(t,e,r)=>{if(t===null)throw new Error("cannot invert without bounds");if(e==="dimension")return[t,r];const{lower:n,upper:o}=t;return[t,o-(r-n)]},mn=t=>(e,r,n)=>{const{lower:o,upper:i}=t;return n=mt(n,o,i),[e,n]},de=class _{constructor(){f(this,"ops",[]),f(this,"currBounds",null),f(this,"currType",null),f(this,"reversed",!1),this.ops=[]}static translate(e){return new _().translate(e)}static magnify(e){return new _().magnify(e)}static scale(e,r){return new _().scale(e,r)}translate(e){const r=this.new(),n=dn(e);return n.type="translate",r.ops.push(n),r}magnify(e){const r=this.new(),n=gn(e);return n.type="magnify",r.ops.push(n),r}scale(e,r){const n=l(e,r),o=this.new(),i=bn(n);return i.type="scale",o.ops.push(i),o}clamp(e,r){const n=l(e,r),o=this.new(),i=mn(n);return i.type="clamp",o.ops.push(i),o}reBound(e,r){const n=l(e,r),o=this.new(),i=xn(n);return i.type="re-bound",o.ops.push(i),o}invert(){const e=fn();e.type="invert";const r=this.new();return r.ops.push(e),r}pos(e){return this.exec("position",e)}dim(e){return this.exec("dimension",e)}new(){const e=new _;return e.ops=this.ops.slice(),e.reversed=this.reversed,e}exec(e,r){return this.currBounds=null,this.ops.reduce(([n,o],i)=>i(n,e,o,this.reversed),[null,r])[1]}reverse(){const e=this.new();e.ops.reverse();const r=[];return e.ops.forEach((n,o)=>{if(n.type==="scale"||r.some(([u,c])=>o>=u&&o<=c))return;const i=e.ops.findIndex((u,c)=>u.type==="scale"&&c>o);i!==-1&&r.push([o,i])}),r.forEach(([n,o])=>{const i=e.ops.slice(n,o);i.unshift(e.ops[o]),e.ops.splice(n,o-n+1,...i)}),e.reversed=!e.reversed,e}};f(de,"IDENTITY",new de);let ge=de;const wn=t=>({scale:{x:t.x.dim(1),y:t.y.dim(1)},offset:{x:t.x.pos(0),y:t.y.pos(0)}}),be=class x{constructor(e=new ge,r=new ge,n=null){f(this,"x"),f(this,"y"),f(this,"currRoot"),this.x=e,this.y=r,this.currRoot=n}static translate(e,r){return new x().translate(e,r)}static translateX(e){return new x().translateX(e)}static translateY(e){return new x().translateY(e)}static clamp(e){return new x().clamp(e)}static magnify(e){return new x().magnify(e)}static scale(e){return new x().scale(e)}static reBound(e){return new x().reBound(e)}translate(e,r){const n=p(e,r),o=this.copy();return o.x=this.x.translate(n.x),o.y=this.y.translate(n.y),o}translateX(e){const r=this.copy();return r.x=this.x.translate(e),r}translateY(e){const r=this.copy();return r.y=this.y.translate(e),r}magnify(e){const r=this.copy();return r.x=this.x.magnify(e.x),r.y=this.y.magnify(e.y),r}scale(e){const r=this.copy();if(dt(e)){const n=this.currRoot;return r.currRoot=e.root,n!=null&&!re(n,e.root)&&(n.x!==e.root.x&&(r.x=r.x.invert()),n.y!==e.root.y&&(r.y=r.y.invert())),r.x=r.x.scale(X(e)),r.y=r.y.scale(D(e)),r}return r.x=r.x.scale(e.width),r.y=r.y.scale(e.height),r}reBound(e){const r=this.copy();return r.x=this.x.reBound(X(e)),r.y=this.y.reBound(D(e)),r}clamp(e){const r=this.copy();return r.x=this.x.clamp(X(e)),r.y=this.y.clamp(D(e)),r}copy(){const e=new x;return e.currRoot=this.currRoot,e.x=this.x,e.y=this.y,e}reverse(){const e=this.copy();return e.x=this.x.reverse(),e.y=this.y.reverse(),e}pos(e){return{x:this.x.pos(e.x),y:this.y.pos(e.y)}}box(e){return a(this.pos(e.one),this.pos(e.two),0,0,this.currRoot??e.root)}};f(be,"IDENTITY",new be);let $n=be;const zn=Object.freeze(Object.defineProperty({__proto__:null,Scale:ge,XY:$n,crudeXYTransform:yn,xyScaleToTransform:wn},Symbol.toStringTag,{value:"Module"}));function wt(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=wt(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function $t(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=wt(t))&&(n&&(n+=" "),n+=e);return n}const vn=$t,Re="-",_e="__",Z="--",Be=t=>{const e=(...r)=>vn(...r);return e.B=r=>t+Re+r,e.E=r=>t+_e+r,e.M=r=>t+Z+r,e.BM=(r,n)=>e.B(r)+Z+n,e.BE=(r,n)=>e.B(r)+_e+n,e.BEM=(r,n,o)=>e.BE(r,n)+Z+o,e.extend=r=>Be(e.B(r)),e.var=r=>Z+t+Re+r,e},Mn=/^#?([0-9a-f]{6}|[0-9a-f]{8})$/i,xe=s.z.string().regex(Mn),C=s.z.number().min(0).max(255),On=s.z.number().min(0).max(1),Ae=s.z.tuple([C,C,C,On]),zt=s.z.tuple([C,C,C]),vt=s.z.object({rgba255:Ae}),Mt=t=>t==null?void 0:new T(t).hex,Ot=t=>{if(t==null)return;const e=T.z.safeParse(t);if(e.success)return e.data.rgbaCSS;if(typeof t=="string")return t;throw e.error},b=class b{constructor(e,r=1){A(this,"rgba255");if(typeof e=="string")this.rgba255=b.fromHex(e,r);else if(Array.isArray(e)){if(e.length<3||e.length>4)throw new Error(`Invalid color: [${e.join(", ")}]`);this.rgba255=e.length===3?[...e,r??1]:e}else this.rgba255=e.rgba255}equals(e){if(e==null)return!1;const r=new b(e);return this.rgba255.every((n,o)=>n===r.rgba255[o])}get hex(){const[e,r,n,o]=this.rgba255;return`#${Y(e)}${Y(r)}${Y(n)}${o===1?"":Y(o*255)}`}get rgbaCSS(){const[e,r,n,o]=this.rgba255;return`rgba(${e}, ${r}, ${n}, ${o})`}get rgbCSS(){return`rgb(${this.rgbString})`}get rgbString(){const[e,r,n]=this.rgba255;return`${e}, ${r}, ${n}`}get rgba1(){return[...this.rgb1,this.rgba255[3]]}get rgb1(){return[this.rgba255[0]/255,this.rgba255[1]/255,this.rgba255[2]/255]}get r(){return this.rgba255[0]}get g(){return this.rgba255[1]}get b(){return this.rgba255[2]}get a(){return this.rgba255[3]}get isZero(){return this.equals(Ce)}get hsla(){return Tn(this.rgba255)}setAlpha(e){const[r,n,o]=this.rgba255;if(e>100)throw new Error(`Color opacity must be between 0 and 100, got ${e}`);return e>1&&(e=e/100),new b([r,n,o,e])}get luminance(){const[e,r,n]=this.rgb1.map(o=>o<=.03928?o/12.92:((o+.055)/1.055)**2.4);return Number((.2126*e+.7152*r+.0722*n).toFixed(3))}contrast(e){const r=new b(e),n=this.luminance,o=r.luminance;return(Math.max(n,o)+.5)/(Math.min(n,o)+.5)}pickByContrast(...e){if(e.length===0)throw new Error("[Color.pickByContrast] - must provide at least one color");const[r]=e.map(n=>new b(n)).sort((n,o)=>this.contrast(o)-this.contrast(n));return r}get isDark(){return this.luminance<.5}get isLight(){return!this.isDark}static fromHex(e,r=1){if(!xe.safeParse(e).success)throw new Error(`Invalid hex color: ${e}`);return e=jn(e),[k(e,0),k(e,2),k(e,4),e.length===8?k(e,6)/255:r]}};A(b,"z",s.z.union([xe,Ae,zt,s.z.instanceof(b),vt]).transform(e=>new b(e)));let T=b;const Ce=new T([0,0,0,0]),Y=t=>Math.floor(t).toString(16).padStart(2,"0"),k=(t,e)=>parseInt(t.slice(e,e+2),16),jn=t=>t.startsWith("#")?t.slice(1):t,jt=t=>{let[e,r,n]=t;const o=t[3];e/=360,r/=100,n/=100;let i,u,c;if(r===0)i=u=c=n;else{const y=n<.5?n*(1+r):n+r-n*r,h=2*n-y;i=se(h,y,e+1/3),u=se(h,y,e),c=se(h,y,e-1/3)}return[Math.round(i*255),Math.round(u*255),Math.round(c*255),o]},se=(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),Tn=t=>{let[e,r,n]=t;const o=t[3];e/=255,r/=255,n/=255,e/=255,r/=255,n/=255;const i=Math.max(e,r,n),u=Math.min(e,r,n);let c,y,h=(i+u)/2;if(i===u)c=y=0;else{const d=i-u;y=h>.5?d/(2-i-u):d/(i+u),i===e?c=(r-n)/d+(r<n?6:0):i===r?c=(n-e)/d+2:c=(e-r)/d+4,c/=6}return c*=360,y*=100,h*=100,[Math.round(c),Math.round(y),Math.round(h),o]},Tt=s.z.union([xe,Ae,s.z.instanceof(T),s.z.string(),zt,vt]),Sn=Object.freeze(Object.defineProperty({__proto__:null,Color:T,ZERO:Ce,crudeZ:Tt,cssString:Ot,fromHSLA:jt,toHex:Mt},Symbol.toStringTag,{value:"Module"}));class En{constructor(e=""){A(this,"rows",[]);A(this,"columns",[]);A(this,"prefix");this.prefix=e}row(e,r,n){const{prefix:o}=this;return this.rows.push({startLabel:o+e,endLabel:o+r,size:n}),this}col(e,r,n){const{prefix:o}=this;return this.columns.push({startLabel:o+e,endLabel:o+r,size:n}),this}build(){return{display:"grid",gridTemplateRows:this.rows.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.rows.length-1?"]":"",n}).join(" "),gridTemplateColumns:this.columns.map((e,r)=>{let n=r===0?"[":"";return n+=`${e.startLabel}] ${e.size}${typeof e.size=="number"?"px":""} [${e.endLabel}`,n+=r===this.columns.length-1?"]":"",n}).join(" ")}}}const In=(t,e)=>Object.entries(e).forEach(([r,n])=>n!=null&&t.style.setProperty(r,`${n}`)),Bn=(t,e)=>Array.from(t.style).forEach(r=>{r.startsWith(e)&&t.style.removeProperty(r)}),An=t=>{const e=Be(t);return e.visible=r=>e.M(r?"visible":"hidden"),e.expanded=r=>e.M(r?"expanded":"collapsed"),e.loc=r=>e.M(Te.construct(r)),e.disabled=r=>r===!0&&e.M("disabled"),e.align=r=>e.M(r),e.dir=r=>r!=null&&e.M(Xe.construct(r)),e.size=r=>typeof r=="string"&&e.M(r),e.sharp=r=>r!==!1&&e.M("sharp"),e.rounded=r=>r!==!1&&e.M("rounded"),e.bordered=r=>typeof r=="boolean"?r&&e.M("bordered"):r!=null?e.M("bordered-"+r):e.M("bordered"),e.selected=r=>r&&e.M("selected"),e.altColor=r=>r&&e.M("altColor"),e.editable=r=>r&&e.M("editable"),e.noSelect=e.M("no-select"),e.noWrap=r=>r&&e.M("no-wrap"),e.applyVars=In,e.removeVars=Bn,e.newGridBuilder=r=>new En(r),e.dropRegion=r=>r&&e.B("haul-drop-region"),e.px=r=>`${r}px`,e.inheritDims=(r=!0)=>r&&e.M("inherit-dims"),e.shade=r=>e.M(`shade-${r}`),e.shadeVar=r=>`var(--${t}-gray-l${r})`,e},Cn=An("pluto");exports.$=re;exports.A=Je;exports.B=it;exports.C=kt;exports.CSS=Cn;exports.Color=T;exports.D=Rt;exports.J=Te;exports.M=ot;exports.R=or;exports.T=qe;exports.T$1=N;exports.To=Kr;exports.ZERO=Ce;exports._=hr;exports._$1=an;exports.c=Q;exports.c$1=a;exports.clsx=$t;exports.color=Sn;exports.crudeZ=Tt;exports.cssString=Ot;exports.d=Ze;exports.fo=bt;exports.fromHSLA=jt;exports.g=Xe;exports.g$1=R;exports.j=mt;exports.j$1=_t;exports.k=zn;exports.k$1=Ke;exports.l=$;exports.newBEM=Be;exports.o=l;exports.po=xt;exports.q=Cr;exports.t=z;exports.toHex=Mt;exports.u=Le;exports.u$1=w;exports.v=Ve;exports.wo=gt;exports.y=te;
|
|
@@ -164,7 +164,7 @@ const wt = i.union([xe, $e]), $t = i.union([xe, $e, i.instanceof(String)]), ve =
|
|
|
164
164
|
}), o;
|
|
165
165
|
};
|
|
166
166
|
return e;
|
|
167
|
-
}, Dt = Ze(kt), Vt = (t) => t.replace(/([a-z0-9])([A-Z])/g, (e, r, n) => `${r}_${n.toLowerCase()}`), qt = Ze(Vt), Ye = (t) => t[0].toUpperCase() + t.slice(1), V = {
|
|
167
|
+
}, Dt = Ze(kt), Vt = (t) => t.replace(/([a-z0-9])([A-Z])/g, (e, r, n) => `${r}_${n.toLowerCase()}`), qt = Ze(Vt), Ye = (t) => t.length === 0 ? t : t[0].toUpperCase() + t.slice(1), V = {
|
|
168
168
|
recursive: !0,
|
|
169
169
|
recursiveInArray: !0,
|
|
170
170
|
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
@@ -1020,21 +1020,21 @@ export {
|
|
|
1020
1020
|
Dt as e,
|
|
1021
1021
|
bn as f,
|
|
1022
1022
|
Xt as g,
|
|
1023
|
-
|
|
1024
|
-
|
|
1023
|
+
Sn as h,
|
|
1024
|
+
cn as i,
|
|
1025
1025
|
Kr as j,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1026
|
+
zn as k,
|
|
1027
|
+
Nn as l,
|
|
1028
|
+
ft as m,
|
|
1029
1029
|
it as n,
|
|
1030
1030
|
c as o,
|
|
1031
|
-
|
|
1031
|
+
Tn as p,
|
|
1032
1032
|
Bn as q,
|
|
1033
|
-
|
|
1034
|
-
|
|
1033
|
+
rr as r,
|
|
1034
|
+
$e as s,
|
|
1035
1035
|
yn as t,
|
|
1036
1036
|
dt as u,
|
|
1037
|
-
|
|
1037
|
+
qt as v,
|
|
1038
1038
|
T as w,
|
|
1039
1039
|
l as x,
|
|
1040
1040
|
je as y,
|
package/dist/css.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./css-Cc1vb61S.cjs"),t=require("./units-C59nowP2.cjs");exports.CSS=e.CSS;exports.newBEM=e.newBEM;exports.createHexOpacityVariants=t.createHexOpacityVariants;exports.unitProperty=t.unitProperty;
|
package/dist/css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, n as t } from "./css-
|
|
2
|
-
import { c as s, u as n } from "./units-
|
|
1
|
+
import { C as e, n as t } from "./css-CiSR0WsA.js";
|
|
2
|
+
import { c as s, u as n } from "./units-BAK8qzqy.js";
|
|
3
3
|
export {
|
|
4
4
|
e as CSS,
|
|
5
5
|
s as createHexOpacityVariants,
|
package/dist/dropdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-B8cAGDWx.cjs");exports.Dropdown=e.Dropdown;
|
package/dist/dropdown.js
CHANGED
package/dist/ether.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./aggregator-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./aggregator-CoVqjgd_.cjs"),n=require("./css-Cc1vb61S.cjs"),e=require("./LinePlot-B51qhAb1.cjs"),l=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontString:t.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),a=Object.freeze(Object.defineProperty({__proto__:null,Context:e.Context,Controller:e.Controller,Eraser:e.Eraser,GLProgram:e.GLProgram,Loop:e.Loop,REASON_DATA:e.REASON_DATA,REASON_LAYOUT:e.REASON_LAYOUT,REASON_TOOL:e.REASON_TOOL},Symbol.toStringTag,{value:"Module"})),i=()=>{const r=new t.l((R,S)=>postMessage(R,S));onmessage=r.handle.bind(r);const o={...e.REGISTRY,...e.REGISTRY$1,...e.REGISTRY$2,...e.REGISTRY$3,...e.REGISTRY$4,...e.REGISTRY$5,...e.REGISTRY$6,...e.REGISTRY$7,...e.REGISTRY$8,...e.REGISTRY$9,...e.REGISTRY$10,...e.REGISTRY$11,...e.REGISTRY$12,...t.REGISTRY$1,...e.REGISTRY$13,...e.REGISTRY$14,...t.REGISTRY,...e.REGISTRY$15,...e.REGISTRY$16,...e.REGISTRY$17};t.render({worker:r.route("vis"),registry:o})},T=Object.freeze(Object.defineProperty({__proto__:null,render:i},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY$8,XAxis:e.XAxis,YAxis:e.YAxis,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.color=n.color;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.synnax=e.provider;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=s;exports.pluto=T;exports.render=a;exports.theming=l;
|
package/dist/ether.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as R, R as a, S as n, a as S, b as l, f as T, t as E, u as
|
|
2
|
-
import { d as
|
|
3
|
-
import { d as
|
|
4
|
-
import { C as I, a as _, E as c, G as p, L as u, R as d, b as m, c as f, d as g, e as b, f as x, g as A, h as O, i as y, j, k as
|
|
5
|
-
import {
|
|
1
|
+
import { P as R, R as a, S as n, a as S, b as l, f as T, t as E, u as Y, l as i, c as G, r as $ } from "./aggregator-BpQMir30.js";
|
|
2
|
+
import { d as se } from "./aggregator-BpQMir30.js";
|
|
3
|
+
import { d as oe } from "./css-CiSR0WsA.js";
|
|
4
|
+
import { C as I, a as _, E as c, G as p, L as u, R as d, b as m, c as f, d as g, e as b, f as x, g as A, h as O, i as y, j, k as v, l as s, m as N, n as P, o as L, p as h, q as M, r as z, s as X, t as w, u as C, F as Z, X as k, Y as D, H, I as q, J as B } from "./LinePlot-CtIZPK_F.js";
|
|
5
|
+
import { x as Re, D as ne, z as Se, A as le, v as Te, w as Ee, y as Ye, B as ie } from "./LinePlot-CtIZPK_F.js";
|
|
6
6
|
const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
7
|
__proto__: null,
|
|
8
8
|
Provider: R,
|
|
@@ -12,8 +12,8 @@ const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12
12
|
SYNNAX_THEMES: l,
|
|
13
13
|
fontString: T,
|
|
14
14
|
themeZ: E,
|
|
15
|
-
use:
|
|
16
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
15
|
+
use: Y
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" })), Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
17
|
__proto__: null,
|
|
18
18
|
Context: I,
|
|
19
19
|
Controller: _,
|
|
@@ -23,8 +23,8 @@ const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23
23
|
REASON_DATA: d,
|
|
24
24
|
REASON_LAYOUT: m,
|
|
25
25
|
REASON_TOOL: f
|
|
26
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
27
|
-
const e = new
|
|
26
|
+
}, Symbol.toStringTag, { value: "Module" })), F = () => {
|
|
27
|
+
const e = new i((o, r) => postMessage(o, r));
|
|
28
28
|
onmessage = e.handle.bind(e);
|
|
29
29
|
const t = {
|
|
30
30
|
...g,
|
|
@@ -34,49 +34,50 @@ const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
34
34
|
...O,
|
|
35
35
|
...y,
|
|
36
36
|
...j,
|
|
37
|
-
...s,
|
|
38
37
|
...v,
|
|
38
|
+
...s,
|
|
39
39
|
...N,
|
|
40
40
|
...P,
|
|
41
41
|
...L,
|
|
42
|
-
...G,
|
|
43
42
|
...h,
|
|
43
|
+
...G,
|
|
44
44
|
...M,
|
|
45
|
-
...a,
|
|
46
45
|
...z,
|
|
46
|
+
...a,
|
|
47
47
|
...X,
|
|
48
|
-
...w
|
|
48
|
+
...w,
|
|
49
|
+
...C
|
|
49
50
|
};
|
|
50
51
|
$({
|
|
51
52
|
worker: e.route("vis"),
|
|
52
53
|
registry: t
|
|
53
54
|
});
|
|
54
|
-
},
|
|
55
|
+
}, V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
55
56
|
__proto__: null,
|
|
56
|
-
render:
|
|
57
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
57
|
+
render: F
|
|
58
|
+
}, Symbol.toStringTag, { value: "Module" })), W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
58
59
|
__proto__: null,
|
|
59
|
-
LinePlot:
|
|
60
|
+
LinePlot: Z,
|
|
60
61
|
REGISTRY: s,
|
|
61
|
-
XAxis:
|
|
62
|
+
XAxis: k,
|
|
62
63
|
YAxis: D,
|
|
63
64
|
linePlotStateZ: H,
|
|
64
|
-
xAxisStateZ:
|
|
65
|
-
yAxisStateZ:
|
|
65
|
+
xAxisStateZ: q,
|
|
66
|
+
yAxisStateZ: B
|
|
66
67
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
se as aether,
|
|
70
|
+
Re as canvas,
|
|
71
|
+
oe as color,
|
|
72
|
+
ne as diagram,
|
|
73
|
+
W as lineplot,
|
|
74
|
+
Se as measure,
|
|
75
|
+
V as pluto,
|
|
76
|
+
Q as render,
|
|
77
|
+
le as rule,
|
|
78
|
+
Te as synnax,
|
|
79
|
+
Ee as telem,
|
|
79
80
|
U as theming,
|
|
80
|
-
|
|
81
|
+
Ye as tooltip,
|
|
81
82
|
ie as value
|
|
82
83
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Toggle-
|
|
1
|
+
"use strict";const e=require("./Toggle-B8cAGDWx.cjs"),o=require("./Link-TUMI2ARc.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Icon:e.Icon,Link:o.Link,Toggle:e.Toggle,ToggleIcon:e.ToggleIcon},Symbol.toStringTag,{value:"Module"}));exports.external=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./aggregator-
|
|
1
|
+
"use strict";const r=require("./aggregator-CoVqjgd_.cjs"),e=require("./Toggle-B8cAGDWx.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,Switch:e.Switch,get Theming(){return t},themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:e.useTypography},Symbol.toStringTag,{value:"Module"}));exports.external=t;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ak as T, f as D, al as N, am as O, an as w, ao as I, ap as z, aq as A, ar as B, as as C, at as _ } from "./Toggle-
|
|
1
|
+
import { ak as T, f as D, al as N, am as O, an as w, ao as I, ap as z, aq as A, ar as B, as as C, at as _ } from "./Toggle-3WohopP9.js";
|
|
2
2
|
import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import { m as S, w as k } from "./aggregator-
|
|
3
|
+
import { m as S, w as k } from "./aggregator-BpQMir30.js";
|
|
4
4
|
import { useState as q } from "react";
|
|
5
|
-
import { C as i, g as E } from "./css-
|
|
6
|
-
import { S as y } from "./Pack-
|
|
5
|
+
import { C as i, g as E } from "./css-CiSR0WsA.js";
|
|
6
|
+
import { S as y } from "./Pack-l3j3YWpE.js";
|
|
7
7
|
const M = ({
|
|
8
8
|
value: s,
|
|
9
9
|
onChange: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-CoVqjgd_.cjs"),c=require("react"),S=require("./Pack-BgzS2BHo.cjs"),a=require("./Toggle-B8cAGDWx.cjs"),o=require("./css-Cc1vb61S.cjs"),p=c.createContext({divided:!1,level:"h1"}),l=()=>c.useContext(p),j=({children:s,className:r,level:e="h1",divided:n=!1,...t})=>i.jsxRuntimeExports.jsx(p.Provider,{value:{level:e,divided:n},children:i.jsxRuntimeExports.jsx(S.Space,{el:"header",direction:"x",justify:"spaceBetween",className:o.CSS(o.CSS.B("header"),o.CSS.bordered("bottom"),n&&o.CSS.BM("header","divided"),r),...t,children:s})}),m=({children:s=[]})=>{const{level:r,divided:e}=l();return i.jsxRuntimeExports.jsx(S.Space,{direction:"x",size:"small",align:"center",className:o.CSS.BE("header","actions"),children:d.A(s).map((n,t)=>i.jsxRuntimeExports.jsx(h,{index:t,level:r,divided:e,children:n},t))})},h=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,...C}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...C},s)}return i.jsxRuntimeExports.jsxs(c.Fragment,{children:[n&&i.jsxRuntimeExports.jsx(a.Divider,{}),t]},s)},v=({children:s="",className:r,onClick:e,...n})=>{const{level:t}=l();return i.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:d.LevelComponentSizes[t],onClick:e,className:o.CSS(o.CSS.B("header-button-title"),r),sharp:!0,...n,children:s})},E=({className:s,level:r,...e})=>{const{level:n,divided:t}=l();return i.jsxRuntimeExports.jsx(a.WithIcon,{className:o.CSS(o.CSS.BE("header","text"),s),level:r??n,divided:t,size:1.5,...e})},R=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:E,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=R;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Y as p, f as y, U as d, e as g, Z as b, _ as h, $ as C, a0 as j, a1 as T, a2 as K, a3 as R, a4 as _, a5 as k, a6 as L, a7 as v, a8 as A, a9 as O, aa as Z, ab as U, ac as Y, ad as w, ae as H, af as P, ag as N, ah as z, ai as F, aj as I, z as $ } from "./Toggle-
|
|
1
|
+
import { Y as p, f as y, U as d, e as g, Z as b, _ as h, $ as C, a0 as j, a1 as T, a2 as K, a3 as R, a4 as _, a5 as k, a6 as L, a7 as v, a8 as A, a9 as O, aa as Z, ab as U, ac as Y, ad as w, ae as H, af as P, ag as N, ah as z, ai as F, aj as I, z as $ } from "./Toggle-3WohopP9.js";
|
|
2
2
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useState as q, useEffect as X, useRef as x, useCallback as M } from "react";
|
|
4
|
-
import "./aggregator-
|
|
5
|
-
import { q as l, T as f } from "./css-
|
|
6
|
-
import "./Pack-
|
|
7
|
-
import { K as B } from "./Keyboard-
|
|
4
|
+
import "./aggregator-BpQMir30.js";
|
|
5
|
+
import { q as l, T as f } from "./css-CiSR0WsA.js";
|
|
6
|
+
import "./Pack-l3j3YWpE.js";
|
|
7
|
+
import { K as B } from "./Keyboard-BpXlLck_.js";
|
|
8
8
|
const G = (e) => {
|
|
9
9
|
const { listen: t } = p(), [n, c] = q([]);
|
|
10
10
|
return X(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./Toggle-
|
|
1
|
+
"use strict";const t=require("./Toggle-B8cAGDWx.cjs"),s=require("./jsx-runtime-Cek9Ww4S.cjs"),j=require("./aggregator-CoVqjgd_.cjs"),y=require("react"),l=require("./css-Cc1vb61S.cjs"),E=require("./Pack-BgzS2BHo.cjs"),C=({value:r,onChange:n,onBlur:e,onlyChangeOnBlur:a,...d})=>{const[m,c]=y.useState(null),x=(i,p=!1)=>{let u=i.toString();c(u);let o=new j.m(i,"UTC");u.length<23&&(u+=".000"),o=o.add(BigInt(j.m.now().date().getTimezoneOffset()-o.date().getTimezoneOffset())*j.w.MINUTE.valueOf());let T=!1;try{T=o.fString("ISO","local").slice(0,-1)===u}catch(D){console.error(D)}T&&!a&&(n(Number(o.valueOf())),c(null)),p&&(T&&n(Number(o.valueOf())),c(null))},g=i=>{x(i.target.value,!0),c(null),e==null||e(i)},S=i=>{a&&i.key==="Enter"&&i.currentTarget.blur()},f=new j.m(r,"UTC").fString("ISO","local").slice(0,-1);return s.jsxRuntimeExports.jsx(t.Text$1,{type:"datetime-local",onBlur:g,required:!1,onKeyDown:S,value:m??f,onChange:x,...d})},R=({className:r,variant:n="error",...e})=>s.jsxRuntimeExports.jsx(t.Text,{className:l.CSS(l.CSS.B("input-help-text"),l.CSS.BM("input-help-text",n),r),level:"small",...e}),b=({className:r,required:n=!1,children:e,...a})=>s.jsxRuntimeExports.jsxs("label",{className:l.CSS(l.CSS.B("input-label"),r),...a,children:[e," ",n&&s.jsxRuntimeExports.jsx("span",{className:l.CSS.B("required-indicator"),children:"*"})]}),v=(r,n="x")=>r??(l.g.construct(n)==="y"?"stretch":"center"),h=({label:r,showLabel:n=!0,helpText:e,direction:a="y",className:d,children:m,required:c,align:x,size:g="small",padHelpText:S=!1,helpTextVariant:f,showHelpText:i=!0,...p})=>{let u;return i===!1&&n===!1?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:m}):(a==="x"?u=s.jsxRuntimeExports.jsxs(E.Space,{direction:"y",size:"small",children:[m,(S||e!=null&&e.length>0)&&s.jsxRuntimeExports.jsx(R,{variant:f,children:e})]}):u=s.jsxRuntimeExports.jsxs(E.Space,{direction:"y",size:1/3,children:[m,(S||e!=null&&e.length>0)&&s.jsxRuntimeExports.jsx(R,{variant:f,children:e})]}),s.jsxRuntimeExports.jsxs(E.Space,{className:l.CSS(l.CSS.B("input-item"),d),direction:a,size:g,align:v(x,a),...p,children:[n&&s.jsxRuntimeExports.jsx(b,{required:c,children:r}),u]}))},N=Object.freeze(Object.defineProperty({__proto__:null,Date:t.Date,DateTime:C,DragButton:t.DragButton,HelpText:R,Item:h,Label:b,Numeric:t.Numeric,Switch:t.Switch$1,Text:t.Text$1,TextArea:t.TextArea,Time:t.Time,combineDateAndTimeValue:t.combineDateAndTimeValue,useDate:t.useDate,useTime:t.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=h;exports.external=N;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-
|
|
1
|
+
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-l3j3YWpE.js";
|
|
2
2
|
const S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
ALIGNMENTS: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Pack-
|
|
1
|
+
"use strict";const e=require("./Pack-BgzS2BHo.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:e.Center,CoreCenter:e.CoreCenter,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:e.Pack,Space:e.Space,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as e, a as t, b as a, t as r } from "./aggregator-
|
|
2
|
-
import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-
|
|
1
|
+
import { S as e, a as t, b as a, t as r } from "./aggregator-BpQMir30.js";
|
|
2
|
+
import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-3WohopP9.js";
|
|
3
3
|
const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Provider: s,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const S=require("./aggregator-
|
|
1
|
+
"use strict";const S=require("./aggregator-CoVqjgd_.cjs"),e=require("./Toggle-B8cAGDWx.cjs"),A=require("./Keyboard-X_-hpfg9.cjs"),o=require("./jsx-runtime-Cek9Ww4S.cjs"),L=require("react"),R=require("./Pack-BgzS2BHo.cjs"),M=require("./Animated-DbOFofnA.cjs"),y=require("./css-Cc1vb61S.cjs"),P=require("./List-Cgx098Ae.cjs"),z=[],B=({data:t,emptyContent:n,value:s,onChange:l,allowMultiple:u,allowNone:d,hideColumnHeader:i=!1,columns:E=z,visible:x,itemHeight:m=e.Column.itemHeight,listItem:p=e.componentRenderProp(e.Column.Item),replaceOnSingle:r,omit:b,autoSelectOnNone:C,trigger:f,extraDialogContent:h,variant:a="connected",...k})=>{let j=o.jsxRuntimeExports.jsxs(e.Hover,{disabled:!x,children:[h,o.jsxRuntimeExports.jsx(e.Column.Header,{hide:i||p!=null,columns:E,children:o.jsxRuntimeExports.jsx(e.Core.Virtual,{itemHeight:m,children:p})})]});return a!=="connected"&&(j=o.jsxRuntimeExports.jsx(R.Pack,{direction:"y",borderShade:4,className:y.CSS.B("select-dialog-content"),children:j})),o.jsxRuntimeExports.jsx(P.List,{data:t,emptyContent:n,omit:b,children:o.jsxRuntimeExports.jsx(e.Selector,{value:s,onChange:l,allowMultiple:u,allowNone:d,replaceOnSingle:r,autoSelectOnNone:C,children:o.jsxRuntimeExports.jsxs(e.Dialog,{visible:x,className:y.CSS.B("select"),keepMounted:!1,variant:a,...k,children:[f,j]})})})},g=({children:t=N,value:n,onChange:s,entryRenderKey:l="key",allowNone:u=!1,allowMultiple:d=!1,data:i,replaceOnSingle:E,className:x,...m})=>{const{onSelect:p}=e.useSelect({allowMultiple:d,allowNone:u,replaceOnSingle:E,data:i,value:n,onChange:s});return o.jsxRuntimeExports.jsx(R.Pack,{borderShade:4,className:y.CSS(y.CSS.B("select-button"),x),...m,children:i.map(r=>t({key:r.key,onClick:()=>p(r.key),selected:r.key===n,entry:r,title:r[l]}))})},N=({entry:t,onClick:n,selected:s,title:l})=>o.jsxRuntimeExports.jsx(e.Button,{onClick:n,variant:s?"filled":"outlined",children:l},t.key),D=({selected:t,renderKey:n,toggle:s,visible:l,children:u,...d})=>o.jsxRuntimeExports.jsx(e.Button,{className:y.CSS.B("select-dropdown-button"),onClick:s,variant:"outlined",endIcon:o.jsxRuntimeExports.jsx(M.Animated,{enabledLoc:"bottom",disabledLoc:"left",enabled:l}),...d,children:u??(t==null?void 0:t[n])}),T=e.componentRenderProp(D),_=({data:t,value:n,columns:s=[],children:l=T,entryRenderKey:u="key",allowNone:d=!1,onChange:i,disabled:E,hideColumnHeader:x=!0,variant:m,dropdownVariant:p,...r})=>{const{close:b,visible:C,toggle:f}=e.use$1(),[h,a]=L.useState((t==null?void 0:t.find(c=>c.key===n))??null);L.useEffect(()=>{a((t==null?void 0:t.find(c=>c.key===n))??null)},[t,n]);const k=L.useCallback((c,v)=>{if(!(Array.isArray(c)||c===null)){if(b(),c==null)return a(null),i(n);a(v.entries[0]),i(c)}},[i,n,b,a]),j={selected:h,renderKey:u,toggle:f,visible:C};return m!=null&&(j.variant=m),o.jsxRuntimeExports.jsx(B,{close:b,data:t,visible:C,value:n,onChange:k,allowMultiple:!1,allowNone:d,columns:s,hideColumnHeader:x,variant:p,trigger:o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:l(j)}),...r})},w=[{key:"h2",label:"XL"},{key:"h3",label:"L"},{key:"h4",label:"M"},{key:"p",label:"S"},{key:"small",label:"XS"}],K=({key:t,entry:n,onClick:s,selected:l})=>o.jsxRuntimeExports.jsx(e.Button,{variant:l?"filled":"outlined",onClick:s,children:n.label},t),q=({children:t=K,...n})=>o.jsxRuntimeExports.jsx(g,{...n,data:w,children:t}),O=Object.freeze(Object.defineProperty({__proto__:null,ComponentSizeLevels:S.ComponentSizeLevels,CoreDateTime:e.CoreDateTime,DateTime:e.DateTime,Editable:e.Editable,Keyboard:A.Keyboard,LEVELS:S.LEVELS,LevelComponentSizes:S.LevelComponentSizes,Link:e.Link,MaybeEditable:e.MaybeEditable,SelectLevel:q,Symbols:e.Symbols,Text:e.Text,WithIcon:e.WithIcon,asyncEdit:e.asyncEdit,dimensions:S.dimensions,edit:e.edit,evalColor:e.evalColor,formatChildren:e.formatChildren,levelZ:S.levelZ,specZ:S.specZ},Symbol.toStringTag,{value:"Module"}));exports.BaseButton=D;exports.Button=g;exports.Core=B;exports.DropdownButton=_;exports.SelectLevel=q;exports.defaultButton=T;exports.external=O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./Toggle-
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./Toggle-B8cAGDWx.cjs"),S=require("react"),g=require("./Pack-BgzS2BHo.cjs"),u=require("./css-Cc1vb61S.cjs"),z=require("./aggregator-CoVqjgd_.cjs"),m=require("zod"),T=(l="",s=[])=>{var t;if(s.length!==0)return s.find(n=>n.tabKey===l)!=null?l:(t=s[s.length-1])==null?void 0:t.tabKey},q=(l,s,t)=>{if(s=s.trim(),s.length===0)return t;const n=t.find(e=>e.tabKey===l);return n==null||n.name===s?t:t.map(e=>e.tabKey===l?{...e,name:s}:e)},y=({tabs:l,content:s,selected:t,onSelect:n})=>{var a;const[e,r]=z.usePurePassthrough({initial:t??((a=l[0])==null?void 0:a.tabKey)??"",value:t,onChange:n}),c=d.useSyncedRef(t??e),i=S.useCallback(x=>{r(x),c.current==null&&(n==null||n(x))},[e,n]);return{tabs:l,selected:e,content:s,onSelect:i}},k=S.createContext({tabs:[]}),B=()=>S.useContext(k),N=({id:l,content:s,children:t,onSelect:n,selected:e,selectedAltColor:r,closable:c,tabs:i,onClose:a,onDragStart:x,onDragEnd:h,onCreate:C,onRename:E,emptyContent:R,className:b,onDragOver:p,onDrop:v,size:j="medium",direction:P="y",...M})=>o.jsxRuntimeExports.jsx(g.Space,{id:l,empty:!0,className:u.CSS(u.CSS.B("tabs"),b),onDragOver:p,onDrop:v,direction:P,...M,children:o.jsxRuntimeExports.jsxs(k.Provider,{value:{tabs:i,emptyContent:R,selected:e,closable:c,content:t??s,onSelect:n,onClose:a,onDragStart:x,onDragEnd:h,onRename:E,onCreate:C,onDrop:v},children:[o.jsxRuntimeExports.jsx(w,{size:j,direction:u.g.swap(P),altColor:r}),o.jsxRuntimeExports.jsx(_,{})]})}),Z=k.Provider,_=()=>{const{tabs:l,selected:s,content:t,emptyContent:n,onSelect:e}=B();let r=null;const c=l.find(i=>i.tabKey===s);return s==null||c==null?n??null:(t!=null?typeof t=="function"?r=t(c):r=t:c.content!=null&&(r=c.content),o.jsxRuntimeExports.jsx("div",{className:u.CSS.B("tabs-content"),onClick:()=>e==null?void 0:e(s),children:r}))},f="tabs-selector",w=({className:l,altColor:s=!1,size:t="medium",direction:n="x",...e})=>{const{tabs:r,selected:c,onSelect:i,onClose:a,closable:x,onDragEnd:h,onDragStart:C,onDrop:E,onRename:R,onCreate:b}=B();return o.jsxRuntimeExports.jsxs(g.Space,{className:u.CSS(u.CSS.B(f),u.CSS.size(t),l),align:"center",justify:"spaceBetween",onDrop:E,empty:!0,direction:n,...e,children:[o.jsxRuntimeExports.jsx(g.Space,{direction:n,className:u.CSS.BE(f,"tabs"),empty:!0,children:r.map(p=>o.jsxRuntimeExports.jsx(L,{selected:c,altColor:s,onSelect:i,onClose:a,onDragStart:C,onDragEnd:h,onRename:R,closable:p.closable??x,size:t,...p},p.tabKey))}),b!=null&&o.jsxRuntimeExports.jsx(g.Space,{className:u.CSS.BE(f,"actions"),children:o.jsxRuntimeExports.jsx(d.Icon,{size:t,sharp:!0,onClick:b,children:o.jsxRuntimeExports.jsx(d.St.Add,{})})})]})},L=({selected:l,altColor:s=!1,onSelect:t,onClose:n,tabKey:e,name:r,onDragStart:c,onDragEnd:i,onRename:a,closable:x=!0,icon:h,size:C,editable:E=!0})=>{const R=S.useCallback(j=>c==null?void 0:c(j,{tabKey:e,name:r}),[c,e,r]),b=S.useCallback(j=>i==null?void 0:i(j,{tabKey:e,name:r}),[i,e,r]),p=S.useCallback(j=>{j.stopPropagation(),n==null||n(e)},[n,e]),v=S.useCallback(()=>t==null?void 0:t(e),[t,e]);return o.jsxRuntimeExports.jsxs(g.Pack,{size:C,id:e,className:u.CSS(u.CSS.BE(f,"btn"),a==null&&u.CSS.BEM(f,"btn","uneditable"),u.CSS.selected(l===e),u.CSS.altColor(s),x&&n!=null&&u.CSS.BEM(f,"btn","closable")),draggable:!0,direction:"x",justify:"center",align:"center",onClick:v,onDragStart:R,onDragEnd:b,bordered:!1,rounded:!1,children:[o.jsxRuntimeExports.jsx(O,{name:r,tabKey:e,onRename:a,icon:h,editable:E,level:z.ComponentSizeLevels[C]}),x&&n!=null&&o.jsxRuntimeExports.jsx(d.Icon,{onClick:p,children:o.jsxRuntimeExports.jsx(d.St.Close,{"aria-label":"pluto-tabs__close"})})]})},O=({onRename:l,name:s,tabKey:t,icon:n,editable:e=!0,...r})=>l==null||!e?n!=null?o.jsxRuntimeExports.jsx(d.WithIcon,{startIcon:n,noWrap:!0,...r,children:s}):o.jsxRuntimeExports.jsx(d.Text,{noWrap:!0,...r,children:s}):o.jsxRuntimeExports.jsx(d.Editable,{onChange:c=>l(t,c),value:s,noWrap:!0,...r}),I=m.z.object({tabKey:m.z.string(),name:m.z.string(),closable:m.z.boolean().optional(),icon:m.z.unknown().optional(),editable:m.z.boolean().optional()}),W=I.extend({content:m.z.unknown().optional()}),A=Object.freeze(Object.defineProperty({__proto__:null,Content:_,Provider:Z,Selector:w,Tabs:N,TabsContext:k,rename:q,resetSelection:T,specZ:I,tabZ:W,useStatic:y,useTabsContext:B},Symbol.toStringTag,{value:"Module"}));exports.Tabs=N;exports.external=A;exports.rename=q;exports.resetSelection=T;exports.tabZ=W;exports.useStatic=y;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as o, I as e, T as t, d as r } from "./Toggle-
|
|
2
|
-
import { L as a } from "./Link-
|
|
1
|
+
import { B as o, I as e, T as t, d as r } from "./Toggle-3WohopP9.js";
|
|
2
|
+
import { L as a } from "./Link-CrB722xh.js";
|
|
3
3
|
const s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Button: o,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { w as he, au as Ae, ak as Oe, K as ke, av as Le, A as Re, i as Ce, J as je, aw as ve, ax as $e, E as Ne, ay as Fe, az as Te, aA as Pe, aB as De, aC as Ke, L as We, aD as ze, aE as He, v as Ve, aF as Be, aG as Ge, aH as Ue } from "./Toggle-
|
|
1
|
+
import { w as he, au as Ae, ak as Oe, K as ke, av as Le, A as Re, i as Ce, J as je, aw as ve, ax as $e, E as Ne, ay as Fe, az as Te, aA as Pe, aB as De, aC as Ke, L as We, aD as ze, aE as He, v as Ve, aF as Be, aG as Ge, aH as Ue } from "./Toggle-3WohopP9.js";
|
|
2
2
|
import { j as Ye } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useCallback as Je } from "react";
|
|
4
|
-
import { k as Qe, j as Xe } from "./aggregator-
|
|
5
|
-
import "./css-
|
|
6
|
-
import "./Pack-
|
|
7
|
-
import { L as Ze } from "./List-
|
|
4
|
+
import { k as Qe, j as Xe } from "./aggregator-BpQMir30.js";
|
|
5
|
+
import "./css-CiSR0WsA.js";
|
|
6
|
+
import "./Pack-l3j3YWpE.js";
|
|
7
|
+
import { L as Ze } from "./List-BI_89AyO.js";
|
|
8
8
|
const K = Symbol(), le = Symbol(), J = Symbol();
|
|
9
9
|
let qe = (t, e) => new Proxy(t, e);
|
|
10
10
|
const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), Q = (t) => t && (te.has(t) ? te.get(t) : W(t) === Object.prototype || W(t) === Array.prototype), se = (t) => typeof t == "object" && t !== null, re = /* @__PURE__ */ new WeakMap(), ue = (t) => t[J] || t, fe = (t, e, s) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { y as S, I as _, e as k, W as M, f as L, Q as O } from "./Toggle-
|
|
2
|
+
import { y as S, I as _, e as k, W as M, f as L, Q as O } from "./Toggle-3WohopP9.js";
|
|
3
3
|
import { createContext as R, useCallback as v, useContext as Z } from "react";
|
|
4
|
-
import { S as P, P as z } from "./Pack-
|
|
5
|
-
import { C as c, g as A } from "./css-
|
|
6
|
-
import { j as Q, C as q } from "./aggregator-
|
|
4
|
+
import { S as P, P as z } from "./Pack-l3j3YWpE.js";
|
|
5
|
+
import { C as c, g as A } from "./css-CiSR0WsA.js";
|
|
6
|
+
import { j as Q, C as q } from "./aggregator-BpQMir30.js";
|
|
7
7
|
import { z as p } from "zod";
|
|
8
8
|
const F = (l = "", s = []) => {
|
|
9
9
|
var n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const m=require("./Toggle-CGbCK-dz.cjs"),ke=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),he=require("./aggregator-C5NNOlCt.cjs");require("./css-C4GOlJsi.cjs");require("./Pack-BNnq0Pnk.cjs");const ve=require("./List-DFXYScV1.cjs"),W=Symbol(),ue=Symbol(),X=Symbol();let je=(t,e)=>new Proxy(t,e);const z=Object.getPrototypeOf,se=new WeakMap,J=t=>t&&(se.has(t)?se.get(t):z(t)===Object.prototype||z(t)===Array.prototype),re=t=>typeof t=="object"&&t!==null,ne=new WeakMap,fe=t=>t[X]||t,de=(t,e,s)=>{if(!J(t))return t;const r=fe(t),n=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let i=s&&s.get(r);return i&&i[1].f===n||(i=((c,o)=>{const a={f:o};let h=!1;const l=(d,g)=>{if(!h){let p=a.a.get(c);p||(p=new Set,a.a.set(c,p)),g&&p.has(W)||p.add(d)}},u={get:(d,g)=>g===X?c:(l(g),de(d[g],a.a,a.c)),has:(d,g)=>g===ue?(h=!0,a.a.delete(c),!0):(l(g),g in d),getOwnPropertyDescriptor:(d,g)=>(l(g,!0),Object.getOwnPropertyDescriptor(d,g)),ownKeys:d=>(l(W),Reflect.ownKeys(d))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,n),i[1].p=je(n?(c=>{let o=ne.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(z(c),a)}ne.set(c,o)}return o})(r):r,i[0]),s&&s.set(r,i)),i[1].a=e,i[1].c=s,i[1].p},Te=(t,e)=>{const s=Reflect.ownKeys(t),r=Reflect.ownKeys(e);return s.length!==r.length||s.some((n,i)=>n!==r[i])},ge=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!re(t)||!re(e))return!0;const n=s.get(fe(t));if(!n)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let i=null;for(const c of n){const o=c===W?Te(t,e):ge(t[c],e[c],s,r);if(o!==!0&&o!==!1||(i=o),i)break}return i===null&&(i=!0),r&&r.set(t,{n:e,g:i}),i},Fe=t=>!!J(t)&&ue in t,Z=t=>J(t)&&t[X]||null,H=t=>typeof t=="object"&&t!==null,pe=(t,e)=>{if(!H(t))return t;const s=Z(t);return s!==null?(Fe(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const i=pe(n,e);Object.is(i,n)||(t[r]=i)})),t)},F=(t,e,s)=>{if(!H(t)||!H(e))return;const r=s.get(Z(e)||e);r&&r.forEach(n=>{F(t[n],e[n],s)})},Ne=(t,e)=>{var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,i=[],c=new WeakMap,o=new WeakMap;return a=>{const h=Z(a)||a,l=c.get(h);if(l)return F(a,l.o,l.a),l.r;for(let M=0;M<n;M+=1){const y=i[(r+M)%n];if(!y)break;if(!ge(y.o,a,y.a,new WeakMap))return c.set(h,y),F(a,y.o,y.a),y.r}const u=new WeakMap,d=de(a,u,o),g=pe(t(d),new Set);F(a,a,u);const p={o:a,r:g,a:u};return r=(r-1+n)%n,i[r]=p,c.set(h,p),g}},me=(t,e)=>he.w$1.RUNTIME==="browser"?Ne(t,e):t;function I(t){return Array.isArray?Array.isArray(t):xe(t)==="[object Array]"}const De=1/0;function Pe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-De?"-0":e}function Ke(t){return t==null?"":Pe(t)}function _(t){return typeof t=="string"}function Me(t){return typeof t=="number"}function We(t){return t===!0||t===!1||ze(t)&&xe(t)=="[object Boolean]"}function ye(t){return typeof t=="object"}function ze(t){return ye(t)&&t!==null}function x(t){return t!=null}function K(t){return!t.trim().length}function xe(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const He="Incorrect 'index' type",Ue=t=>`Invalid value for key ${t}`,Ve=t=>`Pattern length exceeds max of ${t}.`,Be=t=>`Missing ${t} property in key`,Ge=t=>`Property 'weight' in key '${t}' must be a positive integer`,ie=Object.prototype.hasOwnProperty;class Ye{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=Se(r);this._keys.push(n),this._keyMap[n.id]=n,s+=n.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Se(t){let e=null,s=null,r=null,n=1,i=null;if(_(t)||I(t))r=t,e=ce(t),s=U(t);else{if(!ie.call(t,"name"))throw new Error(Be("name"));const c=t.name;if(r=c,ie.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(Ge(c));e=ce(c),s=U(c),i=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:i}}function ce(t){return I(t)?t:t.split(".")}function U(t){return I(t)?t.join("."):t}function Qe(t,e){let s=[],r=!1;const n=(i,c,o)=>{if(x(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!x(h))return;if(o===c.length-1&&(_(h)||Me(h)||We(h)))s.push(Ke(h));else if(I(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)n(h[l],c,o+1)}else c.length&&n(h,c,o+1)}};return n(t,_(e)?e.split("."):e,0),r?s:s[0]}const Xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Je={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Ze={location:0,threshold:.6,distance:100},qe={useExtendedSearch:!1,getFn:Qe,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...Je,...Xe,...Ze,...qe};const et=/[^ ]+/g;function tt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const i=n.match(et).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(i,o),o},clear(){s.clear()}}}class q{constructor({getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){this.norm=tt(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,_(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();_(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!x(e)||K(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((n,i)=>{let c=n.getFn?n.getFn(e):this.getFn(e,n.path);if(x(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(x(l))if(_(l)&&!K(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else I(l)&&l.forEach((u,d)=>{a.push({nestedArrIndex:d,value:u})})}r.$[i]=o}else if(_(c)&&!K(c)){let o={v:c,n:this.norm.get(c)};r.$[i]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ee(t,e,{getFn:s=f.getFn,fieldNormWeight:r=f.fieldNormWeight}={}){const n=new q({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(Se)),n.setSources(e),n.create(),n}function st(t,{getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const{keys:r,records:n}=t,i=new q({getFn:e,fieldNormWeight:s});return i.setKeys(r),i.setIndexRecords(n),i}function T(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=f.distance,ignoreLocation:i=f.ignoreLocation}={}){const c=e/t.length;if(i)return c;const o=Math.abs(r-s);return n?c+o/n:o?1:c}function rt(t=[],e=f.minMatchCharLength){let s=[],r=-1,n=-1,i=0;for(let c=t.length;i<c;i+=1){let o=t[i];o&&r===-1?r=i:!o&&r!==-1&&(n=i-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[i-1]&&i-r>=e&&s.push([r,i-1]),s}const L=32;function nt(t,e,s,{location:r=f.location,distance:n=f.distance,threshold:i=f.threshold,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,includeMatches:a=f.includeMatches,ignoreLocation:h=f.ignoreLocation}={}){if(e.length>L)throw new Error(Ve(L));const l=e.length,u=t.length,d=Math.max(0,Math.min(r,u));let g=i,p=d;const M=o>1||a,y=M?Array(u):[];let b;for(;(b=t.indexOf(e,p))>-1;){let S=T(e,{currentLocation:b,expectedLocation:d,distance:n,ignoreLocation:h});if(g=Math.min(S,g),p=b+l,M){let w=0;for(;w<l;)y[b+w]=1,w+=1}}p=-1;let R=[],C=1,v=l+u;const Re=1<<l-1;for(let S=0;S<l;S+=1){let w=0,A=v;for(;w<A;)T(e,{errors:S,currentLocation:d+A,expectedLocation:d,distance:n,ignoreLocation:h})<=g?w=A:v=A,A=Math.floor((v-w)/2+w);v=A;let ee=Math.max(1,d-A+1),P=c?u:Math.min(d+A,u)+l,k=Array(P+2);k[P+1]=(1<<S)-1;for(let E=P;E>=ee;E-=1){let j=E-1,te=s[t.charAt(j)];if(M&&(y[j]=+!!te),k[E]=(k[E+1]<<1|1)&te,S&&(k[E]|=(R[E+1]|R[E])<<1|1|R[E+1]),k[E]&Re&&(C=T(e,{errors:S,currentLocation:j,expectedLocation:d,distance:n,ignoreLocation:h}),C<=g)){if(g=C,p=j,p<=d)break;ee=Math.max(1,2*d-p)}}if(T(e,{errors:S+1,currentLocation:d,expectedLocation:d,distance:n,ignoreLocation:h})>g)break;R=k}const D={isMatch:p>=0,score:Math.max(.001,C)};if(M){const S=rt(y,o);S.length?a&&(D.indices=S):D.isMatch=!1}return D}function it(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const n=t.charAt(s);e[n]=(e[n]||0)|1<<r-s-1}return e}class _e{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:it(d),startIndex:g})},u=this.pattern.length;if(u>L){let d=0;const g=u%L,p=u-g;for(;d<p;)l(this.pattern.substr(d,L),d),d+=L;if(g){const M=u-L;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:n,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:y})=>{const{isMatch:b,score:R,indices:C}=nt(e,p,M,{location:n+y,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});b&&(d=!0),u+=R,b&&C&&(l=[...l,...C])});let g={isMatch:d,score:d?u/this.chunks.length:1};return d&&r&&(g.indices=l),g}}class O{constructor(e){this.pattern=e}static isMultiMatch(e){return oe(e,this.multiRegex)}static isSingleMatch(e){return oe(e,this.singleRegex)}search(){}}function oe(t,e){const s=t.match(e);return s?s[1]:null}class ct extends O{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class ot extends O{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class at extends O{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class lt extends O{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class ht extends O{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class ut extends O{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class be extends O{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){super(e),this._bitapSearch=new _e(e,{location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ie extends O{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const n=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+i,n.push([r,s-1]);const c=!!n.length;return{isMatch:c,score:c?0:1,indices:n}}}const V=[ct,Ie,at,lt,ut,ht,ot,be],ae=V.length,ft=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dt="|";function gt(t,e={}){return t.split(dt).map(s=>{let r=s.trim().split(ft).filter(i=>i&&!!i.trim()),n=[];for(let i=0,c=r.length;i<c;i+=1){const o=r[i];let a=!1,h=-1;for(;!a&&++h<ae;){const l=V[h];let u=l.isMultiMatch(o);u&&(n.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ae;){const l=V[h];let u=l.isSingleMatch(o);if(u){n.push(new l(u,e));break}}}return n})}const pt=new Set([be.type,Ie.type]);class mt{constructor(e,{isCaseSensitive:s=f.isCaseSensitive,includeMatches:r=f.includeMatches,minMatchCharLength:n=f.minMatchCharLength,ignoreLocation:i=f.ignoreLocation,findAllMatches:c=f.findAllMatches,location:o=f.location,threshold:a=f.threshold,distance:h=f.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:n,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=gt(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let u=0,d=l.length;u<d;u+=1){const g=l[u],{isMatch:p,indices:M,score:y}=g.search(e);if(p){if(i+=1,o+=y,r){const b=g.constructor.type;pt.has(b)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let u={isMatch:!0,score:o/i};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const B=[];function Mt(...t){B.push(...t)}function G(t,e){for(let s=0,r=B.length;s<r;s+=1){let n=B[s];if(n.condition(t,e))return new n(t,e)}return new _e(t,e)}const N={AND:"$and",OR:"$or"},Y={PATH:"$path",PATTERN:"$val"},Q=t=>!!(t[N.AND]||t[N.OR]),yt=t=>!!t[Y.PATH],xt=t=>!I(t)&&ye(t)&&!Q(t),le=t=>({[N.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function we(t,e,{auto:s=!0}={}){const r=n=>{let i=Object.keys(n);const c=yt(n);if(!c&&i.length>1&&!Q(n))return r(le(n));if(xt(n)){const a=c?n[Y.PATH]:i[0],h=c?n[Y.PATTERN]:n[a];if(!_(h))throw new Error(Ue(a));const l={keyId:U(a),pattern:h};return s&&(l.searcher=G(h,e)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=n[a];I(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return Q(t)||(t=le(t)),r(t)}function St(t,{ignoreFieldNorm:e=f.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:i,score:c})=>{const o=n?n.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:i))}),s.score=r})}function Et(t,e){const s=t.matches;e.matches=[],x(s)&&s.forEach(r=>{if(!x(r.indices)||!r.indices.length)return;const{indices:n,value:i}=r;let c={indices:n,value:i};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function _t(t,e){e.score=t.score}function bt(t,e,{includeMatches:s=f.includeMatches,includeScore:r=f.includeScore}={}){const n=[];return s&&n.push(Et),r&&n.push(_t),t.map(i=>{const{idx:c}=i,o={item:e[c],refIndex:c};return n.length&&n.forEach(a=>{a(i,o)}),o})}class ${constructor(e,s={},r){this.options={...f,...s},this.options.useExtendedSearch,this._keyStore=new Ye(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof q))throw new Error(He);this._myIndex=s||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,n=this._docs.length;r<n;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:n,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=_(e)?_(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return St(a,{ignoreFieldNorm:o}),i&&a.sort(c),Me(s)&&s>-1&&(a=a.slice(0,s)),bt(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=G(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&n.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),n}_searchLogical(e){const s=we(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,d=o.children.length;u<d;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===N.AND)return[]}return l},n=this._myIndex.records,i={},c=[];return n.forEach(({$:o,i:a})=>{if(x(o)){let h=r(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=G(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:c,i:o})=>{if(!x(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:e,value:s,searcher:r}){if(!x(s))return[];let n=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=r.searchIn(i);a&&n.push({score:h,key:e,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(i);o&&n.push({score:a,key:e,value:i,norm:c,indices:h})}return n}}$.version="7.0.0";$.createIndex=Ee;$.parseIndex=st;$.config=f;$.parseQuery=we;Mt(mt);const It={threshold:.3},Ae=t=>e=>{const s=new $(e,{keys:Object.keys(e[0]),...It,...t});return{type:"fuse",page:(r,n)=>e.slice(r*n,(r+1)*n),search:r=>s.search(r).map(({item:n})=>n),retrieve:r=>e.filter(n=>r.includes(n.key))}},wt=Ae(),Oe=({term:t,searcher:e=wt})=>me(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),Ce=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,i]=he.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=m.useDataUtilContext(),a=m.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{i(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Oe({term:l})))},[i,r]);return{value:n,onChange:h}},Le=({children:t=s=>ke.jsxRuntimeExports.jsx(m.Text$1,{placeholder:"Filter",...s}),...e})=>t(Ce(e)),At=Object.freeze(Object.defineProperty({__proto__:null,Column:m.Column,ColumnContext:m.ColumnContext,Core:m.Core,DataProvider:m.DataProvider,Filter:Le,Hover:m.Hover,ItemFrame:m.ItemFrame,List:ve.List,Search:m.Search,Selector:m.Selector,selectValueIsZero:m.selectValueIsZero,useDataContext:m.useDataContext,useDataUtilContext:m.useDataUtilContext,useFilter:Ce,useGetTransformedData:m.useGetTransformedData,useHoverContext:m.useHoverContext,useSearch:m.useSearch,useSelect:m.useSelect,useSelection:m.useSelection,useSelectionContext:m.useSelectionContext,useSelectionUtils:m.useSelectionUtils,useSetSourceData:m.useSetSourceData,useSourceData:m.useSourceData,useTransformedData:m.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Le;exports.createFilterTransform=Oe;exports.external=At;exports.fuseFilter=Ae;exports.proxyMemo=me;
|
|
1
|
+
"use strict";const m=require("./Toggle-B8cAGDWx.cjs"),ke=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),he=require("./aggregator-CoVqjgd_.cjs");require("./css-Cc1vb61S.cjs");require("./Pack-BgzS2BHo.cjs");const ve=require("./List-Cgx098Ae.cjs"),W=Symbol(),ue=Symbol(),X=Symbol();let je=(t,e)=>new Proxy(t,e);const z=Object.getPrototypeOf,se=new WeakMap,J=t=>t&&(se.has(t)?se.get(t):z(t)===Object.prototype||z(t)===Array.prototype),re=t=>typeof t=="object"&&t!==null,ne=new WeakMap,fe=t=>t[X]||t,de=(t,e,s)=>{if(!J(t))return t;const r=fe(t),n=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let i=s&&s.get(r);return i&&i[1].f===n||(i=((c,o)=>{const a={f:o};let h=!1;const l=(d,g)=>{if(!h){let p=a.a.get(c);p||(p=new Set,a.a.set(c,p)),g&&p.has(W)||p.add(d)}},u={get:(d,g)=>g===X?c:(l(g),de(d[g],a.a,a.c)),has:(d,g)=>g===ue?(h=!0,a.a.delete(c),!0):(l(g),g in d),getOwnPropertyDescriptor:(d,g)=>(l(g,!0),Object.getOwnPropertyDescriptor(d,g)),ownKeys:d=>(l(W),Reflect.ownKeys(d))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,n),i[1].p=je(n?(c=>{let o=ne.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(z(c),a)}ne.set(c,o)}return o})(r):r,i[0]),s&&s.set(r,i)),i[1].a=e,i[1].c=s,i[1].p},Te=(t,e)=>{const s=Reflect.ownKeys(t),r=Reflect.ownKeys(e);return s.length!==r.length||s.some((n,i)=>n!==r[i])},ge=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!re(t)||!re(e))return!0;const n=s.get(fe(t));if(!n)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let i=null;for(const c of n){const o=c===W?Te(t,e):ge(t[c],e[c],s,r);if(o!==!0&&o!==!1||(i=o),i)break}return i===null&&(i=!0),r&&r.set(t,{n:e,g:i}),i},Fe=t=>!!J(t)&&ue in t,Z=t=>J(t)&&t[X]||null,H=t=>typeof t=="object"&&t!==null,pe=(t,e)=>{if(!H(t))return t;const s=Z(t);return s!==null?(Fe(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const i=pe(n,e);Object.is(i,n)||(t[r]=i)})),t)},F=(t,e,s)=>{if(!H(t)||!H(e))return;const r=s.get(Z(e)||e);r&&r.forEach(n=>{F(t[n],e[n],s)})},Ne=(t,e)=>{var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,i=[],c=new WeakMap,o=new WeakMap;return a=>{const h=Z(a)||a,l=c.get(h);if(l)return F(a,l.o,l.a),l.r;for(let M=0;M<n;M+=1){const y=i[(r+M)%n];if(!y)break;if(!ge(y.o,a,y.a,new WeakMap))return c.set(h,y),F(a,y.o,y.a),y.r}const u=new WeakMap,d=de(a,u,o),g=pe(t(d),new Set);F(a,a,u);const p={o:a,r:g,a:u};return r=(r-1+n)%n,i[r]=p,c.set(h,p),g}},me=(t,e)=>he.w$1.RUNTIME==="browser"?Ne(t,e):t;function I(t){return Array.isArray?Array.isArray(t):xe(t)==="[object Array]"}const De=1/0;function Pe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-De?"-0":e}function Ke(t){return t==null?"":Pe(t)}function _(t){return typeof t=="string"}function Me(t){return typeof t=="number"}function We(t){return t===!0||t===!1||ze(t)&&xe(t)=="[object Boolean]"}function ye(t){return typeof t=="object"}function ze(t){return ye(t)&&t!==null}function x(t){return t!=null}function K(t){return!t.trim().length}function xe(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const He="Incorrect 'index' type",Ue=t=>`Invalid value for key ${t}`,Ve=t=>`Pattern length exceeds max of ${t}.`,Be=t=>`Missing ${t} property in key`,Ge=t=>`Property 'weight' in key '${t}' must be a positive integer`,ie=Object.prototype.hasOwnProperty;class Ye{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=Se(r);this._keys.push(n),this._keyMap[n.id]=n,s+=n.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Se(t){let e=null,s=null,r=null,n=1,i=null;if(_(t)||I(t))r=t,e=ce(t),s=U(t);else{if(!ie.call(t,"name"))throw new Error(Be("name"));const c=t.name;if(r=c,ie.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(Ge(c));e=ce(c),s=U(c),i=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:i}}function ce(t){return I(t)?t:t.split(".")}function U(t){return I(t)?t.join("."):t}function Qe(t,e){let s=[],r=!1;const n=(i,c,o)=>{if(x(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!x(h))return;if(o===c.length-1&&(_(h)||Me(h)||We(h)))s.push(Ke(h));else if(I(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)n(h[l],c,o+1)}else c.length&&n(h,c,o+1)}};return n(t,_(e)?e.split("."):e,0),r?s:s[0]}const Xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Je={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Ze={location:0,threshold:.6,distance:100},qe={useExtendedSearch:!1,getFn:Qe,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...Je,...Xe,...Ze,...qe};const et=/[^ ]+/g;function tt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const i=n.match(et).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(i,o),o},clear(){s.clear()}}}class q{constructor({getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){this.norm=tt(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,_(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();_(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!x(e)||K(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((n,i)=>{let c=n.getFn?n.getFn(e):this.getFn(e,n.path);if(x(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(x(l))if(_(l)&&!K(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else I(l)&&l.forEach((u,d)=>{a.push({nestedArrIndex:d,value:u})})}r.$[i]=o}else if(_(c)&&!K(c)){let o={v:c,n:this.norm.get(c)};r.$[i]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ee(t,e,{getFn:s=f.getFn,fieldNormWeight:r=f.fieldNormWeight}={}){const n=new q({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(Se)),n.setSources(e),n.create(),n}function st(t,{getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const{keys:r,records:n}=t,i=new q({getFn:e,fieldNormWeight:s});return i.setKeys(r),i.setIndexRecords(n),i}function T(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=f.distance,ignoreLocation:i=f.ignoreLocation}={}){const c=e/t.length;if(i)return c;const o=Math.abs(r-s);return n?c+o/n:o?1:c}function rt(t=[],e=f.minMatchCharLength){let s=[],r=-1,n=-1,i=0;for(let c=t.length;i<c;i+=1){let o=t[i];o&&r===-1?r=i:!o&&r!==-1&&(n=i-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[i-1]&&i-r>=e&&s.push([r,i-1]),s}const L=32;function nt(t,e,s,{location:r=f.location,distance:n=f.distance,threshold:i=f.threshold,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,includeMatches:a=f.includeMatches,ignoreLocation:h=f.ignoreLocation}={}){if(e.length>L)throw new Error(Ve(L));const l=e.length,u=t.length,d=Math.max(0,Math.min(r,u));let g=i,p=d;const M=o>1||a,y=M?Array(u):[];let b;for(;(b=t.indexOf(e,p))>-1;){let S=T(e,{currentLocation:b,expectedLocation:d,distance:n,ignoreLocation:h});if(g=Math.min(S,g),p=b+l,M){let w=0;for(;w<l;)y[b+w]=1,w+=1}}p=-1;let R=[],C=1,v=l+u;const Re=1<<l-1;for(let S=0;S<l;S+=1){let w=0,A=v;for(;w<A;)T(e,{errors:S,currentLocation:d+A,expectedLocation:d,distance:n,ignoreLocation:h})<=g?w=A:v=A,A=Math.floor((v-w)/2+w);v=A;let ee=Math.max(1,d-A+1),P=c?u:Math.min(d+A,u)+l,k=Array(P+2);k[P+1]=(1<<S)-1;for(let E=P;E>=ee;E-=1){let j=E-1,te=s[t.charAt(j)];if(M&&(y[j]=+!!te),k[E]=(k[E+1]<<1|1)&te,S&&(k[E]|=(R[E+1]|R[E])<<1|1|R[E+1]),k[E]&Re&&(C=T(e,{errors:S,currentLocation:j,expectedLocation:d,distance:n,ignoreLocation:h}),C<=g)){if(g=C,p=j,p<=d)break;ee=Math.max(1,2*d-p)}}if(T(e,{errors:S+1,currentLocation:d,expectedLocation:d,distance:n,ignoreLocation:h})>g)break;R=k}const D={isMatch:p>=0,score:Math.max(.001,C)};if(M){const S=rt(y,o);S.length?a&&(D.indices=S):D.isMatch=!1}return D}function it(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const n=t.charAt(s);e[n]=(e[n]||0)|1<<r-s-1}return e}class _e{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:it(d),startIndex:g})},u=this.pattern.length;if(u>L){let d=0;const g=u%L,p=u-g;for(;d<p;)l(this.pattern.substr(d,L),d),d+=L;if(g){const M=u-L;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:n,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:y})=>{const{isMatch:b,score:R,indices:C}=nt(e,p,M,{location:n+y,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});b&&(d=!0),u+=R,b&&C&&(l=[...l,...C])});let g={isMatch:d,score:d?u/this.chunks.length:1};return d&&r&&(g.indices=l),g}}class O{constructor(e){this.pattern=e}static isMultiMatch(e){return oe(e,this.multiRegex)}static isSingleMatch(e){return oe(e,this.singleRegex)}search(){}}function oe(t,e){const s=t.match(e);return s?s[1]:null}class ct extends O{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class ot extends O{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class at extends O{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class lt extends O{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class ht extends O{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class ut extends O{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class be extends O{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){super(e),this._bitapSearch=new _e(e,{location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ie extends O{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const n=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+i,n.push([r,s-1]);const c=!!n.length;return{isMatch:c,score:c?0:1,indices:n}}}const V=[ct,Ie,at,lt,ut,ht,ot,be],ae=V.length,ft=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dt="|";function gt(t,e={}){return t.split(dt).map(s=>{let r=s.trim().split(ft).filter(i=>i&&!!i.trim()),n=[];for(let i=0,c=r.length;i<c;i+=1){const o=r[i];let a=!1,h=-1;for(;!a&&++h<ae;){const l=V[h];let u=l.isMultiMatch(o);u&&(n.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ae;){const l=V[h];let u=l.isSingleMatch(o);if(u){n.push(new l(u,e));break}}}return n})}const pt=new Set([be.type,Ie.type]);class mt{constructor(e,{isCaseSensitive:s=f.isCaseSensitive,includeMatches:r=f.includeMatches,minMatchCharLength:n=f.minMatchCharLength,ignoreLocation:i=f.ignoreLocation,findAllMatches:c=f.findAllMatches,location:o=f.location,threshold:a=f.threshold,distance:h=f.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:n,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=gt(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let u=0,d=l.length;u<d;u+=1){const g=l[u],{isMatch:p,indices:M,score:y}=g.search(e);if(p){if(i+=1,o+=y,r){const b=g.constructor.type;pt.has(b)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let u={isMatch:!0,score:o/i};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const B=[];function Mt(...t){B.push(...t)}function G(t,e){for(let s=0,r=B.length;s<r;s+=1){let n=B[s];if(n.condition(t,e))return new n(t,e)}return new _e(t,e)}const N={AND:"$and",OR:"$or"},Y={PATH:"$path",PATTERN:"$val"},Q=t=>!!(t[N.AND]||t[N.OR]),yt=t=>!!t[Y.PATH],xt=t=>!I(t)&&ye(t)&&!Q(t),le=t=>({[N.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function we(t,e,{auto:s=!0}={}){const r=n=>{let i=Object.keys(n);const c=yt(n);if(!c&&i.length>1&&!Q(n))return r(le(n));if(xt(n)){const a=c?n[Y.PATH]:i[0],h=c?n[Y.PATTERN]:n[a];if(!_(h))throw new Error(Ue(a));const l={keyId:U(a),pattern:h};return s&&(l.searcher=G(h,e)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=n[a];I(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return Q(t)||(t=le(t)),r(t)}function St(t,{ignoreFieldNorm:e=f.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:i,score:c})=>{const o=n?n.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:i))}),s.score=r})}function Et(t,e){const s=t.matches;e.matches=[],x(s)&&s.forEach(r=>{if(!x(r.indices)||!r.indices.length)return;const{indices:n,value:i}=r;let c={indices:n,value:i};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function _t(t,e){e.score=t.score}function bt(t,e,{includeMatches:s=f.includeMatches,includeScore:r=f.includeScore}={}){const n=[];return s&&n.push(Et),r&&n.push(_t),t.map(i=>{const{idx:c}=i,o={item:e[c],refIndex:c};return n.length&&n.forEach(a=>{a(i,o)}),o})}class ${constructor(e,s={},r){this.options={...f,...s},this.options.useExtendedSearch,this._keyStore=new Ye(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof q))throw new Error(He);this._myIndex=s||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,n=this._docs.length;r<n;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:n,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=_(e)?_(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return St(a,{ignoreFieldNorm:o}),i&&a.sort(c),Me(s)&&s>-1&&(a=a.slice(0,s)),bt(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=G(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&n.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),n}_searchLogical(e){const s=we(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,d=o.children.length;u<d;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===N.AND)return[]}return l},n=this._myIndex.records,i={},c=[];return n.forEach(({$:o,i:a})=>{if(x(o)){let h=r(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=G(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:c,i:o})=>{if(!x(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:e,value:s,searcher:r}){if(!x(s))return[];let n=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=r.searchIn(i);a&&n.push({score:h,key:e,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(i);o&&n.push({score:a,key:e,value:i,norm:c,indices:h})}return n}}$.version="7.0.0";$.createIndex=Ee;$.parseIndex=st;$.config=f;$.parseQuery=we;Mt(mt);const It={threshold:.3},Ae=t=>e=>{const s=new $(e,{keys:Object.keys(e[0]),...It,...t});return{type:"fuse",page:(r,n)=>e.slice(r*n,(r+1)*n),search:r=>s.search(r).map(({item:n})=>n),retrieve:r=>e.filter(n=>r.includes(n.key))}},wt=Ae(),Oe=({term:t,searcher:e=wt})=>me(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),Ce=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,i]=he.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=m.useDataUtilContext(),a=m.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{i(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Oe({term:l})))},[i,r]);return{value:n,onChange:h}},Le=({children:t=s=>ke.jsxRuntimeExports.jsx(m.Text$1,{placeholder:"Filter",...s}),...e})=>t(Ce(e)),At=Object.freeze(Object.defineProperty({__proto__:null,Column:m.Column,ColumnContext:m.ColumnContext,Core:m.Core,DataProvider:m.DataProvider,Filter:Le,Hover:m.Hover,ItemFrame:m.ItemFrame,List:ve.List,Search:m.Search,Selector:m.Selector,selectValueIsZero:m.selectValueIsZero,useDataContext:m.useDataContext,useDataUtilContext:m.useDataUtilContext,useFilter:Ce,useGetTransformedData:m.useGetTransformedData,useHoverContext:m.useHoverContext,useSearch:m.useSearch,useSelect:m.useSelect,useSelection:m.useSelection,useSelectionContext:m.useSelectionContext,useSelectionUtils:m.useSelectionUtils,useSetSourceData:m.useSetSourceData,useSourceData:m.useSourceData,useTransformedData:m.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Le;exports.createFilterTransform=Oe;exports.external=At;exports.fuseFilter=Ae;exports.proxyMemo=me;
|