@marimo-team/islands 0.21.2-dev92 → 0.21.2-dev93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Combination-B_FmEi05.js → Combination-BVnmMSzE.js} +1 -1
- package/dist/{ConnectedDataExplorerComponent-CLLlotD4.js → ConnectedDataExplorerComponent-BzRetIpL.js} +68 -69
- package/dist/_basePickBy-DEctY8Qy.js +117 -0
- package/dist/_baseSet-Bk810b_4.js +20 -0
- package/dist/_baseUniq-B1NzzhU7.js +557 -0
- package/dist/{any-language-editor-CSvBdMtG.js → any-language-editor-BgjMQ0JO.js} +20 -20
- package/dist/apl-Y7yFAg6_.js +4 -0
- package/dist/{arc-CHF8PiiF.js → arc-CEWBr4jc.js} +2 -2
- package/dist/architecture-7HQA4BMR-SvLOcNCN.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-CIl7H_7A.js → architectureDiagram-VXUJARFQ-BKlUkb-q.js} +19 -19
- package/dist/arrays--2cd0hte.js +59 -0
- package/dist/asciiarmor-Bl8b2p0w.js +4 -0
- package/dist/asn1-BF6cywqm.js +4 -0
- package/dist/{blockDiagram-VD42YOAC-Bxg4bo7H.js → blockDiagram-VD42YOAC-DvgBlX1D.js} +14 -14
- package/dist/brainfuck-BuqydWe3.js +4 -0
- package/dist/{button-B1ZgJ7Cc.js → button-CxEhg2E1.js} +5 -0
- package/dist/{c4Diagram-YG6GDRKO-k4TEDUb8.js → c4Diagram-YG6GDRKO-BN-xpNUK.js} +6 -6
- package/dist/{capabilities-DAGZLwa6.js → capabilities-x7AvQTfX.js} +2 -2
- package/dist/{channel-CCR8wXOx.js → channel-Dz_ka_DS.js} +1 -1
- package/dist/{chat-ui-CN_DUtLR.js → chat-ui-Blhe8Kd8.js} +2803 -2804
- package/dist/{check-B2OoWw2h.js → check-Cfbm1K98.js} +1 -1
- package/dist/{chunk-4BX2VUAB-BwfrWBqN.js → chunk-4BX2VUAB-BChPAwlt.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-BigWQaTs.js → chunk-4F5CHEZ2-9eJ5uB6a.js} +1 -1
- package/dist/{chunk-55IACEB6-D8THf2mi.js → chunk-55IACEB6-wWyiO7Qo.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-Cz2QbNIw.js → chunk-5FQGJX7Z-DHiDX6JT.js} +3 -3
- package/dist/{chunk-ABZYJK2D-NPoevJcI.js → chunk-ABZYJK2D-DYZpeLRO.js} +3 -3
- package/dist/{chunk-ATLVNIR6-DAhC1FCG.js → chunk-ATLVNIR6-9VSIMo3q.js} +2 -2
- package/dist/{chunk-B2363JML-DOYwB798.js → chunk-B2363JML-CkfqLBeZ.js} +1 -1
- package/dist/{chunk-B4BG7PRW-BDmytgmO.js → chunk-B4BG7PRW-CyIVj-RO.js} +7 -7
- package/dist/{chunk-CVBHYZKI-B6xhgaBd.js → chunk-CVBHYZKI-DqdOZevv.js} +1 -1
- package/dist/{chunk-DI55MBZ5-C6iNEV8U.js → chunk-DI55MBZ5-kmoX4_PJ.js} +6 -6
- package/dist/{chunk-EXTU4WIE-BtA6WdD4.js → chunk-EXTU4WIE-anbpETeD.js} +2 -2
- package/dist/{chunk-FMBD7UC4-CHdus51S.js → chunk-FMBD7UC4-WPL5C7Yr.js} +1 -1
- package/dist/{chunk-FRFDVMJY-Bo7Hv3UF.js → chunk-FRFDVMJY-DiBbw2aO.js} +1 -1
- package/dist/{chunk-HN2XXSSU-2Vfbq-kU.js → chunk-HN2XXSSU-GC9oeSst.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-BeXqAsc9.js → chunk-JA3XYJ7Z-DT9thFja.js} +3 -3
- package/dist/{chunk-JZLCHNYA-ibE7xTEx.js → chunk-JZLCHNYA-CoUG-3_5.js} +6 -6
- package/dist/{chunk-MI3HLSF2-Do0-KRc0.js → chunk-MI3HLSF2-CAUClZTk.js} +1 -1
- package/dist/{chunk-N4CR4FBY-CHAcubAf.js → chunk-N4CR4FBY-CgZCueW4.js} +7 -7
- package/dist/{chunk-PL6DKKU2-D3wYz-iW.js → chunk-PL6DKKU2-B93gSUY5.js} +1 -1
- package/dist/{chunk-QN33PNHL-CDWJY_kT.js → chunk-QN33PNHL-T-uF7h40.js} +2 -2
- package/dist/{chunk-QXUST7PY-CV37xRZd.js → chunk-QXUST7PY-D1a8s9iP.js} +10 -10
- package/dist/{chunk-QZHKN3VN-B_Mdb8GC.js → chunk-QZHKN3VN-cTJMhkeY.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-CGlk8NH-.js → chunk-S3R3BYOJ-KAv7zltL.js} +6 -6
- package/dist/{chunk-SJTYNZTY-Bauwp2-p.js → chunk-SJTYNZTY-CxP2rIlm.js} +1 -1
- package/dist/{chunk-TCCFYFTB-C5_FjmXA.js → chunk-TCCFYFTB-BrhaBdR8.js} +17 -14
- package/dist/{chunk-TQ3KTPDO-TjHW8xfv.js → chunk-TQ3KTPDO-C0j_j938.js} +1 -1
- package/dist/{chunk-TZMSLE5B-DfY6C3FB.js → chunk-TZMSLE5B-BY2BhygM.js} +3 -3
- package/dist/{chunk-UMXZTB3W-DdRiIIOF.js → chunk-UMXZTB3W-BDwe1tzK.js} +1 -1
- package/dist/classDiagram-2ON5EDUG-LT-Hu_dE.js +30 -0
- package/dist/classDiagram-v2-WZHVMYZB-G4qrOqlY.js +30 -0
- package/dist/{clike-7lgyEYRk.js → clike-D8Yzpo0X.js} +1 -1
- package/dist/clojure-CAHAWK5H.js +4 -0
- package/dist/{clone-BM9_Wkaf.js → clone-DgKKB0qR.js} +1 -1
- package/dist/cmake-BogDc4GF.js +4 -0
- package/dist/cobol-DRnpeU4u.js +4 -0
- package/dist/{code-block-37QAKDTI-DW3JC11U.js → code-block-37QAKDTI-CdeP6GC3.js} +1 -1
- package/dist/coffeescript-9MgX7RN8.js +4 -0
- package/dist/commonlisp-CVz2KONN.js +4 -0
- package/dist/{constants-LmeAawHa.js → constants-CXiS0vdr.js} +1 -1
- package/dist/{copy-B7XqFjF_.js → copy-Bb-tO2YP.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-DXHZkJKX.js → cose-bilkent-S5V4N54A-CFYo67PX.js} +2 -2
- package/dist/crystal-td8mwLG5.js +4 -0
- package/dist/css-BK451dBn.js +4 -0
- package/dist/cypher-DuNPR6Ie.js +4 -0
- package/dist/d-DL6oP_-2.js +4 -0
- package/dist/{dagre-6UL2VRFP-B8UW0fXE.js → dagre-6UL2VRFP-CblBywCi.js} +33 -33
- package/dist/{dagre-B3-rUlCT.js → dagre-lLfkMavw.js} +36 -15
- package/dist/{data-grid-overlay-editor-CpL5Zajy.js → data-grid-overlay-editor-nQBPvGNe.js} +2 -2
- package/dist/{diagram-PSM6KHXK-DGD-j1bM.js → diagram-PSM6KHXK-CEWNAeex.js} +22 -22
- package/dist/{diagram-QEK2KX5R-DgsT6ZW4.js → diagram-QEK2KX5R-DvNPI6r6.js} +17 -17
- package/dist/{diagram-S2PKOQOG-CDh5Ij8z.js → diagram-S2PKOQOG-Bd8sWp1V.js} +17 -17
- package/dist/diff-D9CplOBj.js +4 -0
- package/dist/{dist-CpNdP46s.js → dist-5XnuIjzQ.js} +2 -2
- package/dist/{dist-DKr1M-ru.js → dist-B4HRhSlD.js} +1 -1
- package/dist/{dist-B6ZvKwIz.js → dist-B5pakFbT.js} +1 -1
- package/dist/{dist-DNSJBJI7.js → dist-B7Wxocl4.js} +2 -2
- package/dist/{dist-CsToCMcA.js → dist-B7pzGu3v.js} +2 -2
- package/dist/{dist-CwEBZkrQ.js → dist-BKKbDTix.js} +2 -2
- package/dist/dist-BOx8CJbo.js +5 -0
- package/dist/dist-BYoWtcAc.js +5 -0
- package/dist/dist-BaGdTXK1.js +5 -0
- package/dist/dist-BhGA2ia0.js +8 -0
- package/dist/{dist-Bg1YGq2b.js → dist-BmqJ8_Hr.js} +1 -1
- package/dist/{dist-B771Ewvn.js → dist-BnCNDnA7.js} +3 -3
- package/dist/{dist-mpvRA2Bc.js → dist-BnIjtwRq.js} +3 -3
- package/dist/dist-BoHuwe5C.js +5 -0
- package/dist/{dist-DlacJSaE.js → dist-BqO6WmbK.js} +2 -2
- package/dist/{dist-fRW2mZtS.js → dist-C-8pSTml.js} +2 -2
- package/dist/{dist-Bc-mOFlk.js → dist-C6R5LnmH.js} +2 -2
- package/dist/{dist-TuFHGVp2.js → dist-CD0aazOL.js} +1 -1
- package/dist/{dist-D2nC1On3.js → dist-CDXh0OSg.js} +2 -2
- package/dist/dist-CJ-2wW2z.js +8 -0
- package/dist/{dist-DSSPn3fP.js → dist-C_tLMuB0.js} +2 -2
- package/dist/dist-Ccbo2rCF.js +8 -0
- package/dist/{dist-Dl9_0tkc.js → dist-CgCO1-j-.js} +1 -1
- package/dist/{dist-QxBlbqgj.js → dist-Ck4gp1Wp.js} +3 -3
- package/dist/dist-CwayJLIO.js +5 -0
- package/dist/dist-D-jpfI6q.js +6 -0
- package/dist/{dist-CwP9oyR8.js → dist-DFBgTyQ4.js} +2 -2
- package/dist/{dist-CJEfzjG5.js → dist-DInzmbT2.js} +4 -4
- package/dist/{dist-DqweMfpO.js → dist-DJ3EjUNc.js} +1 -1
- package/dist/{dist-DoO66t8e.js → dist-DM6PPTtq.js} +1 -1
- package/dist/{dist--MUqhsBh.js → dist-DS6k03oP.js} +1 -1
- package/dist/dist-DShjplLu.js +8 -0
- package/dist/{dist-DEmPLkH9.js → dist-DUY_SIWT.js} +4 -4
- package/dist/dist-DhBqFguQ.js +5 -0
- package/dist/dist-DiCgMCy4.js +6 -0
- package/dist/{dist-8-jPFKws.js → dist-DqWKkHpR.js} +2 -2
- package/dist/dist-Dqa-QKVa.js +5 -0
- package/dist/{dist-CXsGjNbR.js → dist-DqezbmBd.js} +2 -2
- package/dist/{dist-DvjVNme1.js → dist-Dv7FDx1_.js} +1 -1
- package/dist/dist-OFv2DOPe.js +5 -0
- package/dist/{dist-BsyHyGqX.js → dist-_k5rxRQI.js} +2 -2
- package/dist/{dist-BiNtCiQ9.js → dist-eWNxvDQG.js} +2 -2
- package/dist/{dist-BjYGwQ65.js → dist-n5m_P2Mr.js} +1 -1
- package/dist/{dist-DqT0O-4m.js → dist-nggqqIVv.js} +5 -5
- package/dist/{dist-CEmSeYaL.js → dist-xzh9kCE-.js} +2 -2
- package/dist/{dockerfile-DG6A2DdH.js → dockerfile-m9DOSpI5.js} +1 -1
- package/dist/dtd-Ce1c54UO.js +4 -0
- package/dist/dylan-B43wjIwg.js +4 -0
- package/dist/ecl-DK-fZmir.js +4 -0
- package/dist/eiffel-CNuvvPqD.js +4 -0
- package/dist/elm-DZEkBjgQ.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-CGK0SUdu.js → erDiagram-Q2GNP2WA-C5bM6dcx.js} +15 -15
- package/dist/erlang-Dw4PDZV_.js +4 -0
- package/dist/{error-banner-D-KBGvBj.js → error-banner-CW87Aylu.js} +2 -2
- package/dist/{esm-B_4hpmV_.js → esm-BBsFNcPe.js} +105 -105
- package/dist/{esm-Bcbo0Yvz.js → esm-BjPSZ7Qf.js} +6 -6
- package/dist/factor-C9JRv63g.js +4 -0
- package/dist/{factor-Bq2mGIHt.js → factor-Nva0iSXt.js} +1 -1
- package/dist/{flowDiagram-NV44I4VS-PjhviPI_.js → flowDiagram-NV44I4VS-CULNNnl6.js} +17 -17
- package/dist/forth-CKhoqn4e.js +4 -0
- package/dist/fortran-Do51bToK.js +4 -0
- package/dist/{ganttDiagram-JELNMOA3-CUVtQqgT.js → ganttDiagram-JELNMOA3-DIi-PAjP.js} +10 -10
- package/dist/gas-BZfL3Uwh.js +4 -0
- package/dist/get-CqYRpAGT.js +68 -0
- package/dist/gherkin-BwQh4ehw.js +4 -0
- package/dist/{gitGraph-G5XIXVHT-B6b-Z3mr.js → gitGraph-G5XIXVHT-S7ypWRtz.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-CNdrlK1I.js → gitGraphDiagram-V2S2FVAM-BGDZsLhF.js} +17 -17
- package/dist/{glide-data-editor-DQEuWuu_.js → glide-data-editor-CSemfq4D.js} +72 -72
- package/dist/graphlib-TFMRsJse.js +225 -0
- package/dist/groovy-CG5kCGiv.js +4 -0
- package/dist/haskell-BKii9uTg.js +4 -0
- package/dist/haxe-Bsz30J8x.js +5 -0
- package/dist/idl-BlxgaPKj.js +4 -0
- package/dist/{info-VBDWY6EO-DfFl0Z8H.js → info-VBDWY6EO-CRCLLsdb.js} +3 -3
- package/dist/infoDiagram-HS3SLOUP-fkZhmVE7.js +30 -0
- package/dist/{input-B8CM-AuM.js → input-EtKyRcb-.js} +84 -84
- package/dist/isEmpty-D_Jzlmqv.js +42 -0
- package/dist/javascript-SNhUvTcB.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-CyoESVVb.js → journeyDiagram-XKPGCS4Q-DUANVNzR.js} +7 -7
- package/dist/julia-CGZzaDyk.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7-Doc2YV80.js → kanban-definition-3W4ZIXB7-dEyZPMAd.js} +12 -12
- package/dist/{katex-qPqrBHZ8.js → katex-Ckd8lBne.js} +1 -1
- package/dist/{label-e5-84vsp.js → label-mQKeDCJ8.js} +73 -80
- package/dist/{line-BWRi3U3S.js → line-LK_5q2B9.js} +3 -3
- package/dist/{linear-DZ8_CGCd.js → linear-CJ6ctpF3.js} +4 -4
- package/dist/livescript-Cj6cX-Ys.js +4 -0
- package/dist/{loader-C51Irhxm.js → loader-hvRcVSq5.js} +15 -21
- package/dist/lua-BcVHrD8f.js +4 -0
- package/dist/main.js +351 -351
- package/dist/mathematica-DLY8ZGoJ.js +4 -0
- package/dist/mbox-BNTsMWS5.js +4 -0
- package/dist/{mermaid-4DMBBIKO-DQdI9xDR.js → mermaid-4DMBBIKO-C2ajbN0u.js} +1 -1
- package/dist/{mermaid-CzWpf81s.js → mermaid-CjhFZReU.js} +48 -48
- package/dist/{mermaid-parser.core-CrrqF1ZZ.js → mermaid-parser.core-DDGHdNnp.js} +8 -8
- package/dist/{mhchem-BwoRNwg_.js → mhchem-DAXq6Zll.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-L2ybicpO.js → mindmap-definition-VGOIOE7T-jZ7-PfhM.js} +14 -14
- package/dist/mirc-oyeOBir2.js +4 -0
- package/dist/mllike-ByxznKQw.js +6 -0
- package/dist/modelica-DNLhoyD8.js +4 -0
- package/dist/mscgen-DkZltsli.js +6 -0
- package/dist/mumps-TTiQB1xv.js +4 -0
- package/dist/{nsis-i9_sgigf.js → nsis-DgKbDAVQ.js} +1 -1
- package/dist/nsis-RT1O1Ph8.js +4 -0
- package/dist/ntriples-CxsCiZ7Z.js +4 -0
- package/dist/{number-overlay-editor-D2Y0RpcH.js → number-overlay-editor-BqzX9dHu.js} +1 -1
- package/dist/octave-CkLh5tpW.js +4 -0
- package/dist/once-BfpiMcdf.js +26 -0
- package/dist/{ordinal-B4zYMadD.js → ordinal-COPPjmMz.js} +1 -1
- package/dist/oz-yI7U9eVH.js +4 -0
- package/dist/{packet-DYOGHKS2-DIf3Dotq.js → packet-DYOGHKS2-DPTC67cY.js} +3 -3
- package/dist/pascal-CQK8sfDe.js +4 -0
- package/dist/perl-BEG8-kZl.js +4 -0
- package/dist/{pie-VRWISCQL-Dj_gvPcD.js → pie-VRWISCQL-DfbgsrV5.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-x5w7q6Yp.js → pieDiagram-ADFJNKIX-BiAFdzOP.js} +22 -22
- package/dist/pig-DLLCqQaR.js +4 -0
- package/dist/powershell-CtjMkVO_.js +4 -0
- package/dist/{precisionRound-C-DW449D.js → precisionRound-Duzbr5ur.js} +1 -1
- package/dist/{process-output-BfgNdve9.js → process-output-Cy0KEXJh.js} +2349 -2387
- package/dist/properties-Domeb57z.js +4 -0
- package/dist/protobuf-0yk85TV6.js +4 -0
- package/dist/pug-B-BiNkM-.js +4 -0
- package/dist/{pug-BhE2JRSg.js → pug-CTpLcc1b.js} +1 -1
- package/dist/puppet-C0N4vevK.js +4 -0
- package/dist/python-BZFa8G3C.js +4 -0
- package/dist/q-gcj7dgJv.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-D5j_5qG_.js → quadrantDiagram-AYHSOK5B-CZjWO4oG.js} +5 -5
- package/dist/r-DavzTuPU.js +4 -0
- package/dist/{radar-ZZBFDIW7-DXDVq3gi.js → radar-ZZBFDIW7-B5Hwx2a8.js} +3 -3
- package/dist/react-vega-DfxWeueH.js +9 -0
- package/dist/{react-vega-BBUxfZoV.js → react-vega-JMnqwKtN.js} +18 -18
- package/dist/{requirementDiagram-UZGBJVZJ-3SoJH6yP.js → requirementDiagram-UZGBJVZJ-D9PkMDa5.js} +14 -14
- package/dist/rpm-bPj31ya8.js +5 -0
- package/dist/ruby-3UzzijjE.js +4 -0
- package/dist/{sankeyDiagram-TZEHDZUN-fGkFNe5q.js → sankeyDiagram-TZEHDZUN-DuCG1ouO.js} +5 -5
- package/dist/sas-D9upmCP9.js +4 -0
- package/dist/scheme-DqWYzIFR.js +4 -0
- package/dist/{sequenceDiagram-WL72ISMW-BE2uTn_d.js → sequenceDiagram-WL72ISMW-BLJqizTv.js} +8 -8
- package/dist/shell-w63nkNmU.js +4 -0
- package/dist/sieve-Dz_ISrl6.js +4 -0
- package/dist/{slides-component-Cjo6LzW9.js → slides-component-DKg-ohoF.js} +2 -2
- package/dist/smalltalk-BXZ14pkr.js +4 -0
- package/dist/sparql-Boyc0wkb.js +4 -0
- package/dist/{spec-UGFYIDJb.js → spec-DLNqef4y.js} +3 -3
- package/dist/{src-BY0BGg6V.js → src-szye8OCw.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-Dmk9IAOx.js → stateDiagram-FKZM4ZOC-CmZfv4_-.js} +19 -19
- package/dist/stateDiagram-v2-4FDKWEC3-BpOH8Bgl.js +29 -0
- package/dist/{step-DGAGWg3y.js → step-1PmBKr2y.js} +1 -1
- package/dist/stex-DYK84lGq.js +4 -0
- package/dist/stylus-m9L_f1X1.js +4 -0
- package/dist/swift-C4TGn99K.js +4 -0
- package/dist/tcl-D_L0cfYZ.js +4 -0
- package/dist/textile-BAofYdKN.js +4 -0
- package/dist/{time-C_pvjzP0.js → time-B8tcX_hU.js} +4 -4
- package/dist/{timeline-definition-IT6M3QCI-CvB4yGrN.js → timeline-definition-IT6M3QCI-C7yv4fEk.js} +4 -4
- package/dist/{toDate-COI3hP-5.js → toDate-BEXAEQ0o.js} +4 -4
- package/dist/toml-DCDKACLL.js +4 -0
- package/dist/{tooltip-DnI4CwIS.js → tooltip-CYv8qy5F.js} +3 -3
- package/dist/{treemap-GDKQZRPO-CIG6WH-x.js → treemap-GDKQZRPO-B_LAAEIM.js} +3 -3
- package/dist/troff-JHOU2VZK.js +4 -0
- package/dist/ttcn-Cxhng3qq.js +4 -0
- package/dist/ttcn-cfg-DJgUIu5n.js +4 -0
- package/dist/turtle-DKYkKZjV.js +4 -0
- package/dist/types-B7Om6oxp.js +202 -0
- package/dist/{useAsyncData-BtHYXgXF.js → useAsyncData-b2IfqSIa.js} +2 -2
- package/dist/useDeepCompareMemoize-C7Ut95sA.js +85 -0
- package/dist/{useIframeCapabilities-CzVvBDe8.js → useIframeCapabilities-DHGxPMu5.js} +1 -1
- package/dist/useLifecycle-Q7CzdfPd.js +173 -0
- package/dist/{useTheme-5GTtjXjy.js → useTheme-5rRsavIK.js} +47 -12
- package/dist/vb-C9rpn9hN.js +4 -0
- package/dist/vbscript-BQ7rxQU0.js +4 -0
- package/dist/{vega-component-BQNW4qnB.js → vega-component-B0Ik4707.js} +16 -16
- package/dist/{vega-loader.browser-DnqN5nbz.js → vega-loader.browser-hMqVC9bf.js} +3 -3
- package/dist/velocity-C8WXmzLz.js +4 -0
- package/dist/verilog-BUXJEyEq.js +4 -0
- package/dist/vhdl-C18YIXfF.js +4 -0
- package/dist/webidl-D97EKzDx.js +4 -0
- package/dist/xquery-BZM6yzG2.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-BbEInSqY.js → xychartDiagram-PRI3JC2R-DC0-6FAB.js} +13 -13
- package/dist/yacas-CXKck-Ok.js +4 -0
- package/dist/z80-BbF6ykWc.js +4 -0
- package/package.json +1 -1
- package/src/components/ai/ai-model-dropdown.tsx +1 -1
- package/src/components/chat/acp/agent-panel.tsx +4 -2
- package/src/components/chat/acp/blocks.tsx +1 -2
- package/src/components/chat/acp/state.ts +1 -1
- package/src/components/chat/tool-call-accordion.tsx +1 -0
- package/src/components/data-table/charts/components/chart-items.tsx +1 -1
- package/src/components/data-table/charts/components/form-fields.tsx +1 -1
- package/src/components/data-table/charts/forms/common-chart.tsx +1 -1
- package/src/components/data-table/charts/storage.ts +1 -1
- package/src/components/data-table/column-header.tsx +1 -1
- package/src/components/data-table/hooks/use-column-pinning.ts +1 -1
- package/src/components/data-table/pagination.tsx +1 -1
- package/src/components/datasources/datasources.tsx +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +2 -2
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +2 -2
- package/src/components/editor/connections/form-renderers.tsx +1 -1
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +2 -2
- package/src/components/editor/renderers/layout-select.tsx +2 -2
- package/src/components/variables/variables-table.tsx +1 -1
- package/src/core/cells/cells.ts +1 -1
- package/src/core/codemirror/rtc/extension.ts +1 -1
- package/src/core/network/requests-network.ts +1 -1
- package/src/core/rtc/state.ts +1 -1
- package/src/core/saving/state.ts +2 -1
- package/src/core/state/jotai.ts +2 -1
- package/src/plugins/impl/RangeSliderPlugin.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +2 -2
- package/src/plugins/impl/data-editor/components.tsx +1 -1
- package/src/plugins/impl/data-explorer/components/query-form.tsx +2 -2
- package/src/plugins/impl/data-explorer/functions/types.ts +1 -2
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +9 -4
- package/src/plugins/impl/plotly/usePlotlyLayout.ts +2 -2
- package/src/plugins/impl/vega/loader.ts +3 -4
- package/src/plugins/impl/vega/params.ts +1 -1
- package/src/utils/__tests__/arrays.test.ts +118 -0
- package/src/utils/__tests__/objects.test.ts +34 -0
- package/src/utils/__tests__/strings.test.ts +27 -1
- package/src/utils/arrays.ts +67 -0
- package/src/utils/objects.ts +14 -0
- package/src/utils/strings.ts +39 -19
- package/dist/_arrayReduce-6BJAuN54.js +0 -9
- package/dist/_baseIsEqual-QWfxbVqg.js +0 -226
- package/dist/_basePickBy-Do49cXgl.js +0 -34
- package/dist/_baseSlice-bwIVgwNq.js +0 -10
- package/dist/_baseUniq-vFmWNipH.js +0 -59
- package/dist/_hasUnicode-DOFcQHhs.js +0 -8
- package/dist/apl-e1B5LPEL.js +0 -4
- package/dist/architecture-7HQA4BMR-KeUc82D1.js +0 -6
- package/dist/asciiarmor-B-gwgesP.js +0 -4
- package/dist/asn1-DF2ckRB4.js +0 -4
- package/dist/brainfuck-4G-7_gq_.js +0 -4
- package/dist/classDiagram-2ON5EDUG-DbWOiPgs.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-COnXBrRA.js +0 -30
- package/dist/clojure-CUybM11R.js +0 -4
- package/dist/cmake-BPjGcuDL.js +0 -4
- package/dist/cobol-BETk_nb6.js +0 -4
- package/dist/coffeescript-CManZxXL.js +0 -4
- package/dist/commonlisp-DWkn7GW8.js +0 -4
- package/dist/crystal-CCbg5EUH.js +0 -4
- package/dist/css-By8eo-XS.js +0 -4
- package/dist/cypher-DwfHg3nP.js +0 -4
- package/dist/d-Brs1wNbw.js +0 -4
- package/dist/diff-DJIRmJ1g.js +0 -4
- package/dist/dist-BK8Ch8me.js +0 -5
- package/dist/dist-BPlAe3w3.js +0 -6
- package/dist/dist-BQnLGf1A.js +0 -8
- package/dist/dist-BZRBnAnM.js +0 -5
- package/dist/dist-BmTKj-5m.js +0 -5
- package/dist/dist-C1UyhB0b.js +0 -5
- package/dist/dist-C1uqqTuH.js +0 -5
- package/dist/dist-CCeSY9xv.js +0 -5
- package/dist/dist-CMWhb0s1.js +0 -5
- package/dist/dist-DYoFz28E.js +0 -8
- package/dist/dist-DeSnQwvL.js +0 -6
- package/dist/dist-e8VqCQ_P.js +0 -5
- package/dist/dist-kGaha3sX.js +0 -8
- package/dist/dist-wQD8nhf9.js +0 -8
- package/dist/dtd-Dyiazv4N.js +0 -4
- package/dist/dylan-D8Fcw7NA.js +0 -4
- package/dist/ecl-CjKp8Vii.js +0 -4
- package/dist/eiffel-K9ViOX5r.js +0 -4
- package/dist/elm-B5NVtRco.js +0 -4
- package/dist/erlang-BnLzgk7R.js +0 -4
- package/dist/factor-C7f9Jz5R.js +0 -4
- package/dist/forth-rGM8jLao.js +0 -4
- package/dist/fortran-B3acSe0i.js +0 -4
- package/dist/gas-Bb1Vmv_N.js +0 -4
- package/dist/gherkin-C9Lyidgd.js +0 -4
- package/dist/graphlib-CIQjMxKw.js +0 -228
- package/dist/groovy-DQk6XcGH.js +0 -4
- package/dist/hasIn-eLCPDloT.js +0 -86
- package/dist/haskell-mV0Vw9gv.js +0 -4
- package/dist/haxe-DqxN89zH.js +0 -5
- package/dist/idl-ya8W561J.js +0 -4
- package/dist/infoDiagram-HS3SLOUP-DGimKb9k.js +0 -30
- package/dist/isEmpty-CI9akcsL.js +0 -16
- package/dist/isString-xiQUcgm4.js +0 -9
- package/dist/javascript-CgqgptVu.js +0 -4
- package/dist/julia-CFQ-HusI.js +0 -4
- package/dist/livescript-D__3TmDo.js +0 -4
- package/dist/lua-Bytcgj_W.js +0 -4
- package/dist/mathematica-DJhvVKvl.js +0 -4
- package/dist/mbox-IGHPCjfR.js +0 -4
- package/dist/min-IJGSWMpU.js +0 -89
- package/dist/mirc-tcwvVugm.js +0 -4
- package/dist/mllike-Dx91i62r.js +0 -6
- package/dist/modelica-_SRt-yU5.js +0 -4
- package/dist/mscgen-GZrGS9gt.js +0 -6
- package/dist/mumps-Cv3ygyod.js +0 -4
- package/dist/nsis-BU7GeGbI.js +0 -4
- package/dist/ntriples-CL-FCYXb.js +0 -4
- package/dist/octave-Dc6_3DIu.js +0 -4
- package/dist/once-DjP4Kbhy.js +0 -74
- package/dist/oz-DpUAJCXf.js +0 -4
- package/dist/pascal-B17mncXs.js +0 -4
- package/dist/perl-BTpK97q9.js +0 -4
- package/dist/pig-CFb638Ap.js +0 -4
- package/dist/powershell-Cxo-_2A5.js +0 -4
- package/dist/properties-BPgT1xTB.js +0 -4
- package/dist/protobuf-BgHBaIIK.js +0 -4
- package/dist/pug-25-oS0SG.js +0 -4
- package/dist/puppet-DarIr20S.js +0 -4
- package/dist/python-BqmOsBsi.js +0 -4
- package/dist/q-D3QJCTup.js +0 -4
- package/dist/r-Cz_yBX4z.js +0 -4
- package/dist/range-DffmqG6L.js +0 -31
- package/dist/react-vega-Cs3lfDw8.js +0 -9
- package/dist/reduce-CGwzfrDo.js +0 -275
- package/dist/rpm-DGOtYwAI.js +0 -5
- package/dist/ruby-DBZu4rPc.js +0 -4
- package/dist/sas-Dd1D9qTq.js +0 -4
- package/dist/scheme-BmDjvTHX.js +0 -4
- package/dist/shell-BL8zFSaj.js +0 -4
- package/dist/sieve-BAx2WqUP.js +0 -4
- package/dist/smalltalk-CYRzF7VV.js +0 -4
- package/dist/sparql-YWaDRO4A.js +0 -4
- package/dist/stateDiagram-v2-4FDKWEC3-BGF0BvU6.js +0 -29
- package/dist/stex-BvZqVamL.js +0 -4
- package/dist/stylus-lYsyLFc1.js +0 -4
- package/dist/swift-ClQz9z1n.js +0 -4
- package/dist/tcl-B3jhsfqY.js +0 -4
- package/dist/textile-Cb1Dw7Aq.js +0 -4
- package/dist/toInteger-BUeg_O0F.js +0 -15
- package/dist/toString-CtXX84W6.js +0 -23
- package/dist/toml-nHZhetdO.js +0 -4
- package/dist/troff-DuJAGWKH.js +0 -4
- package/dist/ttcn-BxrcwP21.js +0 -4
- package/dist/ttcn-cfg-BAg_9dcc.js +0 -4
- package/dist/turtle-zCq949as.js +0 -4
- package/dist/types-BqLAaq-i.js +0 -209
- package/dist/uniq-CCKqEs7T.js +0 -8
- package/dist/useDeepCompareMemoize-9dXEtK7u.js +0 -124
- package/dist/useLifecycle-Be1LUuEg.js +0 -427
- package/dist/vb-De5hElus.js +0 -4
- package/dist/vbscript-Cypcpv4F.js +0 -4
- package/dist/velocity-Di7l-yhe.js +0 -4
- package/dist/verilog-Bzi-S3g2.js +0 -4
- package/dist/vhdl-B0ZZITaW.js +0 -4
- package/dist/webidl-0sviiRcN.js +0 -4
- package/dist/xquery-B4qMVWaB.js +0 -4
- package/dist/yacas-Jt25Fuv8.js +0 -4
- package/dist/z80-CrcbYzmp.js +0 -4
- /package/dist/{ImageComparisonComponent-BC00mJmw.js → ImageComparisonComponent-B5q26YVi.js} +0 -0
- /package/dist/{Plot-B1ahrLui.js → Plot-syRHsk-l.js} +0 -0
- /package/dist/{apl-99A7dLQe.js → apl-BqjtmlWW.js} +0 -0
- /package/dist/{array-B-MVxRIF.js → array-D7wW5QoO.js} +0 -0
- /package/dist/{asciiarmor-DLEhpFDx.js → asciiarmor-D9C9bbeV.js} +0 -0
- /package/dist/{asn1-CMrcTsT4.js → asn1-D_zR1ubK.js} +0 -0
- /package/dist/{asterisk-BUZwqih-.js → asterisk-B0dLLA8Z.js} +0 -0
- /package/dist/{brainfuck-ChPt5yBe.js → brainfuck-79SC7EYA.js} +0 -0
- /package/dist/{chunk-DR5Q36YT-CP69aZS_.js → chunk-DR5Q36YT-BxPcQ21t.js} +0 -0
- /package/dist/{click-outside-container-DB_bTXRG.js → click-outside-container-DNfggvIW.js} +0 -0
- /package/dist/{clike-CE0fXfM_.js → clike-DFDX2jWq.js} +0 -0
- /package/dist/{clojure-QkBEMU-g.js → clojure-Bb3Od9By.js} +0 -0
- /package/dist/{cmake-CU1jX7Mo.js → cmake-DYGUYEtU.js} +0 -0
- /package/dist/{cobol-DMOKzzky.js → cobol-CcWmcAFT.js} +0 -0
- /package/dist/{coffeescript-DjnjLyfk.js → coffeescript-BVa1qoL6.js} +0 -0
- /package/dist/{colors-Cn2p_FA3.js → colors-6DRQ0kEF.js} +0 -0
- /package/dist/{common-keywords-hbLeU7VU.js → common-keywords-Bz8dNfWa.js} +0 -0
- /package/dist/{commonlisp-CYd9iOSe.js → commonlisp-zi51jgUH.js} +0 -0
- /package/dist/{crystal-Dy55yoYG.js → crystal-QjpegJHM.js} +0 -0
- /package/dist/{css-CNU8w3HJ.js → css-B_GfJtcK.js} +0 -0
- /package/dist/{cypher-q47DGzK7.js → cypher-BVuYJpGf.js} +0 -0
- /package/dist/{cytoscape.esm-WbbDoCfu.js → cytoscape.esm-BYAuS6uS.js} +0 -0
- /package/dist/{d-jEkaLvxX.js → d-BT97RiQI.js} +0 -0
- /package/dist/{defaultLocale-Dr6Bz4JK.js → defaultLocale-B_A76Zpk.js} +0 -0
- /package/dist/{defaultLocale-I3_GfJ4U.js → defaultLocale-DjFHq3Xk.js} +0 -0
- /package/dist/{diff-vb2-unFN.js → diff-CHd93v7L.js} +0 -0
- /package/dist/{dist-N1lm7LVK.js → dist-CORAUsE1.js} +0 -0
- /package/dist/{dist-C89sHDXk.js → dist-CqR8FBcH.js} +0 -0
- /package/dist/{dtd-C9kR-bXa.js → dtd-akLFIRuZ.js} +0 -0
- /package/dist/{duckdb-keywords-CZ_ZTscu.js → duckdb-keywords-CQAIHMbC.js} +0 -0
- /package/dist/{dylan-BLckrK-V.js → dylan-Iy-rgNOc.js} +0 -0
- /package/dist/{ebnf-WEXPLEWb.js → ebnf-CTkZpZPT.js} +0 -0
- /package/dist/{ecl-CEsf6XVg.js → ecl-BhUXC_aR.js} +0 -0
- /package/dist/{eiffel-2KGZNzx6.js → eiffel-DIRAlWPD.js} +0 -0
- /package/dist/{elm-D2s3K5wF.js → elm-BDgVzkJ4.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-CflmeIys.js → emotion-is-prop-valid.esm-DdzHpbbG.js} +0 -0
- /package/dist/{erlang-0PMFOndk.js → erlang-Djcs_NwB.js} +0 -0
- /package/dist/{esm-Bb_hbWan.js → esm-BRwAuUu2.js} +0 -0
- /package/dist/{fcl-B_Gv5Jfx.js → fcl-OXoT8w4k.js} +0 -0
- /package/dist/{forth-DG89iUsu.js → forth-c_NTahPv.js} +0 -0
- /package/dist/{fortran-ytKsAVvu.js → fortran-Bpxt27dn.js} +0 -0
- /package/dist/{gas-Cg2Fm0N2.js → gas-RVBts6ZK.js} +0 -0
- /package/dist/{gherkin-B87FEnZ-.js → gherkin-Hf6PTauh.js} +0 -0
- /package/dist/{groovy-Dcs08AWD.js → groovy-CKjO-cRi.js} +0 -0
- /package/dist/{haskell-cwkOuhx6.js → haskell-DC1Gan6v.js} +0 -0
- /package/dist/{haxe-DWEo4q10.js → haxe-Bpne--ot.js} +0 -0
- /package/dist/{http-Dc2fv19V.js → http-CPVO27fZ.js} +0 -0
- /package/dist/{idl-WWQwDcRV.js → idl-GRIbMIEq.js} +0 -0
- /package/dist/{init-D-g0ONX1.js → init-BfRhston.js} +0 -0
- /package/dist/{invariant-Ctm_8TNZ.js → invariant-CzjtdzpE.js} +0 -0
- /package/dist/{javascript-BeR74dxD.js → javascript-nS0zxWNO.js} +0 -0
- /package/dist/{julia-UlvCUYGL.js → julia-CQpdTxmO.js} +0 -0
- /package/dist/{katex-B7pMJpE0.js → katex-Dg42UEnr.js} +0 -0
- /package/dist/{livescript-GPmFcmYV.js → livescript-D5kqrQol.js} +0 -0
- /package/dist/{lua-DYoT_0zM.js → lua-CKifrpGK.js} +0 -0
- /package/dist/{main-sxFlUO_N.js → main-C01_ic0d.js} +0 -0
- /package/dist/{math-BYK36kWZ.js → math-BbMyrONz.js} +0 -0
- /package/dist/{mathematica-DSFIQlbG.js → mathematica-CxT3f_fi.js} +0 -0
- /package/dist/{mbox-ej8lFMdL.js → mbox-C2_n_I9h.js} +0 -0
- /package/dist/{memoize-zYM53m8l.js → memoize-CwWm-NpB.js} +0 -0
- /package/dist/{merge-CqBPpP0q.js → merge-Byt9w-nO.js} +0 -0
- /package/dist/{micromark-factory-space-DQCQsiYz.js → micromark-factory-space-YUxUai1y.js} +0 -0
- /package/dist/{mirc-CAdIdvHQ.js → mirc-BTQeASBH.js} +0 -0
- /package/dist/{mllike-CjTB1lHF.js → mllike-BxO6Hl5N.js} +0 -0
- /package/dist/{modelica-BB68FYMa.js → modelica-DuivZReX.js} +0 -0
- /package/dist/{mscgen-BkbzgGGI.js → mscgen-DwD83FOm.js} +0 -0
- /package/dist/{mumps-Cu-28E9F.js → mumps-CdVjp3OE.js} +0 -0
- /package/dist/{nginx-ComVAAGN.js → nginx-Bi9TuNqb.js} +0 -0
- /package/dist/{node-sql-parser-DNGGJ-Rw.js → node-sql-parser-Bet3kHkt.js} +0 -0
- /package/dist/{now-CnuN5fN5.js → now-uNLDfbuW.js} +0 -0
- /package/dist/{ntriples-D9cQiZxZ.js → ntriples-DBS60qLp.js} +0 -0
- /package/dist/{octave-BvtAnPX0.js → octave-BL0tQUFC.js} +0 -0
- /package/dist/{oz-COaVHk2E.js → oz-DBrG4vwi.js} +0 -0
- /package/dist/{pascal-BFpqVD2x.js → pascal-BWV9h8yS.js} +0 -0
- /package/dist/{path-Du6n3sOU.js → path-C_x2ySFi.js} +0 -0
- /package/dist/{perl-DaiORxHP.js → perl-Bm5a83JW.js} +0 -0
- /package/dist/{pig-DFzRhmsF.js → pig-CbJDoHaE.js} +0 -0
- /package/dist/{powershell-BG2LQNKN.js → powershell-tG44m5Cy.js} +0 -0
- /package/dist/{properties-CqJJR5QY.js → properties-DUZGzdb1.js} +0 -0
- /package/dist/{protobuf-WwDYV1yY.js → protobuf-CcoKXY0d.js} +0 -0
- /package/dist/{puppet-QNY3w_uN.js → puppet-BH73L_Gw.js} +0 -0
- /package/dist/{purify.es-Co_dANLh.js → purify.es-BwXbuO3r.js} +0 -0
- /package/dist/{python-4QrQ3Ugi.js → python-NJIxLTZp.js} +0 -0
- /package/dist/{q-DhwXuxE2.js → q-MotBNA65.js} +0 -0
- /package/dist/{r-Df-nkR25.js → r-BUgBPae7.js} +0 -0
- /package/dist/{range-Bn3no95s.js → range-DwpxnYuB.js} +0 -0
- /package/dist/{rpm-Cokue07s.js → rpm-C_PaGodG.js} +0 -0
- /package/dist/{ruby-DrYcL3qF.js → ruby-DFLM2XD8.js} +0 -0
- /package/dist/{sas-CoiPirA5.js → sas-BMyyu8oO.js} +0 -0
- /package/dist/{scheme-CwFLjzHv.js → scheme-Qet9zYAe.js} +0 -0
- /package/dist/{shell-BFV-R24I.js → shell-BKHx4Jjo.js} +0 -0
- /package/dist/{sieve-CxwXF5T9.js → sieve-CVo7dc4j.js} +0 -0
- /package/dist/{simple-mode-DTaJtKPt.js → simple-mode-CVFBIo6d.js} +0 -0
- /package/dist/{smalltalk-QivVOCtX.js → smalltalk-BHr2nCth.js} +0 -0
- /package/dist/{solr-DTkyqJ-Z.js → solr-Bt9XtM2H.js} +0 -0
- /package/dist/{sparql-nKsFk8j7.js → sparql-QSu0ZCcc.js} +0 -0
- /package/dist/{spreadsheet-CER0raqY.js → spreadsheet-BWfuwc0V.js} +0 -0
- /package/dist/{sql-ByOoEONQ.js → sql-BdV3YOCG.js} +0 -0
- /package/dist/{stex-7yEw16Ww.js → stex-Btoi8e7I.js} +0 -0
- /package/dist/{stylus-BLKQAycn.js → stylus-CLZH9-Ps.js} +0 -0
- /package/dist/{swift-CJoKqiKj.js → swift-JNDJdNIE.js} +0 -0
- /package/dist/{tcl-YTeYFNUc.js → tcl-J5aE7aj5.js} +0 -0
- /package/dist/{textile-C6rKQqMQ.js → textile-6Hn05XQM.js} +0 -0
- /package/dist/{tiddlywiki-Cr9xyOY1.js → tiddlywiki-BWn8rSwJ.js} +0 -0
- /package/dist/{tiki-D5JONyfZ.js → tiki-XORjA1c3.js} +0 -0
- /package/dist/{timer-D7JVdX9U.js → timer-pEiW44EO.js} +0 -0
- /package/dist/{toml-DxlPGbRy.js → toml-BceyeuiF.js} +0 -0
- /package/dist/{treemap-qFGzn7xk.js → treemap-BzS5cW_6.js} +0 -0
- /package/dist/{troff-DFCfH7Ku.js → troff-DeMyd5Pf.js} +0 -0
- /package/dist/{ttcn-DAW-ERVP.js → ttcn-DurvvcB-.js} +0 -0
- /package/dist/{ttcn-cfg-CpJ8b7EN.js → ttcn-cfg-BuYui6Rv.js} +0 -0
- /package/dist/{turtle-BneV2f8L.js → turtle-CD8Qf-tp.js} +0 -0
- /package/dist/{vb-D973Vxxh.js → vb-BklM-Nqk.js} +0 -0
- /package/dist/{vbscript-Dckaq3YO.js → vbscript-DbMEEX0d.js} +0 -0
- /package/dist/{velocity-DKty-GUC.js → velocity-CERL-_vq.js} +0 -0
- /package/dist/{verilog-aNaK_biA.js → verilog-BD6jNce6.js} +0 -0
- /package/dist/{vhdl-CQuehnQy.js → vhdl-U-1_N98i.js} +0 -0
- /package/dist/{webidl-Bhg8vaMr.js → webidl-IUn0dzoa.js} +0 -0
- /package/dist/{xquery-D2q16GaM.js → xquery-QeeHdSO2.js} +0 -0
- /package/dist/{yacas-DHGOHnNa.js → yacas-C9XcEPAJ.js} +0 -0
- /package/dist/{z80-BPhTmO22.js → z80-C-nD1oRy.js} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
3
|
import { tableFromIPC } from "@uwdata/flechette";
|
|
4
|
-
import { isNumber } from "lodash-es";
|
|
5
4
|
import { Logger } from "@/utils/Logger";
|
|
6
5
|
import { Objects } from "@/utils/objects";
|
|
7
6
|
import { batchedArrowLoader, createBatchedLoader } from "./batched";
|
|
@@ -42,7 +41,9 @@ const BIG_INT_MIDDLEWARE: Middleware = () => {
|
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
const parsedInt = Number.parseInt(v, 10);
|
|
45
|
-
if (
|
|
44
|
+
if (Number.isNaN(parsedInt)) {
|
|
45
|
+
return v;
|
|
46
|
+
} else {
|
|
46
47
|
const needsBigInt = Math.abs(parsedInt) > Number.MAX_SAFE_INTEGER;
|
|
47
48
|
if (!needsBigInt) {
|
|
48
49
|
return previousIntegerParserWithoutNaN(v);
|
|
@@ -54,8 +55,6 @@ const BIG_INT_MIDDLEWARE: Middleware = () => {
|
|
|
54
55
|
// as BigInt
|
|
55
56
|
return previousIntegerParserWithoutNaN(v);
|
|
56
57
|
}
|
|
57
|
-
} else {
|
|
58
|
-
return "";
|
|
59
58
|
}
|
|
60
59
|
};
|
|
61
60
|
typeParsers.number = (v: string) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
|
-
import { uniq } from "lodash-es";
|
|
4
3
|
import type { TopLevelSpec } from "vega-lite";
|
|
5
4
|
import type { NonNormalizedSpec } from "vega-lite/types_unstable/spec/index.js";
|
|
5
|
+
import { uniq } from "@/utils/arrays";
|
|
6
6
|
import { Marks } from "./marks";
|
|
7
7
|
import {
|
|
8
8
|
type Field,
|
|
@@ -9,6 +9,10 @@ import {
|
|
|
9
9
|
arrayShallowEquals,
|
|
10
10
|
arrayToggle,
|
|
11
11
|
getNextIndex,
|
|
12
|
+
partition,
|
|
13
|
+
range,
|
|
14
|
+
sortBy,
|
|
15
|
+
uniq,
|
|
12
16
|
} from "../arrays";
|
|
13
17
|
|
|
14
18
|
describe("arrays", () => {
|
|
@@ -130,6 +134,120 @@ describe("arrays", () => {
|
|
|
130
134
|
});
|
|
131
135
|
});
|
|
132
136
|
|
|
137
|
+
describe("range", () => {
|
|
138
|
+
it("should create an array of numbers from 0 to length - 1", () => {
|
|
139
|
+
expect(range(5)).toEqual([0, 1, 2, 3, 4]);
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
it("should return empty array for 0", () => {
|
|
143
|
+
expect(range(0)).toEqual([]);
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
it("should return single element for 1", () => {
|
|
147
|
+
expect(range(1)).toEqual([0]);
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
describe("uniq", () => {
|
|
152
|
+
it("should remove duplicate numbers", () => {
|
|
153
|
+
expect(uniq([1, 2, 2, 3, 1])).toEqual([1, 2, 3]);
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
it("should remove duplicate strings", () => {
|
|
157
|
+
expect(uniq(["a", "b", "a", "c"])).toEqual(["a", "b", "c"]);
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
it("should handle empty array", () => {
|
|
161
|
+
expect(uniq([])).toEqual([]);
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
it("should preserve order of first occurrence", () => {
|
|
165
|
+
expect(uniq([3, 1, 2, 1, 3])).toEqual([3, 1, 2]);
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
describe("sortBy", () => {
|
|
170
|
+
it("should sort by a numeric key", () => {
|
|
171
|
+
const items = [{ n: 3 }, { n: 1 }, { n: 2 }];
|
|
172
|
+
expect(sortBy(items, (x) => x.n)).toEqual([{ n: 1 }, { n: 2 }, { n: 3 }]);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
it("should sort by a string key", () => {
|
|
176
|
+
const items = [{ name: "charlie" }, { name: "alice" }, { name: "bob" }];
|
|
177
|
+
expect(sortBy(items, (x) => x.name)).toEqual([
|
|
178
|
+
{ name: "alice" },
|
|
179
|
+
{ name: "bob" },
|
|
180
|
+
{ name: "charlie" },
|
|
181
|
+
]);
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
it("should not mutate the original array", () => {
|
|
185
|
+
const arr = [3, 1, 2];
|
|
186
|
+
sortBy(arr, (x) => x);
|
|
187
|
+
expect(arr).toEqual([3, 1, 2]);
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
it("should handle empty array", () => {
|
|
191
|
+
expect(sortBy([], (x) => x)).toEqual([]);
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
it("should sort null/undefined keys last", () => {
|
|
195
|
+
const items = [
|
|
196
|
+
{ name: "b", v: undefined },
|
|
197
|
+
{ name: "a", v: 1 },
|
|
198
|
+
{ name: "c", v: null },
|
|
199
|
+
{ name: "d", v: 2 },
|
|
200
|
+
];
|
|
201
|
+
const result = sortBy(items, (x) => x.v);
|
|
202
|
+
expect(result.map((x) => x.name)).toEqual(["a", "d", "b", "c"]);
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
it("should sort numeric keys correctly", () => {
|
|
206
|
+
const items = [{ v: 10 }, { v: 2 }, { v: 1 }, { v: 20 }];
|
|
207
|
+
expect(sortBy(items, (x) => x.v)).toEqual([
|
|
208
|
+
{ v: 1 },
|
|
209
|
+
{ v: 2 },
|
|
210
|
+
{ v: 10 },
|
|
211
|
+
{ v: 20 },
|
|
212
|
+
]);
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
describe("partition", () => {
|
|
217
|
+
it("should split array by predicate", () => {
|
|
218
|
+
const [evens, odds] = partition([1, 2, 3, 4, 5], (n) => n % 2 === 0);
|
|
219
|
+
expect(evens).toEqual([2, 4]);
|
|
220
|
+
expect(odds).toEqual([1, 3, 5]);
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
it("should handle all matching", () => {
|
|
224
|
+
const [pass, fail] = partition([2, 4, 6], (n) => n % 2 === 0);
|
|
225
|
+
expect(pass).toEqual([2, 4, 6]);
|
|
226
|
+
expect(fail).toEqual([]);
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
it("should handle none matching", () => {
|
|
230
|
+
const [pass, fail] = partition([1, 3, 5], (n) => n % 2 === 0);
|
|
231
|
+
expect(pass).toEqual([]);
|
|
232
|
+
expect(fail).toEqual([1, 3, 5]);
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
it("should handle empty array", () => {
|
|
236
|
+
const [pass, fail] = partition([], () => true);
|
|
237
|
+
expect(pass).toEqual([]);
|
|
238
|
+
expect(fail).toEqual([]);
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
it("should work with string predicates", () => {
|
|
242
|
+
const [long, short] = partition(
|
|
243
|
+
["hi", "hello", "yo", "greetings"],
|
|
244
|
+
(s) => s.length > 3,
|
|
245
|
+
);
|
|
246
|
+
expect(long).toEqual(["hello", "greetings"]);
|
|
247
|
+
expect(short).toEqual(["hi", "yo"]);
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
|
|
133
251
|
describe("getNextIndex", () => {
|
|
134
252
|
it("should return 0 if listLength is 0", () => {
|
|
135
253
|
expect(getNextIndex(null, 0, "up")).toBe(0);
|
|
@@ -260,4 +260,38 @@ describe("Objects", () => {
|
|
|
260
260
|
expect(result).toEqual({ a: 1, b: 2 });
|
|
261
261
|
});
|
|
262
262
|
});
|
|
263
|
+
|
|
264
|
+
describe("pick", () => {
|
|
265
|
+
it("should pick specified keys", () => {
|
|
266
|
+
const obj = { a: 1, b: 2, c: 3 };
|
|
267
|
+
expect(Objects.pick(obj, ["a", "c"])).toEqual({ a: 1, c: 3 });
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
it("should omit keys not present on the object", () => {
|
|
271
|
+
const obj = { a: 1, b: 2 };
|
|
272
|
+
expect(Objects.pick(obj, ["a", "z"])).toEqual({ a: 1 });
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
it("should preserve undefined values for existing keys", () => {
|
|
276
|
+
const obj = { a: undefined, b: 2 };
|
|
277
|
+
const result = Objects.pick(obj, ["a", "b"]);
|
|
278
|
+
expect(result).toEqual({ a: undefined, b: 2 });
|
|
279
|
+
expect("a" in result).toBe(true);
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
it("should not pick inherited properties", () => {
|
|
283
|
+
const parent = { inherited: true };
|
|
284
|
+
const obj = Object.create(parent);
|
|
285
|
+
obj.own = 1;
|
|
286
|
+
expect(Objects.pick(obj, ["own", "inherited"])).toEqual({ own: 1 });
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
it("should return empty object when picking no keys", () => {
|
|
290
|
+
expect(Objects.pick({ a: 1 }, [])).toEqual({});
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
it("should handle empty object", () => {
|
|
294
|
+
expect(Objects.pick({}, ["a"])).toEqual({});
|
|
295
|
+
});
|
|
296
|
+
});
|
|
263
297
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
import { describe, expect, it } from "vitest";
|
|
3
|
-
import { decodeUtf8, Strings } from "../strings";
|
|
3
|
+
import { capitalize, decodeUtf8, Strings } from "../strings";
|
|
4
4
|
|
|
5
5
|
describe("Strings", () => {
|
|
6
6
|
describe("startCase", () => {
|
|
@@ -58,6 +58,32 @@ describe("Strings", () => {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
+
describe("capitalize", () => {
|
|
62
|
+
it("capitalizes the first character", () => {
|
|
63
|
+
expect(capitalize("hello")).toBe("Hello");
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it("returns empty string for empty input", () => {
|
|
67
|
+
expect(capitalize("")).toBe("");
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it("handles already-capitalized strings", () => {
|
|
71
|
+
expect(capitalize("Hello")).toBe("Hello");
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
it("handles single character", () => {
|
|
75
|
+
expect(capitalize("a")).toBe("A");
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it("preserves the rest of the string", () => {
|
|
79
|
+
expect(capitalize("hELLO")).toBe("HELLO");
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it("handles non-letter first character", () => {
|
|
83
|
+
expect(capitalize("123abc")).toBe("123abc");
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
61
87
|
describe("decodeUtf8", () => {
|
|
62
88
|
it("decodes UTF-8 array to string", () => {
|
|
63
89
|
const encoder = new TextEncoder();
|
package/src/utils/arrays.ts
CHANGED
|
@@ -61,6 +61,73 @@ export const Arrays = {
|
|
|
61
61
|
},
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Create an array of numbers from 0 to length - 1.
|
|
66
|
+
*/
|
|
67
|
+
export function range(length: number): number[] {
|
|
68
|
+
return Array.from({ length }, (_, i) => i);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Remove duplicate values from an array.
|
|
73
|
+
*/
|
|
74
|
+
export function uniq<T>(arr: readonly T[]): T[] {
|
|
75
|
+
return [...new Set(arr)];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Sort an array by a key function, returning a new array.
|
|
80
|
+
*/
|
|
81
|
+
export function sortBy<T>(
|
|
82
|
+
arr: readonly T[],
|
|
83
|
+
key: (item: T) => string | number | undefined | null,
|
|
84
|
+
): T[] {
|
|
85
|
+
// Decorate/sort/undecorate to compute keys once per element
|
|
86
|
+
return arr
|
|
87
|
+
.map((item) => [key(item), item] as const)
|
|
88
|
+
.sort(([ka], [kb]) => {
|
|
89
|
+
// Nullish values sort last
|
|
90
|
+
if (ka == null && kb == null) {
|
|
91
|
+
return 0;
|
|
92
|
+
}
|
|
93
|
+
if (ka == null) {
|
|
94
|
+
return 1;
|
|
95
|
+
}
|
|
96
|
+
if (kb == null) {
|
|
97
|
+
return -1;
|
|
98
|
+
}
|
|
99
|
+
if (ka < kb) {
|
|
100
|
+
return -1;
|
|
101
|
+
}
|
|
102
|
+
if (ka > kb) {
|
|
103
|
+
return 1;
|
|
104
|
+
}
|
|
105
|
+
return 0;
|
|
106
|
+
})
|
|
107
|
+
.map(([, item]) => item);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Split an array into two groups based on a predicate.
|
|
112
|
+
* Returns [pass, fail] where pass contains items that match
|
|
113
|
+
* and fail contains items that don't.
|
|
114
|
+
*/
|
|
115
|
+
export function partition<T>(
|
|
116
|
+
arr: readonly T[],
|
|
117
|
+
predicate: (item: T) => boolean,
|
|
118
|
+
): [T[], T[]] {
|
|
119
|
+
const pass: T[] = [];
|
|
120
|
+
const fail: T[] = [];
|
|
121
|
+
for (const item of arr) {
|
|
122
|
+
if (predicate(item)) {
|
|
123
|
+
pass.push(item);
|
|
124
|
+
} else {
|
|
125
|
+
fail.push(item);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return [pass, fail];
|
|
129
|
+
}
|
|
130
|
+
|
|
64
131
|
export function arrayToggle<T>(arr: T[], item: T): T[] {
|
|
65
132
|
if (!arr) {
|
|
66
133
|
return [item];
|
package/src/utils/objects.ts
CHANGED
|
@@ -105,4 +105,18 @@ export const Objects = {
|
|
|
105
105
|
const set = new Set<K>(keys);
|
|
106
106
|
return Objects.filter(obj, (_, key) => !set.has(key));
|
|
107
107
|
},
|
|
108
|
+
|
|
109
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
110
|
+
pick<V extends Record<string, any>, K extends string>(
|
|
111
|
+
obj: V,
|
|
112
|
+
keys: readonly K[],
|
|
113
|
+
): Pick<V, K & keyof V> {
|
|
114
|
+
const result = {} as Record<string, unknown>;
|
|
115
|
+
for (const key of keys) {
|
|
116
|
+
if (Object.hasOwn(obj, key)) {
|
|
117
|
+
result[key] = obj[key];
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return result as Pick<V, K & keyof V>;
|
|
121
|
+
},
|
|
108
122
|
};
|
package/src/utils/strings.ts
CHANGED
|
@@ -1,28 +1,48 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
-
import { startCase } from "lodash-es";
|
|
3
2
|
import { Logger } from "./Logger";
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Capitalize the first character of a string.
|
|
6
|
+
*/
|
|
7
|
+
export function capitalize(str: string): string {
|
|
8
|
+
if (!str) {
|
|
9
|
+
return "";
|
|
10
|
+
}
|
|
11
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Convert a string to start case (capitalize each word).
|
|
16
|
+
* Handles camelCase, snake_case, kebab-case, and space-separated strings.
|
|
17
|
+
* Returns the original string unchanged if it contains no letters.
|
|
18
|
+
*/
|
|
19
|
+
export function startCase(str: string): string {
|
|
20
|
+
if (!str) {
|
|
21
|
+
return "";
|
|
22
|
+
}
|
|
18
23
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
if (typeof str !== "string") {
|
|
25
|
+
Logger.error(str);
|
|
26
|
+
throw new TypeError(`Expected string, got ${typeof str}`);
|
|
27
|
+
}
|
|
23
28
|
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
// If has no letters, return the string as-is
|
|
30
|
+
if (!/[A-Za-z]/.test(str)) {
|
|
31
|
+
return str;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return str
|
|
35
|
+
.replaceAll(/([\da-z])([A-Z])/g, "$1 $2") // camelCase → camel Case
|
|
36
|
+
.replaceAll(/([A-Z]+)([A-Z][a-z])/g, "$1 $2") // ABCDef → ABC Def
|
|
37
|
+
.replaceAll(/[\s_-]+/g, " ") // snake_case/kebab-case → spaces
|
|
38
|
+
.trim()
|
|
39
|
+
.split(" ")
|
|
40
|
+
.map(capitalize)
|
|
41
|
+
.join(" ");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const Strings = {
|
|
45
|
+
startCase,
|
|
26
46
|
|
|
27
47
|
htmlEscape: (str: string | undefined): string | undefined => {
|
|
28
48
|
if (!str) {
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { B as isArray_default, C as isArrayLike_default, F as _getNative_default, H as _baseGetTag_default, I as _toSource_default, U as _Symbol_default, V as isObjectLike_default, W as _root_default, b as _isPrototype_default, c as _Stack_default, d as _Map_default, h as isTypedArray_default, k as eq_default, m as _arrayLikeKeys_default, o as _Uint8Array_default, p as _overArg_default, u as _MapCache_default, v as isBuffer_default } from "./isArrayLikeObject-C-hFPChh.js";
|
|
2
|
-
var _WeakMap_default = _getNative_default(_root_default, "WeakMap"), _nativeKeys_default = _overArg_default(Object.keys, Object), hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
3
|
-
function baseKeys(a) {
|
|
4
|
-
if (!_isPrototype_default(a)) return _nativeKeys_default(a);
|
|
5
|
-
var P = [];
|
|
6
|
-
for (var F in Object(a)) hasOwnProperty$2.call(a, F) && F != "constructor" && P.push(F);
|
|
7
|
-
return P;
|
|
8
|
-
}
|
|
9
|
-
var _baseKeys_default = baseKeys;
|
|
10
|
-
function keys(a) {
|
|
11
|
-
return isArrayLike_default(a) ? _arrayLikeKeys_default(a) : _baseKeys_default(a);
|
|
12
|
-
}
|
|
13
|
-
var keys_default = keys;
|
|
14
|
-
function arrayPush(a, P) {
|
|
15
|
-
for (var F = -1, I = P.length, L = a.length; ++F < I; ) a[L + F] = P[F];
|
|
16
|
-
return a;
|
|
17
|
-
}
|
|
18
|
-
var _arrayPush_default = arrayPush;
|
|
19
|
-
function arrayFilter(a, P) {
|
|
20
|
-
for (var F = -1, I = a == null ? 0 : a.length, L = 0, R = []; ++F < I; ) {
|
|
21
|
-
var z = a[F];
|
|
22
|
-
P(z, F, a) && (R[L++] = z);
|
|
23
|
-
}
|
|
24
|
-
return R;
|
|
25
|
-
}
|
|
26
|
-
var _arrayFilter_default = arrayFilter;
|
|
27
|
-
function stubArray() {
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
var stubArray_default = stubArray, propertyIsEnumerable = Object.prototype.propertyIsEnumerable, nativeGetSymbols = Object.getOwnPropertySymbols, _getSymbols_default = nativeGetSymbols ? function(a) {
|
|
31
|
-
return a == null ? [] : (a = Object(a), _arrayFilter_default(nativeGetSymbols(a), function(P) {
|
|
32
|
-
return propertyIsEnumerable.call(a, P);
|
|
33
|
-
}));
|
|
34
|
-
} : stubArray_default;
|
|
35
|
-
function baseGetAllKeys(P, F, I) {
|
|
36
|
-
var L = F(P);
|
|
37
|
-
return isArray_default(P) ? L : _arrayPush_default(L, I(P));
|
|
38
|
-
}
|
|
39
|
-
var _baseGetAllKeys_default = baseGetAllKeys;
|
|
40
|
-
function getAllKeys(a) {
|
|
41
|
-
return _baseGetAllKeys_default(a, keys_default, _getSymbols_default);
|
|
42
|
-
}
|
|
43
|
-
var _getAllKeys_default = getAllKeys, _DataView_default = _getNative_default(_root_default, "DataView"), _Promise_default = _getNative_default(_root_default, "Promise"), _Set_default = _getNative_default(_root_default, "Set"), mapTag$1 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$1 = "[object Set]", weakMapTag = "[object WeakMap]", dataViewTag$1 = "[object DataView]", dataViewCtorString = _toSource_default(_DataView_default), mapCtorString = _toSource_default(_Map_default), promiseCtorString = _toSource_default(_Promise_default), setCtorString = _toSource_default(_Set_default), weakMapCtorString = _toSource_default(_WeakMap_default), getTag = _baseGetTag_default;
|
|
44
|
-
(_DataView_default && getTag(new _DataView_default(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$1 || _Map_default && getTag(new _Map_default()) != mapTag$1 || _Promise_default && getTag(_Promise_default.resolve()) != promiseTag || _Set_default && getTag(new _Set_default()) != setTag$1 || _WeakMap_default && getTag(new _WeakMap_default()) != weakMapTag) && (getTag = function(a) {
|
|
45
|
-
var P = _baseGetTag_default(a), F = P == objectTag$1 ? a.constructor : void 0, R = F ? _toSource_default(F) : "";
|
|
46
|
-
if (R) switch (R) {
|
|
47
|
-
case dataViewCtorString:
|
|
48
|
-
return dataViewTag$1;
|
|
49
|
-
case mapCtorString:
|
|
50
|
-
return mapTag$1;
|
|
51
|
-
case promiseCtorString:
|
|
52
|
-
return promiseTag;
|
|
53
|
-
case setCtorString:
|
|
54
|
-
return setTag$1;
|
|
55
|
-
case weakMapCtorString:
|
|
56
|
-
return weakMapTag;
|
|
57
|
-
}
|
|
58
|
-
return P;
|
|
59
|
-
});
|
|
60
|
-
var _getTag_default = getTag, HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
61
|
-
function setCacheAdd(a) {
|
|
62
|
-
return this.__data__.set(a, HASH_UNDEFINED), this;
|
|
63
|
-
}
|
|
64
|
-
var _setCacheAdd_default = setCacheAdd;
|
|
65
|
-
function setCacheHas(a) {
|
|
66
|
-
return this.__data__.has(a);
|
|
67
|
-
}
|
|
68
|
-
var _setCacheHas_default = setCacheHas;
|
|
69
|
-
function SetCache(a) {
|
|
70
|
-
var P = -1, F = a == null ? 0 : a.length;
|
|
71
|
-
for (this.__data__ = new _MapCache_default(); ++P < F; ) this.add(a[P]);
|
|
72
|
-
}
|
|
73
|
-
SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd_default, SetCache.prototype.has = _setCacheHas_default;
|
|
74
|
-
var _SetCache_default = SetCache;
|
|
75
|
-
function arraySome(a, P) {
|
|
76
|
-
for (var F = -1, I = a == null ? 0 : a.length; ++F < I; ) if (P(a[F], F, a)) return true;
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
var _arraySome_default = arraySome;
|
|
80
|
-
function cacheHas(a, P) {
|
|
81
|
-
return a.has(P);
|
|
82
|
-
}
|
|
83
|
-
var _cacheHas_default = cacheHas, COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
84
|
-
function equalArrays(a, P, F, I, L, R) {
|
|
85
|
-
var z = F & COMPARE_PARTIAL_FLAG$3, B = a.length, V = P.length;
|
|
86
|
-
if (B != V && !(z && V > B)) return false;
|
|
87
|
-
var H = R.get(a), U = R.get(P);
|
|
88
|
-
if (H && U) return H == P && U == a;
|
|
89
|
-
var W = -1, G = true, K = F & COMPARE_UNORDERED_FLAG$1 ? new _SetCache_default() : void 0;
|
|
90
|
-
for (R.set(a, P), R.set(P, a); ++W < B; ) {
|
|
91
|
-
var q = a[W], J = P[W];
|
|
92
|
-
if (I) var Y = z ? I(J, q, W, P, a, R) : I(q, J, W, a, P, R);
|
|
93
|
-
if (Y !== void 0) {
|
|
94
|
-
if (Y) continue;
|
|
95
|
-
G = false;
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
if (K) {
|
|
99
|
-
if (!_arraySome_default(P, function(a2, P2) {
|
|
100
|
-
if (!_cacheHas_default(K, P2) && (q === a2 || L(q, a2, F, I, R))) return K.push(P2);
|
|
101
|
-
})) {
|
|
102
|
-
G = false;
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
} else if (!(q === J || L(q, J, F, I, R))) {
|
|
106
|
-
G = false;
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return R.delete(a), R.delete(P), G;
|
|
111
|
-
}
|
|
112
|
-
var _equalArrays_default = equalArrays;
|
|
113
|
-
function mapToArray(a) {
|
|
114
|
-
var P = -1, F = Array(a.size);
|
|
115
|
-
return a.forEach(function(a2, I) {
|
|
116
|
-
F[++P] = [I, a2];
|
|
117
|
-
}), F;
|
|
118
|
-
}
|
|
119
|
-
var _mapToArray_default = mapToArray;
|
|
120
|
-
function setToArray(a) {
|
|
121
|
-
var P = -1, F = Array(a.size);
|
|
122
|
-
return a.forEach(function(a2) {
|
|
123
|
-
F[++P] = a2;
|
|
124
|
-
}), F;
|
|
125
|
-
}
|
|
126
|
-
var _setToArray_default = setToArray, COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2, boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", symbolProto = _Symbol_default ? _Symbol_default.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
127
|
-
function equalByTag(a, P, F, I, L, R, z) {
|
|
128
|
-
switch (F) {
|
|
129
|
-
case dataViewTag:
|
|
130
|
-
if (a.byteLength != P.byteLength || a.byteOffset != P.byteOffset) return false;
|
|
131
|
-
a = a.buffer, P = P.buffer;
|
|
132
|
-
case arrayBufferTag:
|
|
133
|
-
return !(a.byteLength != P.byteLength || !R(new _Uint8Array_default(a), new _Uint8Array_default(P)));
|
|
134
|
-
case boolTag:
|
|
135
|
-
case dateTag:
|
|
136
|
-
case numberTag:
|
|
137
|
-
return eq_default(+a, +P);
|
|
138
|
-
case errorTag:
|
|
139
|
-
return a.name == P.name && a.message == P.message;
|
|
140
|
-
case regexpTag:
|
|
141
|
-
case stringTag:
|
|
142
|
-
return a == P + "";
|
|
143
|
-
case mapTag:
|
|
144
|
-
var B = _mapToArray_default;
|
|
145
|
-
case setTag:
|
|
146
|
-
var V = I & COMPARE_PARTIAL_FLAG$2;
|
|
147
|
-
if (B || (B = _setToArray_default), a.size != P.size && !V) return false;
|
|
148
|
-
var H = z.get(a);
|
|
149
|
-
if (H) return H == P;
|
|
150
|
-
I |= COMPARE_UNORDERED_FLAG, z.set(a, P);
|
|
151
|
-
var U = _equalArrays_default(B(a), B(P), I, L, R, z);
|
|
152
|
-
return z.delete(a), U;
|
|
153
|
-
case symbolTag:
|
|
154
|
-
if (symbolValueOf) return symbolValueOf.call(a) == symbolValueOf.call(P);
|
|
155
|
-
}
|
|
156
|
-
return false;
|
|
157
|
-
}
|
|
158
|
-
var _equalByTag_default = equalByTag, COMPARE_PARTIAL_FLAG$1 = 1, hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
159
|
-
function equalObjects(a, P, F, I, L, R) {
|
|
160
|
-
var z = F & COMPARE_PARTIAL_FLAG$1, B = _getAllKeys_default(a), V = B.length;
|
|
161
|
-
if (V != _getAllKeys_default(P).length && !z) return false;
|
|
162
|
-
for (var H = V; H--; ) {
|
|
163
|
-
var U = B[H];
|
|
164
|
-
if (!(z ? U in P : hasOwnProperty$1.call(P, U))) return false;
|
|
165
|
-
}
|
|
166
|
-
var W = R.get(a), G = R.get(P);
|
|
167
|
-
if (W && G) return W == P && G == a;
|
|
168
|
-
var K = true;
|
|
169
|
-
R.set(a, P), R.set(P, a);
|
|
170
|
-
for (var q = z; ++H < V; ) {
|
|
171
|
-
U = B[H];
|
|
172
|
-
var J = a[U], Y = P[U];
|
|
173
|
-
if (I) var X = z ? I(Y, J, U, P, a, R) : I(J, Y, U, a, P, R);
|
|
174
|
-
if (!(X === void 0 ? J === Y || L(J, Y, F, I, R) : X)) {
|
|
175
|
-
K = false;
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
q || (q = U == "constructor");
|
|
179
|
-
}
|
|
180
|
-
if (K && !q) {
|
|
181
|
-
var Z = a.constructor, Q = P.constructor;
|
|
182
|
-
Z != Q && "constructor" in a && "constructor" in P && !(typeof Z == "function" && Z instanceof Z && typeof Q == "function" && Q instanceof Q) && (K = false);
|
|
183
|
-
}
|
|
184
|
-
return R.delete(a), R.delete(P), K;
|
|
185
|
-
}
|
|
186
|
-
var _equalObjects_default = equalObjects, COMPARE_PARTIAL_FLAG = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
187
|
-
function baseIsEqualDeep(P, F, I, L, R, z) {
|
|
188
|
-
var B = isArray_default(P), V = isArray_default(F), U = B ? arrayTag : _getTag_default(P), G = V ? arrayTag : _getTag_default(F);
|
|
189
|
-
U = U == argsTag ? objectTag : U, G = G == argsTag ? objectTag : G;
|
|
190
|
-
var K = U == objectTag, q = G == objectTag, J = U == G;
|
|
191
|
-
if (J && isBuffer_default(P)) {
|
|
192
|
-
if (!isBuffer_default(F)) return false;
|
|
193
|
-
B = true, K = false;
|
|
194
|
-
}
|
|
195
|
-
if (J && !K) return z || (z = new _Stack_default()), B || isTypedArray_default(P) ? _equalArrays_default(P, F, I, L, R, z) : _equalByTag_default(P, F, U, I, L, R, z);
|
|
196
|
-
if (!(I & COMPARE_PARTIAL_FLAG)) {
|
|
197
|
-
var Y = K && hasOwnProperty.call(P, "__wrapped__"), Z = q && hasOwnProperty.call(F, "__wrapped__");
|
|
198
|
-
if (Y || Z) {
|
|
199
|
-
var Q = Y ? P.value() : P, $ = Z ? F.value() : F;
|
|
200
|
-
return z || (z = new _Stack_default()), R(Q, $, I, L, z);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
return J ? (z || (z = new _Stack_default()), _equalObjects_default(P, F, I, L, R, z)) : false;
|
|
204
|
-
}
|
|
205
|
-
var _baseIsEqualDeep_default = baseIsEqualDeep;
|
|
206
|
-
function baseIsEqual(a, P, F, I, L) {
|
|
207
|
-
return a === P ? true : a == null || P == null || !isObjectLike_default(a) && !isObjectLike_default(P) ? a !== a && P !== P : _baseIsEqualDeep_default(a, P, F, I, baseIsEqual, L);
|
|
208
|
-
}
|
|
209
|
-
var _baseIsEqual_default = baseIsEqual;
|
|
210
|
-
export {
|
|
211
|
-
_SetCache_default as a,
|
|
212
|
-
_getAllKeys_default as c,
|
|
213
|
-
stubArray_default as d,
|
|
214
|
-
_arrayFilter_default as f,
|
|
215
|
-
_baseKeys_default as h,
|
|
216
|
-
_arraySome_default as i,
|
|
217
|
-
_baseGetAllKeys_default as l,
|
|
218
|
-
keys_default as m,
|
|
219
|
-
_setToArray_default as n,
|
|
220
|
-
_getTag_default as o,
|
|
221
|
-
_arrayPush_default as p,
|
|
222
|
-
_cacheHas_default as r,
|
|
223
|
-
_Set_default as s,
|
|
224
|
-
_baseIsEqual_default as t,
|
|
225
|
-
_getSymbols_default as u
|
|
226
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { O as _assignValue_default, j as _isIndex_default, z as isObject_default } from "./isArrayLikeObject-C-hFPChh.js";
|
|
2
|
-
import { a as _baseGet_default, o as _toKey_default, r as _baseFlatten_default, s as _castPath_default } from "./hasIn-eLCPDloT.js";
|
|
3
|
-
function flatten(e) {
|
|
4
|
-
return e != null && e.length ? _baseFlatten_default(e, 1) : [];
|
|
5
|
-
}
|
|
6
|
-
var flatten_default = flatten;
|
|
7
|
-
function baseSet(i, o, s, c) {
|
|
8
|
-
if (!isObject_default(i)) return i;
|
|
9
|
-
o = _castPath_default(o, i);
|
|
10
|
-
for (var l = -1, u = o.length, d = u - 1, f = i; f != null && ++l < u; ) {
|
|
11
|
-
var p = _toKey_default(o[l]), m = s;
|
|
12
|
-
if (p === "__proto__" || p === "constructor" || p === "prototype") return i;
|
|
13
|
-
if (l != d) {
|
|
14
|
-
var h = f[p];
|
|
15
|
-
m = c ? c(h, p, f) : void 0, m === void 0 && (m = isObject_default(h) ? h : _isIndex_default(o[l + 1]) ? [] : {});
|
|
16
|
-
}
|
|
17
|
-
_assignValue_default(f, p, m), f = f[p];
|
|
18
|
-
}
|
|
19
|
-
return i;
|
|
20
|
-
}
|
|
21
|
-
var _baseSet_default = baseSet;
|
|
22
|
-
function basePickBy(e, n, r) {
|
|
23
|
-
for (var a = -1, o = n.length, s = {}; ++a < o; ) {
|
|
24
|
-
var c = n[a], l = _baseGet_default(e, c);
|
|
25
|
-
r(l, c) && _baseSet_default(s, _castPath_default(c, e), l);
|
|
26
|
-
}
|
|
27
|
-
return s;
|
|
28
|
-
}
|
|
29
|
-
var _basePickBy_default = basePickBy;
|
|
30
|
-
export {
|
|
31
|
-
_baseSet_default as n,
|
|
32
|
-
flatten_default as r,
|
|
33
|
-
_basePickBy_default as t
|
|
34
|
-
};
|