cubing 0.20.2 → 0.21.0-pre12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -9
- package/dist/.DS_Store +0 -0
- package/dist/bin/puzzle-geometry-bin.js +1124 -1128
- package/dist/bin/puzzle-geometry-bin.js.map +3 -3
- package/dist/bundle-global/cubing.bundle-global.js +3978 -3587
- package/dist/esm/.DS_Store +0 -0
- package/dist/esm/{2x2x2.kpuzzle.json_-ZLJSYD5K.js → 2x2x2.kpuzzle.json-JOGUSQ4N.js} +3 -3
- package/dist/esm/{2x2x2.kpuzzle.json_-ZLJSYD5K.js.map → 2x2x2.kpuzzle.json-JOGUSQ4N.js.map} +1 -1
- package/dist/esm/{2x2x2.kpuzzle.svg-BNXPAM3A.js → 2x2x2.kpuzzle.svg-CQF2FTV7.js} +2 -2
- package/dist/esm/{2x2x2.kpuzzle.svg-BNXPAM3A.js.map → 2x2x2.kpuzzle.svg-CQF2FTV7.js.map} +0 -0
- package/dist/esm/3d-JZD3V366.js +39 -0
- package/dist/esm/3d-JZD3V366.js.map +7 -0
- package/dist/esm/{3x3x3-ll.kpuzzle.svg-EC42JHOH.js → 3x3x3-ll.kpuzzle.svg-53CBPG5O.js} +2 -2
- package/dist/esm/{3x3x3-ll.kpuzzle.svg-EC42JHOH.js.map → 3x3x3-ll.kpuzzle.svg-53CBPG5O.js.map} +0 -0
- package/dist/esm/{3x3x3.kpuzzle.svg-DUKG2WHC.js → 3x3x3.kpuzzle.svg-ERSSH66P.js} +2 -2
- package/dist/esm/{3x3x3.kpuzzle.svg-DUKG2WHC.js.map → 3x3x3.kpuzzle.svg-ERSSH66P.js.map} +0 -0
- package/dist/esm/alg/index.js +2 -2
- package/dist/esm/bluetooth/index.js +13 -11
- package/dist/esm/bluetooth/index.js.map +2 -2
- package/dist/esm/chunk-5DN4DAAX.js +2512 -0
- package/dist/esm/chunk-5DN4DAAX.js.map +7 -0
- package/dist/esm/{chunk-KKSDHNLH.js → chunk-7GADUDIG.js} +49 -71
- package/dist/esm/chunk-7GADUDIG.js.map +7 -0
- package/dist/esm/{chunk-YNB7QLBF.js → chunk-BU5PUJK3.js} +9 -10
- package/dist/esm/chunk-BU5PUJK3.js.map +7 -0
- package/dist/esm/chunk-CQS6JZ7G.js +762 -0
- package/dist/esm/chunk-CQS6JZ7G.js.map +7 -0
- package/dist/esm/{chunk-2GRKPQQL.js → chunk-RE7MIN5R.js} +2 -2
- package/dist/esm/{chunk-2GRKPQQL.js.map → chunk-RE7MIN5R.js.map} +0 -0
- package/dist/esm/{chunk-WJ7AVUI7.js → chunk-WO2AXYFE.js} +12 -1
- package/dist/esm/{chunk-WJ7AVUI7.js.map → chunk-WO2AXYFE.js.map} +0 -0
- package/dist/esm/{chunk-CWVB5RRW.js → chunk-YV3RT5PX.js} +625 -1282
- package/dist/esm/chunk-YV3RT5PX.js.map +7 -0
- package/dist/esm/{clock.kpuzzle.json_-PXORG6YF.js → clock.kpuzzle.json-EKWRMHJM.js} +3 -3
- package/dist/esm/{clock.kpuzzle.json_-PXORG6YF.js.map → clock.kpuzzle.json-EKWRMHJM.js.map} +1 -1
- package/dist/esm/{clock.kpuzzle.svg-E52B5OQV.js → clock.kpuzzle.svg-B7TMN3SY.js} +2 -2
- package/dist/esm/{clock.kpuzzle.svg-E52B5OQV.js.map → clock.kpuzzle.svg-B7TMN3SY.js.map} +0 -0
- package/dist/esm/esm-test-worker.js +2 -2
- package/dist/esm/esm-test-worker.js.map +1 -1
- package/dist/esm/kpuzzle/index.js +5 -3
- package/dist/esm/{node-SIGYKAZG.js → node-BSAQKO3G.js} +2 -2
- package/dist/esm/{node-SIGYKAZG.js.map → node-BSAQKO3G.js.map} +0 -0
- package/dist/esm/{node-BHGOVUN3.js → node-WEHVBEKP.js} +2 -2
- package/dist/esm/{node-BHGOVUN3.js.map → node-WEHVBEKP.js.map} +0 -0
- package/dist/esm/notation/index.js +3 -3
- package/dist/esm/protocol/index.js +3 -3
- package/dist/esm/puzzle-geometry/index.js +1085 -1179
- package/dist/esm/puzzle-geometry/index.js.map +3 -3
- package/dist/esm/puzzles/index.js +10 -4
- package/dist/esm/{pyraminx.kpuzzle.svg-QKUJX37T.js → pyraminx.kpuzzle.svg-QBBMZVDY.js} +2 -2
- package/dist/esm/{pyraminx.kpuzzle.svg-QKUJX37T.js.map → pyraminx.kpuzzle.svg-QBBMZVDY.js.map} +0 -0
- package/dist/esm/scramble/index.js +5 -4
- package/dist/esm/search/index.js +7 -4
- package/dist/esm/{sq1-hyperorbit.kpuzzle.json_-7KW5LSXC.js → sq1-hyperorbit.kpuzzle.json-N3FGCPML.js} +3 -3
- package/dist/esm/{sq1-hyperorbit.kpuzzle.json_-7KW5LSXC.js.map → sq1-hyperorbit.kpuzzle.json-N3FGCPML.js.map} +1 -1
- package/dist/esm/{sq1-hyperorbit.kpuzzle.svg-7Y7N37NN.js → sq1-hyperorbit.kpuzzle.svg-ID57EER7.js} +2 -2
- package/dist/esm/{sq1-hyperorbit.kpuzzle.svg-7Y7N37NN.js.map → sq1-hyperorbit.kpuzzle.svg-ID57EER7.js.map} +0 -0
- package/dist/esm/stream/index.js +3 -3
- package/dist/esm/stream/index.js.map +2 -2
- package/dist/esm/twisty/index.js +4442 -3214
- package/dist/esm/twisty/index.js.map +3 -3
- package/dist/esm/worker-inside-generated-string-KDZOUGJF.js +2831 -0
- package/dist/esm/worker-inside-generated-string-KDZOUGJF.js.map +7 -0
- package/dist/types/alg/Alg.d.ts +88 -0
- package/dist/types/alg/Alg.d.ts.map +1 -1
- package/dist/types/alg/Alg.spec.d.ts +2 -0
- package/dist/types/alg/Alg.spec.d.ts.map +1 -0
- package/dist/types/alg/common.d.ts.map +1 -1
- package/dist/types/alg/operation.spec.d.ts +2 -0
- package/dist/types/alg/operation.spec.d.ts.map +1 -0
- package/dist/types/alg/parse.spec.d.ts +2 -0
- package/dist/types/alg/parse.spec.d.ts.map +1 -0
- package/dist/types/alg/test/alg-comparison.d.ts.map +1 -1
- package/dist/types/alg/test/alg.spec.d.ts +2 -0
- package/dist/types/alg/test/alg.spec.d.ts.map +1 -0
- package/dist/types/alg/units/leaves/LineComment.spec.d.ts +2 -0
- package/dist/types/alg/units/leaves/LineComment.spec.d.ts.map +1 -0
- package/dist/types/alg/units/leaves/Move.spec.d.ts +2 -0
- package/dist/types/alg/units/leaves/Move.spec.d.ts.map +1 -0
- package/dist/types/alg/url.spec.d.ts +2 -0
- package/dist/types/alg/url.spec.d.ts.map +1 -0
- package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts +1 -1
- package/dist/types/bluetooth/smart-puzzle/bluetooth-puzzle.d.ts.map +1 -1
- package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts +5 -0
- package/dist/types/bluetooth/smart-puzzle/giiker.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts +3 -0
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts +2 -0
- package/dist/types/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/canon.spec.d.ts +2 -0
- package/dist/types/kpuzzle/canon.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/index.d.ts +1 -0
- package/dist/types/kpuzzle/index.d.ts.map +1 -1
- package/dist/types/kpuzzle/kpuzzle.spec.d.ts +2 -0
- package/dist/types/kpuzzle/kpuzzle.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/prunetable.spec.d.ts +2 -0
- package/dist/types/kpuzzle/prunetable.spec.d.ts.map +1 -0
- package/dist/types/kpuzzle/svg.d.ts.map +1 -1
- package/dist/types/kpuzzle/transformations.spec.d.ts +2 -0
- package/dist/types/kpuzzle/transformations.spec.d.ts.map +1 -0
- package/dist/types/protocol/binary/binary3x3x3.spec.d.ts +2 -0
- package/dist/types/protocol/binary/binary3x3x3.spec.d.ts.map +1 -0
- package/dist/types/protocol/binary/hex.spec.d.ts +2 -0
- package/dist/types/protocol/binary/hex.spec.d.ts.map +1 -0
- package/dist/types/protocol/binary/orbit-indexing.spec.d.ts +2 -0
- package/dist/types/protocol/binary/orbit-indexing.spec.d.ts.map +1 -0
- package/dist/types/puzzle-geometry/Options.d.ts +45 -1
- package/dist/types/puzzle-geometry/Options.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts +2 -0
- package/dist/types/puzzle-geometry/PGPuzzles.spec.d.ts.map +1 -0
- package/dist/types/puzzle-geometry/PermOriSet.d.ts +39 -39
- package/dist/types/puzzle-geometry/PermOriSet.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts +118 -110
- package/dist/types/puzzle-geometry/PuzzleGeometry.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/Quat.d.ts +0 -11
- package/dist/types/puzzle-geometry/Quat.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/Quat.spec.d.ts +2 -0
- package/dist/types/puzzle-geometry/Quat.spec.d.ts.map +1 -0
- package/dist/types/puzzle-geometry/SchreierSims.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/index.d.ts +2 -4
- package/dist/types/puzzle-geometry/index.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/interfaces.d.ts +1 -21
- package/dist/types/puzzle-geometry/interfaces.d.ts.map +1 -1
- package/dist/types/puzzle-geometry/orientcenters.spec.d.ts +2 -0
- package/dist/types/puzzle-geometry/orientcenters.spec.d.ts.map +1 -0
- package/dist/types/puzzles/async/async-pg3d.d.ts.map +1 -1
- package/dist/types/puzzles/customPGPuzzleLoader.d.ts +12 -0
- package/dist/types/puzzles/customPGPuzzleLoader.d.ts.map +1 -0
- package/dist/types/puzzles/implementations/2x2x2/{2x2x2.kpuzzle.json_.d.ts → 2x2x2.kpuzzle.json.d.ts} +1 -1
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/puzzles/implementations/3x3x3/index.d.ts.map +1 -1
- package/dist/types/puzzles/implementations/clock/{clock.kpuzzle.json_.d.ts → clock.kpuzzle.json.d.ts} +1 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/puzzles/implementations/fto/index.d.ts +2 -2
- package/dist/types/puzzles/implementations/fto/index.d.ts.map +1 -1
- package/dist/types/puzzles/implementations/pyraminx/{pyraminx.kpuzzle.json_.d.ts → pyraminx.kpuzzle.json.d.ts} +1 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/puzzles/implementations/square1/index.d.ts.map +1 -1
- package/dist/types/puzzles/implementations/square1/{sq1-hyperorbit.kpuzzle.json_.d.ts → sq1-hyperorbit.kpuzzle.json.d.ts} +1 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json.d.ts.map +1 -0
- package/dist/types/puzzles/index.d.ts +4 -2
- package/dist/types/puzzles/index.d.ts.map +1 -1
- package/dist/types/puzzles/stickerings/appearance.d.ts +9 -9
- package/dist/types/puzzles/stickerings/appearance.d.ts.map +1 -1
- package/dist/types/puzzles/stickerings/cube-stickerings.d.ts.map +1 -1
- package/dist/types/puzzles/stickerings/fto-stickerings.d.ts.map +1 -1
- package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts +3 -0
- package/dist/types/puzzles/stickerings/global-custom-stickering-hack.d.ts.map +1 -0
- package/dist/types/search/index.d.ts +1 -1
- package/dist/types/search/index.d.ts.map +1 -1
- package/dist/types/search/inside/api.d.ts +2 -1
- package/dist/types/search/inside/api.d.ts.map +1 -1
- package/dist/types/search/inside/api.spec.d.ts +2 -0
- package/dist/types/search/inside/api.spec.d.ts.map +1 -0
- package/dist/types/search/inside/solve/parseSGS.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/filter.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/3x3x3/index.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/megaminx.sgs.json.d.ts.map +1 -1
- package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts +2 -0
- package/dist/types/search/inside/solve/puzzles/sgs-defs.spec.d.ts.map +1 -0
- package/dist/types/search/inside/solve/puzzles/skewb.sgs.json.d.ts.map +1 -1
- package/dist/types/search/inside/solve/tremble.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lib/mathlib.d.ts +4 -31
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lib/mathlib.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/scramble/scramble_444.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/min2phase/gwt.d.ts +3 -0
- package/dist/types/search/inside/solve/vendor/min2phase/gwt.d.ts.map +1 -0
- package/dist/types/search/inside/solve/vendor/random-uint-below/get-random-values.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/random-uint-below/random-int.d.ts.map +1 -1
- package/dist/types/search/inside/solve/vendor/sq12phase/scramble_sq1.d.ts.map +1 -1
- package/dist/types/search/instantiator.d.ts.map +1 -1
- package/dist/types/search/outside.d.ts +4 -2
- package/dist/types/search/outside.d.ts.map +1 -1
- package/dist/types/search/worker-inside-generated-string.d.ts +1 -1
- package/dist/types/search/worker-inside-generated-string.d.ts.map +1 -1
- package/dist/types/stream/twizzle/TwizzleStream.d.ts +9 -8
- package/dist/types/stream/twizzle/TwizzleStream.d.ts.map +1 -1
- package/dist/types/stream/websocket-proxy.d.ts +1 -1
- package/dist/types/stream/websocket-proxy.d.ts.map +1 -1
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts +34 -0
- package/dist/types/twisty/controllers/TwistyAnimationController.d.ts.map +1 -0
- package/dist/types/twisty/controllers/TwistyPlayerController.d.ts +16 -0
- package/dist/types/twisty/controllers/TwistyPlayerController.d.ts.map +1 -0
- package/dist/types/twisty/heavy-code-imports/3d.d.ts +3 -0
- package/dist/types/twisty/heavy-code-imports/3d.d.ts.map +1 -0
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts +12 -0
- package/dist/types/twisty/heavy-code-imports/dynamic-entries/3d.d.ts.map +1 -0
- package/dist/types/twisty/index.d.ts +20 -15
- package/dist/types/twisty/index.d.ts.map +1 -1
- package/dist/types/twisty/model/PromiseFreshener.d.ts +14 -0
- package/dist/types/twisty/model/PromiseFreshener.d.ts.map +1 -0
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts +84 -0
- package/dist/types/twisty/model/TwistyPlayerModel.d.ts.map +1 -0
- package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts +11 -0
- package/dist/types/twisty/model/UserVisibleErrorTracker.d.ts.map +1 -0
- package/dist/types/twisty/model/helpers.d.ts +5 -0
- package/dist/types/twisty/model/helpers.d.ts.map +1 -0
- package/dist/types/twisty/model/props/TwistyProp.d.ts +60 -0
- package/dist/types/twisty/model/props/TwistyProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/TwistyProp.spec.d.ts +5 -0
- package/dist/types/twisty/model/props/TwistyProp.spec.d.ts.map +1 -0
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts +28 -0
- package/dist/types/twisty/model/props/TwistyPropDebugger.d.ts.map +1 -0
- package/dist/types/twisty/model/props/general/URLProp.d.ts +6 -0
- package/dist/types/twisty/model/props/general/URLProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts +7 -0
- package/dist/types/twisty/model/props/puzzle/display/HintFaceletProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts +10 -0
- package/dist/types/twisty/model/props/puzzle/display/SpriteProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/display/StickeringProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts +27 -0
- package/dist/types/twisty/model/props/puzzle/state/AlgProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts +14 -0
- package/dist/types/twisty/model/props/puzzle/state/AlgTransformationProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts +15 -0
- package/dist/types/twisty/model/props/puzzle/state/AnchoredStartProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesProp.d.ts +12 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts +17 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentLeavesSimplified.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts +15 -0
- package/dist/types/twisty/model/props/puzzle/state/CurrentTransformationProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts +17 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts +12 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts +15 -0
- package/dist/types/twisty/model/props/puzzle/state/IndexerProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts +12 -0
- package/dist/types/twisty/model/props/puzzle/state/LegacyPositionProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts +13 -0
- package/dist/types/twisty/model/props/puzzle/state/PuzzleAlgProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/state/SetupAnchorProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts +11 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDefProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts +11 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts +6 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts +13 -0
- package/dist/types/twisty/model/props/puzzle/structure/PuzzleLoaderProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts +25 -0
- package/dist/types/twisty/model/props/timeline/CoarseTimelineInfoProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts +23 -0
- package/dist/types/twisty/model/props/timeline/DetailedTimelineInfoProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts +15 -0
- package/dist/types/twisty/model/props/timeline/PlayingInfoProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts +6 -0
- package/dist/types/twisty/model/props/timeline/TempoScaleProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts +16 -0
- package/dist/types/twisty/model/props/timeline/TimestampRequestProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/BackViewProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/BackgroundProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts +22 -0
- package/dist/types/twisty/model/props/viewer/ButtonAppearanceProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/ControlPanelProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts +6 -0
- package/dist/types/twisty/model/props/viewer/LatitudeLimit.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts +16 -0
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts +15 -0
- package/dist/types/twisty/model/props/viewer/OrbitCoordinatesRequestProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts +11 -0
- package/dist/types/twisty/model/props/viewer/TimeRangeProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/ViewerLinkProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts +7 -0
- package/dist/types/twisty/model/props/viewer/VisualizationProp.d.ts.map +1 -0
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts +13 -0
- package/dist/types/twisty/model/props/viewer/VisualizationStrategyProp.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/RenderScheduler.d.ts +3 -0
- package/dist/types/twisty/old/animation/RenderScheduler.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/Timeline.d.ts +0 -0
- package/dist/types/twisty/old/animation/Timeline.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/cursor/AlgCursor.d.ts +4 -4
- package/dist/types/twisty/old/animation/cursor/AlgCursor.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/cursor/CursorTypes.d.ts +4 -4
- package/dist/types/twisty/old/animation/cursor/CursorTypes.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/easing.d.ts +0 -0
- package/dist/types/twisty/old/animation/easing.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/AlgDuration.d.ts +1 -1
- package/dist/types/twisty/old/animation/indexer/AlgDuration.d.ts.map +1 -0
- package/dist/types/twisty/old/animation/indexer/AlgIndexer.d.ts +36 -0
- package/dist/types/twisty/old/animation/indexer/AlgIndexer.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/SimpleAlgIndexer.d.ts +3 -3
- package/dist/types/twisty/old/animation/indexer/SimpleAlgIndexer.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts +6 -5
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts.map +1 -0
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts +22 -0
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.d.ts.map +1 -0
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/simul-moves.d.ts +26 -0
- package/dist/types/twisty/old/animation/indexer/simultaneous-moves/simul-moves.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/tree/AlgWalker.d.ts +2 -2
- package/dist/types/twisty/old/animation/indexer/tree/AlgWalker.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/indexer/tree/TreeAlgIndexer.d.ts +3 -3
- package/dist/types/twisty/old/animation/indexer/tree/TreeAlgIndexer.d.ts.map +1 -0
- package/dist/types/twisty/old/animation/indexer/tree/chunkAlgs.d.ts +3 -0
- package/dist/types/twisty/old/animation/indexer/tree/chunkAlgs.d.ts.map +1 -0
- package/dist/types/twisty/{animation → old/animation}/stream/timeline-move-calculation-draft.d.ts +1 -1
- package/dist/types/twisty/old/animation/stream/timeline-move-calculation-draft.d.ts.map +1 -0
- package/dist/types/twisty/{dom/TwistyAlgViewer.css_.d.ts → old/dom/TwistyAlgViewerV1.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.css.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.d.ts +52 -0
- package/dist/types/twisty/old/dom/TwistyAlgViewerV1.d.ts.map +1 -0
- package/dist/types/twisty/{dom/TwistyPlayer.css_.d.ts → old/dom/TwistyPlayer.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/TwistyPlayer.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/TwistyPlayer.d.ts +8 -8
- package/dist/types/twisty/old/dom/TwistyPlayer.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/TwistyPlayer.spec.d.ts +5 -0
- package/dist/types/twisty/old/dom/TwistyPlayer.spec.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/TwistyPlayerConfig.d.ts +10 -5
- package/dist/types/twisty/old/dom/TwistyPlayerConfig.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/controls/TwistyControlElement.d.ts +2 -0
- package/dist/types/twisty/old/dom/controls/TwistyControlElement.d.ts.map +1 -0
- package/dist/types/twisty/{dom/controls/TwistyScrubber.css_.d.ts → old/dom/controls/TwistyScrubber.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/controls/TwistyScrubber.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/controls/TwistyScrubber.d.ts +1 -1
- package/dist/types/twisty/old/dom/controls/TwistyScrubber.d.ts.map +1 -0
- package/dist/types/twisty/{dom/controls/buttons.css_.d.ts → old/dom/controls/buttons.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/controls/buttons.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/controls/buttons.d.ts +1 -1
- package/dist/types/twisty/old/dom/controls/buttons.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/controls/buttons.spec.d.ts +5 -0
- package/dist/types/twisty/old/dom/controls/buttons.spec.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/element/ClassListManager.d.ts +0 -0
- package/dist/types/twisty/old/dom/element/ClassListManager.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/element/ElementConfig.d.ts +1 -1
- package/dist/types/twisty/old/dom/element/ElementConfig.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/element/ManagedCustomElement.d.ts +0 -0
- package/dist/types/twisty/old/dom/element/ManagedCustomElement.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/element/node-custom-element-shims.d.ts +0 -0
- package/dist/types/twisty/old/dom/element/node-custom-element-shims.d.ts.map +1 -0
- package/dist/types/twisty/{dom/stream/TwistyStreamSource.css_.d.ts → old/dom/stream/TwistyStreamSource.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/stream/TwistyStreamSource.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/stream/TwistyStreamSource.d.ts +0 -0
- package/dist/types/twisty/old/dom/stream/TwistyStreamSource.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/viewers/Twisty2DSVG.d.ts +2 -2
- package/dist/types/twisty/old/dom/viewers/Twisty2DSVG.d.ts.map +1 -0
- package/dist/types/twisty/{dom/viewers/Twisty2DSVGView.css_.d.ts → old/dom/viewers/Twisty2DSVGView.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/viewers/Twisty2DSVGView.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom/viewers/Twisty3DCanvas.css_.d.ts → old/dom/viewers/Twisty3DCanvas.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/viewers/Twisty3DCanvas.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/viewers/Twisty3DCanvas.d.ts +1 -2
- package/dist/types/twisty/old/dom/viewers/Twisty3DCanvas.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/viewers/TwistyOrbitControls.d.ts +0 -0
- package/dist/types/twisty/old/dom/viewers/TwistyOrbitControls.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/viewers/TwistyViewerElement.d.ts +4 -0
- package/dist/types/twisty/old/dom/viewers/TwistyViewerElement.d.ts.map +1 -0
- package/dist/types/twisty/{dom/viewers/TwistyViewerWrapper.css_.d.ts → old/dom/viewers/TwistyViewerWrapper.css.d.ts} +1 -1
- package/dist/types/twisty/old/dom/viewers/TwistyViewerWrapper.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → old/dom}/viewers/TwistyViewerWrapper.d.ts +0 -0
- package/dist/types/twisty/old/dom/viewers/TwistyViewerWrapper.d.ts.map +1 -0
- package/dist/types/twisty/old/dom/viewers/canvas.d.ts +3 -0
- package/dist/types/twisty/old/dom/viewers/canvas.d.ts.map +1 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts +29 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzle.d.ts.map +1 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts +16 -0
- package/dist/types/twisty/views/2D/Twisty2DPuzzleWrapper.d.ts.map +1 -0
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts +20 -0
- package/dist/types/twisty/views/2D/Twisty2DSceneWrapper.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/RendererPool.d.ts +4 -0
- package/dist/types/twisty/views/3D/RendererPool.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/TAU.d.ts +0 -0
- package/dist/types/twisty/views/3D/TAU.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts +17 -0
- package/dist/types/twisty/views/3D/Twisty3DPuzzleWrapper.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/Twisty3DRenderTarget.d.ts +0 -0
- package/dist/types/twisty/views/3D/Twisty3DRenderTarget.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/Twisty3DScene.d.ts +0 -0
- package/dist/types/twisty/views/3D/Twisty3DScene.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts +28 -0
- package/dist/types/twisty/views/3D/Twisty3DSceneWrapper.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts +32 -0
- package/dist/types/twisty/views/3D/Twisty3DVantage.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.d.ts +41 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.spec.d.ts +5 -0
- package/dist/types/twisty/views/3D/TwistyOrbitControlsV2.spec.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/puzzles/Cube3D.d.ts +11 -7
- package/dist/types/twisty/views/3D/puzzles/Cube3D.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/puzzles/KPuzzleWrapper.d.ts +2 -2
- package/dist/types/twisty/views/3D/puzzles/KPuzzleWrapper.d.ts.map +1 -0
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts +57 -0
- package/dist/types/twisty/views/3D/puzzles/PG3D.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/puzzles/Twisty3DPuzzle.d.ts +1 -1
- package/dist/types/twisty/views/3D/puzzles/Twisty3DPuzzle.d.ts.map +1 -0
- package/dist/types/twisty/{3D → views/3D}/puzzles/TwistyTestBox.d.ts +2 -2
- package/dist/types/twisty/views/3D/puzzles/TwistyTestBox.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts +18 -0
- package/dist/types/twisty/views/TwistyAlgEditor/LeafTokens.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts +3 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.css.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts +40 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts +5 -0
- package/dist/types/twisty/views/TwistyAlgEditor/TwistyAlgEditor.spec.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts +61 -0
- package/dist/types/twisty/views/TwistyAlgEditor/model.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts +3 -0
- package/dist/types/twisty/views/TwistyAlgViewer.css.d.ts.map +1 -0
- package/dist/types/twisty/{dom → views}/TwistyAlgViewer.d.ts +6 -6
- package/dist/types/twisty/views/TwistyAlgViewer.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyPlayer.d.ts +97 -0
- package/dist/types/twisty/views/TwistyPlayer.d.ts.map +1 -0
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts +71 -0
- package/dist/types/twisty/views/TwistyPlayerSettable.d.ts.map +1 -0
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts +33 -0
- package/dist/types/twisty/views/control-panel/TwistyButtonsV2.d.ts.map +1 -0
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts +14 -0
- package/dist/types/twisty/views/control-panel/TwistyScrubberV2.d.ts.map +1 -0
- package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts +15 -0
- package/dist/types/twisty/views/control-panel/webkit-fullscreen.d.ts.map +1 -0
- package/dist/types/twisty/views/document.d.ts +2 -0
- package/dist/types/twisty/views/document.d.ts.map +1 -0
- package/dist/types/twisty/views/screenshot.d.ts +12 -0
- package/dist/types/twisty/views/screenshot.d.ts.map +1 -0
- package/dist/types/vendor/p-lazy/p-lazy.d.ts +10 -0
- package/dist/types/vendor/p-lazy/p-lazy.d.ts.map +1 -0
- package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts +33 -0
- package/dist/types/vendor/three/examples/jsm/libs/stats.modified.module.d.ts.map +1 -0
- package/docs/.DS_Store +0 -0
- package/docs/cubing/.DS_Store +0 -0
- package/docs/cubing/alg/index.html +37 -23
- package/docs/cubing/index.html +56 -252
- package/docs/cubing/scramble/index.html +122 -0
- package/docs/cubing/twisty/index.html +329 -0
- package/docs/main.css +15 -3
- package/package.json +83 -57
- package/src/cubing/.DS_Store +0 -0
- package/src/cubing/alg/.DS_Store +0 -0
- package/src/cubing/alg/Alg.ts +89 -0
- package/src/cubing/alg/common.ts +4 -2
- package/src/cubing/alg/iteration.ts +1 -1
- package/src/cubing/alg/parse.ts +2 -0
- package/src/cubing/alg/test/alg-comparison.ts +1 -0
- package/src/cubing/alg/units/.DS_Store +0 -0
- package/src/cubing/alg/units/Unit.ts +0 -3
- package/src/cubing/alg/units/containers/Commutator.ts +1 -1
- package/src/cubing/alg/units/leaves/Move.ts +4 -4
- package/src/cubing/bluetooth/.DS_Store +0 -0
- package/src/cubing/bluetooth/connect/index.ts +1 -1
- package/src/cubing/bluetooth/smart-puzzle/Heykube.ts +1 -1
- package/src/cubing/bluetooth/smart-puzzle/bluetooth-puzzle.ts +1 -1
- package/src/cubing/bluetooth/smart-puzzle/gan.ts +5 -5
- package/src/cubing/bluetooth/smart-puzzle/giiker.ts +2 -2
- package/src/cubing/bluetooth/smart-puzzle/gocube.ts +5 -5
- package/src/cubing/bluetooth/smart-robot/GanRobot.ts +5 -5
- package/src/cubing/bluetooth/smart-timer/GanTimer.ts +2 -2
- package/src/cubing/kpuzzle/.DS_Store +0 -0
- package/src/cubing/kpuzzle/3x3x3/3x3x3.kpuzzle.json.spec.ts +40 -0
- package/src/cubing/{puzzles/implementations/3x3x3/3x3x3.kpuzzle.json_.ts → kpuzzle/3x3x3/3x3x3.kpuzzle.json.ts} +11 -6
- package/src/cubing/kpuzzle/canon.spec.ts +6 -11
- package/src/cubing/kpuzzle/canonicalize.ts +1 -1
- package/src/cubing/kpuzzle/definition_types.ts +0 -3
- package/src/cubing/kpuzzle/index.ts +1 -0
- package/src/cubing/kpuzzle/prunetable.spec.ts +2 -4
- package/src/cubing/kpuzzle/puzzle-orientation.ts +1 -1
- package/src/cubing/kpuzzle/svg.ts +4 -9
- package/src/cubing/kpuzzle/transformations.ts +1 -1
- package/src/cubing/protocol/binary/binary3x3x3.spec.ts +5 -2
- package/src/cubing/protocol/binary/hex.ts +4 -4
- package/src/cubing/protocol/binary/orbit-indexing.ts +2 -2
- package/src/cubing/protocol/binary/puzzle-orientation.ts +2 -2
- package/src/cubing/puzzle-geometry/Options.ts +151 -22
- package/src/cubing/puzzle-geometry/PGPuzzles.spec.ts +24 -28
- package/src/cubing/puzzle-geometry/PermOriSet.ts +99 -98
- package/src/cubing/puzzle-geometry/PlatonicGenerator.ts +1 -1
- package/src/cubing/puzzle-geometry/PuzzleGeometry.ts +836 -867
- package/src/cubing/puzzle-geometry/Quat.ts +1 -68
- package/src/cubing/puzzle-geometry/SchreierSims.ts +2 -13
- package/src/cubing/puzzle-geometry/index.ts +2 -11
- package/src/cubing/puzzle-geometry/interfaces.ts +1 -27
- package/src/cubing/puzzle-geometry/orientcenters.spec.ts +24 -30
- package/src/cubing/puzzles/.DS_Store +0 -0
- package/src/cubing/puzzles/PuzzleLoader.ts +1 -1
- package/src/cubing/puzzles/async/async-pg3d.ts +5 -8
- package/src/cubing/puzzles/customPGPuzzleLoader.ts +60 -0
- package/src/cubing/puzzles/implementations/.DS_Store +0 -0
- package/src/cubing/puzzles/implementations/2x2x2/{2x2x2.kpuzzle.json_.ts → 2x2x2.kpuzzle.json.ts} +0 -0
- package/src/cubing/puzzles/implementations/2x2x2/index.ts +1 -1
- package/src/cubing/puzzles/implementations/3x3x3/index.ts +2 -3
- package/src/cubing/puzzles/implementations/clock/{clock.kpuzzle.json_.ts → clock.kpuzzle.json.ts} +0 -0
- package/src/cubing/puzzles/implementations/clock/index.ts +1 -1
- package/src/cubing/puzzles/implementations/fto/index.ts +19 -11
- package/src/cubing/puzzles/implementations/pyraminx/{pyraminx.kpuzzle.json_.ts → pyraminx.kpuzzle.json.ts} +0 -0
- package/src/cubing/puzzles/implementations/square1/index.ts +1 -2
- package/src/cubing/puzzles/implementations/square1/{sq1-hyperorbit.kpuzzle.json_.ts → sq1-hyperorbit.kpuzzle.json.ts} +0 -0
- package/src/cubing/puzzles/index.ts +30 -20
- package/src/cubing/puzzles/stickerings/appearance.ts +10 -9
- package/src/cubing/puzzles/stickerings/cube-stickerings.ts +8 -0
- package/src/cubing/puzzles/stickerings/fto-stickerings.ts +9 -0
- package/src/cubing/puzzles/stickerings/global-custom-stickering-hack.ts +61 -0
- package/src/cubing/search/.DS_Store +0 -0
- package/src/cubing/search/.gitignore +1 -2
- package/src/cubing/search/esm-test-worker.js +1 -1
- package/src/cubing/search/index.ts +1 -0
- package/src/cubing/search/inside/api.spec.ts +1 -0
- package/src/cubing/search/inside/api.ts +6 -1
- package/src/cubing/search/inside/solve/parseSGS.ts +7 -11
- package/src/cubing/search/inside/solve/puzzles/2x2x2.ts +3 -3
- package/src/cubing/search/inside/solve/puzzles/3x3x3/filter.ts +0 -6
- package/src/cubing/search/inside/solve/puzzles/3x3x3/index.ts +0 -2
- package/src/cubing/search/inside/solve/puzzles/FTO.sgs +264 -0
- package/src/cubing/search/inside/solve/puzzles/megaminx.sgs.json.ts +4 -6
- package/src/cubing/search/inside/solve/puzzles/skewb.sgs.json.ts +4 -6
- package/src/cubing/search/inside/solve/tremble.ts +6 -9
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/lib/mathlib.ts +20 -822
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/scramble/scramble_444.ts +177 -252
- package/src/cubing/search/inside/solve/vendor/min2phase/gwt.js +62 -222
- package/src/cubing/search/inside/solve/vendor/random-uint-below/get-random-values.ts +4 -5
- package/src/cubing/search/inside/solve/vendor/random-uint-below/random-int.ts +9 -11
- package/src/cubing/search/inside/solve/vendor/sq12phase/scramble_sq1.js +13 -582
- package/src/cubing/search/instantiator.ts +11 -7
- package/src/cubing/search/outside.ts +8 -2
- package/src/cubing/search/worker-inside-generated-string.js +1 -1
- package/src/cubing/stream/.DS_Store +0 -0
- package/src/cubing/stream/process/ReorientedStream.ts +1 -1
- package/src/cubing/stream/twizzle/TwizzleStream.ts +11 -8
- package/src/cubing/stream/websocket-proxy.ts +1 -3
- package/src/cubing/twisty/.DS_Store +0 -0
- package/src/cubing/twisty/controllers/TwistyAnimationController.ts +248 -0
- package/src/cubing/twisty/controllers/TwistyPlayerController.ts +38 -0
- package/src/cubing/twisty/heavy-code-imports/3d.ts +18 -0
- package/src/cubing/twisty/heavy-code-imports/dynamic-entries/3d.ts +41 -0
- package/src/cubing/twisty/index.ts +24 -17
- package/src/cubing/twisty/model/.DS_Store +0 -0
- package/src/cubing/twisty/model/PromiseFreshener.ts +49 -0
- package/src/cubing/twisty/model/TwistyPlayerModel.ts +222 -0
- package/src/cubing/twisty/model/UserVisibleErrorTracker.ts +22 -0
- package/src/cubing/twisty/model/helpers.ts +47 -0
- package/src/cubing/{search/vendor → twisty/model/props}/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/TwistyProp.spec.ts +38 -0
- package/src/cubing/twisty/model/props/TwistyProp.ts +366 -0
- package/src/cubing/twisty/model/props/TwistyPropDebugger.ts +370 -0
- package/src/cubing/twisty/model/props/general/URLProp.ts +14 -0
- package/src/cubing/{solve → twisty/model/props/puzzle}/.DS_Store +0 -0
- package/src/cubing/twisty/model/props/puzzle/display/HintFaceletProp.ts +10 -0
- package/src/cubing/twisty/model/props/puzzle/display/SpriteProp.ts +43 -0
- package/src/cubing/twisty/model/props/puzzle/display/StickeringProp.ts +8 -0
- package/src/cubing/twisty/model/props/puzzle/state/AlgProp.ts +91 -0
- package/src/cubing/twisty/model/props/puzzle/state/AlgTransformationProp.ts +28 -0
- package/src/cubing/twisty/model/props/puzzle/state/AnchoredStartProp.ts +44 -0
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesProp.ts +91 -0
- package/src/cubing/twisty/model/props/puzzle/state/CurrentLeavesSimplified.ts +48 -0
- package/src/cubing/twisty/model/props/puzzle/state/CurrentTransformationProp.ts +46 -0
- package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorProp.ts +46 -0
- package/src/cubing/twisty/model/props/puzzle/state/IndexerConstructorRequestProp.ts +15 -0
- package/src/cubing/twisty/model/props/puzzle/state/IndexerProp.ts +24 -0
- package/src/cubing/twisty/model/props/puzzle/state/LegacyPositionProp.ts +22 -0
- package/src/cubing/twisty/model/props/puzzle/state/PuzzleAlgProp.ts +28 -0
- package/src/cubing/twisty/model/props/puzzle/state/SetupAnchorProp.ts +8 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDefProp.ts +14 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleDescriptionProp.ts +14 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDProp.ts +12 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleIDRequestProp.ts +17 -0
- package/src/cubing/twisty/model/props/puzzle/structure/PuzzleLoaderProp.ts +38 -0
- package/src/cubing/twisty/model/props/timeline/CoarseTimelineInfoProp.ts +45 -0
- package/src/cubing/twisty/model/props/timeline/DetailedTimelineInfoProp.ts +76 -0
- package/src/cubing/twisty/model/props/timeline/PlayingInfoProp.ts +51 -0
- package/src/cubing/twisty/model/props/timeline/TempoScaleProp.ts +13 -0
- package/src/cubing/twisty/model/props/timeline/TimestampRequestProp.ts +38 -0
- package/src/cubing/twisty/model/props/viewer/BackViewProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/BackgroundProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/ButtonAppearanceProp.ts +86 -0
- package/src/cubing/twisty/model/props/viewer/ControlPanelProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/LatitudeLimit.ts +11 -0
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesProp.ts +56 -0
- package/src/cubing/twisty/model/props/viewer/OrbitCoordinatesRequestProp.ts +69 -0
- package/src/cubing/twisty/model/props/viewer/TimeRangeProp.ts +15 -0
- package/src/cubing/twisty/model/props/viewer/ViewerLinkProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/VisualizationProp.ts +10 -0
- package/src/cubing/twisty/model/props/viewer/VisualizationStrategyProp.ts +45 -0
- package/src/cubing/twisty/old/.DS_Store +0 -0
- package/src/cubing/twisty/old/animation/.DS_Store +0 -0
- package/src/cubing/twisty/{animation → old/animation}/RenderScheduler.ts +5 -0
- package/src/cubing/twisty/{animation → old/animation}/Timeline.ts +0 -0
- package/src/cubing/twisty/{animation → old/animation}/cursor/AlgCursor.ts +15 -8
- package/src/cubing/twisty/{animation → old/animation}/cursor/CursorTypes.ts +4 -4
- package/src/cubing/twisty/{animation → old/animation}/easing.ts +0 -0
- package/src/cubing/{search/inside → twisty/old/animation/indexer}/.DS_Store +0 -0
- package/src/cubing/twisty/{animation → old/animation}/indexer/AlgDuration.ts +1 -1
- package/src/cubing/twisty/old/animation/indexer/AlgIndexer.ts +86 -0
- package/src/cubing/twisty/{animation → old/animation}/indexer/SimpleAlgIndexer.ts +9 -6
- package/src/cubing/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexer.ts +181 -0
- package/src/cubing/twisty/old/animation/indexer/simultaneous-moves/SimultaneousMoveIndexerV2.ts +243 -0
- package/src/cubing/twisty/{animation → old/animation}/indexer/simultaneous-moves/simul-moves.ts +46 -34
- package/src/cubing/twisty/{animation → old/animation}/indexer/tree/AlgWalker.ts +6 -3
- package/src/cubing/twisty/{animation → old/animation}/indexer/tree/TreeAlgIndexer.ts +8 -5
- package/src/cubing/twisty/{animation → old/animation}/indexer/tree/chunkAlgs.ts +2 -2
- package/src/cubing/twisty/{animation → old/animation}/stream/timeline-move-calculation-draft.spec.ts.TODO +0 -0
- package/src/cubing/twisty/{animation → old/animation}/stream/timeline-move-calculation-draft.ts +2 -2
- package/src/cubing/twisty/old/dom/.DS_Store +0 -0
- package/src/cubing/twisty/{dom/TwistyAlgViewer.css_.ts → old/dom/TwistyAlgViewerV1.css.ts} +0 -0
- package/src/cubing/twisty/{dom/TwistyAlgViewer.ts → old/dom/TwistyAlgViewerV1.ts} +43 -36
- package/src/cubing/twisty/{dom/TwistyPlayer.css_.ts → old/dom/TwistyPlayer.css.ts} +28 -1
- package/src/cubing/twisty/{dom → old/dom}/TwistyPlayer.spec.ts +5 -6
- package/src/cubing/twisty/{dom → old/dom}/TwistyPlayer.ts +36 -43
- package/src/cubing/twisty/{dom → old/dom}/TwistyPlayerConfig.ts +27 -10
- package/src/cubing/twisty/{dom/controls/TwistyControlElement.ts.ts → old/dom/controls/TwistyControlElement.ts} +0 -0
- package/src/cubing/twisty/{dom/controls/TwistyScrubber.css_.ts → old/dom/controls/TwistyScrubber.css.ts} +0 -0
- package/src/cubing/twisty/{dom → old/dom}/controls/TwistyScrubber.ts +3 -3
- package/src/cubing/twisty/{dom/controls/buttons.css_.ts → old/dom/controls/buttons.css.ts} +14 -1
- package/src/cubing/twisty/{dom → old/dom}/controls/buttons.spec.ts +1 -1
- package/src/cubing/twisty/{dom → old/dom}/controls/buttons.ts +15 -15
- package/src/cubing/twisty/{dom → old/dom}/element/ClassListManager.ts +0 -0
- package/src/cubing/twisty/{dom → old/dom}/element/ElementConfig.ts +1 -1
- package/src/cubing/twisty/{dom → old/dom}/element/ManagedCustomElement.ts +0 -0
- package/src/cubing/twisty/{dom → old/dom}/element/node-custom-element-shims.ts +0 -0
- package/src/cubing/twisty/{dom/stream/TwistyStreamSource.css_.ts → old/dom/stream/TwistyStreamSource.css.ts} +0 -0
- package/src/cubing/twisty/{dom → old/dom}/stream/TwistyStreamSource.ts +8 -8
- package/src/cubing/twisty/{dom → old/dom}/viewers/Twisty2DSVG.ts +7 -9
- package/src/cubing/twisty/{dom/viewers/Twisty2DSVGView.css_.ts → old/dom/viewers/Twisty2DSVGView.css.ts} +0 -0
- package/src/cubing/twisty/{dom/viewers/Twisty3DCanvas.css_.ts → old/dom/viewers/Twisty3DCanvas.css.ts} +0 -0
- package/src/cubing/twisty/{dom → old/dom}/viewers/Twisty3DCanvas.ts +5 -12
- package/src/cubing/twisty/{dom → old/dom}/viewers/TwistyOrbitControls.ts +53 -20
- package/src/cubing/twisty/{dom → old/dom}/viewers/TwistyViewerElement.ts +1 -1
- package/src/cubing/twisty/{dom/viewers/TwistyViewerWrapper.css_.ts → old/dom/viewers/TwistyViewerWrapper.css.ts} +0 -0
- package/src/cubing/twisty/{dom → old/dom}/viewers/TwistyViewerWrapper.ts +1 -1
- package/src/cubing/twisty/old/dom/viewers/canvas.ts +9 -0
- package/src/cubing/twisty/views/.DS_Store +0 -0
- package/src/cubing/twisty/views/2D/Twisty2DPuzzle.ts +150 -0
- package/src/cubing/twisty/views/2D/Twisty2DPuzzleWrapper.ts +52 -0
- package/src/cubing/twisty/views/2D/Twisty2DSceneWrapper.ts +77 -0
- package/src/cubing/twisty/views/3D/RendererPool.ts +53 -0
- package/src/cubing/twisty/{3D → views/3D}/TAU.ts +0 -0
- package/src/cubing/twisty/views/3D/Twisty3DPuzzleWrapper.ts +168 -0
- package/src/cubing/twisty/{3D → views/3D}/Twisty3DRenderTarget.ts +0 -0
- package/src/cubing/twisty/{3D → views/3D}/Twisty3DScene.ts +0 -0
- package/src/cubing/twisty/views/3D/Twisty3DSceneWrapper.ts +144 -0
- package/src/cubing/twisty/views/3D/Twisty3DVantage.ts +244 -0
- package/src/cubing/twisty/views/3D/TwistyOrbitControlsV2.spec.ts +209 -0
- package/src/cubing/twisty/views/3D/TwistyOrbitControlsV2.ts +270 -0
- package/src/cubing/twisty/{3D → views/3D}/puzzles/Cube3D.ts +36 -15
- package/src/cubing/twisty/{3D → views/3D}/puzzles/KPuzzleWrapper.ts +4 -5
- package/src/cubing/twisty/views/3D/puzzles/PG3D.ts +988 -0
- package/src/cubing/twisty/views/3D/puzzles/Twisty3DPuzzle.ts +6 -0
- package/src/cubing/twisty/{3D → views/3D}/puzzles/TwistyTestBox.ts +2 -2
- package/src/cubing/twisty/views/TwistyAlgEditor/LeafTokens.ts +116 -0
- package/src/cubing/twisty/{dom/TwistyAlgEditor.css_.ts → views/TwistyAlgEditor/TwistyAlgEditor.css.ts} +3 -1
- package/src/cubing/twisty/{dom → views/TwistyAlgEditor}/TwistyAlgEditor.spec.ts +7 -6
- package/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditor.ts +360 -0
- package/src/cubing/twisty/views/TwistyAlgEditor/model.ts +179 -0
- package/src/cubing/twisty/views/TwistyAlgViewer.css.ts +25 -0
- package/src/cubing/twisty/views/TwistyAlgViewer.ts +502 -0
- package/src/cubing/twisty/views/TwistyPlayer.ts +327 -0
- package/src/cubing/twisty/views/TwistyPlayerSettable.ts +111 -0
- package/src/cubing/twisty/views/control-panel/TwistyButtonsV2.ts +159 -0
- package/src/cubing/twisty/views/control-panel/TwistyScrubberV2.ts +145 -0
- package/src/cubing/twisty/views/control-panel/webkit-fullscreen.ts +44 -0
- package/src/cubing/twisty/views/document.ts +4 -0
- package/src/cubing/twisty/views/screenshot.ts +90 -0
- package/src/cubing/vendor/.DS_Store +0 -0
- package/src/cubing/vendor/p-lazy/license +9 -0
- package/src/cubing/vendor/p-lazy/p-lazy.ts +52 -0
- package/src/cubing/vendor/p-lazy/readme.md +54 -0
- package/src/cubing/vendor/three/examples/jsm/libs/stats.modified.module.ts +179 -0
- package/dist/esm/chunk-CWVB5RRW.js.map +0 -7
- package/dist/esm/chunk-KKSDHNLH.js.map +0 -7
- package/dist/esm/chunk-YNB7QLBF.js.map +0 -7
- package/dist/esm/worker-inside-generated-string-LT4NV55Q.js +0 -2826
- package/dist/esm/worker-inside-generated-string-LT4NV55Q.js.map +0 -7
- package/dist/types/puzzles/implementations/2x2x2/2x2x2.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.json_.d.ts +0 -3
- package/dist/types/puzzles/implementations/3x3x3/3x3x3.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/clock/clock.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/pyraminx/pyraminx.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/puzzles/implementations/square1/sq1-hyperorbit.kpuzzle.json_.d.ts.map +0 -1
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lgarron-additions-for-typescript/shim-lib.d.ts +0 -3
- package/dist/types/search/inside/solve/vendor/cstimer/src/js/lgarron-additions-for-typescript/shim-lib.d.ts.map +0 -1
- package/dist/types/twisty/3D/TAU.d.ts.map +0 -1
- package/dist/types/twisty/3D/Twisty3DRenderTarget.d.ts.map +0 -1
- package/dist/types/twisty/3D/Twisty3DScene.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/Cube3D.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/KPuzzleWrapper.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/PG3D.d.ts +0 -51
- package/dist/types/twisty/3D/puzzles/PG3D.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/Twisty3DPuzzle.d.ts.map +0 -1
- package/dist/types/twisty/3D/puzzles/TwistyTestBox.d.ts.map +0 -1
- package/dist/types/twisty/animation/RenderScheduler.d.ts.map +0 -1
- package/dist/types/twisty/animation/Timeline.d.ts.map +0 -1
- package/dist/types/twisty/animation/cursor/AlgCursor.d.ts.map +0 -1
- package/dist/types/twisty/animation/cursor/CursorTypes.d.ts.map +0 -1
- package/dist/types/twisty/animation/easing.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/AlgDuration.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/AlgIndexer.d.ts +0 -15
- package/dist/types/twisty/animation/indexer/AlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/SimpleAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/simultaneous-moves/SimultaneousMoveIndexer.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/simultaneous-moves/simul-moves.d.ts +0 -25
- package/dist/types/twisty/animation/indexer/simultaneous-moves/simul-moves.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/tree/AlgWalker.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/tree/TreeAlgIndexer.d.ts.map +0 -1
- package/dist/types/twisty/animation/indexer/tree/chunkAlgs.d.ts +0 -3
- package/dist/types/twisty/animation/indexer/tree/chunkAlgs.d.ts.map +0 -1
- package/dist/types/twisty/animation/stream/timeline-move-calculation-draft.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgEditor.css_.d.ts +0 -3
- package/dist/types/twisty/dom/TwistyAlgEditor.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgEditor.d.ts +0 -27
- package/dist/types/twisty/dom/TwistyAlgEditor.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgEditorStartCharSearch.d.ts +0 -26
- package/dist/types/twisty/dom/TwistyAlgEditorStartCharSearch.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgViewer.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyAlgViewer.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyPlayer.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyPlayer.d.ts.map +0 -1
- package/dist/types/twisty/dom/TwistyPlayerConfig.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/TwistyControlElement.ts.d.ts +0 -2
- package/dist/types/twisty/dom/controls/TwistyControlElement.ts.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/TwistyScrubber.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/TwistyScrubber.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/buttons.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/controls/buttons.d.ts.map +0 -1
- package/dist/types/twisty/dom/element/ClassListManager.d.ts.map +0 -1
- package/dist/types/twisty/dom/element/ElementConfig.d.ts.map +0 -1
- package/dist/types/twisty/dom/element/ManagedCustomElement.d.ts.map +0 -1
- package/dist/types/twisty/dom/element/node-custom-element-shims.d.ts.map +0 -1
- package/dist/types/twisty/dom/stream/TwistyStreamSource.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/stream/TwistyStreamSource.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/Twisty2DSVG.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/Twisty2DSVGView.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/Twisty3DCanvas.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/Twisty3DCanvas.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/TwistyOrbitControls.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/TwistyViewerElement.d.ts +0 -4
- package/dist/types/twisty/dom/viewers/TwistyViewerElement.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/TwistyViewerWrapper.css_.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/TwistyViewerWrapper.d.ts.map +0 -1
- package/dist/types/twisty/dom/viewers/canvas.d.ts +0 -2
- package/dist/types/twisty/dom/viewers/canvas.d.ts.map +0 -1
- package/dist/types/vendor/three/examples/jsm/libs/stats.module.d.ts +0 -2
- package/dist/types/vendor/three/examples/jsm/libs/stats.module.d.ts.map +0 -1
- package/dist/types/vendor/three/examples/jsm/libs/stats.module.wrapped.d.ts +0 -21
- package/dist/types/vendor/three/examples/jsm/libs/stats.module.wrapped.d.ts.map +0 -1
- package/src/cubing/protocol/.DS_Store +0 -0
- package/src/cubing/puzzle-geometry/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/puzzles/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/puzzles/3x3x3/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/lgarron-additions-for-typescript/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/lgarron-additions-for-typescript/shim-lib.ts +0 -13
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/lib/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/cstimer/src/js/scramble/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/sgs/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/sgs/src/.DS_Store +0 -0
- package/src/cubing/search/inside/solve/vendor/sgs/src/test/.DS_Store +0 -0
- package/src/cubing/search/vendor/comlink-everywhere/.DS_Store +0 -0
- package/src/cubing/twisty/3D/puzzles/PG3D.ts +0 -600
- package/src/cubing/twisty/3D/puzzles/Twisty3DPuzzle.ts +0 -9
- package/src/cubing/twisty/3D/puzzles/mkbhd.svg +0 -5
- package/src/cubing/twisty/animation/indexer/AlgIndexer.ts +0 -25
- package/src/cubing/twisty/animation/indexer/simultaneous-moves/SimultaneousMoveIndexer.ts +0 -168
- package/src/cubing/twisty/dom/TwistyAlgEditor.ts +0 -373
- package/src/cubing/twisty/dom/TwistyAlgEditorStartCharSearch.ts +0 -138
- package/src/cubing/twisty/dom/viewers/canvas.ts +0 -4
- package/src/cubing/twisty/views/3D/.DS_Store +0 -0
- package/src/cubing/vendor/three/.DS_Store +0 -0
- package/src/cubing/vendor/three/examples/jsm/libs/stats.module.ts +0 -2
- package/src/cubing/vendor/three/examples/jsm/libs/stats.module.wrapped.d.ts +0 -24
- package/src/cubing/vendor/three/examples/jsm/libs/stats.module.wrapped.js +0 -178
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1
2
|
// @ts-nocheck
|
|
2
3
|
|
|
4
|
+
/*eslint no-implicit-globals: "error"*/
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
3
6
|
import { Alg } from "../../../../../../../../alg";
|
|
4
7
|
import { random333Scramble as getRandomScramble333 } from "../../../../../puzzles/3x3x3";
|
|
5
8
|
import { circle, Cnk, set8Perm } from "../lib/mathlib";
|
|
@@ -7,20 +10,19 @@ import { randomUIntBelowFactory } from "../../../../random-uint-below";
|
|
|
7
10
|
import { mustBeInsideWorker } from "../../../../../../inside-worker";
|
|
8
11
|
|
|
9
12
|
function createArray(length1: number, length2?: number) {
|
|
10
|
-
|
|
11
|
-
result = new Array(length1);
|
|
13
|
+
const result = new Array<number[]>(length1);
|
|
12
14
|
if (length2 !== undefined) {
|
|
13
|
-
for (i = 0; i < length1; i++) {
|
|
15
|
+
for (let i = 0; i < length1; i++) {
|
|
14
16
|
result[i] = new Array(length2);
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
return result;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
let _: any;
|
|
23
|
+
const seedTable: Record<number, any> = {},
|
|
22
24
|
CM$ = {};
|
|
23
|
-
|
|
25
|
+
const Q$Object = 0,
|
|
24
26
|
Q$Serializable = 30,
|
|
25
27
|
Q$Center1 = 21,
|
|
26
28
|
Q$CornerCube = 22,
|
|
@@ -31,12 +33,17 @@ var Q$Object = 0,
|
|
|
31
33
|
Q$Search_0 = 26,
|
|
32
34
|
Q$Object_$1 = 40;
|
|
33
35
|
|
|
34
|
-
function newSeed(id) {
|
|
36
|
+
function newSeed(id: number) {
|
|
35
37
|
return new seedTable[id]();
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
function defineSeed(
|
|
39
|
-
|
|
40
|
+
function defineSeed(
|
|
41
|
+
id: number,
|
|
42
|
+
superSeed: number,
|
|
43
|
+
castableTypeMap: any, // TODO
|
|
44
|
+
...moreArgs: any[]
|
|
45
|
+
) {
|
|
46
|
+
let seed = seedTable[id];
|
|
40
47
|
if (seed && !seed.___clazz$) {
|
|
41
48
|
_ = seed.prototype;
|
|
42
49
|
} else {
|
|
@@ -44,8 +51,8 @@ function defineSeed(id, superSeed, castableTypeMap, ...moreArgs) {
|
|
|
44
51
|
_ = seed.prototype = superSeed < 0 ? {} : newSeed(superSeed);
|
|
45
52
|
_.castableTypeMap$ = castableTypeMap;
|
|
46
53
|
}
|
|
47
|
-
for (
|
|
48
|
-
|
|
54
|
+
for (const arg of moreArgs) {
|
|
55
|
+
arg.prototype = _;
|
|
49
56
|
}
|
|
50
57
|
if (seed.___clazz$) {
|
|
51
58
|
_.___clazz$ = seed.___clazz$;
|
|
@@ -53,35 +60,31 @@ function defineSeed(id, superSeed, castableTypeMap, ...moreArgs) {
|
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
62
|
|
|
56
|
-
function makeCastMap(a) {
|
|
57
|
-
|
|
58
|
-
for (
|
|
63
|
+
function makeCastMap(a: number[]) {
|
|
64
|
+
const result: Record<number, number> = {};
|
|
65
|
+
for (let i_0 = 0, c = a.length; i_0 < c; ++i_0) {
|
|
59
66
|
result[a[i_0]] = 1;
|
|
60
67
|
}
|
|
61
68
|
return result;
|
|
62
69
|
}
|
|
63
70
|
|
|
64
|
-
function nullMethod() {}
|
|
65
|
-
|
|
66
71
|
defineSeed(1, -1, CM$);
|
|
67
72
|
|
|
68
73
|
_.value = null;
|
|
69
74
|
|
|
70
75
|
function Array_0() {}
|
|
71
76
|
|
|
72
|
-
function createFrom(
|
|
73
|
-
|
|
74
|
-
a = array;
|
|
75
|
-
result = createFromSeed(0, length_0);
|
|
77
|
+
function createFrom(a: any, length_0: number) {
|
|
78
|
+
const result = createFromSeed(0, length_0);
|
|
76
79
|
initValues(a.___clazz$, a.castableTypeMap$, a.queryId$, result);
|
|
77
80
|
return result;
|
|
78
81
|
}
|
|
79
82
|
|
|
80
|
-
function createFromSeed(seedType, length_0) {
|
|
81
|
-
|
|
83
|
+
function createFromSeed(seedType: number, length_0: number) {
|
|
84
|
+
const array = new Array(length_0);
|
|
82
85
|
if (seedType === 3) {
|
|
83
|
-
for (
|
|
84
|
-
|
|
86
|
+
for (let i_0 = 0; i_0 < length_0; ++i_0) {
|
|
87
|
+
const value = {
|
|
85
88
|
m: 0,
|
|
86
89
|
l: 0,
|
|
87
90
|
h: 0,
|
|
@@ -90,8 +93,8 @@ function createFromSeed(seedType, length_0) {
|
|
|
90
93
|
array[i_0] = value;
|
|
91
94
|
}
|
|
92
95
|
} else if (seedType > 0) {
|
|
93
|
-
|
|
94
|
-
for (
|
|
96
|
+
const value = [null, 0, false][seedType];
|
|
97
|
+
for (let i_0 = 0; i_0 < length_0; ++i_0) {
|
|
95
98
|
array[i_0] = value;
|
|
96
99
|
}
|
|
97
100
|
}
|
|
@@ -99,8 +102,7 @@ function createFromSeed(seedType, length_0) {
|
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
function initDim(arrayClass, castableTypeMap, queryId, length_0, seedType) {
|
|
102
|
-
|
|
103
|
-
result = createFromSeed(seedType, length_0);
|
|
105
|
+
const result = createFromSeed(seedType, length_0);
|
|
104
106
|
initValues(arrayClass, castableTypeMap, queryId, result);
|
|
105
107
|
return result;
|
|
106
108
|
}
|
|
@@ -133,9 +135,9 @@ function $clinit_Array$ExpandoWrapper() {
|
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
function initExpandos(protoType, expandoNames, expandoValues) {
|
|
136
|
-
|
|
138
|
+
let i_0 = 0,
|
|
137
139
|
value;
|
|
138
|
-
for (
|
|
140
|
+
for (const name_0 in protoType) {
|
|
139
141
|
if ((value = protoType[name_0])) {
|
|
140
142
|
expandoNames[i_0] = name_0;
|
|
141
143
|
expandoValues[i_0] = value;
|
|
@@ -146,21 +148,17 @@ function initExpandos(protoType, expandoNames, expandoValues) {
|
|
|
146
148
|
|
|
147
149
|
function wrapArray(array, expandoNames, expandoValues) {
|
|
148
150
|
$clinit_Array$ExpandoWrapper();
|
|
149
|
-
for (
|
|
151
|
+
for (let i_0 = 0, c = expandoNames.length; i_0 < c; ++i_0) {
|
|
150
152
|
array[expandoNames[i_0]] = expandoValues[i_0];
|
|
151
153
|
}
|
|
152
154
|
}
|
|
153
155
|
|
|
154
|
-
|
|
156
|
+
let expandoNames_0, expandoValues_0;
|
|
155
157
|
|
|
156
158
|
function canCast(src, dstId) {
|
|
157
159
|
return src.castableTypeMap$ && !!src.castableTypeMap$[dstId];
|
|
158
160
|
}
|
|
159
161
|
|
|
160
|
-
function canCastUnsafe(src, dstId) {
|
|
161
|
-
return src.castableTypeMap$ && src.castableTypeMap$[dstId];
|
|
162
|
-
}
|
|
163
|
-
|
|
164
162
|
function instanceOf(src, dstId) {
|
|
165
163
|
return src !== null && canCast(src, dstId);
|
|
166
164
|
}
|
|
@@ -185,7 +183,7 @@ function $$init_1(this$static) {
|
|
|
185
183
|
}
|
|
186
184
|
|
|
187
185
|
function $equals(this$static, obj) {
|
|
188
|
-
|
|
186
|
+
let c, i_0;
|
|
189
187
|
if (instanceOf(obj, Q$Center1)) {
|
|
190
188
|
c = obj;
|
|
191
189
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
@@ -199,7 +197,7 @@ function $equals(this$static, obj) {
|
|
|
199
197
|
}
|
|
200
198
|
|
|
201
199
|
function $get_1(this$static) {
|
|
202
|
-
|
|
200
|
+
let i_0, idx, r;
|
|
203
201
|
idx = 0;
|
|
204
202
|
r = 8;
|
|
205
203
|
for (i_0 = 23; i_0 >= 0; --i_0) {
|
|
@@ -209,7 +207,7 @@ function $get_1(this$static) {
|
|
|
209
207
|
}
|
|
210
208
|
|
|
211
209
|
function $getsym(this$static) {
|
|
212
|
-
|
|
210
|
+
let cord, j;
|
|
213
211
|
if (raw2sym !== null) {
|
|
214
212
|
return raw2sym[$get_1(this$static)];
|
|
215
213
|
}
|
|
@@ -224,8 +222,7 @@ function $getsym(this$static) {
|
|
|
224
222
|
}
|
|
225
223
|
|
|
226
224
|
function $move(this$static, m_0) {
|
|
227
|
-
|
|
228
|
-
key = m_0 % 3;
|
|
225
|
+
const key = m_0 % 3;
|
|
229
226
|
m_0 = ~~(m_0 / 3);
|
|
230
227
|
switch (m_0) {
|
|
231
228
|
case 0:
|
|
@@ -305,7 +302,7 @@ function $rot(this$static, r) {
|
|
|
305
302
|
}
|
|
306
303
|
|
|
307
304
|
function $rotate(this$static, r) {
|
|
308
|
-
|
|
305
|
+
let j;
|
|
309
306
|
for (j = 0; j < r; ++j) {
|
|
310
307
|
$rot(this$static, 0);
|
|
311
308
|
j % 2 === 1 && $rot(this$static, 1);
|
|
@@ -315,7 +312,7 @@ function $rotate(this$static, r) {
|
|
|
315
312
|
}
|
|
316
313
|
|
|
317
314
|
function $set_0(this$static, idx) {
|
|
318
|
-
|
|
315
|
+
let i_0, r;
|
|
319
316
|
r = 8;
|
|
320
317
|
for (i_0 = 23; i_0 >= 0; --i_0) {
|
|
321
318
|
this$static.ct[i_0] = 0;
|
|
@@ -327,14 +324,14 @@ function $set_0(this$static, idx) {
|
|
|
327
324
|
}
|
|
328
325
|
|
|
329
326
|
function $set_1(this$static, c) {
|
|
330
|
-
|
|
327
|
+
let i_0;
|
|
331
328
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
332
329
|
this$static.ct[i_0] = c.ct[i_0];
|
|
333
330
|
}
|
|
334
331
|
}
|
|
335
332
|
|
|
336
333
|
function Center1_0() {
|
|
337
|
-
|
|
334
|
+
let i_0;
|
|
338
335
|
$$init_1(this);
|
|
339
336
|
for (i_0 = 0; i_0 < 8; ++i_0) {
|
|
340
337
|
this.ct[i_0] = 1;
|
|
@@ -345,7 +342,7 @@ function Center1_0() {
|
|
|
345
342
|
}
|
|
346
343
|
|
|
347
344
|
function Center1_1(c, urf) {
|
|
348
|
-
|
|
345
|
+
let i_0;
|
|
349
346
|
$$init_1(this);
|
|
350
347
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
351
348
|
this.ct[i_0] = ~~(c.ct[i_0] / 2) === urf ? 1 : 0;
|
|
@@ -353,7 +350,7 @@ function Center1_1(c, urf) {
|
|
|
353
350
|
}
|
|
354
351
|
|
|
355
352
|
function Center1_2(ct) {
|
|
356
|
-
|
|
353
|
+
let i_0;
|
|
357
354
|
$$init_1(this);
|
|
358
355
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
359
356
|
this.ct[i_0] = ct[i_0];
|
|
@@ -361,9 +358,9 @@ function Center1_2(ct) {
|
|
|
361
358
|
}
|
|
362
359
|
|
|
363
360
|
function createMoveTable() {
|
|
364
|
-
|
|
365
|
-
c = new Center1_0();
|
|
366
|
-
d = new Center1_0();
|
|
361
|
+
let i_0, m_0;
|
|
362
|
+
const c = new Center1_0();
|
|
363
|
+
const d = new Center1_0();
|
|
367
364
|
for (i_0 = 0; i_0 < 15582; ++i_0) {
|
|
368
365
|
$set_0(d, sym2raw[i_0]);
|
|
369
366
|
for (m_0 = 0; m_0 < 36; ++m_0) {
|
|
@@ -375,7 +372,7 @@ function createMoveTable() {
|
|
|
375
372
|
}
|
|
376
373
|
|
|
377
374
|
function createPrun() {
|
|
378
|
-
|
|
375
|
+
let check, depth, done, i_0, idx, inv, m_0, select;
|
|
379
376
|
fill_0(csprun);
|
|
380
377
|
csprun[0] = 0;
|
|
381
378
|
depth = 0;
|
|
@@ -407,8 +404,8 @@ function createPrun() {
|
|
|
407
404
|
}
|
|
408
405
|
|
|
409
406
|
function getSolvedSym(cube) {
|
|
410
|
-
|
|
411
|
-
c = new Center1_2(cube.ct);
|
|
407
|
+
let check, i_0, j;
|
|
408
|
+
const c = new Center1_2(cube.ct);
|
|
412
409
|
for (j = 0; j < 48; ++j) {
|
|
413
410
|
check = true;
|
|
414
411
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
@@ -429,14 +426,14 @@ function getSolvedSym(cube) {
|
|
|
429
426
|
}
|
|
430
427
|
|
|
431
428
|
function initSym_0() {
|
|
432
|
-
|
|
433
|
-
c = new Center1_0();
|
|
429
|
+
let i_0, j, k_0;
|
|
430
|
+
const c = new Center1_0();
|
|
434
431
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
435
432
|
c.ct[i_0] = i_0;
|
|
436
433
|
}
|
|
437
|
-
d = new Center1_2(c.ct);
|
|
438
|
-
e = new Center1_2(c.ct);
|
|
439
|
-
f = new Center1_2(c.ct);
|
|
434
|
+
const d = new Center1_2(c.ct);
|
|
435
|
+
const e = new Center1_2(c.ct);
|
|
436
|
+
const f = new Center1_2(c.ct);
|
|
440
437
|
for (i_0 = 0; i_0 < 48; ++i_0) {
|
|
441
438
|
for (j = 0; j < 48; ++j) {
|
|
442
439
|
for (k_0 = 0; k_0 < 48; ++k_0) {
|
|
@@ -487,9 +484,9 @@ function initSym_0() {
|
|
|
487
484
|
}
|
|
488
485
|
|
|
489
486
|
function initSym2Raw() {
|
|
490
|
-
|
|
491
|
-
c = new Center1_0();
|
|
492
|
-
occ = createArray(22984);
|
|
487
|
+
let count, i_0, idx, j;
|
|
488
|
+
const c = new Center1_0();
|
|
489
|
+
const occ = createArray(22984);
|
|
493
490
|
for (i_0 = 0; i_0 < 22984; i_0++) {
|
|
494
491
|
occ[i_0] = 0;
|
|
495
492
|
}
|
|
@@ -512,14 +509,13 @@ function initSym2Raw() {
|
|
|
512
509
|
}
|
|
513
510
|
|
|
514
511
|
function raw2sym_0(n) {
|
|
515
|
-
|
|
516
|
-
m_0 = binarySearch_0(sym2raw, n);
|
|
512
|
+
const m_0 = binarySearch_0(sym2raw, n);
|
|
517
513
|
return m_0 >= 0 ? m_0 : -1;
|
|
518
514
|
}
|
|
519
515
|
|
|
520
516
|
defineSeed(153, 1, makeCastMap([Q$Center1]), Center1_0, Center1_1, Center1_2);
|
|
521
517
|
|
|
522
|
-
|
|
518
|
+
let csprun,
|
|
523
519
|
ctsmv,
|
|
524
520
|
finish_0,
|
|
525
521
|
raw2sym = null,
|
|
@@ -546,7 +542,7 @@ function $clinit_Center2() {
|
|
|
546
542
|
}
|
|
547
543
|
|
|
548
544
|
function $getct(this$static) {
|
|
549
|
-
|
|
545
|
+
let i_0, idx, r;
|
|
550
546
|
idx = 0;
|
|
551
547
|
r = 8;
|
|
552
548
|
for (i_0 = 14; i_0 >= 0; --i_0) {
|
|
@@ -556,7 +552,7 @@ function $getct(this$static) {
|
|
|
556
552
|
}
|
|
557
553
|
|
|
558
554
|
function $getrl(this$static) {
|
|
559
|
-
|
|
555
|
+
let i_0, idx, r;
|
|
560
556
|
idx = 0;
|
|
561
557
|
r = 4;
|
|
562
558
|
for (i_0 = 6; i_0 >= 0; --i_0) {
|
|
@@ -566,9 +562,8 @@ function $getrl(this$static) {
|
|
|
566
562
|
}
|
|
567
563
|
|
|
568
564
|
function $move_0(this$static, m_0) {
|
|
569
|
-
var key;
|
|
570
565
|
this$static.parity ^= pmv[m_0];
|
|
571
|
-
key = m_0 % 3;
|
|
566
|
+
const key = m_0 % 3;
|
|
572
567
|
m_0 = ~~(m_0 / 3);
|
|
573
568
|
switch (m_0) {
|
|
574
569
|
case 0:
|
|
@@ -642,7 +637,7 @@ function $rot_0(this$static, r) {
|
|
|
642
637
|
}
|
|
643
638
|
|
|
644
639
|
function $set_2(this$static, c, edgeParity) {
|
|
645
|
-
|
|
640
|
+
let i_0;
|
|
646
641
|
for (i_0 = 0; i_0 < 16; ++i_0) {
|
|
647
642
|
this$static.ct[i_0] = ~~(c.ct[i_0] / 2);
|
|
648
643
|
}
|
|
@@ -653,7 +648,7 @@ function $set_2(this$static, c, edgeParity) {
|
|
|
653
648
|
}
|
|
654
649
|
|
|
655
650
|
function $setct(this$static, idx) {
|
|
656
|
-
|
|
651
|
+
let i_0, r;
|
|
657
652
|
r = 8;
|
|
658
653
|
this$static.ct[15] = 0;
|
|
659
654
|
for (i_0 = 14; i_0 >= 0; --i_0) {
|
|
@@ -667,7 +662,7 @@ function $setct(this$static, idx) {
|
|
|
667
662
|
}
|
|
668
663
|
|
|
669
664
|
function $setrl(this$static, idx) {
|
|
670
|
-
|
|
665
|
+
let i_0, r;
|
|
671
666
|
this$static.parity = idx & 1;
|
|
672
667
|
idx >>>= 1;
|
|
673
668
|
r = 4;
|
|
@@ -688,8 +683,8 @@ function Center2_0() {
|
|
|
688
683
|
}
|
|
689
684
|
|
|
690
685
|
function init_3() {
|
|
691
|
-
|
|
692
|
-
c = new Center2_0();
|
|
686
|
+
let ct, ctx, depth, done, i_0, idx, j, m_0, rl, rlx;
|
|
687
|
+
const c = new Center2_0();
|
|
693
688
|
for (i_0 = 0; i_0 < 70; ++i_0) {
|
|
694
689
|
for (m_0 = 0; m_0 < 28; ++m_0) {
|
|
695
690
|
$setrl(c, i_0);
|
|
@@ -734,9 +729,9 @@ function init_3() {
|
|
|
734
729
|
done = 6;
|
|
735
730
|
|
|
736
731
|
while (done !== 450450) {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
732
|
+
const inv = depth > 6;
|
|
733
|
+
const select = inv ? -1 : depth;
|
|
734
|
+
const check = inv ? depth : -1;
|
|
740
735
|
++depth;
|
|
741
736
|
for (i_0 = 0; i_0 < 450450; ++i_0) {
|
|
742
737
|
if (ctprun[i_0] !== select) {
|
|
@@ -765,7 +760,7 @@ function init_3() {
|
|
|
765
760
|
|
|
766
761
|
defineSeed(154, 1, {}, Center2_0);
|
|
767
762
|
_.parity = 0;
|
|
768
|
-
|
|
763
|
+
let ctmv, ctprun, ctrot, pmv, rlmv, rlrot;
|
|
769
764
|
|
|
770
765
|
let ran$clinit_Center3 = false;
|
|
771
766
|
function $clinit_Center3() {
|
|
@@ -781,7 +776,7 @@ function $clinit_Center3() {
|
|
|
781
776
|
}
|
|
782
777
|
|
|
783
778
|
function $getct_0(this$static) {
|
|
784
|
-
|
|
779
|
+
let i_0, idx, idxrl, r;
|
|
785
780
|
idx = 0;
|
|
786
781
|
r = 4;
|
|
787
782
|
for (i_0 = 6; i_0 >= 0; --i_0) {
|
|
@@ -793,7 +788,7 @@ function $getct_0(this$static) {
|
|
|
793
788
|
this$static.fb[i_0] !== this$static.fb[7] && (idx += Cnk[i_0][r--]);
|
|
794
789
|
}
|
|
795
790
|
idx *= 12;
|
|
796
|
-
check = this$static.fb[7] ^ this$static.ud[7];
|
|
791
|
+
const check = this$static.fb[7] ^ this$static.ud[7];
|
|
797
792
|
idxrl = 0;
|
|
798
793
|
r = 4;
|
|
799
794
|
for (i_0 = 7; i_0 >= 0; --i_0) {
|
|
@@ -864,8 +859,8 @@ function $move_1(this$static, i_0) {
|
|
|
864
859
|
}
|
|
865
860
|
|
|
866
861
|
function $set_3(this$static, c, eXc_parity) {
|
|
867
|
-
|
|
868
|
-
parity =
|
|
862
|
+
let i_0;
|
|
863
|
+
const parity =
|
|
869
864
|
(c.ct[0] > c.ct[8] ? 1 : 0) ^
|
|
870
865
|
(c.ct[8] > c.ct[16] ? 1 : 0) ^
|
|
871
866
|
(c.ct[0] > c.ct[16] ? 1 : 0)
|
|
@@ -880,7 +875,7 @@ function $set_3(this$static, c, eXc_parity) {
|
|
|
880
875
|
}
|
|
881
876
|
|
|
882
877
|
function $setct_0(this$static, idx) {
|
|
883
|
-
|
|
878
|
+
let i_0, idxfb, idxrl, r;
|
|
884
879
|
this$static.parity = idx & 1;
|
|
885
880
|
idx >>>= 1;
|
|
886
881
|
idxrl = rl2std[idx % 12];
|
|
@@ -924,11 +919,11 @@ function Center3_0() {
|
|
|
924
919
|
}
|
|
925
920
|
|
|
926
921
|
function init_4() {
|
|
927
|
-
|
|
922
|
+
let depth, done, i_0, m_0;
|
|
928
923
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
929
924
|
std2rl[rl2std[i_0]] = i_0;
|
|
930
925
|
}
|
|
931
|
-
c = new Center3_0();
|
|
926
|
+
const c = new Center3_0();
|
|
932
927
|
for (i_0 = 0; i_0 < 29400; ++i_0) {
|
|
933
928
|
for (m_0 = 0; m_0 < 20; ++m_0) {
|
|
934
929
|
$setct_0(c, i_0);
|
|
@@ -958,27 +953,17 @@ function init_4() {
|
|
|
958
953
|
|
|
959
954
|
defineSeed(155, 1, {}, Center3_0);
|
|
960
955
|
_.parity = 0;
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
let ran$clinit_CenterCube = false;
|
|
964
|
-
function $clinit_CenterCube() {
|
|
965
|
-
if (ran$clinit_CenterCube) {
|
|
966
|
-
return;
|
|
967
|
-
}
|
|
968
|
-
ran$clinit_CenterCube = true;
|
|
969
|
-
center333Map = [0, 4, 2, 1, 5, 3];
|
|
970
|
-
}
|
|
956
|
+
let ctmove, pmove, prun_0, rl2std, std2rl;
|
|
971
957
|
|
|
972
958
|
function $copy_1(this$static, c) {
|
|
973
|
-
|
|
959
|
+
let i_0;
|
|
974
960
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
975
961
|
this$static.ct[i_0] = c.ct[i_0];
|
|
976
962
|
}
|
|
977
963
|
}
|
|
978
964
|
|
|
979
965
|
function $move_2(this$static, m_0) {
|
|
980
|
-
|
|
981
|
-
key = m_0 % 3;
|
|
966
|
+
const key = m_0 % 3;
|
|
982
967
|
m_0 = ~~(m_0 / 3);
|
|
983
968
|
switch (m_0) {
|
|
984
969
|
case 0:
|
|
@@ -1032,7 +1017,7 @@ function $move_2(this$static, m_0) {
|
|
|
1032
1017
|
}
|
|
1033
1018
|
|
|
1034
1019
|
function CenterCube_0() {
|
|
1035
|
-
|
|
1020
|
+
let i_0;
|
|
1036
1021
|
this.ct = createArray(24);
|
|
1037
1022
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
1038
1023
|
this.ct[i_0] = ~~(i_0 / 4);
|
|
@@ -1040,7 +1025,7 @@ function CenterCube_0() {
|
|
|
1040
1025
|
}
|
|
1041
1026
|
|
|
1042
1027
|
function CenterCube_1(randomUIntBelow) {
|
|
1043
|
-
|
|
1028
|
+
let i_0, m_0, t;
|
|
1044
1029
|
CenterCube_0.call(this);
|
|
1045
1030
|
for (i_0 = 0; i_0 < 23; ++i_0) {
|
|
1046
1031
|
t = i_0 + randomUIntBelow(24 - i_0);
|
|
@@ -1053,7 +1038,6 @@ function CenterCube_1(randomUIntBelow) {
|
|
|
1053
1038
|
}
|
|
1054
1039
|
|
|
1055
1040
|
defineSeed(156, 1, {}, CenterCube_0, CenterCube_1);
|
|
1056
|
-
var center333Map;
|
|
1057
1041
|
|
|
1058
1042
|
let ran$clinit_CornerCube = false;
|
|
1059
1043
|
function $clinit_CornerCube() {
|
|
@@ -1062,16 +1046,6 @@ function $clinit_CornerCube() {
|
|
|
1062
1046
|
}
|
|
1063
1047
|
ran$clinit_CornerCube = true;
|
|
1064
1048
|
moveCube_0 = createArray(18);
|
|
1065
|
-
cornerFacelet_0 = [
|
|
1066
|
-
[8, 9, 20],
|
|
1067
|
-
[6, 18, 38],
|
|
1068
|
-
[0, 36, 47],
|
|
1069
|
-
[2, 45, 11],
|
|
1070
|
-
[29, 26, 15],
|
|
1071
|
-
[27, 44, 24],
|
|
1072
|
-
[33, 53, 42],
|
|
1073
|
-
[35, 17, 51],
|
|
1074
|
-
];
|
|
1075
1049
|
initMove_0();
|
|
1076
1050
|
}
|
|
1077
1051
|
|
|
@@ -1081,7 +1055,7 @@ function $$init_2(this$static) {
|
|
|
1081
1055
|
}
|
|
1082
1056
|
|
|
1083
1057
|
function $copy_2(this$static, c) {
|
|
1084
|
-
|
|
1058
|
+
let i_0;
|
|
1085
1059
|
for (i_0 = 0; i_0 < 8; ++i_0) {
|
|
1086
1060
|
this$static.cp[i_0] = c.cp[i_0];
|
|
1087
1061
|
this$static.co[i_0] = c.co[i_0];
|
|
@@ -1095,7 +1069,7 @@ function $move_3(this$static, idx) {
|
|
|
1095
1069
|
}
|
|
1096
1070
|
|
|
1097
1071
|
function $setTwist_0(this$static, idx) {
|
|
1098
|
-
|
|
1072
|
+
let i_0, twst;
|
|
1099
1073
|
twst = 0;
|
|
1100
1074
|
for (i_0 = 6; i_0 >= 0; --i_0) {
|
|
1101
1075
|
twst += this$static.co[i_0] = idx % 3;
|
|
@@ -1105,7 +1079,7 @@ function $setTwist_0(this$static, idx) {
|
|
|
1105
1079
|
}
|
|
1106
1080
|
|
|
1107
1081
|
function CornMult_0(a, b, prod) {
|
|
1108
|
-
|
|
1082
|
+
let corn, ori, oriA, oriB;
|
|
1109
1083
|
for (corn = 0; corn < 8; ++corn) {
|
|
1110
1084
|
prod.cp[corn] = a.cp[b.cp[corn]];
|
|
1111
1085
|
oriA = a.co[b.cp[corn]];
|
|
@@ -1133,7 +1107,7 @@ function CornerCube_2(randomUIntBelow) {
|
|
|
1133
1107
|
}
|
|
1134
1108
|
|
|
1135
1109
|
function initMove_0() {
|
|
1136
|
-
|
|
1110
|
+
let a, p_0;
|
|
1137
1111
|
moveCube_0[0] = new CornerCube_1(15120, 0);
|
|
1138
1112
|
moveCube_0[3] = new CornerCube_1(21021, 1494);
|
|
1139
1113
|
moveCube_0[6] = new CornerCube_1(8064, 1236);
|
|
@@ -1157,7 +1131,7 @@ defineSeed(
|
|
|
1157
1131
|
CornerCube_2,
|
|
1158
1132
|
);
|
|
1159
1133
|
_.temps = null;
|
|
1160
|
-
|
|
1134
|
+
let moveCube_0;
|
|
1161
1135
|
|
|
1162
1136
|
let ran$clinit_Edge3 = false;
|
|
1163
1137
|
function $clinit_Edge3() {
|
|
@@ -1165,10 +1139,6 @@ function $clinit_Edge3() {
|
|
|
1165
1139
|
return;
|
|
1166
1140
|
}
|
|
1167
1141
|
ran$clinit_Edge3 = true;
|
|
1168
|
-
prunValues = [
|
|
1169
|
-
1, 4, 16, 55, 324, 1922, 12275, 77640, 485359, 2778197, 11742425, 27492416,
|
|
1170
|
-
31002941, 31006080,
|
|
1171
|
-
];
|
|
1172
1142
|
eprun = createArray(1937880);
|
|
1173
1143
|
sym2raw_0 = createArray(1538);
|
|
1174
1144
|
symstate = createArray(1538);
|
|
@@ -1183,8 +1153,7 @@ function $clinit_Edge3() {
|
|
|
1183
1153
|
}
|
|
1184
1154
|
|
|
1185
1155
|
function $circlex(this$static, a, b, c, d) {
|
|
1186
|
-
|
|
1187
|
-
temp = this$static.edgeo[d];
|
|
1156
|
+
const temp = this$static.edgeo[d];
|
|
1188
1157
|
this$static.edgeo[d] = this$static.edge[c];
|
|
1189
1158
|
this$static.edge[c] = this$static.edgeo[b];
|
|
1190
1159
|
this$static.edgeo[b] = this$static.edge[a];
|
|
@@ -1192,7 +1161,7 @@ function $circlex(this$static, a, b, c, d) {
|
|
|
1192
1161
|
}
|
|
1193
1162
|
|
|
1194
1163
|
function $get_2(this$static, end) {
|
|
1195
|
-
|
|
1164
|
+
let i_0, idx, v, valh, vall;
|
|
1196
1165
|
this$static.isStd || $std(this$static);
|
|
1197
1166
|
idx = 0;
|
|
1198
1167
|
vall = 1985229328;
|
|
@@ -1213,13 +1182,13 @@ function $get_2(this$static, end) {
|
|
|
1213
1182
|
}
|
|
1214
1183
|
|
|
1215
1184
|
function $getsym_0(this$static) {
|
|
1216
|
-
|
|
1217
|
-
cord1x = $get_2(this$static, 4);
|
|
1185
|
+
let symcord1x;
|
|
1186
|
+
const cord1x = $get_2(this$static, 4);
|
|
1218
1187
|
symcord1x = raw2sym_1[cord1x];
|
|
1219
|
-
symx = symcord1x & 7;
|
|
1188
|
+
const symx = symcord1x & 7;
|
|
1220
1189
|
symcord1x >>= 3;
|
|
1221
1190
|
$rotate_0(this$static, symx);
|
|
1222
|
-
cord2x = $get_2(this$static, 10) % 20160;
|
|
1191
|
+
const cord2x = $get_2(this$static, 10) % 20160;
|
|
1223
1192
|
return symcord1x * 20160 + cord2x;
|
|
1224
1193
|
}
|
|
1225
1194
|
|
|
@@ -1361,7 +1330,7 @@ function $rotate_0(this$static, r) {
|
|
|
1361
1330
|
}
|
|
1362
1331
|
|
|
1363
1332
|
function $set_4(this$static, idx) {
|
|
1364
|
-
|
|
1333
|
+
let i_0, p_0, parity, v, vall, valh;
|
|
1365
1334
|
vall = 0x76543210;
|
|
1366
1335
|
valh = 0xba98;
|
|
1367
1336
|
parity = 0;
|
|
@@ -1374,11 +1343,11 @@ function $set_4(this$static, idx) {
|
|
|
1374
1343
|
if (v >= 32) {
|
|
1375
1344
|
v = v - 32;
|
|
1376
1345
|
this$static.edge[i_0] = (valh >> v) & 15;
|
|
1377
|
-
|
|
1346
|
+
const m = (1 << v) - 1;
|
|
1378
1347
|
valh = (valh & m) + ((valh >> 4) & ~m);
|
|
1379
1348
|
} else {
|
|
1380
1349
|
this$static.edge[i_0] = (vall >> v) & 15;
|
|
1381
|
-
|
|
1350
|
+
const m = (1 << v) - 1;
|
|
1382
1351
|
vall = (vall & m) + ((vall >>> 4) & ~m) + (valh << 28);
|
|
1383
1352
|
valh = valh >> 4;
|
|
1384
1353
|
}
|
|
@@ -1396,7 +1365,7 @@ function $set_4(this$static, idx) {
|
|
|
1396
1365
|
}
|
|
1397
1366
|
|
|
1398
1367
|
function $set_5(this$static, e) {
|
|
1399
|
-
|
|
1368
|
+
let i_0;
|
|
1400
1369
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
1401
1370
|
this$static.edge[i_0] = e.edge[i_0];
|
|
1402
1371
|
this$static.edgeo[i_0] = e.edgeo[i_0];
|
|
@@ -1405,7 +1374,7 @@ function $set_5(this$static, e) {
|
|
|
1405
1374
|
}
|
|
1406
1375
|
|
|
1407
1376
|
function $set_6(this$static, c) {
|
|
1408
|
-
|
|
1377
|
+
let i_0, parity, s, t;
|
|
1409
1378
|
this$static.temp === null && (this$static.temp = createArray(12));
|
|
1410
1379
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
1411
1380
|
this$static.temp[i_0] = i_0;
|
|
@@ -1430,7 +1399,7 @@ function $set_6(this$static, c) {
|
|
|
1430
1399
|
}
|
|
1431
1400
|
|
|
1432
1401
|
function $std(this$static) {
|
|
1433
|
-
|
|
1402
|
+
let i_0;
|
|
1434
1403
|
this$static.temp === null && (this$static.temp = createArray(12));
|
|
1435
1404
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
1436
1405
|
this$static.temp[this$static.edgeo[i_0]] = i_0;
|
|
@@ -1443,7 +1412,7 @@ function $std(this$static) {
|
|
|
1443
1412
|
}
|
|
1444
1413
|
|
|
1445
1414
|
function $swap_0(arr, a, b, c, d) {
|
|
1446
|
-
|
|
1415
|
+
let temp;
|
|
1447
1416
|
temp = arr[a];
|
|
1448
1417
|
arr[a] = arr[c];
|
|
1449
1418
|
arr[c] = temp;
|
|
@@ -1453,8 +1422,7 @@ function $swap_0(arr, a, b, c, d) {
|
|
|
1453
1422
|
}
|
|
1454
1423
|
|
|
1455
1424
|
function $swapx(this$static, x, y) {
|
|
1456
|
-
|
|
1457
|
-
temp = this$static.edge[x];
|
|
1425
|
+
const temp = this$static.edge[x];
|
|
1458
1426
|
this$static.edge[x] = this$static.edgeo[y];
|
|
1459
1427
|
this$static.edgeo[y] = temp;
|
|
1460
1428
|
}
|
|
@@ -1465,7 +1433,7 @@ function Edge3_0() {
|
|
|
1465
1433
|
}
|
|
1466
1434
|
|
|
1467
1435
|
function createPrun_0() {
|
|
1468
|
-
|
|
1436
|
+
let chk,
|
|
1469
1437
|
cord1,
|
|
1470
1438
|
cord1x,
|
|
1471
1439
|
cord2,
|
|
@@ -1473,11 +1441,8 @@ function createPrun_0() {
|
|
|
1473
1441
|
dep1m3,
|
|
1474
1442
|
depm3,
|
|
1475
1443
|
depth,
|
|
1476
|
-
e,
|
|
1477
1444
|
end,
|
|
1478
|
-
f,
|
|
1479
1445
|
find_0,
|
|
1480
|
-
g,
|
|
1481
1446
|
i_0,
|
|
1482
1447
|
i_,
|
|
1483
1448
|
idx,
|
|
@@ -1490,9 +1455,9 @@ function createPrun_0() {
|
|
|
1490
1455
|
symcord1x,
|
|
1491
1456
|
symx,
|
|
1492
1457
|
val;
|
|
1493
|
-
e = new Edge3_0();
|
|
1494
|
-
f = new Edge3_0();
|
|
1495
|
-
g = new Edge3_0();
|
|
1458
|
+
const e = new Edge3_0();
|
|
1459
|
+
const f = new Edge3_0();
|
|
1460
|
+
const g = new Edge3_0();
|
|
1496
1461
|
fill_0(eprun);
|
|
1497
1462
|
depth = 0;
|
|
1498
1463
|
done_0 = 1;
|
|
@@ -1567,9 +1532,9 @@ function getPruning_0(table, index) {
|
|
|
1567
1532
|
}
|
|
1568
1533
|
|
|
1569
1534
|
function getmvrot(ep, mrIdx, end) {
|
|
1570
|
-
|
|
1571
|
-
movo = mvroto[mrIdx];
|
|
1572
|
-
mov = mvrot[mrIdx];
|
|
1535
|
+
let i_0, idx, v, valh, vall;
|
|
1536
|
+
const movo = mvroto[mrIdx];
|
|
1537
|
+
const mov = mvrot[mrIdx];
|
|
1573
1538
|
idx = 0;
|
|
1574
1539
|
vall = 1985229328;
|
|
1575
1540
|
valh = 47768;
|
|
@@ -1589,19 +1554,18 @@ function getmvrot(ep, mrIdx, end) {
|
|
|
1589
1554
|
}
|
|
1590
1555
|
|
|
1591
1556
|
function getprun(edge) {
|
|
1592
|
-
|
|
1557
|
+
let cord1,
|
|
1593
1558
|
cord1x,
|
|
1594
1559
|
cord2,
|
|
1595
1560
|
cord2x,
|
|
1596
1561
|
depm3,
|
|
1597
1562
|
depth,
|
|
1598
|
-
e,
|
|
1599
1563
|
idx,
|
|
1600
1564
|
m_0,
|
|
1601
1565
|
symcord1,
|
|
1602
1566
|
symcord1x,
|
|
1603
1567
|
symx;
|
|
1604
|
-
e = new Edge3_0();
|
|
1568
|
+
const e = new Edge3_0();
|
|
1605
1569
|
depth = 0;
|
|
1606
1570
|
depm3 = getPruning_0(eprun, edge);
|
|
1607
1571
|
if (depm3 === 3) {
|
|
@@ -1631,8 +1595,7 @@ function getprun(edge) {
|
|
|
1631
1595
|
}
|
|
1632
1596
|
|
|
1633
1597
|
function getprun_0(edge, prun) {
|
|
1634
|
-
|
|
1635
|
-
depm3 = getPruning_0(eprun, edge);
|
|
1598
|
+
const depm3 = getPruning_0(eprun, edge);
|
|
1636
1599
|
if (depm3 === 3) {
|
|
1637
1600
|
return 10;
|
|
1638
1601
|
}
|
|
@@ -1641,8 +1604,8 @@ function getprun_0(edge, prun) {
|
|
|
1641
1604
|
}
|
|
1642
1605
|
|
|
1643
1606
|
function initMvrot() {
|
|
1644
|
-
|
|
1645
|
-
e = new Edge3_0();
|
|
1607
|
+
let i_0, m_0, r;
|
|
1608
|
+
const e = new Edge3_0();
|
|
1646
1609
|
for (m_0 = 0; m_0 < 20; ++m_0) {
|
|
1647
1610
|
for (r = 0; r < 8; ++r) {
|
|
1648
1611
|
$set_4(e, 0);
|
|
@@ -1660,9 +1623,9 @@ function initMvrot() {
|
|
|
1660
1623
|
}
|
|
1661
1624
|
|
|
1662
1625
|
function initRaw2Sym() {
|
|
1663
|
-
|
|
1664
|
-
e = new Edge3_0();
|
|
1665
|
-
occ = createArray(1485);
|
|
1626
|
+
let count, i_0, idx, j;
|
|
1627
|
+
const e = new Edge3_0();
|
|
1628
|
+
const occ = createArray(1485);
|
|
1666
1629
|
for (i_0 = 0; i_0 < 1485; i_0++) {
|
|
1667
1630
|
occ[i_0] = 0;
|
|
1668
1631
|
}
|
|
@@ -1693,13 +1656,12 @@ function setPruning_0(table, index, value) {
|
|
|
1693
1656
|
defineSeed(158, 1, makeCastMap([Q$Edge3]), Edge3_0);
|
|
1694
1657
|
_.isStd = true;
|
|
1695
1658
|
_.temp = null;
|
|
1696
|
-
|
|
1659
|
+
let FullEdgeMap,
|
|
1697
1660
|
done_0 = 0,
|
|
1698
1661
|
eprun,
|
|
1699
1662
|
factX,
|
|
1700
1663
|
mvrot,
|
|
1701
1664
|
mvroto,
|
|
1702
|
-
prunValues,
|
|
1703
1665
|
raw2sym_1,
|
|
1704
1666
|
sym2raw_0,
|
|
1705
1667
|
syminv_0,
|
|
@@ -1711,28 +1673,10 @@ function $clinit_EdgeCube() {
|
|
|
1711
1673
|
return;
|
|
1712
1674
|
}
|
|
1713
1675
|
ran$clinit_EdgeCube = true;
|
|
1714
|
-
EdgeColor = [
|
|
1715
|
-
[2, 0],
|
|
1716
|
-
[5, 0],
|
|
1717
|
-
[3, 0],
|
|
1718
|
-
[4, 0],
|
|
1719
|
-
[3, 1],
|
|
1720
|
-
[5, 1],
|
|
1721
|
-
[2, 1],
|
|
1722
|
-
[4, 1],
|
|
1723
|
-
[2, 5],
|
|
1724
|
-
[3, 5],
|
|
1725
|
-
[3, 4],
|
|
1726
|
-
[2, 4],
|
|
1727
|
-
];
|
|
1728
|
-
EdgeMap = [
|
|
1729
|
-
19, 37, 46, 10, 52, 43, 25, 16, 21, 50, 48, 23, 7, 3, 1, 5, 34, 30, 28, 32,
|
|
1730
|
-
41, 39, 14, 12,
|
|
1731
|
-
];
|
|
1732
1676
|
}
|
|
1733
1677
|
|
|
1734
1678
|
function $checkEdge(this$static) {
|
|
1735
|
-
|
|
1679
|
+
let ck, i_0, parity;
|
|
1736
1680
|
ck = 0;
|
|
1737
1681
|
parity = false;
|
|
1738
1682
|
for (i_0 = 0; i_0 < 12; ++i_0) {
|
|
@@ -1744,15 +1688,14 @@ function $checkEdge(this$static) {
|
|
|
1744
1688
|
}
|
|
1745
1689
|
|
|
1746
1690
|
function $copy_3(this$static, c) {
|
|
1747
|
-
|
|
1691
|
+
let i_0;
|
|
1748
1692
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
1749
1693
|
this$static.ep[i_0] = c.ep[i_0];
|
|
1750
1694
|
}
|
|
1751
1695
|
}
|
|
1752
1696
|
|
|
1753
1697
|
function $move_5(this$static, m_0) {
|
|
1754
|
-
|
|
1755
|
-
key = m_0 % 3;
|
|
1698
|
+
const key = m_0 % 3;
|
|
1756
1699
|
m_0 = ~~(m_0 / 3);
|
|
1757
1700
|
switch (m_0) {
|
|
1758
1701
|
case 0:
|
|
@@ -1812,7 +1755,7 @@ function $move_5(this$static, m_0) {
|
|
|
1812
1755
|
}
|
|
1813
1756
|
|
|
1814
1757
|
function EdgeCube_0() {
|
|
1815
|
-
|
|
1758
|
+
let i_0;
|
|
1816
1759
|
this.ep = createArray(24);
|
|
1817
1760
|
for (i_0 = 0; i_0 < 24; ++i_0) {
|
|
1818
1761
|
this.ep[i_0] = i_0;
|
|
@@ -1820,7 +1763,7 @@ function EdgeCube_0() {
|
|
|
1820
1763
|
}
|
|
1821
1764
|
|
|
1822
1765
|
function EdgeCube_1(randomUIntBelow) {
|
|
1823
|
-
|
|
1766
|
+
let i_0, m_0, t;
|
|
1824
1767
|
EdgeCube_0.call(this);
|
|
1825
1768
|
for (i_0 = 0; i_0 < 23; ++i_0) {
|
|
1826
1769
|
t = i_0 + randomUIntBelow(24 - i_0);
|
|
@@ -1833,7 +1776,6 @@ function EdgeCube_1(randomUIntBelow) {
|
|
|
1833
1776
|
}
|
|
1834
1777
|
|
|
1835
1778
|
defineSeed(159, 1, {}, EdgeCube_0, EdgeCube_1);
|
|
1836
|
-
var EdgeColor, EdgeMap;
|
|
1837
1779
|
|
|
1838
1780
|
let ran$clinit_FullCube_0 = false;
|
|
1839
1781
|
function $clinit_FullCube_0() {
|
|
@@ -1853,7 +1795,7 @@ function $compareTo_1(this$static, c) {
|
|
|
1853
1795
|
}
|
|
1854
1796
|
|
|
1855
1797
|
function $copy_4(this$static, c) {
|
|
1856
|
-
|
|
1798
|
+
let i_0;
|
|
1857
1799
|
$copy_3(this$static.edge, c.edge);
|
|
1858
1800
|
$copy_1(this$static.center, c.center);
|
|
1859
1801
|
$copy_2(this$static.corner, c.corner);
|
|
@@ -1900,8 +1842,10 @@ function $getEdge(this$static) {
|
|
|
1900
1842
|
}
|
|
1901
1843
|
|
|
1902
1844
|
function $getMoveString(this$static) {
|
|
1903
|
-
|
|
1904
|
-
fixedMoves = new Array(
|
|
1845
|
+
let i_0, idx, move, rot, sb, sym;
|
|
1846
|
+
const fixedMoves = new Array(
|
|
1847
|
+
this$static.moveLength - (this$static.add1 ? 2 : 0),
|
|
1848
|
+
);
|
|
1905
1849
|
idx = 0;
|
|
1906
1850
|
for (i_0 = 0; i_0 < this$static.length1; ++i_0) {
|
|
1907
1851
|
fixedMoves[idx++] = this$static.moveBuffer[i_0];
|
|
@@ -1920,7 +1864,7 @@ function $getMoveString(this$static) {
|
|
|
1920
1864
|
fixedMoves[idx++] = symmove[sym][this$static.moveBuffer[i_0]];
|
|
1921
1865
|
}
|
|
1922
1866
|
}
|
|
1923
|
-
finishSym = symmult[syminv[sym]][getSolvedSym($getCenter(this$static))];
|
|
1867
|
+
const finishSym = symmult[syminv[sym]][getSolvedSym($getCenter(this$static))];
|
|
1924
1868
|
sb = "";
|
|
1925
1869
|
sym = finishSym;
|
|
1926
1870
|
for (i_0 = idx - 1; i_0 >= 0; --i_0) {
|
|
@@ -1985,7 +1929,7 @@ _.length3 = 0;
|
|
|
1985
1929
|
_.moveLength = 0;
|
|
1986
1930
|
_.sym = 0;
|
|
1987
1931
|
_.value = 0;
|
|
1988
|
-
|
|
1932
|
+
let move2rot;
|
|
1989
1933
|
|
|
1990
1934
|
function $compare(c1, c2) {
|
|
1991
1935
|
return c2.value - c1.value;
|
|
@@ -2008,7 +1952,7 @@ function $clinit_Moves() {
|
|
|
2008
1952
|
return;
|
|
2009
1953
|
}
|
|
2010
1954
|
ran$clinit_Moves = true;
|
|
2011
|
-
|
|
1955
|
+
let i_0, j;
|
|
2012
1956
|
move2str_1 = [
|
|
2013
1957
|
"U ",
|
|
2014
1958
|
"U2 ",
|
|
@@ -2115,7 +2059,7 @@ function $clinit_Moves() {
|
|
|
2115
2059
|
}
|
|
2116
2060
|
}
|
|
2117
2061
|
|
|
2118
|
-
|
|
2062
|
+
let ckmv,
|
|
2119
2063
|
ckmv2_0,
|
|
2120
2064
|
ckmv3,
|
|
2121
2065
|
move2std,
|
|
@@ -2128,34 +2072,25 @@ var ckmv,
|
|
|
2128
2072
|
std3move;
|
|
2129
2073
|
|
|
2130
2074
|
function $doSearch(this$static) {
|
|
2131
|
-
|
|
2075
|
+
let MAX_LENGTH2,
|
|
2132
2076
|
MAX_LENGTH3,
|
|
2133
2077
|
ct,
|
|
2134
2078
|
edge,
|
|
2135
2079
|
eparity,
|
|
2136
|
-
fb,
|
|
2137
|
-
fbprun,
|
|
2138
2080
|
i_0,
|
|
2139
2081
|
index,
|
|
2140
|
-
length_0,
|
|
2141
2082
|
length12,
|
|
2142
2083
|
length123,
|
|
2143
|
-
p1SolsArr,
|
|
2144
2084
|
prun,
|
|
2145
|
-
rl,
|
|
2146
|
-
rlprun,
|
|
2147
2085
|
s2ct,
|
|
2148
|
-
s2rl
|
|
2149
|
-
solcube,
|
|
2150
|
-
ud,
|
|
2151
|
-
udprun;
|
|
2086
|
+
s2rl;
|
|
2152
2087
|
this$static.solution = "";
|
|
2153
|
-
ud = $getsym(new Center1_1($getCenter(this$static.c), 0));
|
|
2154
|
-
fb = $getsym(new Center1_1($getCenter(this$static.c), 1));
|
|
2155
|
-
rl = $getsym(new Center1_1($getCenter(this$static.c), 2));
|
|
2156
|
-
udprun = csprun[~~ud >> 6];
|
|
2157
|
-
fbprun = csprun[~~fb >> 6];
|
|
2158
|
-
rlprun = csprun[~~rl >> 6];
|
|
2088
|
+
const ud = $getsym(new Center1_1($getCenter(this$static.c), 0));
|
|
2089
|
+
const fb = $getsym(new Center1_1($getCenter(this$static.c), 1));
|
|
2090
|
+
const rl = $getsym(new Center1_1($getCenter(this$static.c), 2));
|
|
2091
|
+
const udprun = csprun[~~ud >> 6];
|
|
2092
|
+
const fbprun = csprun[~~fb >> 6];
|
|
2093
|
+
const rlprun = csprun[~~rl >> 6];
|
|
2159
2094
|
this$static.p1SolsCnt = 0;
|
|
2160
2095
|
this$static.arr2idx = 0;
|
|
2161
2096
|
$clear(this$static.p1sols.heap);
|
|
@@ -2194,7 +2129,7 @@ function $doSearch(this$static) {
|
|
|
2194
2129
|
break;
|
|
2195
2130
|
}
|
|
2196
2131
|
}
|
|
2197
|
-
p1SolsArr = $toArray_1(
|
|
2132
|
+
const p1SolsArr = $toArray_1(
|
|
2198
2133
|
this$static.p1sols,
|
|
2199
2134
|
initDim(
|
|
2200
2135
|
_3Lcs_threephase_FullCube_2_classLit,
|
|
@@ -2291,10 +2226,10 @@ function $doSearch(this$static) {
|
|
|
2291
2226
|
}
|
|
2292
2227
|
++MAX_LENGTH3;
|
|
2293
2228
|
} while (length123 === 100);
|
|
2294
|
-
solcube = new FullCube_4(this$static.arr2[index]);
|
|
2229
|
+
const solcube = new FullCube_4(this$static.arr2[index]);
|
|
2295
2230
|
this$static.length1 = solcube.length1;
|
|
2296
2231
|
this$static.length2 = solcube.length2;
|
|
2297
|
-
length_0 = length123 - this$static.length1 - this$static.length2;
|
|
2232
|
+
const length_0 = length123 - this$static.length1 - this$static.length2;
|
|
2298
2233
|
for (i_0 = 0; i_0 < length_0; ++i_0) {
|
|
2299
2234
|
$move_6(solcube, move3std[this$static.move3[i_0]]);
|
|
2300
2235
|
}
|
|
@@ -2302,7 +2237,7 @@ function $doSearch(this$static) {
|
|
|
2302
2237
|
}
|
|
2303
2238
|
|
|
2304
2239
|
function $init2_0(this$static, sym) {
|
|
2305
|
-
|
|
2240
|
+
let i_0, next;
|
|
2306
2241
|
$copy_4(this$static.c1, this$static.c);
|
|
2307
2242
|
for (i_0 = 0; i_0 < this$static.length1; ++i_0) {
|
|
2308
2243
|
$move_6(this$static.c1, this$static.move1[i_0]);
|
|
@@ -2333,9 +2268,9 @@ function $init2_0(this$static, sym) {
|
|
|
2333
2268
|
$getCenter(this$static.c1),
|
|
2334
2269
|
parity_0($getEdge(this$static.c1).ep),
|
|
2335
2270
|
);
|
|
2336
|
-
s2ct = $getct(this$static.ct2);
|
|
2337
|
-
s2rl = $getrl(this$static.ct2);
|
|
2338
|
-
ctp = ctprun[s2ct * 70 + s2rl];
|
|
2271
|
+
const s2ct = $getct(this$static.ct2);
|
|
2272
|
+
const s2rl = $getrl(this$static.ct2);
|
|
2273
|
+
const ctp = ctprun[s2ct * 70 + s2rl];
|
|
2339
2274
|
this$static.c1.value = ctp + this$static.length1;
|
|
2340
2275
|
this$static.c1.length1 = this$static.length1;
|
|
2341
2276
|
this$static.c1.add1 = this$static.add1;
|
|
@@ -2352,7 +2287,7 @@ function $init2_0(this$static, sym) {
|
|
|
2352
2287
|
}
|
|
2353
2288
|
|
|
2354
2289
|
function $init3(this$static) {
|
|
2355
|
-
|
|
2290
|
+
let i_0;
|
|
2356
2291
|
$copy_4(this$static.c2, this$static.c1);
|
|
2357
2292
|
for (i_0 = 0; i_0 < this$static.length2; ++i_0) {
|
|
2358
2293
|
$move_6(this$static.c2, this$static.move2[i_0]);
|
|
@@ -2360,15 +2295,15 @@ function $init3(this$static) {
|
|
|
2360
2295
|
if (!$checkEdge($getEdge(this$static.c2))) {
|
|
2361
2296
|
return false;
|
|
2362
2297
|
}
|
|
2363
|
-
eparity = $set_6(this$static.e12, $getEdge(this$static.c2));
|
|
2298
|
+
const eparity = $set_6(this$static.e12, $getEdge(this$static.c2));
|
|
2364
2299
|
$set_3(
|
|
2365
2300
|
this$static.ct3,
|
|
2366
2301
|
$getCenter(this$static.c2),
|
|
2367
2302
|
eparity ^ parity_0($getCorner(this$static.c2).cp),
|
|
2368
2303
|
);
|
|
2369
|
-
ct = $getct_0(this$static.ct3);
|
|
2304
|
+
const ct = $getct_0(this$static.ct3);
|
|
2370
2305
|
$get_2(this$static.e12, 10);
|
|
2371
|
-
prun = getprun($getsym_0(this$static.e12));
|
|
2306
|
+
const prun = getprun($getsym_0(this$static.e12));
|
|
2372
2307
|
!this$static.arr2[this$static.arr2idx]
|
|
2373
2308
|
? (this$static.arr2[this$static.arr2idx] = new FullCube_4(this$static.c2))
|
|
2374
2309
|
: $copy_4(this$static.arr2[this$static.arr2idx], this$static.c2);
|
|
@@ -2387,7 +2322,7 @@ function $randomState(this$static, randomUIntBelow) {
|
|
|
2387
2322
|
}
|
|
2388
2323
|
|
|
2389
2324
|
function $search1(this$static, ct, sym, maxl, lm, depth) {
|
|
2390
|
-
|
|
2325
|
+
let axis, ctx, m_0, power, prun, symx;
|
|
2391
2326
|
if (ct === 0) {
|
|
2392
2327
|
return maxl === 0 && $init2_0(this$static, sym);
|
|
2393
2328
|
}
|
|
@@ -2417,7 +2352,7 @@ function $search1(this$static, ct, sym, maxl, lm, depth) {
|
|
|
2417
2352
|
}
|
|
2418
2353
|
|
|
2419
2354
|
function $search2(this$static, ct, rl, maxl, lm, depth) {
|
|
2420
|
-
|
|
2355
|
+
let ctx, m_0, prun, rlx;
|
|
2421
2356
|
if (ct === 0 && ctprun[rl] === 0) {
|
|
2422
2357
|
return maxl === 0 && $init3(this$static);
|
|
2423
2358
|
}
|
|
@@ -2442,7 +2377,7 @@ function $search2(this$static, ct, rl, maxl, lm, depth) {
|
|
|
2442
2377
|
}
|
|
2443
2378
|
|
|
2444
2379
|
function $search3(this$static, edge, ct, prun, maxl, lm, depth) {
|
|
2445
|
-
|
|
2380
|
+
let cord1x, cord2x, ctx, edgex, m_0, prun1, prunx, symcord1x, symx;
|
|
2446
2381
|
if (maxl === 0) {
|
|
2447
2382
|
return edge === 0 && ct === 0;
|
|
2448
2383
|
}
|
|
@@ -2479,7 +2414,7 @@ function $search3(this$static, edge, ct, prun, maxl, lm, depth) {
|
|
|
2479
2414
|
}
|
|
2480
2415
|
|
|
2481
2416
|
function Search_4() {
|
|
2482
|
-
|
|
2417
|
+
let i_0;
|
|
2483
2418
|
this.p1sols = new PriorityQueue_0(new FullCube$ValueComparator_0());
|
|
2484
2419
|
this.move1 = createArray(15);
|
|
2485
2420
|
this.move2 = createArray(20);
|
|
@@ -2522,7 +2457,7 @@ _.length1 = 0;
|
|
|
2522
2457
|
_.length2 = 0;
|
|
2523
2458
|
_.p1SolsCnt = 0;
|
|
2524
2459
|
_.solution = "";
|
|
2525
|
-
|
|
2460
|
+
let inited_2 = false;
|
|
2526
2461
|
|
|
2527
2462
|
let ran$clinit_Util_0 = false;
|
|
2528
2463
|
function $clinit_Util_0() {
|
|
@@ -2530,11 +2465,10 @@ function $clinit_Util_0() {
|
|
|
2530
2465
|
return;
|
|
2531
2466
|
}
|
|
2532
2467
|
ran$clinit_Util_0 = true;
|
|
2533
|
-
colorMap4to3 = [85, 68, 70, 66, 82, 76];
|
|
2534
2468
|
}
|
|
2535
2469
|
|
|
2536
2470
|
function parity_0(arr) {
|
|
2537
|
-
|
|
2471
|
+
let i_0, j, len, parity;
|
|
2538
2472
|
parity = 0;
|
|
2539
2473
|
for (i_0 = 0, len = arr.length; i_0 < len; ++i_0) {
|
|
2540
2474
|
for (j = i_0; j < len; ++j) {
|
|
@@ -2545,7 +2479,7 @@ function parity_0(arr) {
|
|
|
2545
2479
|
}
|
|
2546
2480
|
|
|
2547
2481
|
function swap(arr, a, b, c, d, key) {
|
|
2548
|
-
|
|
2482
|
+
let temp;
|
|
2549
2483
|
switch (key) {
|
|
2550
2484
|
case 0:
|
|
2551
2485
|
temp = arr[d];
|
|
@@ -2572,13 +2506,10 @@ function swap(arr, a, b, c, d, key) {
|
|
|
2572
2506
|
}
|
|
2573
2507
|
}
|
|
2574
2508
|
|
|
2575
|
-
var colorMap4to3;
|
|
2576
|
-
|
|
2577
2509
|
function Class_0() {}
|
|
2578
2510
|
|
|
2579
2511
|
function createForArray(packageName, className, seedId, componentType) {
|
|
2580
|
-
|
|
2581
|
-
clazz = new Class_0();
|
|
2512
|
+
const clazz = new Class_0();
|
|
2582
2513
|
clazz.typeName = packageName + className;
|
|
2583
2514
|
isInstantiable(seedId !== 0 ? -seedId : 0) &&
|
|
2584
2515
|
setClassLiteral(seedId !== 0 ? -seedId : 0, clazz);
|
|
@@ -2589,8 +2520,7 @@ function createForArray(packageName, className, seedId, componentType) {
|
|
|
2589
2520
|
}
|
|
2590
2521
|
|
|
2591
2522
|
function createForClass(packageName, className, seedId, superclass) {
|
|
2592
|
-
|
|
2593
|
-
clazz = new Class_0();
|
|
2523
|
+
const clazz = new Class_0();
|
|
2594
2524
|
clazz.typeName = packageName + className;
|
|
2595
2525
|
isInstantiable(seedId) && setClassLiteral(seedId, clazz);
|
|
2596
2526
|
clazz.superclass = superclass;
|
|
@@ -2598,7 +2528,7 @@ function createForClass(packageName, className, seedId, superclass) {
|
|
|
2598
2528
|
}
|
|
2599
2529
|
|
|
2600
2530
|
function getSeedFunction(clazz) {
|
|
2601
|
-
|
|
2531
|
+
const func = seedTable[clazz.seedId];
|
|
2602
2532
|
clazz = null;
|
|
2603
2533
|
return func;
|
|
2604
2534
|
}
|
|
@@ -2608,13 +2538,13 @@ function isInstantiable(seedId) {
|
|
|
2608
2538
|
}
|
|
2609
2539
|
|
|
2610
2540
|
function setClassLiteral(seedId, clazz) {
|
|
2611
|
-
|
|
2541
|
+
let proto;
|
|
2612
2542
|
clazz.seedId = seedId;
|
|
2613
2543
|
if (seedId === 2) {
|
|
2614
2544
|
proto = String.prototype;
|
|
2615
2545
|
} else {
|
|
2616
2546
|
if (seedId > 0) {
|
|
2617
|
-
|
|
2547
|
+
let seed = getSeedFunction(clazz);
|
|
2618
2548
|
if (seed) {
|
|
2619
2549
|
proto = seed.prototype;
|
|
2620
2550
|
} else {
|
|
@@ -2668,22 +2598,20 @@ function $get_4(this$static, index) {
|
|
|
2668
2598
|
}
|
|
2669
2599
|
|
|
2670
2600
|
function $remove_0(this$static, index) {
|
|
2671
|
-
|
|
2672
|
-
previous = this$static.array[index];
|
|
2601
|
+
const previous = this$static.array[index];
|
|
2673
2602
|
splice_0(this$static.array, index, 1);
|
|
2674
2603
|
--this$static.size;
|
|
2675
2604
|
return previous;
|
|
2676
2605
|
}
|
|
2677
2606
|
|
|
2678
2607
|
function $set_7(this$static, index, o) {
|
|
2679
|
-
|
|
2680
|
-
previous = this$static.array[index];
|
|
2608
|
+
const previous = this$static.array[index];
|
|
2681
2609
|
setCheck(this$static.array, index, o);
|
|
2682
2610
|
return previous;
|
|
2683
2611
|
}
|
|
2684
2612
|
|
|
2685
2613
|
function $toArray_0(this$static, out) {
|
|
2686
|
-
|
|
2614
|
+
let i_0;
|
|
2687
2615
|
out.length < this$static.size && (out = createFrom(out, this$static.size));
|
|
2688
2616
|
for (i_0 = 0; i_0 < this$static.size; ++i_0) {
|
|
2689
2617
|
setCheck(out, i_0, this$static.array[i_0]);
|
|
@@ -2703,7 +2631,7 @@ function splice_0(array, index, deleteCount) {
|
|
|
2703
2631
|
_.size = 0;
|
|
2704
2632
|
|
|
2705
2633
|
function binarySearch_0(sortedArray, key) {
|
|
2706
|
-
|
|
2634
|
+
let high, low, mid, midVal;
|
|
2707
2635
|
low = 0;
|
|
2708
2636
|
high = sortedArray.length - 1;
|
|
2709
2637
|
while (low <= high) {
|
|
@@ -2725,16 +2653,16 @@ function fill_0(a) {
|
|
|
2725
2653
|
}
|
|
2726
2654
|
|
|
2727
2655
|
function fill_1(a, toIndex) {
|
|
2728
|
-
|
|
2656
|
+
let i_0;
|
|
2729
2657
|
for (i_0 = 0; i_0 < toIndex; ++i_0) {
|
|
2730
2658
|
a[i_0] = -1;
|
|
2731
2659
|
}
|
|
2732
2660
|
}
|
|
2733
2661
|
|
|
2734
2662
|
function $mergeHeaps(this$static, node) {
|
|
2735
|
-
|
|
2736
|
-
heapSize = this$static.heap.size;
|
|
2737
|
-
value = $get_4(this$static.heap, node);
|
|
2663
|
+
let smallestChild, leftChild, rightChild, smallestChild_0;
|
|
2664
|
+
const heapSize = this$static.heap.size;
|
|
2665
|
+
const value = $get_4(this$static.heap, node);
|
|
2738
2666
|
while (node * 2 + 1 < heapSize) {
|
|
2739
2667
|
smallestChild =
|
|
2740
2668
|
((leftChild = 2 * node + 1),
|
|
@@ -2757,7 +2685,7 @@ function $mergeHeaps(this$static, node) {
|
|
|
2757
2685
|
}
|
|
2758
2686
|
|
|
2759
2687
|
function $offer(this$static, e) {
|
|
2760
|
-
|
|
2688
|
+
let childNode, node;
|
|
2761
2689
|
node = this$static.heap.size;
|
|
2762
2690
|
$add_0(this$static.heap, e);
|
|
2763
2691
|
while (node > 0) {
|
|
@@ -2774,18 +2702,16 @@ function $offer(this$static, e) {
|
|
|
2774
2702
|
}
|
|
2775
2703
|
|
|
2776
2704
|
function $poll(this$static) {
|
|
2777
|
-
var value;
|
|
2778
2705
|
if (this$static.heap.size === 0) {
|
|
2779
2706
|
return null;
|
|
2780
2707
|
}
|
|
2781
|
-
value = $get_4(this$static.heap, 0);
|
|
2708
|
+
const value = $get_4(this$static.heap, 0);
|
|
2782
2709
|
$removeAtIndex(this$static);
|
|
2783
2710
|
return value;
|
|
2784
2711
|
}
|
|
2785
2712
|
|
|
2786
2713
|
function $removeAtIndex(this$static) {
|
|
2787
|
-
|
|
2788
|
-
lastValue = $remove_0(this$static.heap, this$static.heap.size - 1);
|
|
2714
|
+
const lastValue = $remove_0(this$static.heap, this$static.heap.size - 1);
|
|
2789
2715
|
if (0 < this$static.heap.size) {
|
|
2790
2716
|
$set_7(this$static.heap, 0, lastValue);
|
|
2791
2717
|
$mergeHeaps(this$static, 0);
|
|
@@ -2805,7 +2731,7 @@ defineSeed(239, 1, {}, PriorityQueue_0);
|
|
|
2805
2731
|
_.cmp = null;
|
|
2806
2732
|
_.heap = null;
|
|
2807
2733
|
|
|
2808
|
-
|
|
2734
|
+
const Ljava_lang_Object_2_classLit = createForClass(
|
|
2809
2735
|
"java.lang.",
|
|
2810
2736
|
"Object",
|
|
2811
2737
|
1,
|
|
@@ -2830,7 +2756,7 @@ var Ljava_lang_Object_2_classLit = createForClass(
|
|
|
2830
2756
|
Lcs_threephase_FullCube_2_classLit,
|
|
2831
2757
|
);
|
|
2832
2758
|
|
|
2833
|
-
|
|
2759
|
+
let searcher;
|
|
2834
2760
|
|
|
2835
2761
|
let raninit = false;
|
|
2836
2762
|
function init() {
|
|
@@ -2844,7 +2770,6 @@ function init() {
|
|
|
2844
2770
|
$clinit_Center2();
|
|
2845
2771
|
$clinit_Center3();
|
|
2846
2772
|
$clinit_Edge3();
|
|
2847
|
-
$clinit_CenterCube();
|
|
2848
2773
|
$clinit_CornerCube();
|
|
2849
2774
|
$clinit_EdgeCube();
|
|
2850
2775
|
$clinit_FullCube_0();
|