@r_masseater/fumx 0.0.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +87 -0
- package/README.md +123 -1
- package/dist/analysis-BAPm6c9P.d.mts +75 -0
- package/dist/analysis-CRyaJD5D.mjs +294 -0
- package/dist/analysis-CRyaJD5D.mjs.map +1 -0
- package/dist/analysis.d.mts +3 -0
- package/dist/analysis.mjs +3 -0
- package/dist/cli-Ci7maCdL.mjs +2506 -0
- package/dist/cli-Ci7maCdL.mjs.map +1 -0
- package/dist/convert-als.d.mts +17 -0
- package/dist/convert-als.mjs +512 -0
- package/dist/convert-als.mjs.map +1 -0
- package/dist/convert-midi.d.mts +17 -0
- package/dist/convert-midi.mjs +273 -0
- package/dist/convert-midi.mjs.map +1 -0
- package/dist/fumx.mjs +9 -0
- package/dist/fumx.mjs.map +1 -0
- package/dist/grammar-Ds8M-PkG.mjs +9836 -0
- package/dist/grammar-Ds8M-PkG.mjs.map +1 -0
- package/dist/habits.d.mts +71 -0
- package/dist/habits.mjs +98 -0
- package/dist/habits.mjs.map +1 -0
- package/dist/index-Bc9UT9HF.d.mts +795 -0
- package/dist/index-C7av_aK1.d.mts +104 -0
- package/dist/index-DOfjU43D.d.mts +71 -0
- package/dist/index-KxUilka8.d.mts +6 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +4 -0
- package/dist/lint-Bnl4l0aI.mjs +296 -0
- package/dist/lint-Bnl4l0aI.mjs.map +1 -0
- package/dist/lint-CJ5lq-Fr.d.mts +37 -0
- package/dist/lint.d.mts +3 -0
- package/dist/lint.mjs +1 -0
- package/dist/mapper.mjs +14 -0
- package/dist/mapper.mjs.map +1 -0
- package/dist/mix-facts-QCYCXdIA.mjs +7006 -0
- package/dist/mix-facts-QCYCXdIA.mjs.map +1 -0
- package/dist/presets.d.mts +35 -0
- package/dist/presets.mjs +814 -0
- package/dist/presets.mjs.map +1 -0
- package/dist/read-song-B9342KUK.mjs +13017 -0
- package/dist/read-song-B9342KUK.mjs.map +1 -0
- package/dist/read-song-CsW4kd7v.d.mts +1326 -0
- package/dist/read-song-DW8MLsln.mjs +2783 -0
- package/dist/read-song-DW8MLsln.mjs.map +1 -0
- package/dist/song-BlIPWk7b.mjs +387 -0
- package/dist/song-BlIPWk7b.mjs.map +1 -0
- package/dist/song-UZ4T_dj9.d.mts +1477 -0
- package/dist/sounding-BCyExbPp.d.mts +20 -0
- package/dist/sounding-DYDZFp4e.mjs +41 -0
- package/dist/sounding-DYDZFp4e.mjs.map +1 -0
- package/dist/style-rules-CjaZTDt_.d.mts +131 -0
- package/dist/ticks-D6yACwHt.mjs +26 -0
- package/dist/ticks-D6yACwHt.mjs.map +1 -0
- package/dist/transform-DGUihHCR.mjs +108 -0
- package/dist/transform-DGUihHCR.mjs.map +1 -0
- package/dist/vite.d.mts +8 -0
- package/dist/vite.mjs +127 -0
- package/dist/vite.mjs.map +1 -0
- package/dist/write-CHtCd-bG.mjs +747 -0
- package/dist/write-CHtCd-bG.mjs.map +1 -0
- package/package.json +111 -5
- package/skills/lint-songs/SKILL.md +54 -0
- package/skills/read-fumx/SKILL.md +89 -0
- package/skills/use-fumx-tools/SKILL.md +69 -0
- package/skills/use-lint-presets/SKILL.md +72 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { a as StyleRulesSchema, c as subjectKeyOf, d as StyleTable, f as StyleTableSchema, i as StyleRules, l as MixHabit, m as Step, n as HabitKind, o as Subject, r as HabitRule, s as SubjectSchema, t as HABIT_KINDS, u as mixKeyOf } from "./style-rules-CjaZTDt_.mjs";
|
|
2
|
+
import "./analysis-BAPm6c9P.mjs";
|
|
3
|
+
import "./index-KxUilka8.mjs";
|
|
4
|
+
import { Effect, Schema } from "effect";
|
|
5
|
+
interface MixPlace {
|
|
6
|
+
readonly bar: number;
|
|
7
|
+
readonly line: number;
|
|
8
|
+
readonly column: number;
|
|
9
|
+
}
|
|
10
|
+
interface MixFact {
|
|
11
|
+
readonly habit: MixHabit;
|
|
12
|
+
readonly place: MixPlace;
|
|
13
|
+
}
|
|
14
|
+
interface StyleSong {
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly steps: readonly Step[];
|
|
17
|
+
readonly mix: readonly MixFact[];
|
|
18
|
+
}
|
|
19
|
+
interface HabitLimits {
|
|
20
|
+
readonly songs: number;
|
|
21
|
+
readonly share: number;
|
|
22
|
+
readonly baseline: number;
|
|
23
|
+
readonly seen: number;
|
|
24
|
+
}
|
|
25
|
+
export declare const DEFAULT_LIMITS: HabitLimits;
|
|
26
|
+
interface Place {
|
|
27
|
+
readonly song: string;
|
|
28
|
+
readonly bar: number;
|
|
29
|
+
readonly line: number;
|
|
30
|
+
readonly column: number;
|
|
31
|
+
}
|
|
32
|
+
interface Habit {
|
|
33
|
+
readonly context: string;
|
|
34
|
+
readonly next: string;
|
|
35
|
+
readonly songs: number;
|
|
36
|
+
readonly count: number;
|
|
37
|
+
readonly share: number;
|
|
38
|
+
readonly baselineShare: number;
|
|
39
|
+
readonly evidence: readonly Place[];
|
|
40
|
+
}
|
|
41
|
+
interface HabitInput {
|
|
42
|
+
readonly songs: readonly StyleSong[];
|
|
43
|
+
readonly baseline: StyleTable;
|
|
44
|
+
readonly limits: HabitLimits;
|
|
45
|
+
}
|
|
46
|
+
export declare const habitsOf: ({ songs, baseline, limits }: HabitInput) => readonly Habit[];
|
|
47
|
+
declare const UnreadableSong_base: Schema.Class<UnreadableSong, Schema.TaggedStruct<"UnreadableSong", {
|
|
48
|
+
readonly message: Schema.String;
|
|
49
|
+
}>, import("effect/Cause").YieldableError & {
|
|
50
|
+
readonly brand: unique symbol;
|
|
51
|
+
}>;
|
|
52
|
+
export declare class UnreadableSong extends UnreadableSong_base {}
|
|
53
|
+
interface SongText {
|
|
54
|
+
readonly name: string;
|
|
55
|
+
readonly text: string;
|
|
56
|
+
}
|
|
57
|
+
export declare const styleSongFromText: (args_0: SongText) => Effect.Effect<StyleSong, UnreadableSong, never>;
|
|
58
|
+
interface MixHabitFound {
|
|
59
|
+
readonly habit: MixHabit;
|
|
60
|
+
readonly key: string;
|
|
61
|
+
readonly songs: number;
|
|
62
|
+
readonly count: number;
|
|
63
|
+
readonly evidence: readonly Place[];
|
|
64
|
+
}
|
|
65
|
+
interface MixHabitInput {
|
|
66
|
+
readonly songs: readonly StyleSong[];
|
|
67
|
+
readonly minSongs: number;
|
|
68
|
+
}
|
|
69
|
+
export declare const mixHabitsOf: ({ songs, minSongs }: MixHabitInput) => readonly MixHabitFound[];
|
|
70
|
+
export declare const BACH_TABLE: StyleTable;
|
|
71
|
+
export { HABIT_KINDS, type Habit, type HabitInput, type HabitKind, type HabitLimits, type HabitRule, type MixHabit, type MixHabitFound, type Place, type SongText, type StyleRules, StyleRulesSchema, type StyleSong, type StyleTable, StyleTableSchema, type Subject, SubjectSchema, mixKeyOf, subjectKeyOf };
|
package/dist/habits.mjs
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { a as StyleRulesSchema, c as mixKeyOf, d as bach_chorales_default, f as progressionOf, i as HABIT_KINDS, l as StyleTableSchema, o as SubjectSchema, s as subjectKeyOf, t as mixFactsOf, u as longestContext } from "./mix-facts-QCYCXdIA.mjs";
|
|
2
|
+
import { Array, Effect, Number, Option, Order, Record, Schema, String, pipe } from "effect";
|
|
3
|
+
import { r as soundingsOf } from "./sounding-DYDZFp4e.mjs";
|
|
4
|
+
import { t as readSong } from "./read-song-DW8MLsln.mjs";
|
|
5
|
+
// src/app/presets/features/find-habits/model/habits.ts
|
|
6
|
+
const FIRST = 1;
|
|
7
|
+
const NEVER = 0;
|
|
8
|
+
const DEFAULT_LIMITS = {
|
|
9
|
+
songs: 2,
|
|
10
|
+
share: .3,
|
|
11
|
+
baseline: .03,
|
|
12
|
+
seen: 8
|
|
13
|
+
};
|
|
14
|
+
const occurrencesIn = (baseline, limits) => (song) => pipe(Array.drop(Array.makeBy(song.steps.length, (index) => index), FIRST), Array.flatMap((index) => {
|
|
15
|
+
const step = Array.getUnsafe(song.steps, index);
|
|
16
|
+
return pipe(longestContext({
|
|
17
|
+
table: baseline,
|
|
18
|
+
seen: limits.seen
|
|
19
|
+
})(Array.take(song.steps, index)), Option.map((context) => ({
|
|
20
|
+
context: context.words,
|
|
21
|
+
next: step.token,
|
|
22
|
+
baselineShare: Option.getOrElse(Record.get(context.next, step.token), () => NEVER) / context.total,
|
|
23
|
+
place: {
|
|
24
|
+
song: song.name,
|
|
25
|
+
bar: step.bar,
|
|
26
|
+
line: step.line,
|
|
27
|
+
column: step.column
|
|
28
|
+
}
|
|
29
|
+
})), Option.filter((occurrence) => occurrence.baselineShare < limits.baseline), Option.toArray);
|
|
30
|
+
}));
|
|
31
|
+
const matches = (tokens, words) => Array.join(tokens, " ") === words;
|
|
32
|
+
const styleShareOf = (songs) => (context, next) => {
|
|
33
|
+
const { length } = String.split(" ")(context);
|
|
34
|
+
const following = pipe(songs, Array.flatMap((song) => {
|
|
35
|
+
const tokens = pipe(song.steps, Array.map((step) => step.token));
|
|
36
|
+
return pipe(Array.makeBy(tokens.length, (index) => index), Array.filter((index) => index >= length && matches(tokens.slice(index - length, index), context)), Array.map((index) => Array.getUnsafe(tokens, index)));
|
|
37
|
+
}));
|
|
38
|
+
return Array.countBy(following, (token) => token === next) / following.length;
|
|
39
|
+
};
|
|
40
|
+
const habitOf = (share) => (same) => {
|
|
41
|
+
const first = Array.headNonEmpty(same);
|
|
42
|
+
return {
|
|
43
|
+
context: first.context,
|
|
44
|
+
next: first.next,
|
|
45
|
+
songs: pipe(same, Array.map((occurrence) => occurrence.place.song), Array.dedupe, Array.length),
|
|
46
|
+
count: same.length,
|
|
47
|
+
share: share(first.context, first.next),
|
|
48
|
+
baselineShare: first.baselineShare,
|
|
49
|
+
evidence: pipe(same, Array.map((occurrence) => occurrence.place))
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
const byReach$1 = Order.combine(Order.mapInput(Number.Order, (habit) => -habit.songs), Order.mapInput(Number.Order, (habit) => -habit.count));
|
|
53
|
+
const habitsOf = ({ songs, baseline, limits }) => {
|
|
54
|
+
const toHabit = habitOf(styleShareOf(songs));
|
|
55
|
+
return pipe(songs, Array.flatMap(occurrencesIn(baseline, limits)), Array.groupBy((occurrence) => `${occurrence.context}\u0000${occurrence.next}`), Record.values, Array.map(toHabit), Array.filter((habit) => habit.songs >= limits.songs && habit.share >= limits.share), Array.sortBy(byReach$1));
|
|
56
|
+
};
|
|
57
|
+
// src/app/presets/features/find-habits/model/read.ts
|
|
58
|
+
const taggedError = Schema.TaggedError;
|
|
59
|
+
var UnreadableSong = class extends taggedError()("UnreadableSong", { message: Schema.String }, { identifier: "UnreadableSong" }) {};
|
|
60
|
+
const styleSongFromText = Effect.fn("styleSongFromText")(function* styleSongFromText({ name, text }) {
|
|
61
|
+
const source = yield* readSong({
|
|
62
|
+
path: `/${name}.fumx`,
|
|
63
|
+
read: () => Effect.succeed(text)
|
|
64
|
+
});
|
|
65
|
+
if (source.status === "invalid") return yield* UnreadableSong.make({ message: `${name} is not a song fumx can read` });
|
|
66
|
+
const soundings = soundingsOf(source.song);
|
|
67
|
+
return {
|
|
68
|
+
name,
|
|
69
|
+
steps: progressionOf(soundings)(source.song),
|
|
70
|
+
mix: mixFactsOf(soundings)(source.song)
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
// src/app/presets/features/find-habits/model/mix-habits.ts
|
|
74
|
+
const seenIn = (song) => pipe(song.mix, Array.map((fact) => ({
|
|
75
|
+
habit: fact.habit,
|
|
76
|
+
key: mixKeyOf(fact.habit),
|
|
77
|
+
place: {
|
|
78
|
+
song: song.name,
|
|
79
|
+
...fact.place
|
|
80
|
+
}
|
|
81
|
+
})));
|
|
82
|
+
const foundOf = (same) => {
|
|
83
|
+
const first = Array.headNonEmpty(same);
|
|
84
|
+
return {
|
|
85
|
+
habit: first.habit,
|
|
86
|
+
key: first.key,
|
|
87
|
+
songs: pipe(same, Array.map((seen) => seen.place.song), Array.dedupe, Array.length),
|
|
88
|
+
count: same.length,
|
|
89
|
+
evidence: pipe(same, Array.map((seen) => seen.place))
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
const byReach = Order.combine(Order.mapInput(Order.Number, (found) => -found.songs), Order.mapInput(Order.Number, (found) => -found.count));
|
|
93
|
+
const mixHabitsOf = ({ songs, minSongs }) => pipe(songs, Array.flatMap(seenIn), Array.groupBy((seen) => seen.key), Record.values, Array.map(foundOf), Array.filter((found) => found.songs >= minSongs), Array.sortBy(byReach));
|
|
94
|
+
// src/app/habits.ts
|
|
95
|
+
const BACH_TABLE = bach_chorales_default;
|
|
96
|
+
export { BACH_TABLE, DEFAULT_LIMITS, HABIT_KINDS, StyleRulesSchema, StyleTableSchema, SubjectSchema, UnreadableSong, habitsOf, mixHabitsOf, mixKeyOf, styleSongFromText, subjectKeyOf };
|
|
97
|
+
|
|
98
|
+
//# sourceMappingURL=habits.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"habits.mjs","names":["Arr","Rec","Str","byReach","Num","Arr","Rec","BACH_CHORALES"],"sources":["../src/app/presets/features/find-habits/model/habits.ts","../src/app/presets/features/find-habits/model/read.ts","../src/app/presets/features/find-habits/model/mix-habits.ts","../src/app/habits.ts"],"sourcesContent":["import {\n Array as Arr,\n Number as Num,\n Option,\n Order,\n Record as Rec,\n String as Str,\n pipe,\n} from \"effect\";\n\nimport type { Step } from \"#/app/presets/shared/lib/degrees.ts\";\nimport type { MixFact } from \"#/app/presets/shared/lib/mix-facts.ts\";\nimport { longestContext } from \"#/app/presets/shared/lib/style-table.ts\";\nimport type { StyleTable } from \"#/app/presets/shared/lib/style-table.ts\";\n\nconst FIRST = 1;\nconst NEVER = 0;\n\nexport interface StyleSong {\n readonly name: string;\n readonly steps: readonly Step[];\n readonly mix: readonly MixFact[];\n}\n\nexport interface HabitLimits {\n readonly songs: number;\n readonly share: number;\n readonly baseline: number;\n readonly seen: number;\n}\n\nexport const DEFAULT_LIMITS: HabitLimits = { songs: 2, share: 0.3, baseline: 0.03, seen: 8 };\n\nexport interface Place {\n readonly song: string;\n readonly bar: number;\n readonly line: number;\n readonly column: number;\n}\n\nexport interface Habit {\n readonly context: string;\n readonly next: string;\n readonly songs: number;\n readonly count: number;\n readonly share: number;\n readonly baselineShare: number;\n readonly evidence: readonly Place[];\n}\n\nexport interface HabitInput {\n readonly songs: readonly StyleSong[];\n readonly baseline: StyleTable;\n readonly limits: HabitLimits;\n}\n\ninterface Occurrence {\n readonly context: string;\n readonly next: string;\n readonly baselineShare: number;\n readonly place: Place;\n}\n\nconst occurrencesIn =\n (baseline: StyleTable, limits: HabitLimits) =>\n (song: StyleSong): readonly Occurrence[] =>\n pipe(\n Arr.drop(\n Arr.makeBy(song.steps.length, (index) => index),\n FIRST,\n ),\n Arr.flatMap((index) => {\n const step = Arr.getUnsafe(song.steps, index);\n return pipe(\n longestContext({ table: baseline, seen: limits.seen })(Arr.take(song.steps, index)),\n Option.map((context) => ({\n context: context.words,\n next: step.token,\n baselineShare:\n Option.getOrElse(Rec.get(context.next, step.token), () => NEVER) / context.total,\n place: { song: song.name, bar: step.bar, line: step.line, column: step.column },\n })),\n Option.filter((occurrence) => occurrence.baselineShare < limits.baseline),\n Option.toArray,\n );\n }),\n );\n\nconst matches = (tokens: readonly string[], words: string): boolean =>\n Arr.join(tokens, \" \") === words;\n\nconst styleShareOf =\n (songs: readonly StyleSong[]) =>\n (context: string, next: string): number => {\n const { length } = Str.split(\" \")(context);\n const following = pipe(\n songs,\n Arr.flatMap((song) => {\n const tokens = pipe(\n song.steps,\n Arr.map((step) => step.token),\n );\n return pipe(\n Arr.makeBy(tokens.length, (index) => index),\n Arr.filter(\n (index) => index >= length && matches(tokens.slice(index - length, index), context),\n ),\n Arr.map((index) => Arr.getUnsafe(tokens, index)),\n );\n }),\n );\n return Arr.countBy(following, (token) => token === next) / following.length;\n };\n\nconst habitOf =\n (share: (context: string, next: string) => number) =>\n (same: Arr.NonEmptyReadonlyArray<Occurrence>): Habit => {\n const first = Arr.headNonEmpty(same);\n return {\n context: first.context,\n next: first.next,\n songs: pipe(\n same,\n Arr.map((occurrence) => occurrence.place.song),\n Arr.dedupe,\n Arr.length,\n ),\n count: same.length,\n share: share(first.context, first.next),\n baselineShare: first.baselineShare,\n evidence: pipe(\n same,\n Arr.map((occurrence) => occurrence.place),\n ),\n };\n };\n\nconst byReach = Order.combine(\n Order.mapInput(Num.Order, (habit: Habit) => -habit.songs),\n Order.mapInput(Num.Order, (habit: Habit) => -habit.count),\n);\n\nexport const habitsOf = ({ songs, baseline, limits }: HabitInput): readonly Habit[] => {\n const toHabit = habitOf(styleShareOf(songs));\n return pipe(\n songs,\n Arr.flatMap(occurrencesIn(baseline, limits)),\n Arr.groupBy((occurrence) => `${occurrence.context}\\u0000${occurrence.next}`),\n Rec.values,\n Arr.map(toHabit),\n Arr.filter((habit) => habit.songs >= limits.songs && habit.share >= limits.share),\n Arr.sortBy(byReach),\n );\n};\n","import { Effect, Schema } from \"effect\";\n\nimport { soundingsOf } from \"#/app/analysis.ts\";\nimport { readSong } from \"#/app/index.ts\";\nimport { progressionOf } from \"#/app/presets/shared/lib/degrees.ts\";\nimport { mixFactsOf } from \"#/app/presets/shared/lib/mix-facts.ts\";\n\nimport type { StyleSong } from \"./habits.ts\";\n\nconst taggedError = Schema.TaggedError;\n\nexport class UnreadableSong extends taggedError<\n UnreadableSong,\n { readonly brand: unique symbol }\n>()(\"UnreadableSong\", { message: Schema.String }, { identifier: \"UnreadableSong\" }) {}\n\nexport interface SongText {\n readonly name: string;\n readonly text: string;\n}\n\nexport const styleSongFromText = Effect.fn(\"styleSongFromText\")(function* styleSongFromText({\n name,\n text,\n}: SongText) {\n const source = yield* readSong({ path: `/${name}.fumx`, read: () => Effect.succeed(text) });\n if (source.status === \"invalid\") {\n return yield* UnreadableSong.make({ message: `${name} is not a song fumx can read` });\n }\n const soundings = soundingsOf(source.song);\n const song: StyleSong = {\n name,\n steps: progressionOf(soundings)(source.song),\n mix: mixFactsOf(soundings)(source.song),\n };\n return song;\n});\n","import { Array as Arr, Order, Record as Rec, pipe } from \"effect\";\n\nimport { mixKeyOf } from \"#/app/presets/shared/lib/mix-habit.ts\";\nimport type { MixHabit } from \"#/app/presets/shared/lib/mix-habit.ts\";\n\nimport type { Place, StyleSong } from \"./habits.ts\";\n\nexport interface MixHabitFound {\n readonly habit: MixHabit;\n readonly key: string;\n readonly songs: number;\n readonly count: number;\n readonly evidence: readonly Place[];\n}\n\nexport interface MixHabitInput {\n readonly songs: readonly StyleSong[];\n readonly minSongs: number;\n}\n\ninterface Seen {\n readonly habit: MixHabit;\n readonly key: string;\n readonly place: Place;\n}\n\nconst seenIn = (song: StyleSong): readonly Seen[] =>\n pipe(\n song.mix,\n Arr.map((fact) => ({\n habit: fact.habit,\n key: mixKeyOf(fact.habit),\n place: { song: song.name, ...fact.place },\n })),\n );\n\nconst foundOf = (same: Arr.NonEmptyReadonlyArray<Seen>): MixHabitFound => {\n const first = Arr.headNonEmpty(same);\n return {\n habit: first.habit,\n key: first.key,\n songs: pipe(\n same,\n Arr.map((seen) => seen.place.song),\n Arr.dedupe,\n Arr.length,\n ),\n count: same.length,\n evidence: pipe(\n same,\n Arr.map((seen) => seen.place),\n ),\n };\n};\n\nconst byReach = Order.combine(\n Order.mapInput(Order.Number, (found: MixHabitFound) => -found.songs),\n Order.mapInput(Order.Number, (found: MixHabitFound) => -found.count),\n);\n\nexport const mixHabitsOf = ({ songs, minSongs }: MixHabitInput): readonly MixHabitFound[] =>\n pipe(\n songs,\n Arr.flatMap(seenIn),\n Arr.groupBy((seen) => seen.key),\n Rec.values,\n Arr.map(foundOf),\n Arr.filter((found) => found.songs >= minSongs),\n Arr.sortBy(byReach),\n );\n","import BACH_CHORALES from \"#/app/presets/features/check-style/data/bach-chorales.json\" with { type: \"json\" };\nimport type { StyleTable } from \"#/app/presets/shared/lib/style-table.ts\";\n\nexport {\n DEFAULT_LIMITS,\n UnreadableSong,\n habitsOf,\n mixHabitsOf,\n styleSongFromText,\n} from \"#/app/presets/features/find-habits/index.ts\";\nexport type {\n Habit,\n HabitInput,\n HabitLimits,\n MixHabitFound,\n Place,\n SongText,\n StyleSong,\n} from \"#/app/presets/features/find-habits/index.ts\";\nexport {\n HABIT_KINDS,\n StyleRulesSchema,\n SubjectSchema,\n subjectKeyOf,\n} from \"#/app/presets/shared/lib/style-rules.ts\";\nexport type {\n HabitKind,\n HabitRule,\n StyleRules,\n Subject,\n} from \"#/app/presets/shared/lib/style-rules.ts\";\nexport { mixKeyOf } from \"#/app/presets/shared/lib/mix-habit.ts\";\nexport type { MixHabit } from \"#/app/presets/shared/lib/mix-habit.ts\";\nexport { StyleTableSchema } from \"#/app/presets/shared/lib/style-table.ts\";\nexport type { StyleTable } from \"#/app/presets/shared/lib/style-table.ts\";\n\nexport const BACH_TABLE: StyleTable = BACH_CHORALES;\n"],"mappings":";;;;;AAeA,MAAM,QAAQ;AACd,MAAM,QAAQ;AAed,MAAa,iBAA8B;CAAE,OAAO;CAAG,OAAO;CAAK,UAAU;CAAM,MAAM;AAAE;AAgC3F,MAAM,iBACH,UAAsB,YACtB,SACC,KACEA,MAAI,KACFA,MAAI,OAAO,KAAK,MAAM,SAAS,UAAU,KAAK,GAC9C,KACF,GACAA,MAAI,SAAS,UAAU;CACrB,MAAM,OAAOA,MAAI,UAAU,KAAK,OAAO,KAAK;CAC5C,OAAO,KACL,eAAe;EAAE,OAAO;EAAU,MAAM,OAAO;CAAK,CAAC,CAAC,CAACA,MAAI,KAAK,KAAK,OAAO,KAAK,CAAC,GAClF,OAAO,KAAK,aAAa;EACvB,SAAS,QAAQ;EACjB,MAAM,KAAK;EACX,eACE,OAAO,UAAUC,OAAI,IAAI,QAAQ,MAAM,KAAK,KAAK,SAAS,KAAK,IAAI,QAAQ;EAC7E,OAAO;GAAE,MAAM,KAAK;GAAM,KAAK,KAAK;GAAK,MAAM,KAAK;GAAM,QAAQ,KAAK;EAAO;CAChF,EAA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