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.
- package/README.md +193 -61
- package/assets/fonts/README.md +14 -0
- package/assets/fonts/m6x11.ttf +0 -0
- package/assets/fonts/m6x11plus.ttf +0 -0
- package/dist/.gitkeep +0 -0
- package/dist/assets/searchPoolWorker-6mF4VfgO.js +40 -0
- package/dist/assets/searchPoolWorker-6mF4VfgO.js.map +1 -0
- package/dist/assets.d.ts +1 -1
- package/dist/chunks/{assets-D80i9sMq.js → assets-Bb6wV80_.js} +3 -3
- package/dist/chunks/assets-Bb6wV80_.js.map +1 -0
- package/dist/chunks/jamlSeeds-3ILzc_rj.js +66 -0
- package/dist/chunks/jamlSeeds-3ILzc_rj.js.map +1 -0
- package/dist/chunks/{runtime-C-It0krH.js → runtime-Bklr4A-D.js} +2 -2
- package/dist/chunks/{runtime-C-It0krH.js.map → runtime-Bklr4A-D.js.map} +1 -1
- package/dist/chunks/{searchPoolWorker-DUope_8B.js → searchPoolWorker-Dqhc9lfv.js} +2 -2
- package/dist/chunks/searchPoolWorker-Dqhc9lfv.js.map +1 -0
- package/dist/chunks/{spriteMapper-C4_5G1Z6.js → spriteMapper-CajFGgUU.js} +2 -2
- package/dist/chunks/spriteMapper-CajFGgUU.js.map +1 -0
- package/dist/chunks/tokens-Qrhlekc4.js.map +1 -1
- package/dist/chunks/{ui-DRov81qO.js → ui-UqEG1EZ9.js} +1530 -1178
- package/dist/chunks/ui-UqEG1EZ9.js.map +1 -0
- package/dist/components/CardFan.d.ts +0 -9
- package/dist/components/JamlAestheticSelector.d.ts +3 -3
- package/dist/components/JamlIde.d.ts +1 -4
- package/dist/components/JamlSeedSpinner.d.ts +3 -1
- package/dist/components/Jamlyzer.d.ts +5 -8
- package/dist/components/MotelyHello.d.ts +5 -0
- package/dist/components/StandardCard.d.ts +14 -0
- package/dist/components/cardEnums.d.ts +48 -0
- package/dist/components/jamlMap/JokerPicker.d.ts +2 -1
- package/dist/components/jamlMap/MysterySlot.d.ts +2 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +7 -7
- package/dist/core.js.map +1 -1
- package/dist/hooks/useAnalyzer.d.ts +1 -1
- package/dist/hooks/useSearchPool.d.ts +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.js +3245 -3205
- package/dist/index.js.map +1 -1
- package/dist/lib/data/constants.d.ts +3 -3
- package/dist/lib/jaml/jamlData.d.ts +1 -0
- package/dist/lib/jaml/jamlSchema.d.ts +10 -60
- package/dist/lib/jaml/jamlSeeds.d.ts +7 -0
- package/dist/lib/types.d.ts +3 -2
- package/dist/motely.d.ts +1 -2
- package/dist/motely.js +380 -428
- package/dist/motely.js.map +1 -1
- package/dist/r3f.js +16 -16
- package/dist/r3f.js.map +1 -1
- package/dist/ui/JimboBadge.d.ts +1 -1
- package/dist/ui/{footer.d.ts → JimboBalatroFooter.d.ts} +4 -2
- package/dist/ui/JimboButton.d.ts +62 -0
- package/dist/ui/JimboCopyButton.d.ts +27 -0
- package/dist/ui/JimboDeckAndStakeSelectorModal.d.ts +30 -0
- package/dist/ui/JimboIconButton.d.ts +8 -3
- package/dist/ui/JimboInlineEdit.d.ts +16 -0
- package/dist/ui/JimboListItem.d.ts +11 -0
- package/dist/ui/JimboPanelSplitter.d.ts +8 -0
- package/dist/ui/JimboSeedCopyChip.d.ts +16 -0
- package/dist/ui/JimboSelect.d.ts +15 -3
- package/dist/ui/JimboSpinner.d.ts +18 -0
- package/dist/ui/JimboStepper.d.ts +19 -7
- package/dist/ui/JimboValueBadge.d.ts +19 -0
- package/dist/ui/codeBlock.d.ts +4 -0
- package/dist/ui/hooks.d.ts +30 -3
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/jimboApp.d.ts +2 -2
- package/dist/ui/jimboBackground.d.ts +12 -5
- package/dist/ui/jimboCopyRow.d.ts +2 -2
- package/dist/ui/jimboInset.d.ts +3 -3
- package/dist/ui/jimboLayout.d.ts +25 -0
- package/dist/ui/jimboLink.d.ts +12 -0
- package/dist/ui/jimboTabs.d.ts +6 -6
- package/dist/ui/jimboText.d.ts +2 -3
- package/dist/ui/panel.d.ts +1 -14
- package/dist/ui.d.ts +13 -4
- package/dist/ui.js +3 -3
- package/fonts.css +20 -5
- package/package.json +14 -14
- package/assets/fonts/m6x11plusplus.otf +0 -0
- package/dist/assets/searchPoolWorker-BPJ3Mf0o.js +0 -40
- package/dist/assets/searchPoolWorker-BPJ3Mf0o.js.map +0 -1
- package/dist/chunks/Layer-Ckd_T6Fw.js +0 -17
- package/dist/chunks/Layer-Ckd_T6Fw.js.map +0 -1
- package/dist/chunks/assets-D80i9sMq.js.map +0 -1
- package/dist/chunks/searchPoolWorker-DUope_8B.js.map +0 -1
- package/dist/chunks/spriteMapper-C4_5G1Z6.js.map +0 -1
- package/dist/chunks/ui-DRov81qO.js.map +0 -1
- package/dist/components/CardList.d.ts +0 -8
- package/dist/components/Standardcard.d.ts +0 -18
- package/dist/config.d.ts +0 -10
- package/dist/fonts/m6x11plus.otf +0 -0
- package/dist/hooks/useMotelyRuntime.d.ts +0 -11
- package/dist/providers/MotelyProvider.d.ts +0 -11
- package/dist/ui/JimboFloating.d.ts +0 -8
- package/dist/ui/PanelSplitter.d.ts +0 -8
- 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-
|
|
3
|
-
import { d as t, h as n, r, t as i } from "./chunks/spriteMapper-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
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
|
|
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:
|
|
1574
|
-
AceOfClubs:
|
|
1575
|
-
AceOfDiamonds:
|
|
1576
|
-
AceOfHearts:
|
|
1577
|
-
AceOfSpades:
|
|
1578
|
-
Acrobat:
|
|
1579
|
-
AncientJoker:
|
|
1580
|
-
Ankh:
|
|
1581
|
-
Arrowhead:
|
|
1582
|
-
Astronomer:
|
|
1583
|
-
Aura:
|
|
1584
|
-
Banner:
|
|
1585
|
-
Baron:
|
|
1586
|
-
BaseballCard:
|
|
1587
|
-
BlackHole:
|
|
1588
|
-
Blackboard:
|
|
1589
|
-
Bloodstone:
|
|
1590
|
-
BlueJoker:
|
|
1591
|
-
Blueprint:
|
|
1592
|
-
Bootstraps:
|
|
1593
|
-
Brainstorm:
|
|
1594
|
-
Bull:
|
|
1595
|
-
Burglar:
|
|
1596
|
-
BurntJoker:
|
|
1597
|
-
BusinessCard:
|
|
1598
|
-
Campfire:
|
|
1599
|
-
Canio:
|
|
1600
|
-
CardSharp:
|
|
1601
|
-
Cartomancer:
|
|
1602
|
-
Castle:
|
|
1603
|
-
Cavendish:
|
|
1604
|
-
CeremonialDagger:
|
|
1605
|
-
Ceres:
|
|
1606
|
-
Certificate:
|
|
1607
|
-
ChaostheClown:
|
|
1608
|
-
Chicot:
|
|
1609
|
-
CleverJoker:
|
|
1610
|
-
Cloud9:
|
|
1611
|
-
Constellation:
|
|
1612
|
-
CraftyJoker:
|
|
1613
|
-
CrazyJoker:
|
|
1614
|
-
CreditCard:
|
|
1615
|
-
Cryptid:
|
|
1616
|
-
DNA:
|
|
1617
|
-
Death:
|
|
1618
|
-
DejaVu:
|
|
1619
|
-
DelayedGratification:
|
|
1620
|
-
DeviousJoker:
|
|
1621
|
-
DietCola:
|
|
1622
|
-
DriversLicense:
|
|
1623
|
-
DrollJoker:
|
|
1624
|
-
Drunkard:
|
|
1625
|
-
Dusk:
|
|
1626
|
-
Earth:
|
|
1627
|
-
Ectoplasm:
|
|
1628
|
-
Egg:
|
|
1629
|
-
EightBall:
|
|
1630
|
-
EightOfClubs:
|
|
1631
|
-
EightOfDiamonds:
|
|
1632
|
-
EightOfHearts:
|
|
1633
|
-
EightOfSpades:
|
|
1634
|
-
Eris:
|
|
1635
|
-
Erosion:
|
|
1636
|
-
EvenSteven:
|
|
1637
|
-
FacelessJoker:
|
|
1638
|
-
Familiar:
|
|
1639
|
-
Fibonacci:
|
|
1640
|
-
FiveOfClubs:
|
|
1641
|
-
FiveOfDiamonds:
|
|
1642
|
-
FiveOfHearts:
|
|
1643
|
-
FiveOfSpades:
|
|
1644
|
-
FlashCard:
|
|
1645
|
-
FlowerPot:
|
|
1646
|
-
FortuneTeller:
|
|
1647
|
-
FourFingers:
|
|
1648
|
-
FourOfClubs:
|
|
1649
|
-
FourOfDiamonds:
|
|
1650
|
-
FourOfHearts:
|
|
1651
|
-
FourOfSpades:
|
|
1652
|
-
GiftCard:
|
|
1653
|
-
GlassJoker:
|
|
1654
|
-
GluttonousJoker:
|
|
1655
|
-
GoldenJoker:
|
|
1656
|
-
GoldenTicket:
|
|
1657
|
-
GreedyJoker:
|
|
1658
|
-
GreenJoker:
|
|
1659
|
-
Grim:
|
|
1660
|
-
GrosMichel:
|
|
1661
|
-
Hack:
|
|
1662
|
-
HalfJoker:
|
|
1663
|
-
Hallucination:
|
|
1664
|
-
HangingChad:
|
|
1665
|
-
Hex:
|
|
1666
|
-
Hiker:
|
|
1667
|
-
HitTheRoad:
|
|
1668
|
-
Hologram:
|
|
1669
|
-
IceCream:
|
|
1670
|
-
Immolate:
|
|
1671
|
-
Incantation:
|
|
1672
|
-
Invalid:
|
|
1673
|
-
InvisibleJoker:
|
|
1674
|
-
JackOfClubs:
|
|
1675
|
-
JackOfDiamonds:
|
|
1676
|
-
JackOfHearts:
|
|
1677
|
-
JackOfSpades:
|
|
1678
|
-
Joker:
|
|
1679
|
-
JokerExcludedByStream:
|
|
1680
|
-
JokerStencil:
|
|
1681
|
-
JollyJoker:
|
|
1682
|
-
Judgement:
|
|
1683
|
-
Juggler:
|
|
1684
|
-
Jupiter:
|
|
1685
|
-
Justice:
|
|
1686
|
-
KingOfClubs:
|
|
1687
|
-
KingOfDiamonds:
|
|
1688
|
-
KingOfHearts:
|
|
1689
|
-
KingOfSpades:
|
|
1690
|
-
LoyaltyCard:
|
|
1691
|
-
Luchador:
|
|
1692
|
-
LuckyCat:
|
|
1693
|
-
LustyJoker:
|
|
1694
|
-
MadJoker:
|
|
1695
|
-
Madness:
|
|
1696
|
-
MailInRebate:
|
|
1697
|
-
MarbleJoker:
|
|
1698
|
-
Mars:
|
|
1699
|
-
Matador:
|
|
1700
|
-
Medium:
|
|
1701
|
-
Mercury:
|
|
1702
|
-
MerryAndy:
|
|
1703
|
-
MidasMask:
|
|
1704
|
-
Mime:
|
|
1705
|
-
Misprint:
|
|
1706
|
-
MrBones:
|
|
1707
|
-
MysticSummit:
|
|
1708
|
-
Neptune:
|
|
1709
|
-
NineOfClubs:
|
|
1710
|
-
NineOfDiamonds:
|
|
1711
|
-
NineOfHearts:
|
|
1712
|
-
NineOfSpades:
|
|
1713
|
-
NotImplemented:
|
|
1714
|
-
Obelisk:
|
|
1715
|
-
OddTodd:
|
|
1716
|
-
OnyxAgate:
|
|
1717
|
-
OopsAll6s:
|
|
1718
|
-
Ouija:
|
|
1719
|
-
Pareidolia:
|
|
1720
|
-
Perkeo:
|
|
1721
|
-
Photograph:
|
|
1722
|
-
PlanetExcludedByStream:
|
|
1723
|
-
PlanetX:
|
|
1724
|
-
Pluto:
|
|
1725
|
-
Popcorn:
|
|
1726
|
-
QueenOfClubs:
|
|
1727
|
-
QueenOfDiamonds:
|
|
1728
|
-
QueenOfHearts:
|
|
1729
|
-
QueenOfSpades:
|
|
1730
|
-
RaisedFist:
|
|
1731
|
-
Ramen:
|
|
1732
|
-
RedCard:
|
|
1733
|
-
ReservedParking:
|
|
1734
|
-
RideTheBus:
|
|
1735
|
-
RiffRaff:
|
|
1736
|
-
Rocket:
|
|
1737
|
-
RoughGem:
|
|
1738
|
-
Runner:
|
|
1739
|
-
Satellite:
|
|
1740
|
-
Saturn:
|
|
1741
|
-
ScaryFace:
|
|
1742
|
-
Scholar:
|
|
1743
|
-
Seance:
|
|
1744
|
-
SeeingDouble:
|
|
1745
|
-
Seltzer:
|
|
1746
|
-
SevenOfClubs:
|
|
1747
|
-
SevenOfDiamonds:
|
|
1748
|
-
SevenOfHearts:
|
|
1749
|
-
SevenOfSpades:
|
|
1750
|
-
ShootTheMoon:
|
|
1751
|
-
Shortcut:
|
|
1752
|
-
Showman:
|
|
1753
|
-
Sigil:
|
|
1754
|
-
SixOfClubs:
|
|
1755
|
-
SixOfDiamonds:
|
|
1756
|
-
SixOfHearts:
|
|
1757
|
-
SixOfSpades:
|
|
1758
|
-
SixthSense:
|
|
1759
|
-
SlyJoker:
|
|
1760
|
-
SmearedJoker:
|
|
1761
|
-
SmileyFace:
|
|
1762
|
-
SockAndBuskin:
|
|
1763
|
-
SpaceJoker:
|
|
1764
|
-
SpareTrousers:
|
|
1765
|
-
SpectralExcludedByStream:
|
|
1766
|
-
Splash:
|
|
1767
|
-
SquareJoker:
|
|
1768
|
-
SteelJoker:
|
|
1769
|
-
StoneJoker:
|
|
1770
|
-
Strength:
|
|
1771
|
-
Stuntman:
|
|
1772
|
-
Supernova:
|
|
1773
|
-
Superposition:
|
|
1774
|
-
Swashbuckler:
|
|
1775
|
-
Talisman:
|
|
1776
|
-
TarotExcludedByStream:
|
|
1777
|
-
Temperance:
|
|
1778
|
-
TenOfClubs:
|
|
1779
|
-
TenOfDiamonds:
|
|
1780
|
-
TenOfHearts:
|
|
1781
|
-
TenOfSpades:
|
|
1782
|
-
TheChariot:
|
|
1783
|
-
TheDevil:
|
|
1784
|
-
TheDuo:
|
|
1785
|
-
TheEmperor:
|
|
1786
|
-
TheEmpress:
|
|
1787
|
-
TheFamily:
|
|
1788
|
-
TheFool:
|
|
1789
|
-
TheHangedMan:
|
|
1790
|
-
TheHermit:
|
|
1791
|
-
TheHierophant:
|
|
1792
|
-
TheHighPriestess:
|
|
1793
|
-
TheIdol:
|
|
1794
|
-
TheLovers:
|
|
1795
|
-
TheMagician:
|
|
1796
|
-
TheMoon:
|
|
1797
|
-
TheOrder:
|
|
1798
|
-
TheSoul:
|
|
1799
|
-
TheStar:
|
|
1800
|
-
TheSun:
|
|
1801
|
-
TheTower:
|
|
1802
|
-
TheTribe:
|
|
1803
|
-
TheTrio:
|
|
1804
|
-
TheWheelOfFortune:
|
|
1805
|
-
TheWorld:
|
|
1806
|
-
ThreeOfClubs:
|
|
1807
|
-
ThreeOfDiamonds:
|
|
1808
|
-
ThreeOfHearts:
|
|
1809
|
-
ThreeOfSpades:
|
|
1810
|
-
Throwback:
|
|
1811
|
-
ToDoList:
|
|
1812
|
-
ToTheMoon:
|
|
1813
|
-
TradingCard:
|
|
1814
|
-
Trance:
|
|
1815
|
-
Triboulet:
|
|
1816
|
-
Troubadour:
|
|
1817
|
-
TurtleBean:
|
|
1818
|
-
TwoOfClubs:
|
|
1819
|
-
TwoOfDiamonds:
|
|
1820
|
-
TwoOfHearts:
|
|
1821
|
-
TwoOfSpades:
|
|
1822
|
-
Uranus:
|
|
1823
|
-
Vagabond:
|
|
1824
|
-
Vampire:
|
|
1825
|
-
Venus:
|
|
1826
|
-
WalkieTalkie:
|
|
1827
|
-
WeeJoker:
|
|
1828
|
-
WilyJoker:
|
|
1829
|
-
Wraith:
|
|
1830
|
-
WrathfulJoker:
|
|
1831
|
-
Yorick:
|
|
1832
|
-
ZanyJoker:
|
|
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
|
|
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
|
-
},
|
|
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
|
-
],
|
|
1856
|
+
], v = [
|
|
1858
1857
|
"Clubs",
|
|
1859
1858
|
"Diamonds",
|
|
1860
1859
|
"Hearts",
|
|
1861
1860
|
"Spades"
|
|
1862
|
-
],
|
|
1861
|
+
], y = [
|
|
1863
1862
|
"Base",
|
|
1864
1863
|
"Foil",
|
|
1865
1864
|
"Holographic",
|
|
1866
1865
|
"Polychrome",
|
|
1867
1866
|
"Negative"
|
|
1868
|
-
],
|
|
1867
|
+
], ee = [
|
|
1869
1868
|
"None",
|
|
1870
1869
|
"Gold",
|
|
1871
1870
|
"Red",
|
|
1872
1871
|
"Blue",
|
|
1873
1872
|
"Purple"
|
|
1874
1873
|
];
|
|
1875
|
-
function
|
|
1876
|
-
return
|
|
1874
|
+
function b(e) {
|
|
1875
|
+
return h[e];
|
|
1877
1876
|
}
|
|
1878
|
-
function
|
|
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
|
|
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
|
|
1885
|
-
let t =
|
|
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 =
|
|
1890
|
-
return t === null ? "
|
|
1896
|
+
let t = C(e);
|
|
1897
|
+
return t === null ? "unknown" : T(t);
|
|
1891
1898
|
}
|
|
1892
1899
|
function D(e) {
|
|
1893
|
-
let t = C(e)
|
|
1894
|
-
return t
|
|
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 =
|
|
1907
|
+
let n = y[t];
|
|
1909
1908
|
return !n || n === "Base" ? null : n;
|
|
1910
1909
|
}
|
|
1911
|
-
function
|
|
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 =
|
|
1914
|
+
let n = ee[t];
|
|
1916
1915
|
return !n || n === "None" ? null : n;
|
|
1917
1916
|
}
|
|
1918
|
-
function
|
|
1917
|
+
function A(e) {
|
|
1919
1918
|
return e == null || typeof e == "number" || e.enhancement, null;
|
|
1920
1919
|
}
|
|
1921
|
-
function
|
|
1922
|
-
if (e == null ||
|
|
1923
|
-
let t = typeof e == "number" ?
|
|
1924
|
-
return t == null ? null : typeof e == "number" ?
|
|
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
|
|
1927
|
-
if (e == null ||
|
|
1928
|
-
let t = typeof e == "number" ?
|
|
1929
|
-
return t == null ? null : typeof e == "number" ?
|
|
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
|
|
1932
|
-
return
|
|
1930
|
+
function te(e) {
|
|
1931
|
+
return w(e);
|
|
1933
1932
|
}
|
|
1934
|
-
function
|
|
1935
|
-
let t =
|
|
1933
|
+
function N(e) {
|
|
1934
|
+
let t = C(e);
|
|
1936
1935
|
if (t === null) return null;
|
|
1937
|
-
let n =
|
|
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 ??
|
|
1940
|
+
displayName: n?.displayName ?? x(r),
|
|
1942
1941
|
category: i,
|
|
1943
|
-
edition:
|
|
1944
|
-
seal:
|
|
1945
|
-
enhancement:
|
|
1946
|
-
rank:
|
|
1947
|
-
suit:
|
|
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
|
|
1951
|
-
let n =
|
|
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
|
|
1966
|
-
function
|
|
1964
|
+
function re() {}
|
|
1965
|
+
function P() {
|
|
1967
1966
|
return 0;
|
|
1968
1967
|
}
|
|
1969
1968
|
//#endregion
|
|
1970
1969
|
//#region src/decode/motelySprite.ts
|
|
1971
|
-
function
|
|
1972
|
-
let o =
|
|
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
|
|
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
|
|
2031
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2058
|
+
function q(e) {
|
|
2060
2059
|
return e;
|
|
2061
2060
|
}
|
|
2062
|
-
function
|
|
2063
|
-
return
|
|
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
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
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
|
|
2076
|
+
function $(e) {
|
|
2074
2077
|
return e instanceof Error ? e.message : String(e);
|
|
2075
2078
|
}
|
|
2076
|
-
function
|
|
2077
|
-
let e
|
|
2078
|
-
|
|
2079
|
-
|
|
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:
|
|
2082
|
-
rootId:
|
|
2083
|
-
files:
|
|
2084
|
-
error:
|
|
2093
|
+
status: e,
|
|
2094
|
+
rootId: n,
|
|
2095
|
+
files: i,
|
|
2096
|
+
error: u,
|
|
2085
2097
|
mount: s(async () => {
|
|
2086
|
-
if (
|
|
2087
|
-
|
|
2098
|
+
if (await Q(), Y === null) {
|
|
2099
|
+
t("unsupported"), d($(X ?? "Bootsharp FileSystem package is not available."));
|
|
2088
2100
|
return;
|
|
2089
2101
|
}
|
|
2090
|
-
|
|
2102
|
+
t("mounting"), d(null);
|
|
2091
2103
|
try {
|
|
2092
2104
|
await a();
|
|
2093
|
-
let e = await
|
|
2094
|
-
mode:
|
|
2105
|
+
let e = await f.pickRoot({
|
|
2106
|
+
mode: m.ReadWrite,
|
|
2095
2107
|
id: "jaml-library"
|
|
2096
2108
|
});
|
|
2097
2109
|
if (!e) {
|
|
2098
|
-
|
|
2110
|
+
t("idle");
|
|
2099
2111
|
return;
|
|
2100
2112
|
}
|
|
2101
|
-
|
|
2113
|
+
r(await f.mountRoot(e, { mode: m.ReadWrite })), o([]), t("ready");
|
|
2102
2114
|
} catch (e) {
|
|
2103
|
-
|
|
2115
|
+
t("error"), d($(e));
|
|
2104
2116
|
}
|
|
2105
|
-
}, [
|
|
2117
|
+
}, []),
|
|
2106
2118
|
unmount: s(async () => {
|
|
2107
|
-
|
|
2108
|
-
}, [
|
|
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 (!
|
|
2111
|
-
return await a(), await
|
|
2112
|
-
}, [
|
|
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 (!
|
|
2115
|
-
await a(), await
|
|
2116
|
-
}, [
|
|
2117
|
-
refresh:
|
|
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
|
-
|
|
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
|