cubing 0.65.1 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/chunks/{chunk-PDPPBQ4O.js → chunk-VTD7RU7S.js} +2 -2
- package/dist/bin/order.js +1 -1
- package/dist/bin/puzzle-geometry-bin.js +1 -1
- package/dist/bin/scramble.js +1 -1
- package/dist/bin/svg.js +1 -1
- package/dist/lib/cubing/alg/index.d.ts +2 -2
- package/dist/lib/cubing/alg/index.js +1 -1
- package/dist/lib/cubing/bluetooth/index.d.ts +12 -13
- package/dist/lib/cubing/bluetooth/index.js +5 -5
- package/dist/lib/cubing/chunks/{big-puzzle-orientation-G75BXW2W.js → big-puzzle-orientation-KCHMEEM7.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-GO2SL6SC.js → chunk-4KLW7Y6J.js} +3 -3
- package/dist/lib/cubing/chunks/{chunk-O2QJENHE.js → chunk-6RZGNWLS.js} +3 -3
- package/dist/lib/cubing/chunks/{chunk-4ADGSRLK.js → chunk-CAQY24I5.js} +5 -5
- package/dist/lib/cubing/chunks/{chunk-YFNXHRNE.js → chunk-CFZLXDM6.js} +58 -24
- package/dist/lib/cubing/chunks/chunk-CFZLXDM6.js.map +7 -0
- package/dist/lib/cubing/chunks/{chunk-5LBACZOM.js → chunk-JL5REGXZ.js} +4 -4
- package/dist/lib/cubing/chunks/{chunk-UWJ575HH.js → chunk-K237RIQJ.js} +3 -3
- package/dist/lib/cubing/chunks/{chunk-THRYJMRP.js → chunk-L6OQRJJX.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-KHUP3BPA.js → chunk-XAOXLHYH.js} +4 -4
- package/dist/lib/cubing/chunks/{chunk-ALR6ZQFC.js → chunk-ZCZVKGKB.js} +2 -2
- package/dist/lib/cubing/chunks/{chunk-DT3GVMDI.js → chunk-ZV7PYR2S.js} +3 -3
- package/dist/lib/cubing/chunks/{inside-IHWUJJ56.js → inside-BAQGCKLY.js} +14 -14
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-YSB3MWLK.js → search-dynamic-sgs-side-events-KPAPKICT.js} +6 -6
- package/dist/lib/cubing/chunks/{search-dynamic-sgs-unofficial-OLK64DE6.js → search-dynamic-sgs-unofficial-WJZ2CWX5.js} +6 -6
- package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-WJZ2CWX5.js.map +7 -0
- package/dist/lib/cubing/chunks/{search-dynamic-solve-4x4x4-2A2XBBWI.js → search-dynamic-solve-4x4x4-OLWUV6G6.js} +7 -7
- package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-OLWUV6G6.js.map +7 -0
- package/dist/lib/cubing/chunks/{search-dynamic-solve-fto-ZZKLTONP.js → search-dynamic-solve-fto-WLOW7LAM.js} +2 -2
- package/dist/lib/cubing/chunks/search-dynamic-solve-fto-WLOW7LAM.js.map +7 -0
- package/dist/lib/cubing/chunks/{search-dynamic-solve-kilominx-PUF4PRHS.js → search-dynamic-solve-kilominx-KKUOVW5Y.js} +2 -2
- package/dist/lib/cubing/chunks/search-dynamic-solve-kilominx-KKUOVW5Y.js.map +7 -0
- package/dist/lib/cubing/chunks/search-worker-entry.js +1 -1
- package/dist/lib/cubing/chunks/{twips-LHO3IYJC.js → twips-J732JDZJ.js} +2 -2
- package/dist/lib/cubing/chunks/{twisty-dynamic-3d-A2G22YLA.js → twisty-dynamic-3d-SFR3X64P.js} +105 -90
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-SFR3X64P.js.map +7 -0
- package/dist/lib/cubing/{index-DVoQwgPC.d.ts → index-B2nOJwLe.d.ts} +42 -42
- package/dist/lib/cubing/{index-DO__MgsX.d.ts → index-Bfranlt_.d.ts} +1 -2
- package/dist/lib/cubing/kpuzzle/index.d.ts +2 -2
- package/dist/lib/cubing/kpuzzle/index.js +2 -2
- package/dist/lib/cubing/notation/index.d.ts +1 -2
- package/dist/lib/cubing/notation/index.js +4 -4
- package/dist/lib/cubing/{outside-D6O0WicV.d.ts → outside-BdYfq43N.d.ts} +2 -1
- package/dist/lib/cubing/protocol/index.d.ts +1 -2
- package/dist/lib/cubing/protocol/index.js +4 -4
- package/dist/lib/cubing/puzzle-geometry/index.d.ts +2 -2
- package/dist/lib/cubing/puzzle-geometry/index.js +1 -1
- package/dist/lib/cubing/puzzles/index.d.ts +2 -2
- package/dist/lib/cubing/puzzles/index.js +4 -4
- package/dist/lib/cubing/scramble/index.d.ts +1 -1
- package/dist/lib/cubing/scramble/index.js +6 -6
- package/dist/lib/cubing/search/index.d.ts +3 -4
- package/dist/lib/cubing/search/index.js +6 -6
- package/dist/lib/cubing/stream/index.d.ts +2 -2
- package/dist/lib/cubing/stream/index.js +1 -1
- package/dist/lib/cubing/twisty/index.d.ts +2 -2
- package/dist/lib/cubing/twisty/index.js +6 -6
- package/package.json +10 -9
- package/dist/lib/cubing/chunks/chunk-YFNXHRNE.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-sgs-unofficial-OLK64DE6.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-solve-4x4x4-2A2XBBWI.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-solve-fto-ZZKLTONP.js.map +0 -7
- package/dist/lib/cubing/chunks/search-dynamic-solve-kilominx-PUF4PRHS.js.map +0 -7
- package/dist/lib/cubing/chunks/twisty-dynamic-3d-A2G22YLA.js.map +0 -7
- /package/dist/bin/chunks/{chunk-PDPPBQ4O.js.map → chunk-VTD7RU7S.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{big-puzzle-orientation-G75BXW2W.js.map → big-puzzle-orientation-KCHMEEM7.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-GO2SL6SC.js.map → chunk-4KLW7Y6J.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-O2QJENHE.js.map → chunk-6RZGNWLS.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-4ADGSRLK.js.map → chunk-CAQY24I5.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-5LBACZOM.js.map → chunk-JL5REGXZ.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-UWJ575HH.js.map → chunk-K237RIQJ.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-THRYJMRP.js.map → chunk-L6OQRJJX.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-KHUP3BPA.js.map → chunk-XAOXLHYH.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-ALR6ZQFC.js.map → chunk-ZCZVKGKB.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{chunk-DT3GVMDI.js.map → chunk-ZV7PYR2S.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{inside-IHWUJJ56.js.map → inside-BAQGCKLY.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{search-dynamic-sgs-side-events-YSB3MWLK.js.map → search-dynamic-sgs-side-events-KPAPKICT.js.map} +0 -0
- /package/dist/lib/cubing/chunks/{twips-LHO3IYJC.js.map → twips-J732JDZJ.js.map} +0 -0
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
var packageVersion = (
|
|
5
5
|
// biome-ignore lint/suspicious/noTsIgnore: This comment is still present in the compiled file, where an error is *not* expected.
|
|
6
6
|
/** @ts-ignore Populated by `esbuild` at compile time. */
|
|
7
|
-
"0.
|
|
7
|
+
"0.66.0"
|
|
8
8
|
);
|
|
9
9
|
|
|
10
10
|
export {
|
|
11
11
|
packageVersion
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-VTD7RU7S.js.map
|
package/dist/bin/order.js
CHANGED
package/dist/bin/scramble.js
CHANGED
package/dist/bin/svg.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { At as
|
|
2
|
-
export { Alg, AlgBranch, AlgBuilder, AlgCubingNetOptions, AlgLeaf, AlgNode, AppendCancelOptions, Commutator, Conjugate, Example, ExperimentalNotationType, Parsed as ExperimentalParsed, ExperimentalSerializationOptions, Grouping, GroupingModifications, LineComment, Move, MoveModifications, Newline, Pause, PuzzleSpecificSimplifyOptions, QuantumMove, SimplifyOptions, TraversalDownUp, TraversalUp, Unit, experimentalAlgCubingNetLink, experimentalAppendMove, experimentalIs, functionFromTraversal, keyToMove, setAlgDebug };
|
|
1
|
+
import { At as Pause, Ct as AlgNode, Dt as MoveModifications, Et as Move, Ft as ExperimentalNotationType, It as ExperimentalSerializationOptions, Mt as LineComment, Nt as Conjugate, Ot as QuantumMove, Pt as Commutator, St as AlgLeaf, Tt as GroupingModifications, _t as experimentalAppendMove, a as functionFromTraversal, bt as SimplifyOptions, f as Parsed, ft as experimentalIs, gt as Alg, ht as AlgBuilder, i as TraversalUp, jt as Newline, kt as Unit, mt as setAlgDebug, n as experimentalAlgCubingNetLink, o as keyToMove, pt as Example, r as TraversalDownUp, t as AlgCubingNetOptions, vt as AppendCancelOptions, wt as Grouping, xt as AlgBranch, yt as PuzzleSpecificSimplifyOptions } from "../index-B2nOJwLe.js";
|
|
2
|
+
export { Alg, type AlgBranch, AlgBuilder, type AlgCubingNetOptions, type AlgLeaf, type AlgNode, type AppendCancelOptions, Commutator, Conjugate, Example, type ExperimentalNotationType, type Parsed as ExperimentalParsed, type ExperimentalSerializationOptions, Grouping, type GroupingModifications, LineComment, Move, type MoveModifications, Newline, Pause, type PuzzleSpecificSimplifyOptions, QuantumMove, type SimplifyOptions, TraversalDownUp, TraversalUp, Unit, experimentalAlgCubingNetLink, experimentalAppendMove, experimentalIs, functionFromTraversal, keyToMove, setAlgDebug };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="web-bluetooth" />
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { a as OrientationEvent, i as AlgLeafEvent } from "../index-
|
|
5
|
-
|
|
3
|
+
import { D as PuzzleID, Et as Move, I as MillisecondTimestamp, R as KPattern, c as PuzzleLoader, gt as Alg, s as KeyMapping } from "../index-B2nOJwLe.js";
|
|
4
|
+
import { a as OrientationEvent, i as AlgLeafEvent } from "../index-Bfranlt_.js";
|
|
6
5
|
//#region ../src/cubing/bluetooth/debug.d.ts
|
|
7
|
-
declare function enableDebugLogging(enable: boolean): void;
|
|
6
|
+
export declare function enableDebugLogging(enable: boolean): void;
|
|
8
7
|
//#endregion
|
|
9
8
|
//#region ../src/cubing/bluetooth/transformer.d.ts
|
|
10
9
|
interface StreamTransformer {
|
|
@@ -30,7 +29,7 @@ declare abstract class BluetoothPuzzle extends EventTarget {
|
|
|
30
29
|
//#endregion
|
|
31
30
|
//#region ../src/cubing/bluetooth/keyboard.d.ts
|
|
32
31
|
/** @category Keyboard Puzzles */
|
|
33
|
-
declare class KeyboardPuzzle extends BluetoothPuzzle {
|
|
32
|
+
export declare class KeyboardPuzzle extends BluetoothPuzzle {
|
|
34
33
|
private keyMappingAndPatternPromise;
|
|
35
34
|
listener: EventListener;
|
|
36
35
|
private target;
|
|
@@ -42,7 +41,7 @@ declare class KeyboardPuzzle extends BluetoothPuzzle {
|
|
|
42
41
|
private onKeyDown;
|
|
43
42
|
}
|
|
44
43
|
/** @category Keyboard Puzzles */
|
|
45
|
-
declare function debugKeyboardConnect(target?: any, puzzle?: PuzzleID | PuzzleLoader): Promise<KeyboardPuzzle>;
|
|
44
|
+
export declare function debugKeyboardConnect(target?: any, puzzle?: PuzzleID | PuzzleLoader): Promise<KeyboardPuzzle>;
|
|
46
45
|
//#endregion
|
|
47
46
|
//#region ../src/cubing/bluetooth/connect/index.d.ts
|
|
48
47
|
/******** connect() ********/
|
|
@@ -52,11 +51,11 @@ interface BluetoothConnectOptions {
|
|
|
52
51
|
//#endregion
|
|
53
52
|
//#region ../src/cubing/bluetooth/smart-puzzle/connect.d.ts
|
|
54
53
|
/** @category Smart Puzzles */
|
|
55
|
-
declare function connectSmartPuzzle(options?: BluetoothConnectOptions): Promise<BluetoothPuzzle>;
|
|
54
|
+
export declare function connectSmartPuzzle(options?: BluetoothConnectOptions): Promise<BluetoothPuzzle>;
|
|
56
55
|
//#endregion
|
|
57
56
|
//#region ../src/cubing/bluetooth/smart-puzzle/gan.d.ts
|
|
58
57
|
/** @category Smart Puzzles */
|
|
59
|
-
declare class GanCube extends BluetoothPuzzle {
|
|
58
|
+
export declare class GanCube extends BluetoothPuzzle {
|
|
60
59
|
static connect(server: BluetoothRemoteGATTServer): Promise<GanCube>;
|
|
61
60
|
INTERVAL_MS: number;
|
|
62
61
|
private intervalHandle;
|
|
@@ -89,7 +88,7 @@ declare class GanCube extends BluetoothPuzzle {
|
|
|
89
88
|
//#endregion
|
|
90
89
|
//#region ../src/cubing/bluetooth/smart-puzzle/giiker.d.ts
|
|
91
90
|
/** @category Smart Puzzles */
|
|
92
|
-
declare class GiiKERCube extends BluetoothPuzzle {
|
|
91
|
+
export declare class GiiKERCube extends BluetoothPuzzle {
|
|
93
92
|
static connect(server: BluetoothRemoteGATTServer): Promise<GiiKERCube>;
|
|
94
93
|
private server;
|
|
95
94
|
private cubeCharacteristic;
|
|
@@ -106,7 +105,7 @@ declare class GiiKERCube extends BluetoothPuzzle {
|
|
|
106
105
|
//#endregion
|
|
107
106
|
//#region ../src/cubing/bluetooth/smart-puzzle/gocube.d.ts
|
|
108
107
|
/** @category Smart Puzzles */
|
|
109
|
-
declare class GoCube extends BluetoothPuzzle {
|
|
108
|
+
export declare class GoCube extends BluetoothPuzzle {
|
|
110
109
|
static connect(server: BluetoothRemoteGATTServer): Promise<GoCube>;
|
|
111
110
|
private recorded;
|
|
112
111
|
private homeQuatInverse;
|
|
@@ -159,7 +158,7 @@ declare class GanRobot extends EventTarget {
|
|
|
159
158
|
/** @category Robots */
|
|
160
159
|
type BluetoothRobot = GanRobot;
|
|
161
160
|
/** @category Robots */
|
|
162
|
-
declare function connectSmartRobot(options?: BluetoothConnectOptions): Promise<BluetoothRobot>;
|
|
161
|
+
export declare function connectSmartRobot(options?: BluetoothConnectOptions): Promise<BluetoothRobot>;
|
|
163
162
|
//#endregion
|
|
164
163
|
//#region ../src/cubing/bluetooth/smart-timer/GanTimer.d.ts
|
|
165
164
|
/** @category Timers */
|
|
@@ -184,6 +183,6 @@ declare class GanTimer extends EventTarget {
|
|
|
184
183
|
/** @category Timers */
|
|
185
184
|
type BluetoothTimer = GanTimer;
|
|
186
185
|
/** @category Timers */
|
|
187
|
-
declare function connectSmartTimer(options?: BluetoothConnectOptions): Promise<BluetoothTimer>;
|
|
186
|
+
export declare function connectSmartTimer(options?: BluetoothConnectOptions): Promise<BluetoothTimer>;
|
|
188
187
|
//#endregion
|
|
189
|
-
export {
|
|
188
|
+
export type { BluetoothPuzzle, BluetoothRobot, BluetoothTimer, AlgLeafEvent as MoveEvent, OrientationEvent };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
binaryComponentsToReid3x3x3,
|
|
3
3
|
twizzleBinaryToBinaryComponents
|
|
4
|
-
} from "../chunks/chunk-
|
|
4
|
+
} from "../chunks/chunk-6RZGNWLS.js";
|
|
5
5
|
import {
|
|
6
6
|
puzzles
|
|
7
|
-
} from "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-XAOXLHYH.js";
|
|
8
8
|
import {
|
|
9
9
|
cube3x3x3,
|
|
10
10
|
experimental3x3x3KPuzzle
|
|
11
|
-
} from "../chunks/chunk-
|
|
11
|
+
} from "../chunks/chunk-JL5REGXZ.js";
|
|
12
12
|
import {
|
|
13
13
|
KPattern
|
|
14
|
-
} from "../chunks/chunk-
|
|
14
|
+
} from "../chunks/chunk-L6OQRJJX.js";
|
|
15
15
|
import {
|
|
16
16
|
Alg,
|
|
17
17
|
Move,
|
|
18
18
|
experimentalAppendMove,
|
|
19
19
|
keyToMove
|
|
20
|
-
} from "../chunks/chunk-
|
|
20
|
+
} from "../chunks/chunk-CFZLXDM6.js";
|
|
21
21
|
|
|
22
22
|
// src/cubing/bluetooth/debug.ts
|
|
23
23
|
var DEBUG_LOGGING_ENABLED = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Alg,
|
|
3
3
|
Grouping
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CFZLXDM6.js";
|
|
5
5
|
|
|
6
6
|
// src/cubing/puzzles/implementations/dynamic/big-cubes/big-puzzle-orientation.ts
|
|
7
7
|
function puzzleOrientationBigCubeIdx(pattern) {
|
|
@@ -65,4 +65,4 @@ export {
|
|
|
65
65
|
puzzleOrientationBigCubeCache,
|
|
66
66
|
puzzleOrientationBigCubeIdx
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=big-puzzle-orientation-
|
|
68
|
+
//# sourceMappingURL=big-puzzle-orientation-KCHMEEM7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LazyPromise
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JL5REGXZ.js";
|
|
4
4
|
|
|
5
5
|
// src/cubing/twisty/debug.ts
|
|
6
6
|
var twistyDebugGlobals = {
|
|
@@ -531,7 +531,7 @@ var StatsPanel = class {
|
|
|
531
531
|
|
|
532
532
|
// src/cubing/twisty/heavy-code-imports/3d.ts
|
|
533
533
|
var bulk3DCode = new LazyPromise(
|
|
534
|
-
() => import("./twisty-dynamic-3d-
|
|
534
|
+
() => import("./twisty-dynamic-3d-SFR3X64P.js")
|
|
535
535
|
);
|
|
536
536
|
|
|
537
537
|
// src/cubing/twisty/views/canvas.ts
|
|
@@ -1192,4 +1192,4 @@ export {
|
|
|
1192
1192
|
Twisty3DVantage,
|
|
1193
1193
|
bulk3DCode
|
|
1194
1194
|
};
|
|
1195
|
-
//# sourceMappingURL=chunk-
|
|
1195
|
+
//# sourceMappingURL=chunk-4KLW7Y6J.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
normalize3x3x3Orientation,
|
|
4
4
|
puzzleOrientation3x3x3Cache,
|
|
5
5
|
puzzleOrientation3x3x3Idx
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JL5REGXZ.js";
|
|
7
7
|
import {
|
|
8
8
|
KPattern
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L6OQRJJX.js";
|
|
10
10
|
|
|
11
11
|
// src/cubing/protocol/binary/orbit-indexing.ts
|
|
12
12
|
function identityPermutation(numElems) {
|
|
@@ -262,4 +262,4 @@ export {
|
|
|
262
262
|
bufferToSpacedHex,
|
|
263
263
|
spacedHexToBuffer
|
|
264
264
|
};
|
|
265
|
-
//# sourceMappingURL=chunk-
|
|
265
|
+
//# sourceMappingURL=chunk-6RZGNWLS.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
puzzles
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XAOXLHYH.js";
|
|
4
4
|
import {
|
|
5
5
|
LazyPromise
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JL5REGXZ.js";
|
|
7
7
|
import {
|
|
8
8
|
KPattern
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L6OQRJJX.js";
|
|
10
10
|
import {
|
|
11
11
|
Alg,
|
|
12
12
|
AlgBuilder,
|
|
13
13
|
Move
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CFZLXDM6.js";
|
|
15
15
|
|
|
16
16
|
// src/cubing/search/inside/solve/puzzles/3x3x3/index.ts
|
|
17
17
|
import { randomChoice as randomChoice2 } from "random-uint-below";
|
|
@@ -1068,4 +1068,4 @@ export {
|
|
|
1068
1068
|
* SPDX-License-Identifier: Apache-2.0
|
|
1069
1069
|
*)
|
|
1070
1070
|
*/
|
|
1071
|
-
//# sourceMappingURL=chunk-
|
|
1071
|
+
//# sourceMappingURL=chunk-CAQY24I5.js.map
|
|
@@ -20,7 +20,7 @@ var AlgCommon = class extends Comparable {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
get log() {
|
|
23
|
-
return console.log.bind(console, this
|
|
23
|
+
return console.log.bind(console, this);
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -162,11 +162,6 @@ var Conjugate = class _Conjugate extends AlgCommon {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
// src/cubing/alg/limits.ts
|
|
166
|
-
var MAX_INT = 2147483647;
|
|
167
|
-
var MAX_INT_DESCRIPTION = "2^31 - 1";
|
|
168
|
-
var MIN_INT = -2147483648;
|
|
169
|
-
|
|
170
165
|
// src/cubing/alg/AlgBuilder.ts
|
|
171
166
|
var AlgBuilder = class {
|
|
172
167
|
#algNodes = [];
|
|
@@ -662,15 +657,46 @@ var AlgParser = class {
|
|
|
662
657
|
}
|
|
663
658
|
};
|
|
664
659
|
|
|
665
|
-
// src/cubing/alg/
|
|
666
|
-
var
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
660
|
+
// src/cubing/alg/inspect.ts
|
|
661
|
+
var NODEJS_UTIL_INSPECT_CUSTOM = /* @__PURE__ */ Symbol.for(
|
|
662
|
+
"nodejs.util.inspect.custom"
|
|
663
|
+
);
|
|
664
|
+
var NODE_DEFAULT_STRING_COLOR = "green";
|
|
665
|
+
var DE_EMPHASIZED = "gray";
|
|
666
|
+
function formatForCustomInspect(className, soleParameterQuotedString, annotation) {
|
|
667
|
+
const { styleText } = globalThis.process.getBuiltinModule("node:util");
|
|
668
|
+
const annotationPart = (() => {
|
|
669
|
+
if (annotation) {
|
|
670
|
+
return ` ${styleText(DE_EMPHASIZED, "/* with parse data */")}`;
|
|
671
|
+
}
|
|
672
|
+
return "";
|
|
673
|
+
})();
|
|
674
|
+
return `${className}(${styleText(NODE_DEFAULT_STRING_COLOR, soleParameterQuotedString)}${annotationPart})`;
|
|
675
|
+
}
|
|
676
|
+
function formatForCustomInspectWithParseDataAnnotation(className, soleParameterQuotedString, value) {
|
|
677
|
+
const annotation = (() => {
|
|
678
|
+
if (startCharIndexKey in value || endCharIndexKey in value) {
|
|
679
|
+
if (startCharIndexKey in value !== endCharIndexKey in value) {
|
|
680
|
+
console.warn(
|
|
681
|
+
"Encountered an alg with start char info but no end char info. `cubing.js` should never produce this by itself."
|
|
682
|
+
);
|
|
683
|
+
}
|
|
684
|
+
return "with parse data";
|
|
685
|
+
}
|
|
686
|
+
return "";
|
|
687
|
+
})();
|
|
688
|
+
return formatForCustomInspect(
|
|
689
|
+
className,
|
|
690
|
+
soleParameterQuotedString,
|
|
691
|
+
annotation
|
|
692
|
+
);
|
|
672
693
|
}
|
|
673
694
|
|
|
695
|
+
// src/cubing/alg/limits.ts
|
|
696
|
+
var MAX_INT = 2147483647;
|
|
697
|
+
var MAX_INT_DESCRIPTION = "2^31 - 1";
|
|
698
|
+
var MIN_INT = -2147483648;
|
|
699
|
+
|
|
674
700
|
// src/cubing/alg/alg-nodes/QuantumWithAmount.ts
|
|
675
701
|
var QuantumWithAmount = class {
|
|
676
702
|
quantum;
|
|
@@ -846,11 +872,6 @@ var Move = class _Move extends AlgCommon {
|
|
|
846
872
|
return this.#quantumWithAmount.amount;
|
|
847
873
|
}
|
|
848
874
|
/** @deprecated */
|
|
849
|
-
get type() {
|
|
850
|
-
warnOnce("deprecated: type");
|
|
851
|
-
return "blockMove";
|
|
852
|
-
}
|
|
853
|
-
/** @deprecated */
|
|
854
875
|
get family() {
|
|
855
876
|
return this.#quantumWithAmount.quantum.family ?? void 0;
|
|
856
877
|
}
|
|
@@ -892,6 +913,13 @@ var Move = class _Move extends AlgCommon {
|
|
|
892
913
|
// outerLayer: this.outerLayer,
|
|
893
914
|
// };
|
|
894
915
|
// }
|
|
916
|
+
[NODEJS_UTIL_INSPECT_CUSTOM]() {
|
|
917
|
+
return formatForCustomInspectWithParseDataAnnotation(
|
|
918
|
+
"Move",
|
|
919
|
+
JSON.stringify(this.toString()),
|
|
920
|
+
this
|
|
921
|
+
);
|
|
922
|
+
}
|
|
895
923
|
};
|
|
896
924
|
|
|
897
925
|
// src/cubing/alg/alg-nodes/containers/Grouping.ts
|
|
@@ -1523,11 +1551,6 @@ var Alg = class _Alg extends AlgCommon {
|
|
|
1523
1551
|
experimentalNumChildAlgNodes() {
|
|
1524
1552
|
return Array.from(this.#algNodes).length;
|
|
1525
1553
|
}
|
|
1526
|
-
/** @deprecated */
|
|
1527
|
-
get type() {
|
|
1528
|
-
warnOnce("deprecated: type");
|
|
1529
|
-
return "sequence";
|
|
1530
|
-
}
|
|
1531
1554
|
/**
|
|
1532
1555
|
* Converts the Alg to a string:
|
|
1533
1556
|
*
|
|
@@ -1613,6 +1636,17 @@ var Alg = class _Alg extends AlgCommon {
|
|
|
1613
1636
|
simplify(options) {
|
|
1614
1637
|
return this.experimentalSimplify(options);
|
|
1615
1638
|
}
|
|
1639
|
+
[NODEJS_UTIL_INSPECT_CUSTOM]() {
|
|
1640
|
+
const string = (() => {
|
|
1641
|
+
const asString = this.toString();
|
|
1642
|
+
if (asString.includes("\n")) {
|
|
1643
|
+
return `\`${asString.replaceAll(/(`\$)/g, "\\$1")}\``;
|
|
1644
|
+
} else {
|
|
1645
|
+
return JSON.stringify(asString);
|
|
1646
|
+
}
|
|
1647
|
+
})();
|
|
1648
|
+
return formatForCustomInspectWithParseDataAnnotation("Alg", string, this);
|
|
1649
|
+
}
|
|
1616
1650
|
};
|
|
1617
1651
|
function spaceBetween(u1, u2) {
|
|
1618
1652
|
if (u1.is(Newline) || u2.is(Newline)) {
|
|
@@ -1879,4 +1913,4 @@ export {
|
|
|
1879
1913
|
keyToMove,
|
|
1880
1914
|
experimentalAlgCubingNetLink
|
|
1881
1915
|
};
|
|
1882
|
-
//# sourceMappingURL=chunk-
|
|
1916
|
+
//# sourceMappingURL=chunk-CFZLXDM6.js.map
|