jaml-ui 0.31.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/README.md +193 -61
  2. package/assets/fonts/README.md +14 -0
  3. package/assets/fonts/m6x11.ttf +0 -0
  4. package/assets/fonts/m6x11plus.ttf +0 -0
  5. package/dist/.gitkeep +0 -0
  6. package/dist/assets/searchPoolWorker-6mF4VfgO.js +40 -0
  7. package/dist/assets/searchPoolWorker-6mF4VfgO.js.map +1 -0
  8. package/dist/assets.d.ts +1 -1
  9. package/dist/chunks/{assets-D80i9sMq.js → assets-Bb6wV80_.js} +3 -3
  10. package/dist/chunks/assets-Bb6wV80_.js.map +1 -0
  11. package/dist/chunks/jamlSeeds-3ILzc_rj.js +66 -0
  12. package/dist/chunks/jamlSeeds-3ILzc_rj.js.map +1 -0
  13. package/dist/chunks/{runtime-C-It0krH.js → runtime-Bklr4A-D.js} +2 -2
  14. package/dist/chunks/{runtime-C-It0krH.js.map → runtime-Bklr4A-D.js.map} +1 -1
  15. package/dist/chunks/{searchPoolWorker-DUope_8B.js → searchPoolWorker-Dqhc9lfv.js} +2 -2
  16. package/dist/chunks/searchPoolWorker-Dqhc9lfv.js.map +1 -0
  17. package/dist/chunks/{spriteMapper-C4_5G1Z6.js → spriteMapper-CajFGgUU.js} +2 -2
  18. package/dist/chunks/spriteMapper-CajFGgUU.js.map +1 -0
  19. package/dist/chunks/tokens-Qrhlekc4.js.map +1 -1
  20. package/dist/chunks/{ui-DRov81qO.js → ui-UqEG1EZ9.js} +1530 -1178
  21. package/dist/chunks/ui-UqEG1EZ9.js.map +1 -0
  22. package/dist/components/CardFan.d.ts +0 -9
  23. package/dist/components/JamlAestheticSelector.d.ts +3 -3
  24. package/dist/components/JamlIde.d.ts +1 -4
  25. package/dist/components/JamlSeedSpinner.d.ts +3 -1
  26. package/dist/components/Jamlyzer.d.ts +5 -8
  27. package/dist/components/MotelyHello.d.ts +5 -0
  28. package/dist/components/StandardCard.d.ts +14 -0
  29. package/dist/components/cardEnums.d.ts +48 -0
  30. package/dist/components/jamlMap/JokerPicker.d.ts +2 -1
  31. package/dist/components/jamlMap/MysterySlot.d.ts +2 -1
  32. package/dist/core.d.ts +1 -0
  33. package/dist/core.js +7 -7
  34. package/dist/core.js.map +1 -1
  35. package/dist/hooks/useAnalyzer.d.ts +1 -1
  36. package/dist/hooks/useSearchPool.d.ts +1 -1
  37. package/dist/index.d.ts +6 -4
  38. package/dist/index.js +3245 -3205
  39. package/dist/index.js.map +1 -1
  40. package/dist/lib/data/constants.d.ts +3 -3
  41. package/dist/lib/jaml/jamlData.d.ts +1 -0
  42. package/dist/lib/jaml/jamlSchema.d.ts +10 -60
  43. package/dist/lib/jaml/jamlSeeds.d.ts +7 -0
  44. package/dist/lib/types.d.ts +3 -2
  45. package/dist/motely.d.ts +1 -2
  46. package/dist/motely.js +380 -428
  47. package/dist/motely.js.map +1 -1
  48. package/dist/r3f.js +16 -16
  49. package/dist/r3f.js.map +1 -1
  50. package/dist/ui/JimboBadge.d.ts +1 -1
  51. package/dist/ui/{footer.d.ts → JimboBalatroFooter.d.ts} +4 -2
  52. package/dist/ui/JimboButton.d.ts +62 -0
  53. package/dist/ui/JimboCopyButton.d.ts +27 -0
  54. package/dist/ui/JimboDeckAndStakeSelectorModal.d.ts +30 -0
  55. package/dist/ui/JimboIconButton.d.ts +8 -3
  56. package/dist/ui/JimboInlineEdit.d.ts +16 -0
  57. package/dist/ui/JimboListItem.d.ts +11 -0
  58. package/dist/ui/JimboPanelSplitter.d.ts +8 -0
  59. package/dist/ui/JimboSeedCopyChip.d.ts +16 -0
  60. package/dist/ui/JimboSelect.d.ts +15 -3
  61. package/dist/ui/JimboSpinner.d.ts +18 -0
  62. package/dist/ui/JimboStepper.d.ts +19 -7
  63. package/dist/ui/JimboValueBadge.d.ts +19 -0
  64. package/dist/ui/codeBlock.d.ts +4 -0
  65. package/dist/ui/hooks.d.ts +30 -3
  66. package/dist/ui/jimbo.css +1 -1
  67. package/dist/ui/jimboApp.d.ts +2 -2
  68. package/dist/ui/jimboBackground.d.ts +12 -5
  69. package/dist/ui/jimboCopyRow.d.ts +2 -2
  70. package/dist/ui/jimboInset.d.ts +3 -3
  71. package/dist/ui/jimboLayout.d.ts +25 -0
  72. package/dist/ui/jimboLink.d.ts +12 -0
  73. package/dist/ui/jimboTabs.d.ts +6 -6
  74. package/dist/ui/jimboText.d.ts +2 -3
  75. package/dist/ui/panel.d.ts +1 -14
  76. package/dist/ui.d.ts +13 -4
  77. package/dist/ui.js +3 -3
  78. package/fonts.css +20 -5
  79. package/package.json +14 -14
  80. package/assets/fonts/m6x11plusplus.otf +0 -0
  81. package/dist/assets/searchPoolWorker-BPJ3Mf0o.js +0 -40
  82. package/dist/assets/searchPoolWorker-BPJ3Mf0o.js.map +0 -1
  83. package/dist/chunks/Layer-Ckd_T6Fw.js +0 -17
  84. package/dist/chunks/Layer-Ckd_T6Fw.js.map +0 -1
  85. package/dist/chunks/assets-D80i9sMq.js.map +0 -1
  86. package/dist/chunks/searchPoolWorker-DUope_8B.js.map +0 -1
  87. package/dist/chunks/spriteMapper-C4_5G1Z6.js.map +0 -1
  88. package/dist/chunks/ui-DRov81qO.js.map +0 -1
  89. package/dist/components/CardList.d.ts +0 -8
  90. package/dist/components/Standardcard.d.ts +0 -18
  91. package/dist/config.d.ts +0 -10
  92. package/dist/fonts/m6x11plus.otf +0 -0
  93. package/dist/hooks/useMotelyRuntime.d.ts +0 -11
  94. package/dist/providers/MotelyProvider.d.ts +0 -11
  95. package/dist/ui/JimboFloating.d.ts +0 -8
  96. package/dist/ui/PanelSplitter.d.ts +0 -8
  97. package/jaml.schema.json +0 -1219
package/dist/motely.js CHANGED
@@ -1,13 +1,12 @@
1
1
  "use client";
2
- import { n as e } from "./chunks/assets-D80i9sMq.js";
3
- import { d as t, h as n, r, t as i } from "./chunks/spriteMapper-C4_5G1Z6.js";
4
- import { t as a } from "./chunks/runtime-C-It0krH.js";
5
- import { createContext as o, useCallback as s, useContext as c, useEffect as l, useMemo as u, useState as d } from "react";
6
- import { jsx as f } from "react/jsx-runtime";
7
- import p, { Motely as ee, Motely as m, default as h } from "motely-wasm";
8
- import { IFileMounter as g, PermissionMode as _ } from "motely-wasm/bootsharp/file-system";
2
+ import { n as e } from "./chunks/assets-Bb6wV80_.js";
3
+ import { d as t, h as n, r, t as i } from "./chunks/spriteMapper-CajFGgUU.js";
4
+ import { n as a, t as o } from "./chunks/runtime-Bklr4A-D.js";
5
+ import { useCallback as s, useEffect as c, useState as l } from "react";
6
+ import u, { Motely as d, Motely as f } from "motely-wasm";
7
+ import { IFileMounter as p, PermissionMode as m } from "motely-wasm/bootsharp/file-system";
9
8
  //#region src/decode/motelyItemFormats.ts
10
- var v = Object.freeze({
9
+ var h = Object.freeze({
11
10
  4096: Object.freeze({
12
11
  value: 4096,
13
12
  enumName: "TwoOfClubs",
@@ -1570,277 +1569,277 @@ var v = Object.freeze({
1570
1569
  })
1571
1570
  });
1572
1571
  Object.freeze({
1573
- AbstractJoker: v[20504],
1574
- AceOfClubs: v[4108],
1575
- AceOfDiamonds: v[4124],
1576
- AceOfHearts: v[4140],
1577
- AceOfSpades: v[4156],
1578
- Acrobat: v[21546],
1579
- AncientJoker: v[22533],
1580
- Ankh: v[8202],
1581
- Arrowhead: v[21554],
1582
- Astronomer: v[21566],
1583
- Aura: v[8196],
1584
- Banner: v[20497],
1585
- Baron: v[22530],
1586
- BaseballCard: v[22532],
1587
- BlackHole: v[8209],
1588
- Blackboard: v[21517],
1589
- Bloodstone: v[21553],
1590
- BlueJoker: v[20517],
1591
- Blueprint: v[22535],
1592
- Bootstraps: v[21567],
1593
- Brainstorm: v[22545],
1594
- Bull: v[21537],
1595
- Burglar: v[21516],
1596
- BurntJoker: v[22547],
1597
- BusinessCard: v[20510],
1598
- Campfire: v[22534],
1599
- Canio: v[23552],
1600
- CardSharp: v[21521],
1601
- Cartomancer: v[21565],
1602
- Castle: v[21544],
1603
- Cavendish: v[20522],
1604
- CeremonialDagger: v[21507],
1605
- Ceres: v[16394],
1606
- Certificate: v[21549],
1607
- ChaostheClown: v[20502],
1608
- Chicot: v[23555],
1609
- CleverJoker: v[20492],
1610
- Cloud9: v[21527],
1611
- Constellation: v[21519],
1612
- CraftyJoker: v[20494],
1613
- CrazyJoker: v[20488],
1614
- CreditCard: v[20496],
1615
- Cryptid: v[8207],
1616
- DNA: v[22528],
1617
- Death: v[12301],
1618
- DejaVu: v[8203],
1619
- DelayedGratification: v[20505],
1620
- DeviousJoker: v[20493],
1621
- DietCola: v[21538],
1622
- DriversLicense: v[22546],
1623
- DrollJoker: v[20489],
1624
- Drunkard: v[20532],
1625
- Dusk: v[21510],
1626
- Earth: v[16386],
1627
- Ectoplasm: v[8200],
1628
- Egg: v[20513],
1629
- EightBall: v[20499],
1630
- EightOfClubs: v[4102],
1631
- EightOfDiamonds: v[4118],
1632
- EightOfHearts: v[4134],
1633
- EightOfSpades: v[4150],
1634
- Eris: v[16395],
1635
- Erosion: v[21533],
1636
- EvenSteven: v[20507],
1637
- FacelessJoker: v[20518],
1638
- Familiar: v[8192],
1639
- Fibonacci: v[21511],
1640
- FiveOfClubs: v[4099],
1641
- FiveOfDiamonds: v[4115],
1642
- FiveOfHearts: v[4131],
1643
- FiveOfSpades: v[4147],
1644
- FlashCard: v[21540],
1645
- FlowerPot: v[21558],
1646
- FortuneTeller: v[20530],
1647
- FourFingers: v[21505],
1648
- FourOfClubs: v[4098],
1649
- FourOfDiamonds: v[4114],
1650
- FourOfHearts: v[4130],
1651
- FourOfSpades: v[4146],
1652
- GiftCard: v[21531],
1653
- GlassJoker: v[21556],
1654
- GluttonousJoker: v[20484],
1655
- GoldenJoker: v[20533],
1656
- GoldenTicket: v[20537],
1657
- GreedyJoker: v[20481],
1658
- GreenJoker: v[20519],
1659
- Grim: v[8193],
1660
- GrosMichel: v[20506],
1661
- Hack: v[21513],
1662
- HalfJoker: v[20495],
1663
- Hallucination: v[20529],
1664
- HangingChad: v[20539],
1665
- Hex: v[8204],
1666
- Hiker: v[21520],
1667
- HitTheRoad: v[22537],
1668
- Hologram: v[21526],
1669
- IceCream: v[20515],
1670
- Immolate: v[8201],
1671
- Incantation: v[8194],
1672
- Invalid: v[61440],
1673
- InvisibleJoker: v[22544],
1674
- JackOfClubs: v[4105],
1675
- JackOfDiamonds: v[4121],
1676
- JackOfHearts: v[4137],
1677
- JackOfSpades: v[4153],
1678
- Joker: v[20480],
1679
- JokerExcludedByStream: v[61442],
1680
- JokerStencil: v[21504],
1681
- JollyJoker: v[20485],
1682
- Judgement: v[12308],
1683
- Juggler: v[20531],
1684
- Jupiter: v[16388],
1685
- Justice: v[12296],
1686
- KingOfClubs: v[4107],
1687
- KingOfDiamonds: v[4123],
1688
- KingOfHearts: v[4139],
1689
- KingOfSpades: v[4155],
1690
- LoyaltyCard: v[21509],
1691
- Luchador: v[21530],
1692
- LuckyCat: v[21536],
1693
- LustyJoker: v[20482],
1694
- MadJoker: v[20487],
1695
- Madness: v[21522],
1696
- MailInRebate: v[20528],
1697
- MarbleJoker: v[21508],
1698
- Mars: v[16387],
1699
- Matador: v[21563],
1700
- Medium: v[8206],
1701
- Mercury: v[16384],
1702
- MerryAndy: v[21559],
1703
- MidasMask: v[21529],
1704
- Mime: v[21506],
1705
- Misprint: v[20500],
1706
- MrBones: v[21545],
1707
- MysticSummit: v[20498],
1708
- Neptune: v[16391],
1709
- NineOfClubs: v[4103],
1710
- NineOfDiamonds: v[4119],
1711
- NineOfHearts: v[4135],
1712
- NineOfSpades: v[4151],
1713
- NotImplemented: v[61441],
1714
- Obelisk: v[22531],
1715
- OddTodd: v[20508],
1716
- OnyxAgate: v[21555],
1717
- OopsAll6s: v[21560],
1718
- Ouija: v[8199],
1719
- Pareidolia: v[21514],
1720
- Perkeo: v[23556],
1721
- Photograph: v[20526],
1722
- PlanetExcludedByStream: v[61443],
1723
- PlanetX: v[16393],
1724
- Pluto: v[16392],
1725
- Popcorn: v[20534],
1726
- QueenOfClubs: v[4106],
1727
- QueenOfDiamonds: v[4122],
1728
- QueenOfHearts: v[4138],
1729
- QueenOfSpades: v[4154],
1730
- RaisedFist: v[20501],
1731
- Ramen: v[21542],
1732
- RedCard: v[20523],
1733
- ReservedParking: v[20527],
1734
- RideTheBus: v[20512],
1735
- RiffRaff: v[20525],
1736
- Rocket: v[21528],
1737
- RoughGem: v[21552],
1738
- Runner: v[20514],
1739
- Satellite: v[21564],
1740
- Saturn: v[16389],
1741
- ScaryFace: v[20503],
1742
- Scholar: v[20509],
1743
- Seance: v[21523],
1744
- SeeingDouble: v[21562],
1745
- Seltzer: v[21543],
1746
- SevenOfClubs: v[4101],
1747
- SevenOfDiamonds: v[4117],
1748
- SevenOfHearts: v[4133],
1749
- SevenOfSpades: v[4149],
1750
- ShootTheMoon: v[20540],
1751
- Shortcut: v[21525],
1752
- Showman: v[21557],
1753
- Sigil: v[8198],
1754
- SixOfClubs: v[4100],
1755
- SixOfDiamonds: v[4116],
1756
- SixOfHearts: v[4132],
1757
- SixOfSpades: v[4148],
1758
- SixthSense: v[21518],
1759
- SlyJoker: v[20490],
1760
- SmearedJoker: v[21550],
1761
- SmileyFace: v[20536],
1762
- SockAndBuskin: v[21547],
1763
- SpaceJoker: v[21515],
1764
- SpareTrousers: v[21541],
1765
- SpectralExcludedByStream: v[61445],
1766
- Splash: v[20516],
1767
- SquareJoker: v[20524],
1768
- SteelJoker: v[21512],
1769
- StoneJoker: v[21535],
1770
- Strength: v[12299],
1771
- Stuntman: v[22543],
1772
- Supernova: v[20511],
1773
- Superposition: v[20520],
1774
- Swashbuckler: v[20538],
1775
- Talisman: v[8195],
1776
- TarotExcludedByStream: v[61444],
1777
- Temperance: v[12302],
1778
- TenOfClubs: v[4104],
1779
- TenOfDiamonds: v[4120],
1780
- TenOfHearts: v[4136],
1781
- TenOfSpades: v[4152],
1782
- TheChariot: v[12295],
1783
- TheDevil: v[12303],
1784
- TheDuo: v[22538],
1785
- TheEmperor: v[12292],
1786
- TheEmpress: v[12291],
1787
- TheFamily: v[22540],
1788
- TheFool: v[12288],
1789
- TheHangedMan: v[12300],
1790
- TheHermit: v[12297],
1791
- TheHierophant: v[12293],
1792
- TheHighPriestess: v[12290],
1793
- TheIdol: v[21561],
1794
- TheLovers: v[12294],
1795
- TheMagician: v[12289],
1796
- TheMoon: v[12306],
1797
- TheOrder: v[22541],
1798
- TheSoul: v[8208],
1799
- TheStar: v[12305],
1800
- TheSun: v[12307],
1801
- TheTower: v[12304],
1802
- TheTribe: v[22542],
1803
- TheTrio: v[22539],
1804
- TheWheelOfFortune: v[12298],
1805
- TheWorld: v[12309],
1806
- ThreeOfClubs: v[4097],
1807
- ThreeOfDiamonds: v[4113],
1808
- ThreeOfHearts: v[4129],
1809
- ThreeOfSpades: v[4145],
1810
- Throwback: v[21551],
1811
- ToDoList: v[20521],
1812
- ToTheMoon: v[21534],
1813
- TradingCard: v[21539],
1814
- Trance: v[8205],
1815
- Triboulet: v[23553],
1816
- Troubadour: v[21548],
1817
- TurtleBean: v[21532],
1818
- TwoOfClubs: v[4096],
1819
- TwoOfDiamonds: v[4112],
1820
- TwoOfHearts: v[4128],
1821
- TwoOfSpades: v[4144],
1822
- Uranus: v[16390],
1823
- Vagabond: v[22529],
1824
- Vampire: v[21524],
1825
- Venus: v[16385],
1826
- WalkieTalkie: v[20535],
1827
- WeeJoker: v[22536],
1828
- WilyJoker: v[20491],
1829
- Wraith: v[8197],
1830
- WrathfulJoker: v[20483],
1831
- Yorick: v[23554],
1832
- ZanyJoker: v[20486]
1572
+ AbstractJoker: h[20504],
1573
+ AceOfClubs: h[4108],
1574
+ AceOfDiamonds: h[4124],
1575
+ AceOfHearts: h[4140],
1576
+ AceOfSpades: h[4156],
1577
+ Acrobat: h[21546],
1578
+ AncientJoker: h[22533],
1579
+ Ankh: h[8202],
1580
+ Arrowhead: h[21554],
1581
+ Astronomer: h[21566],
1582
+ Aura: h[8196],
1583
+ Banner: h[20497],
1584
+ Baron: h[22530],
1585
+ BaseballCard: h[22532],
1586
+ BlackHole: h[8209],
1587
+ Blackboard: h[21517],
1588
+ Bloodstone: h[21553],
1589
+ BlueJoker: h[20517],
1590
+ Blueprint: h[22535],
1591
+ Bootstraps: h[21567],
1592
+ Brainstorm: h[22545],
1593
+ Bull: h[21537],
1594
+ Burglar: h[21516],
1595
+ BurntJoker: h[22547],
1596
+ BusinessCard: h[20510],
1597
+ Campfire: h[22534],
1598
+ Canio: h[23552],
1599
+ CardSharp: h[21521],
1600
+ Cartomancer: h[21565],
1601
+ Castle: h[21544],
1602
+ Cavendish: h[20522],
1603
+ CeremonialDagger: h[21507],
1604
+ Ceres: h[16394],
1605
+ Certificate: h[21549],
1606
+ ChaostheClown: h[20502],
1607
+ Chicot: h[23555],
1608
+ CleverJoker: h[20492],
1609
+ Cloud9: h[21527],
1610
+ Constellation: h[21519],
1611
+ CraftyJoker: h[20494],
1612
+ CrazyJoker: h[20488],
1613
+ CreditCard: h[20496],
1614
+ Cryptid: h[8207],
1615
+ DNA: h[22528],
1616
+ Death: h[12301],
1617
+ DejaVu: h[8203],
1618
+ DelayedGratification: h[20505],
1619
+ DeviousJoker: h[20493],
1620
+ DietCola: h[21538],
1621
+ DriversLicense: h[22546],
1622
+ DrollJoker: h[20489],
1623
+ Drunkard: h[20532],
1624
+ Dusk: h[21510],
1625
+ Earth: h[16386],
1626
+ Ectoplasm: h[8200],
1627
+ Egg: h[20513],
1628
+ EightBall: h[20499],
1629
+ EightOfClubs: h[4102],
1630
+ EightOfDiamonds: h[4118],
1631
+ EightOfHearts: h[4134],
1632
+ EightOfSpades: h[4150],
1633
+ Eris: h[16395],
1634
+ Erosion: h[21533],
1635
+ EvenSteven: h[20507],
1636
+ FacelessJoker: h[20518],
1637
+ Familiar: h[8192],
1638
+ Fibonacci: h[21511],
1639
+ FiveOfClubs: h[4099],
1640
+ FiveOfDiamonds: h[4115],
1641
+ FiveOfHearts: h[4131],
1642
+ FiveOfSpades: h[4147],
1643
+ FlashCard: h[21540],
1644
+ FlowerPot: h[21558],
1645
+ FortuneTeller: h[20530],
1646
+ FourFingers: h[21505],
1647
+ FourOfClubs: h[4098],
1648
+ FourOfDiamonds: h[4114],
1649
+ FourOfHearts: h[4130],
1650
+ FourOfSpades: h[4146],
1651
+ GiftCard: h[21531],
1652
+ GlassJoker: h[21556],
1653
+ GluttonousJoker: h[20484],
1654
+ GoldenJoker: h[20533],
1655
+ GoldenTicket: h[20537],
1656
+ GreedyJoker: h[20481],
1657
+ GreenJoker: h[20519],
1658
+ Grim: h[8193],
1659
+ GrosMichel: h[20506],
1660
+ Hack: h[21513],
1661
+ HalfJoker: h[20495],
1662
+ Hallucination: h[20529],
1663
+ HangingChad: h[20539],
1664
+ Hex: h[8204],
1665
+ Hiker: h[21520],
1666
+ HitTheRoad: h[22537],
1667
+ Hologram: h[21526],
1668
+ IceCream: h[20515],
1669
+ Immolate: h[8201],
1670
+ Incantation: h[8194],
1671
+ Invalid: h[61440],
1672
+ InvisibleJoker: h[22544],
1673
+ JackOfClubs: h[4105],
1674
+ JackOfDiamonds: h[4121],
1675
+ JackOfHearts: h[4137],
1676
+ JackOfSpades: h[4153],
1677
+ Joker: h[20480],
1678
+ JokerExcludedByStream: h[61442],
1679
+ JokerStencil: h[21504],
1680
+ JollyJoker: h[20485],
1681
+ Judgement: h[12308],
1682
+ Juggler: h[20531],
1683
+ Jupiter: h[16388],
1684
+ Justice: h[12296],
1685
+ KingOfClubs: h[4107],
1686
+ KingOfDiamonds: h[4123],
1687
+ KingOfHearts: h[4139],
1688
+ KingOfSpades: h[4155],
1689
+ LoyaltyCard: h[21509],
1690
+ Luchador: h[21530],
1691
+ LuckyCat: h[21536],
1692
+ LustyJoker: h[20482],
1693
+ MadJoker: h[20487],
1694
+ Madness: h[21522],
1695
+ MailInRebate: h[20528],
1696
+ MarbleJoker: h[21508],
1697
+ Mars: h[16387],
1698
+ Matador: h[21563],
1699
+ Medium: h[8206],
1700
+ Mercury: h[16384],
1701
+ MerryAndy: h[21559],
1702
+ MidasMask: h[21529],
1703
+ Mime: h[21506],
1704
+ Misprint: h[20500],
1705
+ MrBones: h[21545],
1706
+ MysticSummit: h[20498],
1707
+ Neptune: h[16391],
1708
+ NineOfClubs: h[4103],
1709
+ NineOfDiamonds: h[4119],
1710
+ NineOfHearts: h[4135],
1711
+ NineOfSpades: h[4151],
1712
+ NotImplemented: h[61441],
1713
+ Obelisk: h[22531],
1714
+ OddTodd: h[20508],
1715
+ OnyxAgate: h[21555],
1716
+ OopsAll6s: h[21560],
1717
+ Ouija: h[8199],
1718
+ Pareidolia: h[21514],
1719
+ Perkeo: h[23556],
1720
+ Photograph: h[20526],
1721
+ PlanetExcludedByStream: h[61443],
1722
+ PlanetX: h[16393],
1723
+ Pluto: h[16392],
1724
+ Popcorn: h[20534],
1725
+ QueenOfClubs: h[4106],
1726
+ QueenOfDiamonds: h[4122],
1727
+ QueenOfHearts: h[4138],
1728
+ QueenOfSpades: h[4154],
1729
+ RaisedFist: h[20501],
1730
+ Ramen: h[21542],
1731
+ RedCard: h[20523],
1732
+ ReservedParking: h[20527],
1733
+ RideTheBus: h[20512],
1734
+ RiffRaff: h[20525],
1735
+ Rocket: h[21528],
1736
+ RoughGem: h[21552],
1737
+ Runner: h[20514],
1738
+ Satellite: h[21564],
1739
+ Saturn: h[16389],
1740
+ ScaryFace: h[20503],
1741
+ Scholar: h[20509],
1742
+ Seance: h[21523],
1743
+ SeeingDouble: h[21562],
1744
+ Seltzer: h[21543],
1745
+ SevenOfClubs: h[4101],
1746
+ SevenOfDiamonds: h[4117],
1747
+ SevenOfHearts: h[4133],
1748
+ SevenOfSpades: h[4149],
1749
+ ShootTheMoon: h[20540],
1750
+ Shortcut: h[21525],
1751
+ Showman: h[21557],
1752
+ Sigil: h[8198],
1753
+ SixOfClubs: h[4100],
1754
+ SixOfDiamonds: h[4116],
1755
+ SixOfHearts: h[4132],
1756
+ SixOfSpades: h[4148],
1757
+ SixthSense: h[21518],
1758
+ SlyJoker: h[20490],
1759
+ SmearedJoker: h[21550],
1760
+ SmileyFace: h[20536],
1761
+ SockAndBuskin: h[21547],
1762
+ SpaceJoker: h[21515],
1763
+ SpareTrousers: h[21541],
1764
+ SpectralExcludedByStream: h[61445],
1765
+ Splash: h[20516],
1766
+ SquareJoker: h[20524],
1767
+ SteelJoker: h[21512],
1768
+ StoneJoker: h[21535],
1769
+ Strength: h[12299],
1770
+ Stuntman: h[22543],
1771
+ Supernova: h[20511],
1772
+ Superposition: h[20520],
1773
+ Swashbuckler: h[20538],
1774
+ Talisman: h[8195],
1775
+ TarotExcludedByStream: h[61444],
1776
+ Temperance: h[12302],
1777
+ TenOfClubs: h[4104],
1778
+ TenOfDiamonds: h[4120],
1779
+ TenOfHearts: h[4136],
1780
+ TenOfSpades: h[4152],
1781
+ TheChariot: h[12295],
1782
+ TheDevil: h[12303],
1783
+ TheDuo: h[22538],
1784
+ TheEmperor: h[12292],
1785
+ TheEmpress: h[12291],
1786
+ TheFamily: h[22540],
1787
+ TheFool: h[12288],
1788
+ TheHangedMan: h[12300],
1789
+ TheHermit: h[12297],
1790
+ TheHierophant: h[12293],
1791
+ TheHighPriestess: h[12290],
1792
+ TheIdol: h[21561],
1793
+ TheLovers: h[12294],
1794
+ TheMagician: h[12289],
1795
+ TheMoon: h[12306],
1796
+ TheOrder: h[22541],
1797
+ TheSoul: h[8208],
1798
+ TheStar: h[12305],
1799
+ TheSun: h[12307],
1800
+ TheTower: h[12304],
1801
+ TheTribe: h[22542],
1802
+ TheTrio: h[22539],
1803
+ TheWheelOfFortune: h[12298],
1804
+ TheWorld: h[12309],
1805
+ ThreeOfClubs: h[4097],
1806
+ ThreeOfDiamonds: h[4113],
1807
+ ThreeOfHearts: h[4129],
1808
+ ThreeOfSpades: h[4145],
1809
+ Throwback: h[21551],
1810
+ ToDoList: h[20521],
1811
+ ToTheMoon: h[21534],
1812
+ TradingCard: h[21539],
1813
+ Trance: h[8205],
1814
+ Triboulet: h[23553],
1815
+ Troubadour: h[21548],
1816
+ TurtleBean: h[21532],
1817
+ TwoOfClubs: h[4096],
1818
+ TwoOfDiamonds: h[4112],
1819
+ TwoOfHearts: h[4128],
1820
+ TwoOfSpades: h[4144],
1821
+ Uranus: h[16390],
1822
+ Vagabond: h[22529],
1823
+ Vampire: h[21524],
1824
+ Venus: h[16385],
1825
+ WalkieTalkie: h[20535],
1826
+ WeeJoker: h[22536],
1827
+ WilyJoker: h[20491],
1828
+ Wraith: h[8197],
1829
+ WrathfulJoker: h[20483],
1830
+ Yorick: h[23554],
1831
+ ZanyJoker: h[20486]
1833
1832
  });
1834
1833
  //#endregion
1835
1834
  //#region src/decode/motelyItemDecoder.ts
1836
- var y = {
1835
+ var g = {
1837
1836
  Standardcard: "playing",
1838
1837
  SpectralCard: "spectral",
1839
1838
  TarotCard: "tarot",
1840
1839
  PlanetCard: "planet",
1841
1840
  Joker: "joker",
1842
1841
  Invalid: "unknown"
1843
- }, b = [
1842
+ }, _ = [
1844
1843
  "2",
1845
1844
  "3",
1846
1845
  "4",
@@ -1854,101 +1853,101 @@ var y = {
1854
1853
  "Queen",
1855
1854
  "King",
1856
1855
  "Ace"
1857
- ], x = [
1856
+ ], v = [
1858
1857
  "Clubs",
1859
1858
  "Diamonds",
1860
1859
  "Hearts",
1861
1860
  "Spades"
1862
- ], S = [
1861
+ ], y = [
1863
1862
  "Base",
1864
1863
  "Foil",
1865
1864
  "Holographic",
1866
1865
  "Polychrome",
1867
1866
  "Negative"
1868
- ], te = [
1867
+ ], ee = [
1869
1868
  "None",
1870
1869
  "Gold",
1871
1870
  "Red",
1872
1871
  "Blue",
1873
1872
  "Purple"
1874
1873
  ];
1875
- function C(e) {
1876
- return v[e];
1874
+ function b(e) {
1875
+ return h[e];
1877
1876
  }
1878
- function w(e) {
1877
+ function x(e) {
1879
1878
  return e.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
1880
1879
  }
1881
- function ne(e) {
1880
+ function S(e) {
1882
1881
  return e == null ? null : typeof e == "number" ? Number.isFinite(e) ? e : null : e.value ?? e.type ?? null;
1883
1882
  }
1884
- function T(e) {
1885
- let t = ne(e);
1883
+ function C(e) {
1884
+ let t = S(e);
1886
1885
  return t === null ? null : t & 65535;
1887
1886
  }
1887
+ function w(e) {
1888
+ let t = C(e);
1889
+ return t === null ? "Unknown" : b(t)?.enumName ?? `item#${t}`;
1890
+ }
1891
+ function T(e) {
1892
+ let t = b(e)?.category;
1893
+ return t ? g[t] ?? "unknown" : "unknown";
1894
+ }
1888
1895
  function E(e) {
1889
- let t = T(e);
1890
- return t === null ? "Unknown" : C(t)?.enumName ?? `item#${t}`;
1896
+ let t = C(e);
1897
+ return t === null ? "unknown" : T(t);
1891
1898
  }
1892
1899
  function D(e) {
1893
- let t = C(e)?.category;
1894
- return t ? y[t] ?? "unknown" : "unknown";
1900
+ let t = C(e);
1901
+ return t === null ? "Unknown" : b(t)?.displayName ?? x(w(e));
1895
1902
  }
1896
1903
  function O(e) {
1897
- let t = T(e);
1898
- return t === null ? "unknown" : D(t);
1899
- }
1900
- function re(e) {
1901
- let t = T(e);
1902
- return t === null ? "Unknown" : C(t)?.displayName ?? w(E(e));
1903
- }
1904
- function k(e) {
1905
1904
  if (e == null) return null;
1906
1905
  let t = typeof e == "number" ? e : e.edition;
1907
1906
  if (t == null) return null;
1908
- let n = S[t];
1907
+ let n = y[t];
1909
1908
  return !n || n === "Base" ? null : n;
1910
1909
  }
1911
- function A(e) {
1910
+ function k(e) {
1912
1911
  if (e == null) return null;
1913
1912
  let t = typeof e == "number" ? null : e.seal;
1914
1913
  if (t == null) return null;
1915
- let n = te[t];
1914
+ let n = ee[t];
1916
1915
  return !n || n === "None" ? null : n;
1917
1916
  }
1918
- function j(e) {
1917
+ function A(e) {
1919
1918
  return e == null || typeof e == "number" || e.enhancement, null;
1920
1919
  }
1921
- function M(e) {
1922
- if (e == null || O(e) !== "playing") return null;
1923
- let t = typeof e == "number" ? T(e) : e.rank;
1924
- return t == null ? null : typeof e == "number" ? b[t & 15] ?? null : b[t] ?? null;
1920
+ function j(e) {
1921
+ if (e == null || E(e) !== "playing") return null;
1922
+ let t = typeof e == "number" ? C(e) : e.rank;
1923
+ return t == null ? null : typeof e == "number" ? _[t & 15] ?? null : _[t] ?? null;
1925
1924
  }
1926
- function N(e) {
1927
- if (e == null || O(e) !== "playing") return null;
1928
- let t = typeof e == "number" ? T(e) : e.suit;
1929
- return t == null ? null : typeof e == "number" ? x[t >> 4 & 15] ?? null : x[t] ?? null;
1925
+ function M(e) {
1926
+ if (e == null || E(e) !== "playing") return null;
1927
+ let t = typeof e == "number" ? C(e) : e.suit;
1928
+ return t == null ? null : typeof e == "number" ? v[t >> 4 & 15] ?? null : v[t] ?? null;
1930
1929
  }
1931
- function ie(e) {
1932
- return E(e);
1930
+ function te(e) {
1931
+ return w(e);
1933
1932
  }
1934
- function P(e) {
1935
- let t = T(e);
1933
+ function N(e) {
1934
+ let t = C(e);
1936
1935
  if (t === null) return null;
1937
- let n = C(t), r = n?.enumName ?? `Unknown_${t}`, i = D(t);
1936
+ let n = b(t), r = n?.enumName ?? `Unknown_${t}`, i = T(t);
1938
1937
  return {
1939
1938
  itemType: t,
1940
1939
  enumKey: r,
1941
- displayName: n?.displayName ?? w(r),
1940
+ displayName: n?.displayName ?? x(r),
1942
1941
  category: i,
1943
- edition: k(e),
1944
- seal: A(e),
1945
- enhancement: j(e),
1946
- rank: M(e),
1947
- suit: N(e)
1942
+ edition: O(e),
1943
+ seal: k(e),
1944
+ enhancement: A(e),
1945
+ rank: j(e),
1946
+ suit: M(e)
1948
1947
  };
1949
1948
  }
1950
- function ae(e, t) {
1951
- let n = P(e);
1949
+ function ne(e, t) {
1950
+ let n = N(e);
1952
1951
  return n ? {
1953
1952
  type: n.category === "joker" ? "joker" : n.category === "playing" ? "playing" : "consumable",
1954
1953
  card: {
@@ -1962,14 +1961,14 @@ function ae(e, t) {
1962
1961
  }
1963
1962
  } : null;
1964
1963
  }
1965
- function F() {}
1966
- function I() {
1964
+ function re() {}
1965
+ function P() {
1967
1966
  return 0;
1968
1967
  }
1969
1968
  //#endregion
1970
1969
  //#region src/decode/motelySprite.ts
1971
- function L(a) {
1972
- let o = P(a);
1970
+ function F(a) {
1971
+ let o = N(a);
1973
1972
  if (!o) return null;
1974
1973
  if (o.category === "playing" && o.rank && o.suit) {
1975
1974
  let r = t[o.rank], i = n[o.suit];
@@ -1996,7 +1995,7 @@ function L(a) {
1996
1995
  category: o.category
1997
1996
  } : null;
1998
1997
  }
1999
- function R(a, o = "unknown") {
1998
+ function I(a, o = "unknown") {
2000
1999
  if (o === "playing") {
2001
2000
  let r = /^(.*?)\s+of\s+(.*?)$/i.exec(a);
2002
2001
  if (r) {
@@ -2027,157 +2026,110 @@ function R(a, o = "unknown") {
2027
2026
  }
2028
2027
  //#endregion
2029
2028
  //#region src/motelyDisplay.ts
2030
- var z = m;
2031
- function B(e, t) {
2029
+ var L = f;
2030
+ function R(e, t) {
2032
2031
  let n = e[String(t)];
2033
2032
  return typeof n == "string" && n.length > 0 ? n : null;
2034
2033
  }
2034
+ function z(e) {
2035
+ return R(L.MotelyBossBlind, e & 255) ?? `boss#${e}`;
2036
+ }
2037
+ function B(e) {
2038
+ return e;
2039
+ }
2035
2040
  function V(e) {
2036
- return B(z.MotelyBossBlind, e & 255) ?? `boss#${e}`;
2041
+ return R(L.MotelyVoucher, e) ?? `voucher#${e}`;
2037
2042
  }
2038
2043
  function H(e) {
2039
2044
  return e;
2040
2045
  }
2041
2046
  function U(e) {
2042
- return B(z.MotelyVoucher, e) ?? `voucher#${e}`;
2047
+ return R(L.MotelyTag, e) ?? `tag#${e}`;
2043
2048
  }
2044
2049
  function W(e) {
2045
2050
  return e;
2046
2051
  }
2047
2052
  function G(e) {
2048
- return B(z.MotelyTag, e) ?? `tag#${e}`;
2053
+ return R(L.MotelyBoosterPack, e) ?? `pack#${e}`;
2049
2054
  }
2050
2055
  function K(e) {
2051
- return e;
2052
- }
2053
- function q(e) {
2054
- return B(z.MotelyBoosterPack, e) ?? `pack#${e}`;
2055
- }
2056
- function oe(e) {
2057
2056
  return `${e} Pack`;
2058
2057
  }
2059
- function se(e) {
2058
+ function q(e) {
2060
2059
  return e;
2061
2060
  }
2062
- function ce(e) {
2063
- return v[e & 65535]?.displayName ?? `item#${e}`;
2061
+ function J(e) {
2062
+ return h[e & 65535]?.displayName ?? `item#${e}`;
2064
2063
  }
2065
2064
  //#endregion
2066
2065
  //#region src/hooks/useJamlLibrary.ts
2067
- var J = null, Y = null;
2068
- try {
2069
- J = await import("@rewaffle/bootsharp-file-system"), J.init(g);
2070
- } catch (e) {
2071
- Y = e;
2066
+ var Y = null, X = null, Z = null;
2067
+ function Q() {
2068
+ return Z || (Z = (async () => {
2069
+ try {
2070
+ Y = await import("@rewaffle/bootsharp-file-system"), Y.init(p);
2071
+ } catch (e) {
2072
+ X = e;
2073
+ }
2074
+ })(), Z);
2072
2075
  }
2073
- function X(e) {
2076
+ function $(e) {
2074
2077
  return e instanceof Error ? e.message : String(e);
2075
2078
  }
2076
- function le() {
2077
- let e = J !== null, [t, n] = d(() => e ? "idle" : "unsupported"), [r, i] = d(null), [o, c] = d([]), [l, u] = d(() => e ? null : X(Y ?? "Bootsharp FileSystem package is not available.")), f = s(() => {
2078
- r && c((e) => [...e]);
2079
- }, [r]);
2079
+ function ie() {
2080
+ let [e, t] = l("idle"), [n, r] = l(null), [i, o] = l([]), [u, d] = l(null);
2081
+ c(() => {
2082
+ let e = !1;
2083
+ return Q().then(() => {
2084
+ e || Y === null && (t("unsupported"), d($(X ?? "Bootsharp FileSystem package is not available.")));
2085
+ }), () => {
2086
+ e = !0;
2087
+ };
2088
+ }, []);
2089
+ let p = Y !== null, h = s(() => {
2090
+ n && o((e) => [...e]);
2091
+ }, [n]);
2080
2092
  return {
2081
- status: t,
2082
- rootId: r,
2083
- files: o,
2084
- error: l,
2093
+ status: e,
2094
+ rootId: n,
2095
+ files: i,
2096
+ error: u,
2085
2097
  mount: s(async () => {
2086
- if (!e) {
2087
- n("unsupported"), u(X(Y ?? "Bootsharp FileSystem package is not available."));
2098
+ if (await Q(), Y === null) {
2099
+ t("unsupported"), d($(X ?? "Bootsharp FileSystem package is not available."));
2088
2100
  return;
2089
2101
  }
2090
- n("mounting"), u(null);
2102
+ t("mounting"), d(null);
2091
2103
  try {
2092
2104
  await a();
2093
- let e = await m.pickRoot({
2094
- mode: _.ReadWrite,
2105
+ let e = await f.pickRoot({
2106
+ mode: m.ReadWrite,
2095
2107
  id: "jaml-library"
2096
2108
  });
2097
2109
  if (!e) {
2098
- n("idle");
2110
+ t("idle");
2099
2111
  return;
2100
2112
  }
2101
- i(await m.mountRoot(e, { mode: _.ReadWrite })), c([]), n("ready");
2113
+ r(await f.mountRoot(e, { mode: m.ReadWrite })), o([]), t("ready");
2102
2114
  } catch (e) {
2103
- n("error"), u(X(e));
2115
+ t("error"), d($(e));
2104
2116
  }
2105
- }, [e]),
2117
+ }, []),
2106
2118
  unmount: s(async () => {
2107
- r && (await a(), await m.unmountRoot(r), i(null), c([]), n(e ? "idle" : "unsupported"));
2108
- }, [e, r]),
2119
+ n && (await a(), await f.unmountRoot(n), r(null), o([]), t(p ? "idle" : "unsupported"));
2120
+ }, [p, n]),
2109
2121
  loadFile: s(async (e) => {
2110
- if (!r) throw Error("JAML library is not mounted.");
2111
- return await a(), await m.readTextFile(r, e);
2112
- }, [r]),
2122
+ if (!n) throw Error("JAML library is not mounted.");
2123
+ return await a(), await f.readTextFile(n, e);
2124
+ }, [n]),
2113
2125
  saveFile: s(async (e, t) => {
2114
- if (!r) throw Error("JAML library is not mounted.");
2115
- await a(), await m.writeTextFile(r, e, t), c((t) => (t.includes(e) ? t : [...t, e]).sort((e, t) => e.localeCompare(t)));
2116
- }, [r]),
2117
- refresh: f
2126
+ if (!n) throw Error("JAML library is not mounted.");
2127
+ await a(), await f.writeTextFile(n, e, t), o((t) => (t.includes(e) ? t : [...t, e]).sort((e, t) => e.localeCompare(t)));
2128
+ }, [n]),
2129
+ refresh: h
2118
2130
  };
2119
2131
  }
2120
2132
  //#endregion
2121
- //#region src/providers/MotelyProvider.tsx
2122
- var Z = o(null);
2123
- function ue() {
2124
- switch (h.getStatus()) {
2125
- case h.BootStatus.Booted: return "ready";
2126
- case h.BootStatus.Booting: return "booting";
2127
- default: return "idle";
2128
- }
2129
- }
2130
- function de({ children: e }) {
2131
- let [t, n] = d(() => {
2132
- let e = ue();
2133
- return e === "idle" ? "booting" : e;
2134
- }), [r, i] = d(null);
2135
- return l(() => {
2136
- t !== "ready" && a().then(() => n("ready")).catch((e) => {
2137
- n("error"), i(e instanceof Error ? e.message : String(e));
2138
- });
2139
- }, []), /* @__PURE__ */ f(Z.Provider, {
2140
- value: {
2141
- status: t,
2142
- error: r
2143
- },
2144
- children: e
2145
- });
2146
- }
2147
- function Q() {
2148
- return c(Z);
2149
- }
2150
- //#endregion
2151
- //#region src/hooks/useMotelyRuntime.ts
2152
- function $() {
2153
- switch (h.getStatus()) {
2154
- case h.BootStatus.Booted: return "ready";
2155
- case h.BootStatus.Booting: return "booting";
2156
- default: return "idle";
2157
- }
2158
- }
2159
- function fe() {
2160
- let e = Q(), [t, n] = d($), [r, i] = d(null), o = e?.status ?? t, c = e?.error ?? r, l = s(async () => {
2161
- try {
2162
- e ? await a() : (n($()), h.getStatus() === h.BootStatus.Standby && (n("booting"), await a()), n($()));
2163
- } catch (t) {
2164
- throw e || (n("error"), i(t instanceof Error ? t.message : String(t))), t;
2165
- }
2166
- }, [e]);
2167
- return u(() => ({
2168
- status: o,
2169
- ready: o === "ready",
2170
- error: c,
2171
- fsReady: !1,
2172
- fsError: null,
2173
- ensureReady: l
2174
- }), [
2175
- c,
2176
- l,
2177
- o
2178
- ]);
2179
- }
2180
- //#endregion
2181
- export { ee as Motely, de as MotelyProvider, p as bootsharp, P as decodeMotelyItem, ie as decodeMotelyItemName, ae as decodeMotelyItemToJamlCard, R as getMotelySpriteByName, q as motelyBoosterPackDisplayName, oe as motelyBoosterPackDisplayNameFromKey, V as motelyBossDisplayName, H as motelyBossDisplayNameFromKey, I as motelyItemCacheSize, D as motelyItemCategory, re as motelyItemDisplayName, se as motelyItemDisplayNameFromKey, ce as motelyItemDisplayNameFromValue, k as motelyItemEditionName, j as motelyItemEnhancementName, O as motelyItemRenderCategory, A as motelyItemSealName, L as motelyItemToSprite, E as motelyItemTypeName, M as motelyStandardcardRankName, N as motelyStandardcardSuitName, G as motelyTagDisplayName, K as motelyTagDisplayNameFromKey, U as motelyVoucherDisplayName, W as motelyVoucherDisplayNameFromKey, T as resolveMotelyItemType, le as useJamlLibrary, Q as useMotelyContext, fe as useMotelyRuntime, F as warmMotelyItemCache };
2133
+ export { o as MOTELY_BIN_PATH, d as Motely, u as bootsharp, N as decodeMotelyItem, te as decodeMotelyItemName, ne as decodeMotelyItemToJamlCard, a as ensureMotelyReady, I as getMotelySpriteByName, G as motelyBoosterPackDisplayName, K as motelyBoosterPackDisplayNameFromKey, z as motelyBossDisplayName, B as motelyBossDisplayNameFromKey, P as motelyItemCacheSize, T as motelyItemCategory, D as motelyItemDisplayName, q as motelyItemDisplayNameFromKey, J as motelyItemDisplayNameFromValue, O as motelyItemEditionName, A as motelyItemEnhancementName, E as motelyItemRenderCategory, k as motelyItemSealName, F as motelyItemToSprite, w as motelyItemTypeName, j as motelyStandardcardRankName, M as motelyStandardcardSuitName, U as motelyTagDisplayName, W as motelyTagDisplayNameFromKey, V as motelyVoucherDisplayName, H as motelyVoucherDisplayNameFromKey, C as resolveMotelyItemType, ie as useJamlLibrary, re as warmMotelyItemCache };
2182
2134
 
2183
2135
  //# sourceMappingURL=motely.js.map