-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-Q4G5UL72.js
6 lines (6 loc) · 20.9 KB
/
chunk-Q4G5UL72.js
1
2
3
4
5
6
var ue=!1;var O=class{is(e){return this instanceof e}as(e){return this instanceof e?this:null}},d=class extends O{constructor(){super(),ue&&Object.defineProperty(this,"_debugStr",{get:()=>this.toString()})}get log(){return console.log.bind(console,this,this.toString())}};function Z(r,e=!0){if(!e)return r;switch(r){case 1:return-1;case-1:return 1}}function J(r,e){return e===-1?Array.from(r).reverse():r}function Y(r){return Array.from(r).reverse()}function*Me(r,e){e===-1?yield*pe(r):yield*r}function*pe(r){for(let e of Array.from(r).reverse())yield e}var R="2^31 - 1";var q={caretNISSNotationEnabled:!0};function me(r){"caretNISSNotationEnabled"in r&&(q.caretNISSNotationEnabled=!!r.caretNISSNotationEnabled)}var p=class r extends d{#e;#t;constructor(e,t){super(),this.#e=C(e),this.#t=C(t)}get A(){return this.#e}get B(){return this.#t}isIdentical(e){let t=e.as(r);return!!(t?.A.isIdentical(this.A)&&t?.B.isIdentical(this.B))}invert(){return new r(this.#t,this.#e)}*experimentalExpand(e=1,t){t??=1/0,t===0?yield e===1?this:this.invert():e===1?(yield*this.A.experimentalExpand(1,t-1),yield*this.B.experimentalExpand(1,t-1),yield*this.A.experimentalExpand(-1,t-1),yield*this.B.experimentalExpand(-1,t-1)):(yield*this.B.experimentalExpand(1,t-1),yield*this.A.experimentalExpand(1,t-1),yield*this.B.experimentalExpand(-1,t-1),yield*this.A.experimentalExpand(-1,t-1))}toString(){return`[${this.#e.toString()}, ${this.#t.toString()}]`}};var m=class r extends d{#e;#t;constructor(e,t){super(),this.#e=C(e),this.#t=C(t)}get A(){return this.#e}get B(){return this.#t}isIdentical(e){let t=e.as(r);return!!(t?.A.isIdentical(this.A)&&t?.B.isIdentical(this.B))}invert(){return new r(this.#e,this.#t.invert())}*experimentalExpand(e,t){t??=1/0,t===0?yield e===1?this:this.invert():(yield*this.A.experimentalExpand(1,t-1),yield*this.B.experimentalExpand(e,t-1),yield*this.A.experimentalExpand(-1,t-1))}toString(){return`[${this.A}: ${this.B}]`}};var b=class r extends d{#e;constructor(e){if(super(),e.includes(`
`)||e.includes("\r"))throw new Error("LineComment cannot contain newline");this.#e=e}get text(){return this.#e}isIdentical(e){let t=e;return e.is(r)&&this.#e===t.#e}invert(){return this}*experimentalExpand(e=1,t=1/0){yield this}toString(){return`//${this.#e}`}};var y=class r extends d{toString(){return`
`}isIdentical(e){return e.is(r)}invert(){return this}*experimentalExpand(e=1,t=1/0){yield this}};var c=class r extends d{experimentalNISSGrouping;toString(){return"."}isIdentical(e){return e.is(r)}invert(){return this}*experimentalExpand(e=1,t=1/0){yield this}};function z(r,e){return r?parseInt(r):e}var ee=/^(\d+)?('?)/,ce=/^[_\dA-Za-z]/,ge=/^((([1-9]\d*)-)?([1-9]\d*))?([_A-Za-z]+)/,fe=/^[^\n]*/,de=/^(-?\d+), ?/,he=/^(-?\d+)\)/;function B(r){return new T().parseAlg(r)}function te(r){return new T().parseMove(r)}function re(r){return new T().parseQuantumMove(r)}function h(r,e,t){let i=r;return i.startCharIndex=e,i.endCharIndex=t,i}function ne(r,e){return"startCharIndex"in r&&(e.startCharIndex=r.startCharIndex),"endCharIndex"in r&&(e.endCharIndex=r.endCharIndex),e}var T=class{#e="";#t=0;#r=[];parseAlg(e){this.#e=e,this.#t=0;let t=this.parseAlgWithStopping([]);this.mustBeAtEndOfInput();let i=Array.from(t.childAlgNodes());if(this.#r.length>0)for(let u of this.#r.reverse())i.push(u);let o=new a(i),{startCharIndex:s,endCharIndex:v}=t;return h(o,s,v),o}parseMove(e){this.#e=e,this.#t=0;let t=this.parseMoveImpl();return this.mustBeAtEndOfInput(),t}parseQuantumMove(e){this.#e=e,this.#t=0;let t=this.parseQuantumMoveImpl();return this.mustBeAtEndOfInput(),t}mustBeAtEndOfInput(){if(this.#t!==this.#e.length)throw new Error("parsing unexpectedly ended early")}parseAlgWithStopping(e){let t=this.#t,i=this.#t,o=new G,s=!1,v=u=>{if(s)throw new Error(`Unexpected character at index ${u}. Are you missing a space?`)};e:for(;this.#t<this.#e.length;){let u=this.#t;if(e.includes(this.#e[this.#t]))return h(o.toAlg(),t,i);if(this.tryConsumeNext(" ")){s=!1,o.experimentalNumAlgNodes()===0&&(t=this.#t);continue e}else if(ce.test(this.#e[this.#t])){v(u);let l=this.parseMoveImpl();o.push(l),s=!0,i=this.#t;continue e}else if(this.tryConsumeNext("(")){v(u);let l=this.tryRegex(de);if(l){let f=l[1],A=this.#t,w=this.parseRegex(he),N=h(new n(new S("U_SQ_"),parseInt(f)),u+1,u+1+f.length),D=h(new n(new S("D_SQ_"),parseInt(w[1])),A,this.#t-1),x=h(new a([N,D]),u+1,this.#t-1);o.push(h(new g(x),u,this.#t)),s=!0,i=this.#t;continue e}else{let f=this.parseAlgWithStopping([")"]);this.mustConsumeNext(")");let A=this.parseAmount();o.push(h(new g(f,A),u,this.#t)),s=!0,i=this.#t;continue e}}else if(this.tryConsumeNext("^")){if(!q.caretNISSNotationEnabled)throw new Error("Alg contained a caret but caret NISS notation is not enabled.");this.mustConsumeNext("(");let l=this.parseAlgWithStopping([")"]);this.popNext();let f=new g(l,-1),A=new c;f.experimentalNISSPlaceholder=A,A.experimentalNISSGrouping=f,this.#r.push(f),o.push(A)}else if(this.tryConsumeNext("[")){v(u);let l=this.parseAlgWithStopping([",",":"]),f=this.popNext(),A=this.parseAlgWithStopping(["]"]);this.mustConsumeNext("]");let w;switch(f){case":":{w=h(new m(l,A),u,this.#t),s=!0,i=this.#t;break}case",":{w=h(new p(l,A),u,this.#t),s=!0,i=this.#t;break}default:throw new Error("unexpected parsing error")}let N=this.#t,D=this.parseAmount();if(D===1)o.push(w);else{let x=h(new a([w]),u,N),M=h(new g(x,D),u,this.#t);o.push(M)}s=!0,i=this.#t;continue e}else if(this.tryConsumeNext(`
`)){o.push(h(new y,u,this.#t)),s=!1,i=this.#t;continue e}else if(this.tryConsumeNext("/"))if(this.tryConsumeNext("/")){v(u);let[l]=this.parseRegex(fe);o.push(h(new b(l),u,this.#t)),s=!1,i=this.#t;continue e}else{o.push(h(new n("_SLASH_"),u,this.#t)),s=!0,i=this.#t;continue e}else if(this.tryConsumeNext(".")){v(u),o.push(h(new c,u,this.#t)),s=!0,i=this.#t;continue e}else throw new Error(`Unexpected character: ${this.popNext()}`)}if(this.#t!==this.#e.length)throw new Error("did not finish parsing?");if(e.length>0)throw new Error("expected stopping");return h(o.toAlg(),t,i)}parseQuantumMoveImpl(){let[,,,e,t,i]=this.parseRegex(ge);return new S(i,z(t,void 0),z(e,void 0))}parseMoveImpl(){let e=this.#t;if(this.tryConsumeNext("/"))return h(new n("_SLASH_"),e,this.#t);let t=this.parseQuantumMoveImpl(),[i,o]=this.parseAmountAndTrackEmptyAbsAmount(),s=this.parseMoveSuffix();if(s){if(i<0)throw new Error("uh-oh");if((s==="++"||s==="--")&&i!==1)throw new Error("Pochmann ++ or -- moves cannot have an amount other than 1.");if((s==="++"||s==="--")&&!o)throw new Error("Pochmann ++ or -- moves cannot have an amount written as a number.");if((s==="+"||s==="-")&&o)throw new Error("Clock dial moves must have an amount written as a natural number followed by + or -.");s.startsWith("+")&&(t=t.modified({family:`${t.family}_${s==="+"?"PLUS":"PLUSPLUS"}_`})),s.startsWith("-")&&(t=t.modified({family:`${t.family}_${s==="-"?"PLUS":"PLUSPLUS"}_`}),i*=-1)}return h(new n(t,i),e,this.#t)}parseMoveSuffix(){return this.tryConsumeNext("+")?this.tryConsumeNext("+")?"++":"+":this.tryConsumeNext("-")?this.tryConsumeNext("-")?"--":"-":null}parseAmountAndTrackEmptyAbsAmount(){let e=this.#t,[,t,i]=this.parseRegex(ee);if(t?.startsWith("0")&&t!=="0")throw new Error(`Error at char index ${e}: An amount can only start with 0 if it's exactly the digit 0.`);return[z(t,1)*(i==="'"?-1:1),!t]}parseAmount(){let e=this.#t,[,t,i]=this.parseRegex(ee);if(t?.startsWith("0")&&t!=="0")throw new Error(`Error at char index ${e}: An amount number can only start with 0 if it's exactly the digit 0.`);return z(t,1)*(i==="'"?-1:1)}parseRegex(e){let t=e.exec(this.remaining());if(t===null)throw new Error("internal parsing error");return this.#t+=t[0].length,t}tryRegex(e){let t=e.exec(this.remaining());return t===null?null:(this.#t+=t[0].length,t)}remaining(){return this.#e.slice(this.#t)}popNext(){let e=this.#e[this.#t];return this.#t++,e}tryConsumeNext(e){return this.#e[this.#t]===e?(this.#t++,!0):!1}mustConsumeNext(e){let t=this.popNext();if(t!==e)throw new Error(`expected \`${e}\` while parsing, encountered ${t}`);return t}};var ie=new Set;function Q(r){ie.has(r)||(console.warn(r),ie.add(r))}var L=class{quantum;amount;constructor(e,t=1){if(this.quantum=e,this.amount=t,!Number.isInteger(this.amount)||this.amount<-2147483648||this.amount>2147483647)throw new Error(`AlgNode amount absolute value must be a non-negative integer below ${R}.`)}suffix(){let e="",t=Math.abs(this.amount);return t!==1&&(e+=t),this.amount<0&&(e+="'"),e}isIdentical(e){return this.quantum.isIdentical(e.quantum)&&this.amount===e.amount}*experimentalExpand(e,t){let i=Math.abs(this.amount),o=Z(e,this.amount<0);for(let s=0;s<i;s++)yield*this.quantum.experimentalExpand(o,t)}};var S=class r extends O{#e;#t;#r;constructor(e,t,i){if(super(),this.#e=e,this.#t=t??null,this.#r=i??null,Object.freeze(this),this.#t!==null&&(!Number.isInteger(this.#t)||this.#t<1||this.#t>2147483647))throw new Error(`QuantumMove inner layer must be a positive integer below ${R}.`);if(this.#r!==null&&(!Number.isInteger(this.#r)||this.#r<1||this.#r>2147483647))throw new Error(`QuantumMove outer layer must be a positive integer below ${R}.`);if(this.#r!==null&&this.#t!==null&&this.#t<=this.#r)throw new Error("QuantumMove outer layer must be smaller than inner layer.");if(this.#r!==null&&this.#t===null)throw new Error("QuantumMove with an outer layer must have an inner layer")}static fromString(e){return re(e)}modified(e){return new r(e.family??this.#e,e.innerLayer??this.#t,e.outerLayer??this.#r)}isIdentical(e){let t=e;return e.is(r)&&this.#e===t.#e&&this.#t===t.#t&&this.#r===t.#r}get family(){return this.#e}get outerLayer(){return this.#r}get innerLayer(){return this.#t}experimentalExpand(){throw new Error("experimentalExpand() cannot be called on a `QuantumMove` directly.")}toString(){let e=this.#e;return this.#t!==null&&(e=String(this.#t)+e,this.#r!==null&&(e=`${String(this.#r)}-${e}`)),e}},n=class r extends d{#e;constructor(...e){if(super(),typeof e[0]=="string")if(e[1]??null){this.#e=new L(S.fromString(e[0]),e[1]);return}else return r.fromString(e[0]);this.#e=new L(e[0],e[1])}isIdentical(e){let t=e.as(r);return!!t&&this.#e.isIdentical(t.#e)}invert(){return ne(this,new r(this.#e.quantum,-this.amount))}*experimentalExpand(e=1){e===1?yield this:yield this.modified({amount:-this.amount})}get quantum(){return this.#e.quantum}modified(e){return new r(this.#e.quantum.modified(e),e.amount??this.amount)}static fromString(e){return te(e)}get amount(){return this.#e.amount}get type(){return Q("deprecated: type"),"blockMove"}get family(){return this.#e.quantum.family??void 0}get outerLayer(){return this.#e.quantum.outerLayer??void 0}get innerLayer(){return this.#e.quantum.innerLayer??void 0}toString(){if(this.family==="_SLASH_")return"/";if(this.family.endsWith("_PLUS_"))return this.#e.quantum.toString().slice(0,-6)+Math.abs(this.amount)+(this.amount<0?"-":"+");if(this.family.endsWith("_PLUSPLUS_")){let e=Math.abs(this.amount);return this.#e.quantum.toString().slice(0,-10)+(e===1?"":e)+(this.amount<0?"--":"++")}return this.#e.quantum.toString()+this.#e.suffix()}};var W=class{quantumU_SQ_=null;quantumD_SQ_=null;format(e){if(e.amount!==1)return null;let t=this.tuple(e);return t?`(${t.map(i=>i.amount).join(", ")})`:null}tuple(e){if(e.amount!==1)return null;this.quantumU_SQ_||=new S("U_SQ_"),this.quantumD_SQ_||=new S("D_SQ_");let t=e.alg;if(t.experimentalNumChildAlgNodes()===2){let[i,o]=t.childAlgNodes();if(i.as(n)?.quantum.isIdentical(this.quantumU_SQ_)&&o.as(n)?.quantum.isIdentical(this.quantumD_SQ_))return[i,o]}return null}},k=new W,g=class r extends d{#e;experimentalNISSPlaceholder;constructor(e,t){super();let i=C(e);this.#e=new L(i,t)}isIdentical(e){let t=e;return e.is(r)&&this.#e.isIdentical(t.#e)}get alg(){return this.#e.quantum}get amount(){return this.#e.amount}get experimentalRepetitionSuffix(){return this.#e.suffix()}invert(){let e=k.tuple(this);if(e){let[t,i]=e;return new r(new a([t.invert(),i.invert()]))}return new r(this.#e.quantum,-this.#e.amount)}*experimentalExpand(e=1,t){t??=1/0,t===0?yield e===1?this:this.invert():yield*this.#e.experimentalExpand(e,t-1)}static fromString(){throw new Error("unimplemented")}#t(){let e=this.#e.quantum.toString(),t=this.alg.childAlgNodes(),{value:i}=t.next();return t.next().done&&(i?.is(p)||i?.is(m))?e:`(${e})`}toString(){return k.format(this)??`${this.#t()}${this.#e.suffix()}`}experimentalAsSquare1Tuple(){return k.tuple(this)}};function I(r,e){return r instanceof e}function oe(r){return I(r,g)||I(r,b)||I(r,p)||I(r,m)||I(r,n)||I(r,y)||I(r,c)}function ae(r,e,t){if(e.is(g))return r.traverseGrouping(e,t);if(e.is(n))return r.traverseMove(e,t);if(e.is(p))return r.traverseCommutator(e,t);if(e.is(m))return r.traverseConjugate(e,t);if(e.is(c))return r.traversePause(e,t);if(e.is(y))return r.traverseNewline(e,t);if(e.is(b))return r.traverseLineComment(e,t);throw new Error("unknown AlgNode")}function se(r){if(r.is(g)||r.is(n)||r.is(p)||r.is(m)||r.is(c)||r.is(y)||r.is(b))return r;throw new Error("internal error: expected AlgNode")}var U=class{traverseAlgNode(e,t){return ae(this,e,t)}traverseIntoAlgNode(e,t){return se(this.traverseAlgNode(e,t))}},$=class extends U{traverseAlgNode(e){return ae(this,e,void 0)}traverseIntoAlgNode(e){return se(this.traverseAlgNode(e))}};function j(r,e){let t=new r(...e??[]);return t.traverseAlg.bind(t)}var we="any-direction",P=class{constructor(e={}){this.config=e}cancelQuantum(){let{cancel:e}=this.config;return e===!0?we:e===!1?"none":e?.directional??"none"}cancelAny(){return this.config.cancel&&this.cancelQuantum()!=="none"}cancelPuzzleSpecificModWrap(){let{cancel:e}=this.config;return e===!0||e===!1?"canonical-centered":e?.puzzleSpecificModWrap?e?.puzzleSpecificModWrap:e?.directional==="same-direction"?"preserve-sign":"canonical-centered"}puzzleSpecificSimplifyOptions(){return this.config.puzzleLoader?.puzzleSpecificSimplifyOptions??this.config.puzzleSpecificSimplifyOptions}};function xe(r,e){return r*Math.sign(e.amount)>=0}function ye(r,e,t=0){return((r-t)%e+e)%e+t}function X(r,e,t){let i=new P(t),o=Array.from(r.childAlgNodes()),s=[e];function v(){return new a([...o,...s])}function u(l){if(i.cancelPuzzleSpecificModWrap()==="none")return l;let f=i.puzzleSpecificSimplifyOptions()?.quantumMoveOrder;if(!f)return l;let A=f(e.quantum),w;switch(i.cancelPuzzleSpecificModWrap()){case"gravity":{w=-Math.floor((A-(l.amount<0?0:1))/2);break}case"canonical-centered":{w=-Math.floor((A-1)/2);break}case"canonical-positive":{w=0;break}case"preserve-sign":{w=l.amount<0?1-A:0;break}default:throw new Error("Unknown mod wrap")}let N=ye(l.amount,A,w);return l.modified({amount:N})}if(i.cancelAny()){let l,f=i.puzzleSpecificSimplifyOptions()?.axis;if(f)l=x=>f.areQuantumMovesSameAxis(e.quantum,x.quantum);else{let x=e.quantum.toString();l=M=>M.quantum.toString()===x}let A=i.cancelQuantum()==="same-direction",w=new Map;w.set(e.quantum.toString(),Math.sign(e.amount));let N;for(N=o.length-1;N>=0;N--){let x=o[N].as(n);if(!x||!l(x))break;let M=x.quantum.toString();if(A){let _=w.get(M);if(_&&!xe(_,x))break;w.set(M,Math.sign(x.amount))}}let D=[...o.splice(N+1),e];if(f)s=f.simplifySameAxisMoves(D,i.cancelPuzzleSpecificModWrap()!=="none");else{let x=D.reduce((M,_)=>M+_.amount,0);if(w.size!==1)throw new Error("Internal error: multiple quantums when one was expected");s=[new n(e.quantum,x)]}}return s=s.map(l=>u(l)).filter(l=>l.amount!==0),v()}function H(r,e,t){let i=e.as(n);return i?X(r,i,t):new a([...r.childAlgNodes(),e])}var K=class extends U{#e;#t(){return this.#e??=new Map}#r(e){return{...e,depth:e.depth?e.depth-1:null}}*traverseAlg(e,t){if(t.depth===0){yield*e.childAlgNodes();return}let i=[],o=this.#r(t);for(let s of e.childAlgNodes())for(let v of this.traverseAlgNode(s,o))i=Array.from(H(new a(i),v,o).childAlgNodes());for(let s of i)yield s}*traverseGrouping(e,t){if(t.depth===0){yield e;return}if(e.amount===0)return;let i=new g(this.traverseAlg(e.alg,this.#r(t)),e.amount);if(i.alg.experimentalIsEmpty())return;let o=this.#t().get(e);o&&(i.experimentalNISSPlaceholder=o,o.experimentalNISSGrouping=i),yield i}*traverseMove(e,t){yield e}#n(e,t,i){if(e.experimentalNumChildAlgNodes()===1&&t.experimentalNumChildAlgNodes()===1){let o=Array.from(e.childAlgNodes())[0]?.as(n),s=Array.from(t.childAlgNodes())[0]?.as(n);if(!(o&&s))return!1;if(s.quantum.isIdentical(o.quantum)||new P(i).puzzleSpecificSimplifyOptions()?.axis?.areQuantumMovesSameAxis(o.quantum,s.quantum))return!0}return!1}*traverseCommutator(e,t){if(t.depth===0){yield e;return}let i=this.#r(t),o=new p(this.traverseAlg(e.A,i),this.traverseAlg(e.B,i));o.A.experimentalIsEmpty()||o.B.experimentalIsEmpty()||o.A.isIdentical(o.B)||o.A.isIdentical(o.B.invert())||this.#n(o.A,o.B,t)||(yield o)}*traverseConjugate(e,t){if(t.depth===0){yield e;return}let i=this.#r(t),o=new m(this.traverseAlg(e.A,i),this.traverseAlg(e.B,i));if(!o.B.experimentalIsEmpty()){if(o.A.experimentalIsEmpty()||o.A.isIdentical(o.B)||o.A.isIdentical(o.B.invert())||this.#n(o.A,o.B,t)){yield*e.B.childAlgNodes();return}yield o}}*traversePause(e,t){if(e.experimentalNISSGrouping){let i=new c;this.#t().set(e.experimentalNISSGrouping,i),yield i}else yield e}*traverseNewline(e,t){yield e}*traverseLineComment(e,t){yield e}},V=j(K);function le(r){if(!r)return[];if(I(r,a))return r.childAlgNodes();if(typeof r=="string")return B(r).childAlgNodes();let e=r;if(typeof e[Symbol.iterator]=="function")return e;throw new Error("Invalid AlgNode")}function C(r){return I(r,a)?r:new a(r)}var a=class r extends d{#e;constructor(e){super(),this.#e=Array.from(le(e));for(let t of this.#e)if(!oe(t))throw new Error("An alg can only contain alg nodes.")}isIdentical(e){let t=e;if(!e.is(r))return!1;let i=Array.from(this.#e),o=Array.from(t.#e);if(i.length!==o.length)return!1;for(let s=0;s<i.length;s++)if(!i[s].isIdentical(o[s]))return!1;return!0}invert(){return new r(Y(Array.from(this.#e).map(e=>e.invert())))}*experimentalExpand(e=1,t){t??=1/0;for(let i of J(this.#e,e))yield*i.experimentalExpand(e,t)}expand(e){return new r(this.experimentalExpand(1,e?.depth??1/0))}*experimentalLeafMoves(){for(let e of this.experimentalExpand())e.is(n)&&(yield e)}concat(e){return new r(Array.from(this.#e).concat(Array.from(le(e))))}experimentalIsEmpty(){for(let e of this.#e)return!1;return!0}static fromString(e){return B(e)}units(){return this.childAlgNodes()}*childAlgNodes(){for(let e of this.#e)yield e}experimentalNumUnits(){return this.experimentalNumChildAlgNodes()}experimentalNumChildAlgNodes(){return Array.from(this.#e).length}get type(){return Q("deprecated: type"),"sequence"}toString(){let e="",t=null;for(let i of this.#e){t&&(e+=ve(t,i));let o=i.as(c)?.experimentalNISSGrouping;if(o){if(o.amount!==-1)throw new Error("Invalid NISS Grouping amount!");e+=`^(${o.alg.toString()})`}else i.as(g)?.experimentalNISSPlaceholder||(e+=i.toString());t=i}return e}experimentalSimplify(e){return new r(V(this,e??{}))}simplify(e){return this.experimentalSimplify(e)}};function ve(r,e){return r.is(y)||e.is(y)||e.as(g)?.experimentalNISSPlaceholder?"":r.is(b)&&!e.is(y)?`
`:" "}var G=class{#e=[];push(e){this.#e.push(e)}experimentalPushAlg(e){for(let t of e.childAlgNodes())this.push(t)}experimentalNumAlgNodes(){return this.#e.length}toAlg(){return new a(this.#e)}reset(){this.#e=[]}};var be={Sune:new a([new n("R",1),new n("U",1),new n("R",-1),new n("U",1),new n("R",1),new n("U",-2),new n("R",-1)]),AntiSune:new a([new n("R",1),new n("U",2),new n("R",-1),new n("U",-1),new n("R",1),new n("U",-1),new n("R",-1)]),SuneCommutator:new a([new p(new a([new n("R",1),new n("U",1),new n("R",-2)]),new a([new m(new a([new n("R",1)]),new a([new n("U",1)]))]))]),Niklas:new a([new n("R",1),new n("U",-1),new n("L",-1),new n("U",1),new n("R",-1),new n("U",-1),new n("L",1),new n("U",1)]),EPerm:new a([new n("x",-1),new p(new a([new m(new a([new n("R",1)]),new a([new n("U",-1)]))]),new a([new n("D",1)])),new p(new a([new m(new a([new n("R",1)]),new a([new n("U",1)]))]),new a([new n("D",1)])),new n("x",1)]),FURURFCompact:new a([new m(new a([new n("F",1)]),new a([new p(new a([new n("U",1)]),new a([new n("R",1)]))]))]),APermCompact:new a([new m(new a([new n("R",2)]),new a([new p(new a([new n("F",2)]),new a([new n("R",-1),new n("B",-1),new n("R",1)]))]))]),FURURFMoves:new a([new n("F",1),new n("U",1),new n("R",1),new n("U",-1),new n("R",-1),new n("F",-1)]),TPerm:new a([new n("R",1),new n("U",1),new n("R",-1),new n("U",-1),new n("R",-1),new n("F",1),new n("R",2),new n("U",-1),new n("R",-1),new n("U",-1),new n("R",1),new n("U",1),new n("R",-1),new n("F",-1)]),HeadlightSwaps:new a([new m(new a([new n("F",1)]),new a([new g(new a([new p(new a([new n("R",1)]),new a([new n("U",1)]))]),3)]))]),TriplePause:new a([new c,new c,new c])};var Ne={73:new n("R"),75:new n("R'"),87:new n("B"),79:new n("B'"),83:new n("D"),76:new n("D'"),68:new n("L"),69:new n("L'"),74:new n("U"),70:new n("U'"),72:new n("F"),71:new n("F'"),78:new n("x'"),67:new n("l"),82:new n("l'"),85:new n("r"),77:new n("r'"),88:new n("d"),188:new n("d'"),84:new n("x"),89:new n("x"),66:new n("x'"),186:new n("y"),59:new n("y"),65:new n("y'"),80:new n("z"),81:new n("z'"),90:new n("M'"),190:new n("M'"),192:new c};function Se(r){return r.altKey||r.ctrlKey?null:Ne[r.keyCode]||null}export{J as a,Me as b,G as c,me as d,m as e,b as f,y as g,c as h,S as i,n as j,g as k,U as l,$ as m,j as n,ye as o,X as p,C as q,a as r,Se as s};
//# sourceMappingURL=chunk-Q4G5UL72.js.map