cubing 0.23.0 → 0.24.0-pre1
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/esm/{2x2x2.kpuzzle.json-JOGUSQ4N.js → 2x2x2.kpuzzle.json-U5KOZCMU.js} +11 -11
- package/dist/esm/2x2x2.kpuzzle.json-U5KOZCMU.js.map +7 -0
- package/dist/esm/{2x2x2.sgs.json-FRBWMMA7.js → 2x2x2.sgs.json-VLYEQLNB.js} +5 -5
- package/dist/esm/2x2x2.sgs.json-VLYEQLNB.js.map +7 -0
- package/dist/esm/{3d-Q4WSD4BC.js → 3d-KAC5GXA4.js} +4 -4
- package/dist/esm/{3d-Q4WSD4BC.js.map → 3d-KAC5GXA4.js.map} +0 -0
- package/dist/esm/bluetooth/index.js +39 -33
- package/dist/esm/bluetooth/index.js.map +2 -2
- package/dist/esm/{chunk-FK2SCC3Z.js → chunk-23FEDDYH.js} +33 -27
- package/dist/esm/chunk-23FEDDYH.js.map +7 -0
- package/dist/esm/{chunk-DK6PXBB2.js → chunk-25PPOENI.js} +66 -56
- package/dist/esm/chunk-25PPOENI.js.map +7 -0
- package/dist/esm/{chunk-XVZOMB6J.js → chunk-27KJGD3S.js} +15 -20
- package/dist/esm/chunk-27KJGD3S.js.map +7 -0
- package/dist/esm/{chunk-DPMEZY7V.js → chunk-DBWASN5Q.js} +19 -10
- package/dist/esm/chunk-DBWASN5Q.js.map +7 -0
- package/dist/esm/{chunk-PUPUQWJC.js → chunk-J2U2GRS4.js} +27 -32
- package/dist/esm/chunk-J2U2GRS4.js.map +7 -0
- package/dist/esm/{chunk-Z6X7HTPP.js → chunk-MQYHOXEK.js} +4 -4
- package/dist/esm/{chunk-Z6X7HTPP.js.map → chunk-MQYHOXEK.js.map} +2 -2
- package/dist/esm/chunk-PMAQZQHL.js +810 -0
- package/dist/esm/chunk-PMAQZQHL.js.map +7 -0
- package/dist/esm/{chunk-N3RNWU5T.js → chunk-PQKDEV4Z.js} +36 -51
- package/dist/esm/chunk-PQKDEV4Z.js.map +7 -0
- package/dist/esm/{chunk-JZWB7AIU.js → chunk-PYOHTUEC.js} +17 -10
- package/dist/esm/chunk-PYOHTUEC.js.map +7 -0
- package/dist/esm/chunk-W6AA6TVR.js +274 -0
- package/dist/esm/chunk-W6AA6TVR.js.map +7 -0
- package/dist/esm/{chunk-MLOCDLUF.js → chunk-YLKDBBMW.js} +13 -13
- package/dist/esm/{chunk-MLOCDLUF.js.map → chunk-YLKDBBMW.js.map} +2 -2
- package/dist/esm/{clock.kpuzzle.json-EKWRMHJM.js → clock.kpuzzle.json-J3YBOI3G.js} +7 -45
- package/dist/esm/clock.kpuzzle.json-J3YBOI3G.js.map +7 -0
- package/dist/esm/{entry-L6CE2HLF.js → entry-ZLEDRTCM.js} +172 -167
- package/dist/esm/entry-ZLEDRTCM.js.map +7 -0
- package/dist/esm/{fto.sgs.json-62YNULOK.js → fto.sgs.json-PUAEKD7W.js} +6 -14
- package/dist/esm/fto.sgs.json-PUAEKD7W.js.map +7 -0
- package/dist/esm/kpuzzle/index.js +5 -35
- package/dist/esm/megaminx.sgs.json-DPQBIFB6.js +16 -0
- package/dist/esm/{megaminx.sgs.json-PRL46G5J.js.map → megaminx.sgs.json-DPQBIFB6.js.map} +0 -0
- package/dist/esm/{module-entry-J2N3UZP7.js → module-entry-UAGINHYL.js} +2 -2
- package/dist/esm/{module-entry-J2N3UZP7.js.map → module-entry-UAGINHYL.js.map} +0 -0
- package/dist/esm/protocol/index.js +2 -1
- package/dist/esm/puzzle-geometry/index.js +3 -1
- package/dist/esm/puzzles/index.js +4 -4
- package/dist/esm/{pyraminx.sgs.json-7QMPT5XP.js → pyraminx.sgs.json-5UKE76QP.js} +5 -5
- package/dist/esm/{pyraminx.sgs.json-7QMPT5XP.js.map → pyraminx.sgs.json-5UKE76QP.js.map} +0 -0
- package/dist/esm/scramble/index.js +4 -4
- package/dist/esm/{scramble_444-JP3CWLJM.js → scramble_444-ZNWCGUX5.js} +4 -4
- package/dist/esm/{scramble_444-JP3CWLJM.js.map → scramble_444-ZNWCGUX5.js.map} +0 -0
- package/dist/esm/search/index.js +4 -4
- package/dist/esm/skewb.sgs.json-O2CG5ALM.js +16 -0
- package/dist/esm/{skewb.sgs.json-FWHYACJG.js.map → skewb.sgs.json-O2CG5ALM.js.map} +0 -0
- package/dist/esm/{sq1-hyperorbit.kpuzzle.json-N3FGCPML.js → sq1-hyperorbit.kpuzzle.json-AWDGN4ZW.js} +6 -6
- package/dist/esm/sq1-hyperorbit.kpuzzle.json-AWDGN4ZW.js.map +7 -0
- package/dist/esm/twisty/index.js +334 -227
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/esm/worker-inside-generated-string-K4KJGMPV.js +3447 -0
- package/dist/esm/worker-inside-generated-string-K4KJGMPV.js.map +7 -0
- package/dist/types/alg/Alg.d.ts +0 -1
- package/dist/types/alg/Alg.spec.d.ts +0 -1
- package/dist/types/alg/AlgBuilder.d.ts +0 -1
- package/dist/types/alg/Serializable.d.ts +0 -1
- package/dist/types/alg/common.d.ts +0 -1
- package/dist/types/alg/debug.d.ts +0 -1
- package/dist/types/alg/example.d.ts +0 -1
- package/dist/types/alg/index.d.ts +0 -1
- package/dist/types/alg/is.d.ts +0 -1
- package/dist/types/alg/iteration.d.ts +0 -1
- package/dist/types/alg/keyboard.d.ts +0 -1
- package/dist/types/alg/limits.d.ts +0 -1
- package/dist/types/alg/operation.d.ts +0 -1
- package/dist/types/alg/operation.spec.d.ts +0 -1
- package/dist/types/alg/parse.d.ts +0 -1
- package/dist/types/alg/parse.spec.d.ts +0 -1
- package/dist/types/alg/test/alg-comparison.d.ts +0 -1
- package/dist/types/alg/test/alg.spec.d.ts +0 -1
- package/dist/types/alg/traversal.d.ts +0 -1
- package/dist/types/alg/units/QuantumWithAmount.d.ts +0 -1
- package/dist/types/alg/units/Unit.d.ts +0 -1
- package/dist/types/alg/units/containers/Commutator.d.ts +0 -1
- package/dist/types/alg/units/containers/Conjugate.d.ts +0 -1
- package/dist/types/alg/units/containers/Grouping.d.ts +0 -1
- package/dist/types/alg/units/index.d.ts +0 -1
- package/dist/types/alg/units/leaves/LineComment.d.ts +0 -1
- package/dist/types/alg/units/leaves/LineComment.spec.d.ts +0 -1
- package/dist/types/alg/units/leaves/Move.d.ts +0 -1
- package/dist/types/alg/units/leaves/Move.spec.d.ts +0 -1
- package/dist/types/alg/units/leaves/Newline.d.ts +0 -1
- package/dist/types/alg/units/leaves/Pause.d.ts +0 -1
- package/dist/types/alg/url.d.ts +0 -1
- package/dist/types/alg/url.spec.d.ts +0 -1
- package/dist/types/alg/validation.d.ts +0 -1
- package/dist/types/alg/warnOnce.d.ts +0 -1
- package/dist/types/bluetooth/connect/index.d.ts +0 -1
- package/dist/types/bluetooth/debug.d.ts +0 -1
- package/dist/types/bluetooth/index.d.ts +0 -1
- package/dist/types/bluetooth/keyboard.d.ts +5 -5
- package/dist/types/bluetooth/smart-puzzle/Heykube.d.ts +3 -3
- package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts +3 -5
- package/dist/types/bluetooth/smart-puzzle/connect.d.ts +0 -1
- package/dist/types/bluetooth/smart-puzzle/endianness.d.ts +0 -1
- package/dist/types/bluetooth/smart-puzzle/gan.d.ts +5 -4
- package/dist/types/bluetooth/smart-puzzle/giiker.d.ts +3 -3
- package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts +0 -1
- package/dist/types/bluetooth/smart-puzzle/gocube.d.ts +0 -1
- package/dist/types/bluetooth/smart-robot/GanRobot.d.ts +0 -1
- package/dist/types/bluetooth/smart-robot/index.d.ts +0 -1
- package/dist/types/bluetooth/smart-timer/GanTimer.d.ts +0 -1
- package/dist/types/bluetooth/smart-timer/index.d.ts +0 -1
- package/dist/types/bluetooth/transformer.d.ts +0 -1
- package/dist/types/cubing.bundle-global.d.ts +0 -1
- package/dist/types/cubing.bundle-global.exports.d.ts +0 -1
- package/dist/types/esm-test-worker.d.ts +0 -1
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts +2 -3
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts +0 -1
- package/dist/types/kpuzzle/3x3x3/puzzle-orientation.d.ts +4 -0
- package/dist/types/kpuzzle/KPuzzle.d.ts +21 -0
- package/dist/types/kpuzzle/KPuzzleDefinition.d.ts +20 -0
- package/dist/types/kpuzzle/KState.d.ts +16 -0
- package/dist/types/kpuzzle/KTransformation.d.ts +20 -0
- package/dist/types/kpuzzle/calculate.d.ts +16 -0
- package/dist/types/kpuzzle/combine.d.ts +3 -0
- package/dist/types/kpuzzle/construct.d.ts +5 -0
- package/dist/types/kpuzzle/index.d.ts +6 -10
- package/dist/types/notation/CountAnimatedLeaves.d.ts +0 -1
- package/dist/types/notation/CountMoves.d.ts +0 -1
- package/dist/types/notation/index.d.ts +0 -1
- package/dist/types/protocol/binary/binary3x3x3.d.ts +5 -6
- package/dist/types/protocol/binary/binary3x3x3.spec.d.ts +0 -1
- package/dist/types/protocol/binary/hex.d.ts +0 -1
- package/dist/types/protocol/binary/hex.spec.d.ts +0 -1
- package/dist/types/protocol/binary/orbit-indexing.d.ts +0 -1
- package/dist/types/protocol/binary/orbit-indexing.spec.d.ts +0 -1
- package/dist/types/protocol/binary/puzzle-orientation.d.ts +4 -5
- package/dist/types/protocol/index.d.ts +0 -1
- package/dist/types/puzzle-geometry/FaceNameSwizzler.d.ts +0 -1
- package/dist/types/puzzle-geometry/Options.d.ts +0 -1
- package/dist/types/puzzle-geometry/PGPuzzles.d.ts +0 -1
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts +0 -1
- package/dist/types/puzzle-geometry/Perm.d.ts +0 -1
- package/dist/types/puzzle-geometry/PermOriSet.d.ts +4 -5
- package/dist/types/puzzle-geometry/PlatonicGenerator.d.ts +0 -1
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts +9 -3
- package/dist/types/puzzle-geometry/Quat.d.ts +0 -1
- package/dist/types/puzzle-geometry/Quat.spec.d.ts +0 -1
- package/dist/types/puzzle-geometry/SchreierSims.d.ts +0 -1
- package/dist/types/puzzle-geometry/index.d.ts +1 -1
- package/dist/types/puzzle-geometry/notation-mapping/FTONotationMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/FaceRenamingMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NotationMapper.d.ts +3 -2
- package/dist/types/puzzle-geometry/notation-mapping/NullMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NxNxNCubeMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/PyraminxNotationMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/SkewbNotationMapper.d.ts +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/index.d.ts +0 -1
- package/dist/types/puzzle-geometry/orientcenters.spec.d.ts +0 -1
- package/dist/types/puzzles/PuzzleLoader.d.ts +3 -3
- package/dist/types/puzzles/async/async-pg3d.d.ts +3 -3
- package/dist/types/puzzles/async/lazy-cached-kpuzzle.d.ts +2 -0
- package/dist/types/puzzles/customPGPuzzleLoader.d.ts +2 -3
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.d.ts +1 -2
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/2x2x2/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/3x3x3/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json.d.ts +1 -2
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/clock/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/fto/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/megaminx/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/pyraminx/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.d.ts +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/implementations/square1/index.d.ts +0 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.d.ts +1 -2
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.d.ts +0 -1
- package/dist/types/puzzles/index.d.ts +1 -2
- package/dist/types/puzzles/stickerings/appearance.d.ts +6 -7
- package/dist/types/puzzles/stickerings/cube-stickerings.d.ts +0 -1
- package/dist/types/puzzles/stickerings/fto-stickerings.d.ts +0 -1
- package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts +0 -1
- package/dist/types/puzzles/stickerings/megaminx-stickerings.d.ts +0 -1
- package/dist/types/scramble/index.d.ts +0 -1
- package/dist/types/search/esm-test-worker.d.ts +0 -1
- package/dist/types/search/index.d.ts +0 -1
- package/dist/types/search/inside/api.d.ts +6 -7
- package/dist/types/search/inside/api.spec.d.ts +0 -1
- package/dist/types/search/inside/entry.d.ts +0 -1
- package/dist/types/search/inside/inside-worker.d.ts +0 -1
- package/dist/types/search/inside/module-entry-path-getter.d.ts +0 -1
- package/dist/types/search/inside/module-entry.d.ts +0 -1
- package/dist/types/search/inside/solve/addOrientationSuffix.d.ts +0 -1
- package/dist/types/search/inside/solve/parseSGS.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/2x2x2.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/2x2x2.sgs.json.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/convert.d.ts +2 -3
- package/dist/types/search/inside/solve/puzzles/3x3x3/filter.d.ts +4 -4
- package/dist/types/search/inside/solve/puzzles/3x3x3/index.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/3x3x3/legacy-sgs.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/4x4x4.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/5x5x5.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/big-cubes.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/clock.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/fto.d.ts +2 -3
- package/dist/types/search/inside/solve/puzzles/fto.sgs.json.d.ts +0 -3
- package/dist/types/search/inside/solve/puzzles/megaminx.d.ts +2 -3
- package/dist/types/search/inside/solve/puzzles/megaminx.sgs.json.d.ts +2 -3
- package/dist/types/search/inside/solve/puzzles/pyraminx.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/pyraminx.sgs.json.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/skewb.d.ts +3 -4
- package/dist/types/search/inside/solve/puzzles/skewb.sgs.json.d.ts +2 -3
- package/dist/types/search/inside/solve/puzzles/sq1.d.ts +0 -1
- package/dist/types/search/inside/solve/puzzles/wca-minx.d.ts +0 -1
- package/dist/types/search/inside/solve/tremble.d.ts +6 -6
- package/dist/types/search/instantiator.d.ts +0 -1
- package/dist/types/search/outside.d.ts +6 -7
- package/dist/types/search/worker-inside-generated-string.d.ts +1 -2
- package/dist/types/stream/index.d.ts +0 -1
- package/dist/types/stream/process/ReorientedStream.d.ts +1 -3
- package/dist/types/stream/proxy-event.d.ts +0 -1
- package/dist/types/stream/twizzle/TwizzleStream.d.ts +0 -1
- package/dist/types/stream/twizzle/stream-types.d.ts +0 -1
- package/dist/types/stream/websocket-proxy.d.ts +0 -1
- package/dist/types/twisty/controllers/AnimationTypes.d.ts +2 -3
- package/dist/types/twisty/controllers/RenderScheduler.d.ts +0 -1
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts +0 -1
- package/dist/types/twisty/controllers/TwistyPlayerController.d.ts +0 -1
- package/dist/types/twisty/controllers/easing.d.ts +0 -1
- package/dist/types/twisty/controllers/indexer/AlgDuration.d.ts +0 -1
- package/dist/types/twisty/controllers/indexer/AlgIndexer.d.ts +6 -6
- package/dist/types/twisty/controllers/indexer/SimpleAlgIndexer.d.ts +7 -7
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts +8 -8
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts +9 -9
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/simul-moves.d.ts +0 -1
- package/dist/types/twisty/controllers/indexer/tree/AlgWalker.d.ts +36 -37
- package/dist/types/twisty/controllers/indexer/tree/TreeAlgIndexer.d.ts +7 -7
- package/dist/types/twisty/controllers/indexer/tree/chunkAlgs.d.ts +0 -1
- package/dist/types/twisty/controllers/stream/timeline-move-calculation-draft.d.ts +0 -1
- package/dist/types/twisty/heavy-code-imports/3d.d.ts +0 -1
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts +0 -1
- package/dist/types/twisty/index.d.ts +1 -2
- package/dist/types/twisty/model/PromiseFreshener.d.ts +0 -1
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts +6 -7
- package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts +0 -1
- package/dist/types/twisty/model/helpers.d.ts +0 -1
- package/dist/types/twisty/model/props/TwistyProp.d.ts +0 -1
- package/dist/types/twisty/model/props/TwistyProp.spec.d.ts +0 -1
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts +0 -1
- package/dist/types/twisty/model/props/general/URLProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/display/FoundationDisplayProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts +5 -8
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts +5 -7
- package/dist/types/twisty/model/props/puzzle/state/CatchUpMoveProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/{CurrentLeavesProp.d.ts → CurrentMoveInfoProp.d.ts} +2 -3
- package/dist/types/twisty/model/props/puzzle/state/CurrentStateProp.d.ts +14 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts +7 -8
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts +5 -6
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts +2 -3
- package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/NaiveMoveCountProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts +4 -5
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/KPuzzleProp.d.ts +10 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts +0 -1
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts +2 -3
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts +0 -1
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts +0 -1
- package/dist/types/twisty/views/2D/KPuzzleSVGWrapper.d.ts +17 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.css.d.ts +0 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts +4 -4
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts +0 -1
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts +0 -1
- package/dist/types/twisty/views/3D/DragTracker.d.ts +0 -1
- package/dist/types/twisty/views/3D/RendererPool.d.ts +0 -1
- package/dist/types/twisty/views/3D/TAU.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DRenderTarget.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DScene.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DVantage.css.d.ts +0 -1
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControls.spec.d.ts +0 -1
- package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts +4 -5
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts +5 -6
- package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts +0 -1
- package/dist/types/twisty/views/ClassListManager.d.ts +0 -1
- package/dist/types/twisty/views/ManagedCustomElement.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts +0 -1
- package/dist/types/twisty/views/TwistyAlgViewer.d.ts +0 -1
- package/dist/types/twisty/views/TwistyPlayer.css.d.ts +0 -1
- package/dist/types/twisty/views/TwistyPlayer.d.ts +0 -1
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts +0 -1
- package/dist/types/twisty/views/TwistyViewerWrapper.css.d.ts +0 -1
- package/dist/types/twisty/views/canvas.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.css.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubber.css.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts +0 -1
- package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts +0 -1
- package/dist/types/twisty/views/document.d.ts +0 -1
- package/dist/types/twisty/views/node-custom-element-shims.d.ts +0 -1
- package/dist/types/twisty/views/screenshot.d.ts +0 -1
- package/dist/types/twisty/views/stream/TwistyStreamSource.css.d.ts +0 -1
- package/dist/types/twisty/views/stream/TwistyStreamSource.d.ts +0 -1
- package/dist/types/vendor/comlink-everywhere/inside/index.d.ts +0 -1
- package/dist/types/vendor/comlink-everywhere/inside/node.d.ts +0 -1
- package/dist/types/vendor/comlink-everywhere/outside/index.d.ts +0 -1
- package/dist/types/vendor/comlink-everywhere/outside/node.d.ts +0 -1
- package/dist/types/vendor/cstimer/src/js/lib/mathlib.d.ts +0 -1
- package/dist/types/vendor/cstimer/src/js/scramble/scramble_444.d.ts +0 -1
- package/dist/types/vendor/min2phase/gwt.d.ts +0 -1
- package/dist/types/vendor/p-lazy/p-lazy.d.ts +0 -1
- package/dist/types/vendor/random-uint-below/get-random-values.d.ts +0 -1
- package/dist/types/vendor/random-uint-below/index.d.ts +0 -1
- package/dist/types/vendor/random-uint-below/random-choice.d.ts +0 -1
- package/dist/types/vendor/random-uint-below/random53BitValue.d.ts +0 -1
- package/dist/types/vendor/sq12phase/scramble_sq1.d.ts +0 -1
- package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts +0 -1
- package/dist/types/vendor/unsafe-raw-aes/unsafe-raw-aes.d.ts +0 -1
- package/package.json +3 -4
- package/dist/bin/order.js +0 -16675
- package/dist/bin/order.js.map +0 -7
- package/dist/bin/puzzle-geometry-bin.js +0 -5444
- package/dist/bin/puzzle-geometry-bin.js.map +0 -7
- package/dist/bundle-global/cubing.bundle-global.js +0 -10432
- package/dist/esm/2x2x2.kpuzzle.json-JOGUSQ4N.js.map +0 -7
- package/dist/esm/2x2x2.sgs.json-FRBWMMA7.js.map +0 -7
- package/dist/esm/chunk-DK6PXBB2.js.map +0 -7
- package/dist/esm/chunk-DPMEZY7V.js.map +0 -7
- package/dist/esm/chunk-FK2SCC3Z.js.map +0 -7
- package/dist/esm/chunk-JZWB7AIU.js.map +0 -7
- package/dist/esm/chunk-N3RNWU5T.js.map +0 -7
- package/dist/esm/chunk-PUPUQWJC.js.map +0 -7
- package/dist/esm/chunk-X6JHXPDX.js +0 -2359
- package/dist/esm/chunk-X6JHXPDX.js.map +0 -7
- package/dist/esm/chunk-XVZOMB6J.js.map +0 -7
- package/dist/esm/clock.kpuzzle.json-EKWRMHJM.js.map +0 -7
- package/dist/esm/entry-L6CE2HLF.js.map +0 -7
- package/dist/esm/fto.sgs.json-62YNULOK.js.map +0 -7
- package/dist/esm/megaminx.sgs.json-PRL46G5J.js +0 -16
- package/dist/esm/skewb.sgs.json-FWHYACJG.js +0 -16
- package/dist/esm/sq1-hyperorbit.kpuzzle.json-N3FGCPML.js.map +0 -7
- package/dist/esm/worker-inside-generated-string-OWJA5IIQ.js +0 -3450
- package/dist/esm/worker-inside-generated-string-OWJA5IIQ.js.map +0 -7
- package/dist/types/alg/Alg.d.ts.map +0 -1
- package/dist/types/alg/Alg.spec.d.ts.map +0 -1
- package/dist/types/alg/AlgBuilder.d.ts.map +0 -1
- package/dist/types/alg/Serializable.d.ts.map +0 -1
- package/dist/types/alg/common.d.ts.map +0 -1
- package/dist/types/alg/debug.d.ts.map +0 -1
- package/dist/types/alg/example.d.ts.map +0 -1
- package/dist/types/alg/index.d.ts.map +0 -1
- package/dist/types/alg/is.d.ts.map +0 -1
- package/dist/types/alg/iteration.d.ts.map +0 -1
- package/dist/types/alg/keyboard.d.ts.map +0 -1
- package/dist/types/alg/limits.d.ts.map +0 -1
- package/dist/types/alg/operation.d.ts.map +0 -1
- package/dist/types/alg/operation.spec.d.ts.map +0 -1
- package/dist/types/alg/parse.d.ts.map +0 -1
- package/dist/types/alg/parse.spec.d.ts.map +0 -1
- package/dist/types/alg/test/alg-comparison.d.ts.map +0 -1
- package/dist/types/alg/test/alg.spec.d.ts.map +0 -1
- package/dist/types/alg/traversal.d.ts.map +0 -1
- package/dist/types/alg/units/QuantumWithAmount.d.ts.map +0 -1
- package/dist/types/alg/units/Unit.d.ts.map +0 -1
- package/dist/types/alg/units/containers/Commutator.d.ts.map +0 -1
- package/dist/types/alg/units/containers/Conjugate.d.ts.map +0 -1
- package/dist/types/alg/units/containers/Grouping.d.ts.map +0 -1
- package/dist/types/alg/units/index.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/LineComment.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/LineComment.spec.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/Move.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/Move.spec.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/Newline.d.ts.map +0 -1
- package/dist/types/alg/units/leaves/Pause.d.ts.map +0 -1
- package/dist/types/alg/url.d.ts.map +0 -1
- package/dist/types/alg/url.spec.d.ts.map +0 -1
- package/dist/types/alg/validation.d.ts.map +0 -1
- package/dist/types/alg/warnOnce.d.ts.map +0 -1
- package/dist/types/bluetooth/connect/index.d.ts.map +0 -1
- package/dist/types/bluetooth/debug.d.ts.map +0 -1
- package/dist/types/bluetooth/index.d.ts.map +0 -1
- package/dist/types/bluetooth/keyboard.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/Heykube.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/connect.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/endianness.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/gan.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/giiker.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-puzzle/gocube.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-robot/GanRobot.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-robot/index.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-timer/GanTimer.d.ts.map +0 -1
- package/dist/types/bluetooth/smart-timer/index.d.ts.map +0 -1
- package/dist/types/bluetooth/transformer.d.ts.map +0 -1
- package/dist/types/cubing.bundle-global.d.ts.map +0 -1
- package/dist/types/cubing.bundle-global.exports.d.ts.map +0 -1
- package/dist/types/esm-test-worker.d.ts.map +0 -1
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts.map +0 -1
- package/dist/types/kpuzzle/canon.spec.d.ts +0 -2
- package/dist/types/kpuzzle/canon.spec.d.ts.map +0 -1
- package/dist/types/kpuzzle/canonicalize.d.ts +0 -55
- package/dist/types/kpuzzle/canonicalize.d.ts.map +0 -1
- package/dist/types/kpuzzle/definition_types.d.ts +0 -19
- package/dist/types/kpuzzle/definition_types.d.ts.map +0 -1
- package/dist/types/kpuzzle/index.d.ts.map +0 -1
- package/dist/types/kpuzzle/kpuzzle.d.ts +0 -17
- package/dist/types/kpuzzle/kpuzzle.d.ts.map +0 -1
- package/dist/types/kpuzzle/kpuzzle.spec.d.ts +0 -2
- package/dist/types/kpuzzle/kpuzzle.spec.d.ts.map +0 -1
- package/dist/types/kpuzzle/move_notation.d.ts +0 -6
- package/dist/types/kpuzzle/move_notation.d.ts.map +0 -1
- package/dist/types/kpuzzle/parser/index.d.ts +0 -2
- package/dist/types/kpuzzle/parser/index.d.ts.map +0 -1
- package/dist/types/kpuzzle/parser/parser-peggy.d.ts +0 -15
- package/dist/types/kpuzzle/parser/parser-peggy.d.ts.map +0 -1
- package/dist/types/kpuzzle/parser/parser-shim.d.ts +0 -4
- package/dist/types/kpuzzle/parser/parser-shim.d.ts.map +0 -1
- package/dist/types/kpuzzle/parser/parser.d.ts +0 -1
- package/dist/types/kpuzzle/parser/parser.d.ts.map +0 -1
- package/dist/types/kpuzzle/prunetable.spec.d.ts +0 -2
- package/dist/types/kpuzzle/prunetable.spec.d.ts.map +0 -1
- package/dist/types/kpuzzle/pruningtable.d.ts +0 -16
- package/dist/types/kpuzzle/pruningtable.d.ts.map +0 -1
- package/dist/types/kpuzzle/puzzle-orientation.d.ts +0 -5
- package/dist/types/kpuzzle/puzzle-orientation.d.ts.map +0 -1
- package/dist/types/kpuzzle/svg.d.ts +0 -18
- package/dist/types/kpuzzle/svg.d.ts.map +0 -1
- package/dist/types/kpuzzle/transformations.d.ts +0 -13
- package/dist/types/kpuzzle/transformations.d.ts.map +0 -1
- package/dist/types/kpuzzle/transformations.spec.d.ts +0 -2
- package/dist/types/kpuzzle/transformations.spec.d.ts.map +0 -1
- package/dist/types/notation/CountAnimatedLeaves.d.ts.map +0 -1
- package/dist/types/notation/CountMoves.d.ts.map +0 -1
- package/dist/types/notation/index.d.ts.map +0 -1
- package/dist/types/protocol/binary/binary3x3x3.d.ts.map +0 -1
- package/dist/types/protocol/binary/binary3x3x3.spec.d.ts.map +0 -1
- package/dist/types/protocol/binary/hex.d.ts.map +0 -1
- package/dist/types/protocol/binary/hex.spec.d.ts.map +0 -1
- package/dist/types/protocol/binary/orbit-indexing.d.ts.map +0 -1
- package/dist/types/protocol/binary/orbit-indexing.spec.d.ts.map +0 -1
- package/dist/types/protocol/binary/puzzle-orientation.d.ts.map +0 -1
- package/dist/types/protocol/index.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/FaceNameSwizzler.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/Options.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PGPuzzles.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/Perm.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PermOriSet.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PlatonicGenerator.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/Quat.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/Quat.spec.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/SchreierSims.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/index.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/interfaces.d.ts +0 -6
- package/dist/types/puzzle-geometry/interfaces.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/FTONotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/FaceRenamingMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NullMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/NxNxNCubeMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/PyraminxNotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/SkewbNotationMapper.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/notation-mapping/index.d.ts.map +0 -1
- package/dist/types/puzzle-geometry/orientcenters.spec.d.ts.map +0 -1
- package/dist/types/puzzles/PuzzleLoader.d.ts.map +0 -1
- package/dist/types/puzzles/async/async-pg3d.d.ts.map +0 -1
- package/dist/types/puzzles/customPGPuzzleLoader.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/2x2x2/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/3x3x3/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/clock/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/fto/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/megaminx/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/pyraminx/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/square1/index.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.d.ts.map +0 -1
- package/dist/types/puzzles/index.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/appearance.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/cube-stickerings.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/fto-stickerings.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts.map +0 -1
- package/dist/types/puzzles/stickerings/megaminx-stickerings.d.ts.map +0 -1
- package/dist/types/scramble/index.d.ts.map +0 -1
- package/dist/types/search/esm-test-worker.d.ts.map +0 -1
- package/dist/types/search/index.d.ts.map +0 -1
- package/dist/types/search/inside/api.d.ts.map +0 -1
- package/dist/types/search/inside/api.spec.d.ts.map +0 -1
- package/dist/types/search/inside/entry.d.ts.map +0 -1
- package/dist/types/search/inside/inside-worker.d.ts.map +0 -1
- package/dist/types/search/inside/module-entry-path-getter.d.ts.map +0 -1
- package/dist/types/search/inside/module-entry.d.ts.map +0 -1
- package/dist/types/search/inside/solve/addOrientationSuffix.d.ts.map +0 -1
- package/dist/types/search/inside/solve/parseSGS.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/2x2x2.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/2x2x2.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/convert.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/filter.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/index.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/legacy-sgs.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/4x4x4.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/5x5x5.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/big-cubes.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/clock.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/fto.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/fto.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/megaminx.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/megaminx.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/pyraminx.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/pyraminx.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/skewb.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/skewb.sgs.json.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/sq1.d.ts.map +0 -1
- package/dist/types/search/inside/solve/puzzles/wca-minx.d.ts.map +0 -1
- package/dist/types/search/inside/solve/tremble.d.ts.map +0 -1
- package/dist/types/search/instantiator.d.ts.map +0 -1
- package/dist/types/search/outside.d.ts.map +0 -1
- package/dist/types/search/worker-inside-generated-string.d.ts.map +0 -1
- package/dist/types/stream/index.d.ts.map +0 -1
- package/dist/types/stream/process/ReorientedStream.d.ts.map +0 -1
- package/dist/types/stream/proxy-event.d.ts.map +0 -1
- package/dist/types/stream/twizzle/TwizzleStream.d.ts.map +0 -1
- package/dist/types/stream/twizzle/stream-types.d.ts.map +0 -1
- package/dist/types/stream/websocket-proxy.d.ts.map +0 -1
- package/dist/types/twisty/controllers/AnimationTypes.d.ts.map +0 -1
- package/dist/types/twisty/controllers/RenderScheduler.d.ts.map +0 -1
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts.map +0 -1
- package/dist/types/twisty/controllers/TwistyPlayerController.d.ts.map +0 -1
- package/dist/types/twisty/controllers/easing.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/AlgDuration.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/AlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/SimpleAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/simultaneous-moves/simul-moves.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/tree/AlgWalker.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/tree/TreeAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/controllers/indexer/tree/chunkAlgs.d.ts.map +0 -1
- package/dist/types/twisty/controllers/stream/timeline-move-calculation-draft.d.ts.map +0 -1
- package/dist/types/twisty/heavy-code-imports/3d.d.ts.map +0 -1
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts.map +0 -1
- package/dist/types/twisty/index.d.ts.map +0 -1
- package/dist/types/twisty/model/PromiseFreshener.d.ts.map +0 -1
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts.map +0 -1
- package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts.map +0 -1
- package/dist/types/twisty/model/helpers.d.ts.map +0 -1
- package/dist/types/twisty/model/props/TwistyProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/TwistyProp.spec.d.ts.map +0 -1
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts.map +0 -1
- package/dist/types/twisty/model/props/general/URLProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/display/FoundationDisplayProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CatchUpMoveProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts +0 -15
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/MovePressInputProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/NaiveMoveCountProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts +0 -11
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts.map +0 -1
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts.map +0 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.css.d.ts.map +0 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts.map +0 -1
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/DragTracker.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/RendererPool.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/TAU.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DRenderTarget.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DScene.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DVantage.css.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControls.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/TwistyOrbitControls.spec.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/puzzles/KPuzzleWrapper.d.ts +0 -48
- package/dist/types/twisty/views/3D/puzzles/KPuzzleWrapper.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts.map +0 -1
- package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts.map +0 -1
- package/dist/types/twisty/views/ClassListManager.d.ts.map +0 -1
- package/dist/types/twisty/views/ManagedCustomElement.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyAlgViewer.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyPlayer.css.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyPlayer.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts.map +0 -1
- package/dist/types/twisty/views/TwistyViewerWrapper.css.d.ts.map +0 -1
- package/dist/types/twisty/views/canvas.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.css.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubber.css.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts.map +0 -1
- package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts.map +0 -1
- package/dist/types/twisty/views/document.d.ts.map +0 -1
- package/dist/types/twisty/views/node-custom-element-shims.d.ts.map +0 -1
- package/dist/types/twisty/views/screenshot.d.ts.map +0 -1
- package/dist/types/twisty/views/stream/TwistyStreamSource.css.d.ts.map +0 -1
- package/dist/types/twisty/views/stream/TwistyStreamSource.d.ts.map +0 -1
- package/dist/types/vendor/comlink-everywhere/inside/index.d.ts.map +0 -1
- package/dist/types/vendor/comlink-everywhere/inside/node.d.ts.map +0 -1
- package/dist/types/vendor/comlink-everywhere/outside/index.d.ts.map +0 -1
- package/dist/types/vendor/comlink-everywhere/outside/node.d.ts.map +0 -1
- package/dist/types/vendor/cstimer/src/js/lib/mathlib.d.ts.map +0 -1
- package/dist/types/vendor/cstimer/src/js/scramble/scramble_444.d.ts.map +0 -1
- package/dist/types/vendor/min2phase/gwt.d.ts.map +0 -1
- package/dist/types/vendor/p-lazy/p-lazy.d.ts.map +0 -1
- package/dist/types/vendor/random-uint-below/get-random-values.d.ts.map +0 -1
- package/dist/types/vendor/random-uint-below/index.d.ts.map +0 -1
- package/dist/types/vendor/random-uint-below/random-choice.d.ts.map +0 -1
- package/dist/types/vendor/random-uint-below/random53BitValue.d.ts.map +0 -1
- package/dist/types/vendor/sq12phase/scramble_sq1.d.ts.map +0 -1
- package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts.map +0 -1
- package/dist/types/vendor/unsafe-raw-aes/unsafe-raw-aes.d.ts.map +0 -1
- package/docs/.DS_Store +0 -0
- package/docs/CNAME +0 -1
- package/docs/cubing/.DS_Store +0 -0
- package/docs/cubing/alg/index.html +0 -174
- package/docs/cubing/api/index.html +0 -158
- package/docs/cubing/index.html +0 -191
- package/docs/cubing/scramble/index.html +0 -138
- package/docs/cubing/twisty/index.html +0 -329
- package/docs/favicon.ico +0 -0
- package/docs/index.html +0 -20
- package/docs/main.css +0 -193
- package/src/cubing/.DS_Store +0 -0
- package/src/cubing/alg/Alg.spec.ts +0 -10
- package/src/cubing/alg/Alg.ts +0 -290
- package/src/cubing/alg/AlgBuilder.ts +0 -33
- package/src/cubing/alg/Serializable.ts +0 -29
- package/src/cubing/alg/common.ts +0 -59
- package/src/cubing/alg/debug.ts +0 -27
- package/src/cubing/alg/example.ts +0 -152
- package/src/cubing/alg/index.ts +0 -21
- package/src/cubing/alg/is.ts +0 -38
- package/src/cubing/alg/iteration.ts +0 -45
- package/src/cubing/alg/keyboard.ts +0 -48
- package/src/cubing/alg/limits.ts +0 -4
- package/src/cubing/alg/operation.spec.ts +0 -48
- package/src/cubing/alg/operation.ts +0 -36
- package/src/cubing/alg/parse.spec.ts +0 -75
- package/src/cubing/alg/parse.ts +0 -408
- package/src/cubing/alg/test/alg-comparison.ts +0 -23
- package/src/cubing/alg/test/alg.spec.ts +0 -348
- package/src/cubing/alg/traversal.ts +0 -284
- package/src/cubing/alg/units/QuantumWithAmount.ts +0 -55
- package/src/cubing/alg/units/Unit.ts +0 -11
- package/src/cubing/alg/units/containers/Commutator.ts +0 -85
- package/src/cubing/alg/units/containers/Conjugate.ts +0 -53
- package/src/cubing/alg/units/containers/Grouping.ts +0 -116
- package/src/cubing/alg/units/index.ts +0 -8
- package/src/cubing/alg/units/leaves/LineComment.spec.ts +0 -35
- package/src/cubing/alg/units/leaves/LineComment.ts +0 -48
- package/src/cubing/alg/units/leaves/Move.spec.ts +0 -15
- package/src/cubing/alg/units/leaves/Move.ts +0 -265
- package/src/cubing/alg/units/leaves/Newline.ts +0 -24
- package/src/cubing/alg/units/leaves/Pause.ts +0 -24
- package/src/cubing/alg/url.spec.ts +0 -10
- package/src/cubing/alg/url.ts +0 -133
- package/src/cubing/alg/validation.ts +0 -62
- package/src/cubing/alg/warnOnce.ts +0 -7
- package/src/cubing/bluetooth/connect/index.ts +0 -93
- package/src/cubing/bluetooth/debug.ts +0 -18
- package/src/cubing/bluetooth/docs/gan-robot.md +0 -60
- package/src/cubing/bluetooth/docs/gan356i.md +0 -309
- package/src/cubing/bluetooth/index.ts +0 -19
- package/src/cubing/bluetooth/keyboard.ts +0 -55
- package/src/cubing/bluetooth/smart-puzzle/Heykube.ts +0 -165
- package/src/cubing/bluetooth/smart-puzzle/bluetooth-puzzle.ts +0 -95
- package/src/cubing/bluetooth/smart-puzzle/connect.ts +0 -19
- package/src/cubing/bluetooth/smart-puzzle/endianness.ts +0 -15
- package/src/cubing/bluetooth/smart-puzzle/gan.ts +0 -484
- package/src/cubing/bluetooth/smart-puzzle/giiker.spec.ts +0 -28
- package/src/cubing/bluetooth/smart-puzzle/giiker.ts +0 -277
- package/src/cubing/bluetooth/smart-puzzle/gocube.ts +0 -167
- package/src/cubing/bluetooth/smart-robot/GanRobot.ts +0 -311
- package/src/cubing/bluetooth/smart-robot/index.ts +0 -13
- package/src/cubing/bluetooth/smart-timer/GanTimer.ts +0 -141
- package/src/cubing/bluetooth/smart-timer/index.ts +0 -13
- package/src/cubing/bluetooth/transformer.ts +0 -74
- package/src/cubing/cubing.bundle-global.exports.ts +0 -25
- package/src/cubing/cubing.bundle-global.ts +0 -7
- package/src/cubing/esm-test-worker.js +0 -5
- package/src/cubing/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.ts +0 -40
- package/src/cubing/kpuzzle/3x3x3/3x3x3.kpuzzle.json.ts +0 -339
- package/src/cubing/kpuzzle/canon.spec.ts +0 -48
- package/src/cubing/kpuzzle/canonicalize.ts +0 -325
- package/src/cubing/kpuzzle/definition_types.ts +0 -23
- package/src/cubing/kpuzzle/index.ts +0 -33
- package/src/cubing/kpuzzle/kpuzzle.spec.ts +0 -12
- package/src/cubing/kpuzzle/kpuzzle.ts +0 -124
- package/src/cubing/kpuzzle/move_notation.ts +0 -9
- package/src/cubing/kpuzzle/parser/index.ts +0 -1
- package/src/cubing/kpuzzle/parser/parser-peggy.js +0 -1221
- package/src/cubing/kpuzzle/parser/parser-peggy.peggy +0 -72
- package/src/cubing/kpuzzle/parser/parser-shim.ts +0 -11
- package/src/cubing/kpuzzle/parser/parser.js +0 -0
- package/src/cubing/kpuzzle/prunetable.spec.ts +0 -19
- package/src/cubing/kpuzzle/pruningtable.ts +0 -99
- package/src/cubing/kpuzzle/puzzle-orientation.ts +0 -34
- package/src/cubing/kpuzzle/svg.ts +0 -290
- package/src/cubing/kpuzzle/transformations.spec.ts +0 -75
- package/src/cubing/kpuzzle/transformations.ts +0 -258
- package/src/cubing/notation/CountAnimatedLeaves.ts +0 -56
- package/src/cubing/notation/CountMoves.ts +0 -89
- package/src/cubing/notation/index.ts +0 -4
- package/src/cubing/protocol/binary/binary3x3x3.spec.ts +0 -143
- package/src/cubing/protocol/binary/binary3x3x3.ts +0 -226
- package/src/cubing/protocol/binary/hex.spec.ts +0 -17
- package/src/cubing/protocol/binary/hex.ts +0 -12
- package/src/cubing/protocol/binary/orbit-indexing.spec.ts +0 -49
- package/src/cubing/protocol/binary/orbit-indexing.ts +0 -68
- package/src/cubing/protocol/binary/puzzle-orientation.ts +0 -69
- package/src/cubing/protocol/index.ts +0 -12
- package/src/cubing/puzzle-geometry/FaceNameSwizzler.ts +0 -148
- package/src/cubing/puzzle-geometry/Options.ts +0 -179
- package/src/cubing/puzzle-geometry/PGPuzzles.spec.ts +0 -127
- package/src/cubing/puzzle-geometry/PGPuzzles.ts +0 -80
- package/src/cubing/puzzle-geometry/Perm.ts +0 -154
- package/src/cubing/puzzle-geometry/PermOriSet.ts +0 -765
- package/src/cubing/puzzle-geometry/PlatonicGenerator.ts +0 -146
- package/src/cubing/puzzle-geometry/PuzzleGeometry.ts +0 -3013
- package/src/cubing/puzzle-geometry/Quat.spec.ts +0 -10
- package/src/cubing/puzzle-geometry/Quat.ts +0 -325
- package/src/cubing/puzzle-geometry/SchreierSims.ts +0 -144
- package/src/cubing/puzzle-geometry/index.ts +0 -17
- package/src/cubing/puzzle-geometry/interfaces.ts +0 -6
- package/src/cubing/puzzle-geometry/notation-mapping/FTONotationMapper.ts +0 -38
- package/src/cubing/puzzle-geometry/notation-mapping/FaceRenamingMapper.ts +0 -59
- package/src/cubing/puzzle-geometry/notation-mapping/MegaminxScramblingNotationMapper.ts +0 -50
- package/src/cubing/puzzle-geometry/notation-mapping/NotationMapper.ts +0 -6
- package/src/cubing/puzzle-geometry/notation-mapping/NullMapper.ts +0 -12
- package/src/cubing/puzzle-geometry/notation-mapping/NxNxNCubeMapper.ts +0 -77
- package/src/cubing/puzzle-geometry/notation-mapping/PyraminxNotationMapper.ts +0 -121
- package/src/cubing/puzzle-geometry/notation-mapping/SkewbNotationMapper.ts +0 -103
- package/src/cubing/puzzle-geometry/notation-mapping/index.ts +0 -13
- package/src/cubing/puzzle-geometry/orientcenters.spec.ts +0 -55
- package/src/cubing/puzzles/PuzzleLoader.ts +0 -20
- package/src/cubing/puzzles/async/async-pg3d.ts +0 -73
- package/src/cubing/puzzles/customPGPuzzleLoader.ts +0 -60
- package/src/cubing/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.ts +0 -92
- package/src/cubing/puzzles/implementations/2x2x2/2x2x2.kpuzzle.svg.ts +0 -45
- package/src/cubing/puzzles/implementations/2x2x2/index.ts +0 -25
- package/src/cubing/puzzles/implementations/2x2x2/svg/2x2x2.kpuzzle.svg +0 -45
- package/src/cubing/puzzles/implementations/3x3x3/3x3x3-ll.kpuzzle.svg.ts +0 -108
- package/src/cubing/puzzles/implementations/3x3x3/3x3x3.kpuzzle.svg.ts +0 -128
- package/src/cubing/puzzles/implementations/3x3x3/index.ts +0 -33
- package/src/cubing/puzzles/implementations/3x3x3/src/3x3x3-ll.kpuzzle.svg +0 -108
- package/src/cubing/puzzles/implementations/3x3x3/src/3x3x3.kpuzzle.svg +0 -128
- package/src/cubing/puzzles/implementations/TODO/svg/alg/3x3x3.kpuzzle.original.svg +0 -128
- package/src/cubing/puzzles/implementations/TODO/svg/alg/3x3x3.kpuzzle.outlined.svg +0 -486
- package/src/cubing/puzzles/implementations/TODO/svg/alg/3x3x3.kpuzzle.spaced.svg +0 -128
- package/src/cubing/puzzles/implementations/clock/clock.kpuzzle.json.ts +0 -241
- package/src/cubing/puzzles/implementations/clock/clock.kpuzzle.svg.ts +0 -369
- package/src/cubing/puzzles/implementations/clock/index.ts +0 -14
- package/src/cubing/puzzles/implementations/clock/src/clock.kpuzzle.svg +0 -369
- package/src/cubing/puzzles/implementations/fto/index.ts +0 -28
- package/src/cubing/puzzles/implementations/megaminx/index.ts +0 -20
- package/src/cubing/puzzles/implementations/pyraminx/index.ts +0 -18
- package/src/cubing/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.ts +0 -84
- package/src/cubing/puzzles/implementations/pyraminx/pyraminx.kpuzzle.svg.ts +0 -88
- package/src/cubing/puzzles/implementations/pyraminx/src/pyraminx.kpuzzle.svg +0 -87
- package/src/cubing/puzzles/implementations/square1/index.ts +0 -14
- package/src/cubing/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.ts +0 -62
- package/src/cubing/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.svg.ts +0 -295
- package/src/cubing/puzzles/implementations/square1/src/sq1-hyperorbit.kpuzzle.svg +0 -295
- package/src/cubing/puzzles/implementations/square1/src/sq1-simple.svg +0 -60
- package/src/cubing/puzzles/index.ts +0 -92
- package/src/cubing/puzzles/stickerings/appearance.ts +0 -292
- package/src/cubing/puzzles/stickerings/cube-stickerings.ts +0 -304
- package/src/cubing/puzzles/stickerings/fto-stickerings.ts +0 -105
- package/src/cubing/puzzles/stickerings/global-custom-stickering-hack.ts +0 -61
- package/src/cubing/puzzles/stickerings/megaminx-stickerings.ts +0 -26
- package/src/cubing/scramble/index.ts +0 -1
- package/src/cubing/search/.DS_Store +0 -0
- package/src/cubing/search/.gitignore +0 -1
- package/src/cubing/search/esm-test-worker.js +0 -14
- package/src/cubing/search/index.ts +0 -12
- package/src/cubing/search/inside/.DS_Store +0 -0
- package/src/cubing/search/inside/api.spec.ts +0 -37
- package/src/cubing/search/inside/api.ts +0 -174
- package/src/cubing/search/inside/entry.js +0 -4
- package/src/cubing/search/inside/inside-worker.ts +0 -13
- package/src/cubing/search/inside/module-entry-path-getter.ts +0 -5
- package/src/cubing/search/inside/module-entry.ts +0 -20
- package/src/cubing/search/inside/solve/addOrientationSuffix.ts +0 -17
- package/src/cubing/search/inside/solve/parseSGS.ts +0 -119
- package/src/cubing/search/inside/solve/puzzles/2x2x2.sgs.json.ts +0 -114
- package/src/cubing/search/inside/solve/puzzles/2x2x2.ts +0 -92
- package/src/cubing/search/inside/solve/puzzles/3x3x3/convert.ts +0 -137
- package/src/cubing/search/inside/solve/puzzles/3x3x3/filter.ts +0 -60
- package/src/cubing/search/inside/solve/puzzles/3x3x3/index.ts +0 -67
- package/src/cubing/search/inside/solve/puzzles/3x3x3/legacy-sgs.ts +0 -291
- package/src/cubing/search/inside/solve/puzzles/3x3x3-inefficient.sgs.json.ts +0 -272
- package/src/cubing/search/inside/solve/puzzles/4x4x4.ts +0 -30
- package/src/cubing/search/inside/solve/puzzles/5x5x5.ts +0 -12
- package/src/cubing/search/inside/solve/puzzles/big-cubes.ts +0 -78
- package/src/cubing/search/inside/solve/puzzles/clock.ts +0 -48
- package/src/cubing/search/inside/solve/puzzles/fto.sgs.json.ts +0 -643
- package/src/cubing/search/inside/solve/puzzles/fto.ts +0 -58
- package/src/cubing/search/inside/solve/puzzles/megaminx.sgs.json.ts +0 -1549
- package/src/cubing/search/inside/solve/puzzles/megaminx.ts +0 -51
- package/src/cubing/search/inside/solve/puzzles/pyraminx.sgs.json.ts +0 -98
- package/src/cubing/search/inside/solve/puzzles/pyraminx.ts +0 -48
- package/src/cubing/search/inside/solve/puzzles/sgs-defs.spec.ts +0 -27
- package/src/cubing/search/inside/solve/puzzles/skewb.sgs.json.ts +0 -113
- package/src/cubing/search/inside/solve/puzzles/skewb.ts +0 -65
- package/src/cubing/search/inside/solve/puzzles/sq1.ts +0 -16
- package/src/cubing/search/inside/solve/puzzles/wca-minx.ts +0 -32
- package/src/cubing/search/inside/solve/tremble.ts +0 -213
- package/src/cubing/search/instantiator.ts +0 -95
- package/src/cubing/search/outside.ts +0 -110
- package/src/cubing/search/worker-inside-generated-string.js +0 -1
- package/src/cubing/stream/index.ts +0 -12
- package/src/cubing/stream/process/ReorientedStream.ts +0 -93
- package/src/cubing/stream/proxy-event.ts +0 -16
- package/src/cubing/stream/twizzle/TwizzleStream.ts +0 -53
- package/src/cubing/stream/twizzle/stream-types.ts +0 -45
- package/src/cubing/stream/websocket-proxy.ts +0 -73
- package/src/cubing/twisty/controllers/AnimationTypes.ts +0 -50
- package/src/cubing/twisty/controllers/RenderScheduler.ts +0 -28
- package/src/cubing/twisty/controllers/TwistyAnimationController.ts +0 -325
- package/src/cubing/twisty/controllers/TwistyPlayerController.ts +0 -38
- package/src/cubing/twisty/controllers/easing.ts +0 -3
- package/src/cubing/twisty/controllers/indexer/AlgDuration.ts +0 -94
- package/src/cubing/twisty/controllers/indexer/AlgIndexer.ts +0 -87
- package/src/cubing/twisty/controllers/indexer/SimpleAlgIndexer.ts +0 -76
- package/src/cubing/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexer.ts +0 -181
- package/src/cubing/twisty/controllers/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.ts +0 -243
- package/src/cubing/twisty/controllers/indexer/simultaneous-moves/simul-moves.ts +0 -193
- package/src/cubing/twisty/controllers/indexer/tree/AlgWalker.ts +0 -439
- package/src/cubing/twisty/controllers/indexer/tree/TreeAlgIndexer.ts +0 -97
- package/src/cubing/twisty/controllers/indexer/tree/chunkAlgs.ts +0 -81
- package/src/cubing/twisty/controllers/stream/timeline-move-calculation-draft.spec.ts.TODO +0 -59
- package/src/cubing/twisty/controllers/stream/timeline-move-calculation-draft.ts +0 -162
- package/src/cubing/twisty/heavy-code-imports/3d.ts +0 -18
- package/src/cubing/twisty/heavy-code-imports/dynamic-entries/3d.ts +0 -31
- package/src/cubing/twisty/index.ts +0 -24
- package/src/cubing/twisty/model/PromiseFreshener.ts +0 -49
- package/src/cubing/twisty/model/TwistyPlayerModel.ts +0 -256
- package/src/cubing/twisty/model/UserVisibleErrorTracker.ts +0 -22
- package/src/cubing/twisty/model/helpers.ts +0 -47
- package/src/cubing/twisty/model/props/TwistyProp.spec.ts +0 -38
- package/src/cubing/twisty/model/props/TwistyProp.ts +0 -366
- package/src/cubing/twisty/model/props/TwistyPropDebugger.ts +0 -370
- package/src/cubing/twisty/model/props/general/URLProp.ts +0 -14
- package/src/cubing/twisty/model/props/puzzle/display/FoundationDisplayProp.ts +0 -9
- package/src/cubing/twisty/model/props/puzzle/display/HintFaceletProp.ts +0 -15
- package/src/cubing/twisty/model/props/puzzle/display/SpriteProp.ts +0 -43
- package/src/cubing/twisty/model/props/puzzle/display/StickeringProp.ts +0 -56
- package/src/cubing/twisty/model/props/puzzle/state/AlgProp.ts +0 -91
- package/src/cubing/twisty/model/props/puzzle/state/AlgTransformationProp.ts +0 -28
- package/src/cubing/twisty/model/props/puzzle/state/AnchoredStartProp.ts +0 -44
- package/src/cubing/twisty/model/props/puzzle/state/CatchUpMoveProp.ts +0 -17
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesProp.ts +0 -109
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesSimplified.ts +0 -48
- package/src/cubing/twisty/model/props/puzzle/state/CurrentTransformationProp.ts +0 -46
- package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorProp.ts +0 -53
- package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.ts +0 -15
- package/src/cubing/twisty/model/props/puzzle/state/IndexerProp.ts +0 -24
- package/src/cubing/twisty/model/props/puzzle/state/LegacyPositionProp.ts +0 -22
- package/src/cubing/twisty/model/props/puzzle/state/MovePressInputProp.ts +0 -14
- package/src/cubing/twisty/model/props/puzzle/state/NaiveMoveCountProp.ts +0 -20
- package/src/cubing/twisty/model/props/puzzle/state/PuzzleAlgProp.ts +0 -28
- package/src/cubing/twisty/model/props/puzzle/state/SetupAnchorProp.ts +0 -14
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDefProp.ts +0 -14
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.ts +0 -14
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDProp.ts +0 -12
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.ts +0 -36
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleLoaderProp.ts +0 -38
- package/src/cubing/twisty/model/props/timeline/CoarseTimelineInfoProp.ts +0 -45
- package/src/cubing/twisty/model/props/timeline/DetailedTimelineInfoProp.ts +0 -78
- package/src/cubing/twisty/model/props/timeline/PlayingInfoProp.ts +0 -48
- package/src/cubing/twisty/model/props/timeline/TempoScaleProp.ts +0 -13
- package/src/cubing/twisty/model/props/timeline/TimestampRequestProp.ts +0 -38
- package/src/cubing/twisty/model/props/viewer/BackViewProp.ts +0 -16
- package/src/cubing/twisty/model/props/viewer/BackgroundProp.ts +0 -15
- package/src/cubing/twisty/model/props/viewer/ButtonAppearanceProp.ts +0 -86
- package/src/cubing/twisty/model/props/viewer/ControlPanelProp.ts +0 -14
- package/src/cubing/twisty/model/props/viewer/LatitudeLimit.ts +0 -11
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesProp.ts +0 -127
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesRequestProp.ts +0 -69
- package/src/cubing/twisty/model/props/viewer/TimeRangeProp.ts +0 -15
- package/src/cubing/twisty/model/props/viewer/ViewerLinkProp.ts +0 -14
- package/src/cubing/twisty/model/props/viewer/VisualizationProp.ts +0 -17
- package/src/cubing/twisty/model/props/viewer/VisualizationStrategyProp.ts +0 -45
- package/src/cubing/twisty/views/2D/Twisty2DPuzzle.css.ts +0 -26
- package/src/cubing/twisty/views/2D/Twisty2DPuzzle.ts +0 -146
- package/src/cubing/twisty/views/2D/Twisty2DPuzzleWrapper.ts +0 -52
- package/src/cubing/twisty/views/2D/Twisty2DSceneWrapper.ts +0 -77
- package/src/cubing/twisty/views/3D/DragTracker.ts +0 -184
- package/src/cubing/twisty/views/3D/RendererPool.ts +0 -54
- package/src/cubing/twisty/views/3D/TAU.ts +0 -2
- package/src/cubing/twisty/views/3D/Twisty3DPuzzleWrapper.ts +0 -214
- package/src/cubing/twisty/views/3D/Twisty3DRenderTarget.ts +0 -5
- package/src/cubing/twisty/views/3D/Twisty3DScene.ts +0 -42
- package/src/cubing/twisty/views/3D/Twisty3DSceneWrapper.ts +0 -189
- package/src/cubing/twisty/views/3D/Twisty3DVantage.css.ts +0 -32
- package/src/cubing/twisty/views/3D/Twisty3DVantage.ts +0 -312
- package/src/cubing/twisty/views/3D/TwistyOrbitControls.spec.ts +0 -213
- package/src/cubing/twisty/views/3D/TwistyOrbitControls.ts +0 -176
- package/src/cubing/twisty/views/3D/puzzles/Cube3D.ts +0 -966
- package/src/cubing/twisty/views/3D/puzzles/KPuzzleWrapper.ts +0 -142
- package/src/cubing/twisty/views/3D/puzzles/PG3D.ts +0 -1078
- package/src/cubing/twisty/views/3D/puzzles/Twisty3DPuzzle.ts +0 -6
- package/src/cubing/twisty/views/ClassListManager.ts +0 -34
- package/src/cubing/twisty/views/ManagedCustomElement.ts +0 -76
- package/src/cubing/twisty/views/TwistyAlgEditor/LeafTokens.ts +0 -116
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.ts +0 -72
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.ts +0 -57
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.ts +0 -368
- package/src/cubing/twisty/views/TwistyAlgEditor/model.ts +0 -179
- package/src/cubing/twisty/views/TwistyAlgViewer.css.ts +0 -25
- package/src/cubing/twisty/views/TwistyAlgViewer.ts +0 -502
- package/src/cubing/twisty/views/TwistyPlayer.css.ts +0 -73
- package/src/cubing/twisty/views/TwistyPlayer.ts +0 -362
- package/src/cubing/twisty/views/TwistyPlayerSettable.ts +0 -115
- package/src/cubing/twisty/views/TwistyViewerWrapper.css.ts +0 -41
- package/src/cubing/twisty/views/canvas.ts +0 -9
- package/src/cubing/twisty/views/control-panel/TwistyButtonsV2.css.ts +0 -127
- package/src/cubing/twisty/views/control-panel/TwistyButtonsV2.ts +0 -156
- package/src/cubing/twisty/views/control-panel/TwistyScrubber.css.ts +0 -48
- package/src/cubing/twisty/views/control-panel/TwistyScrubberV2.ts +0 -145
- package/src/cubing/twisty/views/control-panel/webkit-fullscreen.ts +0 -44
- package/src/cubing/twisty/views/document.ts +0 -4
- package/src/cubing/twisty/views/node-custom-element-shims.ts +0 -30
- package/src/cubing/twisty/views/screenshot.ts +0 -90
- package/src/cubing/twisty/views/stream/TwistyStreamSource.css.ts +0 -17
- package/src/cubing/twisty/views/stream/TwistyStreamSource.ts +0 -155
- package/src/cubing/vendor/.DS_Store +0 -0
- package/src/cubing/vendor/comlink-everywhere/.DS_Store +0 -0
- package/src/cubing/vendor/comlink-everywhere/comlink-everywhere.webloc +0 -8
- package/src/cubing/vendor/comlink-everywhere/inside/index.d.ts +0 -1
- package/src/cubing/vendor/comlink-everywhere/inside/index.js +0 -16
- package/src/cubing/vendor/comlink-everywhere/inside/node.js +0 -6
- package/src/cubing/vendor/comlink-everywhere/outside/index.d.ts +0 -6
- package/src/cubing/vendor/comlink-everywhere/outside/index.js +0 -31
- package/src/cubing/vendor/comlink-everywhere/outside/node.js +0 -42
- package/src/cubing/vendor/cstimer/.DS_Store +0 -0
- package/src/cubing/vendor/cstimer/LICENSE +0 -674
- package/src/cubing/vendor/cstimer/src/.DS_Store +0 -0
- package/src/cubing/vendor/cstimer/src/js/lib/mathlib.ts +0 -54
- package/src/cubing/vendor/cstimer/src/js/scramble/scramble_444.ts +0 -2791
- package/src/cubing/vendor/min2phase/gwt.d.ts +0 -2
- package/src/cubing/vendor/min2phase/gwt.js +0 -2699
- package/src/cubing/vendor/p-lazy/license +0 -9
- package/src/cubing/vendor/p-lazy/p-lazy.ts +0 -52
- package/src/cubing/vendor/p-lazy/readme.md +0 -54
- package/src/cubing/vendor/random-uint-below/get-random-values.ts +0 -23
- package/src/cubing/vendor/random-uint-below/index.ts +0 -12
- package/src/cubing/vendor/random-uint-below/random-choice.ts +0 -9
- package/src/cubing/vendor/random-uint-below/random53BitValue.ts +0 -64
- package/src/cubing/vendor/sq12phase/scramble_sq1.js +0 -853
- package/src/cubing/vendor/three/.DS_Store +0 -0
- package/src/cubing/vendor/three/examples/.DS_Store +0 -0
- package/src/cubing/vendor/three/examples/jsm/libs/stats.modified.module.ts +0 -179
- package/src/cubing/vendor/unsafe-raw-aes/unsafe-raw-aes.ts +0 -64
|
@@ -1,2699 +0,0 @@
|
|
|
1
|
-
var $intern_3 = { 3: 1 },
|
|
2
|
-
$intern_9 = 4194303,
|
|
3
|
-
$intern_10 = 1048575,
|
|
4
|
-
$intern_11 = 524288,
|
|
5
|
-
$intern_20 = 65535,
|
|
6
|
-
$intern_26 = { 11: 1, 3: 1 },
|
|
7
|
-
$intern_27 = { 17: 1, 3: 1 },
|
|
8
|
-
$intern_28 = 14540032,
|
|
9
|
-
$intern_29 = 286331153,
|
|
10
|
-
$intern_30 = { 10: 1, 3: 1 };
|
|
11
|
-
var _;
|
|
12
|
-
var prototypesByTypeId_0 = {};
|
|
13
|
-
function typeMarkerFn() {}
|
|
14
|
-
|
|
15
|
-
function portableObjCreate(obj) {
|
|
16
|
-
function F() {}
|
|
17
|
-
|
|
18
|
-
F.prototype = obj || {};
|
|
19
|
-
return new F();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function maybeGetClassLiteralFromPlaceHolder_0(entry) {
|
|
23
|
-
return entry instanceof Array ? entry[0] : null;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function defineClass(typeId, superTypeId, castableTypeMap) {
|
|
27
|
-
var prototypesByTypeId = prototypesByTypeId_0;
|
|
28
|
-
var createSubclassPrototype = createSubclassPrototype_0;
|
|
29
|
-
var maybeGetClassLiteralFromPlaceHolder =
|
|
30
|
-
maybeGetClassLiteralFromPlaceHolder_0;
|
|
31
|
-
var prototype_0 = prototypesByTypeId[typeId];
|
|
32
|
-
var clazz = maybeGetClassLiteralFromPlaceHolder(prototype_0);
|
|
33
|
-
if (prototype_0 && !clazz) {
|
|
34
|
-
_ = prototype_0;
|
|
35
|
-
} else {
|
|
36
|
-
_ = prototypesByTypeId[typeId] = !superTypeId
|
|
37
|
-
? {}
|
|
38
|
-
: createSubclassPrototype(superTypeId);
|
|
39
|
-
_.castableTypeMap$ = castableTypeMap;
|
|
40
|
-
_.constructor = _;
|
|
41
|
-
!superTypeId && (_.typeMarker$ = typeMarkerFn);
|
|
42
|
-
}
|
|
43
|
-
for (var i = 3; i < arguments.length; ++i) {
|
|
44
|
-
arguments[i].prototype = _;
|
|
45
|
-
}
|
|
46
|
-
clazz && (_.___clazz$ = clazz);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function createSubclassPrototype_0(superTypeId) {
|
|
50
|
-
var prototypesByTypeId = prototypesByTypeId_0;
|
|
51
|
-
return portableObjCreate(prototypesByTypeId[superTypeId]);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function Object_0() {}
|
|
55
|
-
|
|
56
|
-
defineClass(1, null, {}, Object_0);
|
|
57
|
-
|
|
58
|
-
function narrow_byte(x_0) {
|
|
59
|
-
return (x_0 << 24) >> 24;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function Class() {
|
|
63
|
-
this.typeName = null;
|
|
64
|
-
this.simpleName = null;
|
|
65
|
-
this.packageName = null;
|
|
66
|
-
this.compoundName = null;
|
|
67
|
-
this.canonicalName = null;
|
|
68
|
-
this.typeId = null;
|
|
69
|
-
this.arrayLiterals = null;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function createClassObject(packageName, compoundClassName) {
|
|
73
|
-
var clazz;
|
|
74
|
-
clazz = new Class();
|
|
75
|
-
clazz.packageName = packageName;
|
|
76
|
-
clazz.compoundName = compoundClassName;
|
|
77
|
-
return clazz;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function createForClass(packageName, compoundClassName, typeId) {
|
|
81
|
-
var clazz;
|
|
82
|
-
clazz = createClassObject(packageName, compoundClassName);
|
|
83
|
-
maybeSetClassLiteral(typeId, clazz);
|
|
84
|
-
return clazz;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function createForInterface(packageName, compoundClassName) {
|
|
88
|
-
var clazz;
|
|
89
|
-
clazz = createClassObject(packageName, compoundClassName);
|
|
90
|
-
clazz.modifiers = 2;
|
|
91
|
-
return clazz;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function createForPrimitive(className, primitiveTypeId) {
|
|
95
|
-
var clazz;
|
|
96
|
-
clazz = createClassObject("", className);
|
|
97
|
-
clazz.typeId = primitiveTypeId;
|
|
98
|
-
clazz.modifiers = 1;
|
|
99
|
-
return clazz;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function getClassLiteralForArray_0(leafClass, dimensions) {
|
|
103
|
-
var arrayLiterals = (leafClass.arrayLiterals = leafClass.arrayLiterals || []);
|
|
104
|
-
return (
|
|
105
|
-
arrayLiterals[dimensions] ||
|
|
106
|
-
(arrayLiterals[dimensions] =
|
|
107
|
-
leafClass.createClassLiteralForArray(dimensions))
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function getPrototypeForClass(clazz) {
|
|
112
|
-
if (clazz.isPrimitive()) {
|
|
113
|
-
return null;
|
|
114
|
-
}
|
|
115
|
-
var typeId = clazz.typeId;
|
|
116
|
-
var prototype_0 = prototypesByTypeId_0[typeId];
|
|
117
|
-
return prototype_0;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
function maybeSetClassLiteral(typeId, clazz) {
|
|
121
|
-
if (!typeId) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
clazz.typeId = typeId;
|
|
125
|
-
var prototype_0 = getPrototypeForClass(clazz);
|
|
126
|
-
if (!prototype_0) {
|
|
127
|
-
prototypesByTypeId_0[typeId] = [clazz];
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
prototype_0.___clazz$ = clazz;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
defineClass(79, 1, {}, Class);
|
|
134
|
-
_.createClassLiteralForArray = function createClassLiteralForArray(dimensions) {
|
|
135
|
-
var clazz;
|
|
136
|
-
clazz = new Class();
|
|
137
|
-
clazz.modifiers = 4;
|
|
138
|
-
dimensions > 1
|
|
139
|
-
? (clazz.componentType = getClassLiteralForArray_0(this, dimensions - 1))
|
|
140
|
-
: (clazz.componentType = this);
|
|
141
|
-
return clazz;
|
|
142
|
-
};
|
|
143
|
-
_.isPrimitive = function isPrimitive() {
|
|
144
|
-
return (this.modifiers & 1) != 0;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
function getClassLiteralForArray(clazz, dimensions) {
|
|
148
|
-
return getClassLiteralForArray_0(clazz, dimensions);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function initDim(
|
|
152
|
-
leafClassLiteral,
|
|
153
|
-
castableTypeMap,
|
|
154
|
-
elementTypeId,
|
|
155
|
-
length_0,
|
|
156
|
-
elementTypeCategory,
|
|
157
|
-
dimensions,
|
|
158
|
-
) {
|
|
159
|
-
var result;
|
|
160
|
-
result = initializeArrayElementsWithDefaults(elementTypeCategory, length_0);
|
|
161
|
-
initValues(
|
|
162
|
-
getClassLiteralForArray(leafClassLiteral, dimensions),
|
|
163
|
-
castableTypeMap,
|
|
164
|
-
elementTypeId,
|
|
165
|
-
elementTypeCategory,
|
|
166
|
-
result,
|
|
167
|
-
);
|
|
168
|
-
return result;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function initDims(
|
|
172
|
-
leafClassLiteral,
|
|
173
|
-
castableTypeMapExprs,
|
|
174
|
-
elementTypeIds,
|
|
175
|
-
leafElementTypeCategory,
|
|
176
|
-
dimExprs,
|
|
177
|
-
count,
|
|
178
|
-
) {
|
|
179
|
-
return initDims_0(
|
|
180
|
-
leafClassLiteral,
|
|
181
|
-
castableTypeMapExprs,
|
|
182
|
-
elementTypeIds,
|
|
183
|
-
leafElementTypeCategory,
|
|
184
|
-
dimExprs,
|
|
185
|
-
0,
|
|
186
|
-
count,
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function initDims_0(
|
|
191
|
-
leafClassLiteral,
|
|
192
|
-
castableTypeMapExprs,
|
|
193
|
-
elementTypeIds,
|
|
194
|
-
leafElementTypeCategory,
|
|
195
|
-
dimExprs,
|
|
196
|
-
index_0,
|
|
197
|
-
count,
|
|
198
|
-
) {
|
|
199
|
-
var elementTypeCategory, i, isLastDim, length_0, result;
|
|
200
|
-
length_0 = dimExprs[index_0];
|
|
201
|
-
isLastDim = index_0 == count - 1;
|
|
202
|
-
elementTypeCategory = isLastDim ? leafElementTypeCategory : 0;
|
|
203
|
-
result = initializeArrayElementsWithDefaults(elementTypeCategory, length_0);
|
|
204
|
-
initValues(
|
|
205
|
-
getClassLiteralForArray(leafClassLiteral, count - index_0),
|
|
206
|
-
castableTypeMapExprs[index_0],
|
|
207
|
-
elementTypeIds[index_0],
|
|
208
|
-
elementTypeCategory,
|
|
209
|
-
result,
|
|
210
|
-
);
|
|
211
|
-
if (!isLastDim) {
|
|
212
|
-
++index_0;
|
|
213
|
-
for (i = 0; i < length_0; ++i) {
|
|
214
|
-
result[i] = initDims_0(
|
|
215
|
-
leafClassLiteral,
|
|
216
|
-
castableTypeMapExprs,
|
|
217
|
-
elementTypeIds,
|
|
218
|
-
leafElementTypeCategory,
|
|
219
|
-
dimExprs,
|
|
220
|
-
index_0,
|
|
221
|
-
count,
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
return result;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
function initValues(
|
|
229
|
-
arrayClass,
|
|
230
|
-
castableTypeMap,
|
|
231
|
-
elementTypeId,
|
|
232
|
-
elementTypeCategory,
|
|
233
|
-
array,
|
|
234
|
-
) {
|
|
235
|
-
array.___clazz$ = arrayClass;
|
|
236
|
-
array.castableTypeMap$ = castableTypeMap;
|
|
237
|
-
array.typeMarker$ = typeMarkerFn;
|
|
238
|
-
array.__elementTypeId$ = elementTypeId;
|
|
239
|
-
array.__elementTypeCategory$ = elementTypeCategory;
|
|
240
|
-
return array;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
function initializeArrayElementsWithDefaults(elementTypeCategory, length_0) {
|
|
244
|
-
var array = new Array(length_0);
|
|
245
|
-
var initValue;
|
|
246
|
-
switch (elementTypeCategory) {
|
|
247
|
-
case 6:
|
|
248
|
-
initValue = { l: 0, m: 0, h: 0 };
|
|
249
|
-
break;
|
|
250
|
-
case 7:
|
|
251
|
-
initValue = 0;
|
|
252
|
-
break;
|
|
253
|
-
case 8:
|
|
254
|
-
initValue = false;
|
|
255
|
-
break;
|
|
256
|
-
default:
|
|
257
|
-
return array;
|
|
258
|
-
}
|
|
259
|
-
for (var i = 0; i < length_0; ++i) {
|
|
260
|
-
array[i] = initValue;
|
|
261
|
-
}
|
|
262
|
-
return array;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
function create(value_0) {
|
|
266
|
-
var a0, a1, a2;
|
|
267
|
-
a0 = value_0 & $intern_9;
|
|
268
|
-
a1 = (value_0 >> 22) & $intern_9;
|
|
269
|
-
a2 = value_0 < 0 ? $intern_10 : 0;
|
|
270
|
-
return create0(a0, a1, a2);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
function create0(l, m, h) {
|
|
274
|
-
return { l: l, m: m, h: h };
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
function add_1(a, b) {
|
|
278
|
-
var sum0, sum1, sum2;
|
|
279
|
-
sum0 = a.l + b.l;
|
|
280
|
-
sum1 = a.m + b.m + (sum0 >> 22);
|
|
281
|
-
sum2 = a.h + b.h + (sum1 >> 22);
|
|
282
|
-
return { l: sum0 & $intern_9, m: sum1 & $intern_9, h: sum2 & $intern_10 };
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
function and(a, b) {
|
|
286
|
-
return { l: a.l & b.l, m: a.m & b.m, h: a.h & b.h };
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
function fromInt(value_0) {
|
|
290
|
-
var rebase, result;
|
|
291
|
-
if (value_0 > -129 && value_0 < 128) {
|
|
292
|
-
rebase = value_0 + 128;
|
|
293
|
-
boxedValues == null &&
|
|
294
|
-
(boxedValues = initDim(
|
|
295
|
-
Lcom_google_gwt_lang_LongLibBase$LongEmul_2_classLit,
|
|
296
|
-
$intern_3,
|
|
297
|
-
293,
|
|
298
|
-
256,
|
|
299
|
-
0,
|
|
300
|
-
1,
|
|
301
|
-
));
|
|
302
|
-
result = boxedValues[rebase];
|
|
303
|
-
!result && (result = boxedValues[rebase] = create(value_0));
|
|
304
|
-
return result;
|
|
305
|
-
}
|
|
306
|
-
return create(value_0);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
function gte(a, b) {
|
|
310
|
-
var signa, signb;
|
|
311
|
-
signa = a.h >> 19;
|
|
312
|
-
signb = b.h >> 19;
|
|
313
|
-
return signa == 0
|
|
314
|
-
? signb != 0 ||
|
|
315
|
-
a.h > b.h ||
|
|
316
|
-
(a.h == b.h && a.m > b.m) ||
|
|
317
|
-
(a.h == b.h && a.m == b.m && a.l >= b.l)
|
|
318
|
-
: !(
|
|
319
|
-
signb == 0 ||
|
|
320
|
-
a.h < b.h ||
|
|
321
|
-
(a.h == b.h && a.m < b.m) ||
|
|
322
|
-
(a.h == b.h && a.m == b.m && a.l < b.l)
|
|
323
|
-
);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
function neq(a, b) {
|
|
327
|
-
return a.l != b.l || a.m != b.m || a.h != b.h;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
function or(a, b) {
|
|
331
|
-
return { l: a.l | b.l, m: a.m | b.m, h: a.h | b.h };
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
function shl(a, n) {
|
|
335
|
-
var res0, res1, res2;
|
|
336
|
-
n &= 63;
|
|
337
|
-
if (n < 22) {
|
|
338
|
-
res0 = a.l << n;
|
|
339
|
-
res1 = (a.m << n) | (a.l >> (22 - n));
|
|
340
|
-
res2 = (a.h << n) | (a.m >> (22 - n));
|
|
341
|
-
} else if (n < 44) {
|
|
342
|
-
res0 = 0;
|
|
343
|
-
res1 = a.l << (n - 22);
|
|
344
|
-
res2 = (a.m << (n - 22)) | (a.l >> (44 - n));
|
|
345
|
-
} else {
|
|
346
|
-
res0 = 0;
|
|
347
|
-
res1 = 0;
|
|
348
|
-
res2 = a.l << (n - 44);
|
|
349
|
-
}
|
|
350
|
-
return { l: res0 & $intern_9, m: res1 & $intern_9, h: res2 & $intern_10 };
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
function shr(a, n) {
|
|
354
|
-
var a2, negative, res0, res1, res2;
|
|
355
|
-
n &= 63;
|
|
356
|
-
a2 = a.h;
|
|
357
|
-
negative = (a2 & $intern_11) != 0;
|
|
358
|
-
negative && (a2 |= -1048576);
|
|
359
|
-
if (n < 22) {
|
|
360
|
-
res2 = a2 >> n;
|
|
361
|
-
res1 = (a.m >> n) | (a2 << (22 - n));
|
|
362
|
-
res0 = (a.l >> n) | (a.m << (22 - n));
|
|
363
|
-
} else if (n < 44) {
|
|
364
|
-
res2 = negative ? $intern_10 : 0;
|
|
365
|
-
res1 = a2 >> (n - 22);
|
|
366
|
-
res0 = (a.m >> (n - 22)) | (a2 << (44 - n));
|
|
367
|
-
} else {
|
|
368
|
-
res2 = negative ? $intern_10 : 0;
|
|
369
|
-
res1 = negative ? $intern_9 : 0;
|
|
370
|
-
res0 = a2 >> (n - 44);
|
|
371
|
-
}
|
|
372
|
-
return { l: res0 & $intern_9, m: res1 & $intern_9, h: res2 & $intern_10 };
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
function sub_0(a, b) {
|
|
376
|
-
var sum0, sum1, sum2;
|
|
377
|
-
sum0 = a.l - b.l;
|
|
378
|
-
sum1 = a.m - b.m + (sum0 >> 22);
|
|
379
|
-
sum2 = a.h - b.h + (sum1 >> 22);
|
|
380
|
-
return { l: sum0 & $intern_9, m: sum1 & $intern_9, h: sum2 & $intern_10 };
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
function toInt(a) {
|
|
384
|
-
return a.l | (a.m << 22);
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
var boxedValues;
|
|
388
|
-
|
|
389
|
-
function AbstractStringBuilder(string) {
|
|
390
|
-
this.string = string;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
function max_0(x_0, y_0) {
|
|
394
|
-
return x_0 > y_0 ? x_0 : y_0;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
function min_0(x_0, y_0) {
|
|
398
|
-
return x_0 < y_0 ? x_0 : y_0;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
function $indexOf_0(this$static, str) {
|
|
402
|
-
return this$static.indexOf(str);
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
function _String(value_0) {
|
|
406
|
-
return __valueOf(value_0, 0, value_0.length);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
function __valueOf(x_0, start_0, end) {
|
|
410
|
-
var s = "";
|
|
411
|
-
for (var batchStart = start_0; batchStart < end; ) {
|
|
412
|
-
var batchEnd = Math.min(batchStart + 10000, end);
|
|
413
|
-
s += String.fromCharCode.apply(null, x_0.slice(batchStart, batchEnd));
|
|
414
|
-
batchStart = batchEnd;
|
|
415
|
-
}
|
|
416
|
-
return s;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
function fromCodePoint(codePoint) {
|
|
420
|
-
return String.fromCharCode(codePoint & $intern_20);
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
var Ljava_lang_String_2_classLit = createForClass("java.lang", "String", 2);
|
|
424
|
-
|
|
425
|
-
function $append(this$static) {
|
|
426
|
-
this$static.string += " ";
|
|
427
|
-
return this$static;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
function $append_1(this$static, x_0) {
|
|
431
|
-
this$static.string += x_0;
|
|
432
|
-
return this$static;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
function StringBuffer() {
|
|
436
|
-
AbstractStringBuilder.call(this, "");
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
function equals_7(array1, array2) {
|
|
440
|
-
var i;
|
|
441
|
-
if (array1 === array2) {
|
|
442
|
-
return true;
|
|
443
|
-
}
|
|
444
|
-
if (array1.length != array2.length) {
|
|
445
|
-
return false;
|
|
446
|
-
}
|
|
447
|
-
for (i = 0; i < array1.length; ++i) {
|
|
448
|
-
if (array1[i] != array2[i]) {
|
|
449
|
-
return false;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
return true;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
let $clinit_CoordCube_ran = false;
|
|
456
|
-
function $clinit_CoordCube() {
|
|
457
|
-
if ($clinit_CoordCube_ran) {
|
|
458
|
-
return;
|
|
459
|
-
}
|
|
460
|
-
$clinit_CoordCube_ran = true;
|
|
461
|
-
UDSliceMove = initDims(
|
|
462
|
-
C_classLit,
|
|
463
|
-
[$intern_3, $intern_26],
|
|
464
|
-
[11, 0],
|
|
465
|
-
7,
|
|
466
|
-
[495, 18],
|
|
467
|
-
2,
|
|
468
|
-
);
|
|
469
|
-
TwistMove = initDims(
|
|
470
|
-
C_classLit,
|
|
471
|
-
[$intern_3, $intern_26],
|
|
472
|
-
[11, 0],
|
|
473
|
-
7,
|
|
474
|
-
[324, 18],
|
|
475
|
-
2,
|
|
476
|
-
);
|
|
477
|
-
FlipMove = initDims(
|
|
478
|
-
C_classLit,
|
|
479
|
-
[$intern_3, $intern_26],
|
|
480
|
-
[11, 0],
|
|
481
|
-
7,
|
|
482
|
-
[336, 18],
|
|
483
|
-
2,
|
|
484
|
-
);
|
|
485
|
-
UDSliceConj = initDims(
|
|
486
|
-
C_classLit,
|
|
487
|
-
[$intern_3, $intern_26],
|
|
488
|
-
[11, 0],
|
|
489
|
-
7,
|
|
490
|
-
[495, 8],
|
|
491
|
-
2,
|
|
492
|
-
);
|
|
493
|
-
UDSliceTwistPrun = initDim(I_classLit, $intern_27, 0, 20048, 7, 1);
|
|
494
|
-
UDSliceFlipPrun = initDim(I_classLit, $intern_27, 0, 20791, 7, 1);
|
|
495
|
-
TwistFlipPrun = initDim(I_classLit, $intern_27, 0, 82945, 7, 1);
|
|
496
|
-
CPermMove = initDims(
|
|
497
|
-
C_classLit,
|
|
498
|
-
[$intern_3, $intern_26],
|
|
499
|
-
[11, 0],
|
|
500
|
-
7,
|
|
501
|
-
[2768, 10],
|
|
502
|
-
2,
|
|
503
|
-
);
|
|
504
|
-
EPermMove = initDims(
|
|
505
|
-
C_classLit,
|
|
506
|
-
[$intern_3, $intern_26],
|
|
507
|
-
[11, 0],
|
|
508
|
-
7,
|
|
509
|
-
[2768, 10],
|
|
510
|
-
2,
|
|
511
|
-
);
|
|
512
|
-
MPermMove = initDims(
|
|
513
|
-
C_classLit,
|
|
514
|
-
[$intern_3, $intern_26],
|
|
515
|
-
[11, 0],
|
|
516
|
-
7,
|
|
517
|
-
[24, 10],
|
|
518
|
-
2,
|
|
519
|
-
);
|
|
520
|
-
MPermConj = initDims(
|
|
521
|
-
C_classLit,
|
|
522
|
-
[$intern_3, $intern_26],
|
|
523
|
-
[11, 0],
|
|
524
|
-
7,
|
|
525
|
-
[24, 16],
|
|
526
|
-
2,
|
|
527
|
-
);
|
|
528
|
-
CCombPConj = initDims(
|
|
529
|
-
C_classLit,
|
|
530
|
-
[$intern_3, $intern_26],
|
|
531
|
-
[11, 0],
|
|
532
|
-
7,
|
|
533
|
-
[140, 16],
|
|
534
|
-
2,
|
|
535
|
-
);
|
|
536
|
-
MCPermPrun = initDim(I_classLit, $intern_27, 0, 8305, 7, 1);
|
|
537
|
-
EPermCCombPPrun = initDim(I_classLit, $intern_27, 0, 48441, 7, 1);
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
function $doMovePrun(this$static, cc, m) {
|
|
541
|
-
this$static.slice_0 = UDSliceMove[cc.slice_0][m];
|
|
542
|
-
this$static.flip =
|
|
543
|
-
FlipMove[cc.flip][($clinit_CubieCube(), Sym8Move)[(m << 3) | cc.fsym]];
|
|
544
|
-
this$static.fsym = (this$static.flip & 7) ^ cc.fsym;
|
|
545
|
-
this$static.flip >>= 3;
|
|
546
|
-
this$static.twist = TwistMove[cc.twist][Sym8Move[(m << 3) | cc.tsym]];
|
|
547
|
-
this$static.tsym = (this$static.twist & 7) ^ cc.tsym;
|
|
548
|
-
this$static.twist >>= 3;
|
|
549
|
-
this$static.prun = max_0(
|
|
550
|
-
max_0(
|
|
551
|
-
getPruning(
|
|
552
|
-
UDSliceTwistPrun,
|
|
553
|
-
this$static.twist * 495 +
|
|
554
|
-
UDSliceConj[this$static.slice_0][this$static.tsym],
|
|
555
|
-
),
|
|
556
|
-
getPruning(
|
|
557
|
-
UDSliceFlipPrun,
|
|
558
|
-
this$static.flip * 495 +
|
|
559
|
-
UDSliceConj[this$static.slice_0][this$static.fsym],
|
|
560
|
-
),
|
|
561
|
-
),
|
|
562
|
-
getPruning(
|
|
563
|
-
TwistFlipPrun,
|
|
564
|
-
(this$static.twist << 11) |
|
|
565
|
-
FlipS2RF[
|
|
566
|
-
(this$static.flip << 3) | (this$static.fsym ^ this$static.tsym)
|
|
567
|
-
],
|
|
568
|
-
),
|
|
569
|
-
);
|
|
570
|
-
return this$static.prun;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
function $doMovePrunConj(this$static, cc, m) {
|
|
574
|
-
m = ($clinit_CubieCube(), SymMove_0)[3][m];
|
|
575
|
-
this$static.flipc =
|
|
576
|
-
FlipMove[cc.flipc >> 3][Sym8Move[(m << 3) | (cc.flipc & 7)]] ^
|
|
577
|
-
(cc.flipc & 7);
|
|
578
|
-
this$static.twistc =
|
|
579
|
-
TwistMove[cc.twistc >> 3][Sym8Move[(m << 3) | (cc.twistc & 7)]] ^
|
|
580
|
-
(cc.twistc & 7);
|
|
581
|
-
return getPruning(
|
|
582
|
-
TwistFlipPrun,
|
|
583
|
-
((this$static.twistc >> 3) << 11) |
|
|
584
|
-
FlipS2RF[this$static.flipc ^ (this$static.twistc & 7)],
|
|
585
|
-
);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
function $setWithPrun(this$static, cc, depth) {
|
|
589
|
-
var pc;
|
|
590
|
-
this$static.twist = ($clinit_CubieCube(), TwistR2S)[$getTwist(cc)];
|
|
591
|
-
this$static.flip = FlipR2S[$getFlip(cc)];
|
|
592
|
-
this$static.tsym = this$static.twist & 7;
|
|
593
|
-
this$static.twist = this$static.twist >> 3;
|
|
594
|
-
this$static.prun = getPruning(
|
|
595
|
-
TwistFlipPrun,
|
|
596
|
-
(this$static.twist << 11) | FlipS2RF[this$static.flip ^ this$static.tsym],
|
|
597
|
-
);
|
|
598
|
-
if (this$static.prun > depth) {
|
|
599
|
-
return false;
|
|
600
|
-
}
|
|
601
|
-
this$static.fsym = this$static.flip & 7;
|
|
602
|
-
this$static.flip = this$static.flip >> 3;
|
|
603
|
-
this$static.slice_0 = 494 - getComb(cc.ea, 8, true);
|
|
604
|
-
this$static.prun = max_0(
|
|
605
|
-
this$static.prun,
|
|
606
|
-
max_0(
|
|
607
|
-
getPruning(
|
|
608
|
-
UDSliceTwistPrun,
|
|
609
|
-
this$static.twist * 495 +
|
|
610
|
-
UDSliceConj[this$static.slice_0][this$static.tsym],
|
|
611
|
-
),
|
|
612
|
-
getPruning(
|
|
613
|
-
UDSliceFlipPrun,
|
|
614
|
-
this$static.flip * 495 +
|
|
615
|
-
UDSliceConj[this$static.slice_0][this$static.fsym],
|
|
616
|
-
),
|
|
617
|
-
),
|
|
618
|
-
);
|
|
619
|
-
if (this$static.prun > depth) {
|
|
620
|
-
return false;
|
|
621
|
-
}
|
|
622
|
-
pc = new CubieCube();
|
|
623
|
-
CornConjugate(cc, 1, pc);
|
|
624
|
-
EdgeConjugate(cc, 1, pc);
|
|
625
|
-
this$static.twistc = TwistR2S[$getTwist(pc)];
|
|
626
|
-
this$static.flipc = FlipR2S[$getFlip(pc)];
|
|
627
|
-
this$static.prun = max_0(
|
|
628
|
-
this$static.prun,
|
|
629
|
-
getPruning(
|
|
630
|
-
TwistFlipPrun,
|
|
631
|
-
((this$static.twistc >> 3) << 11) |
|
|
632
|
-
FlipS2RF[this$static.flipc ^ (this$static.twistc & 7)],
|
|
633
|
-
),
|
|
634
|
-
);
|
|
635
|
-
return this$static.prun <= depth;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
function CoordCube() {
|
|
639
|
-
$clinit_CoordCube();
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
function getPruning(table, index_0) {
|
|
643
|
-
$clinit_CoordCube();
|
|
644
|
-
return (table[index_0 >> 3] >> (index_0 << 2)) & 15;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
function init_0(fullInit) {
|
|
648
|
-
$clinit_CoordCube();
|
|
649
|
-
if (initLevel == 2 || (initLevel == 1 && !fullInit)) {
|
|
650
|
-
return;
|
|
651
|
-
}
|
|
652
|
-
if (initLevel == 0) {
|
|
653
|
-
initPermSym2Raw();
|
|
654
|
-
initCPermMove();
|
|
655
|
-
initEPermMove();
|
|
656
|
-
initMPermMoveConj();
|
|
657
|
-
initCombPMoveConj();
|
|
658
|
-
$clinit_CubieCube();
|
|
659
|
-
initSym2Raw(
|
|
660
|
-
2048,
|
|
661
|
-
FlipS2R,
|
|
662
|
-
FlipR2S,
|
|
663
|
-
(SymStateFlip = initDim(C_classLit, $intern_26, 0, 336, 7, 1)),
|
|
664
|
-
0,
|
|
665
|
-
);
|
|
666
|
-
initSym2Raw(
|
|
667
|
-
2187,
|
|
668
|
-
TwistS2R,
|
|
669
|
-
TwistR2S,
|
|
670
|
-
(SymStateTwist = initDim(C_classLit, $intern_26, 0, 324, 7, 1)),
|
|
671
|
-
1,
|
|
672
|
-
);
|
|
673
|
-
initFlipMove();
|
|
674
|
-
initTwistMove();
|
|
675
|
-
initUDSliceMoveConj();
|
|
676
|
-
}
|
|
677
|
-
initRawSymPrun(
|
|
678
|
-
MCPermPrun,
|
|
679
|
-
MPermMove,
|
|
680
|
-
MPermConj,
|
|
681
|
-
CPermMove,
|
|
682
|
-
($clinit_CubieCube(), SymStatePerm),
|
|
683
|
-
584244,
|
|
684
|
-
fullInit,
|
|
685
|
-
);
|
|
686
|
-
initRawSymPrun(
|
|
687
|
-
EPermCCombPPrun,
|
|
688
|
-
CCombPMove,
|
|
689
|
-
CCombPConj,
|
|
690
|
-
EPermMove,
|
|
691
|
-
SymStatePerm,
|
|
692
|
-
514084,
|
|
693
|
-
fullInit,
|
|
694
|
-
);
|
|
695
|
-
initRawSymPrun(
|
|
696
|
-
UDSliceTwistPrun,
|
|
697
|
-
UDSliceMove,
|
|
698
|
-
UDSliceConj,
|
|
699
|
-
TwistMove,
|
|
700
|
-
SymStateTwist,
|
|
701
|
-
431619,
|
|
702
|
-
fullInit,
|
|
703
|
-
);
|
|
704
|
-
initRawSymPrun(
|
|
705
|
-
UDSliceFlipPrun,
|
|
706
|
-
UDSliceMove,
|
|
707
|
-
UDSliceConj,
|
|
708
|
-
FlipMove,
|
|
709
|
-
SymStateFlip,
|
|
710
|
-
431619,
|
|
711
|
-
fullInit,
|
|
712
|
-
);
|
|
713
|
-
initRawSymPrun(
|
|
714
|
-
TwistFlipPrun,
|
|
715
|
-
null,
|
|
716
|
-
null,
|
|
717
|
-
TwistMove,
|
|
718
|
-
SymStateTwist,
|
|
719
|
-
103939,
|
|
720
|
-
fullInit,
|
|
721
|
-
);
|
|
722
|
-
initLevel = fullInit ? 2 : 1;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
function initCPermMove() {
|
|
726
|
-
var c, d, i, j;
|
|
727
|
-
c = new CubieCube();
|
|
728
|
-
d = new CubieCube();
|
|
729
|
-
for (i = 0; i < 2768; i++) {
|
|
730
|
-
$setCPerm(c, ($clinit_CubieCube(), EPermS2R)[i]);
|
|
731
|
-
for (j = 0; j < 10; j++) {
|
|
732
|
-
CornMult(c, moveCube[($clinit_Util(), ud2std)[j]], d);
|
|
733
|
-
CPermMove[i][j] =
|
|
734
|
-
ESym2CSym(EPermR2S[getNPerm(d.ca, 8, false)]) & $intern_20;
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
function initCombPMoveConj() {
|
|
740
|
-
var c, d, i, j, j0;
|
|
741
|
-
c = new CubieCube();
|
|
742
|
-
d = new CubieCube();
|
|
743
|
-
CCombPMove = initDims(
|
|
744
|
-
C_classLit,
|
|
745
|
-
[$intern_3, $intern_26],
|
|
746
|
-
[11, 0],
|
|
747
|
-
7,
|
|
748
|
-
[140, 10],
|
|
749
|
-
2,
|
|
750
|
-
);
|
|
751
|
-
for (i = 0; i < 140; i++) {
|
|
752
|
-
setComb(c.ca, i % 70, 0, false);
|
|
753
|
-
for (j0 = 0; j0 < 10; j0++) {
|
|
754
|
-
CornMult(
|
|
755
|
-
c,
|
|
756
|
-
($clinit_CubieCube(), moveCube)[($clinit_Util(), ud2std)[j0]],
|
|
757
|
-
d,
|
|
758
|
-
);
|
|
759
|
-
CCombPMove[i][j0] =
|
|
760
|
-
(getComb(d.ca, 0, false) + 70 * (((165 >> j0) & 1) ^ ~~(i / 70))) &
|
|
761
|
-
$intern_20;
|
|
762
|
-
}
|
|
763
|
-
for (j = 0; j < 16; j++) {
|
|
764
|
-
CornConjugate(c, ($clinit_CubieCube(), SymMultInv)[0][j], d);
|
|
765
|
-
CCombPConj[i][j] =
|
|
766
|
-
(getComb(d.ca, 0, false) + 70 * ~~(i / 70)) & $intern_20;
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
function initEPermMove() {
|
|
772
|
-
var c, d, i, j;
|
|
773
|
-
c = new CubieCube();
|
|
774
|
-
d = new CubieCube();
|
|
775
|
-
for (i = 0; i < 2768; i++) {
|
|
776
|
-
$setEPerm(c, ($clinit_CubieCube(), EPermS2R)[i]);
|
|
777
|
-
for (j = 0; j < 10; j++) {
|
|
778
|
-
EdgeMult(c, moveCube[($clinit_Util(), ud2std)[j]], d);
|
|
779
|
-
EPermMove[i][j] = EPermR2S[getNPerm(d.ea, 8, true)];
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
function initFlipMove() {
|
|
785
|
-
var c, d, i, j;
|
|
786
|
-
c = new CubieCube();
|
|
787
|
-
d = new CubieCube();
|
|
788
|
-
for (i = 0; i < 336; i++) {
|
|
789
|
-
$setFlip(c, ($clinit_CubieCube(), FlipS2R)[i]);
|
|
790
|
-
for (j = 0; j < 18; j++) {
|
|
791
|
-
EdgeMult(c, moveCube[j], d);
|
|
792
|
-
FlipMove[i][j] = FlipR2S[$getFlip(d)];
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
function initMPermMoveConj() {
|
|
798
|
-
var c, d, i, j, j0;
|
|
799
|
-
c = new CubieCube();
|
|
800
|
-
d = new CubieCube();
|
|
801
|
-
for (i = 0; i < 24; i++) {
|
|
802
|
-
setNPerm(c.ea, i, 12, true);
|
|
803
|
-
for (j0 = 0; j0 < 10; j0++) {
|
|
804
|
-
EdgeMult(
|
|
805
|
-
c,
|
|
806
|
-
($clinit_CubieCube(), moveCube)[($clinit_Util(), ud2std)[j0]],
|
|
807
|
-
d,
|
|
808
|
-
);
|
|
809
|
-
MPermMove[i][j0] = getNPerm(d.ea, 12, true) % 24 & $intern_20;
|
|
810
|
-
}
|
|
811
|
-
for (j = 0; j < 16; j++) {
|
|
812
|
-
EdgeConjugate(c, ($clinit_CubieCube(), SymMultInv)[0][j], d);
|
|
813
|
-
MPermConj[i][j] = getNPerm(d.ea, 12, true) % 24 & $intern_20;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
function initRawSymPrun(
|
|
819
|
-
PrunTable,
|
|
820
|
-
RawMove,
|
|
821
|
-
RawConj,
|
|
822
|
-
SymMove,
|
|
823
|
-
SymState,
|
|
824
|
-
PrunFlag,
|
|
825
|
-
fullInit,
|
|
826
|
-
) {
|
|
827
|
-
var INV_DEPTH,
|
|
828
|
-
ISTFP,
|
|
829
|
-
IS_PHASE2,
|
|
830
|
-
MAX_DEPTH,
|
|
831
|
-
MIN_DEPTH,
|
|
832
|
-
NEXT_AXIS_MAGIC,
|
|
833
|
-
N_MOVES,
|
|
834
|
-
N_RAW,
|
|
835
|
-
N_SIZE,
|
|
836
|
-
SEARCH_DEPTH,
|
|
837
|
-
SYM_E2C_MAGIC,
|
|
838
|
-
SYM_MASK,
|
|
839
|
-
SYM_SHIFT,
|
|
840
|
-
check,
|
|
841
|
-
depth,
|
|
842
|
-
flip,
|
|
843
|
-
fsym,
|
|
844
|
-
i,
|
|
845
|
-
i0,
|
|
846
|
-
idx,
|
|
847
|
-
idxx,
|
|
848
|
-
inv,
|
|
849
|
-
j,
|
|
850
|
-
m,
|
|
851
|
-
mask,
|
|
852
|
-
prun,
|
|
853
|
-
raw,
|
|
854
|
-
rawx,
|
|
855
|
-
selArrMask,
|
|
856
|
-
select,
|
|
857
|
-
sym,
|
|
858
|
-
symState,
|
|
859
|
-
symx,
|
|
860
|
-
val,
|
|
861
|
-
val0,
|
|
862
|
-
xorVal;
|
|
863
|
-
SYM_SHIFT = PrunFlag & 15;
|
|
864
|
-
SYM_E2C_MAGIC = ((PrunFlag >> 4) & 1) == 1 ? $intern_28 : 0;
|
|
865
|
-
IS_PHASE2 = ((PrunFlag >> 5) & 1) == 1;
|
|
866
|
-
INV_DEPTH = (PrunFlag >> 8) & 15;
|
|
867
|
-
MAX_DEPTH = (PrunFlag >> 12) & 15;
|
|
868
|
-
MIN_DEPTH = (PrunFlag >> 16) & 15;
|
|
869
|
-
SEARCH_DEPTH = fullInit ? MAX_DEPTH : MIN_DEPTH;
|
|
870
|
-
SYM_MASK = (1 << SYM_SHIFT) - 1;
|
|
871
|
-
ISTFP = RawMove == null;
|
|
872
|
-
N_RAW = ISTFP ? 2048 : RawMove.length;
|
|
873
|
-
N_SIZE = N_RAW * SymMove.length;
|
|
874
|
-
N_MOVES = IS_PHASE2 ? 10 : 18;
|
|
875
|
-
NEXT_AXIS_MAGIC = N_MOVES == 10 ? 66 : 599186;
|
|
876
|
-
depth = ((PrunTable[N_SIZE >> 3] >> (N_SIZE << 2)) & 15) - 1;
|
|
877
|
-
|
|
878
|
-
if (depth == -1) {
|
|
879
|
-
for (i = 0; i < ~~(N_SIZE / 8) + 1; i++) {
|
|
880
|
-
PrunTable[i] = $intern_29;
|
|
881
|
-
}
|
|
882
|
-
PrunTable[0] ^= 1;
|
|
883
|
-
depth = 0;
|
|
884
|
-
}
|
|
885
|
-
while (depth < SEARCH_DEPTH) {
|
|
886
|
-
mask = ((depth + 1) * $intern_29) ^ -1;
|
|
887
|
-
for (i0 = 0; i0 < PrunTable.length; i0++) {
|
|
888
|
-
val0 = PrunTable[i0] ^ mask;
|
|
889
|
-
val0 &= val0 >> 1;
|
|
890
|
-
PrunTable[i0] += val0 & (val0 >> 2) & $intern_29;
|
|
891
|
-
}
|
|
892
|
-
inv = depth > INV_DEPTH;
|
|
893
|
-
select = inv ? depth + 2 : depth;
|
|
894
|
-
selArrMask = select * $intern_29;
|
|
895
|
-
check = inv ? depth : depth + 2;
|
|
896
|
-
++depth;
|
|
897
|
-
xorVal = depth ^ (depth + 1);
|
|
898
|
-
val = 0;
|
|
899
|
-
for (i = 0; i < N_SIZE; ++i, val >>= 4) {
|
|
900
|
-
if ((i & 7) == 0) {
|
|
901
|
-
val = PrunTable[i >> 3];
|
|
902
|
-
if (
|
|
903
|
-
(((val ^ selArrMask) - $intern_29) &
|
|
904
|
-
~(val ^ selArrMask) &
|
|
905
|
-
-2004318072) ==
|
|
906
|
-
0
|
|
907
|
-
) {
|
|
908
|
-
i += 7;
|
|
909
|
-
continue;
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
if ((val & 15) != select) {
|
|
913
|
-
continue;
|
|
914
|
-
}
|
|
915
|
-
raw = i % N_RAW;
|
|
916
|
-
sym = ~~(i / N_RAW);
|
|
917
|
-
flip = 0;
|
|
918
|
-
fsym = 0;
|
|
919
|
-
if (ISTFP) {
|
|
920
|
-
flip = ($clinit_CubieCube(), FlipR2S)[raw];
|
|
921
|
-
fsym = flip & 7;
|
|
922
|
-
flip >>= 3;
|
|
923
|
-
}
|
|
924
|
-
for (m = 0; m < N_MOVES; m++) {
|
|
925
|
-
symx = SymMove[sym][m];
|
|
926
|
-
ISTFP
|
|
927
|
-
? (rawx = ($clinit_CubieCube(), FlipS2RF)[
|
|
928
|
-
FlipMove[flip][Sym8Move[(m << 3) | fsym]] ^
|
|
929
|
-
fsym ^
|
|
930
|
-
(symx & SYM_MASK)
|
|
931
|
-
])
|
|
932
|
-
: (rawx = RawConj[RawMove[raw][m]][symx & SYM_MASK]);
|
|
933
|
-
symx >>= SYM_SHIFT;
|
|
934
|
-
idx = symx * N_RAW + rawx;
|
|
935
|
-
prun = (PrunTable[idx >> 3] >> (idx << 2)) & 15;
|
|
936
|
-
if (prun != check) {
|
|
937
|
-
prun < depth - 1 && (m += (NEXT_AXIS_MAGIC >> m) & 3);
|
|
938
|
-
continue;
|
|
939
|
-
}
|
|
940
|
-
if (inv) {
|
|
941
|
-
PrunTable[i >> 3] ^= xorVal << (i << 2);
|
|
942
|
-
break;
|
|
943
|
-
}
|
|
944
|
-
PrunTable[idx >> 3] ^= xorVal << (idx << 2);
|
|
945
|
-
for (j = 1, symState = SymState[symx]; (symState >>= 1) != 0; j++) {
|
|
946
|
-
if ((symState & 1) != 1) {
|
|
947
|
-
continue;
|
|
948
|
-
}
|
|
949
|
-
idxx = symx * N_RAW;
|
|
950
|
-
ISTFP
|
|
951
|
-
? (idxx += ($clinit_CubieCube(), FlipS2RF)[FlipR2S[rawx] ^ j])
|
|
952
|
-
: (idxx += RawConj[rawx][j ^ ((SYM_E2C_MAGIC >> (j << 1)) & 3)]);
|
|
953
|
-
if (((PrunTable[idxx >> 3] >> (idxx << 2)) & 15) == check) {
|
|
954
|
-
PrunTable[idxx >> 3] ^= xorVal << (idxx << 2);
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
function initTwistMove() {
|
|
963
|
-
var c, d, i, j;
|
|
964
|
-
c = new CubieCube();
|
|
965
|
-
d = new CubieCube();
|
|
966
|
-
for (i = 0; i < 324; i++) {
|
|
967
|
-
$setTwist(c, ($clinit_CubieCube(), TwistS2R)[i]);
|
|
968
|
-
for (j = 0; j < 18; j++) {
|
|
969
|
-
CornMult(c, moveCube[j], d);
|
|
970
|
-
TwistMove[i][j] = TwistR2S[$getTwist(d)];
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
function initUDSliceMoveConj() {
|
|
976
|
-
var c, d, i, i0, j, j0, k, udslice;
|
|
977
|
-
c = new CubieCube();
|
|
978
|
-
d = new CubieCube();
|
|
979
|
-
for (i0 = 0; i0 < 495; i0++) {
|
|
980
|
-
setComb(c.ea, 494 - i0, 8, true);
|
|
981
|
-
for (j0 = 0; j0 < 18; j0 += 3) {
|
|
982
|
-
EdgeMult(c, ($clinit_CubieCube(), moveCube)[j0], d);
|
|
983
|
-
UDSliceMove[i0][j0] = (494 - getComb(d.ea, 8, true)) & $intern_20;
|
|
984
|
-
}
|
|
985
|
-
for (j = 0; j < 16; j += 2) {
|
|
986
|
-
EdgeConjugate(c, ($clinit_CubieCube(), SymMultInv)[0][j], d);
|
|
987
|
-
UDSliceConj[i0][j >> 1] = (494 - getComb(d.ea, 8, true)) & $intern_20;
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
for (i = 0; i < 495; i++) {
|
|
991
|
-
for (j = 0; j < 18; j += 3) {
|
|
992
|
-
udslice = UDSliceMove[i][j];
|
|
993
|
-
for (k = 1; k < 3; k++) {
|
|
994
|
-
udslice = UDSliceMove[udslice][j];
|
|
995
|
-
UDSliceMove[i][j + k] = udslice & $intern_20;
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
defineClass(31, 1, { 31: 1 }, CoordCube);
|
|
1002
|
-
_.flip = 0;
|
|
1003
|
-
_.flipc = 0;
|
|
1004
|
-
_.fsym = 0;
|
|
1005
|
-
_.prun = 0;
|
|
1006
|
-
_.slice_0 = 0;
|
|
1007
|
-
_.tsym = 0;
|
|
1008
|
-
_.twist = 0;
|
|
1009
|
-
_.twistc = 0;
|
|
1010
|
-
var CCombPConj,
|
|
1011
|
-
CCombPMove,
|
|
1012
|
-
CPermMove,
|
|
1013
|
-
EPermCCombPPrun,
|
|
1014
|
-
EPermMove,
|
|
1015
|
-
FlipMove,
|
|
1016
|
-
MCPermPrun,
|
|
1017
|
-
MPermConj,
|
|
1018
|
-
MPermMove,
|
|
1019
|
-
TwistFlipPrun,
|
|
1020
|
-
TwistMove,
|
|
1021
|
-
UDSliceConj,
|
|
1022
|
-
UDSliceFlipPrun,
|
|
1023
|
-
UDSliceMove,
|
|
1024
|
-
UDSliceTwistPrun,
|
|
1025
|
-
initLevel = 0;
|
|
1026
|
-
var Lorg_cubing_min2phase_client_CoordCube_2_classLit = createForClass(
|
|
1027
|
-
"org.cubing.min2phase.client",
|
|
1028
|
-
"CoordCube",
|
|
1029
|
-
31,
|
|
1030
|
-
);
|
|
1031
|
-
let $clinit_CubieCube_ran = false;
|
|
1032
|
-
function $clinit_CubieCube() {
|
|
1033
|
-
if ($clinit_CubieCube_ran) {
|
|
1034
|
-
return;
|
|
1035
|
-
}
|
|
1036
|
-
$clinit_CubieCube_ran = true;
|
|
1037
|
-
CubeSym = initDim(
|
|
1038
|
-
Lorg_cubing_min2phase_client_CubieCube_2_classLit,
|
|
1039
|
-
$intern_3,
|
|
1040
|
-
7,
|
|
1041
|
-
16,
|
|
1042
|
-
0,
|
|
1043
|
-
1,
|
|
1044
|
-
);
|
|
1045
|
-
moveCube = initDim(
|
|
1046
|
-
Lorg_cubing_min2phase_client_CubieCube_2_classLit,
|
|
1047
|
-
$intern_3,
|
|
1048
|
-
7,
|
|
1049
|
-
18,
|
|
1050
|
-
0,
|
|
1051
|
-
1,
|
|
1052
|
-
);
|
|
1053
|
-
moveCubeSym = initDim(J_classLit, $intern_3, 0, 18, 6, 1);
|
|
1054
|
-
firstMoveSym = initDim(I_classLit, $intern_27, 0, 48, 7, 1);
|
|
1055
|
-
SymMult = initDims(
|
|
1056
|
-
I_classLit,
|
|
1057
|
-
[$intern_3, $intern_27],
|
|
1058
|
-
[17, 0],
|
|
1059
|
-
7,
|
|
1060
|
-
[16, 16],
|
|
1061
|
-
2,
|
|
1062
|
-
);
|
|
1063
|
-
SymMultInv = initDims(
|
|
1064
|
-
I_classLit,
|
|
1065
|
-
[$intern_3, $intern_27],
|
|
1066
|
-
[17, 0],
|
|
1067
|
-
7,
|
|
1068
|
-
[16, 16],
|
|
1069
|
-
2,
|
|
1070
|
-
);
|
|
1071
|
-
SymMove_0 = initDims(
|
|
1072
|
-
I_classLit,
|
|
1073
|
-
[$intern_3, $intern_27],
|
|
1074
|
-
[17, 0],
|
|
1075
|
-
7,
|
|
1076
|
-
[16, 18],
|
|
1077
|
-
2,
|
|
1078
|
-
);
|
|
1079
|
-
Sym8Move = initDim(I_classLit, $intern_27, 0, 144, 7, 1);
|
|
1080
|
-
SymMoveUD = initDims(
|
|
1081
|
-
I_classLit,
|
|
1082
|
-
[$intern_3, $intern_27],
|
|
1083
|
-
[17, 0],
|
|
1084
|
-
7,
|
|
1085
|
-
[16, 18],
|
|
1086
|
-
2,
|
|
1087
|
-
);
|
|
1088
|
-
FlipS2R = initDim(C_classLit, $intern_26, 0, 336, 7, 1);
|
|
1089
|
-
TwistS2R = initDim(C_classLit, $intern_26, 0, 324, 7, 1);
|
|
1090
|
-
EPermS2R = initDim(C_classLit, $intern_26, 0, 2768, 7, 1);
|
|
1091
|
-
Perm2CombP = initDim(B_classLit, $intern_30, 0, 2768, 7, 1);
|
|
1092
|
-
PermInvEdgeSym = initDim(C_classLit, $intern_26, 0, 2768, 7, 1);
|
|
1093
|
-
MPermInv = initDim(B_classLit, $intern_30, 0, 24, 7, 1);
|
|
1094
|
-
FlipR2S = initDim(C_classLit, $intern_26, 0, 2048, 7, 1);
|
|
1095
|
-
TwistR2S = initDim(C_classLit, $intern_26, 0, 2187, 7, 1);
|
|
1096
|
-
EPermR2S = initDim(C_classLit, $intern_26, 0, 40320, 7, 1);
|
|
1097
|
-
FlipS2RF = initDim(C_classLit, $intern_26, 0, 2688, 7, 1);
|
|
1098
|
-
urf1 = new CubieCube_0(2531, 1373, 67026819, 1367);
|
|
1099
|
-
urf2 = new CubieCube_0(2089, 1906, 322752913, 2040);
|
|
1100
|
-
urfMove = initValues(
|
|
1101
|
-
getClassLiteralForArray(B_classLit, 2),
|
|
1102
|
-
$intern_3,
|
|
1103
|
-
10,
|
|
1104
|
-
0,
|
|
1105
|
-
[
|
|
1106
|
-
initValues(
|
|
1107
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1108
|
-
$intern_30,
|
|
1109
|
-
0,
|
|
1110
|
-
7,
|
|
1111
|
-
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17],
|
|
1112
|
-
),
|
|
1113
|
-
initValues(
|
|
1114
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1115
|
-
$intern_30,
|
|
1116
|
-
0,
|
|
1117
|
-
7,
|
|
1118
|
-
[6, 7, 8, 0, 1, 2, 3, 4, 5, 15, 16, 17, 9, 10, 11, 12, 13, 14],
|
|
1119
|
-
),
|
|
1120
|
-
initValues(
|
|
1121
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1122
|
-
$intern_30,
|
|
1123
|
-
0,
|
|
1124
|
-
7,
|
|
1125
|
-
[3, 4, 5, 6, 7, 8, 0, 1, 2, 12, 13, 14, 15, 16, 17, 9, 10, 11],
|
|
1126
|
-
),
|
|
1127
|
-
initValues(
|
|
1128
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1129
|
-
$intern_30,
|
|
1130
|
-
0,
|
|
1131
|
-
7,
|
|
1132
|
-
[2, 1, 0, 5, 4, 3, 8, 7, 6, 11, 10, 9, 14, 13, 12, 17, 16, 15],
|
|
1133
|
-
),
|
|
1134
|
-
initValues(
|
|
1135
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1136
|
-
$intern_30,
|
|
1137
|
-
0,
|
|
1138
|
-
7,
|
|
1139
|
-
[8, 7, 6, 2, 1, 0, 5, 4, 3, 17, 16, 15, 11, 10, 9, 14, 13, 12],
|
|
1140
|
-
),
|
|
1141
|
-
initValues(
|
|
1142
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1143
|
-
$intern_30,
|
|
1144
|
-
0,
|
|
1145
|
-
7,
|
|
1146
|
-
[5, 4, 3, 8, 7, 6, 2, 1, 0, 14, 13, 12, 17, 16, 15, 11, 10, 9],
|
|
1147
|
-
),
|
|
1148
|
-
],
|
|
1149
|
-
);
|
|
1150
|
-
initMove();
|
|
1151
|
-
initSym();
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
function $$init(this$static) {
|
|
1155
|
-
this$static.ca = initValues(
|
|
1156
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1157
|
-
$intern_30,
|
|
1158
|
-
0,
|
|
1159
|
-
7,
|
|
1160
|
-
[0, 1, 2, 3, 4, 5, 6, 7],
|
|
1161
|
-
);
|
|
1162
|
-
this$static.ea = initValues(
|
|
1163
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
1164
|
-
$intern_30,
|
|
1165
|
-
0,
|
|
1166
|
-
7,
|
|
1167
|
-
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22],
|
|
1168
|
-
);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
function $URFConjugate(this$static) {
|
|
1172
|
-
!this$static.temps && (this$static.temps = new CubieCube());
|
|
1173
|
-
CornMult(urf2, this$static, this$static.temps);
|
|
1174
|
-
CornMult(this$static.temps, urf1, this$static);
|
|
1175
|
-
EdgeMult(urf2, this$static, this$static.temps);
|
|
1176
|
-
EdgeMult(this$static.temps, urf1, this$static);
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
function $copy(this$static, c) {
|
|
1180
|
-
var i, i0;
|
|
1181
|
-
for (i0 = 0; i0 < 8; i0++) {
|
|
1182
|
-
this$static.ca[i0] = c.ca[i0];
|
|
1183
|
-
}
|
|
1184
|
-
for (i = 0; i < 12; i++) {
|
|
1185
|
-
this$static.ea[i] = c.ea[i];
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
function $getCPermSym(this$static) {
|
|
1190
|
-
return ESym2CSym(EPermR2S[getNPerm(this$static.ca, 8, false)]);
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
function $getEPermSym(this$static) {
|
|
1194
|
-
return EPermR2S[getNPerm(this$static.ea, 8, true)];
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
function $getFlip(this$static) {
|
|
1198
|
-
var i, idx;
|
|
1199
|
-
idx = 0;
|
|
1200
|
-
for (i = 0; i < 11; i++) {
|
|
1201
|
-
idx = (idx << 1) | (this$static.ea[i] & 1);
|
|
1202
|
-
}
|
|
1203
|
-
return idx;
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
function $getTwist(this$static) {
|
|
1207
|
-
var i, idx;
|
|
1208
|
-
idx = 0;
|
|
1209
|
-
for (i = 0; i < 7; i++) {
|
|
1210
|
-
idx += (idx << 1) + (this$static.ca[i] >> 3);
|
|
1211
|
-
}
|
|
1212
|
-
return idx;
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
function $invCubieCube(this$static) {
|
|
1216
|
-
var corn, edge;
|
|
1217
|
-
!this$static.temps && (this$static.temps = new CubieCube());
|
|
1218
|
-
for (edge = 0; edge < 12; edge++) {
|
|
1219
|
-
this$static.temps.ea[this$static.ea[edge] >> 1] =
|
|
1220
|
-
(((edge << 1) | (this$static.ea[edge] & 1)) << 24) >> 24;
|
|
1221
|
-
}
|
|
1222
|
-
for (corn = 0; corn < 8; corn++) {
|
|
1223
|
-
this$static.temps.ca[this$static.ca[corn] & 7] =
|
|
1224
|
-
((corn | ((32 >> (this$static.ca[corn] >> 3)) & 24)) << 24) >> 24;
|
|
1225
|
-
}
|
|
1226
|
-
$copy(this$static, this$static.temps);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
function $selfSymmetry(this$static) {
|
|
1230
|
-
var c, cperm, cpermx, d, i, sym, urfInv;
|
|
1231
|
-
c = new CubieCube_1(this$static);
|
|
1232
|
-
d = new CubieCube();
|
|
1233
|
-
cperm = ESym2CSym(EPermR2S[getNPerm(c.ca, 8, false)]) >> 4;
|
|
1234
|
-
sym = { l: 0, m: 0, h: 0 };
|
|
1235
|
-
for (urfInv = 0; urfInv < 6; urfInv++) {
|
|
1236
|
-
cpermx = ESym2CSym(EPermR2S[getNPerm(c.ca, 8, false)]) >> 4;
|
|
1237
|
-
if (cperm == cpermx) {
|
|
1238
|
-
for (i = 0; i < 16; i++) {
|
|
1239
|
-
CornConjugate(c, SymMultInv[0][i], d);
|
|
1240
|
-
if (equals_7(d.ca, this$static.ca)) {
|
|
1241
|
-
EdgeConjugate(c, SymMultInv[0][i], d);
|
|
1242
|
-
equals_7(d.ea, this$static.ea) &&
|
|
1243
|
-
(sym = or(
|
|
1244
|
-
sym,
|
|
1245
|
-
shl(
|
|
1246
|
-
{ l: 1, m: 0, h: 0 },
|
|
1247
|
-
((urfInv << 4) | i) < 48 ? (urfInv << 4) | i : 48,
|
|
1248
|
-
),
|
|
1249
|
-
));
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
$URFConjugate(c);
|
|
1254
|
-
urfInv % 3 == 2 && $invCubieCube(c);
|
|
1255
|
-
}
|
|
1256
|
-
return sym;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
function $setCPerm(this$static, idx) {
|
|
1260
|
-
setNPerm(this$static.ca, idx, 8, false);
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
function $setEPerm(this$static, idx) {
|
|
1264
|
-
setNPerm(this$static.ea, idx, 8, true);
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
function $setFlip(this$static, idx) {
|
|
1268
|
-
var i, parity, val;
|
|
1269
|
-
parity = 0;
|
|
1270
|
-
for (i = 10; i >= 0; --i, idx >>= 1) {
|
|
1271
|
-
parity ^= val = idx & 1;
|
|
1272
|
-
this$static.ea[i] = (((this$static.ea[i] & -2) | val) << 24) >> 24;
|
|
1273
|
-
}
|
|
1274
|
-
this$static.ea[11] = (((this$static.ea[11] & -2) | parity) << 24) >> 24;
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
function $setTwist(this$static, idx) {
|
|
1278
|
-
var i, twst, val;
|
|
1279
|
-
twst = 15;
|
|
1280
|
-
for (i = 6; i >= 0; --i, idx = ~~(idx / 3)) {
|
|
1281
|
-
twst -= val = idx % 3;
|
|
1282
|
-
this$static.ca[i] = (((this$static.ca[i] & 7) | (val << 3)) << 24) >> 24;
|
|
1283
|
-
}
|
|
1284
|
-
this$static.ca[7] = (((this$static.ca[7] & 7) | (twst % 3 << 3)) << 24) >> 24;
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
function $verify(this$static) {
|
|
1288
|
-
var c, cornMask, e, edgeMask, sum;
|
|
1289
|
-
sum = 0;
|
|
1290
|
-
edgeMask = 0;
|
|
1291
|
-
for (e = 0; e < 12; e++) {
|
|
1292
|
-
edgeMask |= 1 << (this$static.ea[e] >> 1);
|
|
1293
|
-
sum ^= this$static.ea[e] & 1;
|
|
1294
|
-
}
|
|
1295
|
-
if (edgeMask != 4095) {
|
|
1296
|
-
return -2;
|
|
1297
|
-
}
|
|
1298
|
-
if (sum != 0) {
|
|
1299
|
-
return -3;
|
|
1300
|
-
}
|
|
1301
|
-
cornMask = 0;
|
|
1302
|
-
sum = 0;
|
|
1303
|
-
for (c = 0; c < 8; c++) {
|
|
1304
|
-
cornMask |= 1 << (this$static.ca[c] & 7);
|
|
1305
|
-
sum += this$static.ca[c] >> 3;
|
|
1306
|
-
}
|
|
1307
|
-
if (cornMask != 255) {
|
|
1308
|
-
return -4;
|
|
1309
|
-
}
|
|
1310
|
-
if (sum % 3 != 0) {
|
|
1311
|
-
return -5;
|
|
1312
|
-
}
|
|
1313
|
-
if (
|
|
1314
|
-
(getNParity(getNPerm(this$static.ea, 12, true), 12) ^
|
|
1315
|
-
getNParity(getNPerm(this$static.ca, 8, false), 8)) !=
|
|
1316
|
-
0
|
|
1317
|
-
) {
|
|
1318
|
-
return -6;
|
|
1319
|
-
}
|
|
1320
|
-
return 0;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
function CornConjugate(a, idx, b) {
|
|
1324
|
-
$clinit_CubieCube();
|
|
1325
|
-
var corn, ori, oriA, oriB, s, sinv;
|
|
1326
|
-
sinv = CubeSym[SymMultInv[0][idx]];
|
|
1327
|
-
s = CubeSym[idx];
|
|
1328
|
-
for (corn = 0; corn < 8; corn++) {
|
|
1329
|
-
oriA = sinv.ca[a.ca[s.ca[corn] & 7] & 7] >> 3;
|
|
1330
|
-
oriB = a.ca[s.ca[corn] & 7] >> 3;
|
|
1331
|
-
ori = oriA < 3 ? oriB : (3 - oriB) % 3;
|
|
1332
|
-
b.ca[corn] =
|
|
1333
|
-
(((sinv.ca[a.ca[s.ca[corn] & 7] & 7] & 7) | (ori << 3)) << 24) >> 24;
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
function CornMult(a, b, prod) {
|
|
1338
|
-
$clinit_CubieCube();
|
|
1339
|
-
var corn, oriA, oriB;
|
|
1340
|
-
for (corn = 0; corn < 8; corn++) {
|
|
1341
|
-
oriA = a.ca[b.ca[corn] & 7] >> 3;
|
|
1342
|
-
oriB = b.ca[corn] >> 3;
|
|
1343
|
-
prod.ca[corn] =
|
|
1344
|
-
(((a.ca[b.ca[corn] & 7] & 7) | ((oriA + oriB) % 3 << 3)) << 24) >> 24;
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
function CornMultFull(a, b, prod) {
|
|
1349
|
-
var corn, ori, oriA, oriB;
|
|
1350
|
-
for (corn = 0; corn < 8; corn++) {
|
|
1351
|
-
oriA = a.ca[b.ca[corn] & 7] >> 3;
|
|
1352
|
-
oriB = b.ca[corn] >> 3;
|
|
1353
|
-
ori = oriA + (oriA < 3 ? oriB : 6 - oriB);
|
|
1354
|
-
ori = (ori % 3) + (oriA < 3 == oriB < 3 ? 0 : 3);
|
|
1355
|
-
prod.ca[corn] = (((a.ca[b.ca[corn] & 7] & 7) | (ori << 3)) << 24) >> 24;
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
function CubieCube() {
|
|
1360
|
-
$clinit_CubieCube();
|
|
1361
|
-
$$init(this);
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
function CubieCube_0(cperm, twist, eperm, flip) {
|
|
1365
|
-
$$init(this);
|
|
1366
|
-
setNPerm(this.ca, cperm, 8, false);
|
|
1367
|
-
$setTwist(this, twist);
|
|
1368
|
-
setNPerm(this.ea, eperm, 12, true);
|
|
1369
|
-
$setFlip(this, flip);
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
function CubieCube_1(c) {
|
|
1373
|
-
$$init(this);
|
|
1374
|
-
$copy(this, c);
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
function ESym2CSym(idx) {
|
|
1378
|
-
$clinit_CubieCube();
|
|
1379
|
-
return idx ^ (($intern_28 >> ((idx & 15) << 1)) & 3);
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
function EdgeConjugate(a, idx, b) {
|
|
1383
|
-
$clinit_CubieCube();
|
|
1384
|
-
var ed, s, sinv;
|
|
1385
|
-
sinv = CubeSym[SymMultInv[0][idx]];
|
|
1386
|
-
s = CubeSym[idx];
|
|
1387
|
-
for (ed = 0; ed < 12; ed++) {
|
|
1388
|
-
b.ea[ed] =
|
|
1389
|
-
((sinv.ea[a.ea[s.ea[ed] >> 1] >> 1] ^
|
|
1390
|
-
(a.ea[s.ea[ed] >> 1] & 1) ^
|
|
1391
|
-
(s.ea[ed] & 1)) <<
|
|
1392
|
-
24) >>
|
|
1393
|
-
24;
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
function EdgeMult(a, b, prod) {
|
|
1398
|
-
$clinit_CubieCube();
|
|
1399
|
-
var ed;
|
|
1400
|
-
for (ed = 0; ed < 12; ed++) {
|
|
1401
|
-
prod.ea[ed] = ((a.ea[b.ea[ed] >> 1] ^ (b.ea[ed] & 1)) << 24) >> 24;
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
function getPermSymInv(idx, sym, isCorner) {
|
|
1406
|
-
$clinit_CubieCube();
|
|
1407
|
-
var idxi;
|
|
1408
|
-
idxi = PermInvEdgeSym[idx];
|
|
1409
|
-
isCorner && (idxi = idxi ^ (($intern_28 >> ((idxi & 15) << 1)) & 3));
|
|
1410
|
-
return (idxi & 65520) | SymMult[idxi & 15][sym];
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
function getSkipMoves() {
|
|
1414
|
-
$clinit_CubieCube();
|
|
1415
|
-
// var i, ret;
|
|
1416
|
-
// ret = 0;
|
|
1417
|
-
// for (i = 1; neq((ssym = shr(ssym, 1)), { l: 0, m: 0, h: 0 }); i++) {
|
|
1418
|
-
// eq(and(ssym, { l: 1, m: 0, h: 0 }), { l: 1, m: 0, h: 0 }) &&
|
|
1419
|
-
// (ret |= firstMoveSym[i]);
|
|
1420
|
-
// }
|
|
1421
|
-
return 0;
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
function initMove() {
|
|
1425
|
-
var a, p;
|
|
1426
|
-
moveCube[0] = new CubieCube_0(15120, 0, 119750400, 0);
|
|
1427
|
-
moveCube[3] = new CubieCube_0(21021, 1494, 323403417, 0);
|
|
1428
|
-
moveCube[6] = new CubieCube_0(8064, 1236, 29441808, 550);
|
|
1429
|
-
moveCube[9] = new CubieCube_0(9, 0, 5880, 0);
|
|
1430
|
-
moveCube[12] = new CubieCube_0(1230, 412, 2949660, 0);
|
|
1431
|
-
moveCube[15] = new CubieCube_0(224, 137, 328552, 137);
|
|
1432
|
-
for (a = 0; a < 18; a += 3) {
|
|
1433
|
-
for (p = 0; p < 2; p++) {
|
|
1434
|
-
moveCube[a + p + 1] = new CubieCube();
|
|
1435
|
-
EdgeMult(moveCube[a + p], moveCube[a], moveCube[a + p + 1]);
|
|
1436
|
-
CornMult(moveCube[a + p], moveCube[a], moveCube[a + p + 1]);
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
function initPermSym2Raw() {
|
|
1442
|
-
$clinit_CubieCube();
|
|
1443
|
-
var cc, i, i0;
|
|
1444
|
-
initSym2Raw(
|
|
1445
|
-
40320,
|
|
1446
|
-
EPermS2R,
|
|
1447
|
-
EPermR2S,
|
|
1448
|
-
(SymStatePerm = initDim(C_classLit, $intern_26, 0, 2768, 7, 1)),
|
|
1449
|
-
2,
|
|
1450
|
-
);
|
|
1451
|
-
cc = new CubieCube();
|
|
1452
|
-
for (i0 = 0; i0 < 2768; i0++) {
|
|
1453
|
-
$setEPerm(cc, EPermS2R[i0]);
|
|
1454
|
-
Perm2CombP[i0] =
|
|
1455
|
-
((getComb(cc.ea, 0, true) + getNParity(EPermS2R[i0], 8) * 70) << 24) >>
|
|
1456
|
-
24;
|
|
1457
|
-
$invCubieCube(cc);
|
|
1458
|
-
PermInvEdgeSym[i0] = EPermR2S[getNPerm(cc.ea, 8, true)];
|
|
1459
|
-
}
|
|
1460
|
-
for (i = 0; i < 24; i++) {
|
|
1461
|
-
setNPerm(cc.ea, i, 12, true);
|
|
1462
|
-
$invCubieCube(cc);
|
|
1463
|
-
MPermInv[i] = (getNPerm(cc.ea, 12, true) % 24 << 24) >> 24;
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
function initSym() {
|
|
1468
|
-
var c, d, f2, i, i0, i1, i2, j, j0, j1, k, lr2, m, s, t, u4;
|
|
1469
|
-
c = new CubieCube();
|
|
1470
|
-
d = new CubieCube();
|
|
1471
|
-
f2 = new CubieCube_0(28783, 0, 259268407, 0);
|
|
1472
|
-
u4 = new CubieCube_0(15138, 0, 119765538, 7);
|
|
1473
|
-
lr2 = new CubieCube_0(5167, 0, 83473207, 0);
|
|
1474
|
-
for (i0 = 0; i0 < 8; i0++) {
|
|
1475
|
-
lr2.ca[i0] = narrow_byte(lr2.ca[i0] | 24);
|
|
1476
|
-
}
|
|
1477
|
-
for (i1 = 0; i1 < 16; i1++) {
|
|
1478
|
-
CubeSym[i1] = new CubieCube_1(c);
|
|
1479
|
-
CornMultFull(c, u4, d);
|
|
1480
|
-
EdgeMult(c, u4, d);
|
|
1481
|
-
t = d;
|
|
1482
|
-
d = c;
|
|
1483
|
-
c = t;
|
|
1484
|
-
if (i1 % 4 == 3) {
|
|
1485
|
-
CornMultFull(t, lr2, d);
|
|
1486
|
-
EdgeMult(t, lr2, d);
|
|
1487
|
-
t = d;
|
|
1488
|
-
d = c;
|
|
1489
|
-
c = t;
|
|
1490
|
-
}
|
|
1491
|
-
if (i1 % 8 == 7) {
|
|
1492
|
-
CornMultFull(t, f2, d);
|
|
1493
|
-
EdgeMult(t, f2, d);
|
|
1494
|
-
t = d;
|
|
1495
|
-
d = c;
|
|
1496
|
-
c = t;
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
for (i2 = 0; i2 < 16; i2++) {
|
|
1500
|
-
for (j0 = 0; j0 < 16; j0++) {
|
|
1501
|
-
CornMultFull(CubeSym[i2], CubeSym[j0], c);
|
|
1502
|
-
for (k = 0; k < 16; k++) {
|
|
1503
|
-
if (equals_7(CubeSym[k].ca, c.ca)) {
|
|
1504
|
-
SymMult[i2][j0] = k;
|
|
1505
|
-
SymMultInv[k][j0] = i2;
|
|
1506
|
-
break;
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
for (j1 = 0; j1 < 18; j1++) {
|
|
1512
|
-
for (s = 0; s < 16; s++) {
|
|
1513
|
-
CornConjugate(moveCube[j1], SymMultInv[0][s], c);
|
|
1514
|
-
for (m = 0; m < 18; m++) {
|
|
1515
|
-
if (equals_7(moveCube[m].ca, c.ca)) {
|
|
1516
|
-
SymMove_0[s][j1] = m;
|
|
1517
|
-
SymMoveUD[s][($clinit_Util(), std2ud)[j1]] = std2ud[m];
|
|
1518
|
-
break;
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
s % 2 == 0 && (Sym8Move[(j1 << 3) | (s >> 1)] = SymMove_0[s][j1]);
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
for (i = 0; i < 18; i++) {
|
|
1525
|
-
moveCubeSym[i] = $selfSymmetry(moveCube[i]);
|
|
1526
|
-
j = i;
|
|
1527
|
-
for (s = 0; s < 48; s++) {
|
|
1528
|
-
SymMove_0[s % 16][j] < i && (firstMoveSym[s] |= 1 << i);
|
|
1529
|
-
s % 16 == 15 && (j = urfMove[2][j]);
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
function initSym2Raw(N_RAW, Sym2Raw, Raw2Sym, SymState, coord) {
|
|
1535
|
-
$clinit_CubieCube();
|
|
1536
|
-
var c, count, d, i, idx, isEdge, s, symIdx, sym_inc;
|
|
1537
|
-
c = new CubieCube();
|
|
1538
|
-
d = new CubieCube();
|
|
1539
|
-
count = 0;
|
|
1540
|
-
idx = 0;
|
|
1541
|
-
sym_inc = coord >= 2 ? 1 : 2;
|
|
1542
|
-
isEdge = coord != 1;
|
|
1543
|
-
for (i = 0; i < N_RAW; i++) {
|
|
1544
|
-
if (Raw2Sym[i] != 0) {
|
|
1545
|
-
continue;
|
|
1546
|
-
}
|
|
1547
|
-
switch (coord) {
|
|
1548
|
-
case 0:
|
|
1549
|
-
$setFlip(c, i);
|
|
1550
|
-
break;
|
|
1551
|
-
case 1:
|
|
1552
|
-
$setTwist(c, i);
|
|
1553
|
-
break;
|
|
1554
|
-
case 2:
|
|
1555
|
-
setNPerm(c.ea, i, 8, true);
|
|
1556
|
-
}
|
|
1557
|
-
for (s = 0; s < 16; s += sym_inc) {
|
|
1558
|
-
isEdge ? EdgeConjugate(c, s, d) : CornConjugate(c, s, d);
|
|
1559
|
-
switch (coord) {
|
|
1560
|
-
case 0:
|
|
1561
|
-
idx = $getFlip(d);
|
|
1562
|
-
break;
|
|
1563
|
-
case 1:
|
|
1564
|
-
idx = $getTwist(d);
|
|
1565
|
-
break;
|
|
1566
|
-
case 2:
|
|
1567
|
-
idx = getNPerm(d.ea, 8, true);
|
|
1568
|
-
}
|
|
1569
|
-
coord == 0 && (FlipS2RF[(count << 3) | (s >> 1)] = idx & $intern_20);
|
|
1570
|
-
idx == i &&
|
|
1571
|
-
(SymState[count] =
|
|
1572
|
-
(SymState[count] | (1 << ~~(s / sym_inc))) & $intern_20);
|
|
1573
|
-
symIdx = ~~(((count << 4) | s) / sym_inc);
|
|
1574
|
-
Raw2Sym[idx] = symIdx & $intern_20;
|
|
1575
|
-
}
|
|
1576
|
-
Sym2Raw[count++] = i & $intern_20;
|
|
1577
|
-
}
|
|
1578
|
-
return count;
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
var CubeSym,
|
|
1582
|
-
EPermR2S,
|
|
1583
|
-
EPermS2R,
|
|
1584
|
-
FlipR2S,
|
|
1585
|
-
FlipS2R,
|
|
1586
|
-
FlipS2RF,
|
|
1587
|
-
MPermInv,
|
|
1588
|
-
Perm2CombP,
|
|
1589
|
-
PermInvEdgeSym,
|
|
1590
|
-
Sym8Move,
|
|
1591
|
-
SymMove_0,
|
|
1592
|
-
SymMoveUD,
|
|
1593
|
-
SymMult,
|
|
1594
|
-
SymMultInv,
|
|
1595
|
-
SymStateFlip,
|
|
1596
|
-
SymStatePerm,
|
|
1597
|
-
SymStateTwist,
|
|
1598
|
-
TwistR2S,
|
|
1599
|
-
TwistS2R,
|
|
1600
|
-
firstMoveSym,
|
|
1601
|
-
moveCube,
|
|
1602
|
-
moveCubeSym,
|
|
1603
|
-
urf1,
|
|
1604
|
-
urf2,
|
|
1605
|
-
urfMove;
|
|
1606
|
-
var Lorg_cubing_min2phase_client_CubieCube_2_classLit = createForClass(
|
|
1607
|
-
"org.cubing.min2phase.client",
|
|
1608
|
-
"CubieCube",
|
|
1609
|
-
7,
|
|
1610
|
-
);
|
|
1611
|
-
|
|
1612
|
-
function $initPhase2(
|
|
1613
|
-
this$static,
|
|
1614
|
-
p2corn,
|
|
1615
|
-
p2csym,
|
|
1616
|
-
p2edge,
|
|
1617
|
-
p2esym,
|
|
1618
|
-
p2mid,
|
|
1619
|
-
edgei,
|
|
1620
|
-
corni,
|
|
1621
|
-
) {
|
|
1622
|
-
var depth2, i, i0, prun, ret;
|
|
1623
|
-
prun = max_0(
|
|
1624
|
-
getPruning(
|
|
1625
|
-
($clinit_CoordCube(), EPermCCombPPrun),
|
|
1626
|
-
(edgei >> 4) * 140 +
|
|
1627
|
-
CCombPConj[($clinit_CubieCube(), Perm2CombP)[corni >> 4] & 255][
|
|
1628
|
-
SymMultInv[edgei & 15][corni & 15]
|
|
1629
|
-
],
|
|
1630
|
-
),
|
|
1631
|
-
max_0(
|
|
1632
|
-
getPruning(
|
|
1633
|
-
EPermCCombPPrun,
|
|
1634
|
-
p2edge * 140 +
|
|
1635
|
-
CCombPConj[Perm2CombP[p2corn] & 255][SymMultInv[p2esym][p2csym]],
|
|
1636
|
-
),
|
|
1637
|
-
getPruning(MCPermPrun, p2corn * 24 + MPermConj[p2mid][p2csym]),
|
|
1638
|
-
),
|
|
1639
|
-
);
|
|
1640
|
-
if (prun > this$static.maxDep2) {
|
|
1641
|
-
return prun - this$static.maxDep2;
|
|
1642
|
-
}
|
|
1643
|
-
for (depth2 = this$static.maxDep2; depth2 >= prun; depth2--) {
|
|
1644
|
-
ret = $phase2(
|
|
1645
|
-
this$static,
|
|
1646
|
-
p2edge,
|
|
1647
|
-
p2esym,
|
|
1648
|
-
p2corn,
|
|
1649
|
-
p2csym,
|
|
1650
|
-
p2mid,
|
|
1651
|
-
depth2,
|
|
1652
|
-
this$static.depth1,
|
|
1653
|
-
10,
|
|
1654
|
-
);
|
|
1655
|
-
if (ret < 0) {
|
|
1656
|
-
break;
|
|
1657
|
-
}
|
|
1658
|
-
depth2 -= ret;
|
|
1659
|
-
this$static.solLen = 0;
|
|
1660
|
-
this$static.solution = new Util$Solution();
|
|
1661
|
-
$setArgs(
|
|
1662
|
-
this$static.solution,
|
|
1663
|
-
this$static.verbose,
|
|
1664
|
-
this$static.urfIdx,
|
|
1665
|
-
this$static.depth1,
|
|
1666
|
-
);
|
|
1667
|
-
for (i0 = 0; i0 < this$static.depth1 + depth2; i0++) {
|
|
1668
|
-
$appendSolMove(this$static.solution, this$static.move[i0]);
|
|
1669
|
-
}
|
|
1670
|
-
for (i = this$static.preMoveLen - 1; i >= 0; i--) {
|
|
1671
|
-
$appendSolMove(this$static.solution, this$static.preMoves[i]);
|
|
1672
|
-
}
|
|
1673
|
-
this$static.solLen = this$static.solution.length_0;
|
|
1674
|
-
}
|
|
1675
|
-
if (depth2 != this$static.maxDep2) {
|
|
1676
|
-
this$static.maxDep2 = min_0(
|
|
1677
|
-
MAX_DEPTH2,
|
|
1678
|
-
this$static.solLen - this$static.length1 - 1,
|
|
1679
|
-
);
|
|
1680
|
-
return gte(this$static.probe, this$static.probeMin) ? 0 : 1;
|
|
1681
|
-
}
|
|
1682
|
-
return 1;
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
function $initPhase2Pre(this$static) {
|
|
1686
|
-
var corni,
|
|
1687
|
-
edgei,
|
|
1688
|
-
i,
|
|
1689
|
-
lastMove,
|
|
1690
|
-
lastPre,
|
|
1691
|
-
m,
|
|
1692
|
-
p2corn,
|
|
1693
|
-
p2csym,
|
|
1694
|
-
p2edge,
|
|
1695
|
-
p2esym,
|
|
1696
|
-
p2mid,
|
|
1697
|
-
p2switch,
|
|
1698
|
-
p2switchMask,
|
|
1699
|
-
p2switchMax,
|
|
1700
|
-
ret;
|
|
1701
|
-
this$static.isRec = false;
|
|
1702
|
-
if (
|
|
1703
|
-
gte(
|
|
1704
|
-
this$static.probe,
|
|
1705
|
-
!this$static.solution ? this$static.probeMax : this$static.probeMin,
|
|
1706
|
-
)
|
|
1707
|
-
) {
|
|
1708
|
-
return 0;
|
|
1709
|
-
}
|
|
1710
|
-
this$static.probe = add_1(this$static.probe, { l: 1, m: 0, h: 0 });
|
|
1711
|
-
for (i = this$static.valid1; i < this$static.depth1; i++) {
|
|
1712
|
-
CornMult(
|
|
1713
|
-
this$static.phase1Cubie[i],
|
|
1714
|
-
($clinit_CubieCube(), moveCube)[this$static.move[i]],
|
|
1715
|
-
this$static.phase1Cubie[i + 1],
|
|
1716
|
-
);
|
|
1717
|
-
EdgeMult(
|
|
1718
|
-
this$static.phase1Cubie[i],
|
|
1719
|
-
moveCube[this$static.move[i]],
|
|
1720
|
-
this$static.phase1Cubie[i + 1],
|
|
1721
|
-
);
|
|
1722
|
-
}
|
|
1723
|
-
this$static.valid1 = this$static.depth1;
|
|
1724
|
-
p2corn = $getCPermSym(this$static.phase1Cubie[this$static.depth1]);
|
|
1725
|
-
p2csym = p2corn & 15;
|
|
1726
|
-
p2corn >>= 4;
|
|
1727
|
-
p2edge = $getEPermSym(this$static.phase1Cubie[this$static.depth1]);
|
|
1728
|
-
p2esym = p2edge & 15;
|
|
1729
|
-
p2edge >>= 4;
|
|
1730
|
-
p2mid =
|
|
1731
|
-
getNPerm(this$static.phase1Cubie[this$static.depth1].ea, 12, true) % 24;
|
|
1732
|
-
edgei = getPermSymInv(p2edge, p2esym, false);
|
|
1733
|
-
corni = getPermSymInv(p2corn, p2csym, true);
|
|
1734
|
-
lastMove =
|
|
1735
|
-
this$static.depth1 == 0 ? -1 : this$static.move[this$static.depth1 - 1];
|
|
1736
|
-
lastPre =
|
|
1737
|
-
this$static.preMoveLen == 0
|
|
1738
|
-
? -1
|
|
1739
|
-
: this$static.preMoves[this$static.preMoveLen - 1];
|
|
1740
|
-
ret = 0;
|
|
1741
|
-
p2switchMax =
|
|
1742
|
-
(this$static.preMoveLen == 0 ? 1 : 2) * (this$static.depth1 == 0 ? 1 : 2);
|
|
1743
|
-
for (
|
|
1744
|
-
p2switch = 0, p2switchMask = (1 << p2switchMax) - 1;
|
|
1745
|
-
p2switch < p2switchMax;
|
|
1746
|
-
p2switch++
|
|
1747
|
-
) {
|
|
1748
|
-
if (((p2switchMask >> p2switch) & 1) != 0) {
|
|
1749
|
-
p2switchMask &= ~(1 << p2switch);
|
|
1750
|
-
ret = $initPhase2(
|
|
1751
|
-
this$static,
|
|
1752
|
-
p2corn,
|
|
1753
|
-
p2csym,
|
|
1754
|
-
p2edge,
|
|
1755
|
-
p2esym,
|
|
1756
|
-
p2mid,
|
|
1757
|
-
edgei,
|
|
1758
|
-
corni,
|
|
1759
|
-
);
|
|
1760
|
-
if (ret == 0 || ret > 2) {
|
|
1761
|
-
break;
|
|
1762
|
-
} else ret == 2 && (p2switchMask &= 4 << p2switch);
|
|
1763
|
-
}
|
|
1764
|
-
if (p2switchMask == 0) {
|
|
1765
|
-
break;
|
|
1766
|
-
}
|
|
1767
|
-
if ((p2switch & 1) == 0 && this$static.depth1 > 0) {
|
|
1768
|
-
m = ($clinit_Util(), std2ud)[~~(lastMove / 3) * 3 + 1];
|
|
1769
|
-
this$static.move[this$static.depth1 - 1] =
|
|
1770
|
-
ud2std[m] * 2 - this$static.move[this$static.depth1 - 1];
|
|
1771
|
-
p2mid = ($clinit_CoordCube(), MPermMove)[p2mid][m];
|
|
1772
|
-
p2corn = CPermMove[p2corn][($clinit_CubieCube(), SymMoveUD)[p2csym][m]];
|
|
1773
|
-
p2csym = SymMult[p2corn & 15][p2csym];
|
|
1774
|
-
p2corn >>= 4;
|
|
1775
|
-
p2edge = EPermMove[p2edge][SymMoveUD[p2esym][m]];
|
|
1776
|
-
p2esym = SymMult[p2edge & 15][p2esym];
|
|
1777
|
-
p2edge >>= 4;
|
|
1778
|
-
corni = getPermSymInv(p2corn, p2csym, true);
|
|
1779
|
-
edgei = getPermSymInv(p2edge, p2esym, false);
|
|
1780
|
-
} else if (this$static.preMoveLen > 0) {
|
|
1781
|
-
m = ($clinit_Util(), std2ud)[~~(lastPre / 3) * 3 + 1];
|
|
1782
|
-
this$static.preMoves[this$static.preMoveLen - 1] =
|
|
1783
|
-
ud2std[m] * 2 - this$static.preMoves[this$static.preMoveLen - 1];
|
|
1784
|
-
p2mid = ($clinit_CubieCube(), MPermInv)[
|
|
1785
|
-
($clinit_CoordCube(), MPermMove)[MPermInv[p2mid]][m]
|
|
1786
|
-
];
|
|
1787
|
-
p2corn = CPermMove[corni >> 4][SymMoveUD[corni & 15][m]];
|
|
1788
|
-
corni = (p2corn & -16) | SymMult[p2corn & 15][corni & 15];
|
|
1789
|
-
p2corn = getPermSymInv(corni >> 4, corni & 15, true);
|
|
1790
|
-
p2csym = p2corn & 15;
|
|
1791
|
-
p2corn >>= 4;
|
|
1792
|
-
p2edge = EPermMove[edgei >> 4][SymMoveUD[edgei & 15][m]];
|
|
1793
|
-
edgei = (p2edge & -16) | SymMult[p2edge & 15][edgei & 15];
|
|
1794
|
-
p2edge = getPermSymInv(edgei >> 4, edgei & 15, false);
|
|
1795
|
-
p2esym = p2edge & 15;
|
|
1796
|
-
p2edge >>= 4;
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
this$static.depth1 > 0 &&
|
|
1800
|
-
(this$static.move[this$static.depth1 - 1] = lastMove);
|
|
1801
|
-
this$static.preMoveLen > 0 &&
|
|
1802
|
-
(this$static.preMoves[this$static.preMoveLen - 1] = lastPre);
|
|
1803
|
-
return ret == 0 ? 0 : 2;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
function $initSearch(this$static) {
|
|
1807
|
-
var i;
|
|
1808
|
-
this$static.conjMask = 0;
|
|
1809
|
-
this$static.selfSym = $selfSymmetry(this$static.cc);
|
|
1810
|
-
this$static.conjMask |= neq(
|
|
1811
|
-
and(shr(this$static.selfSym, 16), { l: $intern_20, m: 0, h: 0 }),
|
|
1812
|
-
{ l: 0, m: 0, h: 0 },
|
|
1813
|
-
)
|
|
1814
|
-
? 18
|
|
1815
|
-
: 0;
|
|
1816
|
-
this$static.conjMask |= neq(
|
|
1817
|
-
and(shr(this$static.selfSym, 32), { l: $intern_20, m: 0, h: 0 }),
|
|
1818
|
-
{ l: 0, m: 0, h: 0 },
|
|
1819
|
-
)
|
|
1820
|
-
? 36
|
|
1821
|
-
: 0;
|
|
1822
|
-
this$static.conjMask |= neq(
|
|
1823
|
-
and(shr(this$static.selfSym, 48), { l: $intern_20, m: 0, h: 0 }),
|
|
1824
|
-
{ l: 0, m: 0, h: 0 },
|
|
1825
|
-
)
|
|
1826
|
-
? 56
|
|
1827
|
-
: 0;
|
|
1828
|
-
this$static.selfSym = and(this$static.selfSym, {
|
|
1829
|
-
l: $intern_9,
|
|
1830
|
-
m: $intern_9,
|
|
1831
|
-
h: 15,
|
|
1832
|
-
});
|
|
1833
|
-
this$static.maxPreMoves = this$static.conjMask > 7 ? 0 : 20;
|
|
1834
|
-
for (i = 0; i < 6; i++) {
|
|
1835
|
-
$copy(this$static.urfCubieCube[i], this$static.cc);
|
|
1836
|
-
$setWithPrun(this$static.urfCoordCube[i], this$static.urfCubieCube[i], 20);
|
|
1837
|
-
$URFConjugate(this$static.cc);
|
|
1838
|
-
i % 3 == 2 && $invCubieCube(this$static.cc);
|
|
1839
|
-
}
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
function $phase1(this$static, node, ssym, maxl, lm) {
|
|
1843
|
-
var axis_0, m, power, prun, ret, skipMoves;
|
|
1844
|
-
if (node.prun == 0 && maxl < 5) {
|
|
1845
|
-
if (this$static.allowShorter || maxl == 0) {
|
|
1846
|
-
this$static.depth1 -= maxl;
|
|
1847
|
-
ret = $initPhase2Pre(this$static);
|
|
1848
|
-
this$static.depth1 += maxl;
|
|
1849
|
-
return ret;
|
|
1850
|
-
} else {
|
|
1851
|
-
return 1;
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
|
-
skipMoves = getSkipMoves(fromInt(ssym));
|
|
1855
|
-
for (axis_0 = 0; axis_0 < 18; axis_0 += 3) {
|
|
1856
|
-
if (axis_0 == lm || axis_0 == lm - 9) {
|
|
1857
|
-
continue;
|
|
1858
|
-
}
|
|
1859
|
-
for (power = 0; power < 3; power++) {
|
|
1860
|
-
m = axis_0 + power;
|
|
1861
|
-
if (
|
|
1862
|
-
(this$static.isRec &&
|
|
1863
|
-
m != this$static.move[this$static.depth1 - maxl]) ||
|
|
1864
|
-
(skipMoves != 0 && (skipMoves & (1 << m)) != 0)
|
|
1865
|
-
) {
|
|
1866
|
-
continue;
|
|
1867
|
-
}
|
|
1868
|
-
prun = $doMovePrun(this$static.nodeUD[maxl], node, m);
|
|
1869
|
-
if (prun > maxl) {
|
|
1870
|
-
break;
|
|
1871
|
-
} else if (prun == maxl) {
|
|
1872
|
-
continue;
|
|
1873
|
-
}
|
|
1874
|
-
prun = $doMovePrunConj(this$static.nodeUD[maxl], node, m);
|
|
1875
|
-
if (prun > maxl) {
|
|
1876
|
-
break;
|
|
1877
|
-
} else if (prun == maxl) {
|
|
1878
|
-
continue;
|
|
1879
|
-
}
|
|
1880
|
-
this$static.move[this$static.depth1 - maxl] = m;
|
|
1881
|
-
this$static.valid1 = min_0(this$static.valid1, this$static.depth1 - maxl);
|
|
1882
|
-
ret = $phase1(
|
|
1883
|
-
this$static,
|
|
1884
|
-
this$static.nodeUD[maxl],
|
|
1885
|
-
ssym & toInt(($clinit_CubieCube(), moveCubeSym)[m]),
|
|
1886
|
-
maxl - 1,
|
|
1887
|
-
axis_0,
|
|
1888
|
-
);
|
|
1889
|
-
if (ret == 0) {
|
|
1890
|
-
return 0;
|
|
1891
|
-
} else if (ret >= 2) {
|
|
1892
|
-
break;
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1896
|
-
return 1;
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
|
-
function $phase1PreMoves(this$static, maxl, lm, cc, ssym) {
|
|
1900
|
-
var m, ret, skipMoves;
|
|
1901
|
-
this$static.preMoveLen = this$static.maxPreMoves - maxl;
|
|
1902
|
-
if (
|
|
1903
|
-
this$static.isRec
|
|
1904
|
-
? this$static.depth1 == this$static.length1 - this$static.preMoveLen
|
|
1905
|
-
: this$static.preMoveLen == 0 || ((225207 >> lm) & 1) == 0
|
|
1906
|
-
) {
|
|
1907
|
-
this$static.depth1 = this$static.length1 - this$static.preMoveLen;
|
|
1908
|
-
this$static.phase1Cubie[0] = cc;
|
|
1909
|
-
this$static.allowShorter =
|
|
1910
|
-
this$static.depth1 == MIN_P1LENGTH_PRE && this$static.preMoveLen != 0;
|
|
1911
|
-
if (
|
|
1912
|
-
$setWithPrun(
|
|
1913
|
-
this$static.nodeUD[this$static.depth1 + 1],
|
|
1914
|
-
cc,
|
|
1915
|
-
this$static.depth1,
|
|
1916
|
-
) &&
|
|
1917
|
-
$phase1(
|
|
1918
|
-
this$static,
|
|
1919
|
-
this$static.nodeUD[this$static.depth1 + 1],
|
|
1920
|
-
ssym,
|
|
1921
|
-
this$static.depth1,
|
|
1922
|
-
-1,
|
|
1923
|
-
) == 0
|
|
1924
|
-
) {
|
|
1925
|
-
return 0;
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
if (
|
|
1929
|
-
maxl == 0 ||
|
|
1930
|
-
this$static.preMoveLen + MIN_P1LENGTH_PRE >= this$static.length1
|
|
1931
|
-
) {
|
|
1932
|
-
return 1;
|
|
1933
|
-
}
|
|
1934
|
-
skipMoves = getSkipMoves(fromInt(ssym));
|
|
1935
|
-
(maxl == 1 ||
|
|
1936
|
-
this$static.preMoveLen + 1 + MIN_P1LENGTH_PRE >= this$static.length1) &&
|
|
1937
|
-
(skipMoves |= 225207);
|
|
1938
|
-
lm = ~~(lm / 3) * 3;
|
|
1939
|
-
for (m = 0; m < 18; m++) {
|
|
1940
|
-
if (m == lm || m == lm - 9 || m == lm + 9) {
|
|
1941
|
-
m += 2;
|
|
1942
|
-
continue;
|
|
1943
|
-
}
|
|
1944
|
-
if (
|
|
1945
|
-
(this$static.isRec &&
|
|
1946
|
-
m != this$static.preMoves[this$static.maxPreMoves - maxl]) ||
|
|
1947
|
-
(skipMoves & (1 << m)) != 0
|
|
1948
|
-
) {
|
|
1949
|
-
continue;
|
|
1950
|
-
}
|
|
1951
|
-
CornMult(
|
|
1952
|
-
($clinit_CubieCube(), moveCube)[m],
|
|
1953
|
-
cc,
|
|
1954
|
-
this$static.preMoveCubes[maxl],
|
|
1955
|
-
);
|
|
1956
|
-
EdgeMult(moveCube[m], cc, this$static.preMoveCubes[maxl]);
|
|
1957
|
-
this$static.preMoves[this$static.maxPreMoves - maxl] = m;
|
|
1958
|
-
ret = $phase1PreMoves(
|
|
1959
|
-
this$static,
|
|
1960
|
-
maxl - 1,
|
|
1961
|
-
m,
|
|
1962
|
-
this$static.preMoveCubes[maxl],
|
|
1963
|
-
ssym & toInt(moveCubeSym[m]),
|
|
1964
|
-
);
|
|
1965
|
-
if (ret == 0) {
|
|
1966
|
-
return 0;
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
return 1;
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
function $phase2(this$static, edge, esym, corn, csym, mid, maxl, depth, lm) {
|
|
1973
|
-
var corni, cornx, csymx, edgei, edgex, esymx, m, midx, moveMask, prun, ret;
|
|
1974
|
-
if (edge == 0 && corn == 0 && mid == 0) {
|
|
1975
|
-
return maxl;
|
|
1976
|
-
}
|
|
1977
|
-
moveMask = ($clinit_Util(), ckmv2bit)[lm];
|
|
1978
|
-
for (m = 0; m < 10; m++) {
|
|
1979
|
-
if (((moveMask >> m) & 1) != 0) {
|
|
1980
|
-
m += (66 >> m) & 3;
|
|
1981
|
-
continue;
|
|
1982
|
-
}
|
|
1983
|
-
midx = ($clinit_CoordCube(), MPermMove)[mid][m];
|
|
1984
|
-
cornx = CPermMove[corn][($clinit_CubieCube(), SymMoveUD)[csym][m]];
|
|
1985
|
-
csymx = SymMult[cornx & 15][csym];
|
|
1986
|
-
cornx >>= 4;
|
|
1987
|
-
edgex = EPermMove[edge][SymMoveUD[esym][m]];
|
|
1988
|
-
esymx = SymMult[edgex & 15][esym];
|
|
1989
|
-
edgex >>= 4;
|
|
1990
|
-
edgei = getPermSymInv(edgex, esymx, false);
|
|
1991
|
-
corni = getPermSymInv(cornx, csymx, true);
|
|
1992
|
-
prun = getPruning(
|
|
1993
|
-
EPermCCombPPrun,
|
|
1994
|
-
(edgei >> 4) * 140 +
|
|
1995
|
-
CCombPConj[Perm2CombP[corni >> 4] & 255][
|
|
1996
|
-
SymMultInv[edgei & 15][corni & 15]
|
|
1997
|
-
],
|
|
1998
|
-
);
|
|
1999
|
-
if (prun > maxl + 1) {
|
|
2000
|
-
return maxl - prun + 1;
|
|
2001
|
-
} else if (prun >= maxl) {
|
|
2002
|
-
m += (66 >> m) & 3 & (maxl - prun);
|
|
2003
|
-
continue;
|
|
2004
|
-
}
|
|
2005
|
-
prun = max_0(
|
|
2006
|
-
getPruning(MCPermPrun, cornx * 24 + MPermConj[midx][csymx]),
|
|
2007
|
-
getPruning(
|
|
2008
|
-
EPermCCombPPrun,
|
|
2009
|
-
edgex * 140 +
|
|
2010
|
-
CCombPConj[Perm2CombP[cornx] & 255][SymMultInv[esymx][csymx]],
|
|
2011
|
-
),
|
|
2012
|
-
);
|
|
2013
|
-
if (prun >= maxl) {
|
|
2014
|
-
m += (66 >> m) & 3 & (maxl - prun);
|
|
2015
|
-
continue;
|
|
2016
|
-
}
|
|
2017
|
-
ret = $phase2(
|
|
2018
|
-
this$static,
|
|
2019
|
-
edgex,
|
|
2020
|
-
esymx,
|
|
2021
|
-
cornx,
|
|
2022
|
-
csymx,
|
|
2023
|
-
midx,
|
|
2024
|
-
maxl - 1,
|
|
2025
|
-
depth + 1,
|
|
2026
|
-
m,
|
|
2027
|
-
);
|
|
2028
|
-
if (ret >= 0) {
|
|
2029
|
-
this$static.move[depth] = ud2std[m];
|
|
2030
|
-
return ret;
|
|
2031
|
-
}
|
|
2032
|
-
if (ret < -2) {
|
|
2033
|
-
break;
|
|
2034
|
-
}
|
|
2035
|
-
ret < -1 && (m += (66 >> m) & 3);
|
|
2036
|
-
}
|
|
2037
|
-
return -1;
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2040
|
-
function $search(this$static) {
|
|
2041
|
-
for (
|
|
2042
|
-
this$static.length1 = this$static.isRec ? this$static.length1 : 0;
|
|
2043
|
-
this$static.length1 < this$static.solLen;
|
|
2044
|
-
this$static.length1++
|
|
2045
|
-
) {
|
|
2046
|
-
this$static.maxDep2 = min_0(
|
|
2047
|
-
MAX_DEPTH2,
|
|
2048
|
-
this$static.solLen - this$static.length1 - 1,
|
|
2049
|
-
);
|
|
2050
|
-
for (
|
|
2051
|
-
this$static.urfIdx = this$static.isRec ? this$static.urfIdx : 0;
|
|
2052
|
-
this$static.urfIdx < 6;
|
|
2053
|
-
this$static.urfIdx++
|
|
2054
|
-
) {
|
|
2055
|
-
if ((this$static.conjMask & (1 << this$static.urfIdx)) != 0) {
|
|
2056
|
-
continue;
|
|
2057
|
-
}
|
|
2058
|
-
if (
|
|
2059
|
-
$phase1PreMoves(
|
|
2060
|
-
this$static,
|
|
2061
|
-
this$static.maxPreMoves,
|
|
2062
|
-
-30,
|
|
2063
|
-
this$static.urfCubieCube[this$static.urfIdx],
|
|
2064
|
-
toInt(and(this$static.selfSym, { l: $intern_20, m: 0, h: 0 })),
|
|
2065
|
-
) == 0
|
|
2066
|
-
) {
|
|
2067
|
-
return !this$static.solution
|
|
2068
|
-
? "Error 8"
|
|
2069
|
-
: $toString_2(this$static.solution);
|
|
2070
|
-
}
|
|
2071
|
-
}
|
|
2072
|
-
}
|
|
2073
|
-
return !this$static.solution ? "Error 7" : $toString_2(this$static.solution);
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
function $solution(this$static, facelets) {
|
|
2077
|
-
var check;
|
|
2078
|
-
check = $verify_0(this$static, facelets);
|
|
2079
|
-
if (check != 0) {
|
|
2080
|
-
return "Error " + (check < 0 ? -check : check);
|
|
2081
|
-
}
|
|
2082
|
-
this$static.solLen = 22;
|
|
2083
|
-
this$static.probe = { l: 0, m: 0, h: 0 };
|
|
2084
|
-
this$static.probeMax = { l: 3531008, m: 23, h: 0 };
|
|
2085
|
-
this$static.probeMin = { l: 0, m: 0, h: 0 };
|
|
2086
|
-
this$static.verbose = 0;
|
|
2087
|
-
this$static.solution = null;
|
|
2088
|
-
this$static.isRec = false;
|
|
2089
|
-
init_0(false);
|
|
2090
|
-
$initSearch(this$static);
|
|
2091
|
-
return $search(this$static);
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
function $verify_0(this$static, facelets) {
|
|
2095
|
-
var center, count, f, i;
|
|
2096
|
-
count = 0;
|
|
2097
|
-
f = initDim(B_classLit, $intern_30, 0, 54, 7, 1);
|
|
2098
|
-
// try {
|
|
2099
|
-
center = _String(
|
|
2100
|
-
initValues(getClassLiteralForArray(C_classLit, 1), $intern_26, 0, 7, [
|
|
2101
|
-
facelets.charCodeAt(4),
|
|
2102
|
-
facelets.charCodeAt(13),
|
|
2103
|
-
facelets.charCodeAt(22),
|
|
2104
|
-
facelets.charCodeAt(31),
|
|
2105
|
-
facelets.charCodeAt(40),
|
|
2106
|
-
facelets.charCodeAt(49),
|
|
2107
|
-
]),
|
|
2108
|
-
);
|
|
2109
|
-
for (i = 0; i < 54; i++) {
|
|
2110
|
-
f[i] =
|
|
2111
|
-
($indexOf_0(center, fromCodePoint(facelets.charCodeAt(i))) << 24) >> 24;
|
|
2112
|
-
if (f[i] == -1) {
|
|
2113
|
-
return -1;
|
|
2114
|
-
}
|
|
2115
|
-
count += 1 << (f[i] << 2);
|
|
2116
|
-
}
|
|
2117
|
-
// } catch ($e0) {
|
|
2118
|
-
// $e0 = wrap($e0);
|
|
2119
|
-
// if (instanceOf($e0, 9)) {
|
|
2120
|
-
// return -1;
|
|
2121
|
-
// } else throw unwrap($e0);
|
|
2122
|
-
// }
|
|
2123
|
-
if (count != 10066329) {
|
|
2124
|
-
return -1;
|
|
2125
|
-
}
|
|
2126
|
-
toCubieCube(f, this$static.cc);
|
|
2127
|
-
return $verify(this$static.cc);
|
|
2128
|
-
}
|
|
2129
|
-
|
|
2130
|
-
function Search() {
|
|
2131
|
-
var i, i0, i1;
|
|
2132
|
-
this.move = initDim(I_classLit, $intern_27, 0, 31, 7, 1);
|
|
2133
|
-
this.nodeUD = initDim(
|
|
2134
|
-
Lorg_cubing_min2phase_client_CoordCube_2_classLit,
|
|
2135
|
-
$intern_3,
|
|
2136
|
-
31,
|
|
2137
|
-
21,
|
|
2138
|
-
0,
|
|
2139
|
-
1,
|
|
2140
|
-
);
|
|
2141
|
-
this.nodeRL = initDim(
|
|
2142
|
-
Lorg_cubing_min2phase_client_CoordCube_2_classLit,
|
|
2143
|
-
$intern_3,
|
|
2144
|
-
31,
|
|
2145
|
-
21,
|
|
2146
|
-
0,
|
|
2147
|
-
1,
|
|
2148
|
-
);
|
|
2149
|
-
this.nodeFB = initDim(
|
|
2150
|
-
Lorg_cubing_min2phase_client_CoordCube_2_classLit,
|
|
2151
|
-
$intern_3,
|
|
2152
|
-
31,
|
|
2153
|
-
21,
|
|
2154
|
-
0,
|
|
2155
|
-
1,
|
|
2156
|
-
);
|
|
2157
|
-
this.cc = new CubieCube();
|
|
2158
|
-
this.urfCubieCube = initDim(
|
|
2159
|
-
Lorg_cubing_min2phase_client_CubieCube_2_classLit,
|
|
2160
|
-
$intern_3,
|
|
2161
|
-
7,
|
|
2162
|
-
6,
|
|
2163
|
-
0,
|
|
2164
|
-
1,
|
|
2165
|
-
);
|
|
2166
|
-
this.urfCoordCube = initDim(
|
|
2167
|
-
Lorg_cubing_min2phase_client_CoordCube_2_classLit,
|
|
2168
|
-
$intern_3,
|
|
2169
|
-
31,
|
|
2170
|
-
6,
|
|
2171
|
-
0,
|
|
2172
|
-
1,
|
|
2173
|
-
);
|
|
2174
|
-
this.phase1Cubie = initDim(
|
|
2175
|
-
Lorg_cubing_min2phase_client_CubieCube_2_classLit,
|
|
2176
|
-
$intern_3,
|
|
2177
|
-
7,
|
|
2178
|
-
21,
|
|
2179
|
-
0,
|
|
2180
|
-
1,
|
|
2181
|
-
);
|
|
2182
|
-
this.preMoveCubes = initDim(
|
|
2183
|
-
Lorg_cubing_min2phase_client_CubieCube_2_classLit,
|
|
2184
|
-
$intern_3,
|
|
2185
|
-
7,
|
|
2186
|
-
21,
|
|
2187
|
-
0,
|
|
2188
|
-
1,
|
|
2189
|
-
);
|
|
2190
|
-
this.preMoves = initDim(I_classLit, $intern_27, 0, 20, 7, 1);
|
|
2191
|
-
for (i0 = 0; i0 < 21; i0++) {
|
|
2192
|
-
this.nodeUD[i0] = new CoordCube();
|
|
2193
|
-
this.nodeRL[i0] = new CoordCube();
|
|
2194
|
-
this.nodeFB[i0] = new CoordCube();
|
|
2195
|
-
this.phase1Cubie[i0] = new CubieCube();
|
|
2196
|
-
}
|
|
2197
|
-
for (i1 = 0; i1 < 6; i1++) {
|
|
2198
|
-
this.urfCubieCube[i1] = new CubieCube();
|
|
2199
|
-
this.urfCoordCube[i1] = new CoordCube();
|
|
2200
|
-
}
|
|
2201
|
-
for (i = 0; i < 20; i++) {
|
|
2202
|
-
this.preMoveCubes[i + 1] = new CubieCube();
|
|
2203
|
-
}
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
|
-
defineClass(72, 1, {}, Search);
|
|
2207
|
-
_.allowShorter = false;
|
|
2208
|
-
_.conjMask = 0;
|
|
2209
|
-
_.depth1 = 0;
|
|
2210
|
-
_.isRec = false;
|
|
2211
|
-
_.length1 = 0;
|
|
2212
|
-
_.maxDep2 = 0;
|
|
2213
|
-
_.maxPreMoves = 0;
|
|
2214
|
-
_.preMoveLen = 0;
|
|
2215
|
-
_.probe = { l: 0, m: 0, h: 0 };
|
|
2216
|
-
_.probeMax = { l: 0, m: 0, h: 0 };
|
|
2217
|
-
_.probeMin = { l: 0, m: 0, h: 0 };
|
|
2218
|
-
_.selfSym = { l: 0, m: 0, h: 0 };
|
|
2219
|
-
_.solLen = 0;
|
|
2220
|
-
_.urfIdx = 0;
|
|
2221
|
-
_.valid1 = 0;
|
|
2222
|
-
_.verbose = 0;
|
|
2223
|
-
var MAX_DEPTH2 = 12,
|
|
2224
|
-
MIN_P1LENGTH_PRE = 7;
|
|
2225
|
-
let $clinit_Util_ran = false;
|
|
2226
|
-
function $clinit_Util() {
|
|
2227
|
-
if ($clinit_Util_ran) {
|
|
2228
|
-
return;
|
|
2229
|
-
}
|
|
2230
|
-
$clinit_Util_ran = true;
|
|
2231
|
-
var i, i0, i1, ix, j, jx;
|
|
2232
|
-
cornerFacelet = initValues(
|
|
2233
|
-
getClassLiteralForArray(B_classLit, 2),
|
|
2234
|
-
$intern_3,
|
|
2235
|
-
10,
|
|
2236
|
-
0,
|
|
2237
|
-
[
|
|
2238
|
-
initValues(
|
|
2239
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2240
|
-
$intern_30,
|
|
2241
|
-
0,
|
|
2242
|
-
7,
|
|
2243
|
-
[8, 9, 20],
|
|
2244
|
-
),
|
|
2245
|
-
initValues(
|
|
2246
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2247
|
-
$intern_30,
|
|
2248
|
-
0,
|
|
2249
|
-
7,
|
|
2250
|
-
[6, 18, 38],
|
|
2251
|
-
),
|
|
2252
|
-
initValues(
|
|
2253
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2254
|
-
$intern_30,
|
|
2255
|
-
0,
|
|
2256
|
-
7,
|
|
2257
|
-
[0, 36, 47],
|
|
2258
|
-
),
|
|
2259
|
-
initValues(
|
|
2260
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2261
|
-
$intern_30,
|
|
2262
|
-
0,
|
|
2263
|
-
7,
|
|
2264
|
-
[2, 45, 11],
|
|
2265
|
-
),
|
|
2266
|
-
initValues(
|
|
2267
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2268
|
-
$intern_30,
|
|
2269
|
-
0,
|
|
2270
|
-
7,
|
|
2271
|
-
[29, 26, 15],
|
|
2272
|
-
),
|
|
2273
|
-
initValues(
|
|
2274
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2275
|
-
$intern_30,
|
|
2276
|
-
0,
|
|
2277
|
-
7,
|
|
2278
|
-
[27, 44, 24],
|
|
2279
|
-
),
|
|
2280
|
-
initValues(
|
|
2281
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2282
|
-
$intern_30,
|
|
2283
|
-
0,
|
|
2284
|
-
7,
|
|
2285
|
-
[33, 53, 42],
|
|
2286
|
-
),
|
|
2287
|
-
initValues(
|
|
2288
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2289
|
-
$intern_30,
|
|
2290
|
-
0,
|
|
2291
|
-
7,
|
|
2292
|
-
[35, 17, 51],
|
|
2293
|
-
),
|
|
2294
|
-
],
|
|
2295
|
-
);
|
|
2296
|
-
edgeFacelet = initValues(
|
|
2297
|
-
getClassLiteralForArray(B_classLit, 2),
|
|
2298
|
-
$intern_3,
|
|
2299
|
-
10,
|
|
2300
|
-
0,
|
|
2301
|
-
[
|
|
2302
|
-
initValues(
|
|
2303
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2304
|
-
$intern_30,
|
|
2305
|
-
0,
|
|
2306
|
-
7,
|
|
2307
|
-
[5, 10],
|
|
2308
|
-
),
|
|
2309
|
-
initValues(
|
|
2310
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2311
|
-
$intern_30,
|
|
2312
|
-
0,
|
|
2313
|
-
7,
|
|
2314
|
-
[7, 19],
|
|
2315
|
-
),
|
|
2316
|
-
initValues(
|
|
2317
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2318
|
-
$intern_30,
|
|
2319
|
-
0,
|
|
2320
|
-
7,
|
|
2321
|
-
[3, 37],
|
|
2322
|
-
),
|
|
2323
|
-
initValues(
|
|
2324
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2325
|
-
$intern_30,
|
|
2326
|
-
0,
|
|
2327
|
-
7,
|
|
2328
|
-
[1, 46],
|
|
2329
|
-
),
|
|
2330
|
-
initValues(
|
|
2331
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2332
|
-
$intern_30,
|
|
2333
|
-
0,
|
|
2334
|
-
7,
|
|
2335
|
-
[32, 16],
|
|
2336
|
-
),
|
|
2337
|
-
initValues(
|
|
2338
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2339
|
-
$intern_30,
|
|
2340
|
-
0,
|
|
2341
|
-
7,
|
|
2342
|
-
[28, 25],
|
|
2343
|
-
),
|
|
2344
|
-
initValues(
|
|
2345
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2346
|
-
$intern_30,
|
|
2347
|
-
0,
|
|
2348
|
-
7,
|
|
2349
|
-
[30, 43],
|
|
2350
|
-
),
|
|
2351
|
-
initValues(
|
|
2352
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2353
|
-
$intern_30,
|
|
2354
|
-
0,
|
|
2355
|
-
7,
|
|
2356
|
-
[34, 52],
|
|
2357
|
-
),
|
|
2358
|
-
initValues(
|
|
2359
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2360
|
-
$intern_30,
|
|
2361
|
-
0,
|
|
2362
|
-
7,
|
|
2363
|
-
[23, 12],
|
|
2364
|
-
),
|
|
2365
|
-
initValues(
|
|
2366
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2367
|
-
$intern_30,
|
|
2368
|
-
0,
|
|
2369
|
-
7,
|
|
2370
|
-
[21, 41],
|
|
2371
|
-
),
|
|
2372
|
-
initValues(
|
|
2373
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2374
|
-
$intern_30,
|
|
2375
|
-
0,
|
|
2376
|
-
7,
|
|
2377
|
-
[50, 39],
|
|
2378
|
-
),
|
|
2379
|
-
initValues(
|
|
2380
|
-
getClassLiteralForArray(B_classLit, 1),
|
|
2381
|
-
$intern_30,
|
|
2382
|
-
0,
|
|
2383
|
-
7,
|
|
2384
|
-
[48, 14],
|
|
2385
|
-
),
|
|
2386
|
-
],
|
|
2387
|
-
);
|
|
2388
|
-
Cnk = initDims(I_classLit, [$intern_3, $intern_27], [17, 0], 7, [13, 13], 2);
|
|
2389
|
-
move2str = initValues(
|
|
2390
|
-
getClassLiteralForArray(Ljava_lang_String_2_classLit, 1),
|
|
2391
|
-
$intern_3,
|
|
2392
|
-
2,
|
|
2393
|
-
4,
|
|
2394
|
-
[
|
|
2395
|
-
"U ",
|
|
2396
|
-
"U2",
|
|
2397
|
-
"U'",
|
|
2398
|
-
"R ",
|
|
2399
|
-
"R2",
|
|
2400
|
-
"R'",
|
|
2401
|
-
"F ",
|
|
2402
|
-
"F2",
|
|
2403
|
-
"F'",
|
|
2404
|
-
"D ",
|
|
2405
|
-
"D2",
|
|
2406
|
-
"D'",
|
|
2407
|
-
"L ",
|
|
2408
|
-
"L2",
|
|
2409
|
-
"L'",
|
|
2410
|
-
"B ",
|
|
2411
|
-
"B2",
|
|
2412
|
-
"B'",
|
|
2413
|
-
],
|
|
2414
|
-
);
|
|
2415
|
-
ud2std = initValues(
|
|
2416
|
-
getClassLiteralForArray(I_classLit, 1),
|
|
2417
|
-
$intern_27,
|
|
2418
|
-
0,
|
|
2419
|
-
7,
|
|
2420
|
-
[0, 1, 2, 4, 7, 9, 10, 11, 13, 16, 3, 5, 6, 8, 12, 14, 15, 17],
|
|
2421
|
-
);
|
|
2422
|
-
std2ud = initDim(I_classLit, $intern_27, 0, 18, 7, 1);
|
|
2423
|
-
ckmv2bit = initDim(I_classLit, $intern_27, 0, 11, 7, 1);
|
|
2424
|
-
for (i0 = 0; i0 < 18; i0++) {
|
|
2425
|
-
std2ud[ud2std[i0]] = i0;
|
|
2426
|
-
}
|
|
2427
|
-
for (i1 = 0; i1 < 10; i1++) {
|
|
2428
|
-
ix = ~~(ud2std[i1] / 3);
|
|
2429
|
-
ckmv2bit[i1] = 0;
|
|
2430
|
-
for (j = 0; j < 10; j++) {
|
|
2431
|
-
jx = ~~(ud2std[j] / 3);
|
|
2432
|
-
ckmv2bit[i1] |= (ix == jx || (ix % 3 == jx % 3 && ix >= jx) ? 1 : 0) << j;
|
|
2433
|
-
}
|
|
2434
|
-
}
|
|
2435
|
-
ckmv2bit[10] = 0;
|
|
2436
|
-
for (i = 0; i < 13; i++) {
|
|
2437
|
-
Cnk[i][0] = Cnk[i][i] = 1;
|
|
2438
|
-
for (j = 1; j < i; j++) {
|
|
2439
|
-
Cnk[i][j] = Cnk[i - 1][j - 1] + Cnk[i - 1][j];
|
|
2440
|
-
}
|
|
2441
|
-
}
|
|
2442
|
-
}
|
|
2443
|
-
|
|
2444
|
-
function getComb(arr, mask, isEdge) {
|
|
2445
|
-
$clinit_Util();
|
|
2446
|
-
var end, i, idxC, perm, r;
|
|
2447
|
-
end = arr.length - 1;
|
|
2448
|
-
idxC = 0;
|
|
2449
|
-
r = 4;
|
|
2450
|
-
for (i = end; i >= 0; i--) {
|
|
2451
|
-
perm = getVal(arr[i], isEdge);
|
|
2452
|
-
(perm & 12) == mask && (idxC += Cnk[i][r--]);
|
|
2453
|
-
}
|
|
2454
|
-
return idxC;
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
function getNParity(idx, n) {
|
|
2458
|
-
$clinit_Util();
|
|
2459
|
-
var i, p;
|
|
2460
|
-
p = 0;
|
|
2461
|
-
for (i = n - 2; i >= 0; i--) {
|
|
2462
|
-
p ^= idx % (n - i);
|
|
2463
|
-
idx = ~~(idx / (n - i));
|
|
2464
|
-
}
|
|
2465
|
-
return p & 1;
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
function getNPerm(arr, n, isEdge) {
|
|
2469
|
-
$clinit_Util();
|
|
2470
|
-
var i, idx, v, val;
|
|
2471
|
-
idx = 0;
|
|
2472
|
-
val = { l: 1323536, m: 2777561, h: 1043915 };
|
|
2473
|
-
for (i = 0; i < n - 1; i++) {
|
|
2474
|
-
v = getVal(arr[i], isEdge) << 2;
|
|
2475
|
-
idx = (n - i) * idx + toInt(and(shr(val, v), { l: 15, m: 0, h: 0 }));
|
|
2476
|
-
val = sub_0(val, shl({ l: 1118480, m: 279620, h: 69905 }, v));
|
|
2477
|
-
}
|
|
2478
|
-
return idx;
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
-
function getVal(val0, isEdge) {
|
|
2482
|
-
return isEdge ? val0 >> 1 : val0 & 7;
|
|
2483
|
-
}
|
|
2484
|
-
|
|
2485
|
-
function setComb(arr, idxC, mask, isEdge) {
|
|
2486
|
-
$clinit_Util();
|
|
2487
|
-
var end, fill, i, r;
|
|
2488
|
-
end = arr.length - 1;
|
|
2489
|
-
r = 4;
|
|
2490
|
-
fill = end;
|
|
2491
|
-
for (i = end; i >= 0; i--) {
|
|
2492
|
-
if (idxC >= Cnk[i][r]) {
|
|
2493
|
-
idxC -= Cnk[i][r--];
|
|
2494
|
-
arr[i] = setVal(arr[i], r | mask, isEdge);
|
|
2495
|
-
} else {
|
|
2496
|
-
(fill & 12) == mask && (fill -= 4);
|
|
2497
|
-
arr[i] = setVal(arr[i], fill--, isEdge);
|
|
2498
|
-
}
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
function setNPerm(arr, idx, n, isEdge) {
|
|
2503
|
-
$clinit_Util();
|
|
2504
|
-
var extract, i, m, p, v, val;
|
|
2505
|
-
val = { l: 1323536, m: 2777561, h: 1043915 };
|
|
2506
|
-
extract = { l: 0, m: 0, h: 0 };
|
|
2507
|
-
for (p = 2; p <= n; p++) {
|
|
2508
|
-
extract = or(shl(extract, 4), fromInt(idx % p));
|
|
2509
|
-
idx = ~~(idx / p);
|
|
2510
|
-
}
|
|
2511
|
-
for (i = 0; i < n - 1; i++) {
|
|
2512
|
-
v = (toInt(extract) & 15) << 2;
|
|
2513
|
-
extract = shr(extract, 4);
|
|
2514
|
-
arr[i] = setVal(
|
|
2515
|
-
arr[i],
|
|
2516
|
-
toInt(and(shr(val, v), { l: 15, m: 0, h: 0 })),
|
|
2517
|
-
isEdge,
|
|
2518
|
-
);
|
|
2519
|
-
m = sub_0(shl({ l: 1, m: 0, h: 0 }, v), { l: 1, m: 0, h: 0 });
|
|
2520
|
-
val = or(
|
|
2521
|
-
and(val, m),
|
|
2522
|
-
and(shr(val, 4), {
|
|
2523
|
-
l: ~m.l & $intern_9,
|
|
2524
|
-
m: ~m.m & $intern_9,
|
|
2525
|
-
h: ~m.h & $intern_10,
|
|
2526
|
-
}),
|
|
2527
|
-
);
|
|
2528
|
-
}
|
|
2529
|
-
arr[n - 1] = setVal(
|
|
2530
|
-
arr[n - 1],
|
|
2531
|
-
toInt(and(val, { l: 15, m: 0, h: 0 })),
|
|
2532
|
-
isEdge,
|
|
2533
|
-
);
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
function setVal(val0, val, isEdge) {
|
|
2537
|
-
return ((isEdge ? (val << 1) | (val0 & 1) : val | (val0 & -8)) << 24) >> 24;
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
function toCubieCube(f, ccRet) {
|
|
2541
|
-
$clinit_Util();
|
|
2542
|
-
var col1, col2, i, i0, i1, i2, j, ori;
|
|
2543
|
-
for (i0 = 0; i0 < 8; i0++) {
|
|
2544
|
-
ccRet.ca[i0] = 0;
|
|
2545
|
-
}
|
|
2546
|
-
for (i1 = 0; i1 < 12; i1++) {
|
|
2547
|
-
ccRet.ea[i1] = 0;
|
|
2548
|
-
}
|
|
2549
|
-
for (i2 = 0; i2 < 8; i2++) {
|
|
2550
|
-
for (ori = 0; ori < 3; ori++) {
|
|
2551
|
-
if (f[cornerFacelet[i2][ori]] == 0 || f[cornerFacelet[i2][ori]] == 3)
|
|
2552
|
-
break;
|
|
2553
|
-
}
|
|
2554
|
-
col1 = f[cornerFacelet[i2][(ori + 1) % 3]];
|
|
2555
|
-
col2 = f[cornerFacelet[i2][(ori + 2) % 3]];
|
|
2556
|
-
for (j = 0; j < 8; j++) {
|
|
2557
|
-
if (
|
|
2558
|
-
col1 == ~~(cornerFacelet[j][1] / 9) &&
|
|
2559
|
-
col2 == ~~(cornerFacelet[j][2] / 9)
|
|
2560
|
-
) {
|
|
2561
|
-
ccRet.ca[i2] = narrow_byte((ori % 3 << 3) | j);
|
|
2562
|
-
break;
|
|
2563
|
-
}
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
for (i = 0; i < 12; i++) {
|
|
2567
|
-
for (j = 0; j < 12; j++) {
|
|
2568
|
-
if (
|
|
2569
|
-
f[edgeFacelet[i][0]] == ~~(edgeFacelet[j][0] / 9) &&
|
|
2570
|
-
f[edgeFacelet[i][1]] == ~~(edgeFacelet[j][1] / 9)
|
|
2571
|
-
) {
|
|
2572
|
-
ccRet.ea[i] = narrow_byte(j << 1);
|
|
2573
|
-
break;
|
|
2574
|
-
}
|
|
2575
|
-
if (
|
|
2576
|
-
f[edgeFacelet[i][0]] == ~~(edgeFacelet[j][1] / 9) &&
|
|
2577
|
-
f[edgeFacelet[i][1]] == ~~(edgeFacelet[j][0] / 9)
|
|
2578
|
-
) {
|
|
2579
|
-
ccRet.ea[i] = narrow_byte((j << 1) | 1);
|
|
2580
|
-
break;
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
|
|
2586
|
-
var Cnk, ckmv2bit, cornerFacelet, edgeFacelet, move2str, std2ud, ud2std;
|
|
2587
|
-
function $appendSolMove(this$static, curMove) {
|
|
2588
|
-
var axisCur, axisLast, pow_0;
|
|
2589
|
-
if (this$static.length_0 == 0) {
|
|
2590
|
-
this$static.moves[this$static.length_0++] = curMove;
|
|
2591
|
-
return;
|
|
2592
|
-
}
|
|
2593
|
-
axisCur = ~~(curMove / 3);
|
|
2594
|
-
axisLast = ~~(this$static.moves[this$static.length_0 - 1] / 3);
|
|
2595
|
-
if (axisCur == axisLast) {
|
|
2596
|
-
pow_0 =
|
|
2597
|
-
((curMove % 3) + (this$static.moves[this$static.length_0 - 1] % 3) + 1) %
|
|
2598
|
-
4;
|
|
2599
|
-
pow_0 == 3
|
|
2600
|
-
? --this$static.length_0
|
|
2601
|
-
: (this$static.moves[this$static.length_0 - 1] = axisCur * 3 + pow_0);
|
|
2602
|
-
return;
|
|
2603
|
-
}
|
|
2604
|
-
if (
|
|
2605
|
-
this$static.length_0 > 1 &&
|
|
2606
|
-
axisCur % 3 == axisLast % 3 &&
|
|
2607
|
-
axisCur == ~~(this$static.moves[this$static.length_0 - 2] / 3)
|
|
2608
|
-
) {
|
|
2609
|
-
pow_0 =
|
|
2610
|
-
((curMove % 3) + (this$static.moves[this$static.length_0 - 2] % 3) + 1) %
|
|
2611
|
-
4;
|
|
2612
|
-
if (pow_0 == 3) {
|
|
2613
|
-
this$static.moves[this$static.length_0 - 2] =
|
|
2614
|
-
this$static.moves[this$static.length_0 - 1];
|
|
2615
|
-
--this$static.length_0;
|
|
2616
|
-
} else {
|
|
2617
|
-
this$static.moves[this$static.length_0 - 2] = axisCur * 3 + pow_0;
|
|
2618
|
-
}
|
|
2619
|
-
return;
|
|
2620
|
-
}
|
|
2621
|
-
this$static.moves[this$static.length_0++] = curMove;
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
function $setArgs(this$static, verbose, urfIdx, depth1) {
|
|
2625
|
-
this$static.verbose = verbose;
|
|
2626
|
-
this$static.urfIdx = urfIdx;
|
|
2627
|
-
this$static.depth1 = depth1;
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
function $toString_2(this$static) {
|
|
2631
|
-
var s, sb, urf;
|
|
2632
|
-
sb = new StringBuffer();
|
|
2633
|
-
urf =
|
|
2634
|
-
(this$static.verbose & 2) != 0
|
|
2635
|
-
? (this$static.urfIdx + 3) % 6
|
|
2636
|
-
: this$static.urfIdx;
|
|
2637
|
-
if (urf < 3) {
|
|
2638
|
-
for (s = 0; s < this$static.length_0; s++) {
|
|
2639
|
-
(this$static.verbose & 1) != 0 &&
|
|
2640
|
-
s == this$static.depth1 &&
|
|
2641
|
-
((sb.string += ". "), sb);
|
|
2642
|
-
$append(
|
|
2643
|
-
$append_1(
|
|
2644
|
-
sb,
|
|
2645
|
-
($clinit_Util(), move2str)[
|
|
2646
|
-
($clinit_CubieCube(), urfMove)[urf][this$static.moves[s]]
|
|
2647
|
-
],
|
|
2648
|
-
),
|
|
2649
|
-
);
|
|
2650
|
-
}
|
|
2651
|
-
} else {
|
|
2652
|
-
for (s = this$static.length_0 - 1; s >= 0; s--) {
|
|
2653
|
-
$append(
|
|
2654
|
-
$append_1(
|
|
2655
|
-
sb,
|
|
2656
|
-
($clinit_Util(), move2str)[
|
|
2657
|
-
($clinit_CubieCube(), urfMove)[urf][this$static.moves[s]]
|
|
2658
|
-
],
|
|
2659
|
-
),
|
|
2660
|
-
);
|
|
2661
|
-
(this$static.verbose & 1) != 0 &&
|
|
2662
|
-
s == this$static.depth1 &&
|
|
2663
|
-
((sb.string += ". "), sb);
|
|
2664
|
-
}
|
|
2665
|
-
}
|
|
2666
|
-
return sb.string;
|
|
2667
|
-
}
|
|
2668
|
-
|
|
2669
|
-
function Util$Solution() {
|
|
2670
|
-
this.moves = initDim(I_classLit, $intern_27, 0, 31, 7, 1);
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
defineClass(150, 1, {}, Util$Solution);
|
|
2674
|
-
_.depth1 = 0;
|
|
2675
|
-
_.length_0 = 0;
|
|
2676
|
-
_.urfIdx = 0;
|
|
2677
|
-
_.verbose = 0;
|
|
2678
|
-
var I_classLit = createForPrimitive("int", "I");
|
|
2679
|
-
createForClass("com.google.gwt.lang", "CollapsedPropertyHolder", 252);
|
|
2680
|
-
|
|
2681
|
-
createForClass("com.google.gwt.lang", "JavaClassHierarchySetupUtil", 254);
|
|
2682
|
-
const Lcom_google_gwt_lang_LongLibBase$LongEmul_2_classLit = createForClass(
|
|
2683
|
-
"com.google.gwt.lang",
|
|
2684
|
-
"LongLibBase/LongEmul",
|
|
2685
|
-
null,
|
|
2686
|
-
);
|
|
2687
|
-
createForClass("com.google.gwt.lang", "ModuleUtils", 257);
|
|
2688
|
-
var B_classLit = createForPrimitive("byte", "B"),
|
|
2689
|
-
J_classLit = createForPrimitive("long", "J"),
|
|
2690
|
-
C_classLit = createForPrimitive("char", "C");
|
|
2691
|
-
createForClass("com.google.gwt.user.client.rpc", "XsrfToken", null),
|
|
2692
|
-
createForInterface("java.util", "Map/Entry");
|
|
2693
|
-
|
|
2694
|
-
export const initialize = function () {
|
|
2695
|
-
init_0(false);
|
|
2696
|
-
};
|
|
2697
|
-
export const solveState = function (s) {
|
|
2698
|
-
return $solution(new Search(), s);
|
|
2699
|
-
};
|