var v=Object.defineProperty;var u=t=>{throw TypeError(t)};var y=(t,e,s)=>e in t?v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var n=(t,e,s)=>y(t,typeof e!="symbol"?e+"":e,s),T=(t,e,s)=>e.has(t)||u("Cannot "+s);var c=(t,e,s)=>(T(t,e,"read from private field"),s?s.call(t):e.get(t)),h=(t,e,s)=>e.has(t)?u("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s);import{w as A,v as M,aP as d,a1 as b,A as f,z as g}from"./M0Oc_jcV.js";import{s as C}from"./EeV0sUoA.js";import"./MFOBLaM2.js";import{g as a}from"./PtNrOtCH.js";var o,l;class ${constructor(e,s){h(this,o,d(b([])));h(this,l,d(""));n(this,"techniqueToPath",{});n(this,"reset",()=>{x(this.store,e=>{e.classes.isSelected=!1,e.classes.select=""})});n(this,"toggleTechnique",e=>{const s=a(this.store,e);s.classes.isSelected?(s.classes.select="",s.classes.isSelected=!1):(s.classes.select="3px solid red",s.classes.isSelected=!0)});n(this,"selectTechnique",e=>{const s=a(this.store,e);s.classes.select="3px solid red",s.classes.isSelected=!0});n(this,"deselectTechnique",e=>{const s=a(this.store,e);s.classes.select="",s.classes.isSelected=!1});n(this,"updateMatrixTechnique",(e,s,r)=>{const i=a(this.store,e);i.classes.isHighlighted=s,i.classes.color=r});const r=[];for(const[i,q]of Object.entries(e)){const S=`[${i}]`;r.push(p(q,S))}this.store=r,this.techniqueToPath=_(r),this.version_info=s}get store(){return f(c(this,o))}set store(e){g(c(this,o),e,!0)}get version_info(){return f(c(this,l))}set version_info(e){g(c(this,l),e,!0)}set_version(e){this.version_info=e}}o=new WeakMap,l=new WeakMap;const p=(t,e)=>(t.path=e,t.classes={isSelected:!1,isHighlighted:!1,color:null,select:""},!t.children||!t||(C(t.children),t.children=t.children.map((s,r)=>{const i=`${e}.children[${r}]`;return p(s,i)})),t),_=(t,e={})=>{for(let s=0;s{for(let s=0;s0&&x(r.children,e)}},m=Symbol("MATRIX");function I(t,e){return A(m,new $(t,e))}function R(){return M(m)}export{R as g,I as s};