diff --git a/assets/index-8a48e13d.js b/assets/index-8b17c0ed.js similarity index 91% rename from assets/index-8a48e13d.js rename to assets/index-8b17c0ed.js index 34048ace..9161fd61 100644 --- a/assets/index-8a48e13d.js +++ b/assets/index-8b17c0ed.js @@ -288,7 +288,7 @@ __p += '`),$o&&(Br+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Br+`return __p -}`;var bo=N0(function(){return Io(qn,eo+"return "+Br).apply(Rt,ir)});if(bo.source=Br,xm(bo))throw bo;return bo}function N2(Wt){return Ao(Wt).toLowerCase()}function F2(Wt){return Ao(Wt).toUpperCase()}function j2(Wt,Yt,nn){if(Wt=Ao(Wt),Wt&&(nn||Yt===Rt))return Ym(Wt);if(!Wt||!(Yt=Cs(Yt)))return Wt;var mn=Us(Wt),Nn=Us(Yt),qn=Xm(mn,Nn),ir=Km(mn,Nn)+1;return Bl(mn,qn,ir).join("")}function z2(Wt,Yt,nn){if(Wt=Ao(Wt),Wt&&(nn||Yt===Rt))return Wt.slice(0,Qm(Wt)+1);if(!Wt||!(Yt=Cs(Yt)))return Wt;var mn=Us(Wt),Nn=Km(mn,Us(Yt))+1;return Bl(mn,0,Nn).join("")}function U2(Wt,Yt,nn){if(Wt=Ao(Wt),Wt&&(nn||Yt===Rt))return Wt.replace(Qo,"");if(!Wt||!(Yt=Cs(Yt)))return Wt;var mn=Us(Wt),Nn=Xm(mn,Us(Yt));return Bl(mn,Nn).join("")}function H2(Wt,Yt){var nn=bn,mn=gn;if(Ko(Yt)){var Nn="separator"in Yt?Yt.separator:Nn;nn="length"in Yt?vo(Yt.length):nn,mn="omission"in Yt?Cs(Yt.omission):mn}Wt=Ao(Wt);var qn=Wt.length;if(eu(Wt)){var ir=Us(Wt);qn=ir.length}if(nn>=qn)return Wt;var cr=nn-tu(mn);if(cr<1)return mn;var mr=ir?Bl(ir,0,cr).join(""):Wt.slice(0,cr);if(Nn===Rt)return mr+mn;if(ir&&(cr+=mr.length-cr),_m(Nn)){if(Wt.slice(cr).search(Nn)){var Ar,Pr=mr;for(Nn.global||(Nn=Bp(Nn.source,Ao(na.exec(Nn))+"g")),Nn.lastIndex=0;Ar=Nn.exec(Pr);)var Br=Ar.index;mr=mr.slice(0,Br===Rt?cr:Br)}}else if(Wt.indexOf(Cs(Nn),cr)!=cr){var Vr=mr.lastIndexOf(Nn);Vr>-1&&(mr=mr.slice(0,Vr))}return mr+mn}function W2(Wt){return Wt=Ao(Wt),Wt&&Nr.test(Wt)?Wt.replace(Fr,gy):Wt}var G2=lu(function(Wt,Yt,nn){return Wt+(nn?" ":"")+Yt.toUpperCase()}),Sm=F1("toUpperCase");function B0(Wt,Yt,nn){return Wt=Ao(Wt),Yt=nn?Rt:Yt,Yt===Rt?dy(Wt)?_y(Wt):zo(Wt):Wt.match(Yt)||[]}var N0=xo(function(Wt,Yt){try{return xr(Wt,Rt,Yt)}catch(nn){return xm(nn)?nn:new fo(nn)}}),V2=xl(function(Wt,Yt){return Dr(Yt,function(nn){nn=Ks(nn),Js(Wt,nn,vm(Wt[nn],Wt))}),Wt});function q2(Wt){var Yt=Wt==null?0:Wt.length,nn=lo();return Wt=Yt?qr(Wt,function(mn){if(typeof mn[1]!="function")throw new Ms(Lt);return[nn(mn[0]),mn[1]]}):[],xo(function(mn){for(var Nn=-1;++NnCn)return[];var nn=$n,mn=ds(Wt,$n);Yt=lo(Yt),Wt-=$n;for(var Nn=Op(mn,Yt);++nn0||Yt<0)?new So(nn):(Wt<0?nn=nn.takeRight(-Wt):Wt&&(nn=nn.drop(Wt)),Yt!==Rt&&(Yt=vo(Yt),nn=Yt<0?nn.dropRight(-Yt):nn.take(Yt-Wt)),nn)},So.prototype.takeRightWhile=function(Wt){return this.reverse().takeWhile(Wt).reverse()},So.prototype.toArray=function(){return this.take($n)},Ys(So.prototype,function(Wt,Yt){var nn=/^(?:filter|find|map|reject)|While$/.test(Yt),mn=/^(?:head|last)$/.test(Yt),Nn=Hn[mn?"take"+(Yt=="last"?"Right":""):Yt],qn=mn||/^find/.test(Yt);Nn&&(Hn.prototype[Yt]=function(){var ir=this.__wrapped__,cr=mn?[1]:arguments,mr=ir instanceof So,Ar=cr[0],Pr=mr||po(ir),Br=function(wo){var $o=Nn.apply(Hn,so([wo],cr));return mn&&Vr?$o[0]:$o};Pr&&nn&&typeof Ar=="function"&&Ar.length!=1&&(mr=Pr=!1);var Vr=this.__chain__,eo=!!this.__actions__.length,co=qn&&!Vr,bo=mr&&!eo;if(!qn&&Pr){ir=bo?ir:new So(this);var uo=Wt.apply(ir,cr);return uo.__actions__.push({func:fp,args:[Br],thisArg:Rt}),new Os(uo,Vr)}return co&&bo?Wt.apply(this,cr):(uo=this.thru(Br),co?mn?uo.value()[0]:uo.value():uo)})}),Dr(["pop","push","shift","sort","splice","unshift"],function(Wt){var Yt=Uu[Wt],nn=/^(?:push|sort|unshift)$/.test(Wt)?"tap":"thru",mn=/^(?:pop|shift)$/.test(Wt);Hn.prototype[Wt]=function(){var Nn=arguments;if(mn&&!this.__chain__){var qn=this.value();return Yt.apply(po(qn)?qn:[],Nn)}return this[nn](function(ir){return Yt.apply(po(ir)?ir:[],Nn)})}}),Ys(So.prototype,function(Wt,Yt){var nn=Hn[Yt];if(nn){var mn=nn.name+"";Mo.call(ou,mn)||(ou[mn]=[]),ou[mn].push({name:Yt,func:nn})}}),ou[ap(Rt,Jt).name]=[{name:"wrapper",func:Rt}],So.prototype.clone=Hy,So.prototype.reverse=Wy,So.prototype.value=Gy,Hn.prototype.at=__,Hn.prototype.chain=w_,Hn.prototype.commit=E_,Hn.prototype.next=S_,Hn.prototype.plant=T_,Hn.prototype.reverse=C_,Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=R_,Hn.prototype.first=Hn.prototype.head,wu&&(Hn.prototype[wu]=$_),Hn},nu=wy();Al?((Al.exports=nu)._=nu,ju._=nu):os._=nu}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);var lodashExports$1=lodash$1.exports;function Space(_e){return jsxRuntimeExports.jsx(Box$1,{px:.5,display:"inline-block",..._e})}function Label$1({primary:_e,secondary:lt}){return jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Box$1,{children:_e}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(Box$1,{sx:{opacity:.56},children:lt})]})}var __assign$2=function(){return __assign$2=Object.assign||function(lt){for(var Rt,At=1,Pt=arguments.length;At>>0).toString(36)},create$6=function(_e){_e=_e||{};var lt=_e.assign||Object.assign,Rt=typeof window=="object",At=lt({raw:"",pfx:"_",client:Rt,assign:lt,stringify:JSON.stringify,kebab:function(Pt){return Pt.replace(KEBAB_REGEX,"-$&").toLowerCase()},decl:function(Pt,Dt){return Pt=At.kebab(Pt),Pt+":"+Dt+";"},hash:function(Pt){return hash(At.stringify(Pt))},selector:function(Pt,Dt){return Pt+(Dt[0]===":"?"":" ")+Dt},putRaw:function(Pt){At.raw+=Pt}},_e);return At.client&&(At.sh||document.head.appendChild(At.sh=document.createElement("style")),At.putRaw=function(Pt){{var Dt=At.sh.sheet;try{Dt.insertRule(Pt,Dt.cssRules.length)}catch{}}}),At.put=function(Pt,Dt,Lt){var Bt="",Nt,jt,Ut=[];for(Nt in Dt)jt=Dt[Nt],jt instanceof Object&&!(jt instanceof Array)?Ut.push(Nt):Bt+=At.decl(Nt,jt,Pt,Lt);Bt&&(Bt=Pt+"{"+Bt+"}",At.putRaw(Lt?Lt+"{"+Bt+"}":Bt));for(var Gt=0;Gt=0;){if(At[lt]===_e){Rt.deleteRule(lt);break}lt--}}removeRule$2.removeRule=removeRule$1;var removeRule=removeRule$2.removeRule,addon=function(_e){if(!_e.client)return;var lt=_e.kebab;function Rt(Pt,Dt){this.rule=_e.createRule(Pt,Dt),this.decl={}}Rt.prototype.diff=function(Pt){var Dt=this.decl,Lt=this.rule.style,Bt;for(Bt in Dt)Pt[Bt]===void 0&&Lt.removeProperty(Bt);for(Bt in Pt)Pt[Bt]!==Dt[Bt]&&Lt.setProperty(lt(Bt),Pt[Bt]);this.decl=Pt},Rt.prototype.del=function(){removeRule(this.rule)};function At(){this.tree={}}At.prototype.diff=function(Pt){var Dt=this.tree;for(var Lt in Dt)if(Pt[Lt]===void 0){var Bt=Dt[Lt];for(var Nt in Bt)Bt[Nt].del()}for(var Lt in Pt)if(Dt[Lt]===void 0)for(var Nt in Pt[Lt]){var jt=new Rt(Nt,Lt);jt.diff(Pt[Lt][Nt]),Pt[Lt][Nt]=jt}else{var Ut=Dt[Lt],Gt=Pt[Lt];for(var Nt in Ut)Gt[Nt]||Ut[Nt].del();for(var Nt in Gt){var jt=Ut[Nt];jt?(jt.diff(Gt[Nt]),Gt[Nt]=jt):(jt=new Rt(Nt,Lt),jt.diff(Gt[Nt]),Gt[Nt]=jt)}}this.tree=Pt},_e.VRule=Rt,_e.VSheet=At};function cssToTree(_e,lt,Rt,At){var Pt={},Dt=!1,Lt,Bt;for(Lt in lt)Bt=lt[Lt],typeof Bt!="object"&&(Dt=!0,Pt[Lt]=Bt);Dt&&(_e[At]||(_e[At]={}),_e[At][Rt]=Pt);for(Lt in lt)if(Bt=lt[Lt],typeof Bt=="object")if(Lt[0]==="@")cssToTree(_e,Bt,Rt,Lt);else{var Nt=Lt.indexOf("&")>-1,jt=Rt.split(",");if(Nt)for(var Ut=0;Utlt,merge$3=(_e,lt)=>({..._e,...lt});function createSlice(_e,{init:lt,effect:Rt,reduce:At=merge$3}={}){const Pt=reactExports.createContext([_e,lodashExports$1.noop,!1]);return[()=>reactExports.useContext(Pt),({children:Dt})=>{const[Lt,Bt]=reactExports.useState(!1),[Nt,jt]=useGetSet(_e),Ut=reactExports.useCallback(qt=>{const Xt=At(Nt(),qt(Nt()));Rt==null||Rt({prev:Nt(),next:Xt}),jt(Xt)},[Nt]),Gt=reactExports.useMemo(()=>[Nt(),Ut,Lt],[Nt(),Ut,Lt]);return useAsync$1(async()=>{const qt=await(lt==null?void 0:lt());qt&&Ut(()=>qt),Bt(!0)}),jsxRuntimeExports.jsx(Pt.Provider,{value:Gt,children:Dt})}]}function withLocalStorage(_e,lt){return{init:()=>{const Rt=localStorage.getItem(_e);return Rt?JSON.parse(Rt):lt},effect:({next:Rt})=>localStorage.setItem(_e,JSON.stringify(Rt))}}const[useLog,LogProvider]=createSlice([],{reduce:(_e,lt)=>[lt,..._e]}),SnackbarContext=reactExports.createContext(()=>lodashExports$1.noop);function useSnackbar(){return reactExports.useContext(SnackbarContext)}function SnackbarProvider({children:_e}){const[lt,Rt]=reactExports.useState([]),[At,Pt]=reactExports.useState(!1),[Dt,Lt]=reactExports.useState(void 0),[,Bt]=useLog();reactExports.useEffect(()=>{lt.length&&!Dt?(Lt({...lt[0]}),Rt(Gt=>Gt.slice(1)),Pt(!0)):lt.length&&Dt&&At&&Pt(!1)},[lt,Dt,At]);const Nt=reactExports.useCallback((Gt,qt,Xt={})=>(Rt(Kt=>[...Kt,{message:jsxRuntimeExports.jsx(Label$1,{primary:Gt,secondary:qt}),key:new Date().getTime()}]),Bt(()=>({content:lodashExports$1.filter([Gt,qt]).join(", "),timestamp:`${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}`})),Xt.error&&console.error(`${Gt}, ${qt}`),()=>jt()),[Rt]),jt=(Gt,qt)=>{qt!=="clickaway"&&Pt(!1)},Ut=()=>Lt(void 0);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SnackbarContext.Provider,{value:Nt,children:_e}),jsxRuntimeExports.jsx(Snackbar$1,{anchorOrigin:{horizontal:"right",vertical:"bottom"},open:At,autoHideDuration:6e3,onClose:jt,TransitionProps:{onExited:Ut},message:Dt==null?void 0:Dt.message,action:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(IconButton$1,{"aria-label":"close",color:"inherit",sx:{p:.5},onClick:jt,children:jsxRuntimeExports.jsx(CloseOutlined,{})})})},Dt==null?void 0:Dt.key)]})}/*! +}`;var bo=N0(function(){return Io(qn,eo+"return "+Br).apply(Rt,ir)});if(bo.source=Br,xm(bo))throw bo;return bo}function N2(Wt){return Ao(Wt).toLowerCase()}function F2(Wt){return Ao(Wt).toUpperCase()}function j2(Wt,Yt,nn){if(Wt=Ao(Wt),Wt&&(nn||Yt===Rt))return Ym(Wt);if(!Wt||!(Yt=Cs(Yt)))return Wt;var mn=Us(Wt),Nn=Us(Yt),qn=Xm(mn,Nn),ir=Km(mn,Nn)+1;return Bl(mn,qn,ir).join("")}function z2(Wt,Yt,nn){if(Wt=Ao(Wt),Wt&&(nn||Yt===Rt))return Wt.slice(0,Qm(Wt)+1);if(!Wt||!(Yt=Cs(Yt)))return Wt;var mn=Us(Wt),Nn=Km(mn,Us(Yt))+1;return Bl(mn,0,Nn).join("")}function U2(Wt,Yt,nn){if(Wt=Ao(Wt),Wt&&(nn||Yt===Rt))return Wt.replace(Qo,"");if(!Wt||!(Yt=Cs(Yt)))return Wt;var mn=Us(Wt),Nn=Xm(mn,Us(Yt));return Bl(mn,Nn).join("")}function H2(Wt,Yt){var nn=bn,mn=gn;if(Ko(Yt)){var Nn="separator"in Yt?Yt.separator:Nn;nn="length"in Yt?vo(Yt.length):nn,mn="omission"in Yt?Cs(Yt.omission):mn}Wt=Ao(Wt);var qn=Wt.length;if(eu(Wt)){var ir=Us(Wt);qn=ir.length}if(nn>=qn)return Wt;var cr=nn-tu(mn);if(cr<1)return mn;var mr=ir?Bl(ir,0,cr).join(""):Wt.slice(0,cr);if(Nn===Rt)return mr+mn;if(ir&&(cr+=mr.length-cr),_m(Nn)){if(Wt.slice(cr).search(Nn)){var Ar,Pr=mr;for(Nn.global||(Nn=Bp(Nn.source,Ao(na.exec(Nn))+"g")),Nn.lastIndex=0;Ar=Nn.exec(Pr);)var Br=Ar.index;mr=mr.slice(0,Br===Rt?cr:Br)}}else if(Wt.indexOf(Cs(Nn),cr)!=cr){var Vr=mr.lastIndexOf(Nn);Vr>-1&&(mr=mr.slice(0,Vr))}return mr+mn}function W2(Wt){return Wt=Ao(Wt),Wt&&Nr.test(Wt)?Wt.replace(Fr,gy):Wt}var G2=lu(function(Wt,Yt,nn){return Wt+(nn?" ":"")+Yt.toUpperCase()}),Sm=F1("toUpperCase");function B0(Wt,Yt,nn){return Wt=Ao(Wt),Yt=nn?Rt:Yt,Yt===Rt?dy(Wt)?_y(Wt):zo(Wt):Wt.match(Yt)||[]}var N0=xo(function(Wt,Yt){try{return xr(Wt,Rt,Yt)}catch(nn){return xm(nn)?nn:new fo(nn)}}),V2=xl(function(Wt,Yt){return Dr(Yt,function(nn){nn=Ks(nn),Js(Wt,nn,vm(Wt[nn],Wt))}),Wt});function q2(Wt){var Yt=Wt==null?0:Wt.length,nn=lo();return Wt=Yt?qr(Wt,function(mn){if(typeof mn[1]!="function")throw new Ms(Lt);return[nn(mn[0]),mn[1]]}):[],xo(function(mn){for(var Nn=-1;++NnCn)return[];var nn=$n,mn=ds(Wt,$n);Yt=lo(Yt),Wt-=$n;for(var Nn=Op(mn,Yt);++nn0||Yt<0)?new So(nn):(Wt<0?nn=nn.takeRight(-Wt):Wt&&(nn=nn.drop(Wt)),Yt!==Rt&&(Yt=vo(Yt),nn=Yt<0?nn.dropRight(-Yt):nn.take(Yt-Wt)),nn)},So.prototype.takeRightWhile=function(Wt){return this.reverse().takeWhile(Wt).reverse()},So.prototype.toArray=function(){return this.take($n)},Ys(So.prototype,function(Wt,Yt){var nn=/^(?:filter|find|map|reject)|While$/.test(Yt),mn=/^(?:head|last)$/.test(Yt),Nn=Hn[mn?"take"+(Yt=="last"?"Right":""):Yt],qn=mn||/^find/.test(Yt);Nn&&(Hn.prototype[Yt]=function(){var ir=this.__wrapped__,cr=mn?[1]:arguments,mr=ir instanceof So,Ar=cr[0],Pr=mr||po(ir),Br=function(wo){var $o=Nn.apply(Hn,so([wo],cr));return mn&&Vr?$o[0]:$o};Pr&&nn&&typeof Ar=="function"&&Ar.length!=1&&(mr=Pr=!1);var Vr=this.__chain__,eo=!!this.__actions__.length,co=qn&&!Vr,bo=mr&&!eo;if(!qn&&Pr){ir=bo?ir:new So(this);var uo=Wt.apply(ir,cr);return uo.__actions__.push({func:fp,args:[Br],thisArg:Rt}),new Os(uo,Vr)}return co&&bo?Wt.apply(this,cr):(uo=this.thru(Br),co?mn?uo.value()[0]:uo.value():uo)})}),Dr(["pop","push","shift","sort","splice","unshift"],function(Wt){var Yt=Uu[Wt],nn=/^(?:push|sort|unshift)$/.test(Wt)?"tap":"thru",mn=/^(?:pop|shift)$/.test(Wt);Hn.prototype[Wt]=function(){var Nn=arguments;if(mn&&!this.__chain__){var qn=this.value();return Yt.apply(po(qn)?qn:[],Nn)}return this[nn](function(ir){return Yt.apply(po(ir)?ir:[],Nn)})}}),Ys(So.prototype,function(Wt,Yt){var nn=Hn[Yt];if(nn){var mn=nn.name+"";Mo.call(ou,mn)||(ou[mn]=[]),ou[mn].push({name:Yt,func:nn})}}),ou[ap(Rt,Jt).name]=[{name:"wrapper",func:Rt}],So.prototype.clone=Hy,So.prototype.reverse=Wy,So.prototype.value=Gy,Hn.prototype.at=__,Hn.prototype.chain=w_,Hn.prototype.commit=E_,Hn.prototype.next=S_,Hn.prototype.plant=T_,Hn.prototype.reverse=C_,Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=R_,Hn.prototype.first=Hn.prototype.head,wu&&(Hn.prototype[wu]=$_),Hn},nu=wy();Al?((Al.exports=nu)._=nu,ju._=nu):os._=nu}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);var lodashExports$1=lodash$1.exports;function Space(_e){return jsxRuntimeExports.jsx(Box$1,{px:.5,display:"inline-block",..._e})}function Label$1({primary:_e,secondary:lt}){return jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Box$1,{children:_e}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(Box$1,{sx:{opacity:.56},children:lt})]})}var __assign$2=function(){return __assign$2=Object.assign||function(lt){for(var Rt,At=1,Pt=arguments.length;At>>0).toString(36)},create$6=function(_e){_e=_e||{};var lt=_e.assign||Object.assign,Rt=typeof window=="object",At=lt({raw:"",pfx:"_",client:Rt,assign:lt,stringify:JSON.stringify,kebab:function(Pt){return Pt.replace(KEBAB_REGEX,"-$&").toLowerCase()},decl:function(Pt,Dt){return Pt=At.kebab(Pt),Pt+":"+Dt+";"},hash:function(Pt){return hash(At.stringify(Pt))},selector:function(Pt,Dt){return Pt+(Dt[0]===":"?"":" ")+Dt},putRaw:function(Pt){At.raw+=Pt}},_e);return At.client&&(At.sh||document.head.appendChild(At.sh=document.createElement("style")),At.putRaw=function(Pt){{var Dt=At.sh.sheet;try{Dt.insertRule(Pt,Dt.cssRules.length)}catch{}}}),At.put=function(Pt,Dt,Lt){var Bt="",Nt,jt,Ut=[];for(Nt in Dt)jt=Dt[Nt],jt instanceof Object&&!(jt instanceof Array)?Ut.push(Nt):Bt+=At.decl(Nt,jt,Pt,Lt);Bt&&(Bt=Pt+"{"+Bt+"}",At.putRaw(Lt?Lt+"{"+Bt+"}":Bt));for(var Gt=0;Gt=0;){if(At[lt]===_e){Rt.deleteRule(lt);break}lt--}}removeRule$2.removeRule=removeRule$1;var removeRule=removeRule$2.removeRule,addon=function(_e){if(!_e.client)return;var lt=_e.kebab;function Rt(Pt,Dt){this.rule=_e.createRule(Pt,Dt),this.decl={}}Rt.prototype.diff=function(Pt){var Dt=this.decl,Lt=this.rule.style,Bt;for(Bt in Dt)Pt[Bt]===void 0&&Lt.removeProperty(Bt);for(Bt in Pt)Pt[Bt]!==Dt[Bt]&&Lt.setProperty(lt(Bt),Pt[Bt]);this.decl=Pt},Rt.prototype.del=function(){removeRule(this.rule)};function At(){this.tree={}}At.prototype.diff=function(Pt){var Dt=this.tree;for(var Lt in Dt)if(Pt[Lt]===void 0){var Bt=Dt[Lt];for(var Nt in Bt)Bt[Nt].del()}for(var Lt in Pt)if(Dt[Lt]===void 0)for(var Nt in Pt[Lt]){var jt=new Rt(Nt,Lt);jt.diff(Pt[Lt][Nt]),Pt[Lt][Nt]=jt}else{var Ut=Dt[Lt],Gt=Pt[Lt];for(var Nt in Ut)Gt[Nt]||Ut[Nt].del();for(var Nt in Gt){var jt=Ut[Nt];jt?(jt.diff(Gt[Nt]),Gt[Nt]=jt):(jt=new Rt(Nt,Lt),jt.diff(Gt[Nt]),Gt[Nt]=jt)}}this.tree=Pt},_e.VRule=Rt,_e.VSheet=At};function cssToTree(_e,lt,Rt,At){var Pt={},Dt=!1,Lt,Bt;for(Lt in lt)Bt=lt[Lt],typeof Bt!="object"&&(Dt=!0,Pt[Lt]=Bt);Dt&&(_e[At]||(_e[At]={}),_e[At][Rt]=Pt);for(Lt in lt)if(Bt=lt[Lt],typeof Bt=="object")if(Lt[0]==="@")cssToTree(_e,Bt,Rt,Lt);else{var Nt=Lt.indexOf("&")>-1,jt=Rt.split(",");if(Nt)for(var Ut=0;Utlt,merge$3=(_e,lt)=>({..._e,...lt});function createSlice(_e,{init:lt,effect:Rt,reduce:At=merge$3}={}){const Pt=reactExports.createContext([_e,lodashExports$1.noop,!1]);return[()=>reactExports.useContext(Pt),({children:Dt})=>{const[Lt,Bt]=reactExports.useState(!1),[Nt,jt]=useGetSet(_e),Ut=reactExports.useCallback(qt=>{const Xt=At(Nt(),qt(Nt()));Rt==null||Rt({prev:Nt(),next:Xt}),jt(Xt)},[Nt]),Gt=reactExports.useMemo(()=>[Nt(),Ut,Lt],[Nt(),Ut,Lt]);return useAsync$1(async()=>{const qt=await(lt==null?void 0:lt());qt&&Ut(()=>qt),Bt(!0)}),jsxRuntimeExports.jsx(Pt.Provider,{value:Gt,children:Dt})}]}function withLocalStorage(_e,lt){return{init:()=>{const Rt=localStorage.getItem(_e);return Rt?JSON.parse(Rt):lt},effect:({next:Rt})=>localStorage.setItem(_e,JSON.stringify(Rt))}}const[useLog,LogProvider]=createSlice([],{reduce:(_e,lt)=>{switch(lt.action){case"append":return[lt.log,..._e];case"clear":return[]}}}),SnackbarContext=reactExports.createContext(()=>lodashExports$1.noop);function useSnackbar(){return reactExports.useContext(SnackbarContext)}function SnackbarProvider({children:_e}){const[lt,Rt]=reactExports.useState([]),[At,Pt]=reactExports.useState(!1),[Dt,Lt]=reactExports.useState(void 0),[,Bt]=useLog();reactExports.useEffect(()=>{lt.length&&!Dt?(Lt({...lt[0]}),Rt(Gt=>Gt.slice(1)),Pt(!0)):lt.length&&Dt&&At&&Pt(!1)},[lt,Dt,At]);const Nt=reactExports.useCallback((Gt,qt,Xt={})=>(Rt(Kt=>[...Kt,{message:jsxRuntimeExports.jsx(Label$1,{primary:Gt,secondary:qt}),key:new Date().getTime()}]),Bt(()=>({action:"append",log:{content:lodashExports$1.filter([Gt,qt]).join(", "),timestamp:`${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}`}})),Xt.error&&console.error(`${Gt}, ${qt}`),()=>jt()),[Rt]),jt=(Gt,qt)=>{qt!=="clickaway"&&Pt(!1)},Ut=()=>Lt(void 0);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SnackbarContext.Provider,{value:Nt,children:_e}),jsxRuntimeExports.jsx(Snackbar$1,{anchorOrigin:{horizontal:"right",vertical:"bottom"},open:At,autoHideDuration:6e3,onClose:jt,TransitionProps:{onExited:Ut},message:Dt==null?void 0:Dt.message,action:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(IconButton$1,{"aria-label":"close",color:"inherit",sx:{p:.5},onClick:jt,children:jsxRuntimeExports.jsx(CloseOutlined,{})})})},Dt==null?void 0:Dt.key)]})}/*! * OverlayScrollbars * Version: 2.5.0 * @@ -406,7 +406,7 @@ PERFORMANCE OF THIS SOFTWARE. background: #434252; } /* ====== */`);const u$3=React.forwardRef(({className:_e,theme:lt,draggerClassName:Rt,direction:At=z$3.Vertical,onDragging:Pt},Dt)=>{const Lt=`__dbk__gutter ${At} ${_e||lt}`,Bt=`__dbk__dragger ${At} ${Rt||lt}`;return jsxRuntimeExports.jsx("div",Object.assign({className:Lt,ref:Dt,dir:At,onMouseDown:Pt,onTouchStart:C$3?Pt:void 0},{children:jsxRuntimeExports.jsx("div",{className:Bt},void 0)}),void 0)});var h$4;function p$4(_e,lt,Rt){let At,Pt;return lt?(At=_e/2,Pt=_e):Rt?(At=_e,Pt=_e/2):(At=_e,Pt=_e),{aGutterSize:At,bGutterSize:Pt}}function f$4(_e,lt){switch(lt.type){case h$4.SetIsReadyToCompute:return Object.assign(Object.assign({},_e),{isReady:lt.payload.isReady});case h$4.CreatePairs:{const{direction:Rt,children:At,gutters:Pt}=lt.payload,Dt=At[0].parentNode;if(!Dt)throw new Error("Cannot create pairs - parent is undefined.");const Lt=c$4(Rt,Dt);if(Lt===void 0)throw new Error(`Cannot create pairs - parent has undefined or zero size: ${Lt}.`);const Bt=[];return At.forEach((Nt,jt)=>{if(jt>0){const Ut=At[jt-1],Gt=At[jt],qt=Pt[jt-1],Xt=Rt===z$3.Horizontal?Ut.getBoundingClientRect().left:Ut.getBoundingClientRect().top,Kt=Rt===z$3.Horizontal?Gt.getBoundingClientRect().right:Gt.getBoundingClientRect().bottom,Zt=Rt===z$3.Horizontal?Ut.getBoundingClientRect().width+qt.getBoundingClientRect().width+Gt.getBoundingClientRect().width:Ut.getBoundingClientRect().height+qt.getBoundingClientRect().height+Gt.getBoundingClientRect().height,Qt=Rt===z$3.Horizontal?qt.getBoundingClientRect().width:qt.getBoundingClientRect().height,Jt={idx:jt-1,a:Ut,b:Gt,gutter:qt,parent:Dt,start:Xt,end:Kt,size:Zt,gutterSize:Qt,aSizePct:100/At.length,bSizePct:100/At.length};Bt.push(Jt)}}),Object.assign(Object.assign({},_e),{pairs:Bt})}case h$4.StartDragging:{const{gutterIdx:Rt}=lt.payload;return Object.assign(Object.assign({},_e),{isDragging:!0,draggingIdx:Rt})}case h$4.StopDragging:return Object.assign(Object.assign({},_e),{isDragging:!1});case h$4.CalculateSizes:{const{direction:Rt,gutterIdx:At}=lt.payload,Pt=_e.pairs[At],Dt=c$4(Rt,Pt.parent);if(!Dt)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const Lt=Pt.gutter[Rt===z$3.Horizontal?"clientWidth":"clientHeight"],Bt=At===0,Nt=At===_e.pairs.length-1,{aGutterSize:jt,bGutterSize:Ut}=p$4(Lt,Bt,Nt);let Gt,qt,Xt,Kt,Zt;return Rt===z$3.Horizontal?(Gt=Pt.a.getBoundingClientRect().left,qt=Pt.b.getBoundingClientRect().right,Kt=(Pt.a.getBoundingClientRect().width+jt)/Dt*100,Zt=(Pt.b.getBoundingClientRect().width+Ut)/Dt*100,Xt=Pt.a.getBoundingClientRect().width+jt+Ut+Pt.b.getBoundingClientRect().width):(Gt=Pt.a.getBoundingClientRect().top,qt=Pt.b.getBoundingClientRect().bottom,Kt=(Pt.a.getBoundingClientRect().height+jt)/Dt*100,Zt=(Pt.b.getBoundingClientRect().height+Ut)/Dt*100,Xt=Pt.a.getBoundingClientRect().height+jt+Ut+Pt.b.getBoundingClientRect().height),_e.pairs[At]=Object.assign(Object.assign({},Pt),{start:Gt,end:qt,size:Xt,aSizePct:Kt,bSizePct:Zt,gutterSize:Lt}),Object.assign({},_e)}default:return _e}}function _$3(_e,lt=0,Rt=[]){return reactExports.Children.toArray(_e).reduce((At,Pt,Dt)=>(reactIsExports.isFragment(Pt)?At.push.apply(At,_$3(Pt.props.children,lt+1,Rt.concat(Pt.key||Dt))):reactExports.isValidElement(Pt)?At.push(reactExports.cloneElement(Pt,{key:Rt.concat(String(Pt.key)).join(".")})):typeof Pt!="string"&&typeof Pt!="number"||At.push(Pt),At),[])}(function(_e){_e[_e.SetIsReadyToCompute=0]="SetIsReadyToCompute",_e[_e.CreatePairs=1]="CreatePairs",_e[_e.CalculateSizes=2]="CalculateSizes",_e[_e.StartDragging=3]="StartDragging",_e[_e.StopDragging=4]="StopDragging"})(h$4||(h$4={}));const b$4=_e=>"changedTouches"in _e;var z$3,w$4;(function(_e){_e.Horizontal="Horizontal",_e.Vertical="Vertical"})(z$3||(z$3={})),function(_e){_e.Light="Light",_e.Dark="Dark"}(w$4||(w$4={}));const C$3=typeof window<"u"&&"ontouchstart"in window;function y$4(_e){return _e===z$3.Horizontal?"col-resize":"row-resize"}const S$4={isReady:!1,isDragging:!1,pairs:[]};function m$4({direction:_e=z$3.Horizontal,minWidths:lt=[],minHeights:Rt=[],initialSizes:At,gutterTheme:Pt=w$4.Dark,gutterClassName:Dt,draggerClassName:Lt,children:Bt,onResizeStarted:Nt,onResizeFinished:jt,classes:Ut=[]}){const Gt=_$3(Bt),[qt,Xt]=reactExports.useReducer(f$4,S$4),Kt=reactExports.useRef(null),Zt=reactExports.useRef([]),Qt=reactExports.useRef([]);Zt.current=[],Qt.current=[];const Jt=React.useCallback(_n=>{Xt({type:h$4.SetIsReadyToCompute,payload:{isReady:_n}})},[]),en=React.useCallback((_n,xn)=>{Xt({type:h$4.StartDragging,payload:{gutterIdx:xn}});const ln=qt.pairs[xn];Nt==null||Nt(ln.idx),ln.a.style.userSelect="none",ln.b.style.userSelect="none",ln.gutter.style.cursor=y$4(_n),ln.parent.style.cursor=y$4(_n),document.body.style.cursor=y$4(_n)},[qt.pairs]),tn=React.useCallback(()=>{Xt({type:h$4.StopDragging});const _n=[];for(let ln=0;ln{Xt({type:h$4.CalculateSizes,payload:{direction:_n,gutterIdx:xn}})},[]),cn=React.useCallback((_n,xn,ln)=>{Xt({type:h$4.CreatePairs,payload:{direction:_n,children:xn,gutters:ln}})},[]),un=React.useCallback((_n,xn,ln,Mn)=>{const Tn=xn[0].parentNode;if(!Tn)throw new Error("Cannot set initial sizes - parent is undefined");if(c$4(_n,Tn)===void 0)throw new Error("Cannot set initial sizes - parent has undefined size");xn.forEach((An,Cn)=>{const wn=Cn===0,Fn=Cn===xn.length-1;let $n,Pn=0;xn.length>1&&(Pn=ln[Fn?Cn-1:Cn].getBoundingClientRect()[_n===z$3.Horizontal?"width":"height"],Pn=wn||Fn?Pn/2:Pn),$n=Mn&&Cn{if(qt.draggingIdx===void 0)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const ln=qt.pairs[qt.draggingIdx];if(ln.size===void 0)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(ln.gutterSize===void 0)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const Mn=ln.aSizePct+ln.bSizePct,Tn=xn/ln.size*Mn,An=Mn-xn/ln.size*Mn,Cn=qt.draggingIdx===0,wn=qt.draggingIdx===qt.pairs.length-1,{aGutterSize:Fn,bGutterSize:$n}=p$4(ln.gutterSize,Cn,wn),Pn=`calc(${Tn}% - ${Fn}px)`,Vn=`calc(${An}% - ${$n}px)`;_n===z$3.Horizontal?(ln.a.style.width=Pn,ln.b.style.width=Vn):(ln.a.style.height=Pn,ln.b.style.height=Vn)},[qt.draggingIdx,qt.pairs,_e]),sn=React.useCallback((_n,xn,ln)=>{if(!qt.isDragging)return;if(qt.draggingIdx===void 0)throw new Error("Cannot drag - 'draggingIdx' is undefined");const Mn=qt.pairs[qt.draggingIdx];if(Mn.start===void 0)throw new Error("Cannot drag - 'pair.start' is undefined");if(Mn.size===void 0)throw new Error("Cannot drag - 'pair.size' is undefined");if(Mn.gutterSize===void 0)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let Tn=function(wn,Fn){const $n=b$4(Fn)?Fn.changedTouches[0]:Fn;return wn===z$3.Horizontal?$n.clientX:$n.clientY}(xn,_n)-Mn.start,An=16,Cn=16;ln.length>qt.draggingIdx&&(An=ln[qt.draggingIdx]),ln.length>=qt.draggingIdx+1&&(Cn=ln[qt.draggingIdx+1]),Tn=Mn.size-(Mn.gutterSize+Cn)&&(Tn=Mn.size-(Mn.gutterSize+Cn)),rn(xn,Tn)},[qt.isDragging,qt.draggingIdx,qt.pairs,rn]),pn=()=>{if(qt.isDragging){if(qt.draggingIdx===void 0)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");an(_e,qt.draggingIdx),tn()}},bn=_n=>{qt.isDragging&&(b$4(_n)&&_n.preventDefault(),sn(_n,_e,_e===z$3.Horizontal?lt:Rt))};function gn(_n,xn){if(!_n.current)throw new Error("Can't add element to ref object - ref isn't initialized");xn&&!_n.current.includes(xn)&&_n.current.push(xn)}return l$4("mouseup",pn,[qt.isDragging,tn]),l$4("mousemove",bn,[_e,qt.isDragging,sn,lt,Rt]),l$4("touchend",pn,[qt.isDragging,tn],{condition:C$3}),l$4("touchmove",bn,[_e,qt.isDragging,sn,lt,Rt],{condition:C$3,passive:!C$3}),reactExports.useEffect(function(){if(!Kt.current)return;const _n=Kt.current.parentElement;if(!_n)return;const xn=new ResizeObserver(()=>{const ln=getComputedStyle(_n),Mn=_e===z$3.Horizontal?_n.clientWidth:_n.clientHeight;Jt(!!ln&&!!Mn)});return xn.observe(_n),()=>{xn.disconnect()}},[Kt.current,_e]),reactExports.useEffect(function(){if(qt.isReady&&(!Zt.current||Zt.current[0].offsetParent)){if(!Zt.current||!Qt.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");Gt.length<=1?un(_e,Zt.current,Qt.current,At):(un(_e,Zt.current,Qt.current,At),cn(_e,Zt.current,Qt.current))}},[Bt,qt.isReady,_e,un,cn,At]),jsxRuntimeExports.jsx("div",Object.assign({className:`__dbk__container ${_e}`,ref:Kt},{children:qt.isReady&&Gt.map((_n,xn)=>jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsx("div",Object.assign({ref:ln=>gn(Zt,ln),className:"__dbk__child-wrapper "+(xngn(Qt,ln),className:Dt,theme:Pt,draggerClassName:Lt,direction:_e,onDragging:()=>{return an(_e,ln=xn),void en(_e,ln);var ln}},void 0)]},xn))}),void 0)}const urlAlphabet="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let nanoid$1=(_e=21)=>{let lt="",Rt=crypto.getRandomValues(new Uint8Array(_e));for(;_e--;)lt+=urlAlphabet[Rt[_e]&63];return lt};function produce(_e,lt){const Rt=lodashExports$1.clone(_e);return lt(Rt),Rt}function transaction(_e,lt){return lt(lodashExports$1.clone(_e))}const producify=_e=>lt=>{const Rt=structuredClone(lt);return _e(Rt),Rt};function withProduce(_e){return lt=>reactExports.createElement(_e,{...lt,produce:Rt=>{var At;return(At=lt==null?void 0:lt.onChange)==null?void 0:At.call(lt,Pt=>produce(Pt,Rt))}})}const DndContext=reactExports.createContext({dragDropManager:void 0});function formatProdErrorMessage$1(_e){return"Minified Redux error #"+_e+"; visit https://redux.js.org/Errors?code="+_e+" for the full message or use the non-minified dev environment for full errors. "}var $$observable$1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString$1=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes$1={INIT:"@@redux/INIT"+randomString$1(),REPLACE:"@@redux/REPLACE"+randomString$1(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString$1()}};function isPlainObject$1(_e){if(typeof _e!="object"||_e===null)return!1;for(var lt=_e;Object.getPrototypeOf(lt)!==null;)lt=Object.getPrototypeOf(lt);return Object.getPrototypeOf(_e)===lt}function createStore$2(_e,lt,Rt){var At;if(typeof lt=="function"&&typeof Rt=="function"||typeof Rt=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof lt=="function"&&typeof Rt>"u"&&(Rt=lt,lt=void 0),typeof Rt<"u"){if(typeof Rt!="function")throw new Error(formatProdErrorMessage$1(1));return Rt(createStore$2)(_e,lt)}if(typeof _e!="function")throw new Error(formatProdErrorMessage$1(2));var Pt=_e,Dt=lt,Lt=[],Bt=Lt,Nt=!1;function jt(){Bt===Lt&&(Bt=Lt.slice())}function Ut(){if(Nt)throw new Error(formatProdErrorMessage$1(3));return Dt}function Gt(Zt){if(typeof Zt!="function")throw new Error(formatProdErrorMessage$1(4));if(Nt)throw new Error(formatProdErrorMessage$1(5));var Qt=!0;return jt(),Bt.push(Zt),function(){if(Qt){if(Nt)throw new Error(formatProdErrorMessage$1(6));Qt=!1,jt();var en=Bt.indexOf(Zt);Bt.splice(en,1),Lt=null}}}function qt(Zt){if(!isPlainObject$1(Zt))throw new Error(formatProdErrorMessage$1(7));if(typeof Zt.type>"u")throw new Error(formatProdErrorMessage$1(8));if(Nt)throw new Error(formatProdErrorMessage$1(9));try{Nt=!0,Dt=Pt(Dt,Zt)}finally{Nt=!1}for(var Qt=Lt=Bt,Jt=0;JtAt&&At[Pt]?At[Pt]:Rt||null,_e)}function without$1(_e,lt){return _e.filter(Rt=>Rt!==lt)}function isObject$7(_e){return typeof _e=="object"}function xor(_e,lt){const Rt=new Map,At=Dt=>{Rt.set(Dt,Rt.has(Dt)?Rt.get(Dt)+1:1)};_e.forEach(At),lt.forEach(At);const Pt=[];return Rt.forEach((Dt,Lt)=>{Dt===1&&Pt.push(Lt)}),Pt}function intersection(_e,lt){return _e.filter(Rt=>lt.indexOf(Rt)>-1)}const INIT_COORDS="dnd-core/INIT_COORDS",BEGIN_DRAG="dnd-core/BEGIN_DRAG",PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",HOVER="dnd-core/HOVER",DROP="dnd-core/DROP",END_DRAG="dnd-core/END_DRAG";function setClientOffset(_e,lt){return{type:INIT_COORDS,payload:{sourceClientOffset:lt||null,clientOffset:_e||null}}}const ResetCoordinatesAction={type:INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};function createBeginDrag(_e){return function(Rt=[],At={publishSource:!0}){const{publishSource:Pt=!0,clientOffset:Dt,getSourceClientOffset:Lt}=At,Bt=_e.getMonitor(),Nt=_e.getRegistry();_e.dispatch(setClientOffset(Dt)),verifyInvariants$1(Rt,Bt,Nt);const jt=getDraggableSource(Rt,Bt);if(jt==null){_e.dispatch(ResetCoordinatesAction);return}let Ut=null;if(Dt){if(!Lt)throw new Error("getSourceClientOffset must be defined");verifyGetSourceClientOffsetIsFunction(Lt),Ut=Lt(jt)}_e.dispatch(setClientOffset(Dt,Ut));const qt=Nt.getSource(jt).beginDrag(Bt,jt);if(qt==null)return;verifyItemIsObject(qt),Nt.pinSource(jt);const Xt=Nt.getSourceType(jt);return{type:BEGIN_DRAG,payload:{itemType:Xt,item:qt,sourceId:jt,clientOffset:Dt||null,sourceClientOffset:Ut||null,isSourcePublic:!!Pt}}}}function verifyInvariants$1(_e,lt,Rt){invariant$2(!lt.isDragging(),"Cannot call beginDrag while dragging."),_e.forEach(function(At){invariant$2(Rt.getSource(At),"Expected sourceIds to be registered.")})}function verifyGetSourceClientOffsetIsFunction(_e){invariant$2(typeof _e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function verifyItemIsObject(_e){invariant$2(isObject$7(_e),"Item must be an object.")}function getDraggableSource(_e,lt){let Rt=null;for(let At=_e.length-1;At>=0;At--)if(lt.canDragSource(_e[At])){Rt=_e[At];break}return Rt}function _defineProperty$8(_e,lt,Rt){return lt in _e?Object.defineProperty(_e,lt,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):_e[lt]=Rt,_e}function _objectSpread$4(_e){for(var lt=1;lt{const Nt=determineDropResult(Lt,Bt,Pt,At),jt={type:DROP,payload:{dropResult:_objectSpread$4({},Rt,Nt)}};_e.dispatch(jt)})}}function verifyInvariants(_e){invariant$2(_e.isDragging(),"Cannot call drop while not dragging."),invariant$2(!_e.didDrop(),"Cannot call drop twice during one drag operation.")}function determineDropResult(_e,lt,Rt,At){const Pt=Rt.getTarget(_e);let Dt=Pt?Pt.drop(At,_e):void 0;return verifyDropResultType(Dt),typeof Dt>"u"&&(Dt=lt===0?{}:At.getDropResult()),Dt}function verifyDropResultType(_e){invariant$2(typeof _e>"u"||isObject$7(_e),"Drop result must either be an object or undefined.")}function getDroppableTargets(_e){const lt=_e.getTargetIds().filter(_e.canDropOnTarget,_e);return lt.reverse(),lt}function createEndDrag(_e){return function(){const Rt=_e.getMonitor(),At=_e.getRegistry();verifyIsDragging(Rt);const Pt=Rt.getSourceId();return Pt!=null&&(At.getSource(Pt,!0).endDrag(Rt,Pt),At.unpinSource()),{type:END_DRAG}}}function verifyIsDragging(_e){invariant$2(_e.isDragging(),"Cannot call endDrag while not dragging.")}function matchesType(_e,lt){return lt===null?_e===null:Array.isArray(_e)?_e.some(Rt=>Rt===lt):_e===lt}function createHover(_e){return function(Rt,{clientOffset:At}={}){verifyTargetIdsIsArray(Rt);const Pt=Rt.slice(0),Dt=_e.getMonitor(),Lt=_e.getRegistry(),Bt=Dt.getItemType();return removeNonMatchingTargetIds(Pt,Lt,Bt),checkInvariants(Pt,Dt,Lt),hoverAllTargets(Pt,Dt,Lt),{type:HOVER,payload:{targetIds:Pt,clientOffset:At||null}}}}function verifyTargetIdsIsArray(_e){invariant$2(Array.isArray(_e),"Expected targetIds to be an array.")}function checkInvariants(_e,lt,Rt){invariant$2(lt.isDragging(),"Cannot call hover while not dragging."),invariant$2(!lt.didDrop(),"Cannot call hover after drop.");for(let At=0;At<_e.length;At++){const Pt=_e[At];invariant$2(_e.lastIndexOf(Pt)===At,"Expected targetIds to be unique in the passed array.");const Dt=Rt.getTarget(Pt);invariant$2(Dt,"Expected targetIds to be registered.")}}function removeNonMatchingTargetIds(_e,lt,Rt){for(let At=_e.length-1;At>=0;At--){const Pt=_e[At],Dt=lt.getTargetType(Pt);matchesType(Dt,Rt)||_e.splice(At,1)}}function hoverAllTargets(_e,lt,Rt){_e.forEach(function(At){Rt.getTarget(At).hover(lt,At)})}function createPublishDragSource(_e){return function(){if(_e.getMonitor().isDragging())return{type:PUBLISH_DRAG_SOURCE}}}function createDragDropActions(_e){return{beginDrag:createBeginDrag(_e),publishDragSource:createPublishDragSource(_e),hover:createHover(_e),drop:createDrop(_e),endDrag:createEndDrag(_e)}}class DragDropManagerImpl{receiveBackend(lt){this.backend=lt}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const lt=this,{dispatch:Rt}=this.store;function At(Dt){return(...Lt)=>{const Bt=Dt.apply(lt,Lt);typeof Bt<"u"&&Rt(Bt)}}const Pt=createDragDropActions(this);return Object.keys(Pt).reduce((Dt,Lt)=>{const Bt=Pt[Lt];return Dt[Lt]=At(Bt),Dt},{})}dispatch(lt){this.store.dispatch(lt)}constructor(lt,Rt){this.isSetUp=!1,this.handleRefCountChange=()=>{const At=this.store.getState().refCount>0;this.backend&&(At&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!At&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=lt,this.monitor=Rt,lt.subscribe(this.handleRefCountChange)}}function add$1(_e,lt){return{x:_e.x+lt.x,y:_e.y+lt.y}}function subtract$1(_e,lt){return{x:_e.x-lt.x,y:_e.y-lt.y}}function getSourceClientOffset(_e){const{clientOffset:lt,initialClientOffset:Rt,initialSourceClientOffset:At}=_e;return!lt||!Rt||!At?null:subtract$1(add$1(lt,At),Rt)}function getDifferenceFromInitialOffset(_e){const{clientOffset:lt,initialClientOffset:Rt}=_e;return!lt||!Rt?null:subtract$1(lt,Rt)}const NONE$2=[],ALL=[];NONE$2.__IS_NONE__=!0;ALL.__IS_ALL__=!0;function areDirty(_e,lt){return _e===NONE$2?!1:_e===ALL||typeof lt>"u"?!0:intersection(lt,_e).length>0}class DragDropMonitorImpl{subscribeToStateChange(lt,Rt={}){const{handlerIds:At}=Rt;invariant$2(typeof lt=="function","listener must be a function."),invariant$2(typeof At>"u"||Array.isArray(At),"handlerIds, when specified, must be an array of strings.");let Pt=this.store.getState().stateId;const Dt=()=>{const Lt=this.store.getState(),Bt=Lt.stateId;try{Bt===Pt||Bt===Pt+1&&!areDirty(Lt.dirtyHandlerIds,At)||lt()}finally{Pt=Bt}};return this.store.subscribe(Dt)}subscribeToOffsetChange(lt){invariant$2(typeof lt=="function","listener must be a function.");let Rt=this.store.getState().dragOffset;const At=()=>{const Pt=this.store.getState().dragOffset;Pt!==Rt&&(Rt=Pt,lt())};return this.store.subscribe(At)}canDragSource(lt){if(!lt)return!1;const Rt=this.registry.getSource(lt);return invariant$2(Rt,`Expected to find a valid source. sourceId=${lt}`),this.isDragging()?!1:Rt.canDrag(this,lt)}canDropOnTarget(lt){if(!lt)return!1;const Rt=this.registry.getTarget(lt);if(invariant$2(Rt,`Expected to find a valid target. targetId=${lt}`),!this.isDragging()||this.didDrop())return!1;const At=this.registry.getTargetType(lt),Pt=this.getItemType();return matchesType(At,Pt)&&Rt.canDrop(this,lt)}isDragging(){return!!this.getItemType()}isDraggingSource(lt){if(!lt)return!1;const Rt=this.registry.getSource(lt,!0);if(invariant$2(Rt,`Expected to find a valid source. sourceId=${lt}`),!this.isDragging()||!this.isSourcePublic())return!1;const At=this.registry.getSourceType(lt),Pt=this.getItemType();return At!==Pt?!1:Rt.isDragging(this,lt)}isOverTarget(lt,Rt={shallow:!1}){if(!lt)return!1;const{shallow:At}=Rt;if(!this.isDragging())return!1;const Pt=this.registry.getTargetType(lt),Dt=this.getItemType();if(Dt&&!matchesType(Pt,Dt))return!1;const Lt=this.getTargetIds();if(!Lt.length)return!1;const Bt=Lt.indexOf(lt);return At?Bt===Lt.length-1:Bt>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return getSourceClientOffset(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return getDifferenceFromInitialOffset(this.store.getState().dragOffset)}constructor(lt,Rt){this.store=lt,this.registry=Rt}}const scope=typeof global<"u"?global:self,BrowserMutationObserver=scope.MutationObserver||scope.WebKitMutationObserver;function makeRequestCallFromTimer(_e){return function(){const Rt=setTimeout(Pt,0),At=setInterval(Pt,50);function Pt(){clearTimeout(Rt),clearInterval(At),_e()}}}function makeRequestCallFromMutationObserver(_e){let lt=1;const Rt=new BrowserMutationObserver(_e),At=document.createTextNode("");return Rt.observe(At,{characterData:!0}),function(){lt=-lt,At.data=lt}}const makeRequestCall=typeof BrowserMutationObserver=="function"?makeRequestCallFromMutationObserver:makeRequestCallFromTimer;class AsapQueue{enqueueTask(lt){const{queue:Rt,requestFlush:At}=this;Rt.length||(At(),this.flushing=!0),Rt[Rt.length]=lt}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:lt}=this;for(;this.indexthis.capacity){for(let At=0,Pt=lt.length-this.index;At{this.pendingErrors.push(lt),this.requestErrorThrow()},this.requestFlush=makeRequestCall(this.flush),this.requestErrorThrow=makeRequestCallFromTimer(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class RawTask{call(){try{this.task&&this.task()}catch(lt){this.onError(lt)}finally{this.task=null,this.release(this)}}constructor(lt,Rt){this.onError=lt,this.release=Rt,this.task=null}}class TaskFactory{create(lt){const Rt=this.freeTasks,At=Rt.length?Rt.pop():new RawTask(this.onError,Pt=>Rt[Rt.length]=Pt);return At.task=lt,At}constructor(lt){this.onError=lt,this.freeTasks=[]}}const asapQueue=new AsapQueue,taskFactory=new TaskFactory(asapQueue.registerPendingError);function asap(_e){asapQueue.enqueueTask(taskFactory.create(_e))}const ADD_SOURCE="dnd-core/ADD_SOURCE",ADD_TARGET="dnd-core/ADD_TARGET",REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",REMOVE_TARGET="dnd-core/REMOVE_TARGET";function addSource(_e){return{type:ADD_SOURCE,payload:{sourceId:_e}}}function addTarget(_e){return{type:ADD_TARGET,payload:{targetId:_e}}}function removeSource(_e){return{type:REMOVE_SOURCE,payload:{sourceId:_e}}}function removeTarget(_e){return{type:REMOVE_TARGET,payload:{targetId:_e}}}function validateSourceContract(_e){invariant$2(typeof _e.canDrag=="function","Expected canDrag to be a function."),invariant$2(typeof _e.beginDrag=="function","Expected beginDrag to be a function."),invariant$2(typeof _e.endDrag=="function","Expected endDrag to be a function.")}function validateTargetContract(_e){invariant$2(typeof _e.canDrop=="function","Expected canDrop to be a function."),invariant$2(typeof _e.hover=="function","Expected hover to be a function."),invariant$2(typeof _e.drop=="function","Expected beginDrag to be a function.")}function validateType(_e,lt){if(lt&&Array.isArray(_e)){_e.forEach(Rt=>validateType(Rt,!1));return}invariant$2(typeof _e=="string"||typeof _e=="symbol",lt?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var HandlerRole;(function(_e){_e.SOURCE="SOURCE",_e.TARGET="TARGET"})(HandlerRole||(HandlerRole={}));let nextUniqueId=0;function getNextUniqueId(){return nextUniqueId++}function getNextHandlerId(_e){const lt=getNextUniqueId().toString();switch(_e){case HandlerRole.SOURCE:return`S${lt}`;case HandlerRole.TARGET:return`T${lt}`;default:throw new Error(`Unknown Handler Role: ${_e}`)}}function parseRoleFromHandlerId(_e){switch(_e[0]){case"S":return HandlerRole.SOURCE;case"T":return HandlerRole.TARGET;default:throw new Error(`Cannot parse handler ID: ${_e}`)}}function mapContainsValue(_e,lt){const Rt=_e.entries();let At=!1;do{const{done:Pt,value:[,Dt]}=Rt.next();if(Dt===lt)return!0;At=!!Pt}while(!At);return!1}class HandlerRegistryImpl{addSource(lt,Rt){validateType(lt),validateSourceContract(Rt);const At=this.addHandler(HandlerRole.SOURCE,lt,Rt);return this.store.dispatch(addSource(At)),At}addTarget(lt,Rt){validateType(lt,!0),validateTargetContract(Rt);const At=this.addHandler(HandlerRole.TARGET,lt,Rt);return this.store.dispatch(addTarget(At)),At}containsHandler(lt){return mapContainsValue(this.dragSources,lt)||mapContainsValue(this.dropTargets,lt)}getSource(lt,Rt=!1){return invariant$2(this.isSourceId(lt),"Expected a valid source ID."),Rt&<===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(lt)}getTarget(lt){return invariant$2(this.isTargetId(lt),"Expected a valid target ID."),this.dropTargets.get(lt)}getSourceType(lt){return invariant$2(this.isSourceId(lt),"Expected a valid source ID."),this.types.get(lt)}getTargetType(lt){return invariant$2(this.isTargetId(lt),"Expected a valid target ID."),this.types.get(lt)}isSourceId(lt){return parseRoleFromHandlerId(lt)===HandlerRole.SOURCE}isTargetId(lt){return parseRoleFromHandlerId(lt)===HandlerRole.TARGET}removeSource(lt){invariant$2(this.getSource(lt),"Expected an existing source."),this.store.dispatch(removeSource(lt)),asap(()=>{this.dragSources.delete(lt),this.types.delete(lt)})}removeTarget(lt){invariant$2(this.getTarget(lt),"Expected an existing target."),this.store.dispatch(removeTarget(lt)),this.dropTargets.delete(lt),this.types.delete(lt)}pinSource(lt){const Rt=this.getSource(lt);invariant$2(Rt,"Expected an existing source."),this.pinnedSourceId=lt,this.pinnedSource=Rt}unpinSource(){invariant$2(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(lt,Rt,At){const Pt=getNextHandlerId(lt);return this.types.set(Pt,Rt),lt===HandlerRole.SOURCE?this.dragSources.set(Pt,At):lt===HandlerRole.TARGET&&this.dropTargets.set(Pt,At),Pt}constructor(lt){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=lt}}const strictEquality=(_e,lt)=>_e===lt;function areCoordsEqual(_e,lt){return!_e&&!lt?!0:!_e||!lt?!1:_e.x===lt.x&&_e.y===lt.y}function areArraysEqual$1(_e,lt,Rt=strictEquality){if(_e.length!==lt.length)return!1;for(let At=0;At<_e.length;++At)if(!Rt(_e[At],lt[At]))return!1;return!0}function reduce$5(_e=NONE$2,lt){switch(lt.type){case HOVER:break;case ADD_SOURCE:case ADD_TARGET:case REMOVE_TARGET:case REMOVE_SOURCE:return NONE$2;case BEGIN_DRAG:case PUBLISH_DRAG_SOURCE:case END_DRAG:case DROP:default:return ALL}const{targetIds:Rt=[],prevTargetIds:At=[]}=lt.payload,Pt=xor(Rt,At);if(!(Pt.length>0||!areArraysEqual$1(Rt,At)))return NONE$2;const Lt=At[At.length-1],Bt=Rt[Rt.length-1];return Lt!==Bt&&(Lt&&Pt.push(Lt),Bt&&Pt.push(Bt)),Pt}function _defineProperty$7(_e,lt,Rt){return lt in _e?Object.defineProperty(_e,lt,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):_e[lt]=Rt,_e}function _objectSpread$3(_e){for(var lt=1;lt=0)&&Object.prototype.propertyIsEnumerable.call(_e,At)&&(Rt[At]=_e[At])}return Rt}function _objectWithoutPropertiesLoose$2(_e,lt){if(_e==null)return{};var Rt={},At=Object.keys(_e),Pt,Dt;for(Dt=0;Dt=0)&&(Rt[Pt]=_e[Pt]);return Rt}let refCount=0;const INSTANCE_SYM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var DndProvider=reactExports.memo(function(lt){var{children:Rt}=lt,At=_objectWithoutProperties$1(lt,["children"]);const[Pt,Dt]=getDndContextValue(At);return reactExports.useEffect(()=>{if(Dt){const Lt=getGlobalContext();return++refCount,()=>{--refCount===0&&(Lt[INSTANCE_SYM]=null)}}},[]),jsxRuntimeExports.jsx(DndContext.Provider,{value:Pt,children:Rt})});function getDndContextValue(_e){if("manager"in _e)return[{dragDropManager:_e.manager},!1];const lt=createSingletonDndContext(_e.backend,_e.context,_e.options,_e.debugMode),Rt=!_e.context;return[lt,Rt]}function createSingletonDndContext(_e,lt=getGlobalContext(),Rt,At){const Pt=lt;return Pt[INSTANCE_SYM]||(Pt[INSTANCE_SYM]={dragDropManager:createDragDropManager(_e,lt,Rt,At)}),Pt[INSTANCE_SYM]}function getGlobalContext(){return typeof global<"u"?global:window}var fastDeepEqual=function _e(lt,Rt){if(lt===Rt)return!0;if(lt&&Rt&&typeof lt=="object"&&typeof Rt=="object"){if(lt.constructor!==Rt.constructor)return!1;var At,Pt,Dt;if(Array.isArray(lt)){if(At=lt.length,At!=Rt.length)return!1;for(Pt=At;Pt--!==0;)if(!_e(lt[Pt],Rt[Pt]))return!1;return!0}if(lt.constructor===RegExp)return lt.source===Rt.source&<.flags===Rt.flags;if(lt.valueOf!==Object.prototype.valueOf)return lt.valueOf()===Rt.valueOf();if(lt.toString!==Object.prototype.toString)return lt.toString()===Rt.toString();if(Dt=Object.keys(lt),At=Dt.length,At!==Object.keys(Rt).length)return!1;for(Pt=At;Pt--!==0;)if(!Object.prototype.hasOwnProperty.call(Rt,Dt[Pt]))return!1;for(Pt=At;Pt--!==0;){var Lt=Dt[Pt];if(!_e(lt[Lt],Rt[Lt]))return!1}return!0}return lt!==lt&&Rt!==Rt};const equal=getDefaultExportFromCjs(fastDeepEqual),useIsomorphicLayoutEffect$6=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useCollector(_e,lt,Rt){const[At,Pt]=reactExports.useState(()=>lt(_e)),Dt=reactExports.useCallback(()=>{const Lt=lt(_e);equal(At,Lt)||(Pt(Lt),Rt&&Rt())},[At,_e,Rt]);return useIsomorphicLayoutEffect$6(Dt),[At,Dt]}function useMonitorOutput(_e,lt,Rt){const[At,Pt]=useCollector(_e,lt,Rt);return useIsomorphicLayoutEffect$6(function(){const Lt=_e.getHandlerId();if(Lt!=null)return _e.subscribeToStateChange(Pt,{handlerIds:[Lt]})},[_e,Pt]),At}function useCollectedProps(_e,lt,Rt){return useMonitorOutput(lt,_e||(()=>({})),()=>Rt.reconnect())}function useOptionalFactory(_e,lt){const Rt=[...lt||[]];return lt==null&&typeof _e!="function"&&Rt.push(_e),reactExports.useMemo(()=>typeof _e=="function"?_e():_e,Rt)}function useConnectDragSource(_e){return reactExports.useMemo(()=>_e.hooks.dragSource(),[_e])}function useConnectDragPreview(_e){return reactExports.useMemo(()=>_e.hooks.dragPreview(),[_e])}let isCallingCanDrag=!1,isCallingIsDragging=!1;class DragSourceMonitorImpl{receiveHandlerId(lt){this.sourceId=lt}getHandlerId(){return this.sourceId}canDrag(){invariant$2(!isCallingCanDrag,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return isCallingCanDrag=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{isCallingCanDrag=!1}}isDragging(){if(!this.sourceId)return!1;invariant$2(!isCallingIsDragging,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return isCallingIsDragging=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{isCallingIsDragging=!1}}subscribeToStateChange(lt,Rt){return this.internalMonitor.subscribeToStateChange(lt,Rt)}isDraggingSource(lt){return this.internalMonitor.isDraggingSource(lt)}isOverTarget(lt,Rt){return this.internalMonitor.isOverTarget(lt,Rt)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(lt){return this.internalMonitor.subscribeToOffsetChange(lt)}canDragSource(lt){return this.internalMonitor.canDragSource(lt)}canDropOnTarget(lt){return this.internalMonitor.canDropOnTarget(lt)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(lt){this.sourceId=null,this.internalMonitor=lt.getMonitor()}}let isCallingCanDrop=!1;class DropTargetMonitorImpl{receiveHandlerId(lt){this.targetId=lt}getHandlerId(){return this.targetId}subscribeToStateChange(lt,Rt){return this.internalMonitor.subscribeToStateChange(lt,Rt)}canDrop(){if(!this.targetId)return!1;invariant$2(!isCallingCanDrop,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return isCallingCanDrop=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{isCallingCanDrop=!1}}isOver(lt){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,lt):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(lt){this.targetId=null,this.internalMonitor=lt.getMonitor()}}function registerTarget(_e,lt,Rt){const At=Rt.getRegistry(),Pt=At.addTarget(_e,lt);return[Pt,()=>At.removeTarget(Pt)]}function registerSource(_e,lt,Rt){const At=Rt.getRegistry(),Pt=At.addSource(_e,lt);return[Pt,()=>At.removeSource(Pt)]}function shallowEqual$1(_e,lt,Rt,At){let Pt=Rt?Rt.call(At,_e,lt):void 0;if(Pt!==void 0)return!!Pt;if(_e===lt)return!0;if(typeof _e!="object"||!_e||typeof lt!="object"||!lt)return!1;const Dt=Object.keys(_e),Lt=Object.keys(lt);if(Dt.length!==Lt.length)return!1;const Bt=Object.prototype.hasOwnProperty.bind(lt);for(let Nt=0;Nt, or turn it into a drag source or a drop target itself.`)}function wrapHookToRecognizeElement(_e){return(lt=null,Rt=null)=>{if(!reactExports.isValidElement(lt)){const Dt=lt;return _e(Dt,Rt),Dt}const At=lt;return throwIfCompositeComponentElement(At),cloneWithRef(At,Rt?Dt=>_e(Dt,Rt):_e)}}function wrapConnectorHooks(_e){const lt={};return Object.keys(_e).forEach(Rt=>{const At=_e[Rt];if(Rt.endsWith("Ref"))lt[Rt]=_e[Rt];else{const Pt=wrapHookToRecognizeElement(At);lt[Rt]=()=>Pt}}),lt}function setRef(_e,lt){typeof _e=="function"?_e(lt):_e.current=lt}function cloneWithRef(_e,lt){const Rt=_e.ref;return invariant$2(typeof Rt!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),Rt?reactExports.cloneElement(_e,{ref:At=>{setRef(Rt,At),setRef(lt,At)}}):reactExports.cloneElement(_e,{ref:lt})}class SourceConnector{receiveHandlerId(lt){this.handlerId!==lt&&(this.handlerId=lt,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(lt){this.dragSourceOptionsInternal=lt}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(lt){this.dragPreviewOptionsInternal=lt}reconnect(){const lt=this.reconnectDragSource();this.reconnectDragPreview(lt)}reconnectDragSource(){const lt=this.dragSource,Rt=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return Rt&&this.disconnectDragSource(),this.handlerId?lt?(Rt&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=lt,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,lt,this.dragSourceOptions)),Rt):(this.lastConnectedDragSource=lt,Rt):Rt}reconnectDragPreview(lt=!1){const Rt=this.dragPreview,At=lt||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(At&&this.disconnectDragPreview(),!!this.handlerId){if(!Rt){this.lastConnectedDragPreview=Rt;return}At&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=Rt,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,Rt,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!shallowEqual$1(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!shallowEqual$1(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(lt){this.hooks=wrapConnectorHooks({dragSource:(Rt,At)=>{this.clearDragSource(),this.dragSourceOptions=At||null,isRef(Rt)?this.dragSourceRef=Rt:this.dragSourceNode=Rt,this.reconnectDragSource()},dragPreview:(Rt,At)=>{this.clearDragPreview(),this.dragPreviewOptions=At||null,isRef(Rt)?this.dragPreviewRef=Rt:this.dragPreviewNode=Rt,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=lt}}class TargetConnector{get connectTarget(){return this.dropTarget}reconnect(){const lt=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();lt&&this.disconnectDropTarget();const Rt=this.dropTarget;if(this.handlerId){if(!Rt){this.lastConnectedDropTarget=Rt;return}lt&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=Rt,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,Rt,this.dropTargetOptions))}}receiveHandlerId(lt){lt!==this.handlerId&&(this.handlerId=lt,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(lt){this.dropTargetOptionsInternal=lt}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!shallowEqual$1(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(lt){this.hooks=wrapConnectorHooks({dropTarget:(Rt,At)=>{this.clearDropTarget(),this.dropTargetOptions=At,isRef(Rt)?this.dropTargetRef=Rt:this.dropTargetNode=Rt,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=lt}}function useDragDropManager(){const{dragDropManager:_e}=reactExports.useContext(DndContext);return invariant$2(_e!=null,"Expected drag drop context"),_e}function useDragSourceConnector(_e,lt){const Rt=useDragDropManager(),At=reactExports.useMemo(()=>new SourceConnector(Rt.getBackend()),[Rt]);return useIsomorphicLayoutEffect$6(()=>(At.dragSourceOptions=_e||null,At.reconnect(),()=>At.disconnectDragSource()),[At,_e]),useIsomorphicLayoutEffect$6(()=>(At.dragPreviewOptions=lt||null,At.reconnect(),()=>At.disconnectDragPreview()),[At,lt]),At}function useDragSourceMonitor(){const _e=useDragDropManager();return reactExports.useMemo(()=>new DragSourceMonitorImpl(_e),[_e])}class DragSourceImpl{beginDrag(){const lt=this.spec,Rt=this.monitor;let At=null;return typeof lt.item=="object"?At=lt.item:typeof lt.item=="function"?At=lt.item(Rt):At={},At??null}canDrag(){const lt=this.spec,Rt=this.monitor;return typeof lt.canDrag=="boolean"?lt.canDrag:typeof lt.canDrag=="function"?lt.canDrag(Rt):!0}isDragging(lt,Rt){const At=this.spec,Pt=this.monitor,{isDragging:Dt}=At;return Dt?Dt(Pt):Rt===lt.getSourceId()}endDrag(){const lt=this.spec,Rt=this.monitor,At=this.connector,{end:Pt}=lt;Pt&&Pt(Rt.getItem(),Rt),At.reconnect()}constructor(lt,Rt,At){this.spec=lt,this.monitor=Rt,this.connector=At}}function useDragSource(_e,lt,Rt){const At=reactExports.useMemo(()=>new DragSourceImpl(_e,lt,Rt),[lt,Rt]);return reactExports.useEffect(()=>{At.spec=_e},[_e]),At}function useDragType(_e){return reactExports.useMemo(()=>{const lt=_e.type;return invariant$2(lt!=null,"spec.type must be defined"),lt},[_e])}function useRegisteredDragSource(_e,lt,Rt){const At=useDragDropManager(),Pt=useDragSource(_e,lt,Rt),Dt=useDragType(_e);useIsomorphicLayoutEffect$6(function(){if(Dt!=null){const[Bt,Nt]=registerSource(Dt,Pt,At);return lt.receiveHandlerId(Bt),Rt.receiveHandlerId(Bt),Nt}},[At,lt,Rt,Pt,Dt])}function useDrag(_e,lt){const Rt=useOptionalFactory(_e,lt);invariant$2(!Rt.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const At=useDragSourceMonitor(),Pt=useDragSourceConnector(Rt.options,Rt.previewOptions);return useRegisteredDragSource(Rt,At,Pt),[useCollectedProps(Rt.collect,At,Pt),useConnectDragSource(Pt),useConnectDragPreview(Pt)]}function useConnectDropTarget(_e){return reactExports.useMemo(()=>_e.hooks.dropTarget(),[_e])}function useDropTargetConnector(_e){const lt=useDragDropManager(),Rt=reactExports.useMemo(()=>new TargetConnector(lt.getBackend()),[lt]);return useIsomorphicLayoutEffect$6(()=>(Rt.dropTargetOptions=_e||null,Rt.reconnect(),()=>Rt.disconnectDropTarget()),[_e]),Rt}function useDropTargetMonitor(){const _e=useDragDropManager();return reactExports.useMemo(()=>new DropTargetMonitorImpl(_e),[_e])}function useAccept(_e){const{accept:lt}=_e;return reactExports.useMemo(()=>(invariant$2(_e.accept!=null,"accept must be defined"),Array.isArray(lt)?lt:[lt]),[lt])}class DropTargetImpl{canDrop(){const lt=this.spec,Rt=this.monitor;return lt.canDrop?lt.canDrop(Rt.getItem(),Rt):!0}hover(){const lt=this.spec,Rt=this.monitor;lt.hover&<.hover(Rt.getItem(),Rt)}drop(){const lt=this.spec,Rt=this.monitor;if(lt.drop)return lt.drop(Rt.getItem(),Rt)}constructor(lt,Rt){this.spec=lt,this.monitor=Rt}}function useDropTarget(_e,lt){const Rt=reactExports.useMemo(()=>new DropTargetImpl(_e,lt),[lt]);return reactExports.useEffect(()=>{Rt.spec=_e},[_e]),Rt}function useRegisteredDropTarget(_e,lt,Rt){const At=useDragDropManager(),Pt=useDropTarget(_e,lt),Dt=useAccept(_e);useIsomorphicLayoutEffect$6(function(){const[Bt,Nt]=registerTarget(Dt,Pt,At);return lt.receiveHandlerId(Bt),Rt.receiveHandlerId(Bt),Nt},[At,lt,Pt,Rt,Dt.map(Lt=>Lt.toString()).join("|")])}function useDrop(_e,lt){const Rt=useOptionalFactory(_e,lt),At=useDropTargetMonitor(),Pt=useDropTargetConnector(Rt.options);return useRegisteredDropTarget(Rt,At,Pt),[useCollectedProps(Rt.collect,At,Pt),useConnectDropTarget(Pt)]}function memoize(_e){let lt=null;return()=>(lt==null&&(lt=_e()),lt)}function without(_e,lt){return _e.filter(Rt=>Rt!==lt)}function union(_e,lt){const Rt=new Set,At=Dt=>Rt.add(Dt);_e.forEach(At),lt.forEach(At);const Pt=[];return Rt.forEach(Dt=>Pt.push(Dt)),Pt}class EnterLeaveCounter{enter(lt){const Rt=this.entered.length,At=Pt=>this.isNodeInDocument(Pt)&&(!Pt.contains||Pt.contains(lt));return this.entered=union(this.entered.filter(At),[lt]),Rt===0&&this.entered.length>0}leave(lt){const Rt=this.entered.length;return this.entered=without(this.entered.filter(this.isNodeInDocument),lt),Rt>0&&this.entered.length===0}reset(){this.entered=[]}constructor(lt){this.entered=[],this.isNodeInDocument=lt}}class NativeDragSource{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(lt=>{Object.defineProperty(this.item,lt,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${lt}" until the drop event.`),null}})})}loadDataTransfer(lt){if(lt){const Rt={};Object.keys(this.config.exposeProperties).forEach(At=>{const Pt=this.config.exposeProperties[At];Pt!=null&&(Rt[At]={value:Pt(lt,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,Rt)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(lt,Rt){return Rt===lt.getSourceId()}endDrag(){}constructor(lt){this.config=lt,this.item={},this.initializeExposedProperties()}}const FILE="__NATIVE_FILE__",URL$1="__NATIVE_URL__",TEXT="__NATIVE_TEXT__",HTML="__NATIVE_HTML__",NativeTypes=Object.freeze(Object.defineProperty({__proto__:null,FILE,HTML,TEXT,URL:URL$1},Symbol.toStringTag,{value:"Module"}));function getDataFromDataTransfer(_e,lt,Rt){const At=lt.reduce((Pt,Dt)=>Pt||_e.getData(Dt),"");return At??Rt}const nativeTypesConfig={[FILE]:{exposeProperties:{files:_e=>Array.prototype.slice.call(_e.files),items:_e=>_e.items,dataTransfer:_e=>_e},matchesTypes:["Files"]},[HTML]:{exposeProperties:{html:(_e,lt)=>getDataFromDataTransfer(_e,lt,""),dataTransfer:_e=>_e},matchesTypes:["Html","text/html"]},[URL$1]:{exposeProperties:{urls:(_e,lt)=>getDataFromDataTransfer(_e,lt,"").split(` -`),dataTransfer:_e=>_e},matchesTypes:["Url","text/uri-list"]},[TEXT]:{exposeProperties:{text:(_e,lt)=>getDataFromDataTransfer(_e,lt,""),dataTransfer:_e=>_e},matchesTypes:["Text","text/plain"]}};function createNativeDragSource(_e,lt){const Rt=nativeTypesConfig[_e];if(!Rt)throw new Error(`native type ${_e} has no configuration`);const At=new NativeDragSource(Rt);return At.loadDataTransfer(lt),At}function matchNativeItemType(_e){if(!_e)return null;const lt=Array.prototype.slice.call(_e.types||[]);return Object.keys(nativeTypesConfig).filter(Rt=>{const At=nativeTypesConfig[Rt];return At!=null&&At.matchesTypes?At.matchesTypes.some(Pt=>lt.indexOf(Pt)>-1):!1})[0]||null}const isFirefox=memoize(()=>/firefox/i.test(navigator.userAgent)),isSafari=memoize(()=>!!window.safari);class MonotonicInterpolant{interpolate(lt){const{xs:Rt,ys:At,c1s:Pt,c2s:Dt,c3s:Lt}=this;let Bt=Rt.length-1;if(lt===Rt[Bt])return At[Bt];let Nt=0,jt=Lt.length-1,Ut;for(;Nt<=jt;){Ut=Math.floor(.5*(Nt+jt));const Xt=Rt[Ut];if(Xtlt)jt=Ut-1;else return At[Ut]}Bt=Math.max(0,jt);const Gt=lt-Rt[Bt],qt=Gt*Gt;return At[Bt]+Pt[Bt]*Gt+Dt[Bt]*qt+Lt[Bt]*Gt*qt}constructor(lt,Rt){const{length:At}=lt,Pt=[];for(let Xt=0;Xtlt[Xt]{let un=new MonotonicInterpolant([0,.5,1],[Nt.y,Nt.y/Ut*Kt,Nt.y+Kt-Ut]).interpolate(qt);return isSafari()&&Dt&&(un+=(window.devicePixelRatio-1)*Kt),un},Qt=()=>new MonotonicInterpolant([0,.5,1],[Nt.x,Nt.x/jt*Xt,Nt.x+Xt-jt]).interpolate(Gt),{offsetX:Jt,offsetY:en}=Pt,tn=Jt===0||Jt,an=en===0||en;return{x:tn?Jt:Qt(),y:an?en:Zt()}}class OptionsReader{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var lt;return!((lt=this.globalContext)===null||lt===void 0)&<.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var lt;return((lt=this.optionsArgs)===null||lt===void 0?void 0:lt.rootElement)||this.window}constructor(lt,Rt){this.ownerDocument=null,this.globalContext=lt,this.optionsArgs=Rt}}function _defineProperty$4(_e,lt,Rt){return lt in _e?Object.defineProperty(_e,lt,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):_e[lt]=Rt,_e}function _objectSpread(_e){for(var lt=1;lt{this.sourcePreviewNodes.delete(lt),this.sourcePreviewNodeOptions.delete(lt)}}connectDragSource(lt,Rt,At){this.sourceNodes.set(lt,Rt),this.sourceNodeOptions.set(lt,At);const Pt=Lt=>this.handleDragStart(Lt,lt),Dt=Lt=>this.handleSelectStart(Lt);return Rt.setAttribute("draggable","true"),Rt.addEventListener("dragstart",Pt),Rt.addEventListener("selectstart",Dt),()=>{this.sourceNodes.delete(lt),this.sourceNodeOptions.delete(lt),Rt.removeEventListener("dragstart",Pt),Rt.removeEventListener("selectstart",Dt),Rt.setAttribute("draggable","false")}}connectDropTarget(lt,Rt){const At=Lt=>this.handleDragEnter(Lt,lt),Pt=Lt=>this.handleDragOver(Lt,lt),Dt=Lt=>this.handleDrop(Lt,lt);return Rt.addEventListener("dragenter",At),Rt.addEventListener("dragover",Pt),Rt.addEventListener("drop",Dt),()=>{Rt.removeEventListener("dragenter",At),Rt.removeEventListener("dragover",Pt),Rt.removeEventListener("drop",Dt)}}addEventListeners(lt){lt.addEventListener&&(lt.addEventListener("dragstart",this.handleTopDragStart),lt.addEventListener("dragstart",this.handleTopDragStartCapture,!0),lt.addEventListener("dragend",this.handleTopDragEndCapture,!0),lt.addEventListener("dragenter",this.handleTopDragEnter),lt.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),lt.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),lt.addEventListener("dragover",this.handleTopDragOver),lt.addEventListener("dragover",this.handleTopDragOverCapture,!0),lt.addEventListener("drop",this.handleTopDrop),lt.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(lt){lt.removeEventListener&&(lt.removeEventListener("dragstart",this.handleTopDragStart),lt.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),lt.removeEventListener("dragend",this.handleTopDragEndCapture,!0),lt.removeEventListener("dragenter",this.handleTopDragEnter),lt.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),lt.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),lt.removeEventListener("dragover",this.handleTopDragOver),lt.removeEventListener("dragover",this.handleTopDragOverCapture,!0),lt.removeEventListener("drop",this.handleTopDrop),lt.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const lt=this.monitor.getSourceId(),Rt=this.sourceNodeOptions.get(lt);return _objectSpread({dropEffect:this.altKeyPressed?"copy":"move"},Rt||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const lt=this.monitor.getSourceId(),Rt=this.sourcePreviewNodeOptions.get(lt);return _objectSpread({anchorX:.5,anchorY:.5,captureDraggingState:!1},Rt||{})}isDraggingNativeItem(){const lt=this.monitor.getItemType();return Object.keys(NativeTypes).some(Rt=>NativeTypes[Rt]===lt)}beginDragNativeItem(lt,Rt){this.clearCurrentDragSourceNode(),this.currentNativeSource=createNativeDragSource(lt,Rt),this.currentNativeHandle=this.registry.addSource(lt,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(lt){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=lt;const Rt=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var At;return(At=this.rootElement)===null||At===void 0?void 0:At.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},Rt)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var lt;(lt=this.window)===null||lt===void 0||lt.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(lt,Rt){lt.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(Rt))}handleDragEnter(lt,Rt){this.dragEnterTargetIds.unshift(Rt)}handleDragOver(lt,Rt){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(Rt)}handleDrop(lt,Rt){this.dropTargetIds.unshift(Rt)}constructor(lt,Rt,At){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=Pt=>{const Dt=this.sourceNodes.get(Pt);return Dt&&getNodeClientOffset(Dt)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=Pt=>!!(Pt&&this.document&&this.document.body&&this.document.body.contains(Pt)),this.endDragIfSourceWasRemovedFromDOM=()=>{const Pt=this.currentDragSourceNode;Pt==null||this.isNodeInDocument(Pt)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=Pt=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(Pt||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=Pt=>{if(Pt.defaultPrevented)return;const{dragStartSourceIds:Dt}=this;this.dragStartSourceIds=null;const Lt=getEventClientOffset(Pt);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(Dt||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:Lt});const{dataTransfer:Bt}=Pt,Nt=matchNativeItemType(Bt);if(this.monitor.isDragging()){if(Bt&&typeof Bt.setDragImage=="function"){const Ut=this.monitor.getSourceId(),Gt=this.sourceNodes.get(Ut),qt=this.sourcePreviewNodes.get(Ut)||Gt;if(qt){const{anchorX:Xt,anchorY:Kt,offsetX:Zt,offsetY:Qt}=this.getCurrentSourcePreviewNodeOptions(),tn=getDragPreviewOffset(Gt,qt,Lt,{anchorX:Xt,anchorY:Kt},{offsetX:Zt,offsetY:Qt});Bt.setDragImage(qt,tn.x,tn.y)}}try{Bt==null||Bt.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(Pt.target);const{captureDraggingState:jt}=this.getCurrentSourcePreviewNodeOptions();jt?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(Nt)this.beginDragNativeItem(Nt);else{if(Bt&&!Bt.types&&(Pt.target&&!Pt.target.hasAttribute||!Pt.target.hasAttribute("draggable")))return;Pt.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=Pt=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var Dt;(Dt=this.currentNativeSource)===null||Dt===void 0||Dt.loadDataTransfer(Pt.dataTransfer)}if(!this.enterLeaveCounter.enter(Pt.target)||this.monitor.isDragging())return;const{dataTransfer:Bt}=Pt,Nt=matchNativeItemType(Bt);Nt&&this.beginDragNativeItem(Nt,Bt)},this.handleTopDragEnter=Pt=>{const{dragEnterTargetIds:Dt}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=Pt.altKey,Dt.length>0&&this.actions.hover(Dt,{clientOffset:getEventClientOffset(Pt)}),Dt.some(Bt=>this.monitor.canDropOnTarget(Bt))&&(Pt.preventDefault(),Pt.dataTransfer&&(Pt.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=Pt=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var Dt;(Dt=this.currentNativeSource)===null||Dt===void 0||Dt.loadDataTransfer(Pt.dataTransfer)}},this.handleTopDragOver=Pt=>{const{dragOverTargetIds:Dt}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){Pt.preventDefault(),Pt.dataTransfer&&(Pt.dataTransfer.dropEffect="none");return}this.altKeyPressed=Pt.altKey,this.lastClientOffset=getEventClientOffset(Pt),this.scheduleHover(Dt),(Dt||[]).some(Bt=>this.monitor.canDropOnTarget(Bt))?(Pt.preventDefault(),Pt.dataTransfer&&(Pt.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?Pt.preventDefault():(Pt.preventDefault(),Pt.dataTransfer&&(Pt.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=Pt=>{this.isDraggingNativeItem()&&Pt.preventDefault(),this.enterLeaveCounter.leave(Pt.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=Pt=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var Dt;Pt.preventDefault(),(Dt=this.currentNativeSource)===null||Dt===void 0||Dt.loadDataTransfer(Pt.dataTransfer)}else matchNativeItemType(Pt.dataTransfer)&&Pt.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=Pt=>{const{dropTargetIds:Dt}=this;this.dropTargetIds=[],this.actions.hover(Dt,{clientOffset:getEventClientOffset(Pt)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=Pt=>{const Dt=Pt.target;typeof Dt.dragDrop=="function"&&(Dt.tagName==="INPUT"||Dt.tagName==="SELECT"||Dt.tagName==="TEXTAREA"||Dt.isContentEditable||(Pt.preventDefault(),Dt.dragDrop()))},this.options=new OptionsReader(Rt,At),this.actions=lt.getActions(),this.monitor=lt.getMonitor(),this.registry=lt.getRegistry(),this.enterLeaveCounter=new EnterLeaveCounter(this.isNodeInDocument)}}const HTML5Backend=function(lt,Rt,At){return new HTML5BackendImpl(lt,Rt,At)};function useEvent(_e){if(typeof window>"u")return _e;const lt=reactExports.useRef(null);return reactExports.useLayoutEffect(()=>{lt.current=_e}),reactExports.useCallback((...Rt)=>{var At;(At=lt.current)===null||At===void 0||At.call(lt,...Rt)},[])}const printedWarnings={};function warn$1(_e,lt){printedWarnings[_e]||(printedWarnings[_e]=!0,console.error("[material-ui-popup-state] WARNING",lt))}const initCoreState={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function usePopupState({parentPopupState:_e,popupId:lt,variant:Rt,disableAutoFocus:At}){const Pt=reactExports.useRef(!0);reactExports.useEffect(()=>(Pt.current=!0,()=>{Pt.current=!1}),[]);const[Dt,Lt]=reactExports.useState(initCoreState),Bt=reactExports.useCallback(en=>{Pt.current&&Lt(en)},[]),Nt=reactExports.useCallback(en=>Bt(tn=>({...tn,setAnchorElUsed:!0,anchorEl:en??void 0})),[]),jt=useEvent(en=>(Dt.isOpen?qt(en):Ut(en),Dt)),Ut=useEvent(en=>{const tn=en instanceof Element?void 0:en,an=en instanceof Element?en:(en==null?void 0:en.currentTarget)instanceof Element?en.currentTarget:void 0;if((tn==null?void 0:tn.type)==="touchstart"){Bt(pn=>({...pn,_deferNextOpen:!0}));return}const cn=tn==null?void 0:tn.clientX,un=tn==null?void 0:tn.clientY,rn=typeof cn=="number"&&typeof un=="number"?{left:cn,top:un}:void 0,sn=pn=>{if(!en&&!pn.setAnchorElUsed&&Rt!=="dialog"&&warn$1("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),_e){if(!_e.isOpen)return pn;setTimeout(()=>_e._setChildPopupState(Jt))}const bn={...pn,isOpen:!0,anchorPosition:rn,hovered:(tn==null?void 0:tn.type)==="mouseover"||pn.hovered,focused:(tn==null?void 0:tn.type)==="focus"||pn.focused,_openEventType:tn==null?void 0:tn.type};return tn!=null&&tn.currentTarget?pn.setAnchorElUsed||(bn.anchorEl=tn==null?void 0:tn.currentTarget):an&&(bn.anchorEl=an),bn};Bt(pn=>pn._deferNextOpen?(setTimeout(()=>Bt(sn),0),{...pn,_deferNextOpen:!1}):sn(pn))}),Gt=en=>{const{_childPopupState:tn}=en;return setTimeout(()=>{tn==null||tn.close(),_e==null||_e._setChildPopupState(null)}),{...en,isOpen:!1,hovered:!1,focused:!1}},qt=useEvent(en=>{const tn=en instanceof Element?void 0:en;if((tn==null?void 0:tn.type)==="touchstart"){Bt(an=>({...an,_deferNextClose:!0}));return}Bt(an=>an._deferNextClose?(setTimeout(()=>Bt(Gt),0),{...an,_deferNextClose:!1}):Gt(an))}),Xt=reactExports.useCallback((en,tn)=>{en?Ut(tn):qt(tn)},[]),Kt=useEvent(en=>{const{relatedTarget:tn}=en;Bt(an=>an.hovered&&!(tn instanceof Element&&isElementInPopup(tn,Jt))?an.focused?{...an,hovered:!1}:Gt(an):an)}),Zt=useEvent(en=>{if(!en)return;const{relatedTarget:tn}=en;Bt(an=>an.focused&&!(tn instanceof Element&&isElementInPopup(tn,Jt))?an.hovered?{...an,focused:!1}:Gt(an):an)}),Qt=reactExports.useCallback(en=>Bt(tn=>({...tn,_childPopupState:en})),[]),Jt={...Dt,setAnchorEl:Nt,popupId:lt,variant:Rt,open:Ut,close:qt,toggle:jt,setOpen:Xt,onBlur:Zt,onMouseLeave:Kt,disableAutoFocus:At??!!(Dt.hovered||Dt.focused),_setChildPopupState:Qt};return Jt}function controlAriaProps({isOpen:_e,popupId:lt,variant:Rt}){return{...Rt==="popover"?{"aria-haspopup":!0,"aria-controls":_e&<!=null?lt:void 0}:Rt==="popper"?{"aria-describedby":_e&<!=null?lt:void 0}:void 0}}function bindTrigger(_e){return{...controlAriaProps(_e),onClick:_e.open,onTouchStart:_e.open}}function bindPopover({isOpen:_e,anchorEl:lt,anchorPosition:Rt,close:At,popupId:Pt,onMouseLeave:Dt,disableAutoFocus:Lt,_openEventType:Bt}){return{id:Pt,anchorEl:lt,anchorPosition:Rt,anchorReference:Bt==="contextmenu"?"anchorPosition":"anchorEl",open:_e,onClose:At,onMouseLeave:Dt,...Lt&&{disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function bindMenu({isOpen:_e,anchorEl:lt,anchorPosition:Rt,close:At,popupId:Pt,onMouseLeave:Dt,disableAutoFocus:Lt,_openEventType:Bt}){return{id:Pt,anchorEl:lt,anchorPosition:Rt,anchorReference:Bt==="contextmenu"?"anchorPosition":"anchorEl",open:_e,onClose:At,onMouseLeave:Dt,...Lt&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function getPopup(_e,{popupId:lt}){if(!lt)return null;const Rt=typeof _e.getRootNode=="function"?_e.getRootNode():document;return typeof Rt.getElementById=="function"?Rt.getElementById(lt):null}function isElementInPopup(_e,lt){const{anchorEl:Rt,_childPopupState:At}=lt;return isAncestor(Rt,_e)||isAncestor(getPopup(_e,lt),_e)||At!=null&&isElementInPopup(_e,At)}function isAncestor(_e,lt){if(!_e)return!1;for(;lt;){if(lt===_e)return!0;lt=lt.parentElement}return!1}function PopupState({children:_e,popupId:lt,variant:Rt,parentPopupState:At,disableAutoFocus:Pt}){const Dt=usePopupState({popupId:lt,variant:Rt,parentPopupState:At,disableAutoFocus:Pt}),Lt=_e(Dt);return Lt??null}PopupState.propTypes={children:PropTypes$1.func.isRequired,popupId:PropTypes$1.string,variant:PropTypes$1.oneOf(["popover","popper"]).isRequired,parentPopupState:PropTypes$1.object,disableAutoFocus:PropTypes$1.bool};function ViewControls({onSplitHorizontal:_e,onClose:lt,onSplitVertical:Rt,closeDisabled:At,splitHorizontalDisabled:Pt,splitVerticalDisabled:Dt,onPopOut:Lt,popOutDisabled:Bt}){return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Nt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Stack$1,{sx:{m:1},children:jsxRuntimeExports.jsx(Tooltip$1,{title:"Panel Options",children:jsxRuntimeExports.jsx(IconButton$1,{size:"small",...bindTrigger(Nt),children:jsxRuntimeExports.jsx(MoreVertOutlined,{fontSize:"small"})})})}),jsxRuntimeExports.jsxs(Menu$1,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},...bindMenu(Nt),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{Rt==null||Rt(),Nt.close()},disabled:Dt,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(SplitIcon,{fontSize:"small"})}),jsxRuntimeExports.jsx(ListItemText$1,{children:"Split Vertical"})]}),jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{_e==null||_e(),Nt.close()},disabled:Pt,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(SplitIcon,{fontSize:"small",sx:{transform:"rotate(90deg)"}})}),jsxRuntimeExports.jsx(ListItemText$1,{children:"Split Horizontal"})]}),jsxRuntimeExports.jsx(Divider$1,{}),!(Bt||At)&&jsxRuntimeExports.jsxs(Box$1,{children:[jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{Lt==null||Lt(),lt==null||lt(),Nt.close()},children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(OpenInNewOutlined,{fontSize:"small"})}),jsxRuntimeExports.jsx(ListItemText$1,{children:"Pop Out"})]}),jsxRuntimeExports.jsx(Divider$1,{})]}),jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{lt==null||lt(),Nt.close()},disabled:At,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(CloseOutlined,{fontSize:"small"})}),jsxRuntimeExports.jsx(ListItemText$1,{children:"Close Panel"})]})]})]})})}function findInTree(_e,lt){const Rt=At=>{var Pt;return"children"in At&&((Pt=At.children)!=null&&Pt.length)?lodashExports$1.flatMap(At.children,Rt):[At]};return lodashExports$1.find(Rt(_e),lt)}const ViewTreeContext=reactExports.createContext({});function useViewTreeContext(){return reactExports.useContext(ViewTreeContext)}function handleSwap(_e,lt,Rt){const At=findInTree(_e,Dt=>Dt.key===lt),Pt=findInTree(_e,Dt=>Dt.key===Rt);if((At==null?void 0:At.type)==="leaf"&&(Pt==null?void 0:Pt.type)==="leaf"){const Dt=lodashExports$1.pick(At,"content","key"),Lt=lodashExports$1.pick(Pt,"content","key");Object.assign(At,Lt),Object.assign(Pt,Dt)}return _e}function ViewTree(_e){const{onChange:lt,root:Rt}=_e;return jsxRuntimeExports.jsx(DndProvider,{backend:HTML5Backend,children:jsxRuntimeExports.jsx(ViewBranch,{..._e,onSwap:(At,Pt)=>{Rt&&(lt==null||lt(produce(Rt,Dt=>handleSwap(Dt,At,Pt))))}})})}function ViewLeaf({root:_e={type:"leaf",key:""},renderLeaf:lt,onChange:Rt,onClose:At,onPopOut:Pt,canPopOut:Dt,depth:Lt=0,onSwap:Bt}){const[{isOver:Nt},jt]=useDrop(()=>({accept:["panel"],collect:Xt=>({isOver:Xt.isOver()&&Xt.getItem().key!==_e.key}),drop:Xt=>Bt==null?void 0:Bt(Xt.key,_e.key)})),[{isDragging:Ut},Gt]=useDrag(()=>({type:"panel",item:{key:_e.key},collect:Xt=>({isDragging:Xt.isDragging()})})),qt=reactExports.useMemo(()=>{const Xt=Kt=>Rt==null?void 0:Rt(transaction(_e,Zt=>({key:nanoid$1(),type:"branch",orientation:Kt,children:[{...structuredClone(Zt),size:50,key:nanoid$1()},{...structuredClone(Zt),size:50,key:nanoid$1()}]})));return _e.type==="leaf"?{isViewTree:!0,state:_e.content,controls:jsxRuntimeExports.jsx(ViewControls,{onClose:At,closeDisabled:!Lt,onSplitHorizontal:()=>Xt("horizontal"),onSplitVertical:()=>Xt("vertical"),onPopOut:()=>Pt==null?void 0:Pt(_e),popOutDisabled:!(Dt!=null&&Dt(_e))}),dragHandle:jsxRuntimeExports.jsx(Box$1,{ref:Gt,sx:{display:"flex",alignItems:"center"},children:jsxRuntimeExports.jsx(DragIndicatorOutlined,{fontSize:"small",color:"disabled",sx:{mr:.5,cursor:"grab"}})}),onChange:Kt=>Rt==null?void 0:Rt(produce(_e,Zt=>{Zt.content={...Zt.content,...Kt}}))}:{}},[Rt,At,Lt,_e,Gt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Flex,{ref:jt,sx:{overflow:"hidden","::before":{pointerEvents:"none",content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,boxShadow:Xt=>Nt?`inset 0 0 0 2px ${Xt.palette.primary.main}`:"none",transition:Xt=>Xt.transitions.create("box-shadow")},transition:Xt=>Xt.transitions.create("opacity"),opacity:Xt=>Ut?Xt.palette.action.disabledOpacity:1},children:jsxRuntimeExports.jsx(ViewTreeContext.Provider,{value:qt,children:lt==null?void 0:lt(_e)})})})}function ViewBranch(_e){const{root:lt={type:"leaf",key:""},onChange:Rt,depth:At=0}=_e,{palette:Pt,spacing:Dt,transitions:Lt}=useTheme(),Bt=useCss$1({"div&":{background:Pt.text.secondary,opacity:.5,transition:Lt.create("opacity"),"&.Horizontal":{width:"3px"},"&.Vertical":{height:"3px"}}}),Nt=useCss$1({"div&":{transition:Lt.create(["box-shadow","background"]),background:Pt.mode==="dark"?Pt.background.default:Pt.divider,boxShadow:`inset 0 0 0 1px ${Pt.background.paper}`,"&:hover":{background:Pt.primary.main,boxShadow:"none"},"&.Horizontal":{padding:0,width:"3px"},"&.Vertical":{padding:0}}}),jt=Gt=>Number(Dt(Gt).slice(0,-2));function Ut(Gt){const qt=100-lodashExports$1.sumBy(Gt,"size"),Xt=lodashExports$1.filter(Gt,Kt=>!Kt.size).length;return Xt?qt/Xt:0}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:lt.type==="leaf"?jsxRuntimeExports.jsx(ViewLeaf,{..._e}):jsxRuntimeExports.jsx(m$4,{gutterClassName:Nt,draggerClassName:Bt,onResizeFinished:(Gt,qt)=>Rt==null?void 0:Rt(produce(lt,Xt=>{lodashExports$1.forEach(qt,(Kt,Zt)=>{Xt.children[Zt].size=Kt})})),minHeights:lodashExports$1.map(lt.children,()=>jt(6)-8),minWidths:lodashExports$1.map(lt.children,()=>jt(32)),initialSizes:lodashExports$1.map(lt.children,(Gt,qt,Xt)=>Gt.size??Ut(Xt)),direction:{vertical:z$3.Vertical,horizontal:z$3.Horizontal}[lt.orientation],children:lodashExports$1.map(lt.children,(Gt,qt)=>reactExports.createElement(ViewBranch,{..._e,key:Gt.key,depth:At+1,root:Gt,onChange:Xt=>Rt==null?void 0:Rt(produce(lt,Kt=>Kt.children[qt]=Xt)),onClose:()=>Rt==null?void 0:Rt(transaction(lt,Xt=>(Xt.children.splice(qt,1),Xt.children.length===1?Xt.children[0].type==="leaf"?{type:"leaf",key:nanoid$1(),content:Xt.children[0].content}:Xt.children[0]:(lodashExports$1.forEach(Xt.children,(Kt,Zt,Qt)=>Kt.size=100/Qt.length),Xt))))}))})})}const logo=""+new URL("logo512-23eace97.png",import.meta.url).href,name$2="Visualiser",version="1.1.11-1",version_name="1.1.11-1; late February 2024",repository="https://github.com/path-visualiser/app",docs="https://github.com/path-visualiser/app/blob/master/docs",homepage="https://path-visualiser.github.io/",contacts=[{name:"Dr Daniel Harabor",email:"daniel.harabor@monash.edu"},{name:"Dr Michael Wybrow",email:"michael.wybrow@monash.edu"},{name:"Karan Batta",email:"krnbatta@gmail.com"},{name:"Jay Wingate",email:"jaypeterwingate@gmail.com"},{name:"Kevin Zheng",email:"kzhe0012@student.monash.edu"},{name:"Leo Whitehead",email:"leo@whiteheadsoftware.dev"},{name:"Can Wang",email:"camwang@outlook.com"},{name:"Rory Tobin-Underwood",email:"rorytu@gmail.com"}];function AboutPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext();function Dt(Lt,Bt){return jsxRuntimeExports.jsxs(Box$1,{sx:{pt:2},children:[jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",children:Lt}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",children:Bt})]})}return jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsxs(Box$1,{sx:{p:2},children:[jsxRuntimeExports.jsx(Box$1,{sx:{pt:6,pb:2},children:jsxRuntimeExports.jsx("img",{src:logo,height:"64"})}),jsxRuntimeExports.jsx(Typography$1,{variant:"h6",children:name$2}),Dt("Build Info",jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:version_name})),Dt("About this App",jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[name$2," is a visualising debugging tool for pathfinding search. It can be used to visualise progression of search and debug pathfinding algorithms. It can handle range of different types of algorithms (demos are provided in the home page). This tool is highly customizable and provide flexibility to visualise any algorithm trace that you can augment using our docs."]})),Dt("Team",jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Our team is made up of present/past Monash students and Professors Dr Daniel Harabor:",jsxRuntimeExports.jsx(List$2,{sx:{mx:-2},children:contacts.map(({name:Lt,email:Bt},Nt)=>jsxRuntimeExports.jsxs(ListItemButton$1,{href:`mailto:${Bt}`,children:[jsxRuntimeExports.jsx(ListItemAvatar$1,{children:jsxRuntimeExports.jsx(Avatar$1,{children:lodashExports$1.head(Lt)})}),jsxRuntimeExports.jsx(ListItemText$1,{primary:Lt,secondary:Bt})]},Nt))})]})),Dt("Resources",jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(List$2,{sx:{mx:-2},children:jsxRuntimeExports.jsxs(ListItemButton$1,{target:"_blank",href:"https://github.com/path-visualiser",children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(GitHub,{})}),jsxRuntimeExports.jsx(ListItemText$1,{primary:"Repository",secondary:"https://github.com/path-visualiser"})]})})}))]})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})}const Context=reactExports.createContext(null);function useUniquePrefix(){const[_e,lt]=reactExports.useState(null);return reactExports.useEffect(()=>{lt(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),_e}function TabContext(_e){const{children:lt,value:Rt}=_e,At=useUniquePrefix(),Pt=reactExports.useMemo(()=>({idPrefix:At,value:Rt}),[At,Rt]);return jsxRuntimeExports.jsx(Context.Provider,{value:Pt,children:lt})}function useTabContext(){return reactExports.useContext(Context)}function getPanelId(_e,lt){const{idPrefix:Rt}=_e;return Rt===null?null:`${_e.idPrefix}-P-${lt}`}function getTabId(_e,lt){const{idPrefix:Rt}=_e;return Rt===null?null:`${_e.idPrefix}-T-${lt}`}const _excluded$4=["children"],TabList=reactExports.forwardRef(function(lt,Rt){const{children:At}=lt,Pt=_objectWithoutPropertiesLoose$3(lt,_excluded$4),Dt=useTabContext();if(Dt===null)throw new TypeError("No TabContext provided");const Lt=reactExports.Children.map(At,Bt=>reactExports.isValidElement(Bt)?reactExports.cloneElement(Bt,{"aria-controls":getPanelId(Dt,Bt.props.value),id:getTabId(Dt,Bt.props.value)}):null);return jsxRuntimeExports.jsx(Tabs$1,_extends$2({},Pt,{ref:Rt,value:Dt.value,children:Lt}))}),TabList$1=TabList;function getTabPanelUtilityClass(_e){return generateUtilityClass$1("MuiTabPanel",_e)}generateUtilityClasses$1("MuiTabPanel",["root"]);const _excluded$3=["children","className","value"],useUtilityClasses=_e=>{const{classes:lt}=_e;return composeClasses({root:["root"]},getTabPanelUtilityClass,lt)},TabPanelRoot=styled$1("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(_e,lt)=>lt.root})(({theme:_e})=>({padding:_e.spacing(3)})),TabPanel=reactExports.forwardRef(function(lt,Rt){const At=useThemeProps({props:lt,name:"MuiTabPanel"}),{children:Pt,className:Dt,value:Lt}=At,Bt=_objectWithoutPropertiesLoose$3(At,_excluded$3),Nt=_extends$2({},At),jt=useUtilityClasses(Nt),Ut=useTabContext();if(Ut===null)throw new TypeError("No TabContext provided");const Gt=getPanelId(Ut,Lt),qt=getTabId(Ut,Lt);return jsxRuntimeExports.jsx(TabPanelRoot,_extends$2({"aria-labelledby":qt,className:clsx(jt.root,Dt),hidden:Lt!==Ut.value,id:Gt,ref:Rt,role:"tabpanel",ownerState:Nt},Bt,{children:Lt===Ut.value&&Pt}))}),TabPanel$1=TabPanel;function useSmallDisplay(){const _e=useTheme();return useMediaQuery(_e.breakpoints.down("sm"))}const itemHeight$1=_e=>_e?48:36,padding$1=8;function Select({trigger:_e,items:lt,value:Rt,onChange:At,showTooltip:Pt,placeholder:Dt="Select Option"}){const Lt=useSmallDisplay(),Bt=lodashExports$1.max([lodashExports$1.findIndex(lt,{value:Rt}),0])??0;return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Nt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tooltip$1,{title:Dt,children:jsxRuntimeExports.jsx("span",{children:_e==null?void 0:_e(bindTrigger(Nt))})}),jsxRuntimeExports.jsx(Menu$1,{...bindMenu(Nt),anchorOrigin:{horizontal:"center",vertical:-itemHeight$1(Lt)*Bt-padding$1},transformOrigin:{vertical:"top",horizontal:"center"},children:lodashExports$1.map(lt,({value:jt,label:Ut,disabled:Gt,icon:qt})=>jsxRuntimeExports.jsx(Tooltip$1,{title:Pt&&jt,placement:"right",children:jsxRuntimeExports.jsxs(MenuItem$1,{disabled:Gt,value:jt,selected:jt===Rt,onClick:()=>{Nt.close(),At==null||At(jt)},children:[qt&&jsxRuntimeExports.jsx(ListItemIcon$1,{sx:{transform:"scale(0.8)"},children:qt}),Ut]},jt)},jt))})]})})}function SelectField(_e){const{placeholder:lt,value:Rt,items:At=[],onChange:Pt}=_e;return jsxRuntimeExports.jsx(TextField$1,{sx:{minWidth:120},select:!0,label:lt,defaultValue:Rt,variant:"filled",..._e,onChange:Dt=>Pt==null?void 0:Pt(Dt.target.value),children:lodashExports$1.map(At,Dt=>jsxRuntimeExports.jsx(MenuItem$1,{value:Dt.value,children:Dt.label},Dt.value))})}const defaultRemotes=[{url:"https://cdn.jsdelivr.net/gh/path-visualiser/app@adapter-warthog-wasm-dist/warthog-wasm.mjs",transport:"ipc",key:"default-ipc"}],defaultRenderers=[{url:"internal://d2-renderer/",key:"d2-renderer",transport:"native"}],defaultPlaybackRate=1,defaults$3={renderer:defaultRenderers,remote:defaultRemotes,"playback/playbackRate":defaultPlaybackRate,"appearance/theme":"dark","appearance/acrylic":!0,"appearance/accentColor":"blue","behaviour/showOnStart":"explore"},[useSettings,SettingsProvider]=createSlice({},withLocalStorage("settings",defaults$3)),{common,...accentColors}=colors,shadow=` +`),dataTransfer:_e=>_e},matchesTypes:["Url","text/uri-list"]},[TEXT]:{exposeProperties:{text:(_e,lt)=>getDataFromDataTransfer(_e,lt,""),dataTransfer:_e=>_e},matchesTypes:["Text","text/plain"]}};function createNativeDragSource(_e,lt){const Rt=nativeTypesConfig[_e];if(!Rt)throw new Error(`native type ${_e} has no configuration`);const At=new NativeDragSource(Rt);return At.loadDataTransfer(lt),At}function matchNativeItemType(_e){if(!_e)return null;const lt=Array.prototype.slice.call(_e.types||[]);return Object.keys(nativeTypesConfig).filter(Rt=>{const At=nativeTypesConfig[Rt];return At!=null&&At.matchesTypes?At.matchesTypes.some(Pt=>lt.indexOf(Pt)>-1):!1})[0]||null}const isFirefox=memoize(()=>/firefox/i.test(navigator.userAgent)),isSafari=memoize(()=>!!window.safari);class MonotonicInterpolant{interpolate(lt){const{xs:Rt,ys:At,c1s:Pt,c2s:Dt,c3s:Lt}=this;let Bt=Rt.length-1;if(lt===Rt[Bt])return At[Bt];let Nt=0,jt=Lt.length-1,Ut;for(;Nt<=jt;){Ut=Math.floor(.5*(Nt+jt));const Xt=Rt[Ut];if(Xtlt)jt=Ut-1;else return At[Ut]}Bt=Math.max(0,jt);const Gt=lt-Rt[Bt],qt=Gt*Gt;return At[Bt]+Pt[Bt]*Gt+Dt[Bt]*qt+Lt[Bt]*Gt*qt}constructor(lt,Rt){const{length:At}=lt,Pt=[];for(let Xt=0;Xtlt[Xt]{let un=new MonotonicInterpolant([0,.5,1],[Nt.y,Nt.y/Ut*Kt,Nt.y+Kt-Ut]).interpolate(qt);return isSafari()&&Dt&&(un+=(window.devicePixelRatio-1)*Kt),un},Qt=()=>new MonotonicInterpolant([0,.5,1],[Nt.x,Nt.x/jt*Xt,Nt.x+Xt-jt]).interpolate(Gt),{offsetX:Jt,offsetY:en}=Pt,tn=Jt===0||Jt,an=en===0||en;return{x:tn?Jt:Qt(),y:an?en:Zt()}}class OptionsReader{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var lt;return!((lt=this.globalContext)===null||lt===void 0)&<.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var lt;return((lt=this.optionsArgs)===null||lt===void 0?void 0:lt.rootElement)||this.window}constructor(lt,Rt){this.ownerDocument=null,this.globalContext=lt,this.optionsArgs=Rt}}function _defineProperty$4(_e,lt,Rt){return lt in _e?Object.defineProperty(_e,lt,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):_e[lt]=Rt,_e}function _objectSpread(_e){for(var lt=1;lt{this.sourcePreviewNodes.delete(lt),this.sourcePreviewNodeOptions.delete(lt)}}connectDragSource(lt,Rt,At){this.sourceNodes.set(lt,Rt),this.sourceNodeOptions.set(lt,At);const Pt=Lt=>this.handleDragStart(Lt,lt),Dt=Lt=>this.handleSelectStart(Lt);return Rt.setAttribute("draggable","true"),Rt.addEventListener("dragstart",Pt),Rt.addEventListener("selectstart",Dt),()=>{this.sourceNodes.delete(lt),this.sourceNodeOptions.delete(lt),Rt.removeEventListener("dragstart",Pt),Rt.removeEventListener("selectstart",Dt),Rt.setAttribute("draggable","false")}}connectDropTarget(lt,Rt){const At=Lt=>this.handleDragEnter(Lt,lt),Pt=Lt=>this.handleDragOver(Lt,lt),Dt=Lt=>this.handleDrop(Lt,lt);return Rt.addEventListener("dragenter",At),Rt.addEventListener("dragover",Pt),Rt.addEventListener("drop",Dt),()=>{Rt.removeEventListener("dragenter",At),Rt.removeEventListener("dragover",Pt),Rt.removeEventListener("drop",Dt)}}addEventListeners(lt){lt.addEventListener&&(lt.addEventListener("dragstart",this.handleTopDragStart),lt.addEventListener("dragstart",this.handleTopDragStartCapture,!0),lt.addEventListener("dragend",this.handleTopDragEndCapture,!0),lt.addEventListener("dragenter",this.handleTopDragEnter),lt.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),lt.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),lt.addEventListener("dragover",this.handleTopDragOver),lt.addEventListener("dragover",this.handleTopDragOverCapture,!0),lt.addEventListener("drop",this.handleTopDrop),lt.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(lt){lt.removeEventListener&&(lt.removeEventListener("dragstart",this.handleTopDragStart),lt.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),lt.removeEventListener("dragend",this.handleTopDragEndCapture,!0),lt.removeEventListener("dragenter",this.handleTopDragEnter),lt.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),lt.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),lt.removeEventListener("dragover",this.handleTopDragOver),lt.removeEventListener("dragover",this.handleTopDragOverCapture,!0),lt.removeEventListener("drop",this.handleTopDrop),lt.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const lt=this.monitor.getSourceId(),Rt=this.sourceNodeOptions.get(lt);return _objectSpread({dropEffect:this.altKeyPressed?"copy":"move"},Rt||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const lt=this.monitor.getSourceId(),Rt=this.sourcePreviewNodeOptions.get(lt);return _objectSpread({anchorX:.5,anchorY:.5,captureDraggingState:!1},Rt||{})}isDraggingNativeItem(){const lt=this.monitor.getItemType();return Object.keys(NativeTypes).some(Rt=>NativeTypes[Rt]===lt)}beginDragNativeItem(lt,Rt){this.clearCurrentDragSourceNode(),this.currentNativeSource=createNativeDragSource(lt,Rt),this.currentNativeHandle=this.registry.addSource(lt,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(lt){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=lt;const Rt=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var At;return(At=this.rootElement)===null||At===void 0?void 0:At.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},Rt)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var lt;(lt=this.window)===null||lt===void 0||lt.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(lt,Rt){lt.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(Rt))}handleDragEnter(lt,Rt){this.dragEnterTargetIds.unshift(Rt)}handleDragOver(lt,Rt){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(Rt)}handleDrop(lt,Rt){this.dropTargetIds.unshift(Rt)}constructor(lt,Rt,At){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=Pt=>{const Dt=this.sourceNodes.get(Pt);return Dt&&getNodeClientOffset(Dt)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=Pt=>!!(Pt&&this.document&&this.document.body&&this.document.body.contains(Pt)),this.endDragIfSourceWasRemovedFromDOM=()=>{const Pt=this.currentDragSourceNode;Pt==null||this.isNodeInDocument(Pt)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=Pt=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(Pt||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=Pt=>{if(Pt.defaultPrevented)return;const{dragStartSourceIds:Dt}=this;this.dragStartSourceIds=null;const Lt=getEventClientOffset(Pt);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(Dt||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:Lt});const{dataTransfer:Bt}=Pt,Nt=matchNativeItemType(Bt);if(this.monitor.isDragging()){if(Bt&&typeof Bt.setDragImage=="function"){const Ut=this.monitor.getSourceId(),Gt=this.sourceNodes.get(Ut),qt=this.sourcePreviewNodes.get(Ut)||Gt;if(qt){const{anchorX:Xt,anchorY:Kt,offsetX:Zt,offsetY:Qt}=this.getCurrentSourcePreviewNodeOptions(),tn=getDragPreviewOffset(Gt,qt,Lt,{anchorX:Xt,anchorY:Kt},{offsetX:Zt,offsetY:Qt});Bt.setDragImage(qt,tn.x,tn.y)}}try{Bt==null||Bt.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(Pt.target);const{captureDraggingState:jt}=this.getCurrentSourcePreviewNodeOptions();jt?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(Nt)this.beginDragNativeItem(Nt);else{if(Bt&&!Bt.types&&(Pt.target&&!Pt.target.hasAttribute||!Pt.target.hasAttribute("draggable")))return;Pt.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=Pt=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var Dt;(Dt=this.currentNativeSource)===null||Dt===void 0||Dt.loadDataTransfer(Pt.dataTransfer)}if(!this.enterLeaveCounter.enter(Pt.target)||this.monitor.isDragging())return;const{dataTransfer:Bt}=Pt,Nt=matchNativeItemType(Bt);Nt&&this.beginDragNativeItem(Nt,Bt)},this.handleTopDragEnter=Pt=>{const{dragEnterTargetIds:Dt}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=Pt.altKey,Dt.length>0&&this.actions.hover(Dt,{clientOffset:getEventClientOffset(Pt)}),Dt.some(Bt=>this.monitor.canDropOnTarget(Bt))&&(Pt.preventDefault(),Pt.dataTransfer&&(Pt.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=Pt=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var Dt;(Dt=this.currentNativeSource)===null||Dt===void 0||Dt.loadDataTransfer(Pt.dataTransfer)}},this.handleTopDragOver=Pt=>{const{dragOverTargetIds:Dt}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){Pt.preventDefault(),Pt.dataTransfer&&(Pt.dataTransfer.dropEffect="none");return}this.altKeyPressed=Pt.altKey,this.lastClientOffset=getEventClientOffset(Pt),this.scheduleHover(Dt),(Dt||[]).some(Bt=>this.monitor.canDropOnTarget(Bt))?(Pt.preventDefault(),Pt.dataTransfer&&(Pt.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?Pt.preventDefault():(Pt.preventDefault(),Pt.dataTransfer&&(Pt.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=Pt=>{this.isDraggingNativeItem()&&Pt.preventDefault(),this.enterLeaveCounter.leave(Pt.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=Pt=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var Dt;Pt.preventDefault(),(Dt=this.currentNativeSource)===null||Dt===void 0||Dt.loadDataTransfer(Pt.dataTransfer)}else matchNativeItemType(Pt.dataTransfer)&&Pt.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=Pt=>{const{dropTargetIds:Dt}=this;this.dropTargetIds=[],this.actions.hover(Dt,{clientOffset:getEventClientOffset(Pt)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=Pt=>{const Dt=Pt.target;typeof Dt.dragDrop=="function"&&(Dt.tagName==="INPUT"||Dt.tagName==="SELECT"||Dt.tagName==="TEXTAREA"||Dt.isContentEditable||(Pt.preventDefault(),Dt.dragDrop()))},this.options=new OptionsReader(Rt,At),this.actions=lt.getActions(),this.monitor=lt.getMonitor(),this.registry=lt.getRegistry(),this.enterLeaveCounter=new EnterLeaveCounter(this.isNodeInDocument)}}const HTML5Backend=function(lt,Rt,At){return new HTML5BackendImpl(lt,Rt,At)};function useEvent(_e){if(typeof window>"u")return _e;const lt=reactExports.useRef(null);return reactExports.useLayoutEffect(()=>{lt.current=_e}),reactExports.useCallback((...Rt)=>{var At;(At=lt.current)===null||At===void 0||At.call(lt,...Rt)},[])}const printedWarnings={};function warn$1(_e,lt){printedWarnings[_e]||(printedWarnings[_e]=!0,console.error("[material-ui-popup-state] WARNING",lt))}const initCoreState={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function usePopupState({parentPopupState:_e,popupId:lt,variant:Rt,disableAutoFocus:At}){const Pt=reactExports.useRef(!0);reactExports.useEffect(()=>(Pt.current=!0,()=>{Pt.current=!1}),[]);const[Dt,Lt]=reactExports.useState(initCoreState),Bt=reactExports.useCallback(en=>{Pt.current&&Lt(en)},[]),Nt=reactExports.useCallback(en=>Bt(tn=>({...tn,setAnchorElUsed:!0,anchorEl:en??void 0})),[]),jt=useEvent(en=>(Dt.isOpen?qt(en):Ut(en),Dt)),Ut=useEvent(en=>{const tn=en instanceof Element?void 0:en,an=en instanceof Element?en:(en==null?void 0:en.currentTarget)instanceof Element?en.currentTarget:void 0;if((tn==null?void 0:tn.type)==="touchstart"){Bt(pn=>({...pn,_deferNextOpen:!0}));return}const cn=tn==null?void 0:tn.clientX,un=tn==null?void 0:tn.clientY,rn=typeof cn=="number"&&typeof un=="number"?{left:cn,top:un}:void 0,sn=pn=>{if(!en&&!pn.setAnchorElUsed&&Rt!=="dialog"&&warn$1("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),_e){if(!_e.isOpen)return pn;setTimeout(()=>_e._setChildPopupState(Jt))}const bn={...pn,isOpen:!0,anchorPosition:rn,hovered:(tn==null?void 0:tn.type)==="mouseover"||pn.hovered,focused:(tn==null?void 0:tn.type)==="focus"||pn.focused,_openEventType:tn==null?void 0:tn.type};return tn!=null&&tn.currentTarget?pn.setAnchorElUsed||(bn.anchorEl=tn==null?void 0:tn.currentTarget):an&&(bn.anchorEl=an),bn};Bt(pn=>pn._deferNextOpen?(setTimeout(()=>Bt(sn),0),{...pn,_deferNextOpen:!1}):sn(pn))}),Gt=en=>{const{_childPopupState:tn}=en;return setTimeout(()=>{tn==null||tn.close(),_e==null||_e._setChildPopupState(null)}),{...en,isOpen:!1,hovered:!1,focused:!1}},qt=useEvent(en=>{const tn=en instanceof Element?void 0:en;if((tn==null?void 0:tn.type)==="touchstart"){Bt(an=>({...an,_deferNextClose:!0}));return}Bt(an=>an._deferNextClose?(setTimeout(()=>Bt(Gt),0),{...an,_deferNextClose:!1}):Gt(an))}),Xt=reactExports.useCallback((en,tn)=>{en?Ut(tn):qt(tn)},[]),Kt=useEvent(en=>{const{relatedTarget:tn}=en;Bt(an=>an.hovered&&!(tn instanceof Element&&isElementInPopup(tn,Jt))?an.focused?{...an,hovered:!1}:Gt(an):an)}),Zt=useEvent(en=>{if(!en)return;const{relatedTarget:tn}=en;Bt(an=>an.focused&&!(tn instanceof Element&&isElementInPopup(tn,Jt))?an.hovered?{...an,focused:!1}:Gt(an):an)}),Qt=reactExports.useCallback(en=>Bt(tn=>({...tn,_childPopupState:en})),[]),Jt={...Dt,setAnchorEl:Nt,popupId:lt,variant:Rt,open:Ut,close:qt,toggle:jt,setOpen:Xt,onBlur:Zt,onMouseLeave:Kt,disableAutoFocus:At??!!(Dt.hovered||Dt.focused),_setChildPopupState:Qt};return Jt}function controlAriaProps({isOpen:_e,popupId:lt,variant:Rt}){return{...Rt==="popover"?{"aria-haspopup":!0,"aria-controls":_e&<!=null?lt:void 0}:Rt==="popper"?{"aria-describedby":_e&<!=null?lt:void 0}:void 0}}function bindTrigger(_e){return{...controlAriaProps(_e),onClick:_e.open,onTouchStart:_e.open}}function bindPopover({isOpen:_e,anchorEl:lt,anchorPosition:Rt,close:At,popupId:Pt,onMouseLeave:Dt,disableAutoFocus:Lt,_openEventType:Bt}){return{id:Pt,anchorEl:lt,anchorPosition:Rt,anchorReference:Bt==="contextmenu"?"anchorPosition":"anchorEl",open:_e,onClose:At,onMouseLeave:Dt,...Lt&&{disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function bindMenu({isOpen:_e,anchorEl:lt,anchorPosition:Rt,close:At,popupId:Pt,onMouseLeave:Dt,disableAutoFocus:Lt,_openEventType:Bt}){return{id:Pt,anchorEl:lt,anchorPosition:Rt,anchorReference:Bt==="contextmenu"?"anchorPosition":"anchorEl",open:_e,onClose:At,onMouseLeave:Dt,...Lt&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function getPopup(_e,{popupId:lt}){if(!lt)return null;const Rt=typeof _e.getRootNode=="function"?_e.getRootNode():document;return typeof Rt.getElementById=="function"?Rt.getElementById(lt):null}function isElementInPopup(_e,lt){const{anchorEl:Rt,_childPopupState:At}=lt;return isAncestor(Rt,_e)||isAncestor(getPopup(_e,lt),_e)||At!=null&&isElementInPopup(_e,At)}function isAncestor(_e,lt){if(!_e)return!1;for(;lt;){if(lt===_e)return!0;lt=lt.parentElement}return!1}function PopupState({children:_e,popupId:lt,variant:Rt,parentPopupState:At,disableAutoFocus:Pt}){const Dt=usePopupState({popupId:lt,variant:Rt,parentPopupState:At,disableAutoFocus:Pt}),Lt=_e(Dt);return Lt??null}PopupState.propTypes={children:PropTypes$1.func.isRequired,popupId:PropTypes$1.string,variant:PropTypes$1.oneOf(["popover","popper"]).isRequired,parentPopupState:PropTypes$1.object,disableAutoFocus:PropTypes$1.bool};function ViewControls({onSplitHorizontal:_e,onClose:lt,onSplitVertical:Rt,closeDisabled:At,splitHorizontalDisabled:Pt,splitVerticalDisabled:Dt,onPopOut:Lt,popOutDisabled:Bt}){return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Nt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Stack$1,{sx:{m:1},children:jsxRuntimeExports.jsx(Tooltip$1,{title:"Panel Options",children:jsxRuntimeExports.jsx(IconButton$1,{size:"small",...bindTrigger(Nt),children:jsxRuntimeExports.jsx(MoreVertOutlined,{fontSize:"small"})})})}),jsxRuntimeExports.jsxs(Menu$1,{TransitionProps:{mountOnEnter:!0,unmountOnExit:!0},...bindMenu(Nt),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{Rt==null||Rt(),Nt.close()},disabled:Dt,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(SplitIcon,{fontSize:"small"})}),jsxRuntimeExports.jsx(ListItemText$1,{children:"Split Vertical"})]}),jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{_e==null||_e(),Nt.close()},disabled:Pt,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(SplitIcon,{fontSize:"small",sx:{transform:"rotate(90deg)"}})}),jsxRuntimeExports.jsx(ListItemText$1,{children:"Split Horizontal"})]}),jsxRuntimeExports.jsx(Divider$1,{}),!(Bt||At)&&jsxRuntimeExports.jsxs(Box$1,{children:[jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{Lt==null||Lt(),lt==null||lt(),Nt.close()},children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(OpenInNewOutlined,{fontSize:"small"})}),jsxRuntimeExports.jsx(ListItemText$1,{children:"Pop Out"})]}),jsxRuntimeExports.jsx(Divider$1,{})]}),jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{lt==null||lt(),Nt.close()},disabled:At,children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(CloseOutlined,{fontSize:"small"})}),jsxRuntimeExports.jsx(ListItemText$1,{children:"Close Panel"})]})]})]})})}function findInTree(_e,lt){const Rt=At=>{var Pt;return"children"in At&&((Pt=At.children)!=null&&Pt.length)?lodashExports$1.flatMap(At.children,Rt):[At]};return lodashExports$1.find(Rt(_e),lt)}const ViewTreeContext=reactExports.createContext({});function useViewTreeContext(){return reactExports.useContext(ViewTreeContext)}function handleSwap(_e,lt,Rt){const At=findInTree(_e,Dt=>Dt.key===lt),Pt=findInTree(_e,Dt=>Dt.key===Rt);if((At==null?void 0:At.type)==="leaf"&&(Pt==null?void 0:Pt.type)==="leaf"){const Dt=lodashExports$1.pick(At,"content","key"),Lt=lodashExports$1.pick(Pt,"content","key");Object.assign(At,Lt),Object.assign(Pt,Dt)}return _e}function ViewTree(_e){const{onChange:lt,root:Rt}=_e;return jsxRuntimeExports.jsx(DndProvider,{backend:HTML5Backend,children:jsxRuntimeExports.jsx(ViewBranch,{..._e,onSwap:(At,Pt)=>{Rt&&(lt==null||lt(produce(Rt,Dt=>handleSwap(Dt,At,Pt))))}})})}function ViewLeaf({root:_e={type:"leaf",key:""},renderLeaf:lt,onChange:Rt,onClose:At,onPopOut:Pt,canPopOut:Dt,depth:Lt=0,onSwap:Bt}){const[{isOver:Nt},jt]=useDrop(()=>({accept:["panel"],collect:Xt=>({isOver:Xt.isOver()&&Xt.getItem().key!==_e.key}),drop:Xt=>Bt==null?void 0:Bt(Xt.key,_e.key)})),[{isDragging:Ut},Gt]=useDrag(()=>({type:"panel",item:{key:_e.key},collect:Xt=>({isDragging:Xt.isDragging()})})),qt=reactExports.useMemo(()=>{const Xt=Kt=>Rt==null?void 0:Rt(transaction(_e,Zt=>({key:nanoid$1(),type:"branch",orientation:Kt,children:[{...structuredClone(Zt),size:50,key:nanoid$1()},{...structuredClone(Zt),size:50,key:nanoid$1()}]})));return _e.type==="leaf"?{isViewTree:!0,state:_e.content,controls:jsxRuntimeExports.jsx(ViewControls,{onClose:At,closeDisabled:!Lt,onSplitHorizontal:()=>Xt("horizontal"),onSplitVertical:()=>Xt("vertical"),onPopOut:()=>Pt==null?void 0:Pt(_e),popOutDisabled:!(Dt!=null&&Dt(_e))}),dragHandle:jsxRuntimeExports.jsx(Box$1,{ref:Gt,sx:{display:"flex",alignItems:"center"},children:jsxRuntimeExports.jsx(DragIndicatorOutlined,{fontSize:"small",color:"disabled",sx:{mr:.5,cursor:"grab"}})}),onChange:Kt=>Rt==null?void 0:Rt(produce(_e,Zt=>{Zt.content={...Zt.content,...Kt}}))}:{}},[Rt,At,Lt,_e,Gt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Flex,{ref:jt,sx:{overflow:"hidden","::before":{pointerEvents:"none",content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,boxShadow:Xt=>Nt?`inset 0 0 0 2px ${Xt.palette.primary.main}`:"none",transition:Xt=>Xt.transitions.create("box-shadow")},transition:Xt=>Xt.transitions.create("opacity"),opacity:Xt=>Ut?Xt.palette.action.disabledOpacity:1},children:jsxRuntimeExports.jsx(ViewTreeContext.Provider,{value:qt,children:lt==null?void 0:lt(_e)})})})}function ViewBranch(_e){const{root:lt={type:"leaf",key:""},onChange:Rt,depth:At=0}=_e,{palette:Pt,spacing:Dt,transitions:Lt}=useTheme(),Bt=useCss$1({"div&":{background:Pt.text.secondary,opacity:.5,transition:Lt.create("opacity"),"&.Horizontal":{width:"3px"},"&.Vertical":{height:"3px"}}}),Nt=useCss$1({"div&":{transition:Lt.create(["box-shadow","background"]),background:Pt.mode==="dark"?Pt.background.default:Pt.divider,boxShadow:`inset 0 0 0 1px ${Pt.background.paper}`,"&:hover":{background:Pt.primary.main,boxShadow:"none"},"&.Horizontal":{padding:0,width:"3px"},"&.Vertical":{padding:0}}}),jt=Gt=>Number(Dt(Gt).slice(0,-2));function Ut(Gt){const qt=100-lodashExports$1.sumBy(Gt,"size"),Xt=lodashExports$1.filter(Gt,Kt=>!Kt.size).length;return Xt?qt/Xt:0}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:lt.type==="leaf"?jsxRuntimeExports.jsx(ViewLeaf,{..._e}):jsxRuntimeExports.jsx(m$4,{gutterClassName:Nt,draggerClassName:Bt,onResizeFinished:(Gt,qt)=>Rt==null?void 0:Rt(produce(lt,Xt=>{lodashExports$1.forEach(qt,(Kt,Zt)=>{Xt.children[Zt].size=Kt})})),minHeights:lodashExports$1.map(lt.children,()=>jt(6)-8),minWidths:lodashExports$1.map(lt.children,()=>jt(32)),initialSizes:lodashExports$1.map(lt.children,(Gt,qt,Xt)=>Gt.size??Ut(Xt)),direction:{vertical:z$3.Vertical,horizontal:z$3.Horizontal}[lt.orientation],children:lodashExports$1.map(lt.children,(Gt,qt)=>reactExports.createElement(ViewBranch,{..._e,key:Gt.key,depth:At+1,root:Gt,onChange:Xt=>Rt==null?void 0:Rt(produce(lt,Kt=>Kt.children[qt]=Xt)),onClose:()=>Rt==null?void 0:Rt(transaction(lt,Xt=>(Xt.children.splice(qt,1),Xt.children.length===1?Xt.children[0].type==="leaf"?{type:"leaf",key:nanoid$1(),content:Xt.children[0].content}:Xt.children[0]:(lodashExports$1.forEach(Xt.children,(Kt,Zt,Qt)=>Kt.size=100/Qt.length),Xt))))}))})})}const logo=""+new URL("logo512-23eace97.png",import.meta.url).href,name$2="Visualiser",version="1.1.11-2",version_name="1.1.11-2; late February 2024",repository="https://github.com/path-visualiser/app",docs="https://github.com/path-visualiser/app/blob/master/docs",homepage="https://path-visualiser.github.io/",contacts=[{name:"Dr Daniel Harabor",email:"daniel.harabor@monash.edu"},{name:"Dr Michael Wybrow",email:"michael.wybrow@monash.edu"},{name:"Karan Batta",email:"krnbatta@gmail.com"},{name:"Jay Wingate",email:"jaypeterwingate@gmail.com"},{name:"Kevin Zheng",email:"kzhe0012@student.monash.edu"},{name:"Leo Whitehead",email:"leo@whiteheadsoftware.dev"},{name:"Can Wang",email:"camwang@outlook.com"},{name:"Rory Tobin-Underwood",email:"rorytu@gmail.com"}];function AboutPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext();function Dt(Lt,Bt){return jsxRuntimeExports.jsxs(Box$1,{sx:{pt:2},children:[jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",children:Lt}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",children:Bt})]})}return jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsxs(Box$1,{sx:{p:2},children:[jsxRuntimeExports.jsx(Box$1,{sx:{pt:6,pb:2},children:jsxRuntimeExports.jsx("img",{src:logo,height:"64"})}),jsxRuntimeExports.jsx(Typography$1,{variant:"h6",children:name$2}),Dt("Build Info",jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:version_name})),Dt("About this App",jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[name$2," is a visualising debugging tool for pathfinding search. It can be used to visualise progression of search and debug pathfinding algorithms. It can handle range of different types of algorithms (demos are provided in the home page). This tool is highly customizable and provide flexibility to visualise any algorithm trace that you can augment using our docs."]})),Dt("Team",jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Our team is made up of present/past Monash students and Professors Dr Daniel Harabor:",jsxRuntimeExports.jsx(List$2,{sx:{mx:-2},children:contacts.map(({name:Lt,email:Bt},Nt)=>jsxRuntimeExports.jsxs(ListItemButton$1,{href:`mailto:${Bt}`,children:[jsxRuntimeExports.jsx(ListItemAvatar$1,{children:jsxRuntimeExports.jsx(Avatar$1,{children:lodashExports$1.head(Lt)})}),jsxRuntimeExports.jsx(ListItemText$1,{primary:Lt,secondary:Bt})]},Nt))})]})),Dt("Resources",jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(List$2,{sx:{mx:-2},children:jsxRuntimeExports.jsxs(ListItemButton$1,{target:"_blank",href:"https://github.com/path-visualiser",children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(GitHub,{})}),jsxRuntimeExports.jsx(ListItemText$1,{primary:"Repository",secondary:"https://github.com/path-visualiser"})]})})}))]})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})}const Context=reactExports.createContext(null);function useUniquePrefix(){const[_e,lt]=reactExports.useState(null);return reactExports.useEffect(()=>{lt(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),_e}function TabContext(_e){const{children:lt,value:Rt}=_e,At=useUniquePrefix(),Pt=reactExports.useMemo(()=>({idPrefix:At,value:Rt}),[At,Rt]);return jsxRuntimeExports.jsx(Context.Provider,{value:Pt,children:lt})}function useTabContext(){return reactExports.useContext(Context)}function getPanelId(_e,lt){const{idPrefix:Rt}=_e;return Rt===null?null:`${_e.idPrefix}-P-${lt}`}function getTabId(_e,lt){const{idPrefix:Rt}=_e;return Rt===null?null:`${_e.idPrefix}-T-${lt}`}const _excluded$4=["children"],TabList=reactExports.forwardRef(function(lt,Rt){const{children:At}=lt,Pt=_objectWithoutPropertiesLoose$3(lt,_excluded$4),Dt=useTabContext();if(Dt===null)throw new TypeError("No TabContext provided");const Lt=reactExports.Children.map(At,Bt=>reactExports.isValidElement(Bt)?reactExports.cloneElement(Bt,{"aria-controls":getPanelId(Dt,Bt.props.value),id:getTabId(Dt,Bt.props.value)}):null);return jsxRuntimeExports.jsx(Tabs$1,_extends$2({},Pt,{ref:Rt,value:Dt.value,children:Lt}))}),TabList$1=TabList;function getTabPanelUtilityClass(_e){return generateUtilityClass$1("MuiTabPanel",_e)}generateUtilityClasses$1("MuiTabPanel",["root"]);const _excluded$3=["children","className","value"],useUtilityClasses=_e=>{const{classes:lt}=_e;return composeClasses({root:["root"]},getTabPanelUtilityClass,lt)},TabPanelRoot=styled$1("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(_e,lt)=>lt.root})(({theme:_e})=>({padding:_e.spacing(3)})),TabPanel=reactExports.forwardRef(function(lt,Rt){const At=useThemeProps({props:lt,name:"MuiTabPanel"}),{children:Pt,className:Dt,value:Lt}=At,Bt=_objectWithoutPropertiesLoose$3(At,_excluded$3),Nt=_extends$2({},At),jt=useUtilityClasses(Nt),Ut=useTabContext();if(Ut===null)throw new TypeError("No TabContext provided");const Gt=getPanelId(Ut,Lt),qt=getTabId(Ut,Lt);return jsxRuntimeExports.jsx(TabPanelRoot,_extends$2({"aria-labelledby":qt,className:clsx(jt.root,Dt),hidden:Lt!==Ut.value,id:Gt,ref:Rt,role:"tabpanel",ownerState:Nt},Bt,{children:Lt===Ut.value&&Pt}))}),TabPanel$1=TabPanel;function useSmallDisplay(){const _e=useTheme();return useMediaQuery(_e.breakpoints.down("sm"))}const itemHeight$1=_e=>_e?48:36,padding$1=8;function Select({trigger:_e,items:lt,value:Rt,onChange:At,showTooltip:Pt,placeholder:Dt="Select Option"}){const Lt=useSmallDisplay(),Bt=lodashExports$1.max([lodashExports$1.findIndex(lt,{value:Rt}),0])??0;return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Nt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tooltip$1,{title:Dt,children:jsxRuntimeExports.jsx("span",{children:_e==null?void 0:_e(bindTrigger(Nt))})}),jsxRuntimeExports.jsx(Menu$1,{...bindMenu(Nt),anchorOrigin:{horizontal:"center",vertical:-itemHeight$1(Lt)*Bt-padding$1},transformOrigin:{vertical:"top",horizontal:"center"},children:lodashExports$1.map(lt,({value:jt,label:Ut,disabled:Gt,icon:qt})=>jsxRuntimeExports.jsx(Tooltip$1,{title:Pt&&jt,placement:"right",children:jsxRuntimeExports.jsxs(MenuItem$1,{disabled:Gt,value:jt,selected:jt===Rt,onClick:()=>{Nt.close(),At==null||At(jt)},children:[qt&&jsxRuntimeExports.jsx(ListItemIcon$1,{sx:{transform:"scale(0.8)"},children:qt}),Ut]},jt)},jt))})]})})}function SelectField(_e){const{placeholder:lt,value:Rt,items:At=[],onChange:Pt}=_e;return jsxRuntimeExports.jsx(TextField$1,{sx:{minWidth:120},select:!0,label:lt,defaultValue:Rt,variant:"filled",..._e,onChange:Dt=>Pt==null?void 0:Pt(Dt.target.value),children:lodashExports$1.map(At,Dt=>jsxRuntimeExports.jsx(MenuItem$1,{value:Dt.value,children:Dt.label},Dt.value))})}const defaultRemotes=[{url:"https://cdn.jsdelivr.net/gh/path-visualiser/app@adapter-warthog-wasm-dist/warthog-wasm.mjs",transport:"ipc",key:"default-ipc"}],defaultRenderers=[{url:"internal://d2-renderer/",key:"d2-renderer",transport:"native"}],defaultPlaybackRate=1,defaults$3={renderer:defaultRenderers,remote:defaultRemotes,"playback/playbackRate":defaultPlaybackRate,"appearance/theme":"dark","appearance/acrylic":!0,"appearance/accentColor":"blue","behaviour/showOnStart":"explore"},[useSettings,SettingsProvider]=createSlice({},withLocalStorage("settings",defaults$3)),{common,...accentColors}=colors,shadow=` 0px 4px 9px -1px rgb(0 0 0 / 4%), 0px 5px 24px 0px rgb(0 0 0 / 4%), 0px 10px 48px 0px rgb(0 0 0 / 4%) @@ -505,7 +505,13 @@ Consider to rely on 'then' or 'done' mode instead.`);un&&(delete Ut[Xt],Gt[Xt]=c * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */function paletteMapKey(_e){return _e=normalize$1(_e),_e.A!==1?`rgba(${_e.R}, ${_e.G}, ${_e.B}, ${_e.A})`:`rgb(${_e.R}, ${_e.G}, ${_e.B})`}function labPaletteMapKey(_e){return`lab(${_e.L}, ${_e.a}, ${_e.b})`}function mapPalette(_e,lt,Rt,At){const Pt={};At=At||{R:255,G:255,B:255},Rt=Rt||"closest";for(let Dt=0;Dt<_e.length;Dt+=1){const Lt=_e[Dt];let Bt,Nt;for(let jt=0;jtNt){Bt=Ut,Nt=Gt;continue}}Bt&&(Pt[paletteMapKey(Lt)]=Bt)}return Pt}function matchPaletteLab(_e,lt,Rt){let At,Pt,Dt=lt[0],Lt=ciede2000(_e,Dt);for(let Bt=1,Nt=lt.length;BtLt)&&(Dt=At,Lt=Pt);return Dt}function mapPaletteLab(_e,lt,Rt){const At={},Pt=Rt==="furthest";for(let Dt=0;Dt<_e.length;Dt+=1){const Lt=_e[Dt];At[labPaletteMapKey(Lt)]=matchPaletteLab(Lt,lt,Pt)}return At}function closest$2(_e,lt,Rt){const At=paletteMapKey(_e);return Rt=Rt||{R:255,G:255,B:255},mapPalette([_e],lt,"closest",Rt)[At]}function closestLab(_e,lt){return matchPaletteLab(_e,lt,!1)}function furthest(_e,lt,Rt){const At=paletteMapKey(_e);return Rt=Rt||{R:255,G:255,B:255},mapPalette([_e],lt,"furthest",Rt)[At]}function furthestLab(_e,lt){return matchPaletteLab(_e,lt,!0)}function map_palette(_e,lt,Rt,At){return mapPalette(_e,lt,Rt,At)}function palette_map_key(_e){return paletteMapKey(_e)}function rgb_to_lab(_e){return rgbaToLab(_e)}function rgba_to_lab(_e){return rgbaToLab(_e)}function match_palette_lab(_e,lt,Rt){return matchPaletteLab(_e,lt,Rt)}function map_palette_lab(_e,lt,Rt){return mapPaletteLab(_e,lt,Rt)}function lab_palette_map_key(_e){return labPaletteMapKey(_e)}function closest_lab(_e,lt){return closestLab(_e,lt)}function furthest_lab(_e,lt){return furthestLab(_e,lt)}colorDiff.closest=closest$2;colorDiff.closestLab=closestLab;colorDiff.closest_lab=closest_lab;colorDiff.diff=ciede2000;colorDiff.furthest=furthest;colorDiff.furthestLab=furthestLab;colorDiff.furthest_lab=furthest_lab;colorDiff.labPaletteMapKey=labPaletteMapKey;colorDiff.lab_palette_map_key=lab_palette_map_key;colorDiff.mapPalette=mapPalette;colorDiff.mapPaletteLab=mapPaletteLab;colorDiff.map_palette=map_palette;colorDiff.map_palette_lab=map_palette_lab;colorDiff.matchPaletteLab=matchPaletteLab;colorDiff.match_palette_lab=match_palette_lab;colorDiff.paletteMapKey=paletteMapKey;colorDiff.palette_map_key=palette_map_key;colorDiff.rgb_to_lab=rgb_to_lab;colorDiff.rgbaToLab=rgbaToLab;colorDiff.rgba_to_lab=rgba_to_lab;const hexRgb=hexRgb$1,rgbHex=rgbHex$1,diff=colorDiff,pantones=[{pantone:"11-0103",name:"egret",hex:"#f3ece0"},{pantone:"11-0602",name:"snow-white",hex:"#f2f0eb"},{pantone:"11-0601",name:"bright-white",hex:"#f4f5f0"},{pantone:"11-4201",name:"cloud-dancer",hex:"#f0eee9"},{pantone:"11-0604",name:"gardenia",hex:"#f1e8df"},{pantone:"11-4300",name:"marshmallow",hex:"#f0eee4"},{pantone:"11-4800",name:"blanc-de-blanc",hex:"#e7e9e7"},{pantone:"11-0606",name:"pristine",hex:"#f2e8da"},{pantone:"11-0701",name:"whisper-white",hex:"#ede6db"},{pantone:"12-0104",name:"white-asparagus",hex:"#e1dbc8"},{pantone:"13-0905",name:"birch",hex:"#ddd5c7"},{pantone:"12-5202",name:"turtledove",hex:"#ded7c8"},{pantone:"12-0105",name:"bone-white",hex:"#d7d0c0"},{pantone:"13-4403",name:"silver-birch",hex:"#d2cfc4"},{pantone:"11-0104",name:"vanilla-ice",hex:"#f0eada"},{pantone:"11-0107",name:"papyrus",hex:"#f5edd6"},{pantone:"11-0105",name:"antique-white",hex:"#ede3d2"},{pantone:"11-0507",name:"winter-white",hex:"#f5ecd2"},{pantone:"12-0804",name:"cloud-cream",hex:"#e6ddc5"},{pantone:"12-0605",name:"angora",hex:"#dfd1bb"},{pantone:"12-0703",name:"seedpearl",hex:"#e6dac4"},{pantone:"12-0815",name:"vanilla-custard",hex:"#f3e0be"},{pantone:"12-0713",name:"almond-oil",hex:"#f4efc1"},{pantone:"12-0812",name:"alabaster-gleam",hex:"#f0debd"},{pantone:"12-0712",name:"vanilla",hex:"#f4e1c1"},{pantone:"12-0806",name:"rutabaga",hex:"#ecddbe"},{pantone:"13-0815",name:"banana-crepe",hex:"#e7d3ad"},{pantone:"13-0917",name:"italian-straw",hex:"#e7d1a1"},{pantone:"12-0304",name:"whitecap-gray",hex:"#e0d5c6"},{pantone:"13-0607",name:"fog",hex:"#d0c5b1"},{pantone:"12-0000",name:"white-swan",hex:"#e4d7c5"},{pantone:"13-0907",name:"sandshell",hex:"#d8ccbb"},{pantone:"12-1403",name:"tapioca",hex:"#dccdbc"},{pantone:"13-1006",name:"creme-brulee",hex:"#dbccb5"},{pantone:"13-0908",name:"parchment",hex:"#dfd1be"},{pantone:"12-1106",name:"sheer-pink",hex:"#f6e5db"},{pantone:"12-1108",name:"dew",hex:"#eeded1"},{pantone:"11-1404",name:"powder-puff",hex:"#f3e0d6"},{pantone:"11-0907",name:"pearled-ivory",hex:"#f0dfcc"},{pantone:"12-0704",name:"white-smoke",hex:"#eddcc9"},{pantone:"11-0809",name:"ecru",hex:"#f3dfca"},{pantone:"12-0710",name:"navajo",hex:"#efdcc3"},{pantone:"12-2103",name:"almost-mauve",hex:"#e7dcd9"},{pantone:"11-2409",name:"delicacy",hex:"#f5e3e2"},{pantone:"11-2309",name:"petal-pink",hex:"#f2e2e0"},{pantone:"11-1005",name:"bridal-blush",hex:"#eee2dd"},{pantone:"11-1306",name:"cream-pink",hex:"#f6e4d9"},{pantone:"11-1305",name:"angel-wing",hex:"#f3dfd7"},{pantone:"11-0603",name:"pastel-parchment",hex:"#e5d9d3"},{pantone:"11-4202",name:"star-white",hex:"#efefe8"},{pantone:"11-4301",name:"lily-white",hex:"#e2e2da"},{pantone:"12-4302",name:"vaporous-gray",hex:"#dfddd7"},{pantone:"11-4802",name:"summer-shower",hex:"#e5ebe3"},{pantone:"11-4803",name:"ice",hex:"#e0e4d9"},{pantone:"12-6207",name:"frost",hex:"#dde2d6"},{pantone:"12-5201",name:"icicle",hex:"#dadcd0"},{pantone:"11-4601",name:"bit-of-blue",hex:"#e2eaeb"},{pantone:"11-4303",name:"mystic-blue",hex:"#e1e3de"},{pantone:"12-4304",name:"bluewash",hex:"#e2e6e0"},{pantone:"12-4305",name:"spa-blue",hex:"#d3dedf"},{pantone:"11-4804",name:"lightest-sky",hex:"#e4eadf"},{pantone:"11-4805",name:"hint-of-mint",hex:"#d8e8e6"},{pantone:"12-5203",name:"murmur",hex:"#d2d8d2"},{pantone:"12-4306",name:"barely-blue",hex:"#dde0df"},{pantone:"12-4705",name:"blue-blush",hex:"#d6dbd9"},{pantone:"12-5603",name:"zephyr-blue",hex:"#d3d9d1"},{pantone:"12-5403",name:"blue-flower",hex:"#d0d9d4"},{pantone:"12-5303",name:"sprout-green",hex:"#cbd7d2"},{pantone:"11-4604",name:"billowing-sail",hex:"#d8e7e7"},{pantone:"12-5508",name:"hushed-green",hex:"#d8e9e5"},{pantone:"12-0910",name:"lambs-wool",hex:"#e5d0b1"},{pantone:"14-1119",name:"winter-wheat",hex:"#dfc09f"},{pantone:"13-0814",name:"summer-melon",hex:"#ead3ae"},{pantone:"13-0916",name:"chamomile",hex:"#e8d0a7"},{pantone:"12-0714",name:"cornhusk",hex:"#f2d6ae"},{pantone:"12-0817",name:"apricot-gelato",hex:"#f5d7af"},{pantone:"13-1009",name:"biscotti",hex:"#dac7ab"},{pantone:"12-0311",name:"asparagus-green",hex:"#d2cdb4"},{pantone:"13-1007",name:"oyster-white",hex:"#d2caaf"},{pantone:"13-0711",name:"putty",hex:"#d4cab0"},{pantone:"13-0611",name:"moth",hex:"#d2cbaf"},{pantone:"14-1108",name:"wood-ash",hex:"#d7cab0"},{pantone:"14-1014",name:"gravel",hex:"#cbbfa2"},{pantone:"15-1216",name:"pale-khaki",hex:"#bfaf92"},{pantone:"12-0404",name:"light-gray",hex:"#dad8c9"},{pantone:"12-6204",name:"silver-green",hex:"#d7d7c7"},{pantone:"14-6305",name:"pelican",hex:"#c1bcac"},{pantone:"14-0105",name:"overcast",hex:"#c3bdab"},{pantone:"14-0210",name:"tidal-foam",hex:"#bfb9a3"},{pantone:"15-6307",name:"agate-gray",hex:"#b1b09f"},{pantone:"14-6308",name:"alfalfa",hex:"#b7b59f"},{pantone:"14-0108",name:"castle-wall",hex:"#c8c1ab"},{pantone:"14-1107",name:"oyster-gray",hex:"#cbc1ae"},{pantone:"14-0708",name:"cement",hex:"#c4b6a6"},{pantone:"15-0309",name:"spray-green",hex:"#aea692"},{pantone:"15-0513",name:"eucalyptus",hex:"#b1a992"},{pantone:"16-1108",name:"twill",hex:"#a79b82"},{pantone:"16-1110",name:"olive-gray",hex:"#a6997a"},{pantone:"17-1109",name:"chinchilla",hex:"#9c8e7b"},{pantone:"17-1107",name:"seneca-rock",hex:"#9a927f"},{pantone:"17-0610",name:"laurel-oak",hex:"#918c7e"},{pantone:"17-1113",name:"coriander",hex:"#938772"},{pantone:"17-1009",name:"dune",hex:"#998978"},{pantone:"17-1118",name:"lead-gray",hex:"#8a7963"},{pantone:"18-0617",name:"covert-green",hex:"#80765f"},{pantone:"15-1306",name:"oxford-tan",hex:"#b8a99a"},{pantone:"16-1105",name:"plaza-taupe",hex:"#aea393"},{pantone:"16-1106",name:"tuffet",hex:"#a59788"},{pantone:"17-1312",name:"silver-mink",hex:"#9f8d7c"},{pantone:"17-1310",name:"timber-wolf",hex:"#8d8070"},{pantone:"17-0808",name:"taupe-gray",hex:"#8e7c71"},{pantone:"17-1410",name:"pine-bark",hex:"#827064"},{pantone:"14-0002",name:"pumice-stone",hex:"#cac2b9"},{pantone:"16-0906",name:"simply-taupe",hex:"#ad9f93"},{pantone:"16-1107",name:"aluminum",hex:"#9f9586"},{pantone:"16-1407",name:"cobblestone",hex:"#a89a8e"},{pantone:"18-1110",name:"brindle",hex:"#82776b"},{pantone:"18-1112",name:"walnut",hex:"#776a5f"},{pantone:"18-0513",name:"bungee-cord",hex:"#696156"},{pantone:"13-0401",name:"oatmeal",hex:"#cbc3b4"},{pantone:"13-0000",name:"moonbeam",hex:"#cdc6bd"},{pantone:"13-5304",name:"rainy-day",hex:"#cfc8bd"},{pantone:"13-0403",name:"gray-morn",hex:"#cabeb5"},{pantone:"14-1106",name:"peyote",hex:"#c5bbae"},{pantone:"15-1305",name:"feather-gray",hex:"#b8ad9e"},{pantone:"16-0806",name:"goat",hex:"#a89a91"},{pantone:"13-0002",name:"white-sand",hex:"#dbd5d1"},{pantone:"14-0000",name:"silver-gray",hex:"#c1b7b0"},{pantone:"15-4503",name:"chateau-gray",hex:"#bbb1a8"},{pantone:"16-1305",name:"string",hex:"#aa9f96"},{pantone:"16-1406",name:"atmosphere",hex:"#a89c94"},{pantone:"17-1210",name:"moon-rock",hex:"#958b84"},{pantone:"17-1212",name:"fungi",hex:"#8f8177"},{pantone:"14-4501",name:"silver-lining",hex:"#bdb6ab"},{pantone:"14-4500",name:"moonstruck",hex:"#c2beb6"},{pantone:"15-6304",name:"pussywillow-gray",hex:"#aeaca1"},{pantone:"16-0207",name:"london-fog",hex:"#a29e92"},{pantone:"17-0207",name:"rock-ridge",hex:"#918c86"},{pantone:"18-4105",name:"moon-mist",hex:"#80817d"},{pantone:"18-0510",name:"castor-gray",hex:"#646762"},{pantone:"14-4102",name:"glacier-gray",hex:"#c5c6c7"},{pantone:"14-4201",name:"lunar-rock",hex:"#c5c5c5"},{pantone:"13-4303",name:"dawn-blue",hex:"#cacccb"},{pantone:"14-4103",name:"gray-violet",hex:"#bbbcbc"},{pantone:"14-4203",name:"vapor-blue",hex:"#bebdbd"},{pantone:"15-4101",name:"high-rise",hex:"#aeb2b5"},{pantone:"16-4702",name:"limestone",hex:"#989a98"},{pantone:"15-4502",name:"silver-cloud",hex:"#beb7b0"},{pantone:"15-0000",name:"dove",hex:"#b3ada7"},{pantone:"16-5803",name:"flint-gray",hex:"#a09c98"},{pantone:"16-4402",name:"drizzle",hex:"#a09f9c"},{pantone:"17-0205",name:"elephant-skin",hex:"#8f8982"},{pantone:"17-1506",name:"cinder",hex:"#8a7e78"},{pantone:"17-1500",name:"steeple-gray",hex:"#827e7c"},{pantone:"14-4503",name:"metal",hex:"#babfbc"},{pantone:"14-4804",name:"blue-fox",hex:"#b9bcb6"},{pantone:"15-4003",name:"storm-gray",hex:"#b5bab6"},{pantone:"15-4704",name:"pigeon",hex:"#a9afaa"},{pantone:"15-4703",name:"mirage-gray",hex:"#abafae"},{pantone:"15-4702",name:"puritan-gray",hex:"#a8b0ae"},{pantone:"16-5904",name:"wrought-iron",hex:"#99,9e,98"},{pantone:"16-3801",name:"opal-gray",hex:"#a49e9e"},{pantone:"17-1501",name:"wild-dove",hex:"#8b8c89"},{pantone:"17-4402",name:"neutral-gray",hex:"#8e918f"},{pantone:"18-0503",name:"gargoyle",hex:"#686767"},{pantone:"18-0000",name:"smoked-pearl",hex:"#656466"},{pantone:"18-5105",name:"sedona-sage",hex:"#686d6c"},{pantone:"18-0306",name:"gunmetal",hex:"#5c5d5b"},{pantone:"14-4002",name:"wind-chime",hex:"#cac5c2"},{pantone:"16-0000",name:"paloma",hex:"#9f9c99"},{pantone:"18-0601",name:"charcoal-gray",hex:"#6c6868"},{pantone:"18-4005",name:"steel-gray",hex:"#726f70"},{pantone:"18-5203",name:"pewter",hex:"#666564"},{pantone:"18-0201",name:"castlerock",hex:"#5f5e62"},{pantone:"19-3908",name:"nine-iron",hex:"#46434a"},{pantone:"16-3802",name:"ash",hex:"#a09998"},{pantone:"17-1502",name:"cloudburst",hex:"#837f7f"},{pantone:"17-0000",name:"frost-gray",hex:"#848283"},{pantone:"18-3905",name:"excalibur",hex:"#676168"},{pantone:"18-0403",name:"dark-gull-gray",hex:"#625d5d"},{pantone:"19-3905",name:"rabbit",hex:"#5f575c"},{pantone:"19-3903",name:"shale",hex:"#4a3f41"},{pantone:"17-0909",name:"fossil",hex:"#806f63"},{pantone:"19-0810",name:"major-brown",hex:"#5b5149"},{pantone:"19-0809",name:"chocolate-chip",hex:"#685a4e"},{pantone:"19-0820",name:"canteen",hex:"#5e5347"},{pantone:"18-0615",name:"stone-gray",hex:"#685e4f"},{pantone:"18-0820",name:"capers",hex:"#695e4b"},{pantone:"19-0618",name:"beech",hex:"#5b4f3b"},{pantone:"19-0822",name:"tarmac",hex:"#5a5348"},{pantone:"19-0614",name:"wren",hex:"#4a4139"},{pantone:"19-0608",name:"black-olive",hex:"#48413b"},{pantone:"19-0405",name:"beluga",hex:"#4a4843"},{pantone:"19-0506",name:"black-ink",hex:"#44413c"},{pantone:"19-0508",name:"peat",hex:"#3b3a36"},{pantone:"19-5708",name:"jet-set",hex:"#262c2a"},{pantone:"18-1306",name:"iron",hex:"#736460"},{pantone:"19-3803",name:"plum-kitten",hex:"#625b5c"},{pantone:"19-0812",name:"turkish-coffee",hex:"#483f39"},{pantone:"19-1111",name:"black-coffee",hex:"#3b302f"},{pantone:"19-1101",name:"after-dark",hex:"#3c3535"},{pantone:"19-1102",name:"licorice",hex:"#3a3536"},{pantone:"19-0000",name:"raven",hex:"#413e3d"},{pantone:"19-0303",name:"jet-black",hex:"#2d2c2f"},{pantone:"19-4205",name:"phantom",hex:"#39373b"},{pantone:"19-4005",name:"stretch-limo",hex:"#2b2c30"},{pantone:"19-4203",name:"moonless-night",hex:"#2f2d30"},{pantone:"19-4006",name:"caviar",hex:"#292a2d"},{pantone:"19-4305",name:"pirate-black",hex:"#363838"},{pantone:"19-4007",name:"anthracite",hex:"#28282d"},{pantone:"12-1009",name:"vanilla-cream",hex:"#f4d8c6"},{pantone:"12-0811",name:"dawn",hex:"#ebd2b7"},{pantone:"13-1010",name:"gray-sand",hex:"#e5ccaf"},{pantone:"12-0813",name:"autumn-blonde",hex:"#eed0ae"},{pantone:"14-1120",name:"apricot-illusion",hex:"#e2c4a6"},{pantone:"13-1014",name:"mellow-buff",hex:"#d8b998"},{pantone:"14-1122",name:"sheepskin",hex:"#dab58f"},{pantone:"14-1116",name:"almond-buff",hex:"#ccb390"},{pantone:"14-1118",name:"beige",hex:"#d5ba98"},{pantone:"15-1225",name:"sand",hex:"#cca67f"},{pantone:"15-1220",name:"latte",hex:"#c5a582"},{pantone:"16-1334",name:"tan",hex:"#b69574"},{pantone:"16-1333",name:"doe",hex:"#b98e68"},{pantone:"17-1328",name:"indian-tan",hex:"#ad8567"},{pantone:"15-1116",name:"safari",hex:"#baaa91"},{pantone:"15-1213",name:"candied-ginger",hex:"#bfa387"},{pantone:"15-1214",name:"warm-sand",hex:"#c5ae91"},{pantone:"15-1314",name:"cuban-sand",hex:"#c1a68d"},{pantone:"16-1320",name:"nougat",hex:"#b69885"},{pantone:"16-1310",name:"natural",hex:"#aa907d"},{pantone:"16-1212",name:"nomad",hex:"#b49f89"},{pantone:"13-0513",name:"frozen-dew",hex:"#d8cfb2"},{pantone:"13-1008",name:"bleached-sand",hex:"#daccb4"},{pantone:"14-1112",name:"pebble",hex:"#cab698"},{pantone:"16-0924",name:"croissant",hex:"#c4ab86"},{pantone:"16-1010",name:"incense",hex:"#af9a7e"},{pantone:"16-1315",name:"cornstalk",hex:"#a9947a"},{pantone:"17-1320",name:"tannin",hex:"#a68a6d"},{pantone:"14-0615",name:"green-haze",hex:"#cac4a4"},{pantone:"15-1217",name:"mojave-desert",hex:"#c7b595"},{pantone:"15-1119",name:"taos-taupe",hex:"#bfa77f"},{pantone:"16-1324",name:"lark",hex:"#b89b72"},{pantone:"17-1022",name:"kelp",hex:"#988467"},{pantone:"17-1028",name:"antique-bronze",hex:"#907954"},{pantone:"17-0935",name:"dull-gold",hex:"#8a6f48"},{pantone:"17-1134",name:"brown-sugar",hex:"#a17249"},{pantone:"17-1044",name:"chipmunk",hex:"#976f4c"},{pantone:"17-1327",name:"tobacco-brown",hex:"#9a7352"},{pantone:"18-1027",name:"bison",hex:"#6e4f3a"},{pantone:"18-1048",name:"monks-robe",hex:"#704822"},{pantone:"18-1033",name:"dachshund",hex:"#704f37"},{pantone:"18-1031",name:"toffee",hex:"#755139"},{pantone:"18-1130",name:"aztec",hex:"#7a5747"},{pantone:"18-1222",name:"cocoa-brown",hex:"#6c5043"},{pantone:"18-1124",name:"partridge",hex:"#725440"},{pantone:"19-1230",name:"friar-brown",hex:"#6e493a"},{pantone:"19-1217",name:"mustang",hex:"#684b40"},{pantone:"19-1121",name:"pinecone",hex:"#61473b"},{pantone:"19-1218",name:"potting-soil",hex:"#54392d"},{pantone:"18-1022",name:"ermine",hex:"#836b4f"},{pantone:"18-1018",name:"otter",hex:"#7f674f"},{pantone:"18-0920",name:"kangaroo",hex:"#725e,43"},{pantone:"18-0928",name:"sepia",hex:"#6b543e"},{pantone:"18-0930",name:"coffee-liqueur",hex:"#6a513b"},{pantone:"19-0815",name:"desert-palm",hex:"#5a4632"},{pantone:"19-0617",name:"teak",hex:"#655341"},{pantone:"18-1015",name:"shitake",hex:"#736253"},{pantone:"18-1016",name:"cub",hex:"#6e5c4b"},{pantone:"19-1116",name:"carafe",hex:"#5d473a"},{pantone:"19-1020",name:"dark-earth",hex:"#5c4939"},{pantone:"19-0814",name:"slate-black",hex:"#4b3d33"},{pantone:"19-0912",name:"chocolate-brown",hex:"#4e403b"},{pantone:"19-0712",name:"demitasse",hex:"#40342b"},{pantone:"18-1312",name:"deep-taupe",hex:"#7b6660"},{pantone:"19-1213",name:"shopping-bag",hex:"#5a4743"},{pantone:"19-1118",name:"chestnut",hex:"#584039"},{pantone:"19-1015",name:"bracken",hex:"#4f3f3b"},{pantone:"19-1314",name:"seal-brown",hex:"#493b39"},{pantone:"19-1016",name:"java",hex:"#433331"},{pantone:"19-0915",name:"coffee-bean",hex:"#40312f"},{pantone:"12-1006",name:"mother-of-pearl",hex:"#e9d4c3"},{pantone:"12-1007",name:"pastel-rose-tan",hex:"#e9d1bf"},{pantone:"12-1005",name:"novelle-peach",hex:"#e7cfbd"},{pantone:"12-0807",name:"sun-kiss",hex:"#ebd1bb"},{pantone:"13-1011",name:"ivory-cream",hex:"#dac0a7"},{pantone:"14-1210",name:"shifting-sand",hex:"#d8c0ad"},{pantone:"13-1013",name:"appleblossom",hex:"#ddbca0"},{pantone:"12-0601",name:"eggnog",hex:"#ece1d3"},{pantone:"13-1108",name:"cream-tan",hex:"#e4c7b8"},{pantone:"13-1106",name:"sand-dollar",hex:"#decdbe"},{pantone:"14-1209",name:"smoke-gray",hex:"#cebaa8"},{pantone:"15-1308",name:"doeskin",hex:"#bdab9b"},{pantone:"15-1215",name:"sesame",hex:"#baa38b"},{pantone:"16-1210",name:"light-taupe",hex:"#b19d8d"},{pantone:"16-1318",name:"warm-taupe",hex:"#af9483"},{pantone:"16-1412",name:"stucco",hex:"#a58d7f"},{pantone:"16-1415",name:"almondine",hex:"#a78c8b"},{pantone:"16-1414",name:"chanterelle",hex:"#a28776"},{pantone:"17-1418",name:"ginger-snap",hex:"#977d70"},{pantone:"17-1321",name:"woodsmoke",hex:"#947764"},{pantone:"17-1319",name:"amphora",hex:"#9f8672"},{pantone:"15-1309",name:"moonlight",hex:"#c5b1a0"},{pantone:"14-1212",name:"frappe",hex:"#d1b7a0"},{pantone:"15-1315",name:"rugby-tan",hex:"#c2a594"},{pantone:"16-1221",name:"roebuck",hex:"#b09080"},{pantone:"17-1223",name:"praline",hex:"#ad8b75"},{pantone:"17-1322",name:"burro",hex:"#947764"},{pantone:"17-1417",name:"beaver-fur",hex:"#997867"},{pantone:"14-1213",name:"toasted-almond",hex:"#d2b49c"},{pantone:"17-1225",name:"tawny-birch",hex:"#ae856c"},{pantone:"16-1323",name:"macaroon",hex:"#b38b71"},{pantone:"17-1226",name:"tawny-brown",hex:"#ab856f"},{pantone:"17-1224",name:"camel",hex:"#b0846a"},{pantone:"16-1331",name:"toast",hex:"#ca9978"},{pantone:"16-1327",name:"toasted-nut",hex:"#c08768"},{pantone:"12-0911",name:"nude",hex:"#f2d3bc"},{pantone:"12-0912",name:"tender-peach",hex:"#f8d5b8"},{pantone:"12-0913",name:"alesan",hex:"#f1ceb3"},{pantone:"12-0915",name:"pale-peach",hex:"#fed1bd"},{pantone:"12-1011",name:"peach-puree",hex:"#efcfba"},{pantone:"13-1114",name:"bellini",hex:"#f4c9b1"},{pantone:"14-1217",name:"amberlight",hex:"#e2bea2"},{pantone:"12-1107",name:"peach-dust",hex:"#f0d8cc"},{pantone:"12-1008",name:"linen",hex:"#edd2c0"},{pantone:"12-1010",name:"scallop-shell",hex:"#fbd8c9"},{pantone:"12-1209",name:"soft-pink",hex:"#f2d8cd"},{pantone:"13-1404",name:"pale-dogwood",hex:"#edcdc2"},{pantone:"12-1206",name:"silver-peony",hex:"#e7cfc7"},{pantone:"14-1307",name:"rose-dust",hex:"#cdb2a5"},{pantone:"13-1405",name:"shell",hex:"#e1cfc6"},{pantone:"13-1107",name:"whisper-pink",hex:"#dacbbe"},{pantone:"12-1404",name:"pink-tint",hex:"#dbcbbd"},{pantone:"14-1311",name:"evening-sand",hex:"#ddb6ab"},{pantone:"15-1317",name:"sirocco",hex:"#c39d88"},{pantone:"16-1317",name:"brush",hex:"#b99984"},{pantone:"17-1227",name:"cafe-au-lait",hex:"#ae8774"},{pantone:"14-1310",name:"cameo-rose",hex:"#d7b8ab"},{pantone:"14-1312",name:"pale-blush",hex:"#e4bfb3"},{pantone:"14-1313",name:"rose-cloud",hex:"#dbb0a2"},{pantone:"14-1314",name:"spanish-villa",hex:"#dfbaa9"},{pantone:"15-1316",name:"maple-sugar",hex:"#c9a38d"},{pantone:"16-1219",name:"tuscany",hex:"#be9785"},{pantone:"16-1422",name:"cork",hex:"#ba8671"},{pantone:"13-1109",name:"bisque",hex:"#edcab5"},{pantone:"15-1319",name:"almost-apricot",hex:"#e5b39b"},{pantone:"15-1318",name:"pink-sand",hex:"#dfb19b"},{pantone:"14-1220",name:"peach-nougat",hex:"#e6af91"},{pantone:"15-1327",name:"peach-bloom",hex:"#d99b7c"},{pantone:"15-1322",name:"dusty-coral",hex:"#d29b83"},{pantone:"16-1220",name:"cafe-creme",hex:"#c79685"},{pantone:"16-1235",name:"sandstorm",hex:"#bd8b69"},{pantone:"16-1341",name:"butterum",hex:"#c68f65"},{pantone:"16-1336",name:"biscuit",hex:"#b4835b"},{pantone:"17-1137",name:"cashew",hex:"#a47149"},{pantone:"16-1432",name:"almond",hex:"#a7754d"},{pantone:"17-1330",name:"lion",hex:"#a0714f"},{pantone:"18-1030",name:"thrush",hex:"#936b4f"},{pantone:"17-1230",name:"mocha-mousse",hex:"#a47864"},{pantone:"17-1430",name:"pecan-brown",hex:"#a36e51"},{pantone:"17-1143",name:"hazel",hex:"#ae7250"},{pantone:"17-1336",name:"bran",hex:"#a66e4a"},{pantone:"17-1340",name:"adobe",hex:"#a3623b"},{pantone:"18-1142",name:"leather-brown",hex:"#97572b"},{pantone:"18-1154",name:"glazed-ginger",hex:"#91552b"},{pantone:"16-1328",name:"sandstone",hex:"#c48a69"},{pantone:"16-1439",name:"caramel",hex:"#c37c54"},{pantone:"17-1147",name:"amber-brown",hex:"#a66646"},{pantone:"18-1239",name:"sierra",hex:"#985c41"},{pantone:"18-1244",name:"ginger-bread",hex:"#8c4a2f"},{pantone:"18-1140",name:"mocha-bisque",hex:"#8c543a"},{pantone:"19-1241",name:"tortoise-shell",hex:"#754734"},{pantone:"16-1332",name:"pheasant",hex:"#c68463"},{pantone:"16-1429",name:"sunburn",hex:"#b37256"},{pantone:"17-1436",name:"raw-sienna",hex:"#b9714f"},{pantone:"17-1347",name:"autumn-leaf",hex:"#b56a4c"},{pantone:"18-1450",name:"mecca-orange",hex:"#bd5745"},{pantone:"18-1248",name:"rust",hex:"#b55a30"},{pantone:"18-1250",name:"bombay-brown",hex:"#9f5130"},{pantone:"13-1012",name:"frosted-almond",hex:"#d2c2ac"},{pantone:"14-1012",name:"gilded-beige",hex:"#b39f8d"},{pantone:"15-0927",name:"pale-gold",hex:"#bd9865"},{pantone:"16-0836",name:"rich-gold",hex:"#c8b273"},{pantone:"16-1325",name:"copper",hex:"#c47e5a"},{pantone:"18-1537",name:"copper-coin",hex:"#ba6b57"},{pantone:"14-5002",name:"silver",hex:"#a2a2a1"},{pantone:"17-1422",name:"raw-umber",hex:"#92705f"},{pantone:"18-1321",name:"brownie",hex:"#8f7265"},{pantone:"18-1314",name:"acorn",hex:"#7e5e52"},{pantone:"18-1320",name:"clove",hex:"#876155"},{pantone:"18-1229",name:"carob-brown",hex:"#855c4c"},{pantone:"18-1235",name:"russet",hex:"#8f5f50"},{pantone:"18-1137",name:"rawhide",hex:"#86,5e,49"},{pantone:"18-1433",name:"chutney",hex:"#98594b"},{pantone:"18-1441",name:"baked-clay",hex:"#9c5642"},{pantone:"18-1336",name:"copper-brown",hex:"#9a6051"},{pantone:"18-1242",name:"brown-patina",hex:"#834f3d"},{pantone:"18-1238",name:"rustic-brown",hex:"#855141"},{pantone:"18-1230",name:"coconut-shell",hex:"#874e3c"},{pantone:"19-1333",name:"sequoia",hex:"#804839"},{pantone:"19-1228",name:"root-beer",hex:"#714a41"},{pantone:"19-1235",name:"brunette",hex:"#664238"},{pantone:"19-1320",name:"sable",hex:"#6e403c"},{pantone:"19-1436",name:"cinnamon",hex:"#6b4139"},{pantone:"19-1431",name:"fudgesickle",hex:"#63403a"},{pantone:"19-1430",name:"mink",hex:"#734b42"},{pantone:"19-1220",name:"cappuccino",hex:"#633f33"},{pantone:"18-1421",name:"cognac",hex:"#8b645a"},{pantone:"18-1326",name:"nutmeg",hex:"#7e5c54"},{pantone:"19-1012",name:"french-roast",hex:"#58423f"},{pantone:"19-1420",name:"deep-mahogany",hex:"#553b39"},{pantone:"19-1321",name:"rum-raisin",hex:"#583432"},{pantone:"19-1322",name:"brown-stone",hex:"#593c39"},{pantone:"19-1317",name:"bitter-chocolate",hex:"#503130"},{pantone:"18-1425",name:"mahogany",hex:"#824d46"},{pantone:"19-1334",name:"henna",hex:"#7c423c"},{pantone:"19-1245",name:"arabian-spice",hex:"#884332"},{pantone:"19-1325",name:"hot-chocolate",hex:"#683b39"},{pantone:"19-1338",name:"russet-brown",hex:"#743332"},{pantone:"19-1331",name:"madder-brown",hex:"#6a3331"},{pantone:"19-1327",name:"andorra",hex:"#603535"},{pantone:"11-0510",name:"afterglow",hex:"#f3e6c9"},{pantone:"11-0617",name:"transparent-yellow",hex:"#f4ecc2"},{pantone:"12-0715",name:"double-cream",hex:"#f3e0ac"},{pantone:"13-0822",name:"sunlight",hex:"#edd59e"},{pantone:"13-0922",name:"straw",hex:"#e0c992"},{pantone:"14-0935",name:"jojoba",hex:"#dabe81"},{pantone:"14-1031",name:"rattan",hex:"#d1b272"},{pantone:"14-1110",name:"boulder",hex:"#d1be9b"},{pantone:"13-0715",name:"sea-mist",hex:"#d8c9a3"},{pantone:"13-0915",name:"reed-yellow",hex:"#dcc99e"},{pantone:"13-0613",name:"chino-green",hex:"#d9caa5"},{pantone:"14-0925",name:"parsnip",hex:"#d6c69a"},{pantone:"12-0619",name:"dusty-yellow",hex:"#d4cc9a"},{pantone:"15-0719",name:"silver-fern",hex:"#bbaa7e"},{pantone:"12-0626",name:"lemon-grass",hex:"#dcd494"},{pantone:"13-0725",name:"raffia",hex:"#dac483"},{pantone:"13-0624",name:"golden-mist",hex:"#d5cd94"},{pantone:"14-0826",name:"pampas",hex:"#cfbb7b"},{pantone:"14-0740",name:"bamboo",hex:"#d2b04c"},{pantone:"15-0643",name:"cress-green",hex:"#bca949"},{pantone:"16-0847",name:"olive-oil",hex:"#a98b2d"},{pantone:"14-0626",name:"dried-moss",hex:"#ccb97e"},{pantone:"14-0647",name:"celery",hex:"#cec153"},{pantone:"13-0640",name:"acacia",hex:"#dacd65"},{pantone:"14-0755",name:"sulphur",hex:"#ddb614"},{pantone:"15-0743",name:"oil-yellow",hex:"#c4a647"},{pantone:"16-0742",name:"green-sulphur",hex:"#ae8e2c"},{pantone:"17-0839",name:"golden-palm",hex:"#aa8805"},{pantone:"14-1025",name:"cocoon",hex:"#c9b27c"},{pantone:"14-0721",name:"hemp",hex:"#c0ad7c"},{pantone:"15-0730",name:"southern-moss",hex:"#bca66a"},{pantone:"15-0732",name:"olivenite",hex:"#c1a65c"},{pantone:"15-0636",name:"golden-green",hex:"#bdb369"},{pantone:"16-0730",name:"antique-gold",hex:"#b59e5f"},{pantone:"16-0737",name:"burnished-gold",hex:"#aa9855"},{pantone:"12-0722",name:"french-vanilla",hex:"#efe1a7"},{pantone:"11-0616",name:"pastel-yellow",hex:"#f2e6b1"},{pantone:"11-0710",name:"tender-yellow",hex:"#ededb7"},{pantone:"11-0618",name:"wax-yellow",hex:"#ede9ad"},{pantone:"12-0721",name:"lemonade",hex:"#f0e79d"},{pantone:"11-0620",name:"elfin-yellow",hex:"#eeea97"},{pantone:"12-0740",name:"limelight",hex:"#f0e87d"},{pantone:"14-0827",name:"dusky-citron",hex:"#e3cc81"},{pantone:"14-0636",name:"muted-lime",hex:"#d1c87c"},{pantone:"13-0632",name:"endive",hex:"#d2cc81"},{pantone:"13-0720",name:"custard",hex:"#e5d68e"},{pantone:"12-0633",name:"canary-yellow",hex:"#dfd87e"},{pantone:"12-0738",name:"yellow-cream",hex:"#efdc75"},{pantone:"13-0739",name:"cream-gold",hex:"#dec05f"},{pantone:"12-0642",name:"aurora",hex:"#eddd59"},{pantone:"13-0648",name:"green-sheen",hex:"#d9ce52"},{pantone:"13-0746",name:"maize",hex:"#eec843"},{pantone:"12-0643",name:"blazing-yellow",hex:"#fee715"},{pantone:"12-0752",name:"buttercup",hex:"#fae03c"},{pantone:"14-0756",name:"empire-yellow",hex:"#f7d000"},{pantone:"13-0752",name:"lemon",hex:"#f3bf08"},{pantone:"14-0848",name:"mimosa",hex:"#f0c05a"},{pantone:"13-0850",name:"aspen-gold",hex:"#ffd662"},{pantone:"13-0758",name:"dandelion",hex:"#ffd02e"},{pantone:"13-0858",name:"vibrant-yellow",hex:"#ffda29"},{pantone:"14-0760",name:"cyber-yellow",hex:"#ffd400"},{pantone:"14-0852",name:"freesia",hex:"#f3c12c"},{pantone:"13-0859",name:"lemon-chrome",hex:"#ffc300"},{pantone:"12-0720",name:"mellow-yellow",hex:"#f0dd9d"},{pantone:"12-0824",name:"pale-banana",hex:"#fae199"},{pantone:"12-0825",name:"popcorn",hex:"#f8de8d"},{pantone:"12-0727",name:"sunshine",hex:"#fade85"},{pantone:"12-0736",name:"lemon-drop",hex:"#fdd878"},{pantone:"13-0755",name:"primrose-yellow",hex:"#f6d155"},{pantone:"14-0754",name:"super-lemon",hex:"#e4bf45"},{pantone:"14-0837",name:"misted-yellow",hex:"#dab965"},{pantone:"15-0942",name:"sauterne",hex:"#c5a253"},{pantone:"16-0946",name:"honey",hex:"#ba9238"},{pantone:"16-0954",name:"arrowwood",hex:"#bc8d1f"},{pantone:"16-0953",name:"tawny-olive",hex:"#c4962c"},{pantone:"15-0850",name:"ceylon-yellow",hex:"#d4ae40"},{pantone:"15-0751",name:"lemon-curry",hex:"#cda323"},{pantone:"15-1132",name:"fall-leaf",hex:"#c9a86a"},{pantone:"16-1126",name:"antelope",hex:"#b19664"},{pantone:"16-1133",name:"mustard-gold",hex:"#b08e51"},{pantone:"16-0948",name:"harvest-gold",hex:"#b68a3a"},{pantone:"16-0952",name:"nugget-gold",hex:"#c89720"},{pantone:"15-0948",name:"golden-spice",hex:"#c6973f"},{pantone:"15-0953",name:"golden-yellow",hex:"#cb8e16"},{pantone:"14-1036",name:"ochre",hex:"#d6af66"},{pantone:"16-0945",name:"tinsel",hex:"#c3964d"},{pantone:"16-0947",name:"bright-gold",hex:"#cf9f52"},{pantone:"15-1142",name:"honey-gold",hex:"#d1a054"},{pantone:"16-1139",name:"amber-gold",hex:"#c19552"},{pantone:"15-1046",name:"mineral-yellow",hex:"#d39c43"},{pantone:"16-0950",name:"narcissus",hex:"#c39449"},{pantone:"14-1113",name:"marzipan",hex:"#d8c09d"},{pantone:"16-0928",name:"curry",hex:"#be9e6f"},{pantone:"16-1326",name:"prairie-sand",hex:"#b59a6a"},{pantone:"17-1047",name:"honey-mustard",hex:"#b68f52"},{pantone:"17-1129",name:"wood-thrush",hex:"#a47d43"},{pantone:"18-0940",name:"golden-brown",hex:"#91672f"},{pantone:"18-0937",name:"bronze-brown",hex:"#825e2f"},{pantone:"17-1045",name:"apple-cinnamon",hex:"#b0885a"},{pantone:"17-1128",name:"bone-brown",hex:"#9d7446"},{pantone:"17-1125",name:"dijon",hex:"#97754c"},{pantone:"17-1036",name:"bistre",hex:"#98754a"},{pantone:"17-0942",name:"medal-bronze",hex:"#977547"},{pantone:"18-0939",name:"cumin",hex:"#927240"},{pantone:"19-1034",name:"breen",hex:"#795d34"},{pantone:"13-0840",name:"snapdragon",hex:"#fed777"},{pantone:"13-0941",name:"banana-cream",hex:"#ffcf73"},{pantone:"14-0850",name:"daffodil",hex:"#fdc04e"},{pantone:"14-0846",name:"yolk-yellow",hex:"#e2b051"},{pantone:"14-0951",name:"golden-rod",hex:"#e2a829"},{pantone:"15-0955",name:"old-gold",hex:"#eca825"},{pantone:"14-0957",name:"spectra-yellow",hex:"#f7b718"},{pantone:"12-0826",name:"golden-haze",hex:"#fbd897"},{pantone:"14-0936",name:"sahara-sun",hex:"#dfc08a"},{pantone:"14-1038",name:"new-wheat",hex:"#d7b57f"},{pantone:"13-0932",name:"cornsilk",hex:"#edc373"},{pantone:"14-0847",name:"buff-yellow",hex:"#f1bf70"},{pantone:"13-0940",name:"sunset-gold",hex:"#f7c46c"},{pantone:"13-0939",name:"golden-cream",hex:"#f7b768"},{pantone:"13-1025",name:"impala",hex:"#f8ce97"},{pantone:"13-0935",name:"flax",hex:"#ffc87d"},{pantone:"13-0945",name:"pale-marigold",hex:"#ffc66e"},{pantone:"13-0942",name:"amber-yellow",hex:"#fab75a"},{pantone:"14-1045",name:"amber",hex:"#efad55"},{pantone:"14-1041",name:"golden-apricot",hex:"#dda758"},{pantone:"14-0941",name:"beeswax",hex:"#eba851"},{pantone:"13-0947",name:"banana",hex:"#fcb953"},{pantone:"14-0955",name:"citrus",hex:"#f9ac2f"},{pantone:"15-1050",name:"golden-glow",hex:"#d99938"},{pantone:"15-1049",name:"artisans-gold",hex:"#f2ab46"},{pantone:"16-1054",name:"sunflower",hex:"#d39237"},{pantone:"18-0935",name:"buckthorn-brown",hex:"#a76f1f"},{pantone:"18-0950",name:"cathay-spice",hex:"#99642c"},{pantone:"16-0940",name:"taffy",hex:"#c39b6a"},{pantone:"16-1144",name:"oak-buff",hex:"#cf9c63"},{pantone:"16-1143",name:"honey-yellow",hex:"#ca9456"},{pantone:"17-1040",name:"spruce-yellow",hex:"#be8a4a"},{pantone:"17-1048",name:"inca-gold",hex:"#bb7a2c"},{pantone:"18-1160",name:"sudan-brown",hex:"#ac6b29"},{pantone:"18-0933",name:"rubber",hex:"#815b37"},{pantone:"13-1016",name:"wheat",hex:"#dec5a5"},{pantone:"13-1015",name:"honey-peach",hex:"#dcbd9e"},{pantone:"13-1018",name:"desert-dust",hex:"#e3bc8e"},{pantone:"12-0921",name:"golden-straw",hex:"#e6bd8f"},{pantone:"13-1024",name:"buff",hex:"#ebc396"},{pantone:"14-1127",name:"desert-mist",hex:"#e0b589"},{pantone:"15-1231",name:"clay",hex:"#d2a172"},{pantone:"12-0822",name:"golden-fleece",hex:"#f2d1a0"},{pantone:"13-1031",name:"apricot-sherbet",hex:"#facd9e"},{pantone:"13-1030",name:"sunburst",hex:"#f6c289"},{pantone:"13-1027",name:"apricot-cream",hex:"#f1bd89"},{pantone:"14-1128",name:"buff-orange",hex:"#ffbb7c"},{pantone:"15-1145",name:"chamois",hex:"#f7b26a"},{pantone:"14-1051",name:"warm-apricot",hex:"#ffb865"},{pantone:"14-1050",name:"marigold",hex:"#fadc53"},{pantone:"16-1142",name:"golden-nugget",hex:"#db9b59"},{pantone:"15-1147",name:"butterscotch",hex:"#e19640"},{pantone:"16-1148",name:"nugget",hex:"#cf8848"},{pantone:"16-1342",name:"buckskin",hex:"#d18e54"},{pantone:"16-1140",name:"yam",hex:"#d0893f"},{pantone:"17-1046",name:"golden-oak",hex:"#be752d"},{pantone:"15-1062",name:"gold-fusion",hex:"#ffb000"},{pantone:"14-1064",name:"saffron",hex:"#ffa500"},{pantone:"15-1054",name:"cadmium-yellow",hex:"#ee9626"},{pantone:"14-1159",name:"zinnia",hex:"#ffa010"},{pantone:"15-1058",name:"radiant-yellow",hex:"#fc9e21"},{pantone:"15-1153",name:"apricot",hex:"#f19035"},{pantone:"15-1150",name:"dark-cheddar",hex:"#e08119"},{pantone:"13-1020",name:"apricot-ice",hex:"#fbbe99"},{pantone:"14-1133",name:"apricot-nectar",hex:"#ecaa79"},{pantone:"15-1234",name:"gold-earth",hex:"#dd9c6b"},{pantone:"15-1237",name:"apricot-tan",hex:"#dd9760"},{pantone:"16-1150",name:"topaz",hex:"#d08344"},{pantone:"16-1346",name:"golden-ochre",hex:"#c77943"},{pantone:"16-1443",name:"apricot-buff",hex:"#cd7e4d"},{pantone:"14-1231",name:"peach-cobbler",hex:"#ffb181"},{pantone:"14-1135",name:"salmon-buff",hex:"#feaa7b"},{pantone:"14-1139",name:"pumpkin",hex:"#f5a26f"},{pantone:"15-1245",name:"mock-orange",hex:"#ffa368"},{pantone:"15-1242",name:"muskmelon",hex:"#ec935e"},{pantone:"16-1338",name:"copper-tan",hex:"#de8e65"},{pantone:"16-1337",name:"coral-gold",hex:"#d27d56"},{pantone:"16-1255",name:"russet-orange",hex:"#e47127"},{pantone:"16-1253",name:"orange-ochre",hex:"#dc793a"},{pantone:"16-1350",name:"amberglow",hex:"#dc793e"},{pantone:"16-1454",name:"jaffa-orange",hex:"#d86d39"},{pantone:"17-1353",name:"apricot-orange",hex:"#c86b3c"},{pantone:"16-1448",name:"burnt-orange",hex:"#c86733"},{pantone:"16-1260",name:"harvest-pumpkin",hex:"#d56231"},{pantone:"15-1160",name:"blazing-orange",hex:"#ffa64f"},{pantone:"15-1157",name:"flame-orange",hex:"#fb8b23"},{pantone:"15-1164",name:"bright-marigold",hex:"#ff8d00"},{pantone:"15-1263",name:"autumn-glory",hex:"#ff8812"},{pantone:"16-1257",name:"sun-orange",hex:"#f48037"},{pantone:"16-1356",name:"persimmon-orange",hex:"#f47327"},{pantone:"17-1350",name:"orange-popsicle",hex:"#ff7913"},{pantone:"16-1343",name:"autumn-sunset",hex:"#f38554"},{pantone:"15-1247",name:"tangerine",hex:"#f88f58"},{pantone:"16-1357",name:"bird-of-paradise",hex:"#ff8c55"},{pantone:"16-1359",name:"orange-peel",hex:"#fa7a35"},{pantone:"16-1459",name:"mandarin-orange",hex:"#ec6a37"},{pantone:"16-1462",name:"golden-poppy",hex:"#f56733"},{pantone:"16-1364",name:"vibrant-orange",hex:"#ff7420"},{pantone:"16-1360",name:"nectarine",hex:"#ff8656"},{pantone:"16-1349",name:"coral-rose",hex:"#f3774d"},{pantone:"16-1361",name:"carrot",hex:"#fd6f3b"},{pantone:"16-1452",name:"firecracker",hex:"#f36944"},{pantone:"17-1464",name:"red-orange",hex:"#f05627"},{pantone:"16-1362",name:"vermillion-orange",hex:"#f9633b"},{pantone:"17-1462",name:"flame",hex:"#f2552c"},{pantone:"13-1026",name:"creampuff",hex:"#ffcda8"},{pantone:"12-0917",name:"bleached-apricot",hex:"#fccaac"},{pantone:"13-1017",name:"almond-cream",hex:"#f4c29f"},{pantone:"14-1225",name:"beach-sand",hex:"#fbb995"},{pantone:"13-1019",name:"cream-blush",hex:"#f8c19a"},{pantone:"13-1022",name:"caramel-cream",hex:"#f4ba94"},{pantone:"13-1023",name:"peach-fuzz",hex:"#ffbe98"},{pantone:"13-1021",name:"prairie-sunset",hex:"#ffbb9e"},{pantone:"14-1224",name:"coral-sands",hex:"#edaa86"},{pantone:"14-1230",name:"apricot-wash",hex:"#fbac82"},{pantone:"15-1333",name:"canyon-sunset",hex:"#e1927a"},{pantone:"16-1340",name:"brandied-melon",hex:"#ce7b5b"},{pantone:"16-1435",name:"carnelian",hex:"#ce785d"},{pantone:"17-1446",name:"mango",hex:"#b75e41"},{pantone:"14-1227",name:"peach",hex:"#f2a987"},{pantone:"15-1239",name:"cantaloupe",hex:"#ffa177"},{pantone:"15-1331",name:"coral-reef",hex:"#faa181"},{pantone:"15-1334",name:"shell-coral",hex:"#ea9575"},{pantone:"15-1340",name:"cadmium-orange",hex:"#f99471"},{pantone:"16-1442",name:"melon",hex:"#fe8863"},{pantone:"16-1344",name:"dusty-orange",hex:"#e27a53"},{pantone:"16-1441",name:"arabesque",hex:"#d16f52"},{pantone:"16-1440",name:"langoustino",hex:"#ca6c56"},{pantone:"17-1444",name:"ginger",hex:"#c96551"},{pantone:"16-1450",name:"flamingo",hex:"#df7253"},{pantone:"18-1447",name:"orange-rust",hex:"#c25a3c"},{pantone:"18-1354",name:"burnt-ochre",hex:"#bb4f35"},{pantone:"18-1448",name:"chili",hex:"#be5141"},{pantone:"18-1535",name:"ginger-spice",hex:"#b65d48"},{pantone:"18-1451",name:"autumn-glaze",hex:"#b3573f"},{pantone:"18-1343",name:"auburn",hex:"#a15843"},{pantone:"19-1250",name:"picante",hex:"#8d3f2d"},{pantone:"18-1444",name:"tandori-spice",hex:"#9f4440"},{pantone:"18-1540",name:"cinnabar",hex:"#9c453b"},{pantone:"18-1547",name:"bossa-nova",hex:"#973a36"},{pantone:"13-1318",name:"tropical-peach",hex:"#ffc4b2"},{pantone:"14-1219",name:"peach-parfait",hex:"#f8bfa8"},{pantone:"14-1318",name:"coral-pink",hex:"#e8a798"},{pantone:"14-1316",name:"dusty-pink",hex:"#deaa9b"},{pantone:"16-1330",name:"muted-clay",hex:"#d29380"},{pantone:"15-1523",name:"shrimp",hex:"#e29a86"},{pantone:"17-1341",name:"tawny-orange",hex:"#d37f6f"},{pantone:"16-1329",name:"coral-haze",hex:"#e38e84"},{pantone:"16-1431",name:"canyon-clay",hex:"#ce8477"},{pantone:"16-1526",name:"terra-cotta",hex:"#d38377"},{pantone:"17-1524",name:"desert-sand",hex:"#bd7b74"},{pantone:"18-1436",name:"light-mahogany",hex:"#ad6d68"},{pantone:"17-1525",name:"cedar-wood",hex:"#a1655b"},{pantone:"18-1435",name:"withered-rose",hex:"#a26666"},{pantone:"16-1522",name:"rose-dawn",hex:"#c2877b"},{pantone:"17-1514",name:"ash-rose",hex:"#b5817d"},{pantone:"17-1518",name:"old-rose",hex:"#b47b77"},{pantone:"17-1424",name:"brick-dust",hex:"#b07069"},{pantone:"17-1520",name:"canyon-rose",hex:"#af6c67"},{pantone:"18-1630",name:"dusty-cedar",hex:"#ad5d5d"},{pantone:"18-1438",name:"marsala",hex:"#964f4c"},{pantone:"17-1540",name:"apricot-brandy",hex:"#c26a5a"},{pantone:"17-1532",name:"aragon",hex:"#b06455"},{pantone:"18-1536",name:"hot-sauce",hex:"#ab4f41"},{pantone:"18-1346",name:"bruschetta",hex:"#a75949"},{pantone:"18-1434",name:"etruscan-red",hex:"#a2574b"},{pantone:"18-1443",name:"redwood",hex:"#a6594c"},{pantone:"18-1350",name:"burnt-brick",hex:"#a14d3a"},{pantone:"18-1629",name:"faded-rose",hex:"#bf6464"},{pantone:"18-1648",name:"baked-apple",hex:"#b34646"},{pantone:"18-1658",name:"pompeian-red",hex:"#a4292e"},{pantone:"18-1449",name:"ketchup",hex:"#9a382d"},{pantone:"18-1442",name:"red-ochre",hex:"#913832"},{pantone:"18-1531",name:"barn-red",hex:"#8f423b"},{pantone:"19-1540",name:"burnt-henna",hex:"#7e392f"},{pantone:"14-1419",name:"peach-pearl",hex:"#ffb2a5"},{pantone:"14-1418",name:"peach-melba",hex:"#fbbdaf"},{pantone:"14-1420",name:"apricot-blush",hex:"#feaea5"},{pantone:"14-1324",name:"peach-bud",hex:"#fdb2ab"},{pantone:"16-1434",name:"coral-almond",hex:"#e29d94"},{pantone:"16-1520",name:"lobster-bisque",hex:"#dd9289"},{pantone:"16-1624",name:"lantana",hex:"#da7e7a"},{pantone:"14-1228",name:"peach-nectar",hex:"#ffb59b"},{pantone:"14-1323",name:"salmon",hex:"#faaa94"},{pantone:"15-1423",name:"peach-amber",hex:"#fb9f93"},{pantone:"15-1435",name:"desert-flower",hex:"#ff9687"},{pantone:"15-1530",name:"peach-pink",hex:"#fa9a85"},{pantone:"16-1529",name:"burnt-coral",hex:"#e9897e"},{pantone:"16-1532",name:"crabapple",hex:"#d77e70"},{pantone:"15-1433",name:"papaya-punch",hex:"#fca289"},{pantone:"16-1543",name:"fusion-coral",hex:"#ff8576"},{pantone:"16-1542",name:"fresh-salmon",hex:"#ff7f6a"},{pantone:"16-1544",name:"persimmon",hex:"#f67866"},{pantone:"16-1539",name:"coral",hex:"#ed7464"},{pantone:"16-1546",name:"living-coral",hex:"#ff6f61"},{pantone:"17-1656",name:"hot-coral",hex:"#f35b53"},{pantone:"16-1632",name:"shell-pink",hex:"#f88180"},{pantone:"16-1641",name:"georgia-peach",hex:"#f97272"},{pantone:"16-1640",name:"sugar-coral",hex:"#f56c73"},{pantone:"17-1647",name:"dubarry",hex:"#f25f66"},{pantone:"17-1643",name:"porcelain-rose",hex:"#ea6b6a"},{pantone:"17-1644",name:"spiced-coral",hex:"#d75c5d"},{pantone:"18-1649",name:"deep-sea-coral",hex:"#d9615b"},{pantone:"17-1635",name:"rose-of-sharon",hex:"#dc5b62"},{pantone:"18-1651",name:"cayenne",hex:"#e04951"},{pantone:"18-1762",name:"hibiscus",hex:"#dd3848"},{pantone:"17-1654",name:"poinsettia",hex:"#cb3441"},{pantone:"17-1641",name:"chrysanthemum",hex:"#be454f"},{pantone:"17-1545",name:"cranberry",hex:"#bb4a4d"},{pantone:"18-1643",name:"cardinal",hex:"#ad3e48"},{pantone:"17-1456",name:"tigerlily",hex:"#e2583e"},{pantone:"17-1558",name:"grenadine",hex:"#df3f32"},{pantone:"17-1562",name:"mandarin-red",hex:"#e74a33"},{pantone:"17-1564",name:"fiesta",hex:"#dd4132"},{pantone:"17-1563",name:"cherry-tomato",hex:"#eb3c27"},{pantone:"18-1561",name:"orange-com",hex:"#da321c"},{pantone:"18-1445",name:"spicy-orange",hex:"#d73c26"},{pantone:"16-1541",name:"camellia",hex:"#f6745f"},{pantone:"16-1451",name:"nasturtium",hex:"#fe6347"},{pantone:"17-1547",name:"emberglow",hex:"#ea6759"},{pantone:"17-1544",name:"burnt-sienna",hex:"#c65d52"},{pantone:"17-1553",name:"paprika",hex:"#ce4d42"},{pantone:"18-1454",name:"red-clay",hex:"#c2452d"},{pantone:"18-1555",name:"molten-lava",hex:"#b5332e"},{pantone:"17-1663",name:"bittersweet",hex:"#d93744"},{pantone:"17-1664",name:"poppy-red",hex:"#dc343b"},{pantone:"18-1660",name:"tomato",hex:"#ce2939"},{pantone:"18-1664",name:"fiery-red",hex:"#d01c1f"},{pantone:"18-1662",name:"flame-scarlet",hex:"#cd212a"},{pantone:"18-1763",name:"high-risk-red",hex:"#c71f2d"},{pantone:"18-1550",name:"aurora-red",hex:"#b93a32"},{pantone:"18-1652",name:"rococco-red",hex:"#bb363f"},{pantone:"18-1661",name:"tomato-puree",hex:"#c53346"},{pantone:"18-1764",name:"lollipop",hex:"#cc1c3b"},{pantone:"18-1761",name:"ski-patrol",hex:"#bb1237"},{pantone:"19-1760",name:"scarlet",hex:"#bc2b3d"},{pantone:"19-1764",name:"lipstick-red",hex:"#b31a38"},{pantone:"19-1762",name:"crimson",hex:"#ae0e36"},{pantone:"19-1763",name:"racing-red",hex:"#bd162c"},{pantone:"18-1655",name:"mars-red",hex:"#bc2731"},{pantone:"19-1761",name:"tango-red",hex:"#ac0e2e"},{pantone:"18-1663",name:"chinese-red",hex:"#be132d"},{pantone:"19-1663",name:"ribbon-red",hex:"#b92636"},{pantone:"19-1664",name:"true-red",hex:"#bf1932"},{pantone:"19-1557",name:"chili-pepper",hex:"#9b1b30"},{pantone:"14-1714",name:"quartz-pink",hex:"#efa6aa"},{pantone:"15-1717",name:"pink-icing",hex:"#eea0a6"},{pantone:"14-1513",name:"blossom",hex:"#f2b2ae"},{pantone:"14-1521",name:"peaches-n-cream",hex:"#f4a6a3"},{pantone:"15-1621",name:"candlelight-peach",hex:"#f8a39d"},{pantone:"16-1720",name:"strawberry-ice",hex:"#e78b90"},{pantone:"16-1626",name:"peach-blossom",hex:"#de8286"},{pantone:"15-1821",name:"flamingo-pink",hex:"#f7969e"},{pantone:"16-1723",name:"confetti",hex:"#e6798e"},{pantone:"17-1928",name:"bubblegum",hex:"#ea738d"},{pantone:"16-1735",name:"pink-lemonade",hex:"#ee6d8a"},{pantone:"17-1930",name:"camellia-rose",hex:"#eb6081"},{pantone:"17-1929",name:"rapture-rose",hex:"#d16277"},{pantone:"17-1927",name:"desert-rose",hex:"#cf6977"},{pantone:"15-1922",name:"geranium-pink",hex:"#f6909d"},{pantone:"15-1624",name:"conch-shell",hex:"#fc8f9b"},{pantone:"15-1626",name:"salmon-rose",hex:"#ff8d94"},{pantone:"16-1731",name:"strawberry-pink",hex:"#f57f8e"},{pantone:"17-1736",name:"sunkist-coral",hex:"#ea6676"},{pantone:"17-1744",name:"calypso-coral",hex:"#ee5c6c"},{pantone:"16-1620",name:"tea-rose",hex:"#dc7178"},{pantone:"17-1753",name:"geranium",hex:"#da3d58"},{pantone:"17-1755",name:"paradise-pink",hex:"#e4445e"},{pantone:"18-1756",name:"teaberry",hex:"#dc3855"},{pantone:"18-1755",name:"rouge-red",hex:"#e24666"},{pantone:"18-1754",name:"raspberry",hex:"#d32e5e"},{pantone:"17-1842",name:"azalea",hex:"#d42e5b"},{pantone:"18-1856",name:"virtual-pink",hex:"#c6174e"},{pantone:"17-1740",name:"claret-red",hex:"#c84c61"},{pantone:"18-1741",name:"raspberry-wine",hex:"#b63753"},{pantone:"18-1852",name:"rose-red",hex:"#c92351"},{pantone:"18-1760",name:"barberry",hex:"#bf1945"},{pantone:"18-1945",name:"bright-rose",hex:"#c51959"},{pantone:"19-1860",name:"persian-red",hex:"#a21441"},{pantone:"19-1955",name:"cerise",hex:"#a41247"},{pantone:"13-2806",name:"pink-lady",hex:"#efc1d6"},{pantone:"14-2710",name:"lilac-sachet",hex:"#e9adca"},{pantone:"14-2311",name:"prism-pink",hex:"#f0a1bf"},{pantone:"15-2215",name:"begonia-pink",hex:"#ec9abe"},{pantone:"15-2718",name:"fuchsia-pink",hex:"#df88b7"},{pantone:"15-2214",name:"rosebloom",hex:"#e290b2"},{pantone:"17-2520",name:"ibis-rose",hex:"#ca628f"},{pantone:"15-2216",name:"sachet-pink",hex:"#f18aad"},{pantone:"16-2120",name:"wild-orchid",hex:"#d979a2"},{pantone:"15-2217",name:"aurora-pink",hex:"#e881a6"},{pantone:"17-2120",name:"chateau-rose",hex:"#d2738f"},{pantone:"15-1920",name:"morning-glory",hex:"#ee819f"},{pantone:"16-2126",name:"azalea-pink",hex:"#e96a97"},{pantone:"17-2127",name:"shocking-pink",hex:"#de5b8c"},{pantone:"17-1937",name:"hot-pink",hex:"#e55982"},{pantone:"17-2033",name:"fandango-pink",hex:"#e04f80"},{pantone:"18-2120",name:"honeysuckle",hex:"#d94f70"},{pantone:"18-2043",name:"raspberry-sorbet",hex:"#d2386c"},{pantone:"17-1831",name:"carmine",hex:"#bc4869"},{pantone:"17-2031",name:"fuchsia-rose",hex:"#c74375"},{pantone:"18-2143",name:"beetroot-purple",hex:"#cf2d71"},{pantone:"16-2124",name:"pink-carnation",hex:"#ed7a9e"},{pantone:"17-2230",name:"carmine-rose",hex:"#e35b8f"},{pantone:"17-2036",name:"magenta",hex:"#d23c77"},{pantone:"18-2133",name:"pink-flambe",hex:"#d3507a"},{pantone:"18-2436",name:"fuchsia-purple",hex:"#d33479"},{pantone:"17-2227",name:"lilac-rose",hex:"#bd4275"},{pantone:"18-2336",name:"very-berry",hex:"#b73275"},{pantone:"17-2625",name:"super-pink",hex:"#ce6ba4"},{pantone:"17-2627",name:"phlox-pink",hex:"#ce5e9a"},{pantone:"18-2333",name:"raspberry-rose",hex:"#cc4385"},{pantone:"17-2624",name:"rose-violet",hex:"#c0428a"},{pantone:"18-2328",name:"fuchsia-red",hex:"#ab3475"},{pantone:"18-2326",name:"cactus-flower",hex:"#a83e6c"},{pantone:"18-2525",name:"magenta-haze",hex:"#9d446e"},{pantone:"11-2511",name:"shrinking-violet",hex:"#f4e1e6"},{pantone:"12-2904",name:"primrose-pink",hex:"#eed4d9"},{pantone:"14-1508",name:"silver-pink",hex:"#dcb1af"},{pantone:"14-1511",name:"powder-pink",hex:"#ecb2b3"},{pantone:"16-1617",name:"mauveglow",hex:"#d18489"},{pantone:"16-1610",name:"brandied-apricot",hex:"#ca848a"},{pantone:"17-1718",name:"dusty-rose",hex:"#ba797d"},{pantone:"12-2102",name:"mauve-morn",hex:"#ecd6d6"},{pantone:"12-2902",name:"mauve-chalk",hex:"#e5d0cf"},{pantone:"12-1304",name:"pearl",hex:"#f9dbd8"},{pantone:"15-1611",name:"bridal-rose",hex:"#d69fa2"},{pantone:"15-1614",name:"blush",hex:"#d1969a"},{pantone:"18-1634",name:"baroque-rose",hex:"#b35a66"},{pantone:"18-1635",name:"slate-rose",hex:"#b45865"},{pantone:"17-1537",name:"mineral-red",hex:"#b35457"},{pantone:"18-1633",name:"garnet-rose",hex:"#ac4b55"},{pantone:"17-1633",name:"holly-berry",hex:"#b44e5d"},{pantone:"19-1759",name:"american-beauty",hex:"#a73340"},{pantone:"19-1862",name:"jester-red",hex:"#9e1030"},{pantone:"19-1656",name:"rio-red",hex:"#8a2232"},{pantone:"19-1940",name:"rumba-red",hex:"#7c2439"},{pantone:"18-1631",name:"earth-red",hex:"#95424e"},{pantone:"19-1840",name:"deep-claret",hex:"#973443"},{pantone:"19-1655",name:"garnet",hex:"#953640"},{pantone:"19-1543",name:"brick-red",hex:"#8c373e"},{pantone:"19-1532",name:"rosewood",hex:"#813639"},{pantone:"19-1934",name:"tibetan-red",hex:"#782a39"},{pantone:"19-1650",name:"biking-red",hex:"#77212e"},{pantone:"18-1426",name:"apple-butter",hex:"#844b4d"},{pantone:"19-1524",name:"oxblood-red",hex:"#70393f"},{pantone:"19-1533",name:"cowhide",hex:"#884344"},{pantone:"19-1530",name:"burnt-russet",hex:"#7e3940"},{pantone:"19-1629",name:"ruby-wine",hex:"#77333b"},{pantone:"19-1726",name:"cordovan",hex:"#702f3b"},{pantone:"19-1725",name:"tawny-port",hex:"#5c2c35"},{pantone:"13-1407",name:"creole-pink",hex:"#f7d5cc"},{pantone:"13-1504",name:"peach-blush",hex:"#e4ccc6"},{pantone:"13-1406",name:"cloud-pink",hex:"#f5d1c8"},{pantone:"12-1212",name:"veiled-rose",hex:"#f8cdc9"},{pantone:"12-1207",name:"pearl-blush",hex:"#f4cec5"},{pantone:"13-1310",name:"english-rose",hex:"#f4c6c3"},{pantone:"14-1905",name:"lotus",hex:"#e2c1c0"},{pantone:"11-1408",name:"rosewater",hex:"#f6dbd8"},{pantone:"14-1309",name:"peach-whip",hex:"#dbbeb7"},{pantone:"14-1506",name:"rose-smoke",hex:"#d3b4ad"},{pantone:"15-1415",name:"coral-cloud",hex:"#e2a9a1"},{pantone:"15-1512",name:"misty-rose",hex:"#caa39a"},{pantone:"15-1516",name:"peach-beige",hex:"#d3a297"},{pantone:"16-1516",name:"cameo-brown",hex:"#c08a80"},{pantone:"13-1409",name:"seashell-pink",hex:"#f7c8c2"},{pantone:"13-1408",name:"chintz-rose",hex:"#eec4be"},{pantone:"13-1510",name:"impatiens-pink",hex:"#ffc4bc"},{pantone:"14-1907",name:"peachskin",hex:"#dfb8b6"},{pantone:"15-1515",name:"mellow-rose",hex:"#d9a6a1"},{pantone:"16-1511",name:"rose-tan",hex:"#d19c97"},{pantone:"16-1518",name:"rosette",hex:"#ce8e8b"},{pantone:"17-1522",name:"mauvewood",hex:"#a75d67"},{pantone:"17-1623",name:"rose-wine",hex:"#a4596d"},{pantone:"17-1723",name:"malaga",hex:"#9f5069"},{pantone:"18-1725",name:"dry-rose",hex:"#8c4759"},{pantone:"18-1718",name:"hawthorn-rose",hex:"#884c5e"},{pantone:"18-1619",name:"maroon",hex:"#834655"},{pantone:"18-1420",name:"wild-ginger",hex:"#7c4c53"},{pantone:"19-2047",name:"sangria",hex:"#982551"},{pantone:"19-1850",name:"red-bud",hex:"#962d49"},{pantone:"18-2027",name:"beaujolais",hex:"#80304c"},{pantone:"19-2033",name:"anemone",hex:"#842c48"},{pantone:"19-2030",name:"beet-red",hex:"#7a1f3d"},{pantone:"19-2025",name:"red-plum",hex:"#7c2946"},{pantone:"19-2024",name:"rhododendron",hex:"#722b3f"},{pantone:"12-2906",name:"barely-pink",hex:"#f8d7dd"},{pantone:"12-1310",name:"blushing-bride",hex:"#fbd3d9"},{pantone:"12-2905",name:"cradle-pink",hex:"#edd0dd"},{pantone:"13-2803",name:"pale-lilac",hex:"#e1c6cc"},{pantone:"13-1904",name:"chalk-pink",hex:"#e6c5ca"},{pantone:"12-2903",name:"light-lilac",hex:"#dec6d3"},{pantone:"14-2305",name:"pink-nectar",hex:"#d8aab7"},{pantone:"12-1305",name:"heavenly-pink",hex:"#f4dede"},{pantone:"13-2004",name:"potpourri",hex:"#e7c9ca"},{pantone:"12-1605",name:"crystal-pink",hex:"#edd0ce"},{pantone:"12-1706",name:"pink-dogwood",hex:"#f7d1d1"},{pantone:"12-1708",name:"crystal-rose",hex:"#fdc3c6"},{pantone:"13-2005",name:"strawberry-cream",hex:"#f4c3c4"},{pantone:"13-1513",name:"gossamer-pink",hex:"#fac8c3"},{pantone:"13-1906",name:"rose-shadow",hex:"#f9c2cd"},{pantone:"13-2010",name:"orchid-pink",hex:"#f3bbca"},{pantone:"13-2006",name:"almond-blossom",hex:"#f5bec7"},{pantone:"14-1909",name:"coral-blush",hex:"#e6b2b8"},{pantone:"14-1911",name:"candy-pink",hex:"#f5b0bd"},{pantone:"15-1816",name:"peony",hex:"#ed9ca8"},{pantone:"15-1912",name:"sea-pink",hex:"#de98ab"},{pantone:"16-2215",name:"cashmere-rose",hex:"#ce879f"},{pantone:"16-1715",name:"wild-rose",hex:"#ce8498"},{pantone:"15-2210",name:"orchid-smoke",hex:"#d294aa"},{pantone:"16-1712",name:"polignac",hex:"#c28799"},{pantone:"16-1708",name:"lilas",hex:"#b88995"},{pantone:"16-2111",name:"mauve-orchid",hex:"#b58299"},{pantone:"16-2107",name:"orchid-haze",hex:"#b0879b"},{pantone:"13-2804",name:"parfait-pink",hex:"#e9c3cf"},{pantone:"13-2805",name:"pink-mist",hex:"#e6bccd"},{pantone:"14-2307",name:"cameo-pink",hex:"#dba9b8"},{pantone:"14-2808",name:"sweet-lilac",hex:"#e8b5ce"},{pantone:"14-3207",name:"pink-lavender",hex:"#d9afca"},{pantone:"14-3209",name:"pastel-lavender",hex:"#d8a1c4"},{pantone:"15-3214",name:"orchid",hex:"#d198c5"},{pantone:"15-2913",name:"lilac-chiffon",hex:"#de9bc4"},{pantone:"16-2614",name:"moonlite-mauve",hex:"#d28fb0"},{pantone:"16-3118",name:"cyclamen",hex:"#d687ba"},{pantone:"16-3116",name:"opera-mauve",hex:"#ca80b1"},{pantone:"16-3115",name:"crocus",hex:"#c67fae"},{pantone:"17-3014",name:"mulberry",hex:"#a76c97"},{pantone:"18-3025",name:"striking-purple",hex:"#94,4e,87"},{pantone:"16-3320",name:"violet",hex:"#c17fb5"},{pantone:"17-3323",name:"iris-orchid",hex:"#a767a2"},{pantone:"18-3224",name:"radiant-orchid",hex:"#ad5e99"},{pantone:"17-3020",name:"spring-crocus",hex:"#ba69a1"},{pantone:"18-3230",name:"meadow-mauve",hex:"#a9568c"},{pantone:"18-3015",name:"amethyst",hex:"#864d75"},{pantone:"19-2428",name:"magenta-purple",hex:"#6b264b"},{pantone:"17-3023",name:"rosebud",hex:"#b65f9a"},{pantone:"18-3027",name:"purple-orchid",hex:"#ad4d8c"},{pantone:"19-2434",name:"festival-fuchsia",hex:"#9e2c6a"},{pantone:"18-2527",name:"baton-rouge",hex:"#973c6c"},{pantone:"19-2431",name:"boysenberry",hex:"#85325c"},{pantone:"19-2432",name:"raspberry-radiance",hex:"#802a50"},{pantone:"19-2430",name:"purple-potion",hex:"#692746"},{pantone:"17-2617",name:"dahlia-mauve",hex:"#a64f82"},{pantone:"18-3339",name:"vivid-viola",hex:"#993c7c"},{pantone:"19-2630",name:"wild-aster",hex:"#92316f"},{pantone:"18-3022",name:"deep-orchid",hex:"#903f75"},{pantone:"18-2320",name:"clover",hex:"#8a3371"},{pantone:"18-2929",name:"purple-wine",hex:"#8c3573"},{pantone:"19-2924",name:"hollyhock",hex:"#823270"},{pantone:"18-3331",name:"hyacinth-violet",hex:"#8d4687"},{pantone:"18-3324",name:"dahlia",hex:"#843e,83"},{pantone:"19-3336",name:"sparkling-grape",hex:"#773376"},{pantone:"19-3138",name:"byzantium",hex:"#853b7b"},{pantone:"19-2820",name:"phlox",hex:"#692d5d"},{pantone:"19-3230",name:"grape-juice",hex:"#682961"},{pantone:"19-3022",name:"gloxinia",hex:"#622e5a"},{pantone:"13-3801",name:"crystal-gray",hex:"#d7cbc4"},{pantone:"14-1305",name:"mushroom",hex:"#bdaca3"},{pantone:"16-1509",name:"shadow-gray",hex:"#bba5a0"},{pantone:"16-1703",name:"sphinx",hex:"#ab9895"},{pantone:"16-1506",name:"bark",hex:"#a99592"},{pantone:"16-1510",name:"fawn",hex:"#ae9490"},{pantone:"16-1508",name:"adobe-rose",hex:"#ba9f99"},{pantone:"15-1607",name:"pale-mauve",hex:"#c6a4a4"},{pantone:"16-1806",name:"woodrose",hex:"#ae8c8e"},{pantone:"16-1707",name:"deauville-mauve",hex:"#af9294"},{pantone:"18-1807",name:"twilight-mauve",hex:"#8b6f70"},{pantone:"18-1612",name:"rose-taupe",hex:"#806062"},{pantone:"18-1512",name:"rose-brown",hex:"#80565b"},{pantone:"18-1616",name:"roan-rouge",hex:"#885157"},{pantone:"17-1510",name:"antler",hex:"#957a76"},{pantone:"18-1409",name:"peppercorn",hex:"#6c5656"},{pantone:"19-1606",name:"raisin",hex:"#524144"},{pantone:"19-1620",name:"huckleberry",hex:"#5b4349"},{pantone:"19-1621",name:"catawba-grape",hex:"#5d3c43"},{pantone:"19-1518",name:"puce",hex:"#503938"},{pantone:"19-1619",name:"fudge",hex:"#493338"},{pantone:"15-1511",name:"mahogany-rose",hex:"#c5a193"},{pantone:"17-1516",name:"burlwood",hex:"#9b716b"},{pantone:"18-1415",name:"marron",hex:"#6e4c4b"},{pantone:"19-1625",name:"decadent-chocolate",hex:"#513235"},{pantone:"19-1521",name:"red-mahogany",hex:"#60373d"},{pantone:"19-1623",name:"vineyard-wine",hex:"#58363d"},{pantone:"19-2118",name:"winetasting",hex:"#492a34"},{pantone:"19-1525",name:"port",hex:"#663336"},{pantone:"19-1526",name:"chocolate-truffle",hex:"#612e,35"},{pantone:"19-1617",name:"burgundy",hex:"#64313e"},{pantone:"19-1522",name:"zinfandel",hex:"#5c2935"},{pantone:"19-1528",name:"windsor-wine",hex:"#582b36"},{pantone:"19-1627",name:"port-royale",hex:"#502b33"},{pantone:"19-1718",name:"fig",hex:"#532d3b"},{pantone:"15-2706",name:"violet-ice",hex:"#c2acb1"},{pantone:"15-1905",name:"burnished-lilac",hex:"#c5aeb1"},{pantone:"15-2705",name:"keepsake-lilac",hex:"#c0a5ae"},{pantone:"16-3205",name:"mauve-shadows",hex:"#b598a3"},{pantone:"15-2205",name:"dawn-pink",hex:"#bfa3af"},{pantone:"14-3204",name:"fragrant-lilac",hex:"#ceadbe"},{pantone:"15-3207",name:"mauve-mist",hex:"#c49bd4"},{pantone:"17-1608",name:"heather-rose",hex:"#ad6d7f"},{pantone:"17-1818",name:"red-violet",hex:"#a35776"},{pantone:"17-1612",name:"mellow-mauve",hex:"#996378"},{pantone:"17-1710",name:"bordeaux",hex:"#96637b"},{pantone:"18-1720",name:"violet-quartz",hex:"#8b4963"},{pantone:"18-1716",name:"damson",hex:"#854c65"},{pantone:"19-2410",name:"amaranth",hex:"#6f3c56"},{pantone:"15-1906",name:"zephyr",hex:"#c89fa5"},{pantone:"17-1610",name:"dusky-orchid",hex:"#9a7182"},{pantone:"18-2109",name:"grape-shake",hex:"#886971"},{pantone:"17-1511",name:"wistful-mauve",hex:"#946c74"},{pantone:"18-1709",name:"tulipwood",hex:"#805466"},{pantone:"18-1710",name:"grape-nectar",hex:"#8d5c74"},{pantone:"18-3011",name:"argyle-purple",hex:"#895c79"},{pantone:"17-1512",name:"nostalgia-rose",hex:"#a4777e"},{pantone:"17-1614",name:"deco-rose",hex:"#985f68"},{pantone:"18-1613",name:"renaissance-rose",hex:"#865560"},{pantone:"18-1614",name:"nocturne",hex:"#7a4b56"},{pantone:"18-1418",name:"crushed-berry",hex:"#804f5a"},{pantone:"19-2312",name:"crushed-violets",hex:"#643a4c"},{pantone:"19-1716",name:"mauve-wine",hex:"#5b3644"},{pantone:"18-1411",name:"plum-wine",hex:"#674550"},{pantone:"19-2311",name:"eggplant",hex:"#613f4c"},{pantone:"19-2014",name:"prune",hex:"#603749"},{pantone:"19-1608",name:"prune-purple",hex:"#5c3a4d"},{pantone:"19-2315",name:"grape-wine",hex:"#5a2f43"},{pantone:"19-2514",name:"italian-plum",hex:"#533146"},{pantone:"19-2520",name:"potent-purple",hex:"#462639"},{pantone:"16-3310",name:"lavender-herb",hex:"#b18eaa"},{pantone:"16-3307",name:"lavender-mist",hex:"#ae90a7"},{pantone:"17-3410",name:"valerian",hex:"#9f7a93"},{pantone:"18-3220",name:"very-grape",hex:"#927288"},{pantone:"18-3211",name:"grapeade",hex:"#85677b"},{pantone:"18-3012",name:"purple-gumdrop",hex:"#7a596f"},{pantone:"18-3013",name:"berry-conserve",hex:"#765269"},{pantone:"18-3418",name:"chinese-violet",hex:"#835e,81"},{pantone:"18-3522",name:"crushed-grape",hex:"#7a547f"},{pantone:"18-3218",name:"concord-grape",hex:"#7c5379"},{pantone:"19-3424",name:"sunset-purple",hex:"#6f456e"},{pantone:"19-3325",name:"wood-violet",hex:"#75406a"},{pantone:"19-3223",name:"purple-passion",hex:"#683d62"},{pantone:"19-2524",name:"dark-purple",hex:"#582147"},{pantone:"18-3415",name:"grape-jam",hex:"#725671"},{pantone:"19-3323",name:"deep-purple",hex:"#50314c"},{pantone:"19-2814",name:"wineberry",hex:"#5a395b"},{pantone:"19-3518",name:"grape-royale",hex:"#4f2d54"},{pantone:"19-3218",name:"plum-purple",hex:"#51304e"},{pantone:"19-2009",name:"hortensia",hex:"#553b50"},{pantone:"19-2816",name:"blackberry-wine",hex:"#4d3246"},{pantone:"19-3714",name:"navy-cosmos",hex:"#503b53"},{pantone:"19-3215",name:"indigo",hex:"#4c3957"},{pantone:"19-3519",name:"purple-pennant",hex:"#432c47"},{pantone:"19-3316",name:"plum-perfect",hex:"#473442"},{pantone:"19-3619",name:"sweet-grape",hex:"#4b3b4f"},{pantone:"19-3217",name:"shadow-purple",hex:"#4e334e"},{pantone:"19-3520",name:"blackberry-cordial",hex:"#3f2a47"},{pantone:"19-3620",name:"purple-reign",hex:"#56456b"},{pantone:"19-3722",name:"mulberry-purple",hex:"#493c62"},{pantone:"19-3720",name:"gothic-grape",hex:"#473951"},{pantone:"19-3728",name:"grape",hex:"#433455"},{pantone:"19-3617",name:"mysterioso",hex:"#46394b"},{pantone:"19-3725",name:"purple-velvet",hex:"#41354d"},{pantone:"19-3712",name:"nightshade",hex:"#433748"},{pantone:"13-3802",name:"orchid-tint",hex:"#dbd2db"},{pantone:"13-3803",name:"lilac-ash",hex:"#d7cdcd"},{pantone:"13-3804",name:"gray-lilac",hex:"#d4cacd"},{pantone:"14-3803",name:"hushed-violet",hex:"#d1c0bf"},{pantone:"15-3802",name:"cloud-gray",hex:"#b7a9ac"},{pantone:"17-1505",name:"quail",hex:"#98868c"},{pantone:"17-3808",name:"nirvana",hex:"#a2919b"},{pantone:"13-3805",name:"orchid-hush",hex:"#cec3d2"},{pantone:"14-3805",name:"iris",hex:"#baafbc"},{pantone:"16-3304",name:"sea-fog",hex:"#a5929d"},{pantone:"17-1605",name:"elderberry",hex:"#9d848e"},{pantone:"18-1706",name:"black-plum",hex:"#6c5765"},{pantone:"18-1405",name:"flint",hex:"#705861"},{pantone:"19-1624",name:"sassafras",hex:"#54353b"},{pantone:"14-3904",name:"evening-haze",hex:"#bdb8c7"},{pantone:"14-3907",name:"thistle",hex:"#b9b3c5"},{pantone:"17-3910",name:"lavender-gray",hex:"#9890a2"},{pantone:"17-3906",name:"minimal-gray",hex:"#948d99"},{pantone:"17-3810",name:"purple-ash",hex:"#8f8395"},{pantone:"18-3710",name:"gray-ridge",hex:"#847986"},{pantone:"18-3712",name:"purple-sage",hex:"#75697e"},{pantone:"16-3812",name:"heirloom-lilac",hex:"#9d96b2"},{pantone:"16-3810",name:"wisteria",hex:"#a198af"},{pantone:"17-3812",name:"dusk",hex:"#897f98"},{pantone:"17-3817",name:"daybreak",hex:"#8981a0"},{pantone:"18-3812",name:"cadet",hex:"#6a6378"},{pantone:"18-3714",name:"mulled-grape",hex:"#675a74"},{pantone:"19-3716",name:"purple-plumeria",hex:"#473854"},{pantone:"14-3903",name:"lilac-marble",hex:"#c3babf"},{pantone:"15-0703",name:"ashes-of-roses",hex:"#b5acab"},{pantone:"16-3803",name:"gull-gray",hex:"#a49ca0"},{pantone:"17-2601",name:"zinc",hex:"#92898a"},{pantone:"17-3802",name:"gull",hex:"#918c8f"},{pantone:"18-1703",name:"shark",hex:"#6d636b"},{pantone:"18-1404",name:"sparrow",hex:"#69595c"},{pantone:"13-3406",name:"orchid-ice",hex:"#e0d0db"},{pantone:"13-3405",name:"lilac-snow",hex:"#e0c7d7"},{pantone:"14-3206",name:"winsome-orchid",hex:"#d4b9cb"},{pantone:"15-3508",name:"fair-orchid",hex:"#c0aac0"},{pantone:"15-3507",name:"lavender-frost",hex:"#bdabbe"},{pantone:"14-3710",name:"orchid-petal",hex:"#bfb4cb"},{pantone:"14-3812",name:"pastel-lilac",hex:"#bdb0d0"},{pantone:"14-3612",name:"orchid-bloom",hex:"#c5aecf"},{pantone:"15-3412",name:"orchid-bouquet",hex:"#d1acce"},{pantone:"16-3521",name:"lupine",hex:"#be9cc1"},{pantone:"16-3416",name:"violet-tulle",hex:"#c193c0"},{pantone:"16-3617",name:"sheer-lilac",hex:"#b793c0"},{pantone:"16-3520",name:"african-violet",hex:"#b085b7"},{pantone:"17-3313",name:"dusty-lavender",hex:"#a1759c"},{pantone:"17-3730",name:"paisley-purple",hex:"#8b79b1"},{pantone:"17-3619",name:"hyacinth",hex:"#936ca7"},{pantone:"17-3628",name:"amethyst-orchid",hex:"#926aa6"},{pantone:"18-3533",name:"dewberry",hex:"#8b5987"},{pantone:"18-3520",name:"purple-heart",hex:"#745587"},{pantone:"19-3526",name:"meadow-violet",hex:"#764f82"},{pantone:"19-3642",name:"royal-purple",hex:"#603f83"},{pantone:"18-3633",name:"deep-lavender",hex:"#775496"},{pantone:"18-3531",name:"royal-lilac",hex:"#774d8e"},{pantone:"19-3542",name:"pansy",hex:"#653d7c"},{pantone:"19-3438",name:"bright-violet",hex:"#784384"},{pantone:"19-3536",name:"amaranth-purple",hex:"#6a397b"},{pantone:"19-3540",name:"purple-magic",hex:"#663271"},{pantone:"19-3220",name:"plum",hex:"#5a315d"},{pantone:"18-3615",name:"imperial-palace",hex:"#604e7a"},{pantone:"18-3518",name:"patrician-purple",hex:"#6c4e79"},{pantone:"19-3622",name:"loganberry",hex:"#5a4769"},{pantone:"19-3514",name:"majesty",hex:"#593761"},{pantone:"19-3528",name:"imperial-purple",hex:"#542c5d"},{pantone:"19-3640",name:"crown-jewel",hex:"#482d54"},{pantone:"19-3731",name:"parachute-purple",hex:"#392852"},{pantone:"13-3820",name:"lavender-fog",hex:"#d2c4d6"},{pantone:"15-3620",name:"lavendula",hex:"#bca4cb"},{pantone:"15-3817",name:"lavender",hex:"#afa4ce"},{pantone:"17-3725",name:"bougainvillea",hex:"#9884b9"},{pantone:"16-3823",name:"violet-tulip",hex:"#9e91c3"},{pantone:"17-3615",name:"chalk-violet",hex:"#8f7da5"},{pantone:"18-3718",name:"purple-haze",hex:"#807396"},{pantone:"16-3110",name:"smoky-grape",hex:"#b88aac"},{pantone:"16-3525",name:"regal-orchid",hex:"#a98baf"},{pantone:"16-3815",name:"viola",hex:"#a692ba"},{pantone:"17-3612",name:"orchid-mist",hex:"#917798"},{pantone:"18-3513",name:"grape-compote",hex:"#6b5876"},{pantone:"18-3715",name:"montana-grape",hex:"#6c5971"},{pantone:"18-3410",name:"vintage-violet",hex:"#634f62"},{pantone:"17-3826",name:"aster-purple",hex:"#7d74a8"},{pantone:"17-3834",name:"dahlia-purple",hex:"#7e6eac"},{pantone:"18-3737",name:"passion-flower",hex:"#6d5698"},{pantone:"18-3838",name:"ultra-violet",hex:"#5f4b8b"},{pantone:"19-3748",name:"prism-violet",hex:"#53357d"},{pantone:"19-3737",name:"heliotrope",hex:"#4f3872"},{pantone:"19-3632",name:"petunia",hex:"#4f3466"},{pantone:"18-3828",name:"corsican-blue",hex:"#646093"},{pantone:"18-3834",name:"veronica",hex:"#6d6695"},{pantone:"18-3943",name:"blue-iris",hex:"#5a5b9f"},{pantone:"18-3840",name:"purple-opulence",hex:"#60569a"},{pantone:"19-3730",name:"gentian-violet",hex:"#544275"},{pantone:"19-3850",name:"liberty",hex:"#4d448a"},{pantone:"19-3847",name:"deep-blue",hex:"#44377d"},{pantone:"18-3930",name:"bleached-denim",hex:"#646f9b"},{pantone:"18-3817",name:"heron",hex:"#62617e"},{pantone:"19-3936",name:"skipper-blue",hex:"#484a72"},{pantone:"19-3832",name:"navy-blue",hex:"#403f6f"},{pantone:"19-3842",name:"deep-wisteria",hex:"#443f6f"},{pantone:"19-3839",name:"blue-ribbon",hex:"#3a395f"},{pantone:"19-3830",name:"astral-aura",hex:"#363151"},{pantone:"13-4105",name:"lilac-hint",hex:"#d0d0da"},{pantone:"15-3807",name:"misty-lilac",hex:"#bcb4c4"},{pantone:"14-3905",name:"lavender-blue",hex:"#c5c0d0"},{pantone:"14-3911",name:"purple-heather",hex:"#bab8d3"},{pantone:"15-3909",name:"cosmic-sky",hex:"#aaaac4"},{pantone:"15-3910",name:"languid-lavender",hex:"#a2a1ba"},{pantone:"16-3907",name:"dapple-gray",hex:"#9c9ba7"},{pantone:"16-3931",name:"sweet-lavender",hex:"#9a9bc1"},{pantone:"16-3925",name:"easter-egg",hex:"#919bc9"},{pantone:"17-3930",name:"jacaranda",hex:"#848dc5"},{pantone:"17-3932",name:"deep-periwinkle",hex:"#7c83bc"},{pantone:"18-3833",name:"dusted-peri",hex:"#696ba0"},{pantone:"18-3944",name:"violet-storm",hex:"#5c619d"},{pantone:"18-3946",name:"baja-blue",hex:"#5f6db0"},{pantone:"16-3930",name:"thistle-down",hex:"#9499bb"},{pantone:"17-3925",name:"persian-violet",hex:"#8c8eb2"},{pantone:"18-3820",name:"twilight-purple",hex:"#66648b"},{pantone:"19-3947",name:"orient-blue",hex:"#47457a"},{pantone:"19-3951",name:"clematis-blue",hex:"#363b7c"},{pantone:"19-3955",name:"royal-blue",hex:"#3d428b"},{pantone:"18-3963",name:"spectrum-blue",hex:"#3d3c7c"},{pantone:"17-3924",name:"lavender-violet",hex:"#767ba5"},{pantone:"17-3922",name:"blue-ice",hex:"#70789b"},{pantone:"18-3927",name:"velvet-morning",hex:"#60688d"},{pantone:"18-3932",name:"marlin",hex:"#515b87"},{pantone:"19-3939",name:"blueprint",hex:"#2d3359"},{pantone:"19-3940",name:"blue-depths",hex:"#263056"},{pantone:"19-3933",name:"medieval-blue",hex:"#29304e"},{pantone:"16-3911",name:"lavender-aura",hex:"#9f99aa"},{pantone:"17-3917",name:"stonewash",hex:"#74809a"},{pantone:"19-3919",name:"nightshadow-blue",hex:"#4e5368"},{pantone:"19-3928",name:"blue-indigo",hex:"#49516d"},{pantone:"19-3915",name:"graystone",hex:"#4d495b"},{pantone:"19-3926",name:"crown-blue",hex:"#464b65"},{pantone:"19-3935",name:"deep-cobalt",hex:"#404466"},{pantone:"13-4110",name:"arctic-ice",hex:"#bfc7d6"},{pantone:"14-4106",name:"gray-dawn",hex:"#bbc1cc"},{pantone:"14-4110",name:"heather",hex:"#b7c0d6"},{pantone:"16-3919",name:"eventide",hex:"#959eb7"},{pantone:"17-4030",name:"silver-lake-blue",hex:"#618bb9"},{pantone:"17-3936",name:"blue-bonnet",hex:"#6384b8"},{pantone:"18-3937",name:"blue-yonder",hex:"#5a77a8"},{pantone:"16-3920",name:"lavender-lustre",hex:"#8c9cc1"},{pantone:"17-3919",name:"purple-impression",hex:"#858fb1"},{pantone:"16-3929",name:"grapemist",hex:"#8398ca"},{pantone:"15-3930",name:"vista-blue",hex:"#81a0d4"},{pantone:"16-4031",name:"cornflower-blue",hex:"#7391c8"},{pantone:"17-3934",name:"persian-jewel",hex:"#6e81be"},{pantone:"18-3935",name:"wedgewood",hex:"#6479b3"},{pantone:"14-4112",name:"skyway",hex:"#adbed3"},{pantone:"14-4115",name:"cashmere-blue",hex:"#a5b8d0"},{pantone:"14-4121",name:"blue-bell",hex:"#93b4d7"},{pantone:"15-3920",name:"placid-blue",hex:"#8cadd3"},{pantone:"16-4020",name:"della-robbia-blue",hex:"#7a9dcb"},{pantone:"16-4032",name:"provence",hex:"#658dc6"},{pantone:"17-4037",name:"ultramarine",hex:"#5b7ebd"},{pantone:"16-4021",name:"allure",hex:"#7291b4"},{pantone:"17-3923",name:"colony-blue",hex:"#65769a"},{pantone:"18-4027",name:"moonlight-blue",hex:"#506886"},{pantone:"18-3928",name:"dutch-blue",hex:"#4a638d"},{pantone:"19-4039",name:"delft",hex:"#3d5e8c"},{pantone:"19-4044",name:"limoges",hex:"#243f6c"},{pantone:"19-4027",name:"estate-blue",hex:"#233658"},{pantone:"17-4015",name:"infinity",hex:"#6e7e99"},{pantone:"18-3921",name:"bijou-blue",hex:"#4e5e7f"},{pantone:"18-3920",name:"coastal-fjord",hex:"#505d7e"},{pantone:"19-4030",name:"true-navy",hex:"#3f5277"},{pantone:"19-4026",name:"ensign-blue",hex:"#384c67"},{pantone:"19-4118",name:"dark-denim",hex:"#35465e"},{pantone:"19-4028",name:"insignia-blue",hex:"#2f3e55"},{pantone:"15-4319",name:"air-blue",hex:"#77acc7"},{pantone:"16-4127",name:"heritage-blue",hex:"#5d96bc"},{pantone:"15-4323",name:"ethereal-blue",hex:"#5ca6ce"},{pantone:"16-4134",name:"bonnie-blue",hex:"#539ccc"},{pantone:"17-4131",name:"cendre-blue",hex:"#3e7fa5"},{pantone:"18-4036",name:"parisian-blue",hex:"#4f7ca4"},{pantone:"18-4232",name:"faience",hex:"#2a6a8b"},{pantone:"15-4225",name:"alaskan-blue",hex:"#6da9d2"},{pantone:"16-4132",name:"little-boy-blue",hex:"#6ea2d5"},{pantone:"17-4139",name:"azure-blue",hex:"#4d91c6"},{pantone:"17-4027",name:"riviera",hex:"#5879a2"},{pantone:"18-4029",name:"federal-blue",hex:"#43628b"},{pantone:"18-4041",name:"star-sapphire",hex:"#386192"},{pantone:"19-4037",name:"bright-cobalt",hex:"#385d8d"},{pantone:"16-4120",name:"dusk-blue",hex:"#7ba0c0"},{pantone:"18-4039",name:"regatta",hex:"#487ab7"},{pantone:"18-4043",name:"palace-blue",hex:"#346cb0"},{pantone:"18-4051",name:"strong-blue",hex:"#1f5da0"},{pantone:"19-4053",name:"turkish-sea",hex:"#195190"},{pantone:"19-4056",name:"olympian-blue",hex:"#1a4c8b"},{pantone:"19-4052",name:"classic-blue",hex:"#0f4c81"},{pantone:"17-4041",name:"marina",hex:"#4f84c4"},{pantone:"18-4141",name:"campanula",hex:"#3272af"},{pantone:"18-4045",name:"daphne",hex:"#0f5f9a"},{pantone:"18-4148",name:"victoria-blue",hex:"#08589d"},{pantone:"19-4049",name:"snorkel-blue",hex:"#034f84"},{pantone:"19-4050",name:"nautical-blue",hex:"#1a5091"},{pantone:"19-4150",name:"princess-blue",hex:"#00539c"},{pantone:"18-3949",name:"dazzling-blue",hex:"#3850a0"},{pantone:"18-3945",name:"amparo-blue",hex:"#4960a8"},{pantone:"19-3950",name:"deep-ultramarine",hex:"#384883"},{pantone:"19-3952",name:"surf-the-web",hex:"#203c7f"},{pantone:"19-3864",name:"mazarine-blue",hex:"#273c76"},{pantone:"19-4057",name:"true-blue",hex:"#1e4477"},{pantone:"19-3938",name:"twilight-blue",hex:"#313d64"},{pantone:"15-3915",name:"kentucky-blue",hex:"#a5b3cc"},{pantone:"15-4020",name:"cerulean",hex:"#9bb7d4"},{pantone:"14-4214",name:"powder-blue",hex:"#96b3d2"},{pantone:"16-4019",name:"forever-blue",hex:"#899bb8"},{pantone:"17-3915",name:"tempest",hex:"#79839b"},{pantone:"17-3918",name:"country-blue",hex:"#717f9b"},{pantone:"17-3920",name:"english-manor",hex:"#7181a4"},{pantone:"13-4103",name:"illusion-blue",hex:"#c9d3dc"},{pantone:"13-4304",name:"ballad-blue",hex:"#c0ceda"},{pantone:"13-4308",name:"baby-blue",hex:"#b5c7d3"},{pantone:"14-4210",name:"celestial-blue",hex:"#a3b4c4"},{pantone:"15-4008",name:"blue-fog",hex:"#9babbb"},{pantone:"18-3916",name:"flint-stone",hex:"#677283"},{pantone:"18-3910",name:"folkstone-gray",hex:"#626879"},{pantone:"14-4206",name:"pearl-blue",hex:"#b0b7be"},{pantone:"17-4405",name:"monument",hex:"#84898c"},{pantone:"19-4220",name:"dark-slate",hex:"#46515a"},{pantone:"19-4110",name:"midnight-navy",hex:"#34414e"},{pantone:"19-4010",name:"total-eclipse",hex:"#2c313d"},{pantone:"19-4015",name:"blue-graphite",hex:"#323137"},{pantone:"19-4013",name:"dark-navy",hex:"#232f36"},{pantone:"13-4404",name:"ice-flow",hex:"#c6d2d2"},{pantone:"15-4305",name:"quarry",hex:"#98a0a5"},{pantone:"17-5102",name:"griffin",hex:"#8d8f8f"},{pantone:"19-3906",name:"dark-shadow",hex:"#4a4b4d"},{pantone:"19-4014",name:"ombre-blue",hex:"#434854"},{pantone:"19-4019",name:"india-ink",hex:"#3c3f4a"},{pantone:"19-4104",name:"ebony",hex:"#41424a"},{pantone:"19-3925",name:"patriot-blue",hex:"#363756"},{pantone:"19-3810",name:"eclipse",hex:"#343148"},{pantone:"19-4025",name:"mood-indigo",hex:"#353a4c"},{pantone:"19-3920",name:"peacoat",hex:"#2b2e43"},{pantone:"19-3921",name:"black-iris",hex:"#2b3042"},{pantone:"19-4024",name:"dress-blues",hex:"#2a3244"},{pantone:"19-4023",name:"blue-nights",hex:"#363b48"},{pantone:"15-4105",name:"angel-falls",hex:"#a3bdd3"},{pantone:"15-4005",name:"dream-blue",hex:"#a0bcd0"},{pantone:"16-4013",name:"ashley-blue",hex:"#8699ab"},{pantone:"16-4010",name:"dusty-blue",hex:"#8c9dad"},{pantone:"19-4227",name:"indian-teal",hex:"#3c586b"},{pantone:"19-4316",name:"stargazer",hex:"#39505c"},{pantone:"19-4229",name:"orion-blue",hex:"#3e4f5c"},{pantone:"15-4312",name:"forget-me-not",hex:"#8fadbd"},{pantone:"17-4021",name:"faded-denim",hex:"#798ea4"},{pantone:"17-4020",name:"blue-shadow",hex:"#66829a"},{pantone:"18-3922",name:"coronet-blue",hex:"#59728e"},{pantone:"18-4020",name:"captains-blue",hex:"#557088"},{pantone:"18-4025",name:"copen-blue",hex:"#516b84"},{pantone:"18-3918",name:"china-blue",hex:"#546477"},{pantone:"17-4320",name:"adriatic-blue",hex:"#5c899b"},{pantone:"18-4220",name:"provincial-blue",hex:"#5c798e"},{pantone:"17-4123",name:"niagara",hex:"#5487a4"},{pantone:"17-4023",name:"blue-heaven",hex:"#5b7e98"},{pantone:"18-4026",name:"stellar",hex:"#46647e"},{pantone:"18-4018",name:"real-teal",hex:"#405d73"},{pantone:"19-4125",name:"majolica-blue",hex:"#274357"},{pantone:"12-4609",name:"starlight-blue",hex:"#b5ced4"},{pantone:"14-4307",name:"winter-sky",hex:"#a9c0cb"},{pantone:"14-4508",name:"stratosphere",hex:"#9ec1cc"},{pantone:"15-4309",name:"sterling-blue",hex:"#a2b9c2"},{pantone:"16-4109",name:"arona",hex:"#879ba3"},{pantone:"17-4111",name:"citadel",hex:"#748995"},{pantone:"18-4215",name:"blue-mirage",hex:"#5c6d7c"},{pantone:"14-4306",name:"cloud-blue",hex:"#a2b6b9"},{pantone:"14-4506",name:"ether",hex:"#9eb6b8"},{pantone:"16-4414",name:"cameo-blue",hex:"#769da6"},{pantone:"16-4114",name:"stone-blue",hex:"#829ca5"},{pantone:"16-4411",name:"tourmaline",hex:"#86a1a9"},{pantone:"17-4412",name:"smoke-blue",hex:"#6d8994"},{pantone:"18-4217",name:"bluestone",hex:"#577284"},{pantone:"14-4313",name:"aquamarine",hex:"#9dc3d4"},{pantone:"14-4318",name:"sky-blue",hex:"#8abad3"},{pantone:"15-4415",name:"milky-blue",hex:"#72a8ba"},{pantone:"15-4421",name:"blue-grotto",hex:"#5cacce"},{pantone:"15-4427",name:"norse-blue",hex:"#4ca5c7"},{pantone:"16-4530",name:"aquarius",hex:"#3cadd4"},{pantone:"16-4525",name:"maui-blue",hex:"#52a2b4"},{pantone:"16-4421",name:"blue-mist",hex:"#5bacc3"},{pantone:"15-4720",name:"river-blue",hex:"#38afcd"},{pantone:"16-4529",name:"cyan-blue",hex:"#14a3c7"},{pantone:"16-4427",name:"horizon-blue",hex:"#289dbe"},{pantone:"17-4328",name:"blue-moon",hex:"#3686a0"},{pantone:"17-4427",name:"bluejay",hex:"#157ea0"},{pantone:"18-4334",name:"mediterranean-blue",hex:"#1478a7"},{pantone:"14-4522",name:"bachelor-button",hex:"#4abbd5"},{pantone:"16-4535",name:"blue-atoll",hex:"#00b1d2"},{pantone:"17-4432",name:"vivid-blue",hex:"#0088b0"},{pantone:"17-4540",name:"hawaiian-ocean",hex:"#008db9"},{pantone:"17-4440",name:"blue-danube",hex:"#0087b6"},{pantone:"18-4535",name:"blue-jewel",hex:"#007baa"},{pantone:"18-4537",name:"methyl-blue",hex:"#0074a8"},{pantone:"17-4435",name:"malibu-blue",hex:"#008cc1"},{pantone:"17-4336",name:"blithe",hex:"#0084bd"},{pantone:"18-4330",name:"swedish-blue",hex:"#007eb1"},{pantone:"17-4433",name:"dresden-blue",hex:"#0086bb"},{pantone:"17-4247",name:"diva-blue",hex:"#007bb2"},{pantone:"18-4252",name:"blue-aster",hex:"#0077b3"},{pantone:"18-4440",name:"cloisonne",hex:"#0075af"},{pantone:"18-4140",name:"french-blue",hex:"#0072b5"},{pantone:"18-4247",name:"brilliant-blue",hex:"#0075b3"},{pantone:"18-4244",name:"directoire-blue",hex:"#0061a3"},{pantone:"19-4151",name:"skydiver",hex:"#00589b"},{pantone:"19-4245",name:"imperial-blue",hex:"#005a92"},{pantone:"18-4032",name:"deep-water",hex:"#266691"},{pantone:"19-4035",name:"dark-blue",hex:"#305679"},{pantone:"12-4607",name:"pastel-blue",hex:"#bcd3d5"},{pantone:"12-4608",name:"clearwater",hex:"#aad5db"},{pantone:"13-4409",name:"blue-glow",hex:"#b2d4dd"},{pantone:"13-4809",name:"plume",hex:"#a5cfd5"},{pantone:"14-4512",name:"porcelain-blue",hex:"#95c0cb"},{pantone:"13-4411",name:"crystal-blue",hex:"#a1c8db"},{pantone:"14-4516",name:"petit-four",hex:"#87c2d4"},{pantone:"12-4805",name:"wan-blue",hex:"#cbdcdf"},{pantone:"12-4610",name:"whispering-blue",hex:"#c9dcdc"},{pantone:"12-4604",name:"skylight",hex:"#c8e0e0"},{pantone:"14-4510",name:"aquatic",hex:"#99c1cc"},{pantone:"15-4712",name:"marine-blue",hex:"#76afb6"},{pantone:"16-4612",name:"reef-waters",hex:"#6f9fa9"},{pantone:"17-4911",name:"arctic",hex:"#648589"},{pantone:"12-4806",name:"chalk-blue",hex:"#ccdad7"},{pantone:"13-4804",name:"pale-blue",hex:"#c4d6d3"},{pantone:"13-4405",name:"misty-blue",hex:"#bfcdcc"},{pantone:"14-4504",name:"sky-gray",hex:"#bcc8c6"},{pantone:"14-4807",name:"surf-spray",hex:"#b4c8c2"},{pantone:"15-4706",name:"gray-mist",hex:"#99aeae"},{pantone:"15-5207",name:"aquifer",hex:"#89acac"},{pantone:"12-5206",name:"blue-glass",hex:"#c6e3e1"},{pantone:"13-5306",name:"icy-morn",hex:"#b0d3d1"},{pantone:"14-4810",name:"canal-blue",hex:"#9cc2c5"},{pantone:"13-5309",name:"pastel-turquoise",hex:"#99c5c4"},{pantone:"15-5209",name:"aqua-haze",hex:"#87b9bc"},{pantone:"15-4715",name:"aqua-sea",hex:"#6baaae"},{pantone:"16-5121",name:"meadowbrook",hex:"#60a0a3"},{pantone:"12-5505",name:"glacier",hex:"#c3dbd4"},{pantone:"12-5409",name:"fair-aqua",hex:"#b8e2dc"},{pantone:"12-5209",name:"soothing-sea",hex:"#c3e9e4"},{pantone:"12-5410",name:"bleached-aqua",hex:"#bce3df"},{pantone:"13-4909",name:"blue-light",hex:"#acdfdd"},{pantone:"13-4910",name:"blue-tint",hex:"#9fd9d7"},{pantone:"14-4811",name:"aqua-sky",hex:"#7bc4c4"},{pantone:"12-5204",name:"morning-mist",hex:"#cfdfdb"},{pantone:"14-4908",name:"harbor-gray",hex:"#a8c0bb"},{pantone:"14-4809",name:"eggshell-blue",hex:"#a3ccc9"},{pantone:"16-5114",name:"dusty-turquoise",hex:"#649b9e"},{pantone:"16-4719",name:"porcelain",hex:"#5d9ca4"},{pantone:"18-5610",name:"brittany-blue",hex:"#4c7e86"},{pantone:"18-4718",name:"hydro",hex:"#426972"},{pantone:"15-4707",name:"blue-haze",hex:"#a5bcbb"},{pantone:"15-5210",name:"nile-blue",hex:"#76a7ab"},{pantone:"16-4712",name:"mineral-blue",hex:"#6d9192"},{pantone:"17-4818",name:"bristol-blue",hex:"#558f91"},{pantone:"17-4919",name:"teal",hex:"#478589"},{pantone:"18-5308",name:"blue-spruce",hex:"#486b67"},{pantone:"18-5612",name:"sagebrush-green",hex:"#567572"},{pantone:"16-5806",name:"green-milieu",hex:"#8a9992"},{pantone:"16-5304",name:"jadeite",hex:"#95a69f"},{pantone:"16-5106",name:"blue-surf",hex:"#90a8a4"},{pantone:"17-5111",name:"oil-blue",hex:"#658c88"},{pantone:"17-5110",name:"trellis",hex:"#6a8988"},{pantone:"18-4612",name:"north-atlantic",hex:"#536d70"},{pantone:"18-5112",name:"sea-pine",hex:"#4c6969"},{pantone:"16-4408",name:"slate",hex:"#8c9fa1"},{pantone:"16-4706",name:"silver-blue",hex:"#8a9a9a"},{pantone:"16-4404",name:"abyss",hex:"#8f9e9d"},{pantone:"17-4408",name:"lead",hex:"#7a898f"},{pantone:"18-4711",name:"stormy-sea",hex:"#6e8082"},{pantone:"18-4510",name:"trooper",hex:"#697a7e"},{pantone:"18-4011",name:"goblin-blue",hex:"#5f7278"},{pantone:"16-5804",name:"slate-gray",hex:"#8a9691"},{pantone:"17-5107",name:"chinois-green",hex:"#7c8c87"},{pantone:"18-5611",name:"dark-forest",hex:"#556962"},{pantone:"18-5606",name:"balsam-green",hex:"#576664"},{pantone:"19-0312",name:"beetle",hex:"#55584c"},{pantone:"19-5004",name:"urban-chic",hex:"#464e4d"},{pantone:"19-5212",name:"darkest-spruce",hex:"#303d3c"},{pantone:"19-4318",name:"mallard-blue",hex:"#3a5c6e"},{pantone:"18-4530",name:"celestial",hex:"#00,6380"},{pantone:"18-4225",name:"saxony-blue",hex:"#1f6680"},{pantone:"19-4340",name:"lyons-blue",hex:"#00,5871"},{pantone:"19-4234",name:"ink-blue",hex:"#0b5369"},{pantone:"19-4329",name:"corsair",hex:"#18576c"},{pantone:"19-4324",name:"legion-blue",hex:"#1f495b"},{pantone:"18-4320",name:"aegean-blue",hex:"#4e6e81"},{pantone:"18-4222",name:"bluesteel",hex:"#35637c"},{pantone:"18-4023",name:"blue-ashes",hex:"#3b5f78"},{pantone:"19-4127",name:"midnight",hex:"#325b74"},{pantone:"18-4231",name:"blue-sapphire",hex:"#09577b"},{pantone:"19-4342",name:"seaport",hex:"#005e7d"},{pantone:"19-4241",name:"moroccan-blue",hex:"#0f4e67"},{pantone:"19-4535",name:"ocean-depths",hex:"#00,6175"},{pantone:"19-4526",name:"blue-coral",hex:"#1b5366"},{pantone:"19-4826",name:"dragonfly",hex:"#2a5c6a"},{pantone:"19-4916",name:"pacific",hex:"#1f595c"},{pantone:"19-4820",name:"balsam",hex:"#33565e"},{pantone:"19-4517",name:"mediterranea",hex:"#32575d"},{pantone:"19-4726",name:"atlantic-deep",hex:"#274e,55"},{pantone:"15-4717",name:"aqua",hex:"#64a1ad"},{pantone:"16-4610",name:"stillwater",hex:"#70a4b0"},{pantone:"16-4519",name:"delphinium-blue",hex:"#6198ae"},{pantone:"17-4421",name:"larkspur",hex:"#3c7d90"},{pantone:"17-4716",name:"storm-blue",hex:"#47788a"},{pantone:"18-4417",name:"tapestry",hex:"#436573"},{pantone:"18-4522",name:"colonial-blue",hex:"#2d6471"},{pantone:"16-4728",name:"peacock-blue",hex:"#00a0b0"},{pantone:"17-4735",name:"capri-breeze",hex:"#00,8799"},{pantone:"17-4728",name:"algiers-blue",hex:"#00859c"},{pantone:"17-4730",name:"caneel-bay",hex:"#00849f"},{pantone:"18-4525",name:"caribbean-sea",hex:"#00819d"},{pantone:"18-4528",name:"mosaic-blue",hex:"#00758f"},{pantone:"18-4432",name:"turkish-tile",hex:"#00698b"},{pantone:"14-4814",name:"angel-blue",hex:"#83c5cd"},{pantone:"14-4816",name:"blue-radiance",hex:"#58c9d4"},{pantone:"15-4722",name:"capri",hex:"#44bbca"},{pantone:"15-4825",name:"blue-curacao",hex:"#32becc"},{pantone:"16-4725",name:"scuba-blue",hex:"#00abc0"},{pantone:"16-4834",name:"bluebird",hex:"#009dae"},{pantone:"18-4733",name:"enamel-blue",hex:"#007a8e"},{pantone:"15-5218",name:"pool-blue",hex:"#67bcb3"},{pantone:"15-5217",name:"blue-turquoise",hex:"#53b0ae"},{pantone:"16-5123",name:"baltic",hex:"#279d9f"},{pantone:"17-4928",name:"lake-blue",hex:"#008c96"},{pantone:"18-4735",name:"tile-blue",hex:"#00,8491"},{pantone:"17-4724",name:"pagoda-blue",hex:"#1a7f8e"},{pantone:"18-4726",name:"biscay-bay",hex:"#0,97988"},{pantone:"13-5313",name:"aruba-blue",hex:"#81d7d3"},{pantone:"16-5127",name:"ceramic",hex:"#00aaa9"},{pantone:"17-5126",name:"viridian-green",hex:"#00,9499"},{pantone:"18-4930",name:"tropical-green",hex:"#00,8786"},{pantone:"17-5025",name:"navigate",hex:"#00,8583"},{pantone:"17-5029",name:"deep-peacock-blue",hex:"#00,8381"},{pantone:"17-5034",name:"lapis",hex:"#00,8684"},{pantone:"15-5519",name:"turquoise",hex:"#45b5aa"},{pantone:"15-5516",name:"waterfall",hex:"#3ab0a2"},{pantone:"16-5418",name:"lagoon",hex:"#4d9e9a"},{pantone:"16-5422",name:"bright-aqua",hex:"#30a299"},{pantone:"17-5421",name:"porcelain-green",hex:"#108780"},{pantone:"18-5128",name:"blue-grass",hex:"#007c7a"},{pantone:"18-4936",name:"fanfare",hex:"#006d70"},{pantone:"15-5425",name:"atlantis",hex:"#00af9f"},{pantone:"16-5425",name:"pool-green",hex:"#00af9d"},{pantone:"17-5330",name:"dynasty-green",hex:"#008e,80"},{pantone:"17-5335",name:"spectra-green",hex:"#009b8c"},{pantone:"17-5130",name:"columbia",hex:"#00,9288"},{pantone:"17-5024",name:"teal-blue",hex:"#007f7c"},{pantone:"18-5020",name:"parasailing",hex:"#00736c"},{pantone:"16-5109",name:"wasabi",hex:"#73a89e"},{pantone:"16-5515",name:"beryl-green",hex:"#619187"},{pantone:"17-5513",name:"deep-sea",hex:"#4f7c74"},{pantone:"17-5722",name:"bottle-green",hex:"#427d6d"},{pantone:"18-5725",name:"galapagos-green",hex:"#29685f"},{pantone:"18-5418",name:"antique-green",hex:"#29675c"},{pantone:"19-5217",name:"storm",hex:"#0,,35453"},{pantone:"16-5721",name:"marine-green",hex:"#40a48e"},{pantone:"16-5421",name:"sea-green",hex:"#149c88"},{pantone:"17-5528",name:"greenlake",hex:"#007d69"},{pantone:"18-5619",name:"tidepool",hex:"#0a6f69"},{pantone:"18-5620",name:"ivy",hex:"#226c63"},{pantone:"18-5424",name:"cadmium-green",hex:"#00675b"},{pantone:"18-5322",name:"alpine-green",hex:"#005f56"},{pantone:"16-5112",name:"canton",hex:"#6da29e"},{pantone:"16-5412",name:"agate-green",hex:"#599f99"},{pantone:"16-5119",name:"sea-blue",hex:"#549f98"},{pantone:"17-5122",name:"latigo-bay",hex:"#379190"},{pantone:"17-5117",name:"green-blue-slate",hex:"#358082"},{pantone:"18-5121",name:"bayou",hex:"#20706f"},{pantone:"18-5115",name:"north-sea",hex:"#316c6b"},{pantone:"18-5618",name:"deep-jungle",hex:"#36716f"},{pantone:"19-5226",name:"everglade",hex:"#005b5d"},{pantone:"19-4922",name:"teal-green",hex:"#00,6361"},{pantone:"18-4728",name:"harbor-blue",hex:"#00656e"},{pantone:"18-4834",name:"deep-lake",hex:"#00656b"},{pantone:"19-4524",name:"shaded-spruce",hex:"#00585e"},{pantone:"19-4914",name:"deep-teal",hex:"#18454b"},{pantone:"18-5410",name:"silver-pine",hex:"#4e6866"},{pantone:"19-4818",name:"mallard-green",hex:"#405e5c"},{pantone:"19-5408",name:"bistro-green",hex:"#395551"},{pantone:"19-5413",name:"jasper",hex:"#335959"},{pantone:"18-5315",name:"bayberry",hex:"#255958"},{pantone:"19-5414",name:"june-bug",hex:"#264a48"},{pantone:"19-5320",name:"ponderosa-pine",hex:"#203b3d"},{pantone:"12-5407",name:"aqua-glass",hex:"#d2e8e0"},{pantone:"12-5406",name:"opal-blue",hex:"#c3ddd6"},{pantone:"12-5506",name:"dusty-aqua",hex:"#c0dccd"},{pantone:"14-5711",name:"ocean-wave",hex:"#8ec5b6"},{pantone:"14-5413",name:"holiday",hex:"#81c3b4"},{pantone:"14-5713",name:"cascade",hex:"#76c1b2"},{pantone:"15-5711",name:"dusty-jade-green",hex:"#7bb5a3"},{pantone:"12-5808",name:"honeydew",hex:"#bae1d3"},{pantone:"13-6009",name:"brook-green",hex:"#afddcc"},{pantone:"13-5714",name:"cabbage",hex:"#87d7be"},{pantone:"14-5714",name:"beveled-glass",hex:"#7accb8"},{pantone:"14-5718",name:"opal",hex:"#77cfb7"},{pantone:"15-5718",name:"biscay-green",hex:"#55c6a9"},{pantone:"15-5819",name:"spearmint",hex:"#64bfa4"},{pantone:"12-5408",name:"moonlight-jade",hex:"#c7e5df"},{pantone:"12-5507",name:"bay",hex:"#bae5d6"},{pantone:"13-5409",name:"yucca",hex:"#a1d7c9"},{pantone:"13-5412",name:"beach-glass",hex:"#96dfce"},{pantone:"13-5414",name:"ice-green",hex:"#87d8c3"},{pantone:"14-5420",name:"cockatoo",hex:"#58c8b6"},{pantone:"15-5416",name:"florida-keys",hex:"#56beab"},{pantone:"14-5416",name:"bermuda",hex:"#60c9b3"},{pantone:"14-5721",name:"electric-green",hex:"#4bc3a8"},{pantone:"15-5421",name:"aqua-green",hex:"#00b89f"},{pantone:"16-5427",name:"billiard",hex:"#00aa92"},{pantone:"16-5533",name:"arcadia",hex:"#00a28a"},{pantone:"17-5430",name:"alhambra",hex:"#00,8778"},{pantone:"17-5633",name:"deep-green",hex:"#00,9276"},{pantone:"15-5728",name:"mint-leaf",hex:"#00b694"},{pantone:"16-5431",name:"peacock-green",hex:"#00a78b"},{pantone:"17-5638",name:"vivid-green",hex:"#009e,82"},{pantone:"17-5641",name:"emerald",hex:"#00,9473"},{pantone:"17-5734",name:"viridis",hex:"#00846b"},{pantone:"18-5624",name:"shady-glade",hex:"#006e5b"},{pantone:"18-5338",name:"ultramarine-green",hex:"#006b54"},{pantone:"14-5706",name:"silt-green",hex:"#a9bdb1"},{pantone:"15-5706",name:"frosty-green",hex:"#a3b5a6"},{pantone:"16-5808",name:"iceberg-green",hex:"#8c9c92"},{pantone:"16-5907",name:"granite-green",hex:"#86a293"},{pantone:"16-5810",name:"green-bay",hex:"#7e9285"},{pantone:"16-5807",name:"lily-pad",hex:"#818f84"},{pantone:"17-6009",name:"laurel-wreath",hex:"#616f65"},{pantone:"16-5820",name:"green-spruce",hex:"#589f7e"},{pantone:"18-6216",name:"comfrey",hex:"#5b7961"},{pantone:"17-5912",name:"dark-ivy",hex:"#5b7763"},{pantone:"18-6018",name:"foliage-green",hex:"#3e6f58"},{pantone:"18-6114",name:"myrtle",hex:"#4f6b58"},{pantone:"18-5616",name:"posy-green",hex:"#325b51"},{pantone:"19-5920",name:"pineneedle",hex:"#334d41"},{pantone:"17-6212",name:"sea-spray",hex:"#717e6f"},{pantone:"18-6011",name:"duck-green",hex:"#53665c"},{pantone:"18-5622",name:"frosty-spruce",hex:"#578270"},{pantone:"18-5621",name:"fir",hex:"#3a725f"},{pantone:"19-5420",name:"evergreen",hex:"#11574a"},{pantone:"19-5511",name:"hunter-green",hex:"#335749"},{pantone:"19-5513",name:"dark-green",hex:"#314f40"},{pantone:"16-5815",name:"feldspar",hex:"#729b8b"},{pantone:"18-5718",name:"smoke-pine",hex:"#3e6257"},{pantone:"19-5411",name:"trekking-green",hex:"#355048"},{pantone:"18-5913",name:"garden-topiary",hex:"#3e524b"},{pantone:"19-5914",name:"jungle-green",hex:"#3c4e47"},{pantone:"19-5917",name:"sycamore",hex:"#35463d"},{pantone:"19-4906",name:"green-gables",hex:"#324241"},{pantone:"17-0613",name:"vetiver",hex:"#807d6f"},{pantone:"18-0312",name:"deep-lichen-green",hex:"#6e6e5c"},{pantone:"19-0309",name:"thyme",hex:"#50574c"},{pantone:"19-0417",name:"kombu-green",hex:"#3a4032"},{pantone:"19-6110",name:"deep-forest",hex:"#37413a"},{pantone:"19-0414",name:"forest-night",hex:"#434237"},{pantone:"19-0509",name:"rosin",hex:"#36362d"},{pantone:"13-6108",name:"celadon",hex:"#b8ccba"},{pantone:"13-5305",name:"pale-aqua",hex:"#c1ccc2"},{pantone:"14-4505",name:"smoke",hex:"#bfc8c3"},{pantone:"13-4305",name:"foggy-dew",hex:"#d1d5d0"},{pantone:"14-4502",name:"mercury",hex:"#bac2ba"},{pantone:"15-5704",name:"mineral-gray",hex:"#b2b6ac"},{pantone:"15-5205",name:"aqua-gray",hex:"#a5b2aa"},{pantone:"12-6206",name:"fairest-jade",hex:"#d8e3d7"},{pantone:"11-0304",name:"water-lily",hex:"#dde3d5"},{pantone:"12-0108",name:"canary-green",hex:"#d6dec9"},{pantone:"13-6006",name:"almost-aqua",hex:"#cad3c1"},{pantone:"13-6106",name:"green-tint",hex:"#c5ccc0"},{pantone:"14-6007",name:"sea-foam",hex:"#b7c2b2"},{pantone:"16-0110",name:"desert-sage",hex:"#a7ae9e"},{pantone:"12-5404",name:"whisper-green",hex:"#e0e6d7"},{pantone:"13-6105",name:"celadon-tint",hex:"#cbcebe"},{pantone:"13-0107",name:"dewkist",hex:"#c4d1c2"},{pantone:"13-6107",name:"green-lily",hex:"#c1cec1"},{pantone:"14-6312",name:"cameo-green",hex:"#aac0ad"},{pantone:"16-6008",name:"seagrass",hex:"#959889"},{pantone:"17-6206",name:"shadow",hex:"#888d82"},{pantone:"12-5504",name:"clearly-aqua",hex:"#cee1d4"},{pantone:"13-6008",name:"misty-jade",hex:"#bcd9c8"},{pantone:"14-6008",name:"subtle-green",hex:"#b5cbbb"},{pantone:"14-5707",name:"aqua-foam",hex:"#adc3b4"},{pantone:"13-5907",name:"gossamer-green",hex:"#b2cfbe"},{pantone:"15-5812",name:"lichen",hex:"#9bc2b1"},{pantone:"14-6011",name:"grayed-jade",hex:"#9bbea9"},{pantone:"12-6205",name:"milky-green",hex:"#cfdbd1"},{pantone:"12-6208",name:"phantom-green",hex:"#dce4d7"},{pantone:"13-6110",name:"mist-green",hex:"#aacebc"},{pantone:"13-5911",name:"birds-egg-green",hex:"#aaccb9"},{pantone:"13-6208",name:"bok-choy",hex:"#bccab3"},{pantone:"15-6315",name:"smoke-green",hex:"#a8bba2"},{pantone:"16-5917",name:"malachite-green",hex:"#709a89"},{pantone:"16-0220",name:"mistletoe",hex:"#8aa282"},{pantone:"16-6216",name:"basil",hex:"#879f84"},{pantone:"16-6318",name:"mineral-green",hex:"#7a9b78"},{pantone:"16-0224",name:"green-eyes",hex:"#7d956d"},{pantone:"17-0119",name:"turf-green",hex:"#6f8c69"},{pantone:"17-0220",name:"watercress",hex:"#748c69"},{pantone:"18-0121",name:"elm-green",hex:"#547053"},{pantone:"17-6323",name:"hedge-green",hex:"#768a75"},{pantone:"17-0210",name:"loden-frost",hex:"#788f74"},{pantone:"16-6116",name:"shale-green",hex:"#739072"},{pantone:"17-6319",name:"kashmir",hex:"#6f8d6a"},{pantone:"17-0123",name:"stone-green",hex:"#658e,67"},{pantone:"18-0110",name:"english-ivy",hex:"#61845b"},{pantone:"17-6219",name:"deep-grass-green",hex:"#558367"},{pantone:"17-0235",name:"piquant-green",hex:"#769358"},{pantone:"17-0230",name:"forest-green",hex:"#6b8d53"},{pantone:"17-0133",name:"fluorite-green",hex:"#699158"},{pantone:"18-0130",name:"cactus",hex:"#53713d"},{pantone:"19-0230",name:"garden-green",hex:"#495e,35"},{pantone:"18-0125",name:"artichoke-green",hex:"#4b6d41"},{pantone:"18-0119",name:"willow-bough",hex:"#59754d"},{pantone:"17-0215",name:"aspen-green",hex:"#7e9b76"},{pantone:"17-6229",name:"medium-green",hex:"#3c824e"},{pantone:"18-6330",name:"juniper",hex:"#3d7245"},{pantone:"18-6320",name:"fairway",hex:"#477050"},{pantone:"18-0117",name:"vineyard-green",hex:"#5f7355"},{pantone:"18-0108",name:"dill",hex:"#6f7755"},{pantone:"19-6311",name:"greener-pastures",hex:"#37503d"},{pantone:"18-0420",name:"four-leaf-clover",hex:"#616652"},{pantone:"18-0317",name:"bronze-green",hex:"#525f48"},{pantone:"19-0323",name:"chive",hex:"#4a5335"},{pantone:"18-0322",name:"cypress",hex:"#545a3e"},{pantone:"19-0315",name:"black-forest",hex:"#414f3c"},{pantone:"19-0419",name:"rifle-green",hex:"#414832"},{pantone:"19-0415",name:"duffel-bag",hex:"#394034"},{pantone:"12-0109",name:"ambrosia",hex:"#d2e7ca"},{pantone:"13-6007",name:"spray",hex:"#bed3bb"},{pantone:"13-0116",name:"pastel-green",hex:"#b4d3b2"},{pantone:"15-6114",name:"hemlock",hex:"#97c1a1"},{pantone:"14-6316",name:"sprucestone",hex:"#9fc09c"},{pantone:"14-6319",name:"meadow",hex:"#8bba94"},{pantone:"16-6324",name:"jadesheen",hex:"#77a276"},{pantone:"13-0117",name:"green-ash",hex:"#a0daa9"},{pantone:"14-0127",name:"greengage",hex:"#8bc28c"},{pantone:"15-6120",name:"ming",hex:"#7cb08a"},{pantone:"14-6327",name:"zephyr-green",hex:"#7cb083"},{pantone:"14-6324",name:"peapod",hex:"#82b185"},{pantone:"15-6322",name:"light-grass-green",hex:"#7cb68e"},{pantone:"14-6329",name:"absinthe-green",hex:"#76b583"},{pantone:"14-6017",name:"neptune-green",hex:"#7fbb9e"},{pantone:"16-5919",name:"creme-de-menthe",hex:"#70a38d"},{pantone:"16-5924",name:"winter-green",hex:"#4f9e81"},{pantone:"16-5825",name:"gumdrop-green",hex:"#2ea785"},{pantone:"16-5932",name:"holly-green",hex:"#0f9d76"},{pantone:"17-5735",name:"parakeet",hex:"#008c69"},{pantone:"18-5642",name:"golf-green",hex:"#00,8763"},{pantone:"14-6330",name:"spring-bud",hex:"#6bcd9c"},{pantone:"16-6030",name:"katydid",hex:"#66bc91"},{pantone:"15-6123",name:"jade-cream",hex:"#60b892"},{pantone:"16-5930",name:"ming-green",hex:"#3aa278"},{pantone:"16-6127",name:"greenbriar",hex:"#4b9b69"},{pantone:"18-6022",name:"leprechaun",hex:"#378661"},{pantone:"17-5923",name:"pine-green",hex:"#3a795e"},{pantone:"16-5942",name:"blarney",hex:"#00a776"},{pantone:"16-5938",name:"mint",hex:"#00a170"},{pantone:"17-5937",name:"deep-mint",hex:"#009e6d"},{pantone:"17-5936",name:"simply-green",hex:"#009b75"},{pantone:"18-5841",name:"pepper-green",hex:"#007d60"},{pantone:"18-5633",name:"bosphorus",hex:"#00,7558"},{pantone:"19-6026",name:"verdant-green",hex:"#12674a"},{pantone:"13-0111",name:"seacrest",hex:"#bfd1b3"},{pantone:"12-0317",name:"gleam",hex:"#bfd1ad"},{pantone:"14-0121",name:"nile-green",hex:"#a7c796"},{pantone:"15-6317",name:"quiet-green",hex:"#9ebc97"},{pantone:"15-6316",name:"fair-green",hex:"#92af88"},{pantone:"15-6423",name:"forest-shade",hex:"#91ac80"},{pantone:"16-0228",name:"jade-green",hex:"#759465"},{pantone:"12-0225",name:"patina-green",hex:"#b9eab3"},{pantone:"13-0221",name:"pistachio-green",hex:"#a9d39e"},{pantone:"14-0123",name:"arcadian-green",hex:"#a3c893"},{pantone:"15-6437",name:"grass-green",hex:"#7bb369"},{pantone:"15-6442",name:"bud-green",hex:"#79b465"},{pantone:"15-6428",name:"green-tea",hex:"#86a96f"},{pantone:"16-0123",name:"tendril",hex:"#89a06b"},{pantone:"13-0220",name:"paradise-green",hex:"#b2e79f"},{pantone:"14-0452",name:"lime-green",hex:"#9fc131"},{pantone:"15-0545",name:"jasmine-green",hex:"#7ec845"},{pantone:"15-0146",name:"green-flash",hex:"#79c753"},{pantone:"16-6340",name:"classic-green",hex:"#39a845"},{pantone:"17-0145",name:"online-lime",hex:"#44883c"},{pantone:"18-0135",name:"treetop",hex:"#476a30"},{pantone:"14-0156",name:"summer-green",hex:"#7ed37f"},{pantone:"14-6340",name:"spring-bouquet",hex:"#6dce87"},{pantone:"16-6240",name:"island-green",hex:"#2bae66"},{pantone:"15-6340",name:"irish-green",hex:"#45be76"},{pantone:"15-6432",name:"shamrock",hex:"#6fa26b"},{pantone:"16-6329",name:"peppermint",hex:"#699e6d"},{pantone:"17-6333",name:"mint-green",hex:"#487d49"},{pantone:"16-6444",name:"poison-green",hex:"#4db560"},{pantone:"16-6339",name:"vibrant-green",hex:"#55a860"},{pantone:"16-6138",name:"kelly-green",hex:"#339c5e"},{pantone:"15-5534",name:"bright-green",hex:"#009b5c"},{pantone:"17-6153",name:"fern-green",hex:"#008c45"},{pantone:"17-6030",name:"jelly-bean",hex:"#00,8658"},{pantone:"18-6024",name:"amazon",hex:"#1f7349"},{pantone:"13-0442",name:"green-glow",hex:"#b0c965"},{pantone:"14-0244",name:"bright-lime-green",hex:"#97bc62"},{pantone:"15-0343",name:"greenery",hex:"#88b04b"},{pantone:"16-0237",name:"foliage",hex:"#75a14f"},{pantone:"17-0336",name:"peridot",hex:"#819548"},{pantone:"16-0233",name:"meadow-green",hex:"#739957"},{pantone:"18-0538",name:"woodbine",hex:"#7b7f32"},{pantone:"14-0232",name:"jade-lime",hex:"#a1ca7b"},{pantone:"15-0336",name:"herbal-garden",hex:"#9cad60"},{pantone:"15-0332",name:"leaf-green",hex:"#9faf6c"},{pantone:"15-0341",name:"parrot-green",hex:"#8db051"},{pantone:"16-0435",name:"dark-citron",hex:"#a0ac4f"},{pantone:"16-0230",name:"macaw-green",hex:"#9bb53e"},{pantone:"16-0235",name:"kiwi",hex:"#7aab55"},{pantone:"13-0535",name:"sharp-green",hex:"#c6ec7a"},{pantone:"12-0435",name:"daiquiri-green",hex:"#c9d77e"},{pantone:"13-0540",name:"wild-lime",hex:"#c3d363"},{pantone:"15-0533",name:"linden-green",hex:"#c4bf71"},{pantone:"14-0445",name:"bright-chartreuse",hex:"#b5bf50"},{pantone:"14-0446",name:"tender-shoots",hex:"#b5cc39"},{pantone:"13-0550",name:"lime-punch",hex:"#c0d725"},{pantone:"12-0741",name:"sunny-lime",hex:"#dfef87"},{pantone:"13-0645",name:"limeade",hex:"#d3d95f"},{pantone:"13-0650",name:"sulphur-spring",hex:"#d5d717"},{pantone:"15-0548",name:"citronelle",hex:"#b8af23"},{pantone:"15-0543",name:"apple-green",hex:"#b5b644"},{pantone:"15-0646",name:"warm-olive",hex:"#c7b63c"},{pantone:"16-0840",name:"antique-moss",hex:"#b9a023"},{pantone:"12-0312",name:"lime-cream",hex:"#d7e8bc"},{pantone:"13-0319",name:"shadow-lime",hex:"#cfe09d"},{pantone:"13-0530",name:"lime-sherbet",hex:"#cdd78a"},{pantone:"13-0324",name:"lettuce-green",hex:"#bed38e"},{pantone:"13-0331",name:"sap-green",hex:"#afcb80"},{pantone:"14-0226",name:"opaline-green",hex:"#a3c57d"},{pantone:"15-0523",name:"winter-pear",hex:"#b0b487"},{pantone:"11-0410",name:"sylvan-green",hex:"#e7eacb"},{pantone:"11-0205",name:"glass-green",hex:"#ecead0"},{pantone:"12-0607",name:"green-essence",hex:"#e9eac8"},{pantone:"11-0609",name:"ethereal-green",hex:"#f1ecca"},{pantone:"13-0614",name:"garden-glade",hex:"#dcd8a8"},{pantone:"12-0418",name:"hay",hex:"#d3cca3"},{pantone:"13-0522",name:"pale-green",hex:"#cbce91"},{pantone:"12-0521",name:"young-wheat",hex:"#e1e3a9"},{pantone:"12-0524",name:"citron",hex:"#dfde9b"},{pantone:"12-0525",name:"luminary-green",hex:"#e3eaa5"},{pantone:"12-0520",name:"pale-lime-yellow",hex:"#dfe69f"},{pantone:"13-0633",name:"chardonnay",hex:"#e7df99"},{pantone:"13-0333",name:"lima-bean",hex:"#e1d590"},{pantone:"12-0530",name:"charlock",hex:"#e5e790"},{pantone:"12-0426",name:"mellow-green",hex:"#d5d593"},{pantone:"14-0627",name:"shadow-green",hex:"#cfc486"},{pantone:"13-0532",name:"celery-green",hex:"#c5cc7b"},{pantone:"14-0434",name:"green-banana",hex:"#babc72"},{pantone:"15-0538",name:"green-oasis",hex:"#b0b454"},{pantone:"15-0628",name:"leek-green",hex:"#b7b17a"},{pantone:"15-0525",name:"weeping-willow",hex:"#b3b17b"},{pantone:"15-0535",name:"palm",hex:"#afaf5e"},{pantone:"16-0639",name:"golden-olive",hex:"#af9841"},{pantone:"16-0540",name:"oasis",hex:"#a3a04e"},{pantone:"16-0532",name:"moss",hex:"#a09d59"},{pantone:"17-0840",name:"amber-green",hex:"#9a803a"},{pantone:"17-0836",name:"ecru-olive",hex:"#927b3c"},{pantone:"17-0636",name:"green-moss",hex:"#857946"},{pantone:"16-0726",name:"khaki",hex:"#a39264"},{pantone:"17-0929",name:"fennel-seed",hex:"#998456"},{pantone:"16-0632",name:"willow",hex:"#9a8b4f"},{pantone:"17-0843",name:"bronze-mist",hex:"#9c7e41"},{pantone:"18-0835",name:"dried-tobacco",hex:"#997b38"},{pantone:"18-0840",name:"tapenade",hex:"#805d24"},{pantone:"18-0832",name:"plantation",hex:"#7a6332"},{pantone:"13-0210",name:"fog-green",hex:"#c2cbb4"},{pantone:"13-0212",name:"tender-greens",hex:"#c5cfb6"},{pantone:"13-0608",name:"aloe-wash",hex:"#d0d3b7"},{pantone:"14-0114",name:"celadon-green",hex:"#b5c1a5"},{pantone:"15-6313",name:"laurel-green",hex:"#adbba1"},{pantone:"15-6310",name:"swamp",hex:"#a8b197"},{pantone:"15-6414",name:"reseda",hex:"#a1ad92"},{pantone:"12-0106",name:"meadow-mist",hex:"#d3dec4"},{pantone:"12-0322",name:"butterfly",hex:"#cadea5"},{pantone:"12-0315",name:"white-jade",hex:"#d4dbb2"},{pantone:"12-0313",name:"seafoam-green",hex:"#cbd5b1"},{pantone:"13-0215",name:"reed",hex:"#c3d3a8"},{pantone:"14-0217",name:"seedling",hex:"#c0cba1"},{pantone:"14-0115",name:"foam-green",hex:"#b4c79c"},{pantone:"13-0317",name:"lily-green",hex:"#c5cf98"},{pantone:"14-0425",name:"beechnut",hex:"#c2c18d"},{pantone:"14-0223",name:"nile",hex:"#b4bb85"},{pantone:"15-0531",name:"sweet-pea",hex:"#a3a969"},{pantone:"16-0439",name:"spinach-green",hex:"#909b4c"},{pantone:"16-0430",name:"fern",hex:"#9aa067"},{pantone:"17-0535",name:"green-olive",hex:"#8d8b55"},{pantone:"17-0324",name:"epsom",hex:"#849161"},{pantone:"18-0332",name:"grasshopper",hex:"#77824a"},{pantone:"17-0330",name:"turtle-green",hex:"#81894e"},{pantone:"18-0324",name:"calliste-green",hex:"#757a4e"},{pantone:"18-0435",name:"calla-green",hex:"#6a6f34"},{pantone:"18-0328",name:"cedar-green",hex:"#5e6737"},{pantone:"18-0228",name:"pesto",hex:"#595f34"},{pantone:"15-0326",name:"tarragon",hex:"#a4ae77"},{pantone:"16-0421",name:"sage",hex:"#91946e"},{pantone:"18-0525",name:"iguana",hex:"#818455"},{pantone:"17-0115",name:"oil-green",hex:"#80856d"},{pantone:"18-0422",name:"loden-green",hex:"#6e7153"},{pantone:"18-0426",name:"capulet-olive",hex:"#656344"},{pantone:"18-0316",name:"olivine",hex:"#666b54"},{pantone:"14-0216",name:"lint",hex:"#b6ba99"},{pantone:"15-0522",name:"pale-olive-green",hex:"#b5ad88"},{pantone:"15-0318",name:"sage-green",hex:"#b2ac88"},{pantone:"16-0518",name:"gray-green",hex:"#a49a79"},{pantone:"16-1118",name:"sponge",hex:"#a49775"},{pantone:"17-0618",name:"mermaid",hex:"#817a65"},{pantone:"17-0517",name:"dusky-green",hex:"#746c57"},{pantone:"16-0213",name:"tea",hex:"#999b85"},{pantone:"17-0510",name:"silver-sage",hex:"#938b78"},{pantone:"16-0713",name:"slate-green",hex:"#a0987c"},{pantone:"16-0613",name:"elm",hex:"#a39f86"},{pantone:"17-0525",name:"mosstone",hex:"#858961"},{pantone:"17-0620",name:"aloe",hex:"#817a60"},{pantone:"18-0622",name:"olive-drab",hex:"#756d47"},{pantone:"16-0526",name:"cedar",hex:"#928e,64"},{pantone:"17-0625",name:"boa",hex:"#8e855f"},{pantone:"17-0627",name:"dried-herb",hex:"#847a59"},{pantone:"18-0527",name:"olive-branch",hex:"#646a45"},{pantone:"18-0629",name:"lizard",hex:"#71643e"},{pantone:"18-0430",name:"avocado",hex:"#676232"},{pantone:"18-0627",name:"fir-green",hex:"#67592a"},{pantone:"14-0418",name:"bog",hex:"#bab696"},{pantone:"17-1019",name:"elmwood",hex:"#8c7c61"},{pantone:"18-0724",name:"gothic-olive",hex:"#7c6e4f"},{pantone:"18-0830",name:"butternut",hex:"#7a643f"},{pantone:"18-0825",name:"nutria",hex:"#75663e"},{pantone:"19-0622",name:"military-olive",hex:"#63563b"},{pantone:"19-0516",name:"dark-olive",hex:"#574d35"},{pantone:"15-6410",name:"moss-gray",hex:"#afab97"},{pantone:"14-6408",name:"abbey-stone",hex:"#aba798"},{pantone:"18-0521",name:"burnt-olive",hex:"#646049"},{pantone:"18-0515",name:"dusty-olive",hex:"#646356"},{pantone:"19-0512",name:"ivy-green",hex:"#585442"},{pantone:"19-0515",name:"olive-night",hex:"#535040"},{pantone:"19-0511",name:"grape-leaf",hex:"#545144"},{pantone:"15-3800",name:"porpoise",hex:"#a7a19e"},{pantone:"16-3800",name:"satellite",hex:"#9f8d89"},{pantone:"18-1210",name:"driftwood",hex:"#847a75"},{pantone:"18-1304",name:"falcon",hex:"#6d625b"},{pantone:"19-0808",name:"morel",hex:"#685c53"},{pantone:"18-1108",name:"fallen-rock",hex:"#807669"},{pantone:"16-0205",name:"vintage-khaki",hex:"#9a9186"},{pantone:"16-1104",name:"crockery",hex:"#a49887"},{pantone:"16-1109",name:"greige",hex:"#928475"},{pantone:"17-1311",name:"desert-taupe",hex:"#8d7e71"},{pantone:"15-1307",name:"white-pepper",hex:"#b6a893"},{pantone:"15-1304",name:"humus",hex:"#b7a793"},{pantone:"17-1316",name:"portabella",hex:"#937b6a"},{pantone:"18-1017",name:"caribou",hex:"#816d5e"},{pantone:"15-1114",name:"travertine",hex:"#ae997d"},{pantone:"16-1120",name:"starfish",hex:"#b09a77"},{pantone:"15-1218",name:"semolina",hex:"#ceb899"},{pantone:"16-0920",name:"curds-and-whey",hex:"#bca483"},{pantone:"17-1038",name:"tigers-eye",hex:"#977c61"},{pantone:"18-1029",name:"toasted-coconut",hex:"#8b6a4f"},{pantone:"19-0916",name:"rain-drum",hex:"#5f4c40"},{pantone:"11-0615",name:"pear-sorbet",hex:"#f3eac3"},{pantone:"12-0718",name:"pineapple-slice",hex:"#e7d391"},{pantone:"12-0758",name:"yarrow",hex:"#face6d"},{pantone:"12-0717",name:"anise-flower",hex:"#f4e3b5"},{pantone:"11-0619",name:"flan",hex:"#f6e3b4"},{pantone:"12-0729",name:"sundress",hex:"#ebcf89"},{pantone:"12-0709",name:"macadamia",hex:"#e4cfb6"},{pantone:"12-0711",name:"lemon-meringue",hex:"#f6e199"},{pantone:"11-0622",name:"yellow-iris",hex:"#eee78e"},{pantone:"12-0737",name:"goldfinch",hex:"#f8dc6c"},{pantone:"13-0756",name:"lemon-zest",hex:"#f9d857"},{pantone:"13-0759",name:"solar-power",hex:"#f4bf3a"},{pantone:"14-0851",name:"samoan-sun",hex:"#fbc85f"},{pantone:"16-1149",name:"desert-sun",hex:"#c87629"},{pantone:"18-1163",name:"pumpkin-spice",hex:"#a05c17"},{pantone:"16-1164",name:"orange-pepper",hex:"#df7500"},{pantone:"17-1140",name:"marmalade",hex:"#c16512"},{pantone:"18-1249",name:"hawaiian-sunset",hex:"#bb5c14"},{pantone:"17-1342",name:"autumnal",hex:"#a15325"},{pantone:"18-1246",name:"umber",hex:"#944a1f"},{pantone:"17-1349",name:"exuberance",hex:"#e86800"},{pantone:"16-1363",name:"puffins-bill",hex:"#e95c20"},{pantone:"18-1148",name:"caramel-cafe",hex:"#864c24"},{pantone:"16-1449",name:"gold-flame",hex:"#b45422"},{pantone:"18-1345",name:"cinnamon-stick",hex:"#9b4722"},{pantone:"18-1340",name:"potters-clay",hex:"#9e4624"},{pantone:"18-1355",name:"rooibos-tea",hex:"#a23c26"},{pantone:"17-1360",name:"celosia-orange",hex:"#e8703a"},{pantone:"17-1461",name:"orangeade",hex:"#e2552c"},{pantone:"17-1449",name:"pureed-pumpkin",hex:"#c34121"},{pantone:"17-1463",name:"tangerine-tango",hex:"#dd4124"},{pantone:"18-1564",name:"poinciana",hex:"#ca3422"},{pantone:"17-1452",name:"koi",hex:"#d15837"},{pantone:"19-1662",name:"samba",hex:"#a2242f"},{pantone:"19-1757",name:"barbados-cherry",hex:"#aa0a27"},{pantone:"19-1758",name:"haute-red",hex:"#a11729"},{pantone:"18-1657",name:"salsa",hex:"#aa182b"},{pantone:"19-1559",name:"scarlet-sage",hex:"#9d202f"},{pantone:"19-1863",name:"scooter",hex:"#941e,32"},{pantone:"19-1555",name:"red-dahlia",hex:"#7d2027"},{pantone:"19-1531",name:"sun-dried-tomato",hex:"#752329"},{pantone:"19-1337",name:"fired-brick",hex:"#6a2e2a"},{pantone:"19-1652",name:"rhubarb",hex:"#77202f"},{pantone:"19-1535",name:"syrah",hex:"#6a282c"},{pantone:"19-1930",name:"pomegranate",hex:"#6c2831"},{pantone:"19-1724",name:"cabernet",hex:"#64242e"},{pantone:"13-2807",name:"ballerina",hex:"#f2cfdc"},{pantone:"13-2802",name:"fairy-tale",hex:"#f2c1d1"},{pantone:"15-1506",name:"etherea",hex:"#a5958f"},{pantone:"16-1710",name:"foxglove",hex:"#b98391"},{pantone:"17-1609",name:"mesa-rose",hex:"#a66e7a"},{pantone:"18-1950",name:"jazzy",hex:"#b61c50"},{pantone:"19-2039",name:"granita",hex:"#a52350"},{pantone:"19-2041",name:"cherries-jubilee",hex:"#a22452"},{pantone:"18-2140",name:"cabaret",hex:"#cb3373"},{pantone:"19-2045",name:"vivacious",hex:"#a32857"},{pantone:"18-3628",name:"bellflower",hex:"#9469a2"},{pantone:"17-3617",name:"english-lavendar",hex:"#9d7bb0"},{pantone:"16-3817",name:"rhapsody",hex:"#9f86aa"},{pantone:"19-3628",name:"acai",hex:"#46295a"},{pantone:"19-3638",name:"tillandsia-purple",hex:"#563474"},{pantone:"18-3635",name:"picasso-lily",hex:"#634878"},{pantone:"18-3620",name:"mystical",hex:"#5f4e72"},{pantone:"15-3908",name:"icelandic-blue",hex:"#a9adc2"},{pantone:"15-3912",name:"aleutian",hex:"#9a9eb3"},{pantone:"17-3933",name:"silver-bullet",hex:"#81839a"},{pantone:"18-3933",name:"blue-granite",hex:"#717388"},{pantone:"19-3815",name:"evening-blue",hex:"#2a293e"},{pantone:"19-3713",name:"deep-well",hex:"#2c2a33"},{pantone:"19-3924",name:"night-sky",hex:"#2a2a35"},{pantone:"16-3921",name:"blue-heron",hex:"#96a3c7"},{pantone:"16-4030",name:"hydrangea",hex:"#849bcc"},{pantone:"14-3949",name:"xenon-blue",hex:"#b7c0d7"},{pantone:"16-3922",name:"brunnera-blue",hex:"#9ba9ca"},{pantone:"19-3922",name:"sky-captain",hex:"#262934"},{pantone:"19-3923",name:"navy-blazer",hex:"#282d3c"},{pantone:"19-4020",name:"dark-sapphire",hex:"#262b37"},{pantone:"13-4111",name:"plein-air",hex:"#bfcad6"},{pantone:"13-3920",name:"halogen-blue",hex:"#bdc6dc"},{pantone:"15-4030",name:"chambray-blue",hex:"#9eb4d3"},{pantone:"15-3932",name:"bel-air-blue",hex:"#819ac1"},{pantone:"19-3929",name:"vintage-indigo",hex:"#4a556b"},{pantone:"19-3953",name:"sodalite-blue",hex:"#253668"},{pantone:"19-4022",name:"parisian-night",hex:"#323441"},{pantone:"19-3964",name:"monaco-blue",hex:"#274374"},{pantone:"18-4034",name:"vallarta-blue",hex:"#30658e"},{pantone:"19-4011",name:"salute",hex:"#282b34"},{pantone:"19-4009",name:"outer-space",hex:"#2f3441"},{pantone:"19-4021",name:"blueberry",hex:"#2c333e"},{pantone:"19-4012",name:"carbon",hex:"#272f38"},{pantone:"19-4218",name:"vulcan",hex:"#2d3036"},{pantone:"13-4200",name:"omphalodes",hex:"#b5cedf"},{pantone:"14-4317",name:"cool-blue",hex:"#a5c5d9"},{pantone:"18-4028",name:"bering-sea",hex:"#4b5b6e"},{pantone:"19-4121",name:"blue-wing-teal",hex:"#2c4053"},{pantone:"19-4033",name:"poseidon",hex:"#123955"},{pantone:"18-4434",name:"mykonos-blue",hex:"#00,5780"},{pantone:"19-4326",name:"reflecting-pond",hex:"#203e4a"},{pantone:"14-4311",name:"corydalis-blue",hex:"#a9cada"},{pantone:"14-4310",name:"blue-topaz",hex:"#78bdd4"},{pantone:"14-4511",name:"gulf-stream",hex:"#88c3d0"},{pantone:"15-4714",name:"aquarelle",hex:"#61aab1"},{pantone:"14-4812",name:"aqua-splash",hex:"#85ced1"},{pantone:"19-5220",name:"botanical-garden",hex:"#12403c"},{pantone:"19-5350",name:"scarab",hex:"#23312d"},{pantone:"13-4108",name:"nimbus-cloud",hex:"#d5d5d8"},{pantone:"14-4105",name:"micro-chip",hex:"#babcc0"},{pantone:"16-5101",name:"wet-weather",hex:"#929090"},{pantone:"17-4014",name:"titanium",hex:"#807d7f"},{pantone:"18-4016",name:"december-sky",hex:"#767275"},{pantone:"19-3900",name:"pavement",hex:"#524d50"},{pantone:"19-3901",name:"magnet",hex:"#4d4b4f"},{pantone:"16-3850",name:"silver-sconce",hex:"#a19fa5"},{pantone:"17-3911",name:"silver-filigree",hex:"#7f7c81"},{pantone:"17-3907",name:"quicksilver",hex:"#7e7d88"},{pantone:"17-1503",name:"storm-front",hex:"#787376"},{pantone:"18-3907",name:"tornado",hex:"#5e5b60"},{pantone:"18-5210",name:"eiffel-tower",hex:"#5c5658"},{pantone:"19-3927",name:"graphite",hex:"#3b3b48"},{pantone:"16-3915",name:"alloy",hex:"#98979a"},{pantone:"16-3916",name:"sleet",hex:"#92949b"},{pantone:"15-4307",name:"tradewinds",hex:"#7f8793"},{pantone:"18-3912",name:"grisaille",hex:"#585e6f"},{pantone:"19-3918",name:"periscope",hex:"#46444c"},{pantone:"18-4006",name:"quiet-shade",hex:"#66676d"},{pantone:"19-4215",name:"turbulence",hex:"#4e545b"},{pantone:"18-4214",name:"stormy-weather",hex:"#58646d"},{pantone:"19-3910",name:"iron-gate",hex:"#4e5055"},{pantone:"19-3907",name:"forged-iron",hex:"#48464a"},{pantone:"19-0201",name:"asphalt",hex:"#434447"},{pantone:"16-4703",name:"ghost-gray",hex:"#9c9b98"},{pantone:"18-5102",name:"brushed-nickel",hex:"#73706f"},{pantone:"16-4400",name:"mourning-dove",hex:"#94908b"},{pantone:"15-4306",name:"belgian-block",hex:"#a3a9a6"},{pantone:"18-5806",name:"agave-green",hex:"#6b7169"},{pantone:"19-5621",name:"cilantro",hex:"#43544b"},{pantone:"19-5406",name:"pine-grove",hex:"#213631"},{pantone:"19-6050",name:"eden",hex:"#264e,36"},{pantone:"18-6030",name:"jolly-green",hex:"#00,7844"},{pantone:"19-5918",name:"mountain-view",hex:"#2e3d30"},{pantone:"14-0116",name:"margarita",hex:"#b5c38e"},{pantone:"18-0523",name:"winter-moss",hex:"#5b5a41"},{pantone:"19-0307",name:"climbing-ivy",hex:"#444940"},{pantone:"19-0840",name:"delicioso",hex:"#3f352f"},{pantone:"19-0910",name:"mulch",hex:"#433937"},{pantone:"19-1106",name:"mole",hex:"#392d2b"},{pantone:"19-1109",name:"chocolate-torte",hex:"#382e2d"},{pantone:"19-1018",name:"ganache",hex:"#34292a"},{pantone:"19-3909",name:"black-bean",hex:"#2e272a"},{pantone:"19-1103",name:"espresso",hex:"#363031"},{pantone:"19-4008",name:"meteorite",hex:"#2b2929"},{pantone:"19-4004",name:"tap-shoe",hex:"#2a2b2d"},{pantone:"11-1001",name:"white-alyssum",hex:"#efebe7"},{pantone:"11-0605",name:"jet-stream",hex:"#ede6de"},{pantone:"11-0106",name:"sweet-cream",hex:"#f0ead6"},{pantone:"11-0110",name:"buttercream",hex:"#efe0cd"},{pantone:"11-0515",name:"lemon-icing",hex:"#f6ebc8"},{pantone:"11-0607",name:"sugar-swizzle",hex:"#f3eee7"},{pantone:"11-0608",name:"coconut-milk",hex:"#f0ede5"},{pantone:"11-0623",name:"yellow-pear",hex:"#ece99b"},{pantone:"11-1302",name:"sea-salt",hex:"#f1e6de"},{pantone:"11-4001",name:"brilliant-white",hex:"#edf1fe"},{pantone:"11-4302",name:"cannoli-cream",hex:"#f0efe2"},{pantone:"11-4801",name:"tofu",hex:"#e8e3d9"},{pantone:"12-0110",name:"pistachio-shell",hex:"#d7cfbb"},{pantone:"12-0646",name:"celandine",hex:"#ebdf67"},{pantone:"12-0742",name:"lemon-verbena",hex:"#f3e779"},{pantone:"12-1110",name:"creme-de-peche",hex:"#f5d6c6"},{pantone:"12-1813",name:"marys-rose",hex:"#f7d1d4"},{pantone:"12-2901",name:"morganite",hex:"#dfcdc6"},{pantone:"12-2907",name:"rose-water",hex:"#f8e0e7"},{pantone:"12-4301",name:"almond-milk",hex:"#d6cebe"},{pantone:"13-0443",name:"lime-popsicle",hex:"#c0db3a"},{pantone:"13-0644",name:"golden-kiwi",hex:"#f3dd3e"},{pantone:"13-0646",name:"meadowlark",hex:"#ead94e"},{pantone:"13-0651",name:"evening-primrose",hex:"#ccdb1e"},{pantone:"13-0849",name:"habanero-gold",hex:"#fed450"},{pantone:"13-0851",name:"minion-yellow",hex:"#fed55d"},{pantone:"13-0919",name:"soybean",hex:"#d2c29d"},{pantone:"13-0946",name:"jurassic-gold",hex:"#e7aa56"},{pantone:"13-1105",name:"brown-rice",hex:"#c7bba4"},{pantone:"13-1125",name:"peach-quartz",hex:"#f5b895"},{pantone:"13-1208",name:"peachy-keen",hex:"#e2bdb3"},{pantone:"13-1308",name:"brazilian-sand",hex:"#dacab7"},{pantone:"13-1511",name:"pink-salt",hex:"#f7cdc7"},{pantone:"13-1520",name:"rose-quartz",hex:"#f7cac9"},{pantone:"13-2808",name:"ballet-slipper",hex:"#ebced5"},{pantone:"13-3207",name:"cherry-blossom",hex:"#f7cee0"},{pantone:"13-4104",name:"antarctica",hex:"#c6c5c6"},{pantone:"13-4201",name:"oyster-mushroom",hex:"#c3c6c8"},{pantone:"13-4720",name:"tanager-turquoise",hex:"#91dce8"},{pantone:"13-4810",name:"limpet-shell",hex:"#98ddde"},{pantone:"13-5410",name:"iced-aqua",hex:"#abd3db"},{pantone:"14-0340",name:"acid-lime",hex:"#badf30"},{pantone:"14-0952",name:"spicy-mustard",hex:"#d8ae47"},{pantone:"14-1052",name:"kumquat",hex:"#fbaa4c"},{pantone:"14-1208",name:"irish-cream",hex:"#c0ac92"},{pantone:"14-1241",name:"orange-chiffon",hex:"#f9aa7d"},{pantone:"14-1315",name:"hazelnut",hex:"#cfb095"},{pantone:"14-1803",name:"sepia-rose",hex:"#d4bab6"},{pantone:"14-3906",name:"raindrops",hex:"#b1aab3"},{pantone:"14-3912",name:"zen-blue",hex:"#9fa9be"},{pantone:"14-4107",name:"quiet-gray",hex:"#b9babd"},{pantone:"14-4122",name:"airy-blue",hex:"#92b6d5"},{pantone:"14-4202",name:"harbor-mist",hex:"#afb1b4"},{pantone:"14-4315",name:"sea-angel",hex:"#98bfca"},{pantone:"14-4320",name:"baltic-sea",hex:"#79b5db"},{pantone:"14-4615",name:"antiqua-sand",hex:"#83c2cd"},{pantone:"14-4620",name:"island-paradise",hex:"#95dee3"},{pantone:"14-4710",name:"tibetan-stone",hex:"#82c2c7"},{pantone:"15-0960",name:"mango-mojito",hex:"#d69c2f"},{pantone:"15-1020",name:"ginger-root",hex:"#bfa58a"},{pantone:"15-1040",name:"iced-coffee",hex:"#b18f6a"},{pantone:"15-1045",name:"autumn-blaze",hex:"#d9922e"},{pantone:"15-1051",name:"golden-orange",hex:"#d7942d"},{pantone:"15-1125",name:"porcini",hex:"#cca580"},{pantone:"15-1151",name:"iceland-poppy",hex:"#f4963a"},{pantone:"15-1243",name:"papaya",hex:"#fea166"},{pantone:"15-1262",name:"carrot-curl",hex:"#fe8c18"},{pantone:"15-1264",name:"turmeric",hex:"#fe840e"},{pantone:"15-1335",name:"tangelo",hex:"#fe7e03"},{pantone:"15-1425",name:"fenugreek",hex:"#c0916c"},{pantone:"15-1429",name:"dusted-clay",hex:"#cc7357"},{pantone:"15-1430",name:"pastry-shell",hex:"#bd8c66"},{pantone:"15-1520",name:"blooming-dahlia",hex:"#eb9687"},{pantone:"15-3520",name:"crocus-petal",hex:"#b99bc5"},{pantone:"15-3716",name:"purple-rose",hex:"#b09fca"},{pantone:"15-3720",name:"lilac-breeze",hex:"#b3a0c9"},{pantone:"15-3919",name:"serenity",hex:"#91a8d0"},{pantone:"15-4428",name:"crystal-seas",hex:"#5dafce"},{pantone:"16-0543",name:"golden-lime",hex:"#9a9738"},{pantone:"16-0545",name:"split-pea",hex:"#9c9a40"},{pantone:"16-0550",name:"lentil-sprout",hex:"#aba44d"},{pantone:"16-1103",name:"pure-cashmere",hex:"#ada396"},{pantone:"16-1345",name:"sun-baked",hex:"#d27f63"},{pantone:"16-1347",name:"peach-caramel",hex:"#c5733d"},{pantone:"16-1348",name:"tomato-cream",hex:"#c57644"},{pantone:"16-1358",name:"orange-tiger",hex:"#f96714"},{pantone:"16-1438",name:"meerkat",hex:"#a46f44"},{pantone:"16-1453",name:"exotic-orange",hex:"#f96531"},{pantone:"16-1460",name:"dragon-fire",hex:"#fc642d"},{pantone:"16-1545",name:"coral-quartz",hex:"#f77464"},{pantone:"16-1548",name:"peach-echo",hex:"#f7786b"},{pantone:"16-1606",name:"purple-dove",hex:"#98878c"},{pantone:"16-3720",name:"sand-verbena",hex:"#9f90c1"},{pantone:"16-3905",name:"lilac-gray",hex:"#9896a4"},{pantone:"16-4033",name:"granada-sky",hex:"#5d81bb"},{pantone:"17-0630",name:"tree-house",hex:"#988c75"},{pantone:"17-0949",name:"chai-tea",hex:"#b1832f"},{pantone:"17-1052",name:"roasted-pecan",hex:"#93592b"},{pantone:"17-1105",name:"roasted-cashew",hex:"#918579"},{pantone:"17-1108",name:"winter-twig",hex:"#948a7a"},{pantone:"17-1115",name:"petrified-oak",hex:"#8d7960"},{pantone:"17-1142",name:"argan-oil",hex:"#8b593e"},{pantone:"17-1145",name:"autumn-maple",hex:"#c46215"},{pantone:"17-1314",name:"sepia-tint",hex:"#897560"},{pantone:"17-1345",name:"spice-route",hex:"#b95b3f"},{pantone:"17-1361",name:"scarlet-ibis",hex:"#f45520"},{pantone:"17-1450",name:"summer-fig",hex:"#be4b3b"},{pantone:"17-1708",name:"moonscape",hex:"#725f69"},{pantone:"17-1926",name:"fruit-dove",hex:"#ce5b78"},{pantone:"17-2034",name:"pink-yarrow",hex:"#ce3175"},{pantone:"17-2411",name:"toadstool",hex:"#988088"},{pantone:"17-3240",name:"bodacious",hex:"#b76ba3"},{pantone:"17-3520",name:"diffused-orchid",hex:"#9879a2"},{pantone:"17-3640",name:"fairy-wren",hex:"#9479af"},{pantone:"17-3735",name:"sunlit-allium",hex:"#9787bb"},{pantone:"17-3914",name:"sharkskin",hex:"#838487"},{pantone:"17-3929",name:"pale-iris",hex:"#8895c5"},{pantone:"17-3940",name:"iolite",hex:"#707bb4"},{pantone:"17-4016",name:"gray-flannel",hex:"#848182"},{pantone:"17-4028",name:"riverside",hex:"#4c6a92"},{pantone:"17-4029",name:"quiet-harbor",hex:"#5a789a"},{pantone:"17-4032",name:"lichen-blue",hex:"#5d89b3"},{pantone:"17-4033",name:"pacific-coast",hex:"#5480ac"},{pantone:"17-4245",name:"ibiza-blue",hex:"#007cb7"},{pantone:"17-4429",name:"navagio-bay",hex:"#3183a0"},{pantone:"17-4530",name:"barrier-reef",hex:"#0084a1"},{pantone:"17-0530",name:"guacamole",hex:"#797b3a"},{pantone:"18-0107",name:"kale",hex:"#5a7247"},{pantone:"18-0220",name:"mayfly",hex:"#65663f"},{pantone:"18-0330",name:"twist-of-lime",hex:"#4e632c"},{pantone:"18-0625",name:"martini-olive",hex:"#716a4d"},{pantone:"18-1028",name:"emperador",hex:"#684832"},{pantone:"18-1049",name:"thai-curry",hex:"#ab6819"},{pantone:"18-1050",name:"honey-ginger",hex:"#a86217"},{pantone:"18-1155",name:"sugar-almond",hex:"#935529"},{pantone:"18-1325",name:"spiced-apple",hex:"#783937"},{pantone:"18-1440",name:"chili-oil",hex:"#8e3c36"},{pantone:"18-1506",name:"plum-truffle",hex:"#675657"},{pantone:"18-1541",name:"brandy-brown",hex:"#73362a"},{pantone:"18-1549",name:"valiant-poppy",hex:"#bc322c"},{pantone:"18-1551",name:"aura-orange",hex:"#b4262a"},{pantone:"18-1653",name:"toreador",hex:"#b61032"},{pantone:"18-1654",name:"lychee",hex:"#ba0b32"},{pantone:"18-1659",name:"goji-berry",hex:"#b91228"},{pantone:"18-1705",name:"arctic-dusk",hex:"#735b6a"},{pantone:"18-1708",name:"ephemera",hex:"#6f5965"},{pantone:"18-1759",name:"jalapeno-red",hex:"#b2103c"},{pantone:"18-1951",name:"love-potion",hex:"#c01352"},{pantone:"18-2045",name:"pink-peacock",hex:"#c62168"},{pantone:"18-3014",name:"grape-kiss",hex:"#7b4368"},{pantone:"18-3120",name:"willowherb",hex:"#8e4483"},{pantone:"18-3340",name:"charisma",hex:"#632a60"},{pantone:"18-3521",name:"plum-jam",hex:"#624076"},{pantone:"18-3530",name:"lavender-crystal",hex:"#936a98"},{pantone:"18-3540",name:"purple-sapphire",hex:"#6f4685"},{pantone:"18-3634",name:"chive-blossom",hex:"#7d5d99"},{pantone:"18-3839",name:"purple-corallite",hex:"#5a4e8f"},{pantone:"18-3908",name:"volcanic-glass",hex:"#615c60"},{pantone:"18-3917",name:"gray-blue",hex:"#4d587a"},{pantone:"18-3929",name:"blue-horizon",hex:"#4e6482"},{pantone:"18-3950",name:"iris-bloom",hex:"#5b609e"},{pantone:"18-4048",name:"nebulas-blue",hex:"#2d62a3"},{pantone:"18-4250",name:"indigo-bunting",hex:"#006ca9"},{pantone:"18-4430",name:"fjord-blue",hex:"#00,7290"},{pantone:"18-4538",name:"hawaiian-surf",hex:"#0078a7"},{pantone:"18-4630",name:"tahitian-tide",hex:"#006b7e"},{pantone:"18-5025",name:"quetzal-green",hex:"#00,6865"},{pantone:"18-5204",name:"granite-gray",hex:"#615e,5f"},{pantone:"18-5845",name:"lush-meadow",hex:"#006e,51"},{pantone:"19-0203",name:"gray-pinstripe",hex:"#49494d"},{pantone:"19-0403",name:"sea-turtle",hex:"#5e5749"},{pantone:"19-0413",name:"deep-depths",hex:"#46483c"},{pantone:"19-0510",name:"kalamata",hex:"#5f5b4c"},{pantone:"19-0823",name:"crocodile",hex:"#5d5348"},{pantone:"19-1110",name:"chocolate-plum",hex:"#3c2d2e"},{pantone:"19-1214",name:"chocolate-lab",hex:"#5c3e35"},{pantone:"19-1215",name:"shaved-chocolate",hex:"#543b35"},{pantone:"19-1224",name:"fondue-fudge",hex:"#5d4236"},{pantone:"19-1233",name:"tiramisu",hex:"#634235"},{pantone:"19-1234",name:"rocky-road",hex:"#5a3e36"},{pantone:"19-1419",name:"chicory-coffee",hex:"#4a342e"},{pantone:"19-1429",name:"smoked-paprika",hex:"#6e362c"},{pantone:"19-1432",name:"chocolate-fondant",hex:"#56352d"},{pantone:"19-1435",name:"cherry-mahogany",hex:"#66352b"},{pantone:"19-1534",name:"merlot",hex:"#72262c"},{pantone:"19-1536",name:"red-pear",hex:"#7b3539"},{pantone:"19-2420",name:"pickled-beet",hex:"#4d233d"},{pantone:"19-2429",name:"plum-caspia",hex:"#61224a"},{pantone:"19-2620",name:"winter-bloom",hex:"#47243b"},{pantone:"19-3425",name:"spiced-plum",hex:"#6d4773"},{pantone:"19-3750",name:"violet-indigo",hex:"#3e285c"},{pantone:"19-3831",name:"maritime-blue",hex:"#27293d"},{pantone:"19-3902",name:"obsidian",hex:"#3a363b"},{pantone:"19-3911",name:"black-beauty",hex:"#26262a"},{pantone:"19-3917",name:"blackened-pearl",hex:"#4d4b50"},{pantone:"19-3930",name:"odyssey-gray",hex:"#434452"},{pantone:"19-4003",name:"black-onyx",hex:"#2b272b"},{pantone:"19-4029",name:"navy-peony",hex:"#223a5e"},{pantone:"19-4031",name:"sargasso-sea",hex:"#35435a"},{pantone:"19-4034",name:"sailor-blue",hex:"#0e3a53"},{pantone:"19-4038",name:"gibraltar-sea",hex:"#123850"},{pantone:"19-4045",name:"lapis-blue",hex:"#004b8d"},{pantone:"19-4048",name:"baleine-blue",hex:"#155187"},{pantone:"19-4055",name:"galaxy-blue",hex:"#2a4b7c"},{pantone:"19-4120",name:"blue-opal",hex:"#0f3b57"},{pantone:"19-4122",name:"moonlit-ocean",hex:"#293b4d"},{pantone:"19-4126",name:"deep-dive",hex:"#29495c"},{pantone:"19-4536",name:"crystal-teal",hex:"#00637c"},{pantone:"19-4540",name:"deep-lagoon",hex:"#00,5265"},{pantone:"19-5030",name:"sea-moss",hex:"#254445"},{pantone:"19-5230",name:"forest-biome",hex:"#184a45"},{pantone:"19-5232",name:"rain-forest",hex:"#15463e"}],get_rgbObject=_e=>{let lt=hexRgb(_e);return{R:lt[0],G:lt[1],B:lt[2]}},pantoneRGBList=pantones.map(_e=>get_rgbObject(_e.hex));var getClosestColor=_e=>{const lt=get_rgbObject(_e),Rt=diff.closest(lt,pantoneRGBList),At=rgbHex(Rt.R,Rt.G,Rt.B),Pt=pantones.findIndex(Lt=>Lt.hex==`#${At}`);return pantones[Pt]};function u$2(){return(u$2=Object.assign||function(_e){for(var lt=1;lt=0||(Pt[Rt]=_e[Rt]);return Pt}function i$5(_e){var lt=reactExports.useRef(_e),Rt=reactExports.useRef(function(At){lt.current&<.current(At)});return lt.current=_e,Rt.current}var s$2=function(_e,lt,Rt){return lt===void 0&&(lt=0),Rt===void 0&&(Rt=1),_e>Rt?Rt:_e0:Qt.buttons>0)&&Pt.current?Dt(d$4(Pt.current,Qt,Bt.current)):Zt(!1)},Kt=function(){return Zt(!1)};function Zt(Qt){var Jt=Nt.current,en=v$2(Pt.current),tn=Qt?en.addEventListener:en.removeEventListener;tn(Jt?"touchmove":"mousemove",Xt),tn(Jt?"touchend":"mouseup",Kt)}return[function(Qt){var Jt=Qt.nativeEvent,en=Pt.current;if(en&&(h$2(Jt),!function(an,cn){return cn&&!f$3(an)}(Jt,Nt.current)&&en)){if(f$3(Jt)){Nt.current=!0;var tn=Jt.changedTouches||[];tn.length&&(Bt.current=tn[0].identifier)}en.focus(),Dt(d$4(en,Jt,Bt.current)),Zt(!0)}},function(Qt){var Jt=Qt.which||Qt.keyCode;Jt<37||Jt>40||(Qt.preventDefault(),Lt({left:Jt===39?.05:Jt===37?-.05:0,top:Jt===40?.05:Jt===38?-.05:0}))},Zt]},[Lt,Dt]),Ut=jt[0],Gt=jt[1],qt=jt[2];return reactExports.useEffect(function(){return qt},[qt]),React.createElement("div",u$2({},At,{onTouchStart:Ut,onMouseDown:Ut,className:"react-colorful__interactive",ref:Pt,onKeyDown:Gt,tabIndex:0,role:"slider"}))}),g$3=function(_e){return _e.filter(Boolean).join(" ")},p$2=function(_e){var lt=_e.color,Rt=_e.left,At=_e.top,Pt=At===void 0?.5:At,Dt=g$3(["react-colorful__pointer",_e.className]);return React.createElement("div",{className:Dt,style:{top:100*Pt+"%",left:100*Rt+"%"}},React.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:lt}}))},b$3=function(_e,lt,Rt){return lt===void 0&&(lt=0),Rt===void 0&&(Rt=Math.pow(10,lt)),Math.round(Rt*_e)/Rt},x$3=function(_e){return L$2(C$2(_e))},C$2=function(_e){return _e[0]==="#"&&(_e=_e.substring(1)),_e.length<6?{r:parseInt(_e[0]+_e[0],16),g:parseInt(_e[1]+_e[1],16),b:parseInt(_e[2]+_e[2],16),a:_e.length===4?b$3(parseInt(_e[3]+_e[3],16)/255,2):1}:{r:parseInt(_e.substring(0,2),16),g:parseInt(_e.substring(2,4),16),b:parseInt(_e.substring(4,6),16),a:_e.length===8?b$3(parseInt(_e.substring(6,8),16)/255,2):1}},w$3=function(_e){return K$2(I$2(_e))},y$3=function(_e){var lt=_e.s,Rt=_e.v,At=_e.a,Pt=(200-lt)*Rt/100;return{h:b$3(_e.h),s:b$3(Pt>0&&Pt<200?lt*Rt/100/(Pt<=100?Pt:200-Pt)*100:0),l:b$3(Pt/2),a:b$3(At,2)}},q$2=function(_e){var lt=y$3(_e);return"hsl("+lt.h+", "+lt.s+"%, "+lt.l+"%)"},I$2=function(_e){var lt=_e.h,Rt=_e.s,At=_e.v,Pt=_e.a;lt=lt/360*6,Rt/=100,At/=100;var Dt=Math.floor(lt),Lt=At*(1-Rt),Bt=At*(1-(lt-Dt)*Rt),Nt=At*(1-(1-lt+Dt)*Rt),jt=Dt%6;return{r:b$3(255*[At,Bt,Lt,Lt,Nt,At][jt]),g:b$3(255*[Nt,At,At,Bt,Lt,Lt][jt]),b:b$3(255*[Lt,Lt,Nt,At,At,Bt][jt]),a:b$3(Pt,2)}},D$2=function(_e){var lt=_e.toString(16);return lt.length<2?"0"+lt:lt},K$2=function(_e){var lt=_e.r,Rt=_e.g,At=_e.b,Pt=_e.a,Dt=Pt<1?D$2(b$3(255*Pt)):"";return"#"+D$2(lt)+D$2(Rt)+D$2(At)+Dt},L$2=function(_e){var lt=_e.r,Rt=_e.g,At=_e.b,Pt=_e.a,Dt=Math.max(lt,Rt,At),Lt=Dt-Math.min(lt,Rt,At),Bt=Lt?Dt===lt?(Rt-At)/Lt:Dt===Rt?2+(At-lt)/Lt:4+(lt-Rt)/Lt:0;return{h:b$3(60*(Bt<0?Bt+6:Bt)),s:b$3(Dt?Lt/Dt*100:0),v:b$3(Dt/255*100),a:Pt}},S$3=React.memo(function(_e){var lt=_e.hue,Rt=_e.onChange,At=g$3(["react-colorful__hue",_e.className]);return React.createElement("div",{className:At},React.createElement(m$3,{onMove:function(Pt){Rt({h:360*Pt.left})},onKey:function(Pt){Rt({h:s$2(lt+360*Pt.left,0,360)})},"aria-label":"Hue","aria-valuenow":b$3(lt),"aria-valuemax":"360","aria-valuemin":"0"},React.createElement(p$2,{className:"react-colorful__hue-pointer",left:lt/360,color:q$2({h:lt,s:100,v:100,a:1})})))}),T$2=React.memo(function(_e){var lt=_e.hsva,Rt=_e.onChange,At={backgroundColor:q$2({h:lt.h,s:100,v:100,a:1})};return React.createElement("div",{className:"react-colorful__saturation",style:At},React.createElement(m$3,{onMove:function(Pt){Rt({s:100*Pt.left,v:100-100*Pt.top})},onKey:function(Pt){Rt({s:s$2(lt.s+100*Pt.left,0,100),v:s$2(lt.v-100*Pt.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b$3(lt.s)+"%, Brightness "+b$3(lt.v)+"%"},React.createElement(p$2,{className:"react-colorful__saturation-pointer",top:1-lt.v/100,left:lt.s/100,color:q$2(lt)})))}),F$2=function(_e,lt){if(_e===lt)return!0;for(var Rt in _e)if(_e[Rt]!==lt[Rt])return!1;return!0},X$2=function(_e,lt){return _e.toLowerCase()===lt.toLowerCase()||F$2(C$2(_e),C$2(lt))};function Y$2(_e,lt,Rt){var At=i$5(Rt),Pt=reactExports.useState(function(){return _e.toHsva(lt)}),Dt=Pt[0],Lt=Pt[1],Bt=reactExports.useRef({color:lt,hsva:Dt});reactExports.useEffect(function(){if(!_e.equal(lt,Bt.current.color)){var jt=_e.toHsva(lt);Bt.current={hsva:jt,color:lt},Lt(jt)}},[lt,_e]),reactExports.useEffect(function(){var jt;F$2(Dt,Bt.current.hsva)||_e.equal(jt=_e.fromHsva(Dt),Bt.current.color)||(Bt.current={hsva:Dt,color:jt},At(jt))},[Dt,_e,At]);var Nt=reactExports.useCallback(function(jt){Lt(function(Ut){return Object.assign({},Ut,jt)})},[]);return[Dt,Nt]}var V$2=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,$$3=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},J$2=new Map,Q$2=function(_e){V$2(function(){var lt=_e.current?_e.current.ownerDocument:document;if(lt!==void 0&&!J$2.has(lt)){var Rt=lt.createElement("style");Rt.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,J$2.set(lt,Rt);var At=$$3();At&&Rt.setAttribute("nonce",At),lt.head.appendChild(Rt)}},[])},U$2=function(_e){var lt=_e.className,Rt=_e.colorModel,At=_e.color,Pt=At===void 0?Rt.defaultColor:At,Dt=_e.onChange,Lt=c$2(_e,["className","colorModel","color","onChange"]),Bt=reactExports.useRef(null);Q$2(Bt);var Nt=Y$2(Rt,Pt,Dt),jt=Nt[0],Ut=Nt[1],Gt=g$3(["react-colorful",lt]);return React.createElement("div",u$2({},Lt,{ref:Bt,className:Gt}),React.createElement(T$2,{hsva:jt,onChange:Ut}),React.createElement(S$3,{hue:jt.h,onChange:Ut,className:"react-colorful__last-control"}))},W$2={defaultColor:"000",toHsva:x$3,fromHsva:function(_e){return w$3({h:_e.h,s:_e.s,v:_e.v,a:1})},equal:X$2},Z$2=function(_e){return React.createElement(U$2,u$2({},_e,{colorModel:W$2}))};const byPoint=({variables:_e},{x:lt,y:Rt})=>(_e==null?void 0:_e.x)===lt&&(_e==null?void 0:_e.y)===Rt,getGridSymbolsUrl=""+new URL("getGridSymbols.worker-412f6f1d.js",import.meta.url).href;class GetGridSymbolsWorker extends Worker{constructor(){super(getGridSymbolsUrl,{type:"module"})}}const getGridSymbolsAsync=usingWorkerTask(GetGridSymbolsWorker),parseGridWorkerUrl=""+new URL("parseGrid.worker-54cbc273.js",import.meta.url).href;class ParseGridWorker extends Worker{constructor(){super(parseGridWorkerUrl,{type:"module"})}}const parseGridAsync=usingMemoizedWorkerTask(ParseGridWorker);function _extends$1(){return _extends$1=Object.assign||function(_e){for(var lt=1;lt{const At=reactExports.useRef(Rt||[]),Dt=At.current===Rt||!At.current.every((Bt,Nt)=>Bt===Rt[Nt]);At.current=Rt;const Lt=lt.map(()=>null);return reactExports.useEffect(Dt?()=>void _e():()=>{},Dt?lt:Lt)};function allSame(_e,lt){return lodashExports$1.zip(_e,lt).every(([Rt,At])=>Rt===At)}const useEffectWhenAsync=(_e,lt=[],Rt=[])=>{const[At,Pt]=reactExports.useState(lt),[Dt,Lt]=reactExports.useState(Rt);return reactExports.useEffect(()=>{allSame(Dt,Rt)||(Pt(lt),Lt(Rt))},[lt,Rt,Dt]),useAsyncAbortable(_e,[...At,...Dt])};function useDebouncedState(_e,lt=lodashExports$1.noop,Rt=300){const[At,Pt]=reactExports.useState(_e);return useEffectWhen(()=>{const Dt=lodashExports$1.delay(()=>{lt(At)},Rt);return()=>clearTimeout(Dt)},[At,lt,Rt],[At]),[At,Pt]}const{floor:floor$2}=Math;function between(_e,lt,Rt){return _e>=lt&&_e({...await parseGridAsync({map:_e,options:lt})}),{normalizer:JSON.stringify});function SymbolColorPicker({onChange:_e,value:lt,autoValue:Rt}){const[At,Pt]=useDebouncedState(lt,_e),Dt=At??Rt;return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Lt=>{var Bt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FeaturePickerButton,{...bindTrigger(Lt),children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",gap:1,alignItems:"center",children:[jsxRuntimeExports.jsx(Box$1,{sx:{width:16,height:16,backgroundColor:Dt,outline:Nt=>`1px solid ${Nt.palette.divider}`,borderRadius:4}}),At?lodashExports$1.startCase(((Bt=getClosestColor(At))==null?void 0:Bt.name)??"Custom"):"Auto"]})}),jsxRuntimeExports.jsxs(Popover$1,{transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},...bindPopover(Lt),slotProps:{paper:{sx:{overflow:"visible"}}},children:[jsxRuntimeExports.jsx(Box$1,{sx:{px:2,py:1},children:jsxRuntimeExports.jsx(FormControlLabel$1,{control:jsxRuntimeExports.jsx(Checkbox$1,{defaultChecked:!At,onChange:(Nt,jt)=>Pt==null?void 0:Pt(jt?void 0:Rt)}),label:"Choose Automatically"})}),jsxRuntimeExports.jsx(Box$1,{sx:{p:2,pt:0,...!At&&{opacity:Nt=>Nt.palette.action.disabledOpacity,pointerEvents:"none"}},children:jsxRuntimeExports.jsx(Z$2,{color:At??Rt,onChange:Pt})})]})]})}})}const editor$3=async _e=>{if(_e){const{symbols:lt}=await getGridSymbolsAsync({map:_e});return withProduce(({produce:Rt,value:At})=>{const{palette:Pt}=useTheme(),Dt=lodashExports$1.flow(interpolate$2([Pt.background.paper,Pt.text.primary]),rgbToHex);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:lodashExports$1.sortBy(lt,"value").map(({symbol:Lt})=>{var Bt,Nt;return jsxRuntimeExports.jsx(Option,{label:`Tile color for "${Lt}"`,content:jsxRuntimeExports.jsx(SymbolColorPicker,{value:(Bt=At==null?void 0:At.symbols)==null?void 0:Bt[Lt],autoValue:Dt(((Nt=lodashExports$1.find(lt,{symbol:Lt}))==null?void 0:Nt.value)??0),onChange:jt=>Rt(Ut=>{lodashExports$1.set(Ut,`symbols["${Lt}"]`,jt)})})},Lt)})})})}else return()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},hydrate$3=_e=>{const{width:lt,height:Rt}=_e.bounds;return{..._e,snap:({x:At,y:Pt},Dt=1)=>{const[Lt,Bt]=[floor$2(At+Dt/2),floor$2(Pt+Dt/2)];if(between(Lt,0,lt)&&between(Bt,0,Rt))return{x:Lt,y:Bt}},nodeAt:At=>{const{x:Pt,y:Dt}=At;return Dt*lt+Pt},pointOf:At=>({x:At%lt,y:~~(At/lt)}),matchNode:byPoint}},grid=Object.freeze(Object.defineProperty({__proto__:null,SymbolColorPicker,editor:editor$3,hydrate:hydrate$3,parse:parse$a},Symbol.toStringTag,{value:"Module"})),parseMeshWorkerUrl=""+new URL("parseMesh.worker-f335403f.js",import.meta.url).href;class ParseMeshWorker extends Worker{constructor(){super(parseMeshWorkerUrl,{type:"module"})}}const parseMeshAsync=usingMemoizedWorkerTask(ParseMeshWorker),parse$9=memo(async(_e="",lt)=>await parseMeshAsync({map:_e,options:lt}),{normalizer:JSON.stringify}),hydrate$2=_e=>({..._e,snap:lodashExports$1.identity,nodeAt:lodashExports$1.constant(0),pointOf:lodashExports$1.constant({x:0,y:0}),matchNode:byPoint}),editor$2=async()=>()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:"No options available."})}),mesh=Object.freeze(Object.defineProperty({__proto__:null,editor:editor$2,hydrate:hydrate$2,parse:parse$9},Symbol.toStringTag,{value:"Module"})),parseNetworkWorkerUrl=""+new URL("parseNetwork.worker-8208763b.js",import.meta.url).href;class ParseNetworkWorker extends Worker{constructor(){super(parseNetworkWorkerUrl,{type:"module"})}}const parseNetworkAsync=usingMemoizedWorkerTask(ParseNetworkWorker),parse$8=memo(async(_e="",lt)=>await parseNetworkAsync({map:_e,options:lt}),{normalizer:JSON.stringify}),hydrate$1=_e=>({..._e,snap:lodashExports$1.identity,nodeAt:lodashExports$1.constant(0),pointOf:lodashExports$1.constant({x:0,y:0}),matchNode:byPoint}),editor$1=async()=>()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:"No options available."})}),xy=Object.freeze(Object.defineProperty({__proto__:null,editor:editor$1,hydrate:hydrate$1,parse:parse$8},Symbol.toStringTag,{value:"Module"})),parsePolyWorkerUrl=""+new URL("parsePoly.worker-47ff7d18.js",import.meta.url).href;class ParsePolyWorker extends Worker{constructor(){super(parsePolyWorkerUrl,{type:"module"})}}const parsePolyAsync=usingMemoizedWorkerTask(ParsePolyWorker),parse$7=memo(async(_e="",lt)=>await parsePolyAsync({map:_e,options:lt}),{normalizer:JSON.stringify}),hydrate=_e=>({..._e,snap:lodashExports$1.identity,nodeAt:lodashExports$1.constant(0),pointOf:lodashExports$1.constant({x:0,y:0}),matchNode:byPoint}),editor=async()=>()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:"No options available."})}),poly=Object.freeze(Object.defineProperty({__proto__:null,editor,hydrate,parse:parse$7},Symbol.toStringTag,{value:"Module"})),mapParsers={grid,map:grid,xy,mesh,poly};function getParser(_e=""){return mapParsers[_e]}const defaultGuard=lodashExports$1.constant(!0),[useLayers,LayersProvider]=createSlice({layers:[]});function useLayer(_e,lt=defaultGuard){const[Rt,At]=reactExports.useState(_e),[{layers:Pt},Dt]=useLayers(),Lt=lodashExports$1.filter(Pt,lt),Bt=Rt?lodashExports$1.find(Lt,{key:Rt})??lodashExports$1.head(Lt):lodashExports$1.head(Lt);return reactExports.useEffect(()=>{At(_e)},[_e]),reactExports.useEffect(()=>{Bt&&Bt.key!==Rt&&At(Bt.key)},[Bt,Rt,At]),reactExports.useMemo(()=>({key:Bt==null?void 0:Bt.key,setKey:At,layer:Bt,setLayer:Nt=>{const jt={...Bt,...Nt};Dt(({layers:Ut})=>({layers:lodashExports$1.map(Ut,Gt=>Gt.key===jt.key?jt:Gt)}))},layers:Lt,allLayers:Pt}),[Pt,Bt,Dt,Lt])}const fn=memo((_e,lt)=>new Function("params",`${_e}; return ${lt}.apply(null, params);`));function call$1(_e,lt,Rt){try{return fn(_e,lt)(Rt)}catch{return templates[lt].defaultReturnValue}}const treeWorkerUrl=""+new URL("tree.worker-a5e2610c.js",import.meta.url).href;class TreeWorkerUrl extends Worker{constructor(){super(treeWorkerUrl,{type:"module"})}}const treeAsync=usingMemoizedWorkerTask(TreeWorkerUrl);function useTree(_e){return useAsync(async()=>await treeAsync(_e),[_e])}function useTreeMemo(_e,lt){const Rt=reactExports.useMemo(()=>_e,lt);return useTree(Rt)}function useBreakpoints(_e){var jt;const{layer:lt}=useLayer(_e),{monotonicF:Rt,monotonicG:At,breakpoints:Pt,code:Dt,trace:Lt}=(lt==null?void 0:lt.source)??{},Bt=Lt==null?void 0:Lt.content,{result:Nt}=useTreeMemo({trace:Bt,step:(jt=Bt==null?void 0:Bt.events)==null?void 0:jt.length,radius:void 0},[Bt]);return reactExports.useMemo(()=>{const Ut=(Bt==null?void 0:Bt.events)??[],Gt=treeToDict((Nt==null?void 0:Nt.tree)??[]);return memo(qt=>{var Kt,Zt;const Xt=Ut[qt];if(Xt)try{for(const{active:Qt,condition:Jt,type:en,property:tn="",reference:an=0}of Pt??[]){const cn=!en||en===Xt.type;if(Qt&&cn&&(()=>{var rn;return(rn=Jt==null?void 0:Jt.apply)==null?void 0:rn.call(Jt,{type:en,event:Xt,property:tn,value:lodashExports$1.get(Xt,tn),reference:an,step:qt,events:Ut,node:Gt[qt]})})())return Jt!=null&&Jt.needsReference?{result:`${tn} ${lodashExports$1.toLower(lodashExports$1.startCase(Jt==null?void 0:Jt.key))} ${an}`}:{result:`${tn} ${lodashExports$1.toLower(lodashExports$1.startCase(Jt==null?void 0:Jt.key))}`}}if(call$1(Dt??"","shouldBreak",[qt,Xt,Ut,(Kt=Gt[qt])==null?void 0:Kt.parent,(Zt=Gt[qt])==null?void 0:Zt.children]))return{result:"Script editor"}}catch(Qt){return{error:`${Qt}`}}return{result:""}})},[Dt,Bt,Pt,Rt,At,Nt])}function treeToDict(_e=[],lt={}){for(const Rt of _e){for(const At of Rt.events)lt[At.step]=Rt;treeToDict(Rt.children,lt)}return lt}function cancellable(_e,lt){let Rt=!1;return requestAnimationFrame(async()=>{const At=await _e();Rt||lt(At)}),()=>{Rt=!0}}function usePlaybackState(_e){const{layer:lt,setLayer:Rt,setKey:At}=useLayer(_e),Pt=useSnackbar(),Dt=useBreakpoints(_e);reactExports.useEffect(()=>{_e&&At(_e)},[_e]);const{playback:Lt,playbackTo:Bt,step:Nt=0}=(lt==null?void 0:lt.source)??{},jt=lodashExports$1.min([Bt,Nt])??0,Ut=!!Bt,Gt=Lt==="playing",[qt,Xt]=[0,(Bt??1)-1];return reactExports.useMemo(()=>{function Kt(cn){Rt(produce(lt,un=>lodashExports$1.set(un,"source",{...un==null?void 0:un.source,...cn})))}const Zt={start:qt,end:Xt,step:jt,canPlay:Ut&&!Gt&&jt0},Qt=(cn=0)=>{Kt({playback:"paused",step:tn(cn)})},Jt=(cn=1)=>Kt({playback:"playing",step:tn(cn)}),en=(cn,un=0)=>cancellable(async()=>{for(const rn of lodashExports$1.range(un,cn)){const sn=Dt(jt+rn);if(sn.result||sn.error)return{...sn,offset:rn}}return{result:"",offset:0,error:void 0}},({result:rn,offset:sn,error:pn})=>{pn?(Pt(`${lodashExports$1.trimEnd(pn,".")}`,`Step ${jt+sn}`),Qt()):rn?(Pt(`Breakpoint hit: ${rn}`,`Step ${jt+sn}`),Qt(sn)):Jt(cn)}),tn=cn=>lodashExports$1.clamp(jt+cn,qt,Xt);return{playing:Lt==="playing",...Zt,...{play:()=>{Kt({playback:"playing",step:tn(1)})},pause:Qt,stepTo:(cn=0)=>Kt({step:cn}),stop:()=>Kt({step:qt,playback:"paused"}),stepForward:()=>Kt({step:tn(1)}),stepBackward:()=>Kt({step:tn(-1)}),tick:Jt,stepWithBreakpointCheck:en}}},[Xt,Lt,Gt,Ut,qt,jt,Rt])}function RenderLayer({layer:_e,index:lt}){var Rt,At;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e&&reactExports.createElement((At=layerHandlers[((Rt=_e==null?void 0:_e.source)==null?void 0:Rt.type)??""])==null?void 0:At.renderer,{layer:_e,index:lt})})}const[useRenderers,RendererProvider]=createSlice([],{reduce:replace$1}),removeUndefinedValues=_e=>lodashExports$1.omit(_e,lodashExports$1.filter(lodashExports$1.keys(_e),lt=>lodashExports$1.isUndefined(_e[lt]))),[useScreenshots,ScreenshotsProvider]=createSlice({},{reduce:lodashExports$1.flow(merge$3,removeUndefinedValues)});function Placeholder$2({label:_e,icon:lt=jsxRuntimeExports.jsx(WidgetsOutlined,{}),...Rt}){return jsxRuntimeExports.jsxs(Flex,{justifyContent:"center",alignItems:"center",color:"text.secondary",bgcolor:"background.paper",textAlign:"center",vertical:!0,pt:6,...Rt,children:[reactExports.cloneElement(lt,{sx:{mb:2},fontSize:"large"}),jsxRuntimeExports.jsx(Typography$1,{children:_e})]})}const tint="500";function hex$1(_e){return parseInt(_e.replace("#","0x"))}const colorsHex={source:green$1.A400,destination:red$1.A400,updating:orange$1[tint],expanding:deepPurple$1[tint],generating:yellow$1[tint],closing:pink$1[tint],end:blue$1.A400};lodashExports$1.mapValues(colorsHex,hex$1);function getColorHex(_e){return(_e&&colorsHex[_e])??grey$1[tint]}function count$2(_e){var lt=0,Rt=_e.children,At=Rt&&Rt.length;if(!At)lt=1;else for(;--At>=0;)lt+=Rt[At].value;_e.value=lt}function node_count(){return this.eachAfter(count$2)}function node_each(_e){var lt=this,Rt,At=[lt],Pt,Dt,Lt;do for(Rt=At.reverse(),At=[];lt=Rt.pop();)if(_e(lt),Pt=lt.children,Pt)for(Dt=0,Lt=Pt.length;Dt=0;--Pt)Rt.push(At[Pt]);return this}function node_eachAfter(_e){for(var lt=this,Rt=[lt],At=[],Pt,Dt,Lt;lt=Rt.pop();)if(At.push(lt),Pt=lt.children,Pt)for(Dt=0,Lt=Pt.length;Dt=0;)Rt+=At[Pt].value;lt.value=Rt})}function node_sort(_e){return this.eachBefore(function(lt){lt.children&<.children.sort(_e)})}function node_path(_e){for(var lt=this,Rt=leastCommonAncestor(lt,_e),At=[lt];lt!==Rt;)lt=lt.parent,At.push(lt);for(var Pt=At.length;_e!==Rt;)At.splice(Pt,0,_e),_e=_e.parent;return At}function leastCommonAncestor(_e,lt){if(_e===lt)return _e;var Rt=_e.ancestors(),At=lt.ancestors(),Pt=null;for(_e=Rt.pop(),lt=At.pop();_e===lt;)Pt=_e,_e=Rt.pop(),lt=At.pop();return Pt}function node_ancestors(){for(var _e=this,lt=[_e];_e=_e.parent;)lt.push(_e);return lt}function node_descendants(){var _e=[];return this.each(function(lt){_e.push(lt)}),_e}function node_leaves(){var _e=[];return this.eachBefore(function(lt){lt.children||_e.push(lt)}),_e}function node_links(){var _e=this,lt=[];return _e.each(function(Rt){Rt!==_e&<.push({source:Rt.parent,target:Rt})}),lt}function hierarchy(_e,lt){var Rt=new Node$6(_e),At=+_e.value&&(Rt.value=_e.value),Pt,Dt=[Rt],Lt,Bt,Nt,jt;for(lt==null&&(lt=defaultChildren);Pt=Dt.pop();)if(At&&(Pt.value=+Pt.data.value),(Bt=lt(Pt.data))&&(jt=Bt.length))for(Pt.children=new Array(jt),Nt=jt-1;Nt>=0;--Nt)Dt.push(Lt=Pt.children[Nt]=new Node$6(Bt[Nt])),Lt.parent=Pt,Lt.depth=Pt.depth+1;return Rt.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function defaultChildren(_e){return _e.children}function copyData(_e){_e.data=_e.data.data}function computeHeight(_e){var lt=0;do _e.height=lt;while((_e=_e.parent)&&_e.height<++lt)}function Node$6(_e){this.data=_e,this.depth=this.height=0,this.parent=null}Node$6.prototype=hierarchy.prototype={constructor:Node$6,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy};function defaultSeparation(_e,lt){return _e.parent===lt.parent?1:2}function nextLeft(_e){var lt=_e.children;return lt?lt[0]:_e.t}function nextRight(_e){var lt=_e.children;return lt?lt[lt.length-1]:_e.t}function moveSubtree(_e,lt,Rt){var At=Rt/(lt.i-_e.i);lt.c-=At,lt.s+=Rt,_e.c+=At,lt.z+=Rt,lt.m+=Rt}function executeShifts(_e){for(var lt=0,Rt=0,At=_e.children,Pt=At.length,Dt;--Pt>=0;)Dt=At[Pt],Dt.z+=lt,Dt.m+=lt,lt+=Dt.s+(Rt+=Dt.c)}function nextAncestor(_e,lt,Rt){return _e.a.parent===lt.parent?_e.a:Rt}function TreeNode(_e,lt){this._=_e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=lt}TreeNode.prototype=Object.create(Node$6.prototype);function treeRoot(_e){for(var lt=new TreeNode(_e,0),Rt,At=[lt],Pt,Dt,Lt,Bt;Rt=At.pop();)if(Dt=Rt._.children)for(Rt.children=new Array(Bt=Dt.length),Lt=Bt-1;Lt>=0;--Lt)At.push(Pt=Rt.children[Lt]=new TreeNode(Dt[Lt],Lt)),Pt.parent=Rt;return(lt.parent=new TreeNode(null,0)).children=[lt],lt}function d3tree(){var _e=defaultSeparation,lt=1,Rt=1,At=null;function Pt(jt){var Ut=treeRoot(jt);if(Ut.eachAfter(Dt),Ut.parent.m=-Ut.z,Ut.eachBefore(Lt),At)jt.eachBefore(Nt);else{var Gt=jt,qt=jt,Xt=jt;jt.eachBefore(function(en){en.xqt.x&&(qt=en),en.depth>Xt.depth&&(Xt=en)});var Kt=Gt===qt?1:_e(Gt,qt)/2,Zt=Kt-Gt.x,Qt=lt/(qt.x+Kt+Zt),Jt=Rt/(Xt.depth||1);jt.eachBefore(function(en){en.x=(en.x+Zt)*Qt,en.y=en.depth*Jt})}return jt}function Dt(jt){var Ut=jt.children,Gt=jt.parent.children,qt=jt.i?Gt[jt.i-1]:null;if(Ut){executeShifts(jt);var Xt=(Ut[0].z+Ut[Ut.length-1].z)/2;qt?(jt.z=qt.z+_e(jt._,qt._),jt.m=jt.z-Xt):jt.z=Xt}else qt&&(jt.z=qt.z+_e(jt._,qt._));jt.parent.A=Bt(jt,qt,jt.parent.A||Gt[0])}function Lt(jt){jt._.x=jt.z+jt.parent.m,jt.m+=jt.parent.m}function Bt(jt,Ut,Gt){if(Ut){for(var qt=jt,Xt=jt,Kt=Ut,Zt=qt.parent.children[0],Qt=qt.m,Jt=Xt.m,en=Kt.m,tn=Zt.m,an;Kt=nextRight(Kt),qt=nextLeft(qt),Kt&&qt;)Zt=nextLeft(Zt),Xt=nextRight(Xt),Xt.a=jt,an=Kt.z+en-qt.z-Qt+_e(Kt._,qt._),an>0&&(moveSubtree(nextAncestor(Kt,jt,Gt),jt,an),Qt+=an,Jt+=an),en+=Kt.m,Qt+=qt.m,tn+=Zt.m,Jt+=Xt.m;Kt&&!nextRight(Xt)&&(Xt.t=Kt,Xt.m+=en-Jt),qt&&!nextLeft(Zt)&&(Zt.t=qt,Zt.m+=Qt-tn,Gt=jt)}return Gt}function Nt(jt){jt.x*=lt,jt.y=jt.depth*Rt}return Pt.separation=function(jt){return arguments.length?(_e=jt,Pt):_e},Pt.size=function(jt){return arguments.length?(At=!1,lt=+jt[0],Rt=+jt[1],Pt):At?null:[lt,Rt]},Pt.nodeSize=function(jt){return arguments.length?(At=!0,lt=+jt[0],Rt=+jt[1],Pt):At?[lt,Rt]:null},Pt}var xhtml="http://www.w3.org/1999/xhtml";const namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(_e){var lt=_e+="",Rt=lt.indexOf(":");return Rt>=0&&(lt=_e.slice(0,Rt))!=="xmlns"&&(_e=_e.slice(Rt+1)),namespaces.hasOwnProperty(lt)?{space:namespaces[lt],local:_e}:_e}function creatorInherit(_e){return function(){var lt=this.ownerDocument,Rt=this.namespaceURI;return Rt===xhtml&<.documentElement.namespaceURI===xhtml?lt.createElement(_e):lt.createElementNS(Rt,_e)}}function creatorFixed(_e){return function(){return this.ownerDocument.createElementNS(_e.space,_e.local)}}function creator(_e){var lt=namespace(_e);return(lt.local?creatorFixed:creatorInherit)(lt)}function none(){}function selector(_e){return _e==null?none:function(){return this.querySelector(_e)}}function selection_select(_e){typeof _e!="function"&&(_e=selector(_e));for(var lt=this._groups,Rt=lt.length,At=new Array(Rt),Pt=0;Pt=tn&&(tn=en+1);!(cn=Qt[tn])&&++tn=0;)(Lt=At[Pt])&&(Dt&&Lt.compareDocumentPosition(Dt)^4&&Dt.parentNode.insertBefore(Lt,Dt),Dt=Lt);return this}function selection_sort(_e){_e||(_e=ascending);function lt(Gt,qt){return Gt&&qt?_e(Gt.__data__,qt.__data__):!Gt-!qt}for(var Rt=this._groups,At=Rt.length,Pt=new Array(At),Dt=0;Dtlt?1:_e>=lt?0:NaN}function selection_call(){var _e=arguments[0];return arguments[0]=this,_e.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var _e=this._groups,lt=0,Rt=_e.length;lt1?this.each((lt==null?styleRemove$1:typeof lt=="function"?styleFunction$1:styleConstant$1)(_e,lt,Rt??"")):styleValue(this.node(),_e)}function styleValue(_e,lt){return _e.style.getPropertyValue(lt)||defaultView(_e).getComputedStyle(_e,null).getPropertyValue(lt)}function propertyRemove(_e){return function(){delete this[_e]}}function propertyConstant(_e,lt){return function(){this[_e]=lt}}function propertyFunction(_e,lt){return function(){var Rt=lt.apply(this,arguments);Rt==null?delete this[_e]:this[_e]=Rt}}function selection_property(_e,lt){return arguments.length>1?this.each((lt==null?propertyRemove:typeof lt=="function"?propertyFunction:propertyConstant)(_e,lt)):this.node()[_e]}function classArray(_e){return _e.trim().split(/^|\s+/)}function classList(_e){return _e.classList||new ClassList(_e)}function ClassList(_e){this._node=_e,this._names=classArray(_e.getAttribute("class")||"")}ClassList.prototype={add:function(_e){var lt=this._names.indexOf(_e);lt<0&&(this._names.push(_e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(_e){var lt=this._names.indexOf(_e);lt>=0&&(this._names.splice(lt,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(_e){return this._names.indexOf(_e)>=0}};function classedAdd(_e,lt){for(var Rt=classList(_e),At=-1,Pt=lt.length;++At=0&&(Rt=lt.slice(At+1),lt=lt.slice(0,At)),{type:lt,name:Rt}})}function onRemove(_e){return function(){var lt=this.__on;if(lt){for(var Rt=0,At=-1,Pt=lt.length,Dt;Rt{}};function dispatch(){for(var _e=0,lt=arguments.length,Rt={},At;_e=0&&(At=Rt.slice(Pt+1),Rt=Rt.slice(0,Pt)),Rt&&!lt.hasOwnProperty(Rt))throw new Error("unknown type: "+Rt);return{type:Rt,name:At}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(_e,lt){var Rt=this._,At=parseTypenames(_e+"",Rt),Pt,Dt=-1,Lt=At.length;if(arguments.length<2){for(;++Dt0)for(var Rt=new Array(Pt),At=0,Pt,Dt;At>8&15|lt>>4&240,lt>>4&15|lt&240,(lt&15)<<4|lt&15,1):Rt===8?rgba(lt>>24&255,lt>>16&255,lt>>8&255,(lt&255)/255):Rt===4?rgba(lt>>12&15|lt>>8&240,lt>>8&15|lt>>4&240,lt>>4&15|lt&240,((lt&15)<<4|lt&15)/255):null):(lt=reRgbInteger.exec(_e))?new Rgb(lt[1],lt[2],lt[3],1):(lt=reRgbPercent.exec(_e))?new Rgb(lt[1]*255/100,lt[2]*255/100,lt[3]*255/100,1):(lt=reRgbaInteger.exec(_e))?rgba(lt[1],lt[2],lt[3],lt[4]):(lt=reRgbaPercent.exec(_e))?rgba(lt[1]*255/100,lt[2]*255/100,lt[3]*255/100,lt[4]):(lt=reHslPercent.exec(_e))?hsla(lt[1],lt[2]/100,lt[3]/100,1):(lt=reHslaPercent.exec(_e))?hsla(lt[1],lt[2]/100,lt[3]/100,lt[4]):named.hasOwnProperty(_e)?rgbn(named[_e]):_e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(_e){return new Rgb(_e>>16&255,_e>>8&255,_e&255,1)}function rgba(_e,lt,Rt,At){return At<=0&&(_e=lt=Rt=NaN),new Rgb(_e,lt,Rt,At)}function rgbConvert(_e){return _e instanceof Color$1||(_e=color(_e)),_e?(_e=_e.rgb(),new Rgb(_e.r,_e.g,_e.b,_e.opacity)):new Rgb}function rgb(_e,lt,Rt,At){return arguments.length===1?rgbConvert(_e):new Rgb(_e,lt,Rt,At??1)}function Rgb(_e,lt,Rt,At){this.r=+_e,this.g=+lt,this.b=+Rt,this.opacity=+At}define(Rgb,rgb,extend$2(Color$1,{brighter(_e){return _e=_e==null?brighter:Math.pow(brighter,_e),new Rgb(this.r*_e,this.g*_e,this.b*_e,this.opacity)},darker(_e){return _e=_e==null?darker:Math.pow(darker,_e),new Rgb(this.r*_e,this.g*_e,this.b*_e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const _e=clampa(this.opacity);return`${_e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${_e===1?")":`, ${_e})`}`}function clampa(_e){return isNaN(_e)?1:Math.max(0,Math.min(1,_e))}function clampi(_e){return Math.max(0,Math.min(255,Math.round(_e)||0))}function hex(_e){return _e=clampi(_e),(_e<16?"0":"")+_e.toString(16)}function hsla(_e,lt,Rt,At){return At<=0?_e=lt=Rt=NaN:Rt<=0||Rt>=1?_e=lt=NaN:lt<=0&&(_e=NaN),new Hsl(_e,lt,Rt,At)}function hslConvert(_e){if(_e instanceof Hsl)return new Hsl(_e.h,_e.s,_e.l,_e.opacity);if(_e instanceof Color$1||(_e=color(_e)),!_e)return new Hsl;if(_e instanceof Hsl)return _e;_e=_e.rgb();var lt=_e.r/255,Rt=_e.g/255,At=_e.b/255,Pt=Math.min(lt,Rt,At),Dt=Math.max(lt,Rt,At),Lt=NaN,Bt=Dt-Pt,Nt=(Dt+Pt)/2;return Bt?(lt===Dt?Lt=(Rt-At)/Bt+(Rt0&&Nt<1?0:Lt,new Hsl(Lt,Bt,Nt,_e.opacity)}function hsl(_e,lt,Rt,At){return arguments.length===1?hslConvert(_e):new Hsl(_e,lt,Rt,At??1)}function Hsl(_e,lt,Rt,At){this.h=+_e,this.s=+lt,this.l=+Rt,this.opacity=+At}define(Hsl,hsl,extend$2(Color$1,{brighter(_e){return _e=_e==null?brighter:Math.pow(brighter,_e),new Hsl(this.h,this.s,this.l*_e,this.opacity)},darker(_e){return _e=_e==null?darker:Math.pow(darker,_e),new Hsl(this.h,this.s,this.l*_e,this.opacity)},rgb(){var _e=this.h%360+(this.h<0)*360,lt=isNaN(_e)||isNaN(this.s)?0:this.s,Rt=this.l,At=Rt+(Rt<.5?Rt:1-Rt)*lt,Pt=2*Rt-At;return new Rgb(hsl2rgb(_e>=240?_e-240:_e+120,Pt,At),hsl2rgb(_e,Pt,At),hsl2rgb(_e<120?_e+240:_e-120,Pt,At),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const _e=clampa(this.opacity);return`${_e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${_e===1?")":`, ${_e})`}`}}));function clamph(_e){return _e=(_e||0)%360,_e<0?_e+360:_e}function clampt(_e){return Math.max(0,Math.min(1,_e||0))}function hsl2rgb(_e,lt,Rt){return(_e<60?lt+(Rt-lt)*_e/60:_e<180?Rt:_e<240?lt+(Rt-lt)*(240-_e)/60:lt)*255}const constant$2=_e=>()=>_e;function linear(_e,lt){return function(Rt){return _e+Rt*lt}}function exponential(_e,lt,Rt){return _e=Math.pow(_e,Rt),lt=Math.pow(lt,Rt)-_e,Rt=1/Rt,function(At){return Math.pow(_e+At*lt,Rt)}}function gamma(_e){return(_e=+_e)==1?nogamma:function(lt,Rt){return Rt-lt?exponential(lt,Rt,_e):constant$2(isNaN(lt)?Rt:lt)}}function nogamma(_e,lt){var Rt=lt-_e;return Rt?linear(_e,Rt):constant$2(isNaN(_e)?lt:_e)}const interpolateRgb=function _e(lt){var Rt=gamma(lt);function At(Pt,Dt){var Lt=Rt((Pt=rgb(Pt)).r,(Dt=rgb(Dt)).r),Bt=Rt(Pt.g,Dt.g),Nt=Rt(Pt.b,Dt.b),jt=nogamma(Pt.opacity,Dt.opacity);return function(Ut){return Pt.r=Lt(Ut),Pt.g=Bt(Ut),Pt.b=Nt(Ut),Pt.opacity=jt(Ut),Pt+""}}return At.gamma=_e,At}(1);function interpolateNumber(_e,lt){return _e=+_e,lt=+lt,function(Rt){return _e*(1-Rt)+lt*Rt}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(_e){return function(){return _e}}function one(_e){return function(lt){return _e(lt)+""}}function interpolateString(_e,lt){var Rt=reA.lastIndex=reB.lastIndex=0,At,Pt,Dt,Lt=-1,Bt=[],Nt=[];for(_e=_e+"",lt=lt+"";(At=reA.exec(_e))&&(Pt=reB.exec(lt));)(Dt=Pt.index)>Rt&&(Dt=lt.slice(Rt,Dt),Bt[Lt]?Bt[Lt]+=Dt:Bt[++Lt]=Dt),(At=At[0])===(Pt=Pt[0])?Bt[Lt]?Bt[Lt]+=Pt:Bt[++Lt]=Pt:(Bt[++Lt]=null,Nt.push({i:Lt,x:interpolateNumber(At,Pt)})),Rt=reB.lastIndex;return Rt180?Ut+=360:Ut-jt>180&&(jt+=360),qt.push({i:Gt.push(Pt(Gt)+"rotate(",null,At)-2,x:interpolateNumber(jt,Ut)})):Ut&&Gt.push(Pt(Gt)+"rotate("+Ut+At)}function Bt(jt,Ut,Gt,qt){jt!==Ut?qt.push({i:Gt.push(Pt(Gt)+"skewX(",null,At)-2,x:interpolateNumber(jt,Ut)}):Ut&&Gt.push(Pt(Gt)+"skewX("+Ut+At)}function Nt(jt,Ut,Gt,qt,Xt,Kt){if(jt!==Gt||Ut!==qt){var Zt=Xt.push(Pt(Xt)+"scale(",null,",",null,")");Kt.push({i:Zt-4,x:interpolateNumber(jt,Gt)},{i:Zt-2,x:interpolateNumber(Ut,qt)})}else(Gt!==1||qt!==1)&&Xt.push(Pt(Xt)+"scale("+Gt+","+qt+")")}return function(jt,Ut){var Gt=[],qt=[];return jt=_e(jt),Ut=_e(Ut),Dt(jt.translateX,jt.translateY,Ut.translateX,Ut.translateY,Gt,qt),Lt(jt.rotate,Ut.rotate,Gt,qt),Bt(jt.skewX,Ut.skewX,Gt,qt),Nt(jt.scaleX,jt.scaleY,Ut.scaleX,Ut.scaleY,Gt,qt),jt=Ut=null,function(Xt){for(var Kt=-1,Zt=qt.length,Qt;++Kt=0&&_e._call.call(void 0,lt),_e=_e._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout$1=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke(){var _e=clock.now(),lt=_e-clockLast;lt>pokeDelay&&(clockSkew-=lt,clockLast=_e)}function nap(){for(var _e,lt=taskHead,Rt,At=1/0;lt;)lt._call?(At>lt._time&&(At=lt._time),_e=lt,lt=lt._next):(Rt=lt._next,lt._next=null,lt=_e?_e._next=Rt:taskHead=Rt);taskTail=_e,sleep(At)}function sleep(_e){if(!frame){timeout$1&&(timeout$1=clearTimeout(timeout$1));var lt=_e-clockNow;lt>24?(_e<1/0&&(timeout$1=setTimeout(wake,_e-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame=1,setFrame(wake))}}function timeout(_e,lt,Rt){var At=new Timer;return lt=lt==null?0:+lt,At.restart(Pt=>{At.stop(),_e(Pt+lt)},lt,Rt),At}var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(_e,lt,Rt,At,Pt,Dt){var Lt=_e.__transition;if(!Lt)_e.__transition={};else if(Rt in Lt)return;create$2(_e,Rt,{name:lt,index:At,group:Pt,on:emptyOn,tween:emptyTween,time:Dt.time,delay:Dt.delay,duration:Dt.duration,ease:Dt.ease,timer:null,state:CREATED})}function init$2(_e,lt){var Rt=get(_e,lt);if(Rt.state>CREATED)throw new Error("too late; already scheduled");return Rt}function set$2(_e,lt){var Rt=get(_e,lt);if(Rt.state>STARTED)throw new Error("too late; already running");return Rt}function get(_e,lt){var Rt=_e.__transition;if(!Rt||!(Rt=Rt[lt]))throw new Error("transition not found");return Rt}function create$2(_e,lt,Rt){var At=_e.__transition,Pt;At[lt]=Rt,Rt.timer=timer(Dt,0,Rt.time);function Dt(jt){Rt.state=SCHEDULED,Rt.timer.restart(Lt,Rt.delay,Rt.time),Rt.delay<=jt&&Lt(jt-Rt.delay)}function Lt(jt){var Ut,Gt,qt,Xt;if(Rt.state!==SCHEDULED)return Nt();for(Ut in At)if(Xt=At[Ut],Xt.name===Rt.name){if(Xt.state===STARTED)return timeout(Lt);Xt.state===RUNNING?(Xt.state=ENDED,Xt.timer.stop(),Xt.on.call("interrupt",_e,_e.__data__,Xt.index,Xt.group),delete At[Ut]):+UtSTARTING&&At.state=0&&(lt=lt.slice(0,Rt)),!lt||lt==="start"})}function onFunction(_e,lt,Rt){var At,Pt,Dt=start(lt)?init$2:set$2;return function(){var Lt=Dt(this,_e),Bt=Lt.on;Bt!==At&&(Pt=(At=Bt).copy()).on(lt,Rt),Lt.on=Pt}}function transition_on(_e,lt){var Rt=this._id;return arguments.length<2?get(this.node(),Rt).on.on(_e):this.each(onFunction(Rt,_e,lt))}function removeFunction(_e){return function(){var lt=this.parentNode;for(var Rt in this.__transition)if(+Rt!==_e)return;lt&<.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(_e){var lt=this._name,Rt=this._id;typeof _e!="function"&&(_e=selector(_e));for(var At=this._groups,Pt=At.length,Dt=new Array(Pt),Lt=0;Lt()=>_e;function ZoomEvent(_e,{sourceEvent:lt,target:Rt,transform:At,dispatch:Pt}){Object.defineProperties(this,{type:{value:_e,enumerable:!0,configurable:!0},sourceEvent:{value:lt,enumerable:!0,configurable:!0},target:{value:Rt,enumerable:!0,configurable:!0},transform:{value:At,enumerable:!0,configurable:!0},_:{value:Pt}})}function Transform$1(_e,lt,Rt){this.k=_e,this.x=lt,this.y=Rt}Transform$1.prototype={constructor:Transform$1,scale:function(_e){return _e===1?this:new Transform$1(this.k*_e,this.x,this.y)},translate:function(_e,lt){return _e===0<===0?this:new Transform$1(this.k,this.x+this.k*_e,this.y+this.k*lt)},apply:function(_e){return[_e[0]*this.k+this.x,_e[1]*this.k+this.y]},applyX:function(_e){return _e*this.k+this.x},applyY:function(_e){return _e*this.k+this.y},invert:function(_e){return[(_e[0]-this.x)/this.k,(_e[1]-this.y)/this.k]},invertX:function(_e){return(_e-this.x)/this.k},invertY:function(_e){return(_e-this.y)/this.k},rescaleX:function(_e){return _e.copy().domain(_e.range().map(this.invertX,this).map(_e.invert,_e))},rescaleY:function(_e){return _e.copy().domain(_e.range().map(this.invertY,this).map(_e.invert,_e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var identity$2=new Transform$1(1,0,0);Transform$1.prototype;function nopropagation(_e){_e.stopImmediatePropagation()}function noevent(_e){_e.preventDefault(),_e.stopImmediatePropagation()}function defaultFilter(_e){return(!_e.ctrlKey||_e.type==="wheel")&&!_e.button}function defaultExtent(){var _e=this;return _e instanceof SVGElement?(_e=_e.ownerSVGElement||_e,_e.hasAttribute("viewBox")?(_e=_e.viewBox.baseVal,[[_e.x,_e.y],[_e.x+_e.width,_e.y+_e.height]]):[[0,0],[_e.width.baseVal.value,_e.height.baseVal.value]]):[[0,0],[_e.clientWidth,_e.clientHeight]]}function defaultTransform(){return this.__zoom||identity$2}function defaultWheelDelta(_e){return-_e.deltaY*(_e.deltaMode===1?.05:_e.deltaMode?1:.002)*(_e.ctrlKey?10:1)}function defaultTouchable(){return navigator.maxTouchPoints||"ontouchstart"in this}function defaultConstrain(_e,lt,Rt){var At=_e.invertX(lt[0][0])-Rt[0][0],Pt=_e.invertX(lt[1][0])-Rt[1][0],Dt=_e.invertY(lt[0][1])-Rt[0][1],Lt=_e.invertY(lt[1][1])-Rt[1][1];return _e.translate(Pt>At?(At+Pt)/2:Math.min(0,At)||Math.max(0,Pt),Lt>Dt?(Dt+Lt)/2:Math.min(0,Dt)||Math.max(0,Lt))}function d3zoom(){var _e=defaultFilter,lt=defaultExtent,Rt=defaultConstrain,At=defaultWheelDelta,Pt=defaultTouchable,Dt=[0,1/0],Lt=[[-1/0,-1/0],[1/0,1/0]],Bt=250,Nt=interpolateZoom,jt=dispatch("start","zoom","end"),Ut,Gt,qt,Xt=500,Kt=150,Zt=0,Qt=10;function Jt(ln){ln.property("__zoom",defaultTransform).on("wheel.zoom",sn,{passive:!1}).on("mousedown.zoom",pn).on("dblclick.zoom",bn).filter(Pt).on("touchstart.zoom",gn).on("touchmove.zoom",_n).on("touchend.zoom touchcancel.zoom",xn).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Jt.transform=function(ln,Mn,Tn,An){var Cn=ln.selection?ln.selection():ln;Cn.property("__zoom",defaultTransform),ln!==Cn?cn(ln,Mn,Tn,An):Cn.interrupt().each(function(){un(this,arguments).event(An).start().zoom(null,typeof Mn=="function"?Mn.apply(this,arguments):Mn).end()})},Jt.scaleBy=function(ln,Mn,Tn,An){Jt.scaleTo(ln,function(){var Cn=this.__zoom.k,wn=typeof Mn=="function"?Mn.apply(this,arguments):Mn;return Cn*wn},Tn,An)},Jt.scaleTo=function(ln,Mn,Tn,An){Jt.transform(ln,function(){var Cn=lt.apply(this,arguments),wn=this.__zoom,Fn=Tn==null?an(Cn):typeof Tn=="function"?Tn.apply(this,arguments):Tn,$n=wn.invert(Fn),Pn=typeof Mn=="function"?Mn.apply(this,arguments):Mn;return Rt(tn(en(wn,Pn),Fn,$n),Cn,Lt)},Tn,An)},Jt.translateBy=function(ln,Mn,Tn,An){Jt.transform(ln,function(){return Rt(this.__zoom.translate(typeof Mn=="function"?Mn.apply(this,arguments):Mn,typeof Tn=="function"?Tn.apply(this,arguments):Tn),lt.apply(this,arguments),Lt)},null,An)},Jt.translateTo=function(ln,Mn,Tn,An,Cn){Jt.transform(ln,function(){var wn=lt.apply(this,arguments),Fn=this.__zoom,$n=An==null?an(wn):typeof An=="function"?An.apply(this,arguments):An;return Rt(identity$2.translate($n[0],$n[1]).scale(Fn.k).translate(typeof Mn=="function"?-Mn.apply(this,arguments):-Mn,typeof Tn=="function"?-Tn.apply(this,arguments):-Tn),wn,Lt)},An,Cn)};function en(ln,Mn){return Mn=Math.max(Dt[0],Math.min(Dt[1],Mn)),Mn===ln.k?ln:new Transform$1(Mn,ln.x,ln.y)}function tn(ln,Mn,Tn){var An=Mn[0]-Tn[0]*ln.k,Cn=Mn[1]-Tn[1]*ln.k;return An===ln.x&&Cn===ln.y?ln:new Transform$1(ln.k,An,Cn)}function an(ln){return[(+ln[0][0]+ +ln[1][0])/2,(+ln[0][1]+ +ln[1][1])/2]}function cn(ln,Mn,Tn,An){ln.on("start.zoom",function(){un(this,arguments).event(An).start()}).on("interrupt.zoom end.zoom",function(){un(this,arguments).event(An).end()}).tween("zoom",function(){var Cn=this,wn=arguments,Fn=un(Cn,wn).event(An),$n=lt.apply(Cn,wn),Pn=Tn==null?an($n):typeof Tn=="function"?Tn.apply(Cn,wn):Tn,Vn=Math.max($n[1][0]-$n[0][0],$n[1][1]-$n[0][1]),Zn=Cn.__zoom,tr=typeof Mn=="function"?Mn.apply(Cn,wn):Mn,vn=Nt(Zn.invert(Pn).concat(Vn/Zn.k),tr.invert(Pn).concat(Vn/tr.k));return function(En){if(En===1)En=tr;else{var kn=vn(En),zn=Vn/kn[2];En=new Transform$1(zn,Pn[0]-kn[0]*zn,Pn[1]-kn[1]*zn)}Fn.zoom(null,En)}})}function un(ln,Mn,Tn){return!Tn&&ln.__zooming||new rn(ln,Mn)}function rn(ln,Mn){this.that=ln,this.args=Mn,this.active=0,this.sourceEvent=null,this.extent=lt.apply(ln,Mn),this.taps=0}rn.prototype={event:function(ln){return ln&&(this.sourceEvent=ln),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ln,Mn){return this.mouse&&ln!=="mouse"&&(this.mouse[1]=Mn.invert(this.mouse[0])),this.touch0&&ln!=="touch"&&(this.touch0[1]=Mn.invert(this.touch0[0])),this.touch1&&ln!=="touch"&&(this.touch1[1]=Mn.invert(this.touch1[0])),this.that.__zoom=Mn,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ln){var Mn=select(this.that).datum();jt.call(ln,this.that,new ZoomEvent(ln,{sourceEvent:this.sourceEvent,target:Jt,type:ln,transform:this.that.__zoom,dispatch:jt}),Mn)}};function sn(ln,...Mn){if(!_e.apply(this,arguments))return;var Tn=un(this,Mn).event(ln),An=this.__zoom,Cn=Math.max(Dt[0],Math.min(Dt[1],An.k*Math.pow(2,At.apply(this,arguments)))),wn=pointer(ln);if(Tn.wheel)(Tn.mouse[0][0]!==wn[0]||Tn.mouse[0][1]!==wn[1])&&(Tn.mouse[1]=An.invert(Tn.mouse[0]=wn)),clearTimeout(Tn.wheel);else{if(An.k===Cn)return;Tn.mouse=[wn,An.invert(wn)],interrupt(this),Tn.start()}noevent(ln),Tn.wheel=setTimeout(Fn,Kt),Tn.zoom("mouse",Rt(tn(en(An,Cn),Tn.mouse[0],Tn.mouse[1]),Tn.extent,Lt));function Fn(){Tn.wheel=null,Tn.end()}}function pn(ln,...Mn){if(qt||!_e.apply(this,arguments))return;var Tn=ln.currentTarget,An=un(this,Mn,!0).event(ln),Cn=select(ln.view).on("mousemove.zoom",Pn,!0).on("mouseup.zoom",Vn,!0),wn=pointer(ln,Tn),Fn=ln.clientX,$n=ln.clientY;dragDisable(ln.view),nopropagation(ln),An.mouse=[wn,this.__zoom.invert(wn)],interrupt(this),An.start();function Pn(Zn){if(noevent(Zn),!An.moved){var tr=Zn.clientX-Fn,vn=Zn.clientY-$n;An.moved=tr*tr+vn*vn>Zt}An.event(Zn).zoom("mouse",Rt(tn(An.that.__zoom,An.mouse[0]=pointer(Zn,Tn),An.mouse[1]),An.extent,Lt))}function Vn(Zn){Cn.on("mousemove.zoom mouseup.zoom",null),yesdrag(Zn.view,An.moved),noevent(Zn),An.event(Zn).end()}}function bn(ln,...Mn){if(_e.apply(this,arguments)){var Tn=this.__zoom,An=pointer(ln.changedTouches?ln.changedTouches[0]:ln,this),Cn=Tn.invert(An),wn=Tn.k*(ln.shiftKey?.5:2),Fn=Rt(tn(en(Tn,wn),An,Cn),lt.apply(this,Mn),Lt);noevent(ln),Bt>0?select(this).transition().duration(Bt).call(cn,Fn,An,ln):select(this).call(Jt.transform,Fn,An,ln)}}function gn(ln,...Mn){if(_e.apply(this,arguments)){var Tn=ln.touches,An=Tn.length,Cn=un(this,Mn,ln.changedTouches.length===An).event(ln),wn,Fn,$n,Pn;for(nopropagation(ln),Fn=0;Fn"u"&&(Xt=!0),typeof Kt>"u"&&(Kt=1/0);function an(cn,un){if(cn===null)return null;if(un===0)return cn;var rn,sn;if(typeof cn!="object")return cn;if(Rt(cn,At))rn=new At;else if(Rt(cn,Pt))rn=new Pt;else if(Rt(cn,Dt))rn=new Dt(function(An,Cn){cn.then(function(wn){An(an(wn,un-1))},function(wn){Cn(an(wn,un-1))})});else if(Lt.__isArray(cn))rn=[];else if(Lt.__isRegExp(cn))rn=new RegExp(cn.source,Gt(cn)),cn.lastIndex&&(rn.lastIndex=cn.lastIndex);else if(Lt.__isDate(cn))rn=new Date(cn.getTime());else{if(tn&&Buffer.isBuffer(cn))return Buffer.allocUnsafe?rn=Buffer.allocUnsafe(cn.length):rn=new Buffer(cn.length),cn.copy(rn),rn;Rt(cn,Error)?rn=Object.create(cn):typeof Zt>"u"?(sn=Object.getPrototypeOf(cn),rn=Object.create(sn)):(rn=Object.create(Zt),sn=Zt)}if(Xt){var pn=Jt.indexOf(cn);if(pn!=-1)return en[pn];Jt.push(cn),en.push(rn)}Rt(cn,At)&&cn.forEach(function(An,Cn){var wn=an(Cn,un-1),Fn=an(An,un-1);rn.set(wn,Fn)}),Rt(cn,Pt)&&cn.forEach(function(An){var Cn=an(An,un-1);rn.add(Cn)});for(var bn in cn){var gn;sn&&(gn=Object.getOwnPropertyDescriptor(sn,bn)),!(gn&&gn.set==null)&&(rn[bn]=an(cn[bn],un-1))}if(Object.getOwnPropertySymbols)for(var _n=Object.getOwnPropertySymbols(cn),bn=0;bn<_n.length;bn++){var xn=_n[bn],ln=Object.getOwnPropertyDescriptor(cn,xn);ln&&!ln.enumerable&&!Qt||(rn[xn]=an(cn[xn],un-1),ln.enumerable||Object.defineProperty(rn,xn,{enumerable:!1}))}if(Qt)for(var Mn=Object.getOwnPropertyNames(cn),bn=0;bn1&&arguments[1]!==void 0?arguments[1]:0,Rt=(byteToHex[_e[lt+0]]+byteToHex[_e[lt+1]]+byteToHex[_e[lt+2]]+byteToHex[_e[lt+3]]+"-"+byteToHex[_e[lt+4]]+byteToHex[_e[lt+5]]+"-"+byteToHex[_e[lt+6]]+byteToHex[_e[lt+7]]+"-"+byteToHex[_e[lt+8]]+byteToHex[_e[lt+9]]+"-"+byteToHex[_e[lt+10]]+byteToHex[_e[lt+11]]+byteToHex[_e[lt+12]]+byteToHex[_e[lt+13]]+byteToHex[_e[lt+14]]+byteToHex[_e[lt+15]]).toLowerCase();if(!validate$1(Rt))throw TypeError("Stringified UUID is invalid");return Rt}function v4(_e,lt,Rt){_e=_e||{};var At=_e.random||(_e.rng||rng)();if(At[6]=At[6]&15|64,At[8]=At[8]&63|128,lt){Rt=Rt||0;for(var Pt=0;Pt<16;++Pt)lt[Rt+Pt]=At[Pt];return lt}return stringify$3(At)}var CSSTransitionGroup={exports:{}},TransitionGroup={exports:{}},chainFunction=function(){for(var lt=arguments.length,Rt=[],At=0;AtNt){Bt=Ut,Nt=Gt;continue}}Bt&&(Pt[paletteMapKey(Lt)]=Bt)}return Pt}function matchPaletteLab(_e,lt,Rt){let At,Pt,Dt=lt[0],Lt=ciede2000(_e,Dt);for(let Bt=1,Nt=lt.length;BtLt)&&(Dt=At,Lt=Pt);return Dt}function mapPaletteLab(_e,lt,Rt){const At={},Pt=Rt==="furthest";for(let Dt=0;Dt<_e.length;Dt+=1){const Lt=_e[Dt];At[labPaletteMapKey(Lt)]=matchPaletteLab(Lt,lt,Pt)}return At}function closest$2(_e,lt,Rt){const At=paletteMapKey(_e);return Rt=Rt||{R:255,G:255,B:255},mapPalette([_e],lt,"closest",Rt)[At]}function closestLab(_e,lt){return matchPaletteLab(_e,lt,!1)}function furthest(_e,lt,Rt){const At=paletteMapKey(_e);return Rt=Rt||{R:255,G:255,B:255},mapPalette([_e],lt,"furthest",Rt)[At]}function furthestLab(_e,lt){return matchPaletteLab(_e,lt,!0)}function map_palette(_e,lt,Rt,At){return mapPalette(_e,lt,Rt,At)}function palette_map_key(_e){return paletteMapKey(_e)}function rgb_to_lab(_e){return rgbaToLab(_e)}function rgba_to_lab(_e){return rgbaToLab(_e)}function match_palette_lab(_e,lt,Rt){return matchPaletteLab(_e,lt,Rt)}function map_palette_lab(_e,lt,Rt){return mapPaletteLab(_e,lt,Rt)}function lab_palette_map_key(_e){return labPaletteMapKey(_e)}function closest_lab(_e,lt){return closestLab(_e,lt)}function furthest_lab(_e,lt){return furthestLab(_e,lt)}colorDiff.closest=closest$2;colorDiff.closestLab=closestLab;colorDiff.closest_lab=closest_lab;colorDiff.diff=ciede2000;colorDiff.furthest=furthest;colorDiff.furthestLab=furthestLab;colorDiff.furthest_lab=furthest_lab;colorDiff.labPaletteMapKey=labPaletteMapKey;colorDiff.lab_palette_map_key=lab_palette_map_key;colorDiff.mapPalette=mapPalette;colorDiff.mapPaletteLab=mapPaletteLab;colorDiff.map_palette=map_palette;colorDiff.map_palette_lab=map_palette_lab;colorDiff.matchPaletteLab=matchPaletteLab;colorDiff.match_palette_lab=match_palette_lab;colorDiff.paletteMapKey=paletteMapKey;colorDiff.palette_map_key=palette_map_key;colorDiff.rgb_to_lab=rgb_to_lab;colorDiff.rgbaToLab=rgbaToLab;colorDiff.rgba_to_lab=rgba_to_lab;const hexRgb=hexRgb$1,rgbHex=rgbHex$1,diff=colorDiff,pantones=[{pantone:"11-0103",name:"egret",hex:"#f3ece0"},{pantone:"11-0602",name:"snow-white",hex:"#f2f0eb"},{pantone:"11-0601",name:"bright-white",hex:"#f4f5f0"},{pantone:"11-4201",name:"cloud-dancer",hex:"#f0eee9"},{pantone:"11-0604",name:"gardenia",hex:"#f1e8df"},{pantone:"11-4300",name:"marshmallow",hex:"#f0eee4"},{pantone:"11-4800",name:"blanc-de-blanc",hex:"#e7e9e7"},{pantone:"11-0606",name:"pristine",hex:"#f2e8da"},{pantone:"11-0701",name:"whisper-white",hex:"#ede6db"},{pantone:"12-0104",name:"white-asparagus",hex:"#e1dbc8"},{pantone:"13-0905",name:"birch",hex:"#ddd5c7"},{pantone:"12-5202",name:"turtledove",hex:"#ded7c8"},{pantone:"12-0105",name:"bone-white",hex:"#d7d0c0"},{pantone:"13-4403",name:"silver-birch",hex:"#d2cfc4"},{pantone:"11-0104",name:"vanilla-ice",hex:"#f0eada"},{pantone:"11-0107",name:"papyrus",hex:"#f5edd6"},{pantone:"11-0105",name:"antique-white",hex:"#ede3d2"},{pantone:"11-0507",name:"winter-white",hex:"#f5ecd2"},{pantone:"12-0804",name:"cloud-cream",hex:"#e6ddc5"},{pantone:"12-0605",name:"angora",hex:"#dfd1bb"},{pantone:"12-0703",name:"seedpearl",hex:"#e6dac4"},{pantone:"12-0815",name:"vanilla-custard",hex:"#f3e0be"},{pantone:"12-0713",name:"almond-oil",hex:"#f4efc1"},{pantone:"12-0812",name:"alabaster-gleam",hex:"#f0debd"},{pantone:"12-0712",name:"vanilla",hex:"#f4e1c1"},{pantone:"12-0806",name:"rutabaga",hex:"#ecddbe"},{pantone:"13-0815",name:"banana-crepe",hex:"#e7d3ad"},{pantone:"13-0917",name:"italian-straw",hex:"#e7d1a1"},{pantone:"12-0304",name:"whitecap-gray",hex:"#e0d5c6"},{pantone:"13-0607",name:"fog",hex:"#d0c5b1"},{pantone:"12-0000",name:"white-swan",hex:"#e4d7c5"},{pantone:"13-0907",name:"sandshell",hex:"#d8ccbb"},{pantone:"12-1403",name:"tapioca",hex:"#dccdbc"},{pantone:"13-1006",name:"creme-brulee",hex:"#dbccb5"},{pantone:"13-0908",name:"parchment",hex:"#dfd1be"},{pantone:"12-1106",name:"sheer-pink",hex:"#f6e5db"},{pantone:"12-1108",name:"dew",hex:"#eeded1"},{pantone:"11-1404",name:"powder-puff",hex:"#f3e0d6"},{pantone:"11-0907",name:"pearled-ivory",hex:"#f0dfcc"},{pantone:"12-0704",name:"white-smoke",hex:"#eddcc9"},{pantone:"11-0809",name:"ecru",hex:"#f3dfca"},{pantone:"12-0710",name:"navajo",hex:"#efdcc3"},{pantone:"12-2103",name:"almost-mauve",hex:"#e7dcd9"},{pantone:"11-2409",name:"delicacy",hex:"#f5e3e2"},{pantone:"11-2309",name:"petal-pink",hex:"#f2e2e0"},{pantone:"11-1005",name:"bridal-blush",hex:"#eee2dd"},{pantone:"11-1306",name:"cream-pink",hex:"#f6e4d9"},{pantone:"11-1305",name:"angel-wing",hex:"#f3dfd7"},{pantone:"11-0603",name:"pastel-parchment",hex:"#e5d9d3"},{pantone:"11-4202",name:"star-white",hex:"#efefe8"},{pantone:"11-4301",name:"lily-white",hex:"#e2e2da"},{pantone:"12-4302",name:"vaporous-gray",hex:"#dfddd7"},{pantone:"11-4802",name:"summer-shower",hex:"#e5ebe3"},{pantone:"11-4803",name:"ice",hex:"#e0e4d9"},{pantone:"12-6207",name:"frost",hex:"#dde2d6"},{pantone:"12-5201",name:"icicle",hex:"#dadcd0"},{pantone:"11-4601",name:"bit-of-blue",hex:"#e2eaeb"},{pantone:"11-4303",name:"mystic-blue",hex:"#e1e3de"},{pantone:"12-4304",name:"bluewash",hex:"#e2e6e0"},{pantone:"12-4305",name:"spa-blue",hex:"#d3dedf"},{pantone:"11-4804",name:"lightest-sky",hex:"#e4eadf"},{pantone:"11-4805",name:"hint-of-mint",hex:"#d8e8e6"},{pantone:"12-5203",name:"murmur",hex:"#d2d8d2"},{pantone:"12-4306",name:"barely-blue",hex:"#dde0df"},{pantone:"12-4705",name:"blue-blush",hex:"#d6dbd9"},{pantone:"12-5603",name:"zephyr-blue",hex:"#d3d9d1"},{pantone:"12-5403",name:"blue-flower",hex:"#d0d9d4"},{pantone:"12-5303",name:"sprout-green",hex:"#cbd7d2"},{pantone:"11-4604",name:"billowing-sail",hex:"#d8e7e7"},{pantone:"12-5508",name:"hushed-green",hex:"#d8e9e5"},{pantone:"12-0910",name:"lambs-wool",hex:"#e5d0b1"},{pantone:"14-1119",name:"winter-wheat",hex:"#dfc09f"},{pantone:"13-0814",name:"summer-melon",hex:"#ead3ae"},{pantone:"13-0916",name:"chamomile",hex:"#e8d0a7"},{pantone:"12-0714",name:"cornhusk",hex:"#f2d6ae"},{pantone:"12-0817",name:"apricot-gelato",hex:"#f5d7af"},{pantone:"13-1009",name:"biscotti",hex:"#dac7ab"},{pantone:"12-0311",name:"asparagus-green",hex:"#d2cdb4"},{pantone:"13-1007",name:"oyster-white",hex:"#d2caaf"},{pantone:"13-0711",name:"putty",hex:"#d4cab0"},{pantone:"13-0611",name:"moth",hex:"#d2cbaf"},{pantone:"14-1108",name:"wood-ash",hex:"#d7cab0"},{pantone:"14-1014",name:"gravel",hex:"#cbbfa2"},{pantone:"15-1216",name:"pale-khaki",hex:"#bfaf92"},{pantone:"12-0404",name:"light-gray",hex:"#dad8c9"},{pantone:"12-6204",name:"silver-green",hex:"#d7d7c7"},{pantone:"14-6305",name:"pelican",hex:"#c1bcac"},{pantone:"14-0105",name:"overcast",hex:"#c3bdab"},{pantone:"14-0210",name:"tidal-foam",hex:"#bfb9a3"},{pantone:"15-6307",name:"agate-gray",hex:"#b1b09f"},{pantone:"14-6308",name:"alfalfa",hex:"#b7b59f"},{pantone:"14-0108",name:"castle-wall",hex:"#c8c1ab"},{pantone:"14-1107",name:"oyster-gray",hex:"#cbc1ae"},{pantone:"14-0708",name:"cement",hex:"#c4b6a6"},{pantone:"15-0309",name:"spray-green",hex:"#aea692"},{pantone:"15-0513",name:"eucalyptus",hex:"#b1a992"},{pantone:"16-1108",name:"twill",hex:"#a79b82"},{pantone:"16-1110",name:"olive-gray",hex:"#a6997a"},{pantone:"17-1109",name:"chinchilla",hex:"#9c8e7b"},{pantone:"17-1107",name:"seneca-rock",hex:"#9a927f"},{pantone:"17-0610",name:"laurel-oak",hex:"#918c7e"},{pantone:"17-1113",name:"coriander",hex:"#938772"},{pantone:"17-1009",name:"dune",hex:"#998978"},{pantone:"17-1118",name:"lead-gray",hex:"#8a7963"},{pantone:"18-0617",name:"covert-green",hex:"#80765f"},{pantone:"15-1306",name:"oxford-tan",hex:"#b8a99a"},{pantone:"16-1105",name:"plaza-taupe",hex:"#aea393"},{pantone:"16-1106",name:"tuffet",hex:"#a59788"},{pantone:"17-1312",name:"silver-mink",hex:"#9f8d7c"},{pantone:"17-1310",name:"timber-wolf",hex:"#8d8070"},{pantone:"17-0808",name:"taupe-gray",hex:"#8e7c71"},{pantone:"17-1410",name:"pine-bark",hex:"#827064"},{pantone:"14-0002",name:"pumice-stone",hex:"#cac2b9"},{pantone:"16-0906",name:"simply-taupe",hex:"#ad9f93"},{pantone:"16-1107",name:"aluminum",hex:"#9f9586"},{pantone:"16-1407",name:"cobblestone",hex:"#a89a8e"},{pantone:"18-1110",name:"brindle",hex:"#82776b"},{pantone:"18-1112",name:"walnut",hex:"#776a5f"},{pantone:"18-0513",name:"bungee-cord",hex:"#696156"},{pantone:"13-0401",name:"oatmeal",hex:"#cbc3b4"},{pantone:"13-0000",name:"moonbeam",hex:"#cdc6bd"},{pantone:"13-5304",name:"rainy-day",hex:"#cfc8bd"},{pantone:"13-0403",name:"gray-morn",hex:"#cabeb5"},{pantone:"14-1106",name:"peyote",hex:"#c5bbae"},{pantone:"15-1305",name:"feather-gray",hex:"#b8ad9e"},{pantone:"16-0806",name:"goat",hex:"#a89a91"},{pantone:"13-0002",name:"white-sand",hex:"#dbd5d1"},{pantone:"14-0000",name:"silver-gray",hex:"#c1b7b0"},{pantone:"15-4503",name:"chateau-gray",hex:"#bbb1a8"},{pantone:"16-1305",name:"string",hex:"#aa9f96"},{pantone:"16-1406",name:"atmosphere",hex:"#a89c94"},{pantone:"17-1210",name:"moon-rock",hex:"#958b84"},{pantone:"17-1212",name:"fungi",hex:"#8f8177"},{pantone:"14-4501",name:"silver-lining",hex:"#bdb6ab"},{pantone:"14-4500",name:"moonstruck",hex:"#c2beb6"},{pantone:"15-6304",name:"pussywillow-gray",hex:"#aeaca1"},{pantone:"16-0207",name:"london-fog",hex:"#a29e92"},{pantone:"17-0207",name:"rock-ridge",hex:"#918c86"},{pantone:"18-4105",name:"moon-mist",hex:"#80817d"},{pantone:"18-0510",name:"castor-gray",hex:"#646762"},{pantone:"14-4102",name:"glacier-gray",hex:"#c5c6c7"},{pantone:"14-4201",name:"lunar-rock",hex:"#c5c5c5"},{pantone:"13-4303",name:"dawn-blue",hex:"#cacccb"},{pantone:"14-4103",name:"gray-violet",hex:"#bbbcbc"},{pantone:"14-4203",name:"vapor-blue",hex:"#bebdbd"},{pantone:"15-4101",name:"high-rise",hex:"#aeb2b5"},{pantone:"16-4702",name:"limestone",hex:"#989a98"},{pantone:"15-4502",name:"silver-cloud",hex:"#beb7b0"},{pantone:"15-0000",name:"dove",hex:"#b3ada7"},{pantone:"16-5803",name:"flint-gray",hex:"#a09c98"},{pantone:"16-4402",name:"drizzle",hex:"#a09f9c"},{pantone:"17-0205",name:"elephant-skin",hex:"#8f8982"},{pantone:"17-1506",name:"cinder",hex:"#8a7e78"},{pantone:"17-1500",name:"steeple-gray",hex:"#827e7c"},{pantone:"14-4503",name:"metal",hex:"#babfbc"},{pantone:"14-4804",name:"blue-fox",hex:"#b9bcb6"},{pantone:"15-4003",name:"storm-gray",hex:"#b5bab6"},{pantone:"15-4704",name:"pigeon",hex:"#a9afaa"},{pantone:"15-4703",name:"mirage-gray",hex:"#abafae"},{pantone:"15-4702",name:"puritan-gray",hex:"#a8b0ae"},{pantone:"16-5904",name:"wrought-iron",hex:"#99,9e,98"},{pantone:"16-3801",name:"opal-gray",hex:"#a49e9e"},{pantone:"17-1501",name:"wild-dove",hex:"#8b8c89"},{pantone:"17-4402",name:"neutral-gray",hex:"#8e918f"},{pantone:"18-0503",name:"gargoyle",hex:"#686767"},{pantone:"18-0000",name:"smoked-pearl",hex:"#656466"},{pantone:"18-5105",name:"sedona-sage",hex:"#686d6c"},{pantone:"18-0306",name:"gunmetal",hex:"#5c5d5b"},{pantone:"14-4002",name:"wind-chime",hex:"#cac5c2"},{pantone:"16-0000",name:"paloma",hex:"#9f9c99"},{pantone:"18-0601",name:"charcoal-gray",hex:"#6c6868"},{pantone:"18-4005",name:"steel-gray",hex:"#726f70"},{pantone:"18-5203",name:"pewter",hex:"#666564"},{pantone:"18-0201",name:"castlerock",hex:"#5f5e62"},{pantone:"19-3908",name:"nine-iron",hex:"#46434a"},{pantone:"16-3802",name:"ash",hex:"#a09998"},{pantone:"17-1502",name:"cloudburst",hex:"#837f7f"},{pantone:"17-0000",name:"frost-gray",hex:"#848283"},{pantone:"18-3905",name:"excalibur",hex:"#676168"},{pantone:"18-0403",name:"dark-gull-gray",hex:"#625d5d"},{pantone:"19-3905",name:"rabbit",hex:"#5f575c"},{pantone:"19-3903",name:"shale",hex:"#4a3f41"},{pantone:"17-0909",name:"fossil",hex:"#806f63"},{pantone:"19-0810",name:"major-brown",hex:"#5b5149"},{pantone:"19-0809",name:"chocolate-chip",hex:"#685a4e"},{pantone:"19-0820",name:"canteen",hex:"#5e5347"},{pantone:"18-0615",name:"stone-gray",hex:"#685e4f"},{pantone:"18-0820",name:"capers",hex:"#695e4b"},{pantone:"19-0618",name:"beech",hex:"#5b4f3b"},{pantone:"19-0822",name:"tarmac",hex:"#5a5348"},{pantone:"19-0614",name:"wren",hex:"#4a4139"},{pantone:"19-0608",name:"black-olive",hex:"#48413b"},{pantone:"19-0405",name:"beluga",hex:"#4a4843"},{pantone:"19-0506",name:"black-ink",hex:"#44413c"},{pantone:"19-0508",name:"peat",hex:"#3b3a36"},{pantone:"19-5708",name:"jet-set",hex:"#262c2a"},{pantone:"18-1306",name:"iron",hex:"#736460"},{pantone:"19-3803",name:"plum-kitten",hex:"#625b5c"},{pantone:"19-0812",name:"turkish-coffee",hex:"#483f39"},{pantone:"19-1111",name:"black-coffee",hex:"#3b302f"},{pantone:"19-1101",name:"after-dark",hex:"#3c3535"},{pantone:"19-1102",name:"licorice",hex:"#3a3536"},{pantone:"19-0000",name:"raven",hex:"#413e3d"},{pantone:"19-0303",name:"jet-black",hex:"#2d2c2f"},{pantone:"19-4205",name:"phantom",hex:"#39373b"},{pantone:"19-4005",name:"stretch-limo",hex:"#2b2c30"},{pantone:"19-4203",name:"moonless-night",hex:"#2f2d30"},{pantone:"19-4006",name:"caviar",hex:"#292a2d"},{pantone:"19-4305",name:"pirate-black",hex:"#363838"},{pantone:"19-4007",name:"anthracite",hex:"#28282d"},{pantone:"12-1009",name:"vanilla-cream",hex:"#f4d8c6"},{pantone:"12-0811",name:"dawn",hex:"#ebd2b7"},{pantone:"13-1010",name:"gray-sand",hex:"#e5ccaf"},{pantone:"12-0813",name:"autumn-blonde",hex:"#eed0ae"},{pantone:"14-1120",name:"apricot-illusion",hex:"#e2c4a6"},{pantone:"13-1014",name:"mellow-buff",hex:"#d8b998"},{pantone:"14-1122",name:"sheepskin",hex:"#dab58f"},{pantone:"14-1116",name:"almond-buff",hex:"#ccb390"},{pantone:"14-1118",name:"beige",hex:"#d5ba98"},{pantone:"15-1225",name:"sand",hex:"#cca67f"},{pantone:"15-1220",name:"latte",hex:"#c5a582"},{pantone:"16-1334",name:"tan",hex:"#b69574"},{pantone:"16-1333",name:"doe",hex:"#b98e68"},{pantone:"17-1328",name:"indian-tan",hex:"#ad8567"},{pantone:"15-1116",name:"safari",hex:"#baaa91"},{pantone:"15-1213",name:"candied-ginger",hex:"#bfa387"},{pantone:"15-1214",name:"warm-sand",hex:"#c5ae91"},{pantone:"15-1314",name:"cuban-sand",hex:"#c1a68d"},{pantone:"16-1320",name:"nougat",hex:"#b69885"},{pantone:"16-1310",name:"natural",hex:"#aa907d"},{pantone:"16-1212",name:"nomad",hex:"#b49f89"},{pantone:"13-0513",name:"frozen-dew",hex:"#d8cfb2"},{pantone:"13-1008",name:"bleached-sand",hex:"#daccb4"},{pantone:"14-1112",name:"pebble",hex:"#cab698"},{pantone:"16-0924",name:"croissant",hex:"#c4ab86"},{pantone:"16-1010",name:"incense",hex:"#af9a7e"},{pantone:"16-1315",name:"cornstalk",hex:"#a9947a"},{pantone:"17-1320",name:"tannin",hex:"#a68a6d"},{pantone:"14-0615",name:"green-haze",hex:"#cac4a4"},{pantone:"15-1217",name:"mojave-desert",hex:"#c7b595"},{pantone:"15-1119",name:"taos-taupe",hex:"#bfa77f"},{pantone:"16-1324",name:"lark",hex:"#b89b72"},{pantone:"17-1022",name:"kelp",hex:"#988467"},{pantone:"17-1028",name:"antique-bronze",hex:"#907954"},{pantone:"17-0935",name:"dull-gold",hex:"#8a6f48"},{pantone:"17-1134",name:"brown-sugar",hex:"#a17249"},{pantone:"17-1044",name:"chipmunk",hex:"#976f4c"},{pantone:"17-1327",name:"tobacco-brown",hex:"#9a7352"},{pantone:"18-1027",name:"bison",hex:"#6e4f3a"},{pantone:"18-1048",name:"monks-robe",hex:"#704822"},{pantone:"18-1033",name:"dachshund",hex:"#704f37"},{pantone:"18-1031",name:"toffee",hex:"#755139"},{pantone:"18-1130",name:"aztec",hex:"#7a5747"},{pantone:"18-1222",name:"cocoa-brown",hex:"#6c5043"},{pantone:"18-1124",name:"partridge",hex:"#725440"},{pantone:"19-1230",name:"friar-brown",hex:"#6e493a"},{pantone:"19-1217",name:"mustang",hex:"#684b40"},{pantone:"19-1121",name:"pinecone",hex:"#61473b"},{pantone:"19-1218",name:"potting-soil",hex:"#54392d"},{pantone:"18-1022",name:"ermine",hex:"#836b4f"},{pantone:"18-1018",name:"otter",hex:"#7f674f"},{pantone:"18-0920",name:"kangaroo",hex:"#725e,43"},{pantone:"18-0928",name:"sepia",hex:"#6b543e"},{pantone:"18-0930",name:"coffee-liqueur",hex:"#6a513b"},{pantone:"19-0815",name:"desert-palm",hex:"#5a4632"},{pantone:"19-0617",name:"teak",hex:"#655341"},{pantone:"18-1015",name:"shitake",hex:"#736253"},{pantone:"18-1016",name:"cub",hex:"#6e5c4b"},{pantone:"19-1116",name:"carafe",hex:"#5d473a"},{pantone:"19-1020",name:"dark-earth",hex:"#5c4939"},{pantone:"19-0814",name:"slate-black",hex:"#4b3d33"},{pantone:"19-0912",name:"chocolate-brown",hex:"#4e403b"},{pantone:"19-0712",name:"demitasse",hex:"#40342b"},{pantone:"18-1312",name:"deep-taupe",hex:"#7b6660"},{pantone:"19-1213",name:"shopping-bag",hex:"#5a4743"},{pantone:"19-1118",name:"chestnut",hex:"#584039"},{pantone:"19-1015",name:"bracken",hex:"#4f3f3b"},{pantone:"19-1314",name:"seal-brown",hex:"#493b39"},{pantone:"19-1016",name:"java",hex:"#433331"},{pantone:"19-0915",name:"coffee-bean",hex:"#40312f"},{pantone:"12-1006",name:"mother-of-pearl",hex:"#e9d4c3"},{pantone:"12-1007",name:"pastel-rose-tan",hex:"#e9d1bf"},{pantone:"12-1005",name:"novelle-peach",hex:"#e7cfbd"},{pantone:"12-0807",name:"sun-kiss",hex:"#ebd1bb"},{pantone:"13-1011",name:"ivory-cream",hex:"#dac0a7"},{pantone:"14-1210",name:"shifting-sand",hex:"#d8c0ad"},{pantone:"13-1013",name:"appleblossom",hex:"#ddbca0"},{pantone:"12-0601",name:"eggnog",hex:"#ece1d3"},{pantone:"13-1108",name:"cream-tan",hex:"#e4c7b8"},{pantone:"13-1106",name:"sand-dollar",hex:"#decdbe"},{pantone:"14-1209",name:"smoke-gray",hex:"#cebaa8"},{pantone:"15-1308",name:"doeskin",hex:"#bdab9b"},{pantone:"15-1215",name:"sesame",hex:"#baa38b"},{pantone:"16-1210",name:"light-taupe",hex:"#b19d8d"},{pantone:"16-1318",name:"warm-taupe",hex:"#af9483"},{pantone:"16-1412",name:"stucco",hex:"#a58d7f"},{pantone:"16-1415",name:"almondine",hex:"#a78c8b"},{pantone:"16-1414",name:"chanterelle",hex:"#a28776"},{pantone:"17-1418",name:"ginger-snap",hex:"#977d70"},{pantone:"17-1321",name:"woodsmoke",hex:"#947764"},{pantone:"17-1319",name:"amphora",hex:"#9f8672"},{pantone:"15-1309",name:"moonlight",hex:"#c5b1a0"},{pantone:"14-1212",name:"frappe",hex:"#d1b7a0"},{pantone:"15-1315",name:"rugby-tan",hex:"#c2a594"},{pantone:"16-1221",name:"roebuck",hex:"#b09080"},{pantone:"17-1223",name:"praline",hex:"#ad8b75"},{pantone:"17-1322",name:"burro",hex:"#947764"},{pantone:"17-1417",name:"beaver-fur",hex:"#997867"},{pantone:"14-1213",name:"toasted-almond",hex:"#d2b49c"},{pantone:"17-1225",name:"tawny-birch",hex:"#ae856c"},{pantone:"16-1323",name:"macaroon",hex:"#b38b71"},{pantone:"17-1226",name:"tawny-brown",hex:"#ab856f"},{pantone:"17-1224",name:"camel",hex:"#b0846a"},{pantone:"16-1331",name:"toast",hex:"#ca9978"},{pantone:"16-1327",name:"toasted-nut",hex:"#c08768"},{pantone:"12-0911",name:"nude",hex:"#f2d3bc"},{pantone:"12-0912",name:"tender-peach",hex:"#f8d5b8"},{pantone:"12-0913",name:"alesan",hex:"#f1ceb3"},{pantone:"12-0915",name:"pale-peach",hex:"#fed1bd"},{pantone:"12-1011",name:"peach-puree",hex:"#efcfba"},{pantone:"13-1114",name:"bellini",hex:"#f4c9b1"},{pantone:"14-1217",name:"amberlight",hex:"#e2bea2"},{pantone:"12-1107",name:"peach-dust",hex:"#f0d8cc"},{pantone:"12-1008",name:"linen",hex:"#edd2c0"},{pantone:"12-1010",name:"scallop-shell",hex:"#fbd8c9"},{pantone:"12-1209",name:"soft-pink",hex:"#f2d8cd"},{pantone:"13-1404",name:"pale-dogwood",hex:"#edcdc2"},{pantone:"12-1206",name:"silver-peony",hex:"#e7cfc7"},{pantone:"14-1307",name:"rose-dust",hex:"#cdb2a5"},{pantone:"13-1405",name:"shell",hex:"#e1cfc6"},{pantone:"13-1107",name:"whisper-pink",hex:"#dacbbe"},{pantone:"12-1404",name:"pink-tint",hex:"#dbcbbd"},{pantone:"14-1311",name:"evening-sand",hex:"#ddb6ab"},{pantone:"15-1317",name:"sirocco",hex:"#c39d88"},{pantone:"16-1317",name:"brush",hex:"#b99984"},{pantone:"17-1227",name:"cafe-au-lait",hex:"#ae8774"},{pantone:"14-1310",name:"cameo-rose",hex:"#d7b8ab"},{pantone:"14-1312",name:"pale-blush",hex:"#e4bfb3"},{pantone:"14-1313",name:"rose-cloud",hex:"#dbb0a2"},{pantone:"14-1314",name:"spanish-villa",hex:"#dfbaa9"},{pantone:"15-1316",name:"maple-sugar",hex:"#c9a38d"},{pantone:"16-1219",name:"tuscany",hex:"#be9785"},{pantone:"16-1422",name:"cork",hex:"#ba8671"},{pantone:"13-1109",name:"bisque",hex:"#edcab5"},{pantone:"15-1319",name:"almost-apricot",hex:"#e5b39b"},{pantone:"15-1318",name:"pink-sand",hex:"#dfb19b"},{pantone:"14-1220",name:"peach-nougat",hex:"#e6af91"},{pantone:"15-1327",name:"peach-bloom",hex:"#d99b7c"},{pantone:"15-1322",name:"dusty-coral",hex:"#d29b83"},{pantone:"16-1220",name:"cafe-creme",hex:"#c79685"},{pantone:"16-1235",name:"sandstorm",hex:"#bd8b69"},{pantone:"16-1341",name:"butterum",hex:"#c68f65"},{pantone:"16-1336",name:"biscuit",hex:"#b4835b"},{pantone:"17-1137",name:"cashew",hex:"#a47149"},{pantone:"16-1432",name:"almond",hex:"#a7754d"},{pantone:"17-1330",name:"lion",hex:"#a0714f"},{pantone:"18-1030",name:"thrush",hex:"#936b4f"},{pantone:"17-1230",name:"mocha-mousse",hex:"#a47864"},{pantone:"17-1430",name:"pecan-brown",hex:"#a36e51"},{pantone:"17-1143",name:"hazel",hex:"#ae7250"},{pantone:"17-1336",name:"bran",hex:"#a66e4a"},{pantone:"17-1340",name:"adobe",hex:"#a3623b"},{pantone:"18-1142",name:"leather-brown",hex:"#97572b"},{pantone:"18-1154",name:"glazed-ginger",hex:"#91552b"},{pantone:"16-1328",name:"sandstone",hex:"#c48a69"},{pantone:"16-1439",name:"caramel",hex:"#c37c54"},{pantone:"17-1147",name:"amber-brown",hex:"#a66646"},{pantone:"18-1239",name:"sierra",hex:"#985c41"},{pantone:"18-1244",name:"ginger-bread",hex:"#8c4a2f"},{pantone:"18-1140",name:"mocha-bisque",hex:"#8c543a"},{pantone:"19-1241",name:"tortoise-shell",hex:"#754734"},{pantone:"16-1332",name:"pheasant",hex:"#c68463"},{pantone:"16-1429",name:"sunburn",hex:"#b37256"},{pantone:"17-1436",name:"raw-sienna",hex:"#b9714f"},{pantone:"17-1347",name:"autumn-leaf",hex:"#b56a4c"},{pantone:"18-1450",name:"mecca-orange",hex:"#bd5745"},{pantone:"18-1248",name:"rust",hex:"#b55a30"},{pantone:"18-1250",name:"bombay-brown",hex:"#9f5130"},{pantone:"13-1012",name:"frosted-almond",hex:"#d2c2ac"},{pantone:"14-1012",name:"gilded-beige",hex:"#b39f8d"},{pantone:"15-0927",name:"pale-gold",hex:"#bd9865"},{pantone:"16-0836",name:"rich-gold",hex:"#c8b273"},{pantone:"16-1325",name:"copper",hex:"#c47e5a"},{pantone:"18-1537",name:"copper-coin",hex:"#ba6b57"},{pantone:"14-5002",name:"silver",hex:"#a2a2a1"},{pantone:"17-1422",name:"raw-umber",hex:"#92705f"},{pantone:"18-1321",name:"brownie",hex:"#8f7265"},{pantone:"18-1314",name:"acorn",hex:"#7e5e52"},{pantone:"18-1320",name:"clove",hex:"#876155"},{pantone:"18-1229",name:"carob-brown",hex:"#855c4c"},{pantone:"18-1235",name:"russet",hex:"#8f5f50"},{pantone:"18-1137",name:"rawhide",hex:"#86,5e,49"},{pantone:"18-1433",name:"chutney",hex:"#98594b"},{pantone:"18-1441",name:"baked-clay",hex:"#9c5642"},{pantone:"18-1336",name:"copper-brown",hex:"#9a6051"},{pantone:"18-1242",name:"brown-patina",hex:"#834f3d"},{pantone:"18-1238",name:"rustic-brown",hex:"#855141"},{pantone:"18-1230",name:"coconut-shell",hex:"#874e3c"},{pantone:"19-1333",name:"sequoia",hex:"#804839"},{pantone:"19-1228",name:"root-beer",hex:"#714a41"},{pantone:"19-1235",name:"brunette",hex:"#664238"},{pantone:"19-1320",name:"sable",hex:"#6e403c"},{pantone:"19-1436",name:"cinnamon",hex:"#6b4139"},{pantone:"19-1431",name:"fudgesickle",hex:"#63403a"},{pantone:"19-1430",name:"mink",hex:"#734b42"},{pantone:"19-1220",name:"cappuccino",hex:"#633f33"},{pantone:"18-1421",name:"cognac",hex:"#8b645a"},{pantone:"18-1326",name:"nutmeg",hex:"#7e5c54"},{pantone:"19-1012",name:"french-roast",hex:"#58423f"},{pantone:"19-1420",name:"deep-mahogany",hex:"#553b39"},{pantone:"19-1321",name:"rum-raisin",hex:"#583432"},{pantone:"19-1322",name:"brown-stone",hex:"#593c39"},{pantone:"19-1317",name:"bitter-chocolate",hex:"#503130"},{pantone:"18-1425",name:"mahogany",hex:"#824d46"},{pantone:"19-1334",name:"henna",hex:"#7c423c"},{pantone:"19-1245",name:"arabian-spice",hex:"#884332"},{pantone:"19-1325",name:"hot-chocolate",hex:"#683b39"},{pantone:"19-1338",name:"russet-brown",hex:"#743332"},{pantone:"19-1331",name:"madder-brown",hex:"#6a3331"},{pantone:"19-1327",name:"andorra",hex:"#603535"},{pantone:"11-0510",name:"afterglow",hex:"#f3e6c9"},{pantone:"11-0617",name:"transparent-yellow",hex:"#f4ecc2"},{pantone:"12-0715",name:"double-cream",hex:"#f3e0ac"},{pantone:"13-0822",name:"sunlight",hex:"#edd59e"},{pantone:"13-0922",name:"straw",hex:"#e0c992"},{pantone:"14-0935",name:"jojoba",hex:"#dabe81"},{pantone:"14-1031",name:"rattan",hex:"#d1b272"},{pantone:"14-1110",name:"boulder",hex:"#d1be9b"},{pantone:"13-0715",name:"sea-mist",hex:"#d8c9a3"},{pantone:"13-0915",name:"reed-yellow",hex:"#dcc99e"},{pantone:"13-0613",name:"chino-green",hex:"#d9caa5"},{pantone:"14-0925",name:"parsnip",hex:"#d6c69a"},{pantone:"12-0619",name:"dusty-yellow",hex:"#d4cc9a"},{pantone:"15-0719",name:"silver-fern",hex:"#bbaa7e"},{pantone:"12-0626",name:"lemon-grass",hex:"#dcd494"},{pantone:"13-0725",name:"raffia",hex:"#dac483"},{pantone:"13-0624",name:"golden-mist",hex:"#d5cd94"},{pantone:"14-0826",name:"pampas",hex:"#cfbb7b"},{pantone:"14-0740",name:"bamboo",hex:"#d2b04c"},{pantone:"15-0643",name:"cress-green",hex:"#bca949"},{pantone:"16-0847",name:"olive-oil",hex:"#a98b2d"},{pantone:"14-0626",name:"dried-moss",hex:"#ccb97e"},{pantone:"14-0647",name:"celery",hex:"#cec153"},{pantone:"13-0640",name:"acacia",hex:"#dacd65"},{pantone:"14-0755",name:"sulphur",hex:"#ddb614"},{pantone:"15-0743",name:"oil-yellow",hex:"#c4a647"},{pantone:"16-0742",name:"green-sulphur",hex:"#ae8e2c"},{pantone:"17-0839",name:"golden-palm",hex:"#aa8805"},{pantone:"14-1025",name:"cocoon",hex:"#c9b27c"},{pantone:"14-0721",name:"hemp",hex:"#c0ad7c"},{pantone:"15-0730",name:"southern-moss",hex:"#bca66a"},{pantone:"15-0732",name:"olivenite",hex:"#c1a65c"},{pantone:"15-0636",name:"golden-green",hex:"#bdb369"},{pantone:"16-0730",name:"antique-gold",hex:"#b59e5f"},{pantone:"16-0737",name:"burnished-gold",hex:"#aa9855"},{pantone:"12-0722",name:"french-vanilla",hex:"#efe1a7"},{pantone:"11-0616",name:"pastel-yellow",hex:"#f2e6b1"},{pantone:"11-0710",name:"tender-yellow",hex:"#ededb7"},{pantone:"11-0618",name:"wax-yellow",hex:"#ede9ad"},{pantone:"12-0721",name:"lemonade",hex:"#f0e79d"},{pantone:"11-0620",name:"elfin-yellow",hex:"#eeea97"},{pantone:"12-0740",name:"limelight",hex:"#f0e87d"},{pantone:"14-0827",name:"dusky-citron",hex:"#e3cc81"},{pantone:"14-0636",name:"muted-lime",hex:"#d1c87c"},{pantone:"13-0632",name:"endive",hex:"#d2cc81"},{pantone:"13-0720",name:"custard",hex:"#e5d68e"},{pantone:"12-0633",name:"canary-yellow",hex:"#dfd87e"},{pantone:"12-0738",name:"yellow-cream",hex:"#efdc75"},{pantone:"13-0739",name:"cream-gold",hex:"#dec05f"},{pantone:"12-0642",name:"aurora",hex:"#eddd59"},{pantone:"13-0648",name:"green-sheen",hex:"#d9ce52"},{pantone:"13-0746",name:"maize",hex:"#eec843"},{pantone:"12-0643",name:"blazing-yellow",hex:"#fee715"},{pantone:"12-0752",name:"buttercup",hex:"#fae03c"},{pantone:"14-0756",name:"empire-yellow",hex:"#f7d000"},{pantone:"13-0752",name:"lemon",hex:"#f3bf08"},{pantone:"14-0848",name:"mimosa",hex:"#f0c05a"},{pantone:"13-0850",name:"aspen-gold",hex:"#ffd662"},{pantone:"13-0758",name:"dandelion",hex:"#ffd02e"},{pantone:"13-0858",name:"vibrant-yellow",hex:"#ffda29"},{pantone:"14-0760",name:"cyber-yellow",hex:"#ffd400"},{pantone:"14-0852",name:"freesia",hex:"#f3c12c"},{pantone:"13-0859",name:"lemon-chrome",hex:"#ffc300"},{pantone:"12-0720",name:"mellow-yellow",hex:"#f0dd9d"},{pantone:"12-0824",name:"pale-banana",hex:"#fae199"},{pantone:"12-0825",name:"popcorn",hex:"#f8de8d"},{pantone:"12-0727",name:"sunshine",hex:"#fade85"},{pantone:"12-0736",name:"lemon-drop",hex:"#fdd878"},{pantone:"13-0755",name:"primrose-yellow",hex:"#f6d155"},{pantone:"14-0754",name:"super-lemon",hex:"#e4bf45"},{pantone:"14-0837",name:"misted-yellow",hex:"#dab965"},{pantone:"15-0942",name:"sauterne",hex:"#c5a253"},{pantone:"16-0946",name:"honey",hex:"#ba9238"},{pantone:"16-0954",name:"arrowwood",hex:"#bc8d1f"},{pantone:"16-0953",name:"tawny-olive",hex:"#c4962c"},{pantone:"15-0850",name:"ceylon-yellow",hex:"#d4ae40"},{pantone:"15-0751",name:"lemon-curry",hex:"#cda323"},{pantone:"15-1132",name:"fall-leaf",hex:"#c9a86a"},{pantone:"16-1126",name:"antelope",hex:"#b19664"},{pantone:"16-1133",name:"mustard-gold",hex:"#b08e51"},{pantone:"16-0948",name:"harvest-gold",hex:"#b68a3a"},{pantone:"16-0952",name:"nugget-gold",hex:"#c89720"},{pantone:"15-0948",name:"golden-spice",hex:"#c6973f"},{pantone:"15-0953",name:"golden-yellow",hex:"#cb8e16"},{pantone:"14-1036",name:"ochre",hex:"#d6af66"},{pantone:"16-0945",name:"tinsel",hex:"#c3964d"},{pantone:"16-0947",name:"bright-gold",hex:"#cf9f52"},{pantone:"15-1142",name:"honey-gold",hex:"#d1a054"},{pantone:"16-1139",name:"amber-gold",hex:"#c19552"},{pantone:"15-1046",name:"mineral-yellow",hex:"#d39c43"},{pantone:"16-0950",name:"narcissus",hex:"#c39449"},{pantone:"14-1113",name:"marzipan",hex:"#d8c09d"},{pantone:"16-0928",name:"curry",hex:"#be9e6f"},{pantone:"16-1326",name:"prairie-sand",hex:"#b59a6a"},{pantone:"17-1047",name:"honey-mustard",hex:"#b68f52"},{pantone:"17-1129",name:"wood-thrush",hex:"#a47d43"},{pantone:"18-0940",name:"golden-brown",hex:"#91672f"},{pantone:"18-0937",name:"bronze-brown",hex:"#825e2f"},{pantone:"17-1045",name:"apple-cinnamon",hex:"#b0885a"},{pantone:"17-1128",name:"bone-brown",hex:"#9d7446"},{pantone:"17-1125",name:"dijon",hex:"#97754c"},{pantone:"17-1036",name:"bistre",hex:"#98754a"},{pantone:"17-0942",name:"medal-bronze",hex:"#977547"},{pantone:"18-0939",name:"cumin",hex:"#927240"},{pantone:"19-1034",name:"breen",hex:"#795d34"},{pantone:"13-0840",name:"snapdragon",hex:"#fed777"},{pantone:"13-0941",name:"banana-cream",hex:"#ffcf73"},{pantone:"14-0850",name:"daffodil",hex:"#fdc04e"},{pantone:"14-0846",name:"yolk-yellow",hex:"#e2b051"},{pantone:"14-0951",name:"golden-rod",hex:"#e2a829"},{pantone:"15-0955",name:"old-gold",hex:"#eca825"},{pantone:"14-0957",name:"spectra-yellow",hex:"#f7b718"},{pantone:"12-0826",name:"golden-haze",hex:"#fbd897"},{pantone:"14-0936",name:"sahara-sun",hex:"#dfc08a"},{pantone:"14-1038",name:"new-wheat",hex:"#d7b57f"},{pantone:"13-0932",name:"cornsilk",hex:"#edc373"},{pantone:"14-0847",name:"buff-yellow",hex:"#f1bf70"},{pantone:"13-0940",name:"sunset-gold",hex:"#f7c46c"},{pantone:"13-0939",name:"golden-cream",hex:"#f7b768"},{pantone:"13-1025",name:"impala",hex:"#f8ce97"},{pantone:"13-0935",name:"flax",hex:"#ffc87d"},{pantone:"13-0945",name:"pale-marigold",hex:"#ffc66e"},{pantone:"13-0942",name:"amber-yellow",hex:"#fab75a"},{pantone:"14-1045",name:"amber",hex:"#efad55"},{pantone:"14-1041",name:"golden-apricot",hex:"#dda758"},{pantone:"14-0941",name:"beeswax",hex:"#eba851"},{pantone:"13-0947",name:"banana",hex:"#fcb953"},{pantone:"14-0955",name:"citrus",hex:"#f9ac2f"},{pantone:"15-1050",name:"golden-glow",hex:"#d99938"},{pantone:"15-1049",name:"artisans-gold",hex:"#f2ab46"},{pantone:"16-1054",name:"sunflower",hex:"#d39237"},{pantone:"18-0935",name:"buckthorn-brown",hex:"#a76f1f"},{pantone:"18-0950",name:"cathay-spice",hex:"#99642c"},{pantone:"16-0940",name:"taffy",hex:"#c39b6a"},{pantone:"16-1144",name:"oak-buff",hex:"#cf9c63"},{pantone:"16-1143",name:"honey-yellow",hex:"#ca9456"},{pantone:"17-1040",name:"spruce-yellow",hex:"#be8a4a"},{pantone:"17-1048",name:"inca-gold",hex:"#bb7a2c"},{pantone:"18-1160",name:"sudan-brown",hex:"#ac6b29"},{pantone:"18-0933",name:"rubber",hex:"#815b37"},{pantone:"13-1016",name:"wheat",hex:"#dec5a5"},{pantone:"13-1015",name:"honey-peach",hex:"#dcbd9e"},{pantone:"13-1018",name:"desert-dust",hex:"#e3bc8e"},{pantone:"12-0921",name:"golden-straw",hex:"#e6bd8f"},{pantone:"13-1024",name:"buff",hex:"#ebc396"},{pantone:"14-1127",name:"desert-mist",hex:"#e0b589"},{pantone:"15-1231",name:"clay",hex:"#d2a172"},{pantone:"12-0822",name:"golden-fleece",hex:"#f2d1a0"},{pantone:"13-1031",name:"apricot-sherbet",hex:"#facd9e"},{pantone:"13-1030",name:"sunburst",hex:"#f6c289"},{pantone:"13-1027",name:"apricot-cream",hex:"#f1bd89"},{pantone:"14-1128",name:"buff-orange",hex:"#ffbb7c"},{pantone:"15-1145",name:"chamois",hex:"#f7b26a"},{pantone:"14-1051",name:"warm-apricot",hex:"#ffb865"},{pantone:"14-1050",name:"marigold",hex:"#fadc53"},{pantone:"16-1142",name:"golden-nugget",hex:"#db9b59"},{pantone:"15-1147",name:"butterscotch",hex:"#e19640"},{pantone:"16-1148",name:"nugget",hex:"#cf8848"},{pantone:"16-1342",name:"buckskin",hex:"#d18e54"},{pantone:"16-1140",name:"yam",hex:"#d0893f"},{pantone:"17-1046",name:"golden-oak",hex:"#be752d"},{pantone:"15-1062",name:"gold-fusion",hex:"#ffb000"},{pantone:"14-1064",name:"saffron",hex:"#ffa500"},{pantone:"15-1054",name:"cadmium-yellow",hex:"#ee9626"},{pantone:"14-1159",name:"zinnia",hex:"#ffa010"},{pantone:"15-1058",name:"radiant-yellow",hex:"#fc9e21"},{pantone:"15-1153",name:"apricot",hex:"#f19035"},{pantone:"15-1150",name:"dark-cheddar",hex:"#e08119"},{pantone:"13-1020",name:"apricot-ice",hex:"#fbbe99"},{pantone:"14-1133",name:"apricot-nectar",hex:"#ecaa79"},{pantone:"15-1234",name:"gold-earth",hex:"#dd9c6b"},{pantone:"15-1237",name:"apricot-tan",hex:"#dd9760"},{pantone:"16-1150",name:"topaz",hex:"#d08344"},{pantone:"16-1346",name:"golden-ochre",hex:"#c77943"},{pantone:"16-1443",name:"apricot-buff",hex:"#cd7e4d"},{pantone:"14-1231",name:"peach-cobbler",hex:"#ffb181"},{pantone:"14-1135",name:"salmon-buff",hex:"#feaa7b"},{pantone:"14-1139",name:"pumpkin",hex:"#f5a26f"},{pantone:"15-1245",name:"mock-orange",hex:"#ffa368"},{pantone:"15-1242",name:"muskmelon",hex:"#ec935e"},{pantone:"16-1338",name:"copper-tan",hex:"#de8e65"},{pantone:"16-1337",name:"coral-gold",hex:"#d27d56"},{pantone:"16-1255",name:"russet-orange",hex:"#e47127"},{pantone:"16-1253",name:"orange-ochre",hex:"#dc793a"},{pantone:"16-1350",name:"amberglow",hex:"#dc793e"},{pantone:"16-1454",name:"jaffa-orange",hex:"#d86d39"},{pantone:"17-1353",name:"apricot-orange",hex:"#c86b3c"},{pantone:"16-1448",name:"burnt-orange",hex:"#c86733"},{pantone:"16-1260",name:"harvest-pumpkin",hex:"#d56231"},{pantone:"15-1160",name:"blazing-orange",hex:"#ffa64f"},{pantone:"15-1157",name:"flame-orange",hex:"#fb8b23"},{pantone:"15-1164",name:"bright-marigold",hex:"#ff8d00"},{pantone:"15-1263",name:"autumn-glory",hex:"#ff8812"},{pantone:"16-1257",name:"sun-orange",hex:"#f48037"},{pantone:"16-1356",name:"persimmon-orange",hex:"#f47327"},{pantone:"17-1350",name:"orange-popsicle",hex:"#ff7913"},{pantone:"16-1343",name:"autumn-sunset",hex:"#f38554"},{pantone:"15-1247",name:"tangerine",hex:"#f88f58"},{pantone:"16-1357",name:"bird-of-paradise",hex:"#ff8c55"},{pantone:"16-1359",name:"orange-peel",hex:"#fa7a35"},{pantone:"16-1459",name:"mandarin-orange",hex:"#ec6a37"},{pantone:"16-1462",name:"golden-poppy",hex:"#f56733"},{pantone:"16-1364",name:"vibrant-orange",hex:"#ff7420"},{pantone:"16-1360",name:"nectarine",hex:"#ff8656"},{pantone:"16-1349",name:"coral-rose",hex:"#f3774d"},{pantone:"16-1361",name:"carrot",hex:"#fd6f3b"},{pantone:"16-1452",name:"firecracker",hex:"#f36944"},{pantone:"17-1464",name:"red-orange",hex:"#f05627"},{pantone:"16-1362",name:"vermillion-orange",hex:"#f9633b"},{pantone:"17-1462",name:"flame",hex:"#f2552c"},{pantone:"13-1026",name:"creampuff",hex:"#ffcda8"},{pantone:"12-0917",name:"bleached-apricot",hex:"#fccaac"},{pantone:"13-1017",name:"almond-cream",hex:"#f4c29f"},{pantone:"14-1225",name:"beach-sand",hex:"#fbb995"},{pantone:"13-1019",name:"cream-blush",hex:"#f8c19a"},{pantone:"13-1022",name:"caramel-cream",hex:"#f4ba94"},{pantone:"13-1023",name:"peach-fuzz",hex:"#ffbe98"},{pantone:"13-1021",name:"prairie-sunset",hex:"#ffbb9e"},{pantone:"14-1224",name:"coral-sands",hex:"#edaa86"},{pantone:"14-1230",name:"apricot-wash",hex:"#fbac82"},{pantone:"15-1333",name:"canyon-sunset",hex:"#e1927a"},{pantone:"16-1340",name:"brandied-melon",hex:"#ce7b5b"},{pantone:"16-1435",name:"carnelian",hex:"#ce785d"},{pantone:"17-1446",name:"mango",hex:"#b75e41"},{pantone:"14-1227",name:"peach",hex:"#f2a987"},{pantone:"15-1239",name:"cantaloupe",hex:"#ffa177"},{pantone:"15-1331",name:"coral-reef",hex:"#faa181"},{pantone:"15-1334",name:"shell-coral",hex:"#ea9575"},{pantone:"15-1340",name:"cadmium-orange",hex:"#f99471"},{pantone:"16-1442",name:"melon",hex:"#fe8863"},{pantone:"16-1344",name:"dusty-orange",hex:"#e27a53"},{pantone:"16-1441",name:"arabesque",hex:"#d16f52"},{pantone:"16-1440",name:"langoustino",hex:"#ca6c56"},{pantone:"17-1444",name:"ginger",hex:"#c96551"},{pantone:"16-1450",name:"flamingo",hex:"#df7253"},{pantone:"18-1447",name:"orange-rust",hex:"#c25a3c"},{pantone:"18-1354",name:"burnt-ochre",hex:"#bb4f35"},{pantone:"18-1448",name:"chili",hex:"#be5141"},{pantone:"18-1535",name:"ginger-spice",hex:"#b65d48"},{pantone:"18-1451",name:"autumn-glaze",hex:"#b3573f"},{pantone:"18-1343",name:"auburn",hex:"#a15843"},{pantone:"19-1250",name:"picante",hex:"#8d3f2d"},{pantone:"18-1444",name:"tandori-spice",hex:"#9f4440"},{pantone:"18-1540",name:"cinnabar",hex:"#9c453b"},{pantone:"18-1547",name:"bossa-nova",hex:"#973a36"},{pantone:"13-1318",name:"tropical-peach",hex:"#ffc4b2"},{pantone:"14-1219",name:"peach-parfait",hex:"#f8bfa8"},{pantone:"14-1318",name:"coral-pink",hex:"#e8a798"},{pantone:"14-1316",name:"dusty-pink",hex:"#deaa9b"},{pantone:"16-1330",name:"muted-clay",hex:"#d29380"},{pantone:"15-1523",name:"shrimp",hex:"#e29a86"},{pantone:"17-1341",name:"tawny-orange",hex:"#d37f6f"},{pantone:"16-1329",name:"coral-haze",hex:"#e38e84"},{pantone:"16-1431",name:"canyon-clay",hex:"#ce8477"},{pantone:"16-1526",name:"terra-cotta",hex:"#d38377"},{pantone:"17-1524",name:"desert-sand",hex:"#bd7b74"},{pantone:"18-1436",name:"light-mahogany",hex:"#ad6d68"},{pantone:"17-1525",name:"cedar-wood",hex:"#a1655b"},{pantone:"18-1435",name:"withered-rose",hex:"#a26666"},{pantone:"16-1522",name:"rose-dawn",hex:"#c2877b"},{pantone:"17-1514",name:"ash-rose",hex:"#b5817d"},{pantone:"17-1518",name:"old-rose",hex:"#b47b77"},{pantone:"17-1424",name:"brick-dust",hex:"#b07069"},{pantone:"17-1520",name:"canyon-rose",hex:"#af6c67"},{pantone:"18-1630",name:"dusty-cedar",hex:"#ad5d5d"},{pantone:"18-1438",name:"marsala",hex:"#964f4c"},{pantone:"17-1540",name:"apricot-brandy",hex:"#c26a5a"},{pantone:"17-1532",name:"aragon",hex:"#b06455"},{pantone:"18-1536",name:"hot-sauce",hex:"#ab4f41"},{pantone:"18-1346",name:"bruschetta",hex:"#a75949"},{pantone:"18-1434",name:"etruscan-red",hex:"#a2574b"},{pantone:"18-1443",name:"redwood",hex:"#a6594c"},{pantone:"18-1350",name:"burnt-brick",hex:"#a14d3a"},{pantone:"18-1629",name:"faded-rose",hex:"#bf6464"},{pantone:"18-1648",name:"baked-apple",hex:"#b34646"},{pantone:"18-1658",name:"pompeian-red",hex:"#a4292e"},{pantone:"18-1449",name:"ketchup",hex:"#9a382d"},{pantone:"18-1442",name:"red-ochre",hex:"#913832"},{pantone:"18-1531",name:"barn-red",hex:"#8f423b"},{pantone:"19-1540",name:"burnt-henna",hex:"#7e392f"},{pantone:"14-1419",name:"peach-pearl",hex:"#ffb2a5"},{pantone:"14-1418",name:"peach-melba",hex:"#fbbdaf"},{pantone:"14-1420",name:"apricot-blush",hex:"#feaea5"},{pantone:"14-1324",name:"peach-bud",hex:"#fdb2ab"},{pantone:"16-1434",name:"coral-almond",hex:"#e29d94"},{pantone:"16-1520",name:"lobster-bisque",hex:"#dd9289"},{pantone:"16-1624",name:"lantana",hex:"#da7e7a"},{pantone:"14-1228",name:"peach-nectar",hex:"#ffb59b"},{pantone:"14-1323",name:"salmon",hex:"#faaa94"},{pantone:"15-1423",name:"peach-amber",hex:"#fb9f93"},{pantone:"15-1435",name:"desert-flower",hex:"#ff9687"},{pantone:"15-1530",name:"peach-pink",hex:"#fa9a85"},{pantone:"16-1529",name:"burnt-coral",hex:"#e9897e"},{pantone:"16-1532",name:"crabapple",hex:"#d77e70"},{pantone:"15-1433",name:"papaya-punch",hex:"#fca289"},{pantone:"16-1543",name:"fusion-coral",hex:"#ff8576"},{pantone:"16-1542",name:"fresh-salmon",hex:"#ff7f6a"},{pantone:"16-1544",name:"persimmon",hex:"#f67866"},{pantone:"16-1539",name:"coral",hex:"#ed7464"},{pantone:"16-1546",name:"living-coral",hex:"#ff6f61"},{pantone:"17-1656",name:"hot-coral",hex:"#f35b53"},{pantone:"16-1632",name:"shell-pink",hex:"#f88180"},{pantone:"16-1641",name:"georgia-peach",hex:"#f97272"},{pantone:"16-1640",name:"sugar-coral",hex:"#f56c73"},{pantone:"17-1647",name:"dubarry",hex:"#f25f66"},{pantone:"17-1643",name:"porcelain-rose",hex:"#ea6b6a"},{pantone:"17-1644",name:"spiced-coral",hex:"#d75c5d"},{pantone:"18-1649",name:"deep-sea-coral",hex:"#d9615b"},{pantone:"17-1635",name:"rose-of-sharon",hex:"#dc5b62"},{pantone:"18-1651",name:"cayenne",hex:"#e04951"},{pantone:"18-1762",name:"hibiscus",hex:"#dd3848"},{pantone:"17-1654",name:"poinsettia",hex:"#cb3441"},{pantone:"17-1641",name:"chrysanthemum",hex:"#be454f"},{pantone:"17-1545",name:"cranberry",hex:"#bb4a4d"},{pantone:"18-1643",name:"cardinal",hex:"#ad3e48"},{pantone:"17-1456",name:"tigerlily",hex:"#e2583e"},{pantone:"17-1558",name:"grenadine",hex:"#df3f32"},{pantone:"17-1562",name:"mandarin-red",hex:"#e74a33"},{pantone:"17-1564",name:"fiesta",hex:"#dd4132"},{pantone:"17-1563",name:"cherry-tomato",hex:"#eb3c27"},{pantone:"18-1561",name:"orange-com",hex:"#da321c"},{pantone:"18-1445",name:"spicy-orange",hex:"#d73c26"},{pantone:"16-1541",name:"camellia",hex:"#f6745f"},{pantone:"16-1451",name:"nasturtium",hex:"#fe6347"},{pantone:"17-1547",name:"emberglow",hex:"#ea6759"},{pantone:"17-1544",name:"burnt-sienna",hex:"#c65d52"},{pantone:"17-1553",name:"paprika",hex:"#ce4d42"},{pantone:"18-1454",name:"red-clay",hex:"#c2452d"},{pantone:"18-1555",name:"molten-lava",hex:"#b5332e"},{pantone:"17-1663",name:"bittersweet",hex:"#d93744"},{pantone:"17-1664",name:"poppy-red",hex:"#dc343b"},{pantone:"18-1660",name:"tomato",hex:"#ce2939"},{pantone:"18-1664",name:"fiery-red",hex:"#d01c1f"},{pantone:"18-1662",name:"flame-scarlet",hex:"#cd212a"},{pantone:"18-1763",name:"high-risk-red",hex:"#c71f2d"},{pantone:"18-1550",name:"aurora-red",hex:"#b93a32"},{pantone:"18-1652",name:"rococco-red",hex:"#bb363f"},{pantone:"18-1661",name:"tomato-puree",hex:"#c53346"},{pantone:"18-1764",name:"lollipop",hex:"#cc1c3b"},{pantone:"18-1761",name:"ski-patrol",hex:"#bb1237"},{pantone:"19-1760",name:"scarlet",hex:"#bc2b3d"},{pantone:"19-1764",name:"lipstick-red",hex:"#b31a38"},{pantone:"19-1762",name:"crimson",hex:"#ae0e36"},{pantone:"19-1763",name:"racing-red",hex:"#bd162c"},{pantone:"18-1655",name:"mars-red",hex:"#bc2731"},{pantone:"19-1761",name:"tango-red",hex:"#ac0e2e"},{pantone:"18-1663",name:"chinese-red",hex:"#be132d"},{pantone:"19-1663",name:"ribbon-red",hex:"#b92636"},{pantone:"19-1664",name:"true-red",hex:"#bf1932"},{pantone:"19-1557",name:"chili-pepper",hex:"#9b1b30"},{pantone:"14-1714",name:"quartz-pink",hex:"#efa6aa"},{pantone:"15-1717",name:"pink-icing",hex:"#eea0a6"},{pantone:"14-1513",name:"blossom",hex:"#f2b2ae"},{pantone:"14-1521",name:"peaches-n-cream",hex:"#f4a6a3"},{pantone:"15-1621",name:"candlelight-peach",hex:"#f8a39d"},{pantone:"16-1720",name:"strawberry-ice",hex:"#e78b90"},{pantone:"16-1626",name:"peach-blossom",hex:"#de8286"},{pantone:"15-1821",name:"flamingo-pink",hex:"#f7969e"},{pantone:"16-1723",name:"confetti",hex:"#e6798e"},{pantone:"17-1928",name:"bubblegum",hex:"#ea738d"},{pantone:"16-1735",name:"pink-lemonade",hex:"#ee6d8a"},{pantone:"17-1930",name:"camellia-rose",hex:"#eb6081"},{pantone:"17-1929",name:"rapture-rose",hex:"#d16277"},{pantone:"17-1927",name:"desert-rose",hex:"#cf6977"},{pantone:"15-1922",name:"geranium-pink",hex:"#f6909d"},{pantone:"15-1624",name:"conch-shell",hex:"#fc8f9b"},{pantone:"15-1626",name:"salmon-rose",hex:"#ff8d94"},{pantone:"16-1731",name:"strawberry-pink",hex:"#f57f8e"},{pantone:"17-1736",name:"sunkist-coral",hex:"#ea6676"},{pantone:"17-1744",name:"calypso-coral",hex:"#ee5c6c"},{pantone:"16-1620",name:"tea-rose",hex:"#dc7178"},{pantone:"17-1753",name:"geranium",hex:"#da3d58"},{pantone:"17-1755",name:"paradise-pink",hex:"#e4445e"},{pantone:"18-1756",name:"teaberry",hex:"#dc3855"},{pantone:"18-1755",name:"rouge-red",hex:"#e24666"},{pantone:"18-1754",name:"raspberry",hex:"#d32e5e"},{pantone:"17-1842",name:"azalea",hex:"#d42e5b"},{pantone:"18-1856",name:"virtual-pink",hex:"#c6174e"},{pantone:"17-1740",name:"claret-red",hex:"#c84c61"},{pantone:"18-1741",name:"raspberry-wine",hex:"#b63753"},{pantone:"18-1852",name:"rose-red",hex:"#c92351"},{pantone:"18-1760",name:"barberry",hex:"#bf1945"},{pantone:"18-1945",name:"bright-rose",hex:"#c51959"},{pantone:"19-1860",name:"persian-red",hex:"#a21441"},{pantone:"19-1955",name:"cerise",hex:"#a41247"},{pantone:"13-2806",name:"pink-lady",hex:"#efc1d6"},{pantone:"14-2710",name:"lilac-sachet",hex:"#e9adca"},{pantone:"14-2311",name:"prism-pink",hex:"#f0a1bf"},{pantone:"15-2215",name:"begonia-pink",hex:"#ec9abe"},{pantone:"15-2718",name:"fuchsia-pink",hex:"#df88b7"},{pantone:"15-2214",name:"rosebloom",hex:"#e290b2"},{pantone:"17-2520",name:"ibis-rose",hex:"#ca628f"},{pantone:"15-2216",name:"sachet-pink",hex:"#f18aad"},{pantone:"16-2120",name:"wild-orchid",hex:"#d979a2"},{pantone:"15-2217",name:"aurora-pink",hex:"#e881a6"},{pantone:"17-2120",name:"chateau-rose",hex:"#d2738f"},{pantone:"15-1920",name:"morning-glory",hex:"#ee819f"},{pantone:"16-2126",name:"azalea-pink",hex:"#e96a97"},{pantone:"17-2127",name:"shocking-pink",hex:"#de5b8c"},{pantone:"17-1937",name:"hot-pink",hex:"#e55982"},{pantone:"17-2033",name:"fandango-pink",hex:"#e04f80"},{pantone:"18-2120",name:"honeysuckle",hex:"#d94f70"},{pantone:"18-2043",name:"raspberry-sorbet",hex:"#d2386c"},{pantone:"17-1831",name:"carmine",hex:"#bc4869"},{pantone:"17-2031",name:"fuchsia-rose",hex:"#c74375"},{pantone:"18-2143",name:"beetroot-purple",hex:"#cf2d71"},{pantone:"16-2124",name:"pink-carnation",hex:"#ed7a9e"},{pantone:"17-2230",name:"carmine-rose",hex:"#e35b8f"},{pantone:"17-2036",name:"magenta",hex:"#d23c77"},{pantone:"18-2133",name:"pink-flambe",hex:"#d3507a"},{pantone:"18-2436",name:"fuchsia-purple",hex:"#d33479"},{pantone:"17-2227",name:"lilac-rose",hex:"#bd4275"},{pantone:"18-2336",name:"very-berry",hex:"#b73275"},{pantone:"17-2625",name:"super-pink",hex:"#ce6ba4"},{pantone:"17-2627",name:"phlox-pink",hex:"#ce5e9a"},{pantone:"18-2333",name:"raspberry-rose",hex:"#cc4385"},{pantone:"17-2624",name:"rose-violet",hex:"#c0428a"},{pantone:"18-2328",name:"fuchsia-red",hex:"#ab3475"},{pantone:"18-2326",name:"cactus-flower",hex:"#a83e6c"},{pantone:"18-2525",name:"magenta-haze",hex:"#9d446e"},{pantone:"11-2511",name:"shrinking-violet",hex:"#f4e1e6"},{pantone:"12-2904",name:"primrose-pink",hex:"#eed4d9"},{pantone:"14-1508",name:"silver-pink",hex:"#dcb1af"},{pantone:"14-1511",name:"powder-pink",hex:"#ecb2b3"},{pantone:"16-1617",name:"mauveglow",hex:"#d18489"},{pantone:"16-1610",name:"brandied-apricot",hex:"#ca848a"},{pantone:"17-1718",name:"dusty-rose",hex:"#ba797d"},{pantone:"12-2102",name:"mauve-morn",hex:"#ecd6d6"},{pantone:"12-2902",name:"mauve-chalk",hex:"#e5d0cf"},{pantone:"12-1304",name:"pearl",hex:"#f9dbd8"},{pantone:"15-1611",name:"bridal-rose",hex:"#d69fa2"},{pantone:"15-1614",name:"blush",hex:"#d1969a"},{pantone:"18-1634",name:"baroque-rose",hex:"#b35a66"},{pantone:"18-1635",name:"slate-rose",hex:"#b45865"},{pantone:"17-1537",name:"mineral-red",hex:"#b35457"},{pantone:"18-1633",name:"garnet-rose",hex:"#ac4b55"},{pantone:"17-1633",name:"holly-berry",hex:"#b44e5d"},{pantone:"19-1759",name:"american-beauty",hex:"#a73340"},{pantone:"19-1862",name:"jester-red",hex:"#9e1030"},{pantone:"19-1656",name:"rio-red",hex:"#8a2232"},{pantone:"19-1940",name:"rumba-red",hex:"#7c2439"},{pantone:"18-1631",name:"earth-red",hex:"#95424e"},{pantone:"19-1840",name:"deep-claret",hex:"#973443"},{pantone:"19-1655",name:"garnet",hex:"#953640"},{pantone:"19-1543",name:"brick-red",hex:"#8c373e"},{pantone:"19-1532",name:"rosewood",hex:"#813639"},{pantone:"19-1934",name:"tibetan-red",hex:"#782a39"},{pantone:"19-1650",name:"biking-red",hex:"#77212e"},{pantone:"18-1426",name:"apple-butter",hex:"#844b4d"},{pantone:"19-1524",name:"oxblood-red",hex:"#70393f"},{pantone:"19-1533",name:"cowhide",hex:"#884344"},{pantone:"19-1530",name:"burnt-russet",hex:"#7e3940"},{pantone:"19-1629",name:"ruby-wine",hex:"#77333b"},{pantone:"19-1726",name:"cordovan",hex:"#702f3b"},{pantone:"19-1725",name:"tawny-port",hex:"#5c2c35"},{pantone:"13-1407",name:"creole-pink",hex:"#f7d5cc"},{pantone:"13-1504",name:"peach-blush",hex:"#e4ccc6"},{pantone:"13-1406",name:"cloud-pink",hex:"#f5d1c8"},{pantone:"12-1212",name:"veiled-rose",hex:"#f8cdc9"},{pantone:"12-1207",name:"pearl-blush",hex:"#f4cec5"},{pantone:"13-1310",name:"english-rose",hex:"#f4c6c3"},{pantone:"14-1905",name:"lotus",hex:"#e2c1c0"},{pantone:"11-1408",name:"rosewater",hex:"#f6dbd8"},{pantone:"14-1309",name:"peach-whip",hex:"#dbbeb7"},{pantone:"14-1506",name:"rose-smoke",hex:"#d3b4ad"},{pantone:"15-1415",name:"coral-cloud",hex:"#e2a9a1"},{pantone:"15-1512",name:"misty-rose",hex:"#caa39a"},{pantone:"15-1516",name:"peach-beige",hex:"#d3a297"},{pantone:"16-1516",name:"cameo-brown",hex:"#c08a80"},{pantone:"13-1409",name:"seashell-pink",hex:"#f7c8c2"},{pantone:"13-1408",name:"chintz-rose",hex:"#eec4be"},{pantone:"13-1510",name:"impatiens-pink",hex:"#ffc4bc"},{pantone:"14-1907",name:"peachskin",hex:"#dfb8b6"},{pantone:"15-1515",name:"mellow-rose",hex:"#d9a6a1"},{pantone:"16-1511",name:"rose-tan",hex:"#d19c97"},{pantone:"16-1518",name:"rosette",hex:"#ce8e8b"},{pantone:"17-1522",name:"mauvewood",hex:"#a75d67"},{pantone:"17-1623",name:"rose-wine",hex:"#a4596d"},{pantone:"17-1723",name:"malaga",hex:"#9f5069"},{pantone:"18-1725",name:"dry-rose",hex:"#8c4759"},{pantone:"18-1718",name:"hawthorn-rose",hex:"#884c5e"},{pantone:"18-1619",name:"maroon",hex:"#834655"},{pantone:"18-1420",name:"wild-ginger",hex:"#7c4c53"},{pantone:"19-2047",name:"sangria",hex:"#982551"},{pantone:"19-1850",name:"red-bud",hex:"#962d49"},{pantone:"18-2027",name:"beaujolais",hex:"#80304c"},{pantone:"19-2033",name:"anemone",hex:"#842c48"},{pantone:"19-2030",name:"beet-red",hex:"#7a1f3d"},{pantone:"19-2025",name:"red-plum",hex:"#7c2946"},{pantone:"19-2024",name:"rhododendron",hex:"#722b3f"},{pantone:"12-2906",name:"barely-pink",hex:"#f8d7dd"},{pantone:"12-1310",name:"blushing-bride",hex:"#fbd3d9"},{pantone:"12-2905",name:"cradle-pink",hex:"#edd0dd"},{pantone:"13-2803",name:"pale-lilac",hex:"#e1c6cc"},{pantone:"13-1904",name:"chalk-pink",hex:"#e6c5ca"},{pantone:"12-2903",name:"light-lilac",hex:"#dec6d3"},{pantone:"14-2305",name:"pink-nectar",hex:"#d8aab7"},{pantone:"12-1305",name:"heavenly-pink",hex:"#f4dede"},{pantone:"13-2004",name:"potpourri",hex:"#e7c9ca"},{pantone:"12-1605",name:"crystal-pink",hex:"#edd0ce"},{pantone:"12-1706",name:"pink-dogwood",hex:"#f7d1d1"},{pantone:"12-1708",name:"crystal-rose",hex:"#fdc3c6"},{pantone:"13-2005",name:"strawberry-cream",hex:"#f4c3c4"},{pantone:"13-1513",name:"gossamer-pink",hex:"#fac8c3"},{pantone:"13-1906",name:"rose-shadow",hex:"#f9c2cd"},{pantone:"13-2010",name:"orchid-pink",hex:"#f3bbca"},{pantone:"13-2006",name:"almond-blossom",hex:"#f5bec7"},{pantone:"14-1909",name:"coral-blush",hex:"#e6b2b8"},{pantone:"14-1911",name:"candy-pink",hex:"#f5b0bd"},{pantone:"15-1816",name:"peony",hex:"#ed9ca8"},{pantone:"15-1912",name:"sea-pink",hex:"#de98ab"},{pantone:"16-2215",name:"cashmere-rose",hex:"#ce879f"},{pantone:"16-1715",name:"wild-rose",hex:"#ce8498"},{pantone:"15-2210",name:"orchid-smoke",hex:"#d294aa"},{pantone:"16-1712",name:"polignac",hex:"#c28799"},{pantone:"16-1708",name:"lilas",hex:"#b88995"},{pantone:"16-2111",name:"mauve-orchid",hex:"#b58299"},{pantone:"16-2107",name:"orchid-haze",hex:"#b0879b"},{pantone:"13-2804",name:"parfait-pink",hex:"#e9c3cf"},{pantone:"13-2805",name:"pink-mist",hex:"#e6bccd"},{pantone:"14-2307",name:"cameo-pink",hex:"#dba9b8"},{pantone:"14-2808",name:"sweet-lilac",hex:"#e8b5ce"},{pantone:"14-3207",name:"pink-lavender",hex:"#d9afca"},{pantone:"14-3209",name:"pastel-lavender",hex:"#d8a1c4"},{pantone:"15-3214",name:"orchid",hex:"#d198c5"},{pantone:"15-2913",name:"lilac-chiffon",hex:"#de9bc4"},{pantone:"16-2614",name:"moonlite-mauve",hex:"#d28fb0"},{pantone:"16-3118",name:"cyclamen",hex:"#d687ba"},{pantone:"16-3116",name:"opera-mauve",hex:"#ca80b1"},{pantone:"16-3115",name:"crocus",hex:"#c67fae"},{pantone:"17-3014",name:"mulberry",hex:"#a76c97"},{pantone:"18-3025",name:"striking-purple",hex:"#94,4e,87"},{pantone:"16-3320",name:"violet",hex:"#c17fb5"},{pantone:"17-3323",name:"iris-orchid",hex:"#a767a2"},{pantone:"18-3224",name:"radiant-orchid",hex:"#ad5e99"},{pantone:"17-3020",name:"spring-crocus",hex:"#ba69a1"},{pantone:"18-3230",name:"meadow-mauve",hex:"#a9568c"},{pantone:"18-3015",name:"amethyst",hex:"#864d75"},{pantone:"19-2428",name:"magenta-purple",hex:"#6b264b"},{pantone:"17-3023",name:"rosebud",hex:"#b65f9a"},{pantone:"18-3027",name:"purple-orchid",hex:"#ad4d8c"},{pantone:"19-2434",name:"festival-fuchsia",hex:"#9e2c6a"},{pantone:"18-2527",name:"baton-rouge",hex:"#973c6c"},{pantone:"19-2431",name:"boysenberry",hex:"#85325c"},{pantone:"19-2432",name:"raspberry-radiance",hex:"#802a50"},{pantone:"19-2430",name:"purple-potion",hex:"#692746"},{pantone:"17-2617",name:"dahlia-mauve",hex:"#a64f82"},{pantone:"18-3339",name:"vivid-viola",hex:"#993c7c"},{pantone:"19-2630",name:"wild-aster",hex:"#92316f"},{pantone:"18-3022",name:"deep-orchid",hex:"#903f75"},{pantone:"18-2320",name:"clover",hex:"#8a3371"},{pantone:"18-2929",name:"purple-wine",hex:"#8c3573"},{pantone:"19-2924",name:"hollyhock",hex:"#823270"},{pantone:"18-3331",name:"hyacinth-violet",hex:"#8d4687"},{pantone:"18-3324",name:"dahlia",hex:"#843e,83"},{pantone:"19-3336",name:"sparkling-grape",hex:"#773376"},{pantone:"19-3138",name:"byzantium",hex:"#853b7b"},{pantone:"19-2820",name:"phlox",hex:"#692d5d"},{pantone:"19-3230",name:"grape-juice",hex:"#682961"},{pantone:"19-3022",name:"gloxinia",hex:"#622e5a"},{pantone:"13-3801",name:"crystal-gray",hex:"#d7cbc4"},{pantone:"14-1305",name:"mushroom",hex:"#bdaca3"},{pantone:"16-1509",name:"shadow-gray",hex:"#bba5a0"},{pantone:"16-1703",name:"sphinx",hex:"#ab9895"},{pantone:"16-1506",name:"bark",hex:"#a99592"},{pantone:"16-1510",name:"fawn",hex:"#ae9490"},{pantone:"16-1508",name:"adobe-rose",hex:"#ba9f99"},{pantone:"15-1607",name:"pale-mauve",hex:"#c6a4a4"},{pantone:"16-1806",name:"woodrose",hex:"#ae8c8e"},{pantone:"16-1707",name:"deauville-mauve",hex:"#af9294"},{pantone:"18-1807",name:"twilight-mauve",hex:"#8b6f70"},{pantone:"18-1612",name:"rose-taupe",hex:"#806062"},{pantone:"18-1512",name:"rose-brown",hex:"#80565b"},{pantone:"18-1616",name:"roan-rouge",hex:"#885157"},{pantone:"17-1510",name:"antler",hex:"#957a76"},{pantone:"18-1409",name:"peppercorn",hex:"#6c5656"},{pantone:"19-1606",name:"raisin",hex:"#524144"},{pantone:"19-1620",name:"huckleberry",hex:"#5b4349"},{pantone:"19-1621",name:"catawba-grape",hex:"#5d3c43"},{pantone:"19-1518",name:"puce",hex:"#503938"},{pantone:"19-1619",name:"fudge",hex:"#493338"},{pantone:"15-1511",name:"mahogany-rose",hex:"#c5a193"},{pantone:"17-1516",name:"burlwood",hex:"#9b716b"},{pantone:"18-1415",name:"marron",hex:"#6e4c4b"},{pantone:"19-1625",name:"decadent-chocolate",hex:"#513235"},{pantone:"19-1521",name:"red-mahogany",hex:"#60373d"},{pantone:"19-1623",name:"vineyard-wine",hex:"#58363d"},{pantone:"19-2118",name:"winetasting",hex:"#492a34"},{pantone:"19-1525",name:"port",hex:"#663336"},{pantone:"19-1526",name:"chocolate-truffle",hex:"#612e,35"},{pantone:"19-1617",name:"burgundy",hex:"#64313e"},{pantone:"19-1522",name:"zinfandel",hex:"#5c2935"},{pantone:"19-1528",name:"windsor-wine",hex:"#582b36"},{pantone:"19-1627",name:"port-royale",hex:"#502b33"},{pantone:"19-1718",name:"fig",hex:"#532d3b"},{pantone:"15-2706",name:"violet-ice",hex:"#c2acb1"},{pantone:"15-1905",name:"burnished-lilac",hex:"#c5aeb1"},{pantone:"15-2705",name:"keepsake-lilac",hex:"#c0a5ae"},{pantone:"16-3205",name:"mauve-shadows",hex:"#b598a3"},{pantone:"15-2205",name:"dawn-pink",hex:"#bfa3af"},{pantone:"14-3204",name:"fragrant-lilac",hex:"#ceadbe"},{pantone:"15-3207",name:"mauve-mist",hex:"#c49bd4"},{pantone:"17-1608",name:"heather-rose",hex:"#ad6d7f"},{pantone:"17-1818",name:"red-violet",hex:"#a35776"},{pantone:"17-1612",name:"mellow-mauve",hex:"#996378"},{pantone:"17-1710",name:"bordeaux",hex:"#96637b"},{pantone:"18-1720",name:"violet-quartz",hex:"#8b4963"},{pantone:"18-1716",name:"damson",hex:"#854c65"},{pantone:"19-2410",name:"amaranth",hex:"#6f3c56"},{pantone:"15-1906",name:"zephyr",hex:"#c89fa5"},{pantone:"17-1610",name:"dusky-orchid",hex:"#9a7182"},{pantone:"18-2109",name:"grape-shake",hex:"#886971"},{pantone:"17-1511",name:"wistful-mauve",hex:"#946c74"},{pantone:"18-1709",name:"tulipwood",hex:"#805466"},{pantone:"18-1710",name:"grape-nectar",hex:"#8d5c74"},{pantone:"18-3011",name:"argyle-purple",hex:"#895c79"},{pantone:"17-1512",name:"nostalgia-rose",hex:"#a4777e"},{pantone:"17-1614",name:"deco-rose",hex:"#985f68"},{pantone:"18-1613",name:"renaissance-rose",hex:"#865560"},{pantone:"18-1614",name:"nocturne",hex:"#7a4b56"},{pantone:"18-1418",name:"crushed-berry",hex:"#804f5a"},{pantone:"19-2312",name:"crushed-violets",hex:"#643a4c"},{pantone:"19-1716",name:"mauve-wine",hex:"#5b3644"},{pantone:"18-1411",name:"plum-wine",hex:"#674550"},{pantone:"19-2311",name:"eggplant",hex:"#613f4c"},{pantone:"19-2014",name:"prune",hex:"#603749"},{pantone:"19-1608",name:"prune-purple",hex:"#5c3a4d"},{pantone:"19-2315",name:"grape-wine",hex:"#5a2f43"},{pantone:"19-2514",name:"italian-plum",hex:"#533146"},{pantone:"19-2520",name:"potent-purple",hex:"#462639"},{pantone:"16-3310",name:"lavender-herb",hex:"#b18eaa"},{pantone:"16-3307",name:"lavender-mist",hex:"#ae90a7"},{pantone:"17-3410",name:"valerian",hex:"#9f7a93"},{pantone:"18-3220",name:"very-grape",hex:"#927288"},{pantone:"18-3211",name:"grapeade",hex:"#85677b"},{pantone:"18-3012",name:"purple-gumdrop",hex:"#7a596f"},{pantone:"18-3013",name:"berry-conserve",hex:"#765269"},{pantone:"18-3418",name:"chinese-violet",hex:"#835e,81"},{pantone:"18-3522",name:"crushed-grape",hex:"#7a547f"},{pantone:"18-3218",name:"concord-grape",hex:"#7c5379"},{pantone:"19-3424",name:"sunset-purple",hex:"#6f456e"},{pantone:"19-3325",name:"wood-violet",hex:"#75406a"},{pantone:"19-3223",name:"purple-passion",hex:"#683d62"},{pantone:"19-2524",name:"dark-purple",hex:"#582147"},{pantone:"18-3415",name:"grape-jam",hex:"#725671"},{pantone:"19-3323",name:"deep-purple",hex:"#50314c"},{pantone:"19-2814",name:"wineberry",hex:"#5a395b"},{pantone:"19-3518",name:"grape-royale",hex:"#4f2d54"},{pantone:"19-3218",name:"plum-purple",hex:"#51304e"},{pantone:"19-2009",name:"hortensia",hex:"#553b50"},{pantone:"19-2816",name:"blackberry-wine",hex:"#4d3246"},{pantone:"19-3714",name:"navy-cosmos",hex:"#503b53"},{pantone:"19-3215",name:"indigo",hex:"#4c3957"},{pantone:"19-3519",name:"purple-pennant",hex:"#432c47"},{pantone:"19-3316",name:"plum-perfect",hex:"#473442"},{pantone:"19-3619",name:"sweet-grape",hex:"#4b3b4f"},{pantone:"19-3217",name:"shadow-purple",hex:"#4e334e"},{pantone:"19-3520",name:"blackberry-cordial",hex:"#3f2a47"},{pantone:"19-3620",name:"purple-reign",hex:"#56456b"},{pantone:"19-3722",name:"mulberry-purple",hex:"#493c62"},{pantone:"19-3720",name:"gothic-grape",hex:"#473951"},{pantone:"19-3728",name:"grape",hex:"#433455"},{pantone:"19-3617",name:"mysterioso",hex:"#46394b"},{pantone:"19-3725",name:"purple-velvet",hex:"#41354d"},{pantone:"19-3712",name:"nightshade",hex:"#433748"},{pantone:"13-3802",name:"orchid-tint",hex:"#dbd2db"},{pantone:"13-3803",name:"lilac-ash",hex:"#d7cdcd"},{pantone:"13-3804",name:"gray-lilac",hex:"#d4cacd"},{pantone:"14-3803",name:"hushed-violet",hex:"#d1c0bf"},{pantone:"15-3802",name:"cloud-gray",hex:"#b7a9ac"},{pantone:"17-1505",name:"quail",hex:"#98868c"},{pantone:"17-3808",name:"nirvana",hex:"#a2919b"},{pantone:"13-3805",name:"orchid-hush",hex:"#cec3d2"},{pantone:"14-3805",name:"iris",hex:"#baafbc"},{pantone:"16-3304",name:"sea-fog",hex:"#a5929d"},{pantone:"17-1605",name:"elderberry",hex:"#9d848e"},{pantone:"18-1706",name:"black-plum",hex:"#6c5765"},{pantone:"18-1405",name:"flint",hex:"#705861"},{pantone:"19-1624",name:"sassafras",hex:"#54353b"},{pantone:"14-3904",name:"evening-haze",hex:"#bdb8c7"},{pantone:"14-3907",name:"thistle",hex:"#b9b3c5"},{pantone:"17-3910",name:"lavender-gray",hex:"#9890a2"},{pantone:"17-3906",name:"minimal-gray",hex:"#948d99"},{pantone:"17-3810",name:"purple-ash",hex:"#8f8395"},{pantone:"18-3710",name:"gray-ridge",hex:"#847986"},{pantone:"18-3712",name:"purple-sage",hex:"#75697e"},{pantone:"16-3812",name:"heirloom-lilac",hex:"#9d96b2"},{pantone:"16-3810",name:"wisteria",hex:"#a198af"},{pantone:"17-3812",name:"dusk",hex:"#897f98"},{pantone:"17-3817",name:"daybreak",hex:"#8981a0"},{pantone:"18-3812",name:"cadet",hex:"#6a6378"},{pantone:"18-3714",name:"mulled-grape",hex:"#675a74"},{pantone:"19-3716",name:"purple-plumeria",hex:"#473854"},{pantone:"14-3903",name:"lilac-marble",hex:"#c3babf"},{pantone:"15-0703",name:"ashes-of-roses",hex:"#b5acab"},{pantone:"16-3803",name:"gull-gray",hex:"#a49ca0"},{pantone:"17-2601",name:"zinc",hex:"#92898a"},{pantone:"17-3802",name:"gull",hex:"#918c8f"},{pantone:"18-1703",name:"shark",hex:"#6d636b"},{pantone:"18-1404",name:"sparrow",hex:"#69595c"},{pantone:"13-3406",name:"orchid-ice",hex:"#e0d0db"},{pantone:"13-3405",name:"lilac-snow",hex:"#e0c7d7"},{pantone:"14-3206",name:"winsome-orchid",hex:"#d4b9cb"},{pantone:"15-3508",name:"fair-orchid",hex:"#c0aac0"},{pantone:"15-3507",name:"lavender-frost",hex:"#bdabbe"},{pantone:"14-3710",name:"orchid-petal",hex:"#bfb4cb"},{pantone:"14-3812",name:"pastel-lilac",hex:"#bdb0d0"},{pantone:"14-3612",name:"orchid-bloom",hex:"#c5aecf"},{pantone:"15-3412",name:"orchid-bouquet",hex:"#d1acce"},{pantone:"16-3521",name:"lupine",hex:"#be9cc1"},{pantone:"16-3416",name:"violet-tulle",hex:"#c193c0"},{pantone:"16-3617",name:"sheer-lilac",hex:"#b793c0"},{pantone:"16-3520",name:"african-violet",hex:"#b085b7"},{pantone:"17-3313",name:"dusty-lavender",hex:"#a1759c"},{pantone:"17-3730",name:"paisley-purple",hex:"#8b79b1"},{pantone:"17-3619",name:"hyacinth",hex:"#936ca7"},{pantone:"17-3628",name:"amethyst-orchid",hex:"#926aa6"},{pantone:"18-3533",name:"dewberry",hex:"#8b5987"},{pantone:"18-3520",name:"purple-heart",hex:"#745587"},{pantone:"19-3526",name:"meadow-violet",hex:"#764f82"},{pantone:"19-3642",name:"royal-purple",hex:"#603f83"},{pantone:"18-3633",name:"deep-lavender",hex:"#775496"},{pantone:"18-3531",name:"royal-lilac",hex:"#774d8e"},{pantone:"19-3542",name:"pansy",hex:"#653d7c"},{pantone:"19-3438",name:"bright-violet",hex:"#784384"},{pantone:"19-3536",name:"amaranth-purple",hex:"#6a397b"},{pantone:"19-3540",name:"purple-magic",hex:"#663271"},{pantone:"19-3220",name:"plum",hex:"#5a315d"},{pantone:"18-3615",name:"imperial-palace",hex:"#604e7a"},{pantone:"18-3518",name:"patrician-purple",hex:"#6c4e79"},{pantone:"19-3622",name:"loganberry",hex:"#5a4769"},{pantone:"19-3514",name:"majesty",hex:"#593761"},{pantone:"19-3528",name:"imperial-purple",hex:"#542c5d"},{pantone:"19-3640",name:"crown-jewel",hex:"#482d54"},{pantone:"19-3731",name:"parachute-purple",hex:"#392852"},{pantone:"13-3820",name:"lavender-fog",hex:"#d2c4d6"},{pantone:"15-3620",name:"lavendula",hex:"#bca4cb"},{pantone:"15-3817",name:"lavender",hex:"#afa4ce"},{pantone:"17-3725",name:"bougainvillea",hex:"#9884b9"},{pantone:"16-3823",name:"violet-tulip",hex:"#9e91c3"},{pantone:"17-3615",name:"chalk-violet",hex:"#8f7da5"},{pantone:"18-3718",name:"purple-haze",hex:"#807396"},{pantone:"16-3110",name:"smoky-grape",hex:"#b88aac"},{pantone:"16-3525",name:"regal-orchid",hex:"#a98baf"},{pantone:"16-3815",name:"viola",hex:"#a692ba"},{pantone:"17-3612",name:"orchid-mist",hex:"#917798"},{pantone:"18-3513",name:"grape-compote",hex:"#6b5876"},{pantone:"18-3715",name:"montana-grape",hex:"#6c5971"},{pantone:"18-3410",name:"vintage-violet",hex:"#634f62"},{pantone:"17-3826",name:"aster-purple",hex:"#7d74a8"},{pantone:"17-3834",name:"dahlia-purple",hex:"#7e6eac"},{pantone:"18-3737",name:"passion-flower",hex:"#6d5698"},{pantone:"18-3838",name:"ultra-violet",hex:"#5f4b8b"},{pantone:"19-3748",name:"prism-violet",hex:"#53357d"},{pantone:"19-3737",name:"heliotrope",hex:"#4f3872"},{pantone:"19-3632",name:"petunia",hex:"#4f3466"},{pantone:"18-3828",name:"corsican-blue",hex:"#646093"},{pantone:"18-3834",name:"veronica",hex:"#6d6695"},{pantone:"18-3943",name:"blue-iris",hex:"#5a5b9f"},{pantone:"18-3840",name:"purple-opulence",hex:"#60569a"},{pantone:"19-3730",name:"gentian-violet",hex:"#544275"},{pantone:"19-3850",name:"liberty",hex:"#4d448a"},{pantone:"19-3847",name:"deep-blue",hex:"#44377d"},{pantone:"18-3930",name:"bleached-denim",hex:"#646f9b"},{pantone:"18-3817",name:"heron",hex:"#62617e"},{pantone:"19-3936",name:"skipper-blue",hex:"#484a72"},{pantone:"19-3832",name:"navy-blue",hex:"#403f6f"},{pantone:"19-3842",name:"deep-wisteria",hex:"#443f6f"},{pantone:"19-3839",name:"blue-ribbon",hex:"#3a395f"},{pantone:"19-3830",name:"astral-aura",hex:"#363151"},{pantone:"13-4105",name:"lilac-hint",hex:"#d0d0da"},{pantone:"15-3807",name:"misty-lilac",hex:"#bcb4c4"},{pantone:"14-3905",name:"lavender-blue",hex:"#c5c0d0"},{pantone:"14-3911",name:"purple-heather",hex:"#bab8d3"},{pantone:"15-3909",name:"cosmic-sky",hex:"#aaaac4"},{pantone:"15-3910",name:"languid-lavender",hex:"#a2a1ba"},{pantone:"16-3907",name:"dapple-gray",hex:"#9c9ba7"},{pantone:"16-3931",name:"sweet-lavender",hex:"#9a9bc1"},{pantone:"16-3925",name:"easter-egg",hex:"#919bc9"},{pantone:"17-3930",name:"jacaranda",hex:"#848dc5"},{pantone:"17-3932",name:"deep-periwinkle",hex:"#7c83bc"},{pantone:"18-3833",name:"dusted-peri",hex:"#696ba0"},{pantone:"18-3944",name:"violet-storm",hex:"#5c619d"},{pantone:"18-3946",name:"baja-blue",hex:"#5f6db0"},{pantone:"16-3930",name:"thistle-down",hex:"#9499bb"},{pantone:"17-3925",name:"persian-violet",hex:"#8c8eb2"},{pantone:"18-3820",name:"twilight-purple",hex:"#66648b"},{pantone:"19-3947",name:"orient-blue",hex:"#47457a"},{pantone:"19-3951",name:"clematis-blue",hex:"#363b7c"},{pantone:"19-3955",name:"royal-blue",hex:"#3d428b"},{pantone:"18-3963",name:"spectrum-blue",hex:"#3d3c7c"},{pantone:"17-3924",name:"lavender-violet",hex:"#767ba5"},{pantone:"17-3922",name:"blue-ice",hex:"#70789b"},{pantone:"18-3927",name:"velvet-morning",hex:"#60688d"},{pantone:"18-3932",name:"marlin",hex:"#515b87"},{pantone:"19-3939",name:"blueprint",hex:"#2d3359"},{pantone:"19-3940",name:"blue-depths",hex:"#263056"},{pantone:"19-3933",name:"medieval-blue",hex:"#29304e"},{pantone:"16-3911",name:"lavender-aura",hex:"#9f99aa"},{pantone:"17-3917",name:"stonewash",hex:"#74809a"},{pantone:"19-3919",name:"nightshadow-blue",hex:"#4e5368"},{pantone:"19-3928",name:"blue-indigo",hex:"#49516d"},{pantone:"19-3915",name:"graystone",hex:"#4d495b"},{pantone:"19-3926",name:"crown-blue",hex:"#464b65"},{pantone:"19-3935",name:"deep-cobalt",hex:"#404466"},{pantone:"13-4110",name:"arctic-ice",hex:"#bfc7d6"},{pantone:"14-4106",name:"gray-dawn",hex:"#bbc1cc"},{pantone:"14-4110",name:"heather",hex:"#b7c0d6"},{pantone:"16-3919",name:"eventide",hex:"#959eb7"},{pantone:"17-4030",name:"silver-lake-blue",hex:"#618bb9"},{pantone:"17-3936",name:"blue-bonnet",hex:"#6384b8"},{pantone:"18-3937",name:"blue-yonder",hex:"#5a77a8"},{pantone:"16-3920",name:"lavender-lustre",hex:"#8c9cc1"},{pantone:"17-3919",name:"purple-impression",hex:"#858fb1"},{pantone:"16-3929",name:"grapemist",hex:"#8398ca"},{pantone:"15-3930",name:"vista-blue",hex:"#81a0d4"},{pantone:"16-4031",name:"cornflower-blue",hex:"#7391c8"},{pantone:"17-3934",name:"persian-jewel",hex:"#6e81be"},{pantone:"18-3935",name:"wedgewood",hex:"#6479b3"},{pantone:"14-4112",name:"skyway",hex:"#adbed3"},{pantone:"14-4115",name:"cashmere-blue",hex:"#a5b8d0"},{pantone:"14-4121",name:"blue-bell",hex:"#93b4d7"},{pantone:"15-3920",name:"placid-blue",hex:"#8cadd3"},{pantone:"16-4020",name:"della-robbia-blue",hex:"#7a9dcb"},{pantone:"16-4032",name:"provence",hex:"#658dc6"},{pantone:"17-4037",name:"ultramarine",hex:"#5b7ebd"},{pantone:"16-4021",name:"allure",hex:"#7291b4"},{pantone:"17-3923",name:"colony-blue",hex:"#65769a"},{pantone:"18-4027",name:"moonlight-blue",hex:"#506886"},{pantone:"18-3928",name:"dutch-blue",hex:"#4a638d"},{pantone:"19-4039",name:"delft",hex:"#3d5e8c"},{pantone:"19-4044",name:"limoges",hex:"#243f6c"},{pantone:"19-4027",name:"estate-blue",hex:"#233658"},{pantone:"17-4015",name:"infinity",hex:"#6e7e99"},{pantone:"18-3921",name:"bijou-blue",hex:"#4e5e7f"},{pantone:"18-3920",name:"coastal-fjord",hex:"#505d7e"},{pantone:"19-4030",name:"true-navy",hex:"#3f5277"},{pantone:"19-4026",name:"ensign-blue",hex:"#384c67"},{pantone:"19-4118",name:"dark-denim",hex:"#35465e"},{pantone:"19-4028",name:"insignia-blue",hex:"#2f3e55"},{pantone:"15-4319",name:"air-blue",hex:"#77acc7"},{pantone:"16-4127",name:"heritage-blue",hex:"#5d96bc"},{pantone:"15-4323",name:"ethereal-blue",hex:"#5ca6ce"},{pantone:"16-4134",name:"bonnie-blue",hex:"#539ccc"},{pantone:"17-4131",name:"cendre-blue",hex:"#3e7fa5"},{pantone:"18-4036",name:"parisian-blue",hex:"#4f7ca4"},{pantone:"18-4232",name:"faience",hex:"#2a6a8b"},{pantone:"15-4225",name:"alaskan-blue",hex:"#6da9d2"},{pantone:"16-4132",name:"little-boy-blue",hex:"#6ea2d5"},{pantone:"17-4139",name:"azure-blue",hex:"#4d91c6"},{pantone:"17-4027",name:"riviera",hex:"#5879a2"},{pantone:"18-4029",name:"federal-blue",hex:"#43628b"},{pantone:"18-4041",name:"star-sapphire",hex:"#386192"},{pantone:"19-4037",name:"bright-cobalt",hex:"#385d8d"},{pantone:"16-4120",name:"dusk-blue",hex:"#7ba0c0"},{pantone:"18-4039",name:"regatta",hex:"#487ab7"},{pantone:"18-4043",name:"palace-blue",hex:"#346cb0"},{pantone:"18-4051",name:"strong-blue",hex:"#1f5da0"},{pantone:"19-4053",name:"turkish-sea",hex:"#195190"},{pantone:"19-4056",name:"olympian-blue",hex:"#1a4c8b"},{pantone:"19-4052",name:"classic-blue",hex:"#0f4c81"},{pantone:"17-4041",name:"marina",hex:"#4f84c4"},{pantone:"18-4141",name:"campanula",hex:"#3272af"},{pantone:"18-4045",name:"daphne",hex:"#0f5f9a"},{pantone:"18-4148",name:"victoria-blue",hex:"#08589d"},{pantone:"19-4049",name:"snorkel-blue",hex:"#034f84"},{pantone:"19-4050",name:"nautical-blue",hex:"#1a5091"},{pantone:"19-4150",name:"princess-blue",hex:"#00539c"},{pantone:"18-3949",name:"dazzling-blue",hex:"#3850a0"},{pantone:"18-3945",name:"amparo-blue",hex:"#4960a8"},{pantone:"19-3950",name:"deep-ultramarine",hex:"#384883"},{pantone:"19-3952",name:"surf-the-web",hex:"#203c7f"},{pantone:"19-3864",name:"mazarine-blue",hex:"#273c76"},{pantone:"19-4057",name:"true-blue",hex:"#1e4477"},{pantone:"19-3938",name:"twilight-blue",hex:"#313d64"},{pantone:"15-3915",name:"kentucky-blue",hex:"#a5b3cc"},{pantone:"15-4020",name:"cerulean",hex:"#9bb7d4"},{pantone:"14-4214",name:"powder-blue",hex:"#96b3d2"},{pantone:"16-4019",name:"forever-blue",hex:"#899bb8"},{pantone:"17-3915",name:"tempest",hex:"#79839b"},{pantone:"17-3918",name:"country-blue",hex:"#717f9b"},{pantone:"17-3920",name:"english-manor",hex:"#7181a4"},{pantone:"13-4103",name:"illusion-blue",hex:"#c9d3dc"},{pantone:"13-4304",name:"ballad-blue",hex:"#c0ceda"},{pantone:"13-4308",name:"baby-blue",hex:"#b5c7d3"},{pantone:"14-4210",name:"celestial-blue",hex:"#a3b4c4"},{pantone:"15-4008",name:"blue-fog",hex:"#9babbb"},{pantone:"18-3916",name:"flint-stone",hex:"#677283"},{pantone:"18-3910",name:"folkstone-gray",hex:"#626879"},{pantone:"14-4206",name:"pearl-blue",hex:"#b0b7be"},{pantone:"17-4405",name:"monument",hex:"#84898c"},{pantone:"19-4220",name:"dark-slate",hex:"#46515a"},{pantone:"19-4110",name:"midnight-navy",hex:"#34414e"},{pantone:"19-4010",name:"total-eclipse",hex:"#2c313d"},{pantone:"19-4015",name:"blue-graphite",hex:"#323137"},{pantone:"19-4013",name:"dark-navy",hex:"#232f36"},{pantone:"13-4404",name:"ice-flow",hex:"#c6d2d2"},{pantone:"15-4305",name:"quarry",hex:"#98a0a5"},{pantone:"17-5102",name:"griffin",hex:"#8d8f8f"},{pantone:"19-3906",name:"dark-shadow",hex:"#4a4b4d"},{pantone:"19-4014",name:"ombre-blue",hex:"#434854"},{pantone:"19-4019",name:"india-ink",hex:"#3c3f4a"},{pantone:"19-4104",name:"ebony",hex:"#41424a"},{pantone:"19-3925",name:"patriot-blue",hex:"#363756"},{pantone:"19-3810",name:"eclipse",hex:"#343148"},{pantone:"19-4025",name:"mood-indigo",hex:"#353a4c"},{pantone:"19-3920",name:"peacoat",hex:"#2b2e43"},{pantone:"19-3921",name:"black-iris",hex:"#2b3042"},{pantone:"19-4024",name:"dress-blues",hex:"#2a3244"},{pantone:"19-4023",name:"blue-nights",hex:"#363b48"},{pantone:"15-4105",name:"angel-falls",hex:"#a3bdd3"},{pantone:"15-4005",name:"dream-blue",hex:"#a0bcd0"},{pantone:"16-4013",name:"ashley-blue",hex:"#8699ab"},{pantone:"16-4010",name:"dusty-blue",hex:"#8c9dad"},{pantone:"19-4227",name:"indian-teal",hex:"#3c586b"},{pantone:"19-4316",name:"stargazer",hex:"#39505c"},{pantone:"19-4229",name:"orion-blue",hex:"#3e4f5c"},{pantone:"15-4312",name:"forget-me-not",hex:"#8fadbd"},{pantone:"17-4021",name:"faded-denim",hex:"#798ea4"},{pantone:"17-4020",name:"blue-shadow",hex:"#66829a"},{pantone:"18-3922",name:"coronet-blue",hex:"#59728e"},{pantone:"18-4020",name:"captains-blue",hex:"#557088"},{pantone:"18-4025",name:"copen-blue",hex:"#516b84"},{pantone:"18-3918",name:"china-blue",hex:"#546477"},{pantone:"17-4320",name:"adriatic-blue",hex:"#5c899b"},{pantone:"18-4220",name:"provincial-blue",hex:"#5c798e"},{pantone:"17-4123",name:"niagara",hex:"#5487a4"},{pantone:"17-4023",name:"blue-heaven",hex:"#5b7e98"},{pantone:"18-4026",name:"stellar",hex:"#46647e"},{pantone:"18-4018",name:"real-teal",hex:"#405d73"},{pantone:"19-4125",name:"majolica-blue",hex:"#274357"},{pantone:"12-4609",name:"starlight-blue",hex:"#b5ced4"},{pantone:"14-4307",name:"winter-sky",hex:"#a9c0cb"},{pantone:"14-4508",name:"stratosphere",hex:"#9ec1cc"},{pantone:"15-4309",name:"sterling-blue",hex:"#a2b9c2"},{pantone:"16-4109",name:"arona",hex:"#879ba3"},{pantone:"17-4111",name:"citadel",hex:"#748995"},{pantone:"18-4215",name:"blue-mirage",hex:"#5c6d7c"},{pantone:"14-4306",name:"cloud-blue",hex:"#a2b6b9"},{pantone:"14-4506",name:"ether",hex:"#9eb6b8"},{pantone:"16-4414",name:"cameo-blue",hex:"#769da6"},{pantone:"16-4114",name:"stone-blue",hex:"#829ca5"},{pantone:"16-4411",name:"tourmaline",hex:"#86a1a9"},{pantone:"17-4412",name:"smoke-blue",hex:"#6d8994"},{pantone:"18-4217",name:"bluestone",hex:"#577284"},{pantone:"14-4313",name:"aquamarine",hex:"#9dc3d4"},{pantone:"14-4318",name:"sky-blue",hex:"#8abad3"},{pantone:"15-4415",name:"milky-blue",hex:"#72a8ba"},{pantone:"15-4421",name:"blue-grotto",hex:"#5cacce"},{pantone:"15-4427",name:"norse-blue",hex:"#4ca5c7"},{pantone:"16-4530",name:"aquarius",hex:"#3cadd4"},{pantone:"16-4525",name:"maui-blue",hex:"#52a2b4"},{pantone:"16-4421",name:"blue-mist",hex:"#5bacc3"},{pantone:"15-4720",name:"river-blue",hex:"#38afcd"},{pantone:"16-4529",name:"cyan-blue",hex:"#14a3c7"},{pantone:"16-4427",name:"horizon-blue",hex:"#289dbe"},{pantone:"17-4328",name:"blue-moon",hex:"#3686a0"},{pantone:"17-4427",name:"bluejay",hex:"#157ea0"},{pantone:"18-4334",name:"mediterranean-blue",hex:"#1478a7"},{pantone:"14-4522",name:"bachelor-button",hex:"#4abbd5"},{pantone:"16-4535",name:"blue-atoll",hex:"#00b1d2"},{pantone:"17-4432",name:"vivid-blue",hex:"#0088b0"},{pantone:"17-4540",name:"hawaiian-ocean",hex:"#008db9"},{pantone:"17-4440",name:"blue-danube",hex:"#0087b6"},{pantone:"18-4535",name:"blue-jewel",hex:"#007baa"},{pantone:"18-4537",name:"methyl-blue",hex:"#0074a8"},{pantone:"17-4435",name:"malibu-blue",hex:"#008cc1"},{pantone:"17-4336",name:"blithe",hex:"#0084bd"},{pantone:"18-4330",name:"swedish-blue",hex:"#007eb1"},{pantone:"17-4433",name:"dresden-blue",hex:"#0086bb"},{pantone:"17-4247",name:"diva-blue",hex:"#007bb2"},{pantone:"18-4252",name:"blue-aster",hex:"#0077b3"},{pantone:"18-4440",name:"cloisonne",hex:"#0075af"},{pantone:"18-4140",name:"french-blue",hex:"#0072b5"},{pantone:"18-4247",name:"brilliant-blue",hex:"#0075b3"},{pantone:"18-4244",name:"directoire-blue",hex:"#0061a3"},{pantone:"19-4151",name:"skydiver",hex:"#00589b"},{pantone:"19-4245",name:"imperial-blue",hex:"#005a92"},{pantone:"18-4032",name:"deep-water",hex:"#266691"},{pantone:"19-4035",name:"dark-blue",hex:"#305679"},{pantone:"12-4607",name:"pastel-blue",hex:"#bcd3d5"},{pantone:"12-4608",name:"clearwater",hex:"#aad5db"},{pantone:"13-4409",name:"blue-glow",hex:"#b2d4dd"},{pantone:"13-4809",name:"plume",hex:"#a5cfd5"},{pantone:"14-4512",name:"porcelain-blue",hex:"#95c0cb"},{pantone:"13-4411",name:"crystal-blue",hex:"#a1c8db"},{pantone:"14-4516",name:"petit-four",hex:"#87c2d4"},{pantone:"12-4805",name:"wan-blue",hex:"#cbdcdf"},{pantone:"12-4610",name:"whispering-blue",hex:"#c9dcdc"},{pantone:"12-4604",name:"skylight",hex:"#c8e0e0"},{pantone:"14-4510",name:"aquatic",hex:"#99c1cc"},{pantone:"15-4712",name:"marine-blue",hex:"#76afb6"},{pantone:"16-4612",name:"reef-waters",hex:"#6f9fa9"},{pantone:"17-4911",name:"arctic",hex:"#648589"},{pantone:"12-4806",name:"chalk-blue",hex:"#ccdad7"},{pantone:"13-4804",name:"pale-blue",hex:"#c4d6d3"},{pantone:"13-4405",name:"misty-blue",hex:"#bfcdcc"},{pantone:"14-4504",name:"sky-gray",hex:"#bcc8c6"},{pantone:"14-4807",name:"surf-spray",hex:"#b4c8c2"},{pantone:"15-4706",name:"gray-mist",hex:"#99aeae"},{pantone:"15-5207",name:"aquifer",hex:"#89acac"},{pantone:"12-5206",name:"blue-glass",hex:"#c6e3e1"},{pantone:"13-5306",name:"icy-morn",hex:"#b0d3d1"},{pantone:"14-4810",name:"canal-blue",hex:"#9cc2c5"},{pantone:"13-5309",name:"pastel-turquoise",hex:"#99c5c4"},{pantone:"15-5209",name:"aqua-haze",hex:"#87b9bc"},{pantone:"15-4715",name:"aqua-sea",hex:"#6baaae"},{pantone:"16-5121",name:"meadowbrook",hex:"#60a0a3"},{pantone:"12-5505",name:"glacier",hex:"#c3dbd4"},{pantone:"12-5409",name:"fair-aqua",hex:"#b8e2dc"},{pantone:"12-5209",name:"soothing-sea",hex:"#c3e9e4"},{pantone:"12-5410",name:"bleached-aqua",hex:"#bce3df"},{pantone:"13-4909",name:"blue-light",hex:"#acdfdd"},{pantone:"13-4910",name:"blue-tint",hex:"#9fd9d7"},{pantone:"14-4811",name:"aqua-sky",hex:"#7bc4c4"},{pantone:"12-5204",name:"morning-mist",hex:"#cfdfdb"},{pantone:"14-4908",name:"harbor-gray",hex:"#a8c0bb"},{pantone:"14-4809",name:"eggshell-blue",hex:"#a3ccc9"},{pantone:"16-5114",name:"dusty-turquoise",hex:"#649b9e"},{pantone:"16-4719",name:"porcelain",hex:"#5d9ca4"},{pantone:"18-5610",name:"brittany-blue",hex:"#4c7e86"},{pantone:"18-4718",name:"hydro",hex:"#426972"},{pantone:"15-4707",name:"blue-haze",hex:"#a5bcbb"},{pantone:"15-5210",name:"nile-blue",hex:"#76a7ab"},{pantone:"16-4712",name:"mineral-blue",hex:"#6d9192"},{pantone:"17-4818",name:"bristol-blue",hex:"#558f91"},{pantone:"17-4919",name:"teal",hex:"#478589"},{pantone:"18-5308",name:"blue-spruce",hex:"#486b67"},{pantone:"18-5612",name:"sagebrush-green",hex:"#567572"},{pantone:"16-5806",name:"green-milieu",hex:"#8a9992"},{pantone:"16-5304",name:"jadeite",hex:"#95a69f"},{pantone:"16-5106",name:"blue-surf",hex:"#90a8a4"},{pantone:"17-5111",name:"oil-blue",hex:"#658c88"},{pantone:"17-5110",name:"trellis",hex:"#6a8988"},{pantone:"18-4612",name:"north-atlantic",hex:"#536d70"},{pantone:"18-5112",name:"sea-pine",hex:"#4c6969"},{pantone:"16-4408",name:"slate",hex:"#8c9fa1"},{pantone:"16-4706",name:"silver-blue",hex:"#8a9a9a"},{pantone:"16-4404",name:"abyss",hex:"#8f9e9d"},{pantone:"17-4408",name:"lead",hex:"#7a898f"},{pantone:"18-4711",name:"stormy-sea",hex:"#6e8082"},{pantone:"18-4510",name:"trooper",hex:"#697a7e"},{pantone:"18-4011",name:"goblin-blue",hex:"#5f7278"},{pantone:"16-5804",name:"slate-gray",hex:"#8a9691"},{pantone:"17-5107",name:"chinois-green",hex:"#7c8c87"},{pantone:"18-5611",name:"dark-forest",hex:"#556962"},{pantone:"18-5606",name:"balsam-green",hex:"#576664"},{pantone:"19-0312",name:"beetle",hex:"#55584c"},{pantone:"19-5004",name:"urban-chic",hex:"#464e4d"},{pantone:"19-5212",name:"darkest-spruce",hex:"#303d3c"},{pantone:"19-4318",name:"mallard-blue",hex:"#3a5c6e"},{pantone:"18-4530",name:"celestial",hex:"#00,6380"},{pantone:"18-4225",name:"saxony-blue",hex:"#1f6680"},{pantone:"19-4340",name:"lyons-blue",hex:"#00,5871"},{pantone:"19-4234",name:"ink-blue",hex:"#0b5369"},{pantone:"19-4329",name:"corsair",hex:"#18576c"},{pantone:"19-4324",name:"legion-blue",hex:"#1f495b"},{pantone:"18-4320",name:"aegean-blue",hex:"#4e6e81"},{pantone:"18-4222",name:"bluesteel",hex:"#35637c"},{pantone:"18-4023",name:"blue-ashes",hex:"#3b5f78"},{pantone:"19-4127",name:"midnight",hex:"#325b74"},{pantone:"18-4231",name:"blue-sapphire",hex:"#09577b"},{pantone:"19-4342",name:"seaport",hex:"#005e7d"},{pantone:"19-4241",name:"moroccan-blue",hex:"#0f4e67"},{pantone:"19-4535",name:"ocean-depths",hex:"#00,6175"},{pantone:"19-4526",name:"blue-coral",hex:"#1b5366"},{pantone:"19-4826",name:"dragonfly",hex:"#2a5c6a"},{pantone:"19-4916",name:"pacific",hex:"#1f595c"},{pantone:"19-4820",name:"balsam",hex:"#33565e"},{pantone:"19-4517",name:"mediterranea",hex:"#32575d"},{pantone:"19-4726",name:"atlantic-deep",hex:"#274e,55"},{pantone:"15-4717",name:"aqua",hex:"#64a1ad"},{pantone:"16-4610",name:"stillwater",hex:"#70a4b0"},{pantone:"16-4519",name:"delphinium-blue",hex:"#6198ae"},{pantone:"17-4421",name:"larkspur",hex:"#3c7d90"},{pantone:"17-4716",name:"storm-blue",hex:"#47788a"},{pantone:"18-4417",name:"tapestry",hex:"#436573"},{pantone:"18-4522",name:"colonial-blue",hex:"#2d6471"},{pantone:"16-4728",name:"peacock-blue",hex:"#00a0b0"},{pantone:"17-4735",name:"capri-breeze",hex:"#00,8799"},{pantone:"17-4728",name:"algiers-blue",hex:"#00859c"},{pantone:"17-4730",name:"caneel-bay",hex:"#00849f"},{pantone:"18-4525",name:"caribbean-sea",hex:"#00819d"},{pantone:"18-4528",name:"mosaic-blue",hex:"#00758f"},{pantone:"18-4432",name:"turkish-tile",hex:"#00698b"},{pantone:"14-4814",name:"angel-blue",hex:"#83c5cd"},{pantone:"14-4816",name:"blue-radiance",hex:"#58c9d4"},{pantone:"15-4722",name:"capri",hex:"#44bbca"},{pantone:"15-4825",name:"blue-curacao",hex:"#32becc"},{pantone:"16-4725",name:"scuba-blue",hex:"#00abc0"},{pantone:"16-4834",name:"bluebird",hex:"#009dae"},{pantone:"18-4733",name:"enamel-blue",hex:"#007a8e"},{pantone:"15-5218",name:"pool-blue",hex:"#67bcb3"},{pantone:"15-5217",name:"blue-turquoise",hex:"#53b0ae"},{pantone:"16-5123",name:"baltic",hex:"#279d9f"},{pantone:"17-4928",name:"lake-blue",hex:"#008c96"},{pantone:"18-4735",name:"tile-blue",hex:"#00,8491"},{pantone:"17-4724",name:"pagoda-blue",hex:"#1a7f8e"},{pantone:"18-4726",name:"biscay-bay",hex:"#0,97988"},{pantone:"13-5313",name:"aruba-blue",hex:"#81d7d3"},{pantone:"16-5127",name:"ceramic",hex:"#00aaa9"},{pantone:"17-5126",name:"viridian-green",hex:"#00,9499"},{pantone:"18-4930",name:"tropical-green",hex:"#00,8786"},{pantone:"17-5025",name:"navigate",hex:"#00,8583"},{pantone:"17-5029",name:"deep-peacock-blue",hex:"#00,8381"},{pantone:"17-5034",name:"lapis",hex:"#00,8684"},{pantone:"15-5519",name:"turquoise",hex:"#45b5aa"},{pantone:"15-5516",name:"waterfall",hex:"#3ab0a2"},{pantone:"16-5418",name:"lagoon",hex:"#4d9e9a"},{pantone:"16-5422",name:"bright-aqua",hex:"#30a299"},{pantone:"17-5421",name:"porcelain-green",hex:"#108780"},{pantone:"18-5128",name:"blue-grass",hex:"#007c7a"},{pantone:"18-4936",name:"fanfare",hex:"#006d70"},{pantone:"15-5425",name:"atlantis",hex:"#00af9f"},{pantone:"16-5425",name:"pool-green",hex:"#00af9d"},{pantone:"17-5330",name:"dynasty-green",hex:"#008e,80"},{pantone:"17-5335",name:"spectra-green",hex:"#009b8c"},{pantone:"17-5130",name:"columbia",hex:"#00,9288"},{pantone:"17-5024",name:"teal-blue",hex:"#007f7c"},{pantone:"18-5020",name:"parasailing",hex:"#00736c"},{pantone:"16-5109",name:"wasabi",hex:"#73a89e"},{pantone:"16-5515",name:"beryl-green",hex:"#619187"},{pantone:"17-5513",name:"deep-sea",hex:"#4f7c74"},{pantone:"17-5722",name:"bottle-green",hex:"#427d6d"},{pantone:"18-5725",name:"galapagos-green",hex:"#29685f"},{pantone:"18-5418",name:"antique-green",hex:"#29675c"},{pantone:"19-5217",name:"storm",hex:"#0,,35453"},{pantone:"16-5721",name:"marine-green",hex:"#40a48e"},{pantone:"16-5421",name:"sea-green",hex:"#149c88"},{pantone:"17-5528",name:"greenlake",hex:"#007d69"},{pantone:"18-5619",name:"tidepool",hex:"#0a6f69"},{pantone:"18-5620",name:"ivy",hex:"#226c63"},{pantone:"18-5424",name:"cadmium-green",hex:"#00675b"},{pantone:"18-5322",name:"alpine-green",hex:"#005f56"},{pantone:"16-5112",name:"canton",hex:"#6da29e"},{pantone:"16-5412",name:"agate-green",hex:"#599f99"},{pantone:"16-5119",name:"sea-blue",hex:"#549f98"},{pantone:"17-5122",name:"latigo-bay",hex:"#379190"},{pantone:"17-5117",name:"green-blue-slate",hex:"#358082"},{pantone:"18-5121",name:"bayou",hex:"#20706f"},{pantone:"18-5115",name:"north-sea",hex:"#316c6b"},{pantone:"18-5618",name:"deep-jungle",hex:"#36716f"},{pantone:"19-5226",name:"everglade",hex:"#005b5d"},{pantone:"19-4922",name:"teal-green",hex:"#00,6361"},{pantone:"18-4728",name:"harbor-blue",hex:"#00656e"},{pantone:"18-4834",name:"deep-lake",hex:"#00656b"},{pantone:"19-4524",name:"shaded-spruce",hex:"#00585e"},{pantone:"19-4914",name:"deep-teal",hex:"#18454b"},{pantone:"18-5410",name:"silver-pine",hex:"#4e6866"},{pantone:"19-4818",name:"mallard-green",hex:"#405e5c"},{pantone:"19-5408",name:"bistro-green",hex:"#395551"},{pantone:"19-5413",name:"jasper",hex:"#335959"},{pantone:"18-5315",name:"bayberry",hex:"#255958"},{pantone:"19-5414",name:"june-bug",hex:"#264a48"},{pantone:"19-5320",name:"ponderosa-pine",hex:"#203b3d"},{pantone:"12-5407",name:"aqua-glass",hex:"#d2e8e0"},{pantone:"12-5406",name:"opal-blue",hex:"#c3ddd6"},{pantone:"12-5506",name:"dusty-aqua",hex:"#c0dccd"},{pantone:"14-5711",name:"ocean-wave",hex:"#8ec5b6"},{pantone:"14-5413",name:"holiday",hex:"#81c3b4"},{pantone:"14-5713",name:"cascade",hex:"#76c1b2"},{pantone:"15-5711",name:"dusty-jade-green",hex:"#7bb5a3"},{pantone:"12-5808",name:"honeydew",hex:"#bae1d3"},{pantone:"13-6009",name:"brook-green",hex:"#afddcc"},{pantone:"13-5714",name:"cabbage",hex:"#87d7be"},{pantone:"14-5714",name:"beveled-glass",hex:"#7accb8"},{pantone:"14-5718",name:"opal",hex:"#77cfb7"},{pantone:"15-5718",name:"biscay-green",hex:"#55c6a9"},{pantone:"15-5819",name:"spearmint",hex:"#64bfa4"},{pantone:"12-5408",name:"moonlight-jade",hex:"#c7e5df"},{pantone:"12-5507",name:"bay",hex:"#bae5d6"},{pantone:"13-5409",name:"yucca",hex:"#a1d7c9"},{pantone:"13-5412",name:"beach-glass",hex:"#96dfce"},{pantone:"13-5414",name:"ice-green",hex:"#87d8c3"},{pantone:"14-5420",name:"cockatoo",hex:"#58c8b6"},{pantone:"15-5416",name:"florida-keys",hex:"#56beab"},{pantone:"14-5416",name:"bermuda",hex:"#60c9b3"},{pantone:"14-5721",name:"electric-green",hex:"#4bc3a8"},{pantone:"15-5421",name:"aqua-green",hex:"#00b89f"},{pantone:"16-5427",name:"billiard",hex:"#00aa92"},{pantone:"16-5533",name:"arcadia",hex:"#00a28a"},{pantone:"17-5430",name:"alhambra",hex:"#00,8778"},{pantone:"17-5633",name:"deep-green",hex:"#00,9276"},{pantone:"15-5728",name:"mint-leaf",hex:"#00b694"},{pantone:"16-5431",name:"peacock-green",hex:"#00a78b"},{pantone:"17-5638",name:"vivid-green",hex:"#009e,82"},{pantone:"17-5641",name:"emerald",hex:"#00,9473"},{pantone:"17-5734",name:"viridis",hex:"#00846b"},{pantone:"18-5624",name:"shady-glade",hex:"#006e5b"},{pantone:"18-5338",name:"ultramarine-green",hex:"#006b54"},{pantone:"14-5706",name:"silt-green",hex:"#a9bdb1"},{pantone:"15-5706",name:"frosty-green",hex:"#a3b5a6"},{pantone:"16-5808",name:"iceberg-green",hex:"#8c9c92"},{pantone:"16-5907",name:"granite-green",hex:"#86a293"},{pantone:"16-5810",name:"green-bay",hex:"#7e9285"},{pantone:"16-5807",name:"lily-pad",hex:"#818f84"},{pantone:"17-6009",name:"laurel-wreath",hex:"#616f65"},{pantone:"16-5820",name:"green-spruce",hex:"#589f7e"},{pantone:"18-6216",name:"comfrey",hex:"#5b7961"},{pantone:"17-5912",name:"dark-ivy",hex:"#5b7763"},{pantone:"18-6018",name:"foliage-green",hex:"#3e6f58"},{pantone:"18-6114",name:"myrtle",hex:"#4f6b58"},{pantone:"18-5616",name:"posy-green",hex:"#325b51"},{pantone:"19-5920",name:"pineneedle",hex:"#334d41"},{pantone:"17-6212",name:"sea-spray",hex:"#717e6f"},{pantone:"18-6011",name:"duck-green",hex:"#53665c"},{pantone:"18-5622",name:"frosty-spruce",hex:"#578270"},{pantone:"18-5621",name:"fir",hex:"#3a725f"},{pantone:"19-5420",name:"evergreen",hex:"#11574a"},{pantone:"19-5511",name:"hunter-green",hex:"#335749"},{pantone:"19-5513",name:"dark-green",hex:"#314f40"},{pantone:"16-5815",name:"feldspar",hex:"#729b8b"},{pantone:"18-5718",name:"smoke-pine",hex:"#3e6257"},{pantone:"19-5411",name:"trekking-green",hex:"#355048"},{pantone:"18-5913",name:"garden-topiary",hex:"#3e524b"},{pantone:"19-5914",name:"jungle-green",hex:"#3c4e47"},{pantone:"19-5917",name:"sycamore",hex:"#35463d"},{pantone:"19-4906",name:"green-gables",hex:"#324241"},{pantone:"17-0613",name:"vetiver",hex:"#807d6f"},{pantone:"18-0312",name:"deep-lichen-green",hex:"#6e6e5c"},{pantone:"19-0309",name:"thyme",hex:"#50574c"},{pantone:"19-0417",name:"kombu-green",hex:"#3a4032"},{pantone:"19-6110",name:"deep-forest",hex:"#37413a"},{pantone:"19-0414",name:"forest-night",hex:"#434237"},{pantone:"19-0509",name:"rosin",hex:"#36362d"},{pantone:"13-6108",name:"celadon",hex:"#b8ccba"},{pantone:"13-5305",name:"pale-aqua",hex:"#c1ccc2"},{pantone:"14-4505",name:"smoke",hex:"#bfc8c3"},{pantone:"13-4305",name:"foggy-dew",hex:"#d1d5d0"},{pantone:"14-4502",name:"mercury",hex:"#bac2ba"},{pantone:"15-5704",name:"mineral-gray",hex:"#b2b6ac"},{pantone:"15-5205",name:"aqua-gray",hex:"#a5b2aa"},{pantone:"12-6206",name:"fairest-jade",hex:"#d8e3d7"},{pantone:"11-0304",name:"water-lily",hex:"#dde3d5"},{pantone:"12-0108",name:"canary-green",hex:"#d6dec9"},{pantone:"13-6006",name:"almost-aqua",hex:"#cad3c1"},{pantone:"13-6106",name:"green-tint",hex:"#c5ccc0"},{pantone:"14-6007",name:"sea-foam",hex:"#b7c2b2"},{pantone:"16-0110",name:"desert-sage",hex:"#a7ae9e"},{pantone:"12-5404",name:"whisper-green",hex:"#e0e6d7"},{pantone:"13-6105",name:"celadon-tint",hex:"#cbcebe"},{pantone:"13-0107",name:"dewkist",hex:"#c4d1c2"},{pantone:"13-6107",name:"green-lily",hex:"#c1cec1"},{pantone:"14-6312",name:"cameo-green",hex:"#aac0ad"},{pantone:"16-6008",name:"seagrass",hex:"#959889"},{pantone:"17-6206",name:"shadow",hex:"#888d82"},{pantone:"12-5504",name:"clearly-aqua",hex:"#cee1d4"},{pantone:"13-6008",name:"misty-jade",hex:"#bcd9c8"},{pantone:"14-6008",name:"subtle-green",hex:"#b5cbbb"},{pantone:"14-5707",name:"aqua-foam",hex:"#adc3b4"},{pantone:"13-5907",name:"gossamer-green",hex:"#b2cfbe"},{pantone:"15-5812",name:"lichen",hex:"#9bc2b1"},{pantone:"14-6011",name:"grayed-jade",hex:"#9bbea9"},{pantone:"12-6205",name:"milky-green",hex:"#cfdbd1"},{pantone:"12-6208",name:"phantom-green",hex:"#dce4d7"},{pantone:"13-6110",name:"mist-green",hex:"#aacebc"},{pantone:"13-5911",name:"birds-egg-green",hex:"#aaccb9"},{pantone:"13-6208",name:"bok-choy",hex:"#bccab3"},{pantone:"15-6315",name:"smoke-green",hex:"#a8bba2"},{pantone:"16-5917",name:"malachite-green",hex:"#709a89"},{pantone:"16-0220",name:"mistletoe",hex:"#8aa282"},{pantone:"16-6216",name:"basil",hex:"#879f84"},{pantone:"16-6318",name:"mineral-green",hex:"#7a9b78"},{pantone:"16-0224",name:"green-eyes",hex:"#7d956d"},{pantone:"17-0119",name:"turf-green",hex:"#6f8c69"},{pantone:"17-0220",name:"watercress",hex:"#748c69"},{pantone:"18-0121",name:"elm-green",hex:"#547053"},{pantone:"17-6323",name:"hedge-green",hex:"#768a75"},{pantone:"17-0210",name:"loden-frost",hex:"#788f74"},{pantone:"16-6116",name:"shale-green",hex:"#739072"},{pantone:"17-6319",name:"kashmir",hex:"#6f8d6a"},{pantone:"17-0123",name:"stone-green",hex:"#658e,67"},{pantone:"18-0110",name:"english-ivy",hex:"#61845b"},{pantone:"17-6219",name:"deep-grass-green",hex:"#558367"},{pantone:"17-0235",name:"piquant-green",hex:"#769358"},{pantone:"17-0230",name:"forest-green",hex:"#6b8d53"},{pantone:"17-0133",name:"fluorite-green",hex:"#699158"},{pantone:"18-0130",name:"cactus",hex:"#53713d"},{pantone:"19-0230",name:"garden-green",hex:"#495e,35"},{pantone:"18-0125",name:"artichoke-green",hex:"#4b6d41"},{pantone:"18-0119",name:"willow-bough",hex:"#59754d"},{pantone:"17-0215",name:"aspen-green",hex:"#7e9b76"},{pantone:"17-6229",name:"medium-green",hex:"#3c824e"},{pantone:"18-6330",name:"juniper",hex:"#3d7245"},{pantone:"18-6320",name:"fairway",hex:"#477050"},{pantone:"18-0117",name:"vineyard-green",hex:"#5f7355"},{pantone:"18-0108",name:"dill",hex:"#6f7755"},{pantone:"19-6311",name:"greener-pastures",hex:"#37503d"},{pantone:"18-0420",name:"four-leaf-clover",hex:"#616652"},{pantone:"18-0317",name:"bronze-green",hex:"#525f48"},{pantone:"19-0323",name:"chive",hex:"#4a5335"},{pantone:"18-0322",name:"cypress",hex:"#545a3e"},{pantone:"19-0315",name:"black-forest",hex:"#414f3c"},{pantone:"19-0419",name:"rifle-green",hex:"#414832"},{pantone:"19-0415",name:"duffel-bag",hex:"#394034"},{pantone:"12-0109",name:"ambrosia",hex:"#d2e7ca"},{pantone:"13-6007",name:"spray",hex:"#bed3bb"},{pantone:"13-0116",name:"pastel-green",hex:"#b4d3b2"},{pantone:"15-6114",name:"hemlock",hex:"#97c1a1"},{pantone:"14-6316",name:"sprucestone",hex:"#9fc09c"},{pantone:"14-6319",name:"meadow",hex:"#8bba94"},{pantone:"16-6324",name:"jadesheen",hex:"#77a276"},{pantone:"13-0117",name:"green-ash",hex:"#a0daa9"},{pantone:"14-0127",name:"greengage",hex:"#8bc28c"},{pantone:"15-6120",name:"ming",hex:"#7cb08a"},{pantone:"14-6327",name:"zephyr-green",hex:"#7cb083"},{pantone:"14-6324",name:"peapod",hex:"#82b185"},{pantone:"15-6322",name:"light-grass-green",hex:"#7cb68e"},{pantone:"14-6329",name:"absinthe-green",hex:"#76b583"},{pantone:"14-6017",name:"neptune-green",hex:"#7fbb9e"},{pantone:"16-5919",name:"creme-de-menthe",hex:"#70a38d"},{pantone:"16-5924",name:"winter-green",hex:"#4f9e81"},{pantone:"16-5825",name:"gumdrop-green",hex:"#2ea785"},{pantone:"16-5932",name:"holly-green",hex:"#0f9d76"},{pantone:"17-5735",name:"parakeet",hex:"#008c69"},{pantone:"18-5642",name:"golf-green",hex:"#00,8763"},{pantone:"14-6330",name:"spring-bud",hex:"#6bcd9c"},{pantone:"16-6030",name:"katydid",hex:"#66bc91"},{pantone:"15-6123",name:"jade-cream",hex:"#60b892"},{pantone:"16-5930",name:"ming-green",hex:"#3aa278"},{pantone:"16-6127",name:"greenbriar",hex:"#4b9b69"},{pantone:"18-6022",name:"leprechaun",hex:"#378661"},{pantone:"17-5923",name:"pine-green",hex:"#3a795e"},{pantone:"16-5942",name:"blarney",hex:"#00a776"},{pantone:"16-5938",name:"mint",hex:"#00a170"},{pantone:"17-5937",name:"deep-mint",hex:"#009e6d"},{pantone:"17-5936",name:"simply-green",hex:"#009b75"},{pantone:"18-5841",name:"pepper-green",hex:"#007d60"},{pantone:"18-5633",name:"bosphorus",hex:"#00,7558"},{pantone:"19-6026",name:"verdant-green",hex:"#12674a"},{pantone:"13-0111",name:"seacrest",hex:"#bfd1b3"},{pantone:"12-0317",name:"gleam",hex:"#bfd1ad"},{pantone:"14-0121",name:"nile-green",hex:"#a7c796"},{pantone:"15-6317",name:"quiet-green",hex:"#9ebc97"},{pantone:"15-6316",name:"fair-green",hex:"#92af88"},{pantone:"15-6423",name:"forest-shade",hex:"#91ac80"},{pantone:"16-0228",name:"jade-green",hex:"#759465"},{pantone:"12-0225",name:"patina-green",hex:"#b9eab3"},{pantone:"13-0221",name:"pistachio-green",hex:"#a9d39e"},{pantone:"14-0123",name:"arcadian-green",hex:"#a3c893"},{pantone:"15-6437",name:"grass-green",hex:"#7bb369"},{pantone:"15-6442",name:"bud-green",hex:"#79b465"},{pantone:"15-6428",name:"green-tea",hex:"#86a96f"},{pantone:"16-0123",name:"tendril",hex:"#89a06b"},{pantone:"13-0220",name:"paradise-green",hex:"#b2e79f"},{pantone:"14-0452",name:"lime-green",hex:"#9fc131"},{pantone:"15-0545",name:"jasmine-green",hex:"#7ec845"},{pantone:"15-0146",name:"green-flash",hex:"#79c753"},{pantone:"16-6340",name:"classic-green",hex:"#39a845"},{pantone:"17-0145",name:"online-lime",hex:"#44883c"},{pantone:"18-0135",name:"treetop",hex:"#476a30"},{pantone:"14-0156",name:"summer-green",hex:"#7ed37f"},{pantone:"14-6340",name:"spring-bouquet",hex:"#6dce87"},{pantone:"16-6240",name:"island-green",hex:"#2bae66"},{pantone:"15-6340",name:"irish-green",hex:"#45be76"},{pantone:"15-6432",name:"shamrock",hex:"#6fa26b"},{pantone:"16-6329",name:"peppermint",hex:"#699e6d"},{pantone:"17-6333",name:"mint-green",hex:"#487d49"},{pantone:"16-6444",name:"poison-green",hex:"#4db560"},{pantone:"16-6339",name:"vibrant-green",hex:"#55a860"},{pantone:"16-6138",name:"kelly-green",hex:"#339c5e"},{pantone:"15-5534",name:"bright-green",hex:"#009b5c"},{pantone:"17-6153",name:"fern-green",hex:"#008c45"},{pantone:"17-6030",name:"jelly-bean",hex:"#00,8658"},{pantone:"18-6024",name:"amazon",hex:"#1f7349"},{pantone:"13-0442",name:"green-glow",hex:"#b0c965"},{pantone:"14-0244",name:"bright-lime-green",hex:"#97bc62"},{pantone:"15-0343",name:"greenery",hex:"#88b04b"},{pantone:"16-0237",name:"foliage",hex:"#75a14f"},{pantone:"17-0336",name:"peridot",hex:"#819548"},{pantone:"16-0233",name:"meadow-green",hex:"#739957"},{pantone:"18-0538",name:"woodbine",hex:"#7b7f32"},{pantone:"14-0232",name:"jade-lime",hex:"#a1ca7b"},{pantone:"15-0336",name:"herbal-garden",hex:"#9cad60"},{pantone:"15-0332",name:"leaf-green",hex:"#9faf6c"},{pantone:"15-0341",name:"parrot-green",hex:"#8db051"},{pantone:"16-0435",name:"dark-citron",hex:"#a0ac4f"},{pantone:"16-0230",name:"macaw-green",hex:"#9bb53e"},{pantone:"16-0235",name:"kiwi",hex:"#7aab55"},{pantone:"13-0535",name:"sharp-green",hex:"#c6ec7a"},{pantone:"12-0435",name:"daiquiri-green",hex:"#c9d77e"},{pantone:"13-0540",name:"wild-lime",hex:"#c3d363"},{pantone:"15-0533",name:"linden-green",hex:"#c4bf71"},{pantone:"14-0445",name:"bright-chartreuse",hex:"#b5bf50"},{pantone:"14-0446",name:"tender-shoots",hex:"#b5cc39"},{pantone:"13-0550",name:"lime-punch",hex:"#c0d725"},{pantone:"12-0741",name:"sunny-lime",hex:"#dfef87"},{pantone:"13-0645",name:"limeade",hex:"#d3d95f"},{pantone:"13-0650",name:"sulphur-spring",hex:"#d5d717"},{pantone:"15-0548",name:"citronelle",hex:"#b8af23"},{pantone:"15-0543",name:"apple-green",hex:"#b5b644"},{pantone:"15-0646",name:"warm-olive",hex:"#c7b63c"},{pantone:"16-0840",name:"antique-moss",hex:"#b9a023"},{pantone:"12-0312",name:"lime-cream",hex:"#d7e8bc"},{pantone:"13-0319",name:"shadow-lime",hex:"#cfe09d"},{pantone:"13-0530",name:"lime-sherbet",hex:"#cdd78a"},{pantone:"13-0324",name:"lettuce-green",hex:"#bed38e"},{pantone:"13-0331",name:"sap-green",hex:"#afcb80"},{pantone:"14-0226",name:"opaline-green",hex:"#a3c57d"},{pantone:"15-0523",name:"winter-pear",hex:"#b0b487"},{pantone:"11-0410",name:"sylvan-green",hex:"#e7eacb"},{pantone:"11-0205",name:"glass-green",hex:"#ecead0"},{pantone:"12-0607",name:"green-essence",hex:"#e9eac8"},{pantone:"11-0609",name:"ethereal-green",hex:"#f1ecca"},{pantone:"13-0614",name:"garden-glade",hex:"#dcd8a8"},{pantone:"12-0418",name:"hay",hex:"#d3cca3"},{pantone:"13-0522",name:"pale-green",hex:"#cbce91"},{pantone:"12-0521",name:"young-wheat",hex:"#e1e3a9"},{pantone:"12-0524",name:"citron",hex:"#dfde9b"},{pantone:"12-0525",name:"luminary-green",hex:"#e3eaa5"},{pantone:"12-0520",name:"pale-lime-yellow",hex:"#dfe69f"},{pantone:"13-0633",name:"chardonnay",hex:"#e7df99"},{pantone:"13-0333",name:"lima-bean",hex:"#e1d590"},{pantone:"12-0530",name:"charlock",hex:"#e5e790"},{pantone:"12-0426",name:"mellow-green",hex:"#d5d593"},{pantone:"14-0627",name:"shadow-green",hex:"#cfc486"},{pantone:"13-0532",name:"celery-green",hex:"#c5cc7b"},{pantone:"14-0434",name:"green-banana",hex:"#babc72"},{pantone:"15-0538",name:"green-oasis",hex:"#b0b454"},{pantone:"15-0628",name:"leek-green",hex:"#b7b17a"},{pantone:"15-0525",name:"weeping-willow",hex:"#b3b17b"},{pantone:"15-0535",name:"palm",hex:"#afaf5e"},{pantone:"16-0639",name:"golden-olive",hex:"#af9841"},{pantone:"16-0540",name:"oasis",hex:"#a3a04e"},{pantone:"16-0532",name:"moss",hex:"#a09d59"},{pantone:"17-0840",name:"amber-green",hex:"#9a803a"},{pantone:"17-0836",name:"ecru-olive",hex:"#927b3c"},{pantone:"17-0636",name:"green-moss",hex:"#857946"},{pantone:"16-0726",name:"khaki",hex:"#a39264"},{pantone:"17-0929",name:"fennel-seed",hex:"#998456"},{pantone:"16-0632",name:"willow",hex:"#9a8b4f"},{pantone:"17-0843",name:"bronze-mist",hex:"#9c7e41"},{pantone:"18-0835",name:"dried-tobacco",hex:"#997b38"},{pantone:"18-0840",name:"tapenade",hex:"#805d24"},{pantone:"18-0832",name:"plantation",hex:"#7a6332"},{pantone:"13-0210",name:"fog-green",hex:"#c2cbb4"},{pantone:"13-0212",name:"tender-greens",hex:"#c5cfb6"},{pantone:"13-0608",name:"aloe-wash",hex:"#d0d3b7"},{pantone:"14-0114",name:"celadon-green",hex:"#b5c1a5"},{pantone:"15-6313",name:"laurel-green",hex:"#adbba1"},{pantone:"15-6310",name:"swamp",hex:"#a8b197"},{pantone:"15-6414",name:"reseda",hex:"#a1ad92"},{pantone:"12-0106",name:"meadow-mist",hex:"#d3dec4"},{pantone:"12-0322",name:"butterfly",hex:"#cadea5"},{pantone:"12-0315",name:"white-jade",hex:"#d4dbb2"},{pantone:"12-0313",name:"seafoam-green",hex:"#cbd5b1"},{pantone:"13-0215",name:"reed",hex:"#c3d3a8"},{pantone:"14-0217",name:"seedling",hex:"#c0cba1"},{pantone:"14-0115",name:"foam-green",hex:"#b4c79c"},{pantone:"13-0317",name:"lily-green",hex:"#c5cf98"},{pantone:"14-0425",name:"beechnut",hex:"#c2c18d"},{pantone:"14-0223",name:"nile",hex:"#b4bb85"},{pantone:"15-0531",name:"sweet-pea",hex:"#a3a969"},{pantone:"16-0439",name:"spinach-green",hex:"#909b4c"},{pantone:"16-0430",name:"fern",hex:"#9aa067"},{pantone:"17-0535",name:"green-olive",hex:"#8d8b55"},{pantone:"17-0324",name:"epsom",hex:"#849161"},{pantone:"18-0332",name:"grasshopper",hex:"#77824a"},{pantone:"17-0330",name:"turtle-green",hex:"#81894e"},{pantone:"18-0324",name:"calliste-green",hex:"#757a4e"},{pantone:"18-0435",name:"calla-green",hex:"#6a6f34"},{pantone:"18-0328",name:"cedar-green",hex:"#5e6737"},{pantone:"18-0228",name:"pesto",hex:"#595f34"},{pantone:"15-0326",name:"tarragon",hex:"#a4ae77"},{pantone:"16-0421",name:"sage",hex:"#91946e"},{pantone:"18-0525",name:"iguana",hex:"#818455"},{pantone:"17-0115",name:"oil-green",hex:"#80856d"},{pantone:"18-0422",name:"loden-green",hex:"#6e7153"},{pantone:"18-0426",name:"capulet-olive",hex:"#656344"},{pantone:"18-0316",name:"olivine",hex:"#666b54"},{pantone:"14-0216",name:"lint",hex:"#b6ba99"},{pantone:"15-0522",name:"pale-olive-green",hex:"#b5ad88"},{pantone:"15-0318",name:"sage-green",hex:"#b2ac88"},{pantone:"16-0518",name:"gray-green",hex:"#a49a79"},{pantone:"16-1118",name:"sponge",hex:"#a49775"},{pantone:"17-0618",name:"mermaid",hex:"#817a65"},{pantone:"17-0517",name:"dusky-green",hex:"#746c57"},{pantone:"16-0213",name:"tea",hex:"#999b85"},{pantone:"17-0510",name:"silver-sage",hex:"#938b78"},{pantone:"16-0713",name:"slate-green",hex:"#a0987c"},{pantone:"16-0613",name:"elm",hex:"#a39f86"},{pantone:"17-0525",name:"mosstone",hex:"#858961"},{pantone:"17-0620",name:"aloe",hex:"#817a60"},{pantone:"18-0622",name:"olive-drab",hex:"#756d47"},{pantone:"16-0526",name:"cedar",hex:"#928e,64"},{pantone:"17-0625",name:"boa",hex:"#8e855f"},{pantone:"17-0627",name:"dried-herb",hex:"#847a59"},{pantone:"18-0527",name:"olive-branch",hex:"#646a45"},{pantone:"18-0629",name:"lizard",hex:"#71643e"},{pantone:"18-0430",name:"avocado",hex:"#676232"},{pantone:"18-0627",name:"fir-green",hex:"#67592a"},{pantone:"14-0418",name:"bog",hex:"#bab696"},{pantone:"17-1019",name:"elmwood",hex:"#8c7c61"},{pantone:"18-0724",name:"gothic-olive",hex:"#7c6e4f"},{pantone:"18-0830",name:"butternut",hex:"#7a643f"},{pantone:"18-0825",name:"nutria",hex:"#75663e"},{pantone:"19-0622",name:"military-olive",hex:"#63563b"},{pantone:"19-0516",name:"dark-olive",hex:"#574d35"},{pantone:"15-6410",name:"moss-gray",hex:"#afab97"},{pantone:"14-6408",name:"abbey-stone",hex:"#aba798"},{pantone:"18-0521",name:"burnt-olive",hex:"#646049"},{pantone:"18-0515",name:"dusty-olive",hex:"#646356"},{pantone:"19-0512",name:"ivy-green",hex:"#585442"},{pantone:"19-0515",name:"olive-night",hex:"#535040"},{pantone:"19-0511",name:"grape-leaf",hex:"#545144"},{pantone:"15-3800",name:"porpoise",hex:"#a7a19e"},{pantone:"16-3800",name:"satellite",hex:"#9f8d89"},{pantone:"18-1210",name:"driftwood",hex:"#847a75"},{pantone:"18-1304",name:"falcon",hex:"#6d625b"},{pantone:"19-0808",name:"morel",hex:"#685c53"},{pantone:"18-1108",name:"fallen-rock",hex:"#807669"},{pantone:"16-0205",name:"vintage-khaki",hex:"#9a9186"},{pantone:"16-1104",name:"crockery",hex:"#a49887"},{pantone:"16-1109",name:"greige",hex:"#928475"},{pantone:"17-1311",name:"desert-taupe",hex:"#8d7e71"},{pantone:"15-1307",name:"white-pepper",hex:"#b6a893"},{pantone:"15-1304",name:"humus",hex:"#b7a793"},{pantone:"17-1316",name:"portabella",hex:"#937b6a"},{pantone:"18-1017",name:"caribou",hex:"#816d5e"},{pantone:"15-1114",name:"travertine",hex:"#ae997d"},{pantone:"16-1120",name:"starfish",hex:"#b09a77"},{pantone:"15-1218",name:"semolina",hex:"#ceb899"},{pantone:"16-0920",name:"curds-and-whey",hex:"#bca483"},{pantone:"17-1038",name:"tigers-eye",hex:"#977c61"},{pantone:"18-1029",name:"toasted-coconut",hex:"#8b6a4f"},{pantone:"19-0916",name:"rain-drum",hex:"#5f4c40"},{pantone:"11-0615",name:"pear-sorbet",hex:"#f3eac3"},{pantone:"12-0718",name:"pineapple-slice",hex:"#e7d391"},{pantone:"12-0758",name:"yarrow",hex:"#face6d"},{pantone:"12-0717",name:"anise-flower",hex:"#f4e3b5"},{pantone:"11-0619",name:"flan",hex:"#f6e3b4"},{pantone:"12-0729",name:"sundress",hex:"#ebcf89"},{pantone:"12-0709",name:"macadamia",hex:"#e4cfb6"},{pantone:"12-0711",name:"lemon-meringue",hex:"#f6e199"},{pantone:"11-0622",name:"yellow-iris",hex:"#eee78e"},{pantone:"12-0737",name:"goldfinch",hex:"#f8dc6c"},{pantone:"13-0756",name:"lemon-zest",hex:"#f9d857"},{pantone:"13-0759",name:"solar-power",hex:"#f4bf3a"},{pantone:"14-0851",name:"samoan-sun",hex:"#fbc85f"},{pantone:"16-1149",name:"desert-sun",hex:"#c87629"},{pantone:"18-1163",name:"pumpkin-spice",hex:"#a05c17"},{pantone:"16-1164",name:"orange-pepper",hex:"#df7500"},{pantone:"17-1140",name:"marmalade",hex:"#c16512"},{pantone:"18-1249",name:"hawaiian-sunset",hex:"#bb5c14"},{pantone:"17-1342",name:"autumnal",hex:"#a15325"},{pantone:"18-1246",name:"umber",hex:"#944a1f"},{pantone:"17-1349",name:"exuberance",hex:"#e86800"},{pantone:"16-1363",name:"puffins-bill",hex:"#e95c20"},{pantone:"18-1148",name:"caramel-cafe",hex:"#864c24"},{pantone:"16-1449",name:"gold-flame",hex:"#b45422"},{pantone:"18-1345",name:"cinnamon-stick",hex:"#9b4722"},{pantone:"18-1340",name:"potters-clay",hex:"#9e4624"},{pantone:"18-1355",name:"rooibos-tea",hex:"#a23c26"},{pantone:"17-1360",name:"celosia-orange",hex:"#e8703a"},{pantone:"17-1461",name:"orangeade",hex:"#e2552c"},{pantone:"17-1449",name:"pureed-pumpkin",hex:"#c34121"},{pantone:"17-1463",name:"tangerine-tango",hex:"#dd4124"},{pantone:"18-1564",name:"poinciana",hex:"#ca3422"},{pantone:"17-1452",name:"koi",hex:"#d15837"},{pantone:"19-1662",name:"samba",hex:"#a2242f"},{pantone:"19-1757",name:"barbados-cherry",hex:"#aa0a27"},{pantone:"19-1758",name:"haute-red",hex:"#a11729"},{pantone:"18-1657",name:"salsa",hex:"#aa182b"},{pantone:"19-1559",name:"scarlet-sage",hex:"#9d202f"},{pantone:"19-1863",name:"scooter",hex:"#941e,32"},{pantone:"19-1555",name:"red-dahlia",hex:"#7d2027"},{pantone:"19-1531",name:"sun-dried-tomato",hex:"#752329"},{pantone:"19-1337",name:"fired-brick",hex:"#6a2e2a"},{pantone:"19-1652",name:"rhubarb",hex:"#77202f"},{pantone:"19-1535",name:"syrah",hex:"#6a282c"},{pantone:"19-1930",name:"pomegranate",hex:"#6c2831"},{pantone:"19-1724",name:"cabernet",hex:"#64242e"},{pantone:"13-2807",name:"ballerina",hex:"#f2cfdc"},{pantone:"13-2802",name:"fairy-tale",hex:"#f2c1d1"},{pantone:"15-1506",name:"etherea",hex:"#a5958f"},{pantone:"16-1710",name:"foxglove",hex:"#b98391"},{pantone:"17-1609",name:"mesa-rose",hex:"#a66e7a"},{pantone:"18-1950",name:"jazzy",hex:"#b61c50"},{pantone:"19-2039",name:"granita",hex:"#a52350"},{pantone:"19-2041",name:"cherries-jubilee",hex:"#a22452"},{pantone:"18-2140",name:"cabaret",hex:"#cb3373"},{pantone:"19-2045",name:"vivacious",hex:"#a32857"},{pantone:"18-3628",name:"bellflower",hex:"#9469a2"},{pantone:"17-3617",name:"english-lavendar",hex:"#9d7bb0"},{pantone:"16-3817",name:"rhapsody",hex:"#9f86aa"},{pantone:"19-3628",name:"acai",hex:"#46295a"},{pantone:"19-3638",name:"tillandsia-purple",hex:"#563474"},{pantone:"18-3635",name:"picasso-lily",hex:"#634878"},{pantone:"18-3620",name:"mystical",hex:"#5f4e72"},{pantone:"15-3908",name:"icelandic-blue",hex:"#a9adc2"},{pantone:"15-3912",name:"aleutian",hex:"#9a9eb3"},{pantone:"17-3933",name:"silver-bullet",hex:"#81839a"},{pantone:"18-3933",name:"blue-granite",hex:"#717388"},{pantone:"19-3815",name:"evening-blue",hex:"#2a293e"},{pantone:"19-3713",name:"deep-well",hex:"#2c2a33"},{pantone:"19-3924",name:"night-sky",hex:"#2a2a35"},{pantone:"16-3921",name:"blue-heron",hex:"#96a3c7"},{pantone:"16-4030",name:"hydrangea",hex:"#849bcc"},{pantone:"14-3949",name:"xenon-blue",hex:"#b7c0d7"},{pantone:"16-3922",name:"brunnera-blue",hex:"#9ba9ca"},{pantone:"19-3922",name:"sky-captain",hex:"#262934"},{pantone:"19-3923",name:"navy-blazer",hex:"#282d3c"},{pantone:"19-4020",name:"dark-sapphire",hex:"#262b37"},{pantone:"13-4111",name:"plein-air",hex:"#bfcad6"},{pantone:"13-3920",name:"halogen-blue",hex:"#bdc6dc"},{pantone:"15-4030",name:"chambray-blue",hex:"#9eb4d3"},{pantone:"15-3932",name:"bel-air-blue",hex:"#819ac1"},{pantone:"19-3929",name:"vintage-indigo",hex:"#4a556b"},{pantone:"19-3953",name:"sodalite-blue",hex:"#253668"},{pantone:"19-4022",name:"parisian-night",hex:"#323441"},{pantone:"19-3964",name:"monaco-blue",hex:"#274374"},{pantone:"18-4034",name:"vallarta-blue",hex:"#30658e"},{pantone:"19-4011",name:"salute",hex:"#282b34"},{pantone:"19-4009",name:"outer-space",hex:"#2f3441"},{pantone:"19-4021",name:"blueberry",hex:"#2c333e"},{pantone:"19-4012",name:"carbon",hex:"#272f38"},{pantone:"19-4218",name:"vulcan",hex:"#2d3036"},{pantone:"13-4200",name:"omphalodes",hex:"#b5cedf"},{pantone:"14-4317",name:"cool-blue",hex:"#a5c5d9"},{pantone:"18-4028",name:"bering-sea",hex:"#4b5b6e"},{pantone:"19-4121",name:"blue-wing-teal",hex:"#2c4053"},{pantone:"19-4033",name:"poseidon",hex:"#123955"},{pantone:"18-4434",name:"mykonos-blue",hex:"#00,5780"},{pantone:"19-4326",name:"reflecting-pond",hex:"#203e4a"},{pantone:"14-4311",name:"corydalis-blue",hex:"#a9cada"},{pantone:"14-4310",name:"blue-topaz",hex:"#78bdd4"},{pantone:"14-4511",name:"gulf-stream",hex:"#88c3d0"},{pantone:"15-4714",name:"aquarelle",hex:"#61aab1"},{pantone:"14-4812",name:"aqua-splash",hex:"#85ced1"},{pantone:"19-5220",name:"botanical-garden",hex:"#12403c"},{pantone:"19-5350",name:"scarab",hex:"#23312d"},{pantone:"13-4108",name:"nimbus-cloud",hex:"#d5d5d8"},{pantone:"14-4105",name:"micro-chip",hex:"#babcc0"},{pantone:"16-5101",name:"wet-weather",hex:"#929090"},{pantone:"17-4014",name:"titanium",hex:"#807d7f"},{pantone:"18-4016",name:"december-sky",hex:"#767275"},{pantone:"19-3900",name:"pavement",hex:"#524d50"},{pantone:"19-3901",name:"magnet",hex:"#4d4b4f"},{pantone:"16-3850",name:"silver-sconce",hex:"#a19fa5"},{pantone:"17-3911",name:"silver-filigree",hex:"#7f7c81"},{pantone:"17-3907",name:"quicksilver",hex:"#7e7d88"},{pantone:"17-1503",name:"storm-front",hex:"#787376"},{pantone:"18-3907",name:"tornado",hex:"#5e5b60"},{pantone:"18-5210",name:"eiffel-tower",hex:"#5c5658"},{pantone:"19-3927",name:"graphite",hex:"#3b3b48"},{pantone:"16-3915",name:"alloy",hex:"#98979a"},{pantone:"16-3916",name:"sleet",hex:"#92949b"},{pantone:"15-4307",name:"tradewinds",hex:"#7f8793"},{pantone:"18-3912",name:"grisaille",hex:"#585e6f"},{pantone:"19-3918",name:"periscope",hex:"#46444c"},{pantone:"18-4006",name:"quiet-shade",hex:"#66676d"},{pantone:"19-4215",name:"turbulence",hex:"#4e545b"},{pantone:"18-4214",name:"stormy-weather",hex:"#58646d"},{pantone:"19-3910",name:"iron-gate",hex:"#4e5055"},{pantone:"19-3907",name:"forged-iron",hex:"#48464a"},{pantone:"19-0201",name:"asphalt",hex:"#434447"},{pantone:"16-4703",name:"ghost-gray",hex:"#9c9b98"},{pantone:"18-5102",name:"brushed-nickel",hex:"#73706f"},{pantone:"16-4400",name:"mourning-dove",hex:"#94908b"},{pantone:"15-4306",name:"belgian-block",hex:"#a3a9a6"},{pantone:"18-5806",name:"agave-green",hex:"#6b7169"},{pantone:"19-5621",name:"cilantro",hex:"#43544b"},{pantone:"19-5406",name:"pine-grove",hex:"#213631"},{pantone:"19-6050",name:"eden",hex:"#264e,36"},{pantone:"18-6030",name:"jolly-green",hex:"#00,7844"},{pantone:"19-5918",name:"mountain-view",hex:"#2e3d30"},{pantone:"14-0116",name:"margarita",hex:"#b5c38e"},{pantone:"18-0523",name:"winter-moss",hex:"#5b5a41"},{pantone:"19-0307",name:"climbing-ivy",hex:"#444940"},{pantone:"19-0840",name:"delicioso",hex:"#3f352f"},{pantone:"19-0910",name:"mulch",hex:"#433937"},{pantone:"19-1106",name:"mole",hex:"#392d2b"},{pantone:"19-1109",name:"chocolate-torte",hex:"#382e2d"},{pantone:"19-1018",name:"ganache",hex:"#34292a"},{pantone:"19-3909",name:"black-bean",hex:"#2e272a"},{pantone:"19-1103",name:"espresso",hex:"#363031"},{pantone:"19-4008",name:"meteorite",hex:"#2b2929"},{pantone:"19-4004",name:"tap-shoe",hex:"#2a2b2d"},{pantone:"11-1001",name:"white-alyssum",hex:"#efebe7"},{pantone:"11-0605",name:"jet-stream",hex:"#ede6de"},{pantone:"11-0106",name:"sweet-cream",hex:"#f0ead6"},{pantone:"11-0110",name:"buttercream",hex:"#efe0cd"},{pantone:"11-0515",name:"lemon-icing",hex:"#f6ebc8"},{pantone:"11-0607",name:"sugar-swizzle",hex:"#f3eee7"},{pantone:"11-0608",name:"coconut-milk",hex:"#f0ede5"},{pantone:"11-0623",name:"yellow-pear",hex:"#ece99b"},{pantone:"11-1302",name:"sea-salt",hex:"#f1e6de"},{pantone:"11-4001",name:"brilliant-white",hex:"#edf1fe"},{pantone:"11-4302",name:"cannoli-cream",hex:"#f0efe2"},{pantone:"11-4801",name:"tofu",hex:"#e8e3d9"},{pantone:"12-0110",name:"pistachio-shell",hex:"#d7cfbb"},{pantone:"12-0646",name:"celandine",hex:"#ebdf67"},{pantone:"12-0742",name:"lemon-verbena",hex:"#f3e779"},{pantone:"12-1110",name:"creme-de-peche",hex:"#f5d6c6"},{pantone:"12-1813",name:"marys-rose",hex:"#f7d1d4"},{pantone:"12-2901",name:"morganite",hex:"#dfcdc6"},{pantone:"12-2907",name:"rose-water",hex:"#f8e0e7"},{pantone:"12-4301",name:"almond-milk",hex:"#d6cebe"},{pantone:"13-0443",name:"lime-popsicle",hex:"#c0db3a"},{pantone:"13-0644",name:"golden-kiwi",hex:"#f3dd3e"},{pantone:"13-0646",name:"meadowlark",hex:"#ead94e"},{pantone:"13-0651",name:"evening-primrose",hex:"#ccdb1e"},{pantone:"13-0849",name:"habanero-gold",hex:"#fed450"},{pantone:"13-0851",name:"minion-yellow",hex:"#fed55d"},{pantone:"13-0919",name:"soybean",hex:"#d2c29d"},{pantone:"13-0946",name:"jurassic-gold",hex:"#e7aa56"},{pantone:"13-1105",name:"brown-rice",hex:"#c7bba4"},{pantone:"13-1125",name:"peach-quartz",hex:"#f5b895"},{pantone:"13-1208",name:"peachy-keen",hex:"#e2bdb3"},{pantone:"13-1308",name:"brazilian-sand",hex:"#dacab7"},{pantone:"13-1511",name:"pink-salt",hex:"#f7cdc7"},{pantone:"13-1520",name:"rose-quartz",hex:"#f7cac9"},{pantone:"13-2808",name:"ballet-slipper",hex:"#ebced5"},{pantone:"13-3207",name:"cherry-blossom",hex:"#f7cee0"},{pantone:"13-4104",name:"antarctica",hex:"#c6c5c6"},{pantone:"13-4201",name:"oyster-mushroom",hex:"#c3c6c8"},{pantone:"13-4720",name:"tanager-turquoise",hex:"#91dce8"},{pantone:"13-4810",name:"limpet-shell",hex:"#98ddde"},{pantone:"13-5410",name:"iced-aqua",hex:"#abd3db"},{pantone:"14-0340",name:"acid-lime",hex:"#badf30"},{pantone:"14-0952",name:"spicy-mustard",hex:"#d8ae47"},{pantone:"14-1052",name:"kumquat",hex:"#fbaa4c"},{pantone:"14-1208",name:"irish-cream",hex:"#c0ac92"},{pantone:"14-1241",name:"orange-chiffon",hex:"#f9aa7d"},{pantone:"14-1315",name:"hazelnut",hex:"#cfb095"},{pantone:"14-1803",name:"sepia-rose",hex:"#d4bab6"},{pantone:"14-3906",name:"raindrops",hex:"#b1aab3"},{pantone:"14-3912",name:"zen-blue",hex:"#9fa9be"},{pantone:"14-4107",name:"quiet-gray",hex:"#b9babd"},{pantone:"14-4122",name:"airy-blue",hex:"#92b6d5"},{pantone:"14-4202",name:"harbor-mist",hex:"#afb1b4"},{pantone:"14-4315",name:"sea-angel",hex:"#98bfca"},{pantone:"14-4320",name:"baltic-sea",hex:"#79b5db"},{pantone:"14-4615",name:"antiqua-sand",hex:"#83c2cd"},{pantone:"14-4620",name:"island-paradise",hex:"#95dee3"},{pantone:"14-4710",name:"tibetan-stone",hex:"#82c2c7"},{pantone:"15-0960",name:"mango-mojito",hex:"#d69c2f"},{pantone:"15-1020",name:"ginger-root",hex:"#bfa58a"},{pantone:"15-1040",name:"iced-coffee",hex:"#b18f6a"},{pantone:"15-1045",name:"autumn-blaze",hex:"#d9922e"},{pantone:"15-1051",name:"golden-orange",hex:"#d7942d"},{pantone:"15-1125",name:"porcini",hex:"#cca580"},{pantone:"15-1151",name:"iceland-poppy",hex:"#f4963a"},{pantone:"15-1243",name:"papaya",hex:"#fea166"},{pantone:"15-1262",name:"carrot-curl",hex:"#fe8c18"},{pantone:"15-1264",name:"turmeric",hex:"#fe840e"},{pantone:"15-1335",name:"tangelo",hex:"#fe7e03"},{pantone:"15-1425",name:"fenugreek",hex:"#c0916c"},{pantone:"15-1429",name:"dusted-clay",hex:"#cc7357"},{pantone:"15-1430",name:"pastry-shell",hex:"#bd8c66"},{pantone:"15-1520",name:"blooming-dahlia",hex:"#eb9687"},{pantone:"15-3520",name:"crocus-petal",hex:"#b99bc5"},{pantone:"15-3716",name:"purple-rose",hex:"#b09fca"},{pantone:"15-3720",name:"lilac-breeze",hex:"#b3a0c9"},{pantone:"15-3919",name:"serenity",hex:"#91a8d0"},{pantone:"15-4428",name:"crystal-seas",hex:"#5dafce"},{pantone:"16-0543",name:"golden-lime",hex:"#9a9738"},{pantone:"16-0545",name:"split-pea",hex:"#9c9a40"},{pantone:"16-0550",name:"lentil-sprout",hex:"#aba44d"},{pantone:"16-1103",name:"pure-cashmere",hex:"#ada396"},{pantone:"16-1345",name:"sun-baked",hex:"#d27f63"},{pantone:"16-1347",name:"peach-caramel",hex:"#c5733d"},{pantone:"16-1348",name:"tomato-cream",hex:"#c57644"},{pantone:"16-1358",name:"orange-tiger",hex:"#f96714"},{pantone:"16-1438",name:"meerkat",hex:"#a46f44"},{pantone:"16-1453",name:"exotic-orange",hex:"#f96531"},{pantone:"16-1460",name:"dragon-fire",hex:"#fc642d"},{pantone:"16-1545",name:"coral-quartz",hex:"#f77464"},{pantone:"16-1548",name:"peach-echo",hex:"#f7786b"},{pantone:"16-1606",name:"purple-dove",hex:"#98878c"},{pantone:"16-3720",name:"sand-verbena",hex:"#9f90c1"},{pantone:"16-3905",name:"lilac-gray",hex:"#9896a4"},{pantone:"16-4033",name:"granada-sky",hex:"#5d81bb"},{pantone:"17-0630",name:"tree-house",hex:"#988c75"},{pantone:"17-0949",name:"chai-tea",hex:"#b1832f"},{pantone:"17-1052",name:"roasted-pecan",hex:"#93592b"},{pantone:"17-1105",name:"roasted-cashew",hex:"#918579"},{pantone:"17-1108",name:"winter-twig",hex:"#948a7a"},{pantone:"17-1115",name:"petrified-oak",hex:"#8d7960"},{pantone:"17-1142",name:"argan-oil",hex:"#8b593e"},{pantone:"17-1145",name:"autumn-maple",hex:"#c46215"},{pantone:"17-1314",name:"sepia-tint",hex:"#897560"},{pantone:"17-1345",name:"spice-route",hex:"#b95b3f"},{pantone:"17-1361",name:"scarlet-ibis",hex:"#f45520"},{pantone:"17-1450",name:"summer-fig",hex:"#be4b3b"},{pantone:"17-1708",name:"moonscape",hex:"#725f69"},{pantone:"17-1926",name:"fruit-dove",hex:"#ce5b78"},{pantone:"17-2034",name:"pink-yarrow",hex:"#ce3175"},{pantone:"17-2411",name:"toadstool",hex:"#988088"},{pantone:"17-3240",name:"bodacious",hex:"#b76ba3"},{pantone:"17-3520",name:"diffused-orchid",hex:"#9879a2"},{pantone:"17-3640",name:"fairy-wren",hex:"#9479af"},{pantone:"17-3735",name:"sunlit-allium",hex:"#9787bb"},{pantone:"17-3914",name:"sharkskin",hex:"#838487"},{pantone:"17-3929",name:"pale-iris",hex:"#8895c5"},{pantone:"17-3940",name:"iolite",hex:"#707bb4"},{pantone:"17-4016",name:"gray-flannel",hex:"#848182"},{pantone:"17-4028",name:"riverside",hex:"#4c6a92"},{pantone:"17-4029",name:"quiet-harbor",hex:"#5a789a"},{pantone:"17-4032",name:"lichen-blue",hex:"#5d89b3"},{pantone:"17-4033",name:"pacific-coast",hex:"#5480ac"},{pantone:"17-4245",name:"ibiza-blue",hex:"#007cb7"},{pantone:"17-4429",name:"navagio-bay",hex:"#3183a0"},{pantone:"17-4530",name:"barrier-reef",hex:"#0084a1"},{pantone:"17-0530",name:"guacamole",hex:"#797b3a"},{pantone:"18-0107",name:"kale",hex:"#5a7247"},{pantone:"18-0220",name:"mayfly",hex:"#65663f"},{pantone:"18-0330",name:"twist-of-lime",hex:"#4e632c"},{pantone:"18-0625",name:"martini-olive",hex:"#716a4d"},{pantone:"18-1028",name:"emperador",hex:"#684832"},{pantone:"18-1049",name:"thai-curry",hex:"#ab6819"},{pantone:"18-1050",name:"honey-ginger",hex:"#a86217"},{pantone:"18-1155",name:"sugar-almond",hex:"#935529"},{pantone:"18-1325",name:"spiced-apple",hex:"#783937"},{pantone:"18-1440",name:"chili-oil",hex:"#8e3c36"},{pantone:"18-1506",name:"plum-truffle",hex:"#675657"},{pantone:"18-1541",name:"brandy-brown",hex:"#73362a"},{pantone:"18-1549",name:"valiant-poppy",hex:"#bc322c"},{pantone:"18-1551",name:"aura-orange",hex:"#b4262a"},{pantone:"18-1653",name:"toreador",hex:"#b61032"},{pantone:"18-1654",name:"lychee",hex:"#ba0b32"},{pantone:"18-1659",name:"goji-berry",hex:"#b91228"},{pantone:"18-1705",name:"arctic-dusk",hex:"#735b6a"},{pantone:"18-1708",name:"ephemera",hex:"#6f5965"},{pantone:"18-1759",name:"jalapeno-red",hex:"#b2103c"},{pantone:"18-1951",name:"love-potion",hex:"#c01352"},{pantone:"18-2045",name:"pink-peacock",hex:"#c62168"},{pantone:"18-3014",name:"grape-kiss",hex:"#7b4368"},{pantone:"18-3120",name:"willowherb",hex:"#8e4483"},{pantone:"18-3340",name:"charisma",hex:"#632a60"},{pantone:"18-3521",name:"plum-jam",hex:"#624076"},{pantone:"18-3530",name:"lavender-crystal",hex:"#936a98"},{pantone:"18-3540",name:"purple-sapphire",hex:"#6f4685"},{pantone:"18-3634",name:"chive-blossom",hex:"#7d5d99"},{pantone:"18-3839",name:"purple-corallite",hex:"#5a4e8f"},{pantone:"18-3908",name:"volcanic-glass",hex:"#615c60"},{pantone:"18-3917",name:"gray-blue",hex:"#4d587a"},{pantone:"18-3929",name:"blue-horizon",hex:"#4e6482"},{pantone:"18-3950",name:"iris-bloom",hex:"#5b609e"},{pantone:"18-4048",name:"nebulas-blue",hex:"#2d62a3"},{pantone:"18-4250",name:"indigo-bunting",hex:"#006ca9"},{pantone:"18-4430",name:"fjord-blue",hex:"#00,7290"},{pantone:"18-4538",name:"hawaiian-surf",hex:"#0078a7"},{pantone:"18-4630",name:"tahitian-tide",hex:"#006b7e"},{pantone:"18-5025",name:"quetzal-green",hex:"#00,6865"},{pantone:"18-5204",name:"granite-gray",hex:"#615e,5f"},{pantone:"18-5845",name:"lush-meadow",hex:"#006e,51"},{pantone:"19-0203",name:"gray-pinstripe",hex:"#49494d"},{pantone:"19-0403",name:"sea-turtle",hex:"#5e5749"},{pantone:"19-0413",name:"deep-depths",hex:"#46483c"},{pantone:"19-0510",name:"kalamata",hex:"#5f5b4c"},{pantone:"19-0823",name:"crocodile",hex:"#5d5348"},{pantone:"19-1110",name:"chocolate-plum",hex:"#3c2d2e"},{pantone:"19-1214",name:"chocolate-lab",hex:"#5c3e35"},{pantone:"19-1215",name:"shaved-chocolate",hex:"#543b35"},{pantone:"19-1224",name:"fondue-fudge",hex:"#5d4236"},{pantone:"19-1233",name:"tiramisu",hex:"#634235"},{pantone:"19-1234",name:"rocky-road",hex:"#5a3e36"},{pantone:"19-1419",name:"chicory-coffee",hex:"#4a342e"},{pantone:"19-1429",name:"smoked-paprika",hex:"#6e362c"},{pantone:"19-1432",name:"chocolate-fondant",hex:"#56352d"},{pantone:"19-1435",name:"cherry-mahogany",hex:"#66352b"},{pantone:"19-1534",name:"merlot",hex:"#72262c"},{pantone:"19-1536",name:"red-pear",hex:"#7b3539"},{pantone:"19-2420",name:"pickled-beet",hex:"#4d233d"},{pantone:"19-2429",name:"plum-caspia",hex:"#61224a"},{pantone:"19-2620",name:"winter-bloom",hex:"#47243b"},{pantone:"19-3425",name:"spiced-plum",hex:"#6d4773"},{pantone:"19-3750",name:"violet-indigo",hex:"#3e285c"},{pantone:"19-3831",name:"maritime-blue",hex:"#27293d"},{pantone:"19-3902",name:"obsidian",hex:"#3a363b"},{pantone:"19-3911",name:"black-beauty",hex:"#26262a"},{pantone:"19-3917",name:"blackened-pearl",hex:"#4d4b50"},{pantone:"19-3930",name:"odyssey-gray",hex:"#434452"},{pantone:"19-4003",name:"black-onyx",hex:"#2b272b"},{pantone:"19-4029",name:"navy-peony",hex:"#223a5e"},{pantone:"19-4031",name:"sargasso-sea",hex:"#35435a"},{pantone:"19-4034",name:"sailor-blue",hex:"#0e3a53"},{pantone:"19-4038",name:"gibraltar-sea",hex:"#123850"},{pantone:"19-4045",name:"lapis-blue",hex:"#004b8d"},{pantone:"19-4048",name:"baleine-blue",hex:"#155187"},{pantone:"19-4055",name:"galaxy-blue",hex:"#2a4b7c"},{pantone:"19-4120",name:"blue-opal",hex:"#0f3b57"},{pantone:"19-4122",name:"moonlit-ocean",hex:"#293b4d"},{pantone:"19-4126",name:"deep-dive",hex:"#29495c"},{pantone:"19-4536",name:"crystal-teal",hex:"#00637c"},{pantone:"19-4540",name:"deep-lagoon",hex:"#00,5265"},{pantone:"19-5030",name:"sea-moss",hex:"#254445"},{pantone:"19-5230",name:"forest-biome",hex:"#184a45"},{pantone:"19-5232",name:"rain-forest",hex:"#15463e"}],get_rgbObject=_e=>{let lt=hexRgb(_e);return{R:lt[0],G:lt[1],B:lt[2]}},pantoneRGBList=pantones.map(_e=>get_rgbObject(_e.hex));var getClosestColor=_e=>{const lt=get_rgbObject(_e),Rt=diff.closest(lt,pantoneRGBList),At=rgbHex(Rt.R,Rt.G,Rt.B),Pt=pantones.findIndex(Lt=>Lt.hex==`#${At}`);return pantones[Pt]};function u$2(){return(u$2=Object.assign||function(_e){for(var lt=1;lt=0||(Pt[Rt]=_e[Rt]);return Pt}function i$5(_e){var lt=reactExports.useRef(_e),Rt=reactExports.useRef(function(At){lt.current&<.current(At)});return lt.current=_e,Rt.current}var s$2=function(_e,lt,Rt){return lt===void 0&&(lt=0),Rt===void 0&&(Rt=1),_e>Rt?Rt:_e0:Qt.buttons>0)&&Pt.current?Dt(d$4(Pt.current,Qt,Bt.current)):Zt(!1)},Kt=function(){return Zt(!1)};function Zt(Qt){var Jt=Nt.current,en=v$2(Pt.current),tn=Qt?en.addEventListener:en.removeEventListener;tn(Jt?"touchmove":"mousemove",Xt),tn(Jt?"touchend":"mouseup",Kt)}return[function(Qt){var Jt=Qt.nativeEvent,en=Pt.current;if(en&&(h$2(Jt),!function(an,cn){return cn&&!f$3(an)}(Jt,Nt.current)&&en)){if(f$3(Jt)){Nt.current=!0;var tn=Jt.changedTouches||[];tn.length&&(Bt.current=tn[0].identifier)}en.focus(),Dt(d$4(en,Jt,Bt.current)),Zt(!0)}},function(Qt){var Jt=Qt.which||Qt.keyCode;Jt<37||Jt>40||(Qt.preventDefault(),Lt({left:Jt===39?.05:Jt===37?-.05:0,top:Jt===40?.05:Jt===38?-.05:0}))},Zt]},[Lt,Dt]),Ut=jt[0],Gt=jt[1],qt=jt[2];return reactExports.useEffect(function(){return qt},[qt]),React.createElement("div",u$2({},At,{onTouchStart:Ut,onMouseDown:Ut,className:"react-colorful__interactive",ref:Pt,onKeyDown:Gt,tabIndex:0,role:"slider"}))}),g$3=function(_e){return _e.filter(Boolean).join(" ")},p$2=function(_e){var lt=_e.color,Rt=_e.left,At=_e.top,Pt=At===void 0?.5:At,Dt=g$3(["react-colorful__pointer",_e.className]);return React.createElement("div",{className:Dt,style:{top:100*Pt+"%",left:100*Rt+"%"}},React.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:lt}}))},b$3=function(_e,lt,Rt){return lt===void 0&&(lt=0),Rt===void 0&&(Rt=Math.pow(10,lt)),Math.round(Rt*_e)/Rt},x$3=function(_e){return L$2(C$2(_e))},C$2=function(_e){return _e[0]==="#"&&(_e=_e.substring(1)),_e.length<6?{r:parseInt(_e[0]+_e[0],16),g:parseInt(_e[1]+_e[1],16),b:parseInt(_e[2]+_e[2],16),a:_e.length===4?b$3(parseInt(_e[3]+_e[3],16)/255,2):1}:{r:parseInt(_e.substring(0,2),16),g:parseInt(_e.substring(2,4),16),b:parseInt(_e.substring(4,6),16),a:_e.length===8?b$3(parseInt(_e.substring(6,8),16)/255,2):1}},w$3=function(_e){return K$2(I$2(_e))},y$3=function(_e){var lt=_e.s,Rt=_e.v,At=_e.a,Pt=(200-lt)*Rt/100;return{h:b$3(_e.h),s:b$3(Pt>0&&Pt<200?lt*Rt/100/(Pt<=100?Pt:200-Pt)*100:0),l:b$3(Pt/2),a:b$3(At,2)}},q$2=function(_e){var lt=y$3(_e);return"hsl("+lt.h+", "+lt.s+"%, "+lt.l+"%)"},I$2=function(_e){var lt=_e.h,Rt=_e.s,At=_e.v,Pt=_e.a;lt=lt/360*6,Rt/=100,At/=100;var Dt=Math.floor(lt),Lt=At*(1-Rt),Bt=At*(1-(lt-Dt)*Rt),Nt=At*(1-(1-lt+Dt)*Rt),jt=Dt%6;return{r:b$3(255*[At,Bt,Lt,Lt,Nt,At][jt]),g:b$3(255*[Nt,At,At,Bt,Lt,Lt][jt]),b:b$3(255*[Lt,Lt,Nt,At,At,Bt][jt]),a:b$3(Pt,2)}},D$2=function(_e){var lt=_e.toString(16);return lt.length<2?"0"+lt:lt},K$2=function(_e){var lt=_e.r,Rt=_e.g,At=_e.b,Pt=_e.a,Dt=Pt<1?D$2(b$3(255*Pt)):"";return"#"+D$2(lt)+D$2(Rt)+D$2(At)+Dt},L$2=function(_e){var lt=_e.r,Rt=_e.g,At=_e.b,Pt=_e.a,Dt=Math.max(lt,Rt,At),Lt=Dt-Math.min(lt,Rt,At),Bt=Lt?Dt===lt?(Rt-At)/Lt:Dt===Rt?2+(At-lt)/Lt:4+(lt-Rt)/Lt:0;return{h:b$3(60*(Bt<0?Bt+6:Bt)),s:b$3(Dt?Lt/Dt*100:0),v:b$3(Dt/255*100),a:Pt}},S$3=React.memo(function(_e){var lt=_e.hue,Rt=_e.onChange,At=g$3(["react-colorful__hue",_e.className]);return React.createElement("div",{className:At},React.createElement(m$3,{onMove:function(Pt){Rt({h:360*Pt.left})},onKey:function(Pt){Rt({h:s$2(lt+360*Pt.left,0,360)})},"aria-label":"Hue","aria-valuenow":b$3(lt),"aria-valuemax":"360","aria-valuemin":"0"},React.createElement(p$2,{className:"react-colorful__hue-pointer",left:lt/360,color:q$2({h:lt,s:100,v:100,a:1})})))}),T$2=React.memo(function(_e){var lt=_e.hsva,Rt=_e.onChange,At={backgroundColor:q$2({h:lt.h,s:100,v:100,a:1})};return React.createElement("div",{className:"react-colorful__saturation",style:At},React.createElement(m$3,{onMove:function(Pt){Rt({s:100*Pt.left,v:100-100*Pt.top})},onKey:function(Pt){Rt({s:s$2(lt.s+100*Pt.left,0,100),v:s$2(lt.v-100*Pt.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b$3(lt.s)+"%, Brightness "+b$3(lt.v)+"%"},React.createElement(p$2,{className:"react-colorful__saturation-pointer",top:1-lt.v/100,left:lt.s/100,color:q$2(lt)})))}),F$2=function(_e,lt){if(_e===lt)return!0;for(var Rt in _e)if(_e[Rt]!==lt[Rt])return!1;return!0},X$2=function(_e,lt){return _e.toLowerCase()===lt.toLowerCase()||F$2(C$2(_e),C$2(lt))};function Y$2(_e,lt,Rt){var At=i$5(Rt),Pt=reactExports.useState(function(){return _e.toHsva(lt)}),Dt=Pt[0],Lt=Pt[1],Bt=reactExports.useRef({color:lt,hsva:Dt});reactExports.useEffect(function(){if(!_e.equal(lt,Bt.current.color)){var jt=_e.toHsva(lt);Bt.current={hsva:jt,color:lt},Lt(jt)}},[lt,_e]),reactExports.useEffect(function(){var jt;F$2(Dt,Bt.current.hsva)||_e.equal(jt=_e.fromHsva(Dt),Bt.current.color)||(Bt.current={hsva:Dt,color:jt},At(jt))},[Dt,_e,At]);var Nt=reactExports.useCallback(function(jt){Lt(function(Ut){return Object.assign({},Ut,jt)})},[]);return[Dt,Nt]}var V$2=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,$$3=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},J$2=new Map,Q$2=function(_e){V$2(function(){var lt=_e.current?_e.current.ownerDocument:document;if(lt!==void 0&&!J$2.has(lt)){var Rt=lt.createElement("style");Rt.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,J$2.set(lt,Rt);var At=$$3();At&&Rt.setAttribute("nonce",At),lt.head.appendChild(Rt)}},[])},U$2=function(_e){var lt=_e.className,Rt=_e.colorModel,At=_e.color,Pt=At===void 0?Rt.defaultColor:At,Dt=_e.onChange,Lt=c$2(_e,["className","colorModel","color","onChange"]),Bt=reactExports.useRef(null);Q$2(Bt);var Nt=Y$2(Rt,Pt,Dt),jt=Nt[0],Ut=Nt[1],Gt=g$3(["react-colorful",lt]);return React.createElement("div",u$2({},Lt,{ref:Bt,className:Gt}),React.createElement(T$2,{hsva:jt,onChange:Ut}),React.createElement(S$3,{hue:jt.h,onChange:Ut,className:"react-colorful__last-control"}))},W$2={defaultColor:"000",toHsva:x$3,fromHsva:function(_e){return w$3({h:_e.h,s:_e.s,v:_e.v,a:1})},equal:X$2},Z$2=function(_e){return React.createElement(U$2,u$2({},_e,{colorModel:W$2}))};const byPoint=({variables:_e},{x:lt,y:Rt})=>(_e==null?void 0:_e.x)===lt&&(_e==null?void 0:_e.y)===Rt,getGridSymbolsUrl=""+new URL("getGridSymbols.worker-412f6f1d.js",import.meta.url).href;class GetGridSymbolsWorker extends Worker{constructor(){super(getGridSymbolsUrl,{type:"module"})}}const getGridSymbolsAsync=usingWorkerTask(GetGridSymbolsWorker),parseGridWorkerUrl=""+new URL("parseGrid.worker-54cbc273.js",import.meta.url).href;class ParseGridWorker extends Worker{constructor(){super(parseGridWorkerUrl,{type:"module"})}}const parseGridAsync=usingMemoizedWorkerTask(ParseGridWorker);function _extends$1(){return _extends$1=Object.assign||function(_e){for(var lt=1;lt{const At=reactExports.useRef(Rt||[]),Dt=At.current===Rt||!At.current.every((Bt,Nt)=>Bt===Rt[Nt]);At.current=Rt;const Lt=lt.map(()=>null);return reactExports.useEffect(Dt?()=>void _e():()=>{},Dt?lt:Lt)};function allSame(_e,lt){return lodashExports$1.zip(_e,lt).every(([Rt,At])=>Rt===At)}const useEffectWhenAsync=(_e,lt=[],Rt=[])=>{const[At,Pt]=reactExports.useState(lt),[Dt,Lt]=reactExports.useState(Rt);return reactExports.useEffect(()=>{allSame(Dt,Rt)||(Pt(lt),Lt(Rt))},[lt,Rt,Dt]),useAsyncAbortable(_e,[...At,...Dt])};function useDebouncedState(_e,lt=lodashExports$1.noop,Rt=300){const[At,Pt]=reactExports.useState(_e);return useEffectWhen(()=>{const Dt=lodashExports$1.delay(()=>{lt(At)},Rt);return()=>clearTimeout(Dt)},[At,lt,Rt],[At]),[At,Pt]}const{floor:floor$2}=Math;function between(_e,lt,Rt){return _e>=lt&&_e({...await parseGridAsync({map:_e,options:lt})}),{normalizer:JSON.stringify});function SymbolColorPicker({onChange:_e,value:lt,autoValue:Rt}){const[At,Pt]=useDebouncedState(lt,_e),Dt=At??Rt;return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Lt=>{var Bt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FeaturePickerButton,{...bindTrigger(Lt),children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",gap:1,alignItems:"center",children:[jsxRuntimeExports.jsx(Box$1,{sx:{width:16,height:16,backgroundColor:Dt,outline:Nt=>`1px solid ${Nt.palette.divider}`,borderRadius:4}}),At?lodashExports$1.startCase(((Bt=getClosestColor(At))==null?void 0:Bt.name)??"Custom"):"Auto"]})}),jsxRuntimeExports.jsxs(Popover$1,{transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},...bindPopover(Lt),slotProps:{paper:{sx:{overflow:"visible"}}},children:[jsxRuntimeExports.jsx(Box$1,{sx:{px:2,py:1},children:jsxRuntimeExports.jsx(FormControlLabel$1,{control:jsxRuntimeExports.jsx(Checkbox$1,{defaultChecked:!At,onChange:(Nt,jt)=>Pt==null?void 0:Pt(jt?void 0:Rt)}),label:"Choose Automatically"})}),jsxRuntimeExports.jsx(Box$1,{sx:{p:2,pt:0,...!At&&{opacity:Nt=>Nt.palette.action.disabledOpacity,pointerEvents:"none"}},children:jsxRuntimeExports.jsx(Z$2,{color:At??Rt,onChange:Pt})})]})]})}})}const editor$3=async _e=>{if(_e){const{symbols:lt}=await getGridSymbolsAsync({map:_e});return withProduce(({produce:Rt,value:At})=>{const{palette:Pt}=useTheme(),Dt=lodashExports$1.flow(interpolate$2([Pt.background.paper,Pt.text.primary]),rgbToHex);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:lodashExports$1.sortBy(lt,"value").map(({symbol:Lt})=>{var Bt,Nt;return jsxRuntimeExports.jsx(Option,{label:`Tile color for "${Lt}"`,content:jsxRuntimeExports.jsx(SymbolColorPicker,{value:(Bt=At==null?void 0:At.symbols)==null?void 0:Bt[Lt],autoValue:Dt(((Nt=lodashExports$1.find(lt,{symbol:Lt}))==null?void 0:Nt.value)??0),onChange:jt=>Rt(Ut=>{lodashExports$1.set(Ut,`symbols["${Lt}"]`,jt)})})},Lt)})})})}else return()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},hydrate$3=_e=>{const{width:lt,height:Rt}=_e.bounds;return{..._e,snap:({x:At,y:Pt},Dt=1)=>{const[Lt,Bt]=[floor$2(At+Dt/2),floor$2(Pt+Dt/2)];if(between(Lt,0,lt)&&between(Bt,0,Rt))return{x:Lt,y:Bt}},nodeAt:At=>{const{x:Pt,y:Dt}=At;return Dt*lt+Pt},pointOf:At=>({x:At%lt,y:~~(At/lt)}),matchNode:byPoint}},grid=Object.freeze(Object.defineProperty({__proto__:null,SymbolColorPicker,editor:editor$3,hydrate:hydrate$3,parse:parse$a},Symbol.toStringTag,{value:"Module"})),parseMeshWorkerUrl=""+new URL("parseMesh.worker-f335403f.js",import.meta.url).href;class ParseMeshWorker extends Worker{constructor(){super(parseMeshWorkerUrl,{type:"module"})}}const parseMeshAsync=usingMemoizedWorkerTask(ParseMeshWorker),parse$9=memo(async(_e="",lt)=>await parseMeshAsync({map:_e,options:lt}),{normalizer:JSON.stringify}),hydrate$2=_e=>({..._e,snap:lodashExports$1.identity,nodeAt:lodashExports$1.constant(0),pointOf:lodashExports$1.constant({x:0,y:0}),matchNode:byPoint}),editor$2=async()=>()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:"No options available."})}),mesh=Object.freeze(Object.defineProperty({__proto__:null,editor:editor$2,hydrate:hydrate$2,parse:parse$9},Symbol.toStringTag,{value:"Module"})),parseNetworkWorkerUrl=""+new URL("parseNetwork.worker-8208763b.js",import.meta.url).href;class ParseNetworkWorker extends Worker{constructor(){super(parseNetworkWorkerUrl,{type:"module"})}}const parseNetworkAsync=usingMemoizedWorkerTask(ParseNetworkWorker),parse$8=memo(async(_e="",lt)=>await parseNetworkAsync({map:_e,options:lt}),{normalizer:JSON.stringify}),hydrate$1=_e=>({..._e,snap:lodashExports$1.identity,nodeAt:lodashExports$1.constant(0),pointOf:lodashExports$1.constant({x:0,y:0}),matchNode:byPoint}),editor$1=async()=>()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:"No options available."})}),xy=Object.freeze(Object.defineProperty({__proto__:null,editor:editor$1,hydrate:hydrate$1,parse:parse$8},Symbol.toStringTag,{value:"Module"})),parsePolyWorkerUrl=""+new URL("parsePoly.worker-47ff7d18.js",import.meta.url).href;class ParsePolyWorker extends Worker{constructor(){super(parsePolyWorkerUrl,{type:"module"})}}const parsePolyAsync=usingMemoizedWorkerTask(ParsePolyWorker),parse$7=memo(async(_e="",lt)=>await parsePolyAsync({map:_e,options:lt}),{normalizer:JSON.stringify}),hydrate=_e=>({..._e,snap:lodashExports$1.identity,nodeAt:lodashExports$1.constant(0),pointOf:lodashExports$1.constant({x:0,y:0}),matchNode:byPoint}),editor=async()=>()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:"No options available."})}),poly=Object.freeze(Object.defineProperty({__proto__:null,editor,hydrate,parse:parse$7},Symbol.toStringTag,{value:"Module"})),mapParsers={grid,map:grid,xy,mesh,poly};function getParser(_e=""){return mapParsers[_e]}const defaultGuard=lodashExports$1.constant(!0),[useLayers,LayersProvider]=createSlice({layers:[]});function useLayer(_e,lt=defaultGuard){const[Rt,At]=reactExports.useState(_e),[{layers:Pt},Dt]=useLayers(),Lt=lodashExports$1.filter(Pt,lt),Bt=Rt?lodashExports$1.find(Lt,{key:Rt})??lodashExports$1.head(Lt):lodashExports$1.head(Lt);return reactExports.useEffect(()=>{At(_e)},[_e]),reactExports.useEffect(()=>{Bt&&Bt.key!==Rt&&At(Bt.key)},[Bt,Rt,At]),reactExports.useMemo(()=>({key:Bt==null?void 0:Bt.key,setKey:At,layer:Bt,setLayer:Nt=>{const jt={...Bt,...Nt};Dt(({layers:Ut})=>({layers:lodashExports$1.map(Ut,Gt=>Gt.key===jt.key?jt:Gt)}))},layers:Lt,allLayers:Pt}),[Pt,Bt,Dt,Lt])}const fn=memo((_e,lt)=>new Function("params",`${_e}; return ${lt}.apply(null, params);`));function call$1(_e,lt,Rt){try{return fn(_e,lt)(Rt)}catch{return templates[lt].defaultReturnValue}}const treeWorkerUrl=""+new URL("tree.worker-a5e2610c.js",import.meta.url).href;class TreeWorkerUrl extends Worker{constructor(){super(treeWorkerUrl,{type:"module"})}}const treeAsync=usingMemoizedWorkerTask(TreeWorkerUrl);function useTree(_e){return useAsync(async()=>await treeAsync(_e),[_e])}function useTreeMemo(_e,lt){const Rt=reactExports.useMemo(()=>_e,lt);return useTree(Rt)}function useBreakpoints(_e){var jt;const{layer:lt}=useLayer(_e),{monotonicF:Rt,monotonicG:At,breakpoints:Pt,code:Dt,trace:Lt}=(lt==null?void 0:lt.source)??{},Bt=Lt==null?void 0:Lt.content,{result:Nt}=useTreeMemo({trace:Bt,step:(jt=Bt==null?void 0:Bt.events)==null?void 0:jt.length,radius:void 0},[Bt]);return reactExports.useMemo(()=>{const Ut=(Bt==null?void 0:Bt.events)??[],Gt=treeToDict((Nt==null?void 0:Nt.tree)??[]);return memo(qt=>{var Kt,Zt;const Xt=Ut[qt];if(Xt)try{for(const{active:Qt,condition:Jt,type:en,property:tn="",reference:an=0}of Pt??[]){const cn=!en||en===Xt.type;if(Qt&&cn&&(()=>{var rn;return(rn=Jt==null?void 0:Jt.apply)==null?void 0:rn.call(Jt,{type:en,event:Xt,property:tn,value:lodashExports$1.get(Xt,tn),reference:an,step:qt,events:Ut,node:Gt[qt]})})())return Jt!=null&&Jt.needsReference?{result:`${tn} ${lodashExports$1.toLower(lodashExports$1.startCase(Jt==null?void 0:Jt.key))} ${an}`}:{result:`${tn} ${lodashExports$1.toLower(lodashExports$1.startCase(Jt==null?void 0:Jt.key))}`}}if(call$1(Dt??"","shouldBreak",[qt,Xt,Ut,(Kt=Gt[qt])==null?void 0:Kt.parent,(Zt=Gt[qt])==null?void 0:Zt.children]))return{result:"Script editor"}}catch(Qt){return{error:`${Qt}`}}return{result:""}})},[Dt,Bt,Pt,Rt,At,Nt])}function treeToDict(_e=[],lt={}){for(const Rt of _e){for(const At of Rt.events)lt[At.step]=Rt;treeToDict(Rt.children,lt)}return lt}function cancellable(_e,lt){let Rt=!1;return requestAnimationFrame(async()=>{const At=await _e();Rt||lt(At)}),()=>{Rt=!0}}function usePlaybackState(_e){const{layer:lt,setLayer:Rt,setKey:At}=useLayer(_e),Pt=useSnackbar(),Dt=useBreakpoints(_e);reactExports.useEffect(()=>{_e&&At(_e)},[_e]);const{playback:Lt,playbackTo:Bt,step:Nt=0}=(lt==null?void 0:lt.source)??{},jt=lodashExports$1.min([Bt,Nt])??0,Ut=!!Bt,Gt=Lt==="playing",[qt,Xt]=[0,(Bt??1)-1];return reactExports.useMemo(()=>{function Kt(cn){Rt(produce(lt,un=>lodashExports$1.set(un,"source",{...un==null?void 0:un.source,...cn})))}const Zt={start:qt,end:Xt,step:jt,canPlay:Ut&&!Gt&&jt0},Qt=(cn=0)=>{Kt({playback:"paused",step:tn(cn)})},Jt=(cn=1)=>Kt({playback:"playing",step:tn(cn)}),en=(cn,un=0)=>cancellable(async()=>{for(const rn of lodashExports$1.range(un,cn)){const sn=Dt(jt+rn);if(sn.result||sn.error)return{...sn,offset:rn}}return{result:"",offset:0,error:void 0}},({result:rn,offset:sn,error:pn})=>{pn?(Pt(`${lodashExports$1.trimEnd(pn,".")}`,`Step ${jt+sn}`),Qt()):rn?(Pt(`Breakpoint hit: ${rn}`,`Step ${jt+sn}`),Qt(sn)):Jt(cn)}),tn=cn=>lodashExports$1.clamp(jt+cn,qt,Xt);return{playing:Lt==="playing",...Zt,...{play:()=>{Kt({playback:"playing",step:tn(1)})},pause:Qt,stepTo:(cn=0)=>Kt({step:cn}),stop:()=>Kt({step:qt,playback:"paused"}),stepForward:()=>Kt({step:tn(1)}),stepBackward:()=>Kt({step:tn(-1)}),tick:Jt,stepWithBreakpointCheck:en}}},[Xt,Lt,Gt,Ut,qt,jt,Rt])}function RenderLayer({layer:_e,index:lt}){var Rt,At;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e&&reactExports.createElement((At=layerHandlers[((Rt=_e==null?void 0:_e.source)==null?void 0:Rt.type)??""])==null?void 0:At.renderer,{layer:_e,index:lt})})}const[useRenderers,RendererProvider]=createSlice([],{reduce:replace$1}),removeUndefinedValues=_e=>lodashExports$1.omit(_e,lodashExports$1.filter(lodashExports$1.keys(_e),lt=>lodashExports$1.isUndefined(_e[lt]))),[useScreenshots,ScreenshotsProvider]=createSlice({},{reduce:lodashExports$1.flow(merge$3,removeUndefinedValues)});function Placeholder$2({label:_e,icon:lt=jsxRuntimeExports.jsx(WidgetsOutlined,{}),secondary:Rt,...At}){return jsxRuntimeExports.jsxs(Flex,{justifyContent:"center",alignItems:"center",color:"text.secondary",sx:{gap:2,background:Pt=>`repeating-linear-gradient( + 45deg, + ${Pt.palette.background.default}, + ${Pt.palette.background.paper} 1px, + ${Pt.palette.background.paper} 7px, + ${Pt.palette.background.default} 8px + )`},textAlign:"center",vertical:!0,pt:6,...At,children:[lt,jsxRuntimeExports.jsx(Typography$1,{children:_e}),!!Rt&&jsxRuntimeExports.jsx(Typography$1,{variant:"caption",sx:{px:8,maxWidth:480},children:Rt})]})}const tint="500";function hex$1(_e){return parseInt(_e.replace("#","0x"))}const colorsHex={source:green$1.A400,destination:red$1.A400,updating:orange$1[tint],expanding:deepPurple$1[tint],generating:yellow$1[tint],closing:pink$1[tint],end:blue$1.A400};lodashExports$1.mapValues(colorsHex,hex$1);function getColorHex(_e){return(_e&&colorsHex[_e])??grey$1[tint]}function count$2(_e){var lt=0,Rt=_e.children,At=Rt&&Rt.length;if(!At)lt=1;else for(;--At>=0;)lt+=Rt[At].value;_e.value=lt}function node_count(){return this.eachAfter(count$2)}function node_each(_e){var lt=this,Rt,At=[lt],Pt,Dt,Lt;do for(Rt=At.reverse(),At=[];lt=Rt.pop();)if(_e(lt),Pt=lt.children,Pt)for(Dt=0,Lt=Pt.length;Dt=0;--Pt)Rt.push(At[Pt]);return this}function node_eachAfter(_e){for(var lt=this,Rt=[lt],At=[],Pt,Dt,Lt;lt=Rt.pop();)if(At.push(lt),Pt=lt.children,Pt)for(Dt=0,Lt=Pt.length;Dt=0;)Rt+=At[Pt].value;lt.value=Rt})}function node_sort(_e){return this.eachBefore(function(lt){lt.children&<.children.sort(_e)})}function node_path(_e){for(var lt=this,Rt=leastCommonAncestor(lt,_e),At=[lt];lt!==Rt;)lt=lt.parent,At.push(lt);for(var Pt=At.length;_e!==Rt;)At.splice(Pt,0,_e),_e=_e.parent;return At}function leastCommonAncestor(_e,lt){if(_e===lt)return _e;var Rt=_e.ancestors(),At=lt.ancestors(),Pt=null;for(_e=Rt.pop(),lt=At.pop();_e===lt;)Pt=_e,_e=Rt.pop(),lt=At.pop();return Pt}function node_ancestors(){for(var _e=this,lt=[_e];_e=_e.parent;)lt.push(_e);return lt}function node_descendants(){var _e=[];return this.each(function(lt){_e.push(lt)}),_e}function node_leaves(){var _e=[];return this.eachBefore(function(lt){lt.children||_e.push(lt)}),_e}function node_links(){var _e=this,lt=[];return _e.each(function(Rt){Rt!==_e&<.push({source:Rt.parent,target:Rt})}),lt}function hierarchy(_e,lt){var Rt=new Node$6(_e),At=+_e.value&&(Rt.value=_e.value),Pt,Dt=[Rt],Lt,Bt,Nt,jt;for(lt==null&&(lt=defaultChildren);Pt=Dt.pop();)if(At&&(Pt.value=+Pt.data.value),(Bt=lt(Pt.data))&&(jt=Bt.length))for(Pt.children=new Array(jt),Nt=jt-1;Nt>=0;--Nt)Dt.push(Lt=Pt.children[Nt]=new Node$6(Bt[Nt])),Lt.parent=Pt,Lt.depth=Pt.depth+1;return Rt.eachBefore(computeHeight)}function node_copy(){return hierarchy(this).eachBefore(copyData)}function defaultChildren(_e){return _e.children}function copyData(_e){_e.data=_e.data.data}function computeHeight(_e){var lt=0;do _e.height=lt;while((_e=_e.parent)&&_e.height<++lt)}function Node$6(_e){this.data=_e,this.depth=this.height=0,this.parent=null}Node$6.prototype=hierarchy.prototype={constructor:Node$6,count:node_count,each:node_each,eachAfter:node_eachAfter,eachBefore:node_eachBefore,sum:node_sum,sort:node_sort,path:node_path,ancestors:node_ancestors,descendants:node_descendants,leaves:node_leaves,links:node_links,copy:node_copy};function defaultSeparation(_e,lt){return _e.parent===lt.parent?1:2}function nextLeft(_e){var lt=_e.children;return lt?lt[0]:_e.t}function nextRight(_e){var lt=_e.children;return lt?lt[lt.length-1]:_e.t}function moveSubtree(_e,lt,Rt){var At=Rt/(lt.i-_e.i);lt.c-=At,lt.s+=Rt,_e.c+=At,lt.z+=Rt,lt.m+=Rt}function executeShifts(_e){for(var lt=0,Rt=0,At=_e.children,Pt=At.length,Dt;--Pt>=0;)Dt=At[Pt],Dt.z+=lt,Dt.m+=lt,lt+=Dt.s+(Rt+=Dt.c)}function nextAncestor(_e,lt,Rt){return _e.a.parent===lt.parent?_e.a:Rt}function TreeNode(_e,lt){this._=_e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=lt}TreeNode.prototype=Object.create(Node$6.prototype);function treeRoot(_e){for(var lt=new TreeNode(_e,0),Rt,At=[lt],Pt,Dt,Lt,Bt;Rt=At.pop();)if(Dt=Rt._.children)for(Rt.children=new Array(Bt=Dt.length),Lt=Bt-1;Lt>=0;--Lt)At.push(Pt=Rt.children[Lt]=new TreeNode(Dt[Lt],Lt)),Pt.parent=Rt;return(lt.parent=new TreeNode(null,0)).children=[lt],lt}function d3tree(){var _e=defaultSeparation,lt=1,Rt=1,At=null;function Pt(jt){var Ut=treeRoot(jt);if(Ut.eachAfter(Dt),Ut.parent.m=-Ut.z,Ut.eachBefore(Lt),At)jt.eachBefore(Nt);else{var Gt=jt,qt=jt,Xt=jt;jt.eachBefore(function(en){en.xqt.x&&(qt=en),en.depth>Xt.depth&&(Xt=en)});var Kt=Gt===qt?1:_e(Gt,qt)/2,Zt=Kt-Gt.x,Qt=lt/(qt.x+Kt+Zt),Jt=Rt/(Xt.depth||1);jt.eachBefore(function(en){en.x=(en.x+Zt)*Qt,en.y=en.depth*Jt})}return jt}function Dt(jt){var Ut=jt.children,Gt=jt.parent.children,qt=jt.i?Gt[jt.i-1]:null;if(Ut){executeShifts(jt);var Xt=(Ut[0].z+Ut[Ut.length-1].z)/2;qt?(jt.z=qt.z+_e(jt._,qt._),jt.m=jt.z-Xt):jt.z=Xt}else qt&&(jt.z=qt.z+_e(jt._,qt._));jt.parent.A=Bt(jt,qt,jt.parent.A||Gt[0])}function Lt(jt){jt._.x=jt.z+jt.parent.m,jt.m+=jt.parent.m}function Bt(jt,Ut,Gt){if(Ut){for(var qt=jt,Xt=jt,Kt=Ut,Zt=qt.parent.children[0],Qt=qt.m,Jt=Xt.m,en=Kt.m,tn=Zt.m,an;Kt=nextRight(Kt),qt=nextLeft(qt),Kt&&qt;)Zt=nextLeft(Zt),Xt=nextRight(Xt),Xt.a=jt,an=Kt.z+en-qt.z-Qt+_e(Kt._,qt._),an>0&&(moveSubtree(nextAncestor(Kt,jt,Gt),jt,an),Qt+=an,Jt+=an),en+=Kt.m,Qt+=qt.m,tn+=Zt.m,Jt+=Xt.m;Kt&&!nextRight(Xt)&&(Xt.t=Kt,Xt.m+=en-Jt),qt&&!nextLeft(Zt)&&(Zt.t=qt,Zt.m+=Qt-tn,Gt=jt)}return Gt}function Nt(jt){jt.x*=lt,jt.y=jt.depth*Rt}return Pt.separation=function(jt){return arguments.length?(_e=jt,Pt):_e},Pt.size=function(jt){return arguments.length?(At=!1,lt=+jt[0],Rt=+jt[1],Pt):At?null:[lt,Rt]},Pt.nodeSize=function(jt){return arguments.length?(At=!0,lt=+jt[0],Rt=+jt[1],Pt):At?[lt,Rt]:null},Pt}var xhtml="http://www.w3.org/1999/xhtml";const namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(_e){var lt=_e+="",Rt=lt.indexOf(":");return Rt>=0&&(lt=_e.slice(0,Rt))!=="xmlns"&&(_e=_e.slice(Rt+1)),namespaces.hasOwnProperty(lt)?{space:namespaces[lt],local:_e}:_e}function creatorInherit(_e){return function(){var lt=this.ownerDocument,Rt=this.namespaceURI;return Rt===xhtml&<.documentElement.namespaceURI===xhtml?lt.createElement(_e):lt.createElementNS(Rt,_e)}}function creatorFixed(_e){return function(){return this.ownerDocument.createElementNS(_e.space,_e.local)}}function creator(_e){var lt=namespace(_e);return(lt.local?creatorFixed:creatorInherit)(lt)}function none(){}function selector(_e){return _e==null?none:function(){return this.querySelector(_e)}}function selection_select(_e){typeof _e!="function"&&(_e=selector(_e));for(var lt=this._groups,Rt=lt.length,At=new Array(Rt),Pt=0;Pt=tn&&(tn=en+1);!(cn=Qt[tn])&&++tn=0;)(Lt=At[Pt])&&(Dt&&Lt.compareDocumentPosition(Dt)^4&&Dt.parentNode.insertBefore(Lt,Dt),Dt=Lt);return this}function selection_sort(_e){_e||(_e=ascending);function lt(Gt,qt){return Gt&&qt?_e(Gt.__data__,qt.__data__):!Gt-!qt}for(var Rt=this._groups,At=Rt.length,Pt=new Array(At),Dt=0;Dtlt?1:_e>=lt?0:NaN}function selection_call(){var _e=arguments[0];return arguments[0]=this,_e.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var _e=this._groups,lt=0,Rt=_e.length;lt1?this.each((lt==null?styleRemove$1:typeof lt=="function"?styleFunction$1:styleConstant$1)(_e,lt,Rt??"")):styleValue(this.node(),_e)}function styleValue(_e,lt){return _e.style.getPropertyValue(lt)||defaultView(_e).getComputedStyle(_e,null).getPropertyValue(lt)}function propertyRemove(_e){return function(){delete this[_e]}}function propertyConstant(_e,lt){return function(){this[_e]=lt}}function propertyFunction(_e,lt){return function(){var Rt=lt.apply(this,arguments);Rt==null?delete this[_e]:this[_e]=Rt}}function selection_property(_e,lt){return arguments.length>1?this.each((lt==null?propertyRemove:typeof lt=="function"?propertyFunction:propertyConstant)(_e,lt)):this.node()[_e]}function classArray(_e){return _e.trim().split(/^|\s+/)}function classList(_e){return _e.classList||new ClassList(_e)}function ClassList(_e){this._node=_e,this._names=classArray(_e.getAttribute("class")||"")}ClassList.prototype={add:function(_e){var lt=this._names.indexOf(_e);lt<0&&(this._names.push(_e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(_e){var lt=this._names.indexOf(_e);lt>=0&&(this._names.splice(lt,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(_e){return this._names.indexOf(_e)>=0}};function classedAdd(_e,lt){for(var Rt=classList(_e),At=-1,Pt=lt.length;++At=0&&(Rt=lt.slice(At+1),lt=lt.slice(0,At)),{type:lt,name:Rt}})}function onRemove(_e){return function(){var lt=this.__on;if(lt){for(var Rt=0,At=-1,Pt=lt.length,Dt;Rt{}};function dispatch(){for(var _e=0,lt=arguments.length,Rt={},At;_e=0&&(At=Rt.slice(Pt+1),Rt=Rt.slice(0,Pt)),Rt&&!lt.hasOwnProperty(Rt))throw new Error("unknown type: "+Rt);return{type:Rt,name:At}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(_e,lt){var Rt=this._,At=parseTypenames(_e+"",Rt),Pt,Dt=-1,Lt=At.length;if(arguments.length<2){for(;++Dt0)for(var Rt=new Array(Pt),At=0,Pt,Dt;At>8&15|lt>>4&240,lt>>4&15|lt&240,(lt&15)<<4|lt&15,1):Rt===8?rgba(lt>>24&255,lt>>16&255,lt>>8&255,(lt&255)/255):Rt===4?rgba(lt>>12&15|lt>>8&240,lt>>8&15|lt>>4&240,lt>>4&15|lt&240,((lt&15)<<4|lt&15)/255):null):(lt=reRgbInteger.exec(_e))?new Rgb(lt[1],lt[2],lt[3],1):(lt=reRgbPercent.exec(_e))?new Rgb(lt[1]*255/100,lt[2]*255/100,lt[3]*255/100,1):(lt=reRgbaInteger.exec(_e))?rgba(lt[1],lt[2],lt[3],lt[4]):(lt=reRgbaPercent.exec(_e))?rgba(lt[1]*255/100,lt[2]*255/100,lt[3]*255/100,lt[4]):(lt=reHslPercent.exec(_e))?hsla(lt[1],lt[2]/100,lt[3]/100,1):(lt=reHslaPercent.exec(_e))?hsla(lt[1],lt[2]/100,lt[3]/100,lt[4]):named.hasOwnProperty(_e)?rgbn(named[_e]):_e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(_e){return new Rgb(_e>>16&255,_e>>8&255,_e&255,1)}function rgba(_e,lt,Rt,At){return At<=0&&(_e=lt=Rt=NaN),new Rgb(_e,lt,Rt,At)}function rgbConvert(_e){return _e instanceof Color$1||(_e=color(_e)),_e?(_e=_e.rgb(),new Rgb(_e.r,_e.g,_e.b,_e.opacity)):new Rgb}function rgb(_e,lt,Rt,At){return arguments.length===1?rgbConvert(_e):new Rgb(_e,lt,Rt,At??1)}function Rgb(_e,lt,Rt,At){this.r=+_e,this.g=+lt,this.b=+Rt,this.opacity=+At}define(Rgb,rgb,extend$2(Color$1,{brighter(_e){return _e=_e==null?brighter:Math.pow(brighter,_e),new Rgb(this.r*_e,this.g*_e,this.b*_e,this.opacity)},darker(_e){return _e=_e==null?darker:Math.pow(darker,_e),new Rgb(this.r*_e,this.g*_e,this.b*_e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const _e=clampa(this.opacity);return`${_e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${_e===1?")":`, ${_e})`}`}function clampa(_e){return isNaN(_e)?1:Math.max(0,Math.min(1,_e))}function clampi(_e){return Math.max(0,Math.min(255,Math.round(_e)||0))}function hex(_e){return _e=clampi(_e),(_e<16?"0":"")+_e.toString(16)}function hsla(_e,lt,Rt,At){return At<=0?_e=lt=Rt=NaN:Rt<=0||Rt>=1?_e=lt=NaN:lt<=0&&(_e=NaN),new Hsl(_e,lt,Rt,At)}function hslConvert(_e){if(_e instanceof Hsl)return new Hsl(_e.h,_e.s,_e.l,_e.opacity);if(_e instanceof Color$1||(_e=color(_e)),!_e)return new Hsl;if(_e instanceof Hsl)return _e;_e=_e.rgb();var lt=_e.r/255,Rt=_e.g/255,At=_e.b/255,Pt=Math.min(lt,Rt,At),Dt=Math.max(lt,Rt,At),Lt=NaN,Bt=Dt-Pt,Nt=(Dt+Pt)/2;return Bt?(lt===Dt?Lt=(Rt-At)/Bt+(Rt0&&Nt<1?0:Lt,new Hsl(Lt,Bt,Nt,_e.opacity)}function hsl(_e,lt,Rt,At){return arguments.length===1?hslConvert(_e):new Hsl(_e,lt,Rt,At??1)}function Hsl(_e,lt,Rt,At){this.h=+_e,this.s=+lt,this.l=+Rt,this.opacity=+At}define(Hsl,hsl,extend$2(Color$1,{brighter(_e){return _e=_e==null?brighter:Math.pow(brighter,_e),new Hsl(this.h,this.s,this.l*_e,this.opacity)},darker(_e){return _e=_e==null?darker:Math.pow(darker,_e),new Hsl(this.h,this.s,this.l*_e,this.opacity)},rgb(){var _e=this.h%360+(this.h<0)*360,lt=isNaN(_e)||isNaN(this.s)?0:this.s,Rt=this.l,At=Rt+(Rt<.5?Rt:1-Rt)*lt,Pt=2*Rt-At;return new Rgb(hsl2rgb(_e>=240?_e-240:_e+120,Pt,At),hsl2rgb(_e,Pt,At),hsl2rgb(_e<120?_e+240:_e-120,Pt,At),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const _e=clampa(this.opacity);return`${_e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${_e===1?")":`, ${_e})`}`}}));function clamph(_e){return _e=(_e||0)%360,_e<0?_e+360:_e}function clampt(_e){return Math.max(0,Math.min(1,_e||0))}function hsl2rgb(_e,lt,Rt){return(_e<60?lt+(Rt-lt)*_e/60:_e<180?Rt:_e<240?lt+(Rt-lt)*(240-_e)/60:lt)*255}const constant$2=_e=>()=>_e;function linear(_e,lt){return function(Rt){return _e+Rt*lt}}function exponential(_e,lt,Rt){return _e=Math.pow(_e,Rt),lt=Math.pow(lt,Rt)-_e,Rt=1/Rt,function(At){return Math.pow(_e+At*lt,Rt)}}function gamma(_e){return(_e=+_e)==1?nogamma:function(lt,Rt){return Rt-lt?exponential(lt,Rt,_e):constant$2(isNaN(lt)?Rt:lt)}}function nogamma(_e,lt){var Rt=lt-_e;return Rt?linear(_e,Rt):constant$2(isNaN(_e)?lt:_e)}const interpolateRgb=function _e(lt){var Rt=gamma(lt);function At(Pt,Dt){var Lt=Rt((Pt=rgb(Pt)).r,(Dt=rgb(Dt)).r),Bt=Rt(Pt.g,Dt.g),Nt=Rt(Pt.b,Dt.b),jt=nogamma(Pt.opacity,Dt.opacity);return function(Ut){return Pt.r=Lt(Ut),Pt.g=Bt(Ut),Pt.b=Nt(Ut),Pt.opacity=jt(Ut),Pt+""}}return At.gamma=_e,At}(1);function interpolateNumber(_e,lt){return _e=+_e,lt=+lt,function(Rt){return _e*(1-Rt)+lt*Rt}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(_e){return function(){return _e}}function one(_e){return function(lt){return _e(lt)+""}}function interpolateString(_e,lt){var Rt=reA.lastIndex=reB.lastIndex=0,At,Pt,Dt,Lt=-1,Bt=[],Nt=[];for(_e=_e+"",lt=lt+"";(At=reA.exec(_e))&&(Pt=reB.exec(lt));)(Dt=Pt.index)>Rt&&(Dt=lt.slice(Rt,Dt),Bt[Lt]?Bt[Lt]+=Dt:Bt[++Lt]=Dt),(At=At[0])===(Pt=Pt[0])?Bt[Lt]?Bt[Lt]+=Pt:Bt[++Lt]=Pt:(Bt[++Lt]=null,Nt.push({i:Lt,x:interpolateNumber(At,Pt)})),Rt=reB.lastIndex;return Rt180?Ut+=360:Ut-jt>180&&(jt+=360),qt.push({i:Gt.push(Pt(Gt)+"rotate(",null,At)-2,x:interpolateNumber(jt,Ut)})):Ut&&Gt.push(Pt(Gt)+"rotate("+Ut+At)}function Bt(jt,Ut,Gt,qt){jt!==Ut?qt.push({i:Gt.push(Pt(Gt)+"skewX(",null,At)-2,x:interpolateNumber(jt,Ut)}):Ut&&Gt.push(Pt(Gt)+"skewX("+Ut+At)}function Nt(jt,Ut,Gt,qt,Xt,Kt){if(jt!==Gt||Ut!==qt){var Zt=Xt.push(Pt(Xt)+"scale(",null,",",null,")");Kt.push({i:Zt-4,x:interpolateNumber(jt,Gt)},{i:Zt-2,x:interpolateNumber(Ut,qt)})}else(Gt!==1||qt!==1)&&Xt.push(Pt(Xt)+"scale("+Gt+","+qt+")")}return function(jt,Ut){var Gt=[],qt=[];return jt=_e(jt),Ut=_e(Ut),Dt(jt.translateX,jt.translateY,Ut.translateX,Ut.translateY,Gt,qt),Lt(jt.rotate,Ut.rotate,Gt,qt),Bt(jt.skewX,Ut.skewX,Gt,qt),Nt(jt.scaleX,jt.scaleY,Ut.scaleX,Ut.scaleY,Gt,qt),jt=Ut=null,function(Xt){for(var Kt=-1,Zt=qt.length,Qt;++Kt=0&&_e._call.call(void 0,lt),_e=_e._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout$1=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke(){var _e=clock.now(),lt=_e-clockLast;lt>pokeDelay&&(clockSkew-=lt,clockLast=_e)}function nap(){for(var _e,lt=taskHead,Rt,At=1/0;lt;)lt._call?(At>lt._time&&(At=lt._time),_e=lt,lt=lt._next):(Rt=lt._next,lt._next=null,lt=_e?_e._next=Rt:taskHead=Rt);taskTail=_e,sleep(At)}function sleep(_e){if(!frame){timeout$1&&(timeout$1=clearTimeout(timeout$1));var lt=_e-clockNow;lt>24?(_e<1/0&&(timeout$1=setTimeout(wake,_e-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame=1,setFrame(wake))}}function timeout(_e,lt,Rt){var At=new Timer;return lt=lt==null?0:+lt,At.restart(Pt=>{At.stop(),_e(Pt+lt)},lt,Rt),At}var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(_e,lt,Rt,At,Pt,Dt){var Lt=_e.__transition;if(!Lt)_e.__transition={};else if(Rt in Lt)return;create$2(_e,Rt,{name:lt,index:At,group:Pt,on:emptyOn,tween:emptyTween,time:Dt.time,delay:Dt.delay,duration:Dt.duration,ease:Dt.ease,timer:null,state:CREATED})}function init$2(_e,lt){var Rt=get(_e,lt);if(Rt.state>CREATED)throw new Error("too late; already scheduled");return Rt}function set$2(_e,lt){var Rt=get(_e,lt);if(Rt.state>STARTED)throw new Error("too late; already running");return Rt}function get(_e,lt){var Rt=_e.__transition;if(!Rt||!(Rt=Rt[lt]))throw new Error("transition not found");return Rt}function create$2(_e,lt,Rt){var At=_e.__transition,Pt;At[lt]=Rt,Rt.timer=timer(Dt,0,Rt.time);function Dt(jt){Rt.state=SCHEDULED,Rt.timer.restart(Lt,Rt.delay,Rt.time),Rt.delay<=jt&&Lt(jt-Rt.delay)}function Lt(jt){var Ut,Gt,qt,Xt;if(Rt.state!==SCHEDULED)return Nt();for(Ut in At)if(Xt=At[Ut],Xt.name===Rt.name){if(Xt.state===STARTED)return timeout(Lt);Xt.state===RUNNING?(Xt.state=ENDED,Xt.timer.stop(),Xt.on.call("interrupt",_e,_e.__data__,Xt.index,Xt.group),delete At[Ut]):+UtSTARTING&&At.state=0&&(lt=lt.slice(0,Rt)),!lt||lt==="start"})}function onFunction(_e,lt,Rt){var At,Pt,Dt=start(lt)?init$2:set$2;return function(){var Lt=Dt(this,_e),Bt=Lt.on;Bt!==At&&(Pt=(At=Bt).copy()).on(lt,Rt),Lt.on=Pt}}function transition_on(_e,lt){var Rt=this._id;return arguments.length<2?get(this.node(),Rt).on.on(_e):this.each(onFunction(Rt,_e,lt))}function removeFunction(_e){return function(){var lt=this.parentNode;for(var Rt in this.__transition)if(+Rt!==_e)return;lt&<.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(_e){var lt=this._name,Rt=this._id;typeof _e!="function"&&(_e=selector(_e));for(var At=this._groups,Pt=At.length,Dt=new Array(Pt),Lt=0;Lt()=>_e;function ZoomEvent(_e,{sourceEvent:lt,target:Rt,transform:At,dispatch:Pt}){Object.defineProperties(this,{type:{value:_e,enumerable:!0,configurable:!0},sourceEvent:{value:lt,enumerable:!0,configurable:!0},target:{value:Rt,enumerable:!0,configurable:!0},transform:{value:At,enumerable:!0,configurable:!0},_:{value:Pt}})}function Transform$1(_e,lt,Rt){this.k=_e,this.x=lt,this.y=Rt}Transform$1.prototype={constructor:Transform$1,scale:function(_e){return _e===1?this:new Transform$1(this.k*_e,this.x,this.y)},translate:function(_e,lt){return _e===0<===0?this:new Transform$1(this.k,this.x+this.k*_e,this.y+this.k*lt)},apply:function(_e){return[_e[0]*this.k+this.x,_e[1]*this.k+this.y]},applyX:function(_e){return _e*this.k+this.x},applyY:function(_e){return _e*this.k+this.y},invert:function(_e){return[(_e[0]-this.x)/this.k,(_e[1]-this.y)/this.k]},invertX:function(_e){return(_e-this.x)/this.k},invertY:function(_e){return(_e-this.y)/this.k},rescaleX:function(_e){return _e.copy().domain(_e.range().map(this.invertX,this).map(_e.invert,_e))},rescaleY:function(_e){return _e.copy().domain(_e.range().map(this.invertY,this).map(_e.invert,_e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var identity$2=new Transform$1(1,0,0);Transform$1.prototype;function nopropagation(_e){_e.stopImmediatePropagation()}function noevent(_e){_e.preventDefault(),_e.stopImmediatePropagation()}function defaultFilter(_e){return(!_e.ctrlKey||_e.type==="wheel")&&!_e.button}function defaultExtent(){var _e=this;return _e instanceof SVGElement?(_e=_e.ownerSVGElement||_e,_e.hasAttribute("viewBox")?(_e=_e.viewBox.baseVal,[[_e.x,_e.y],[_e.x+_e.width,_e.y+_e.height]]):[[0,0],[_e.width.baseVal.value,_e.height.baseVal.value]]):[[0,0],[_e.clientWidth,_e.clientHeight]]}function defaultTransform(){return this.__zoom||identity$2}function defaultWheelDelta(_e){return-_e.deltaY*(_e.deltaMode===1?.05:_e.deltaMode?1:.002)*(_e.ctrlKey?10:1)}function defaultTouchable(){return navigator.maxTouchPoints||"ontouchstart"in this}function defaultConstrain(_e,lt,Rt){var At=_e.invertX(lt[0][0])-Rt[0][0],Pt=_e.invertX(lt[1][0])-Rt[1][0],Dt=_e.invertY(lt[0][1])-Rt[0][1],Lt=_e.invertY(lt[1][1])-Rt[1][1];return _e.translate(Pt>At?(At+Pt)/2:Math.min(0,At)||Math.max(0,Pt),Lt>Dt?(Dt+Lt)/2:Math.min(0,Dt)||Math.max(0,Lt))}function d3zoom(){var _e=defaultFilter,lt=defaultExtent,Rt=defaultConstrain,At=defaultWheelDelta,Pt=defaultTouchable,Dt=[0,1/0],Lt=[[-1/0,-1/0],[1/0,1/0]],Bt=250,Nt=interpolateZoom,jt=dispatch("start","zoom","end"),Ut,Gt,qt,Xt=500,Kt=150,Zt=0,Qt=10;function Jt(ln){ln.property("__zoom",defaultTransform).on("wheel.zoom",sn,{passive:!1}).on("mousedown.zoom",pn).on("dblclick.zoom",bn).filter(Pt).on("touchstart.zoom",gn).on("touchmove.zoom",_n).on("touchend.zoom touchcancel.zoom",xn).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Jt.transform=function(ln,Mn,Tn,An){var Cn=ln.selection?ln.selection():ln;Cn.property("__zoom",defaultTransform),ln!==Cn?cn(ln,Mn,Tn,An):Cn.interrupt().each(function(){un(this,arguments).event(An).start().zoom(null,typeof Mn=="function"?Mn.apply(this,arguments):Mn).end()})},Jt.scaleBy=function(ln,Mn,Tn,An){Jt.scaleTo(ln,function(){var Cn=this.__zoom.k,wn=typeof Mn=="function"?Mn.apply(this,arguments):Mn;return Cn*wn},Tn,An)},Jt.scaleTo=function(ln,Mn,Tn,An){Jt.transform(ln,function(){var Cn=lt.apply(this,arguments),wn=this.__zoom,Fn=Tn==null?an(Cn):typeof Tn=="function"?Tn.apply(this,arguments):Tn,$n=wn.invert(Fn),Pn=typeof Mn=="function"?Mn.apply(this,arguments):Mn;return Rt(tn(en(wn,Pn),Fn,$n),Cn,Lt)},Tn,An)},Jt.translateBy=function(ln,Mn,Tn,An){Jt.transform(ln,function(){return Rt(this.__zoom.translate(typeof Mn=="function"?Mn.apply(this,arguments):Mn,typeof Tn=="function"?Tn.apply(this,arguments):Tn),lt.apply(this,arguments),Lt)},null,An)},Jt.translateTo=function(ln,Mn,Tn,An,Cn){Jt.transform(ln,function(){var wn=lt.apply(this,arguments),Fn=this.__zoom,$n=An==null?an(wn):typeof An=="function"?An.apply(this,arguments):An;return Rt(identity$2.translate($n[0],$n[1]).scale(Fn.k).translate(typeof Mn=="function"?-Mn.apply(this,arguments):-Mn,typeof Tn=="function"?-Tn.apply(this,arguments):-Tn),wn,Lt)},An,Cn)};function en(ln,Mn){return Mn=Math.max(Dt[0],Math.min(Dt[1],Mn)),Mn===ln.k?ln:new Transform$1(Mn,ln.x,ln.y)}function tn(ln,Mn,Tn){var An=Mn[0]-Tn[0]*ln.k,Cn=Mn[1]-Tn[1]*ln.k;return An===ln.x&&Cn===ln.y?ln:new Transform$1(ln.k,An,Cn)}function an(ln){return[(+ln[0][0]+ +ln[1][0])/2,(+ln[0][1]+ +ln[1][1])/2]}function cn(ln,Mn,Tn,An){ln.on("start.zoom",function(){un(this,arguments).event(An).start()}).on("interrupt.zoom end.zoom",function(){un(this,arguments).event(An).end()}).tween("zoom",function(){var Cn=this,wn=arguments,Fn=un(Cn,wn).event(An),$n=lt.apply(Cn,wn),Pn=Tn==null?an($n):typeof Tn=="function"?Tn.apply(Cn,wn):Tn,Vn=Math.max($n[1][0]-$n[0][0],$n[1][1]-$n[0][1]),Zn=Cn.__zoom,tr=typeof Mn=="function"?Mn.apply(Cn,wn):Mn,vn=Nt(Zn.invert(Pn).concat(Vn/Zn.k),tr.invert(Pn).concat(Vn/tr.k));return function(En){if(En===1)En=tr;else{var kn=vn(En),zn=Vn/kn[2];En=new Transform$1(zn,Pn[0]-kn[0]*zn,Pn[1]-kn[1]*zn)}Fn.zoom(null,En)}})}function un(ln,Mn,Tn){return!Tn&&ln.__zooming||new rn(ln,Mn)}function rn(ln,Mn){this.that=ln,this.args=Mn,this.active=0,this.sourceEvent=null,this.extent=lt.apply(ln,Mn),this.taps=0}rn.prototype={event:function(ln){return ln&&(this.sourceEvent=ln),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ln,Mn){return this.mouse&&ln!=="mouse"&&(this.mouse[1]=Mn.invert(this.mouse[0])),this.touch0&&ln!=="touch"&&(this.touch0[1]=Mn.invert(this.touch0[0])),this.touch1&&ln!=="touch"&&(this.touch1[1]=Mn.invert(this.touch1[0])),this.that.__zoom=Mn,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ln){var Mn=select(this.that).datum();jt.call(ln,this.that,new ZoomEvent(ln,{sourceEvent:this.sourceEvent,target:Jt,type:ln,transform:this.that.__zoom,dispatch:jt}),Mn)}};function sn(ln,...Mn){if(!_e.apply(this,arguments))return;var Tn=un(this,Mn).event(ln),An=this.__zoom,Cn=Math.max(Dt[0],Math.min(Dt[1],An.k*Math.pow(2,At.apply(this,arguments)))),wn=pointer(ln);if(Tn.wheel)(Tn.mouse[0][0]!==wn[0]||Tn.mouse[0][1]!==wn[1])&&(Tn.mouse[1]=An.invert(Tn.mouse[0]=wn)),clearTimeout(Tn.wheel);else{if(An.k===Cn)return;Tn.mouse=[wn,An.invert(wn)],interrupt(this),Tn.start()}noevent(ln),Tn.wheel=setTimeout(Fn,Kt),Tn.zoom("mouse",Rt(tn(en(An,Cn),Tn.mouse[0],Tn.mouse[1]),Tn.extent,Lt));function Fn(){Tn.wheel=null,Tn.end()}}function pn(ln,...Mn){if(qt||!_e.apply(this,arguments))return;var Tn=ln.currentTarget,An=un(this,Mn,!0).event(ln),Cn=select(ln.view).on("mousemove.zoom",Pn,!0).on("mouseup.zoom",Vn,!0),wn=pointer(ln,Tn),Fn=ln.clientX,$n=ln.clientY;dragDisable(ln.view),nopropagation(ln),An.mouse=[wn,this.__zoom.invert(wn)],interrupt(this),An.start();function Pn(Zn){if(noevent(Zn),!An.moved){var tr=Zn.clientX-Fn,vn=Zn.clientY-$n;An.moved=tr*tr+vn*vn>Zt}An.event(Zn).zoom("mouse",Rt(tn(An.that.__zoom,An.mouse[0]=pointer(Zn,Tn),An.mouse[1]),An.extent,Lt))}function Vn(Zn){Cn.on("mousemove.zoom mouseup.zoom",null),yesdrag(Zn.view,An.moved),noevent(Zn),An.event(Zn).end()}}function bn(ln,...Mn){if(_e.apply(this,arguments)){var Tn=this.__zoom,An=pointer(ln.changedTouches?ln.changedTouches[0]:ln,this),Cn=Tn.invert(An),wn=Tn.k*(ln.shiftKey?.5:2),Fn=Rt(tn(en(Tn,wn),An,Cn),lt.apply(this,Mn),Lt);noevent(ln),Bt>0?select(this).transition().duration(Bt).call(cn,Fn,An,ln):select(this).call(Jt.transform,Fn,An,ln)}}function gn(ln,...Mn){if(_e.apply(this,arguments)){var Tn=ln.touches,An=Tn.length,Cn=un(this,Mn,ln.changedTouches.length===An).event(ln),wn,Fn,$n,Pn;for(nopropagation(ln),Fn=0;Fn"u"&&(Xt=!0),typeof Kt>"u"&&(Kt=1/0);function an(cn,un){if(cn===null)return null;if(un===0)return cn;var rn,sn;if(typeof cn!="object")return cn;if(Rt(cn,At))rn=new At;else if(Rt(cn,Pt))rn=new Pt;else if(Rt(cn,Dt))rn=new Dt(function(An,Cn){cn.then(function(wn){An(an(wn,un-1))},function(wn){Cn(an(wn,un-1))})});else if(Lt.__isArray(cn))rn=[];else if(Lt.__isRegExp(cn))rn=new RegExp(cn.source,Gt(cn)),cn.lastIndex&&(rn.lastIndex=cn.lastIndex);else if(Lt.__isDate(cn))rn=new Date(cn.getTime());else{if(tn&&Buffer.isBuffer(cn))return Buffer.allocUnsafe?rn=Buffer.allocUnsafe(cn.length):rn=new Buffer(cn.length),cn.copy(rn),rn;Rt(cn,Error)?rn=Object.create(cn):typeof Zt>"u"?(sn=Object.getPrototypeOf(cn),rn=Object.create(sn)):(rn=Object.create(Zt),sn=Zt)}if(Xt){var pn=Jt.indexOf(cn);if(pn!=-1)return en[pn];Jt.push(cn),en.push(rn)}Rt(cn,At)&&cn.forEach(function(An,Cn){var wn=an(Cn,un-1),Fn=an(An,un-1);rn.set(wn,Fn)}),Rt(cn,Pt)&&cn.forEach(function(An){var Cn=an(An,un-1);rn.add(Cn)});for(var bn in cn){var gn;sn&&(gn=Object.getOwnPropertyDescriptor(sn,bn)),!(gn&&gn.set==null)&&(rn[bn]=an(cn[bn],un-1))}if(Object.getOwnPropertySymbols)for(var _n=Object.getOwnPropertySymbols(cn),bn=0;bn<_n.length;bn++){var xn=_n[bn],ln=Object.getOwnPropertyDescriptor(cn,xn);ln&&!ln.enumerable&&!Qt||(rn[xn]=an(cn[xn],un-1),ln.enumerable||Object.defineProperty(rn,xn,{enumerable:!1}))}if(Qt)for(var Mn=Object.getOwnPropertyNames(cn),bn=0;bn1&&arguments[1]!==void 0?arguments[1]:0,Rt=(byteToHex[_e[lt+0]]+byteToHex[_e[lt+1]]+byteToHex[_e[lt+2]]+byteToHex[_e[lt+3]]+"-"+byteToHex[_e[lt+4]]+byteToHex[_e[lt+5]]+"-"+byteToHex[_e[lt+6]]+byteToHex[_e[lt+7]]+"-"+byteToHex[_e[lt+8]]+byteToHex[_e[lt+9]]+"-"+byteToHex[_e[lt+10]]+byteToHex[_e[lt+11]]+byteToHex[_e[lt+12]]+byteToHex[_e[lt+13]]+byteToHex[_e[lt+14]]+byteToHex[_e[lt+15]]).toLowerCase();if(!validate$1(Rt))throw TypeError("Stringified UUID is invalid");return Rt}function v4(_e,lt,Rt){_e=_e||{};var At=_e.random||(_e.rng||rng)();if(At[6]=At[6]&15|64,At[8]=At[8]&63|128,lt){Rt=Rt||0;for(var Pt=0;Pt<16;++Pt)lt[Rt+Pt]=At[Pt];return lt}return stringify$3(At)}var CSSTransitionGroup={exports:{}},TransitionGroup={exports:{}},chainFunction=function(){for(var lt=arguments.length,Rt=[],At=0;At{const Rt=clone$1(this.state.data),Pt=this.findNodesById(lt,Rt,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(Pt.__rd3t.collapsed?(Lu.expandNode(Pt),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(Pt,Rt)):Lu.collapseNode(Pt),this.props.enableLegacyTransitions?(this.setState({data:Rt,isTransitioning:!0}),setTimeout(()=>this.setState({isTransitioning:!1}),this.props.transitionDuration+10)):this.setState({data:Rt}),this.internalState.targetNode=Pt)},this.handleAddChildrenToNode=(lt,Rt)=>{const At=clone$1(this.state.data),Pt=this.findNodesById(lt,At,[]);if(Pt.length>0){const Dt=Pt[0],Lt=Dt.__rd3t.depth,Bt=clone$1(Rt).map(Nt=>Lu.assignInternalProperties([Nt],Lt+1));Dt.children.push(...Bt.flat()),this.setState({data:At})}},this.handleOnNodeClickCb=(lt,Rt)=>{const{onNodeClick:At}=this.props;At&&typeof At=="function"&&(Rt.persist(),At(clone$1(lt),Rt))},this.handleOnLinkClickCb=(lt,Rt,At)=>{const{onLinkClick:Pt}=this.props;Pt&&typeof Pt=="function"&&(At.persist(),Pt(clone$1(lt),clone$1(Rt),At))},this.handleOnNodeMouseOverCb=(lt,Rt)=>{const{onNodeMouseOver:At}=this.props;At&&typeof At=="function"&&(Rt.persist(),At(clone$1(lt),Rt))},this.handleOnLinkMouseOverCb=(lt,Rt,At)=>{const{onLinkMouseOver:Pt}=this.props;Pt&&typeof Pt=="function"&&(At.persist(),Pt(clone$1(lt),clone$1(Rt),At))},this.handleOnNodeMouseOutCb=(lt,Rt)=>{const{onNodeMouseOut:At}=this.props;At&&typeof At=="function"&&(Rt.persist(),At(clone$1(lt),Rt))},this.handleOnLinkMouseOutCb=(lt,Rt,At)=>{const{onLinkMouseOut:Pt}=this.props;Pt&&typeof Pt=="function"&&(At.persist(),Pt(clone$1(lt),clone$1(Rt),At))},this.centerNode=lt=>{const{dimensions:Rt,orientation:At,zoom:Pt,centeringTransitionDuration:Dt}=this.props;if(Rt){const Lt=select(`.${this.gInstanceRef}`),Bt=select(`.${this.svgInstanceRef}`),Nt=this.state.d3.scale;let jt,Ut;At==="horizontal"?(Ut=-lt.x*Nt+Rt.height/2,jt=-lt.y*Nt+Rt.width/2):(jt=-lt.x*Nt+Rt.width/2,Ut=-lt.y*Nt+Rt.height/2),Lt.transition().duration(Dt).attr("transform","translate("+jt+","+Ut+")scale("+Nt+")"),Bt.call(d3zoom().transform,identity$2.translate(jt,Ut).scale(Pt))}},this.getNodeClassName=(lt,Rt)=>{const{rootNodeClassName:At,branchNodeClassName:Pt,leafNodeClassName:Dt}=this.props;return lt!=null?Rt.children?Pt:Dt:At}}static getDerivedStateFromProps(lt,Rt){let At=null;const Pt=!lt.dataKey||Rt.dataKey!==lt.dataKey;lt.data!==Rt.dataRef&&Pt&&(At={dataRef:lt.data,data:Lu.assignInternalProperties(clone$1(lt.data)),isInitialRenderForDataset:!0,dataKey:lt.dataKey});const Dt=Lu.calculateD3Geometry(lt);return dequal(Dt,Rt.d3)||(At=At||{},At.d3=Dt),At}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(lt){this.props.data!==lt.data&&this.setState({isInitialRenderForDataset:!1}),(!dequal(this.props.translate,lt.translate)||!dequal(this.props.scaleExtent,lt.scaleExtent)||this.props.zoomable!==lt.zoomable||this.props.draggable!==lt.draggable||this.props.zoom!==lt.zoom||this.props.enableLegacyTransitions!==lt.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?clone$1(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null}setInitialTreeDepth(lt,Rt){lt.forEach(At=>{At.data.__rd3t.collapsed=At.depth>=Rt})}bindZoomListener(lt){const{zoomable:Rt,scaleExtent:At,translate:Pt,zoom:Dt,onUpdate:Lt,hasInteractiveNodes:Bt}=lt,Nt=select(`.${this.svgInstanceRef}`),jt=select(`.${this.gInstanceRef}`);Nt.call(d3zoom().transform,identity$2.translate(Pt.x,Pt.y).scale(Dt)),Nt.call(d3zoom().scaleExtent(Rt?[At.min,At.max]:[Dt,Dt]).filter(Ut=>Bt?Ut.target.classList.contains(this.svgInstanceRef)||Ut.target.classList.contains(this.gInstanceRef)||Ut.shiftKey:!0).on("zoom",Ut=>{!this.props.draggable&&["mousemove","touchmove","dblclick"].includes(Ut.sourceEvent.type)||(jt.attr("transform",Ut.transform),typeof Lt=="function"&&(Lt({node:null,zoom:Ut.transform.k,translate:{x:Ut.transform.x,y:Ut.transform.y}}),this.state.d3.scale=Ut.transform.k,this.state.d3.translate={x:Ut.transform.x,y:Ut.transform.y}))}))}static assignInternalProperties(lt,Rt=0){return(Array.isArray(lt)?lt:[lt]).map(Pt=>{const Dt=Pt;return Dt.__rd3t={id:null,depth:null,collapsed:!1},Dt.__rd3t.id=v4(),Dt.__rd3t.depth=Rt,Dt.children&&Dt.children.length>0&&(Dt.children=Lu.assignInternalProperties(Dt.children,Rt+1)),Dt})}findNodesById(lt,Rt,At){return At.length>0||(At=At.concat(Rt.filter(Pt=>Pt.__rd3t.id===lt)),Rt.forEach(Pt=>{Pt.children&&Pt.children.length>0&&(At=this.findNodesById(lt,Pt.children,At))})),At}findNodesAtDepth(lt,Rt,At){return At=At.concat(Rt.filter(Pt=>Pt.__rd3t.depth===lt)),Rt.forEach(Pt=>{Pt.children&&Pt.children.length>0&&(At=this.findNodesAtDepth(lt,Pt.children,At))}),At}static collapseNode(lt){lt.__rd3t.collapsed=!0,lt.children&<.children.length>0&<.children.forEach(Rt=>{Lu.collapseNode(Rt)})}static expandNode(lt){lt.__rd3t.collapsed=!1}collapseNeighborNodes(lt,Rt){this.findNodesAtDepth(lt.__rd3t.depth,Rt,[]).filter(Pt=>Pt.__rd3t.id!==lt.__rd3t.id).forEach(Pt=>Lu.collapseNode(Pt))}generateTree(){const{initialDepth:lt,depthFactor:Rt,separation:At,nodeSize:Pt,orientation:Dt}=this.props,{isInitialRenderForDataset:Lt}=this.state,Nt=d3tree().nodeSize(Dt==="horizontal"?[Pt.y,Pt.x]:[Pt.x,Pt.y]).separation((Gt,qt)=>Gt.parent.data.__rd3t.id===qt.parent.data.__rd3t.id?At.siblings:At.nonSiblings)(hierarchy(this.state.data[0],Gt=>Gt.__rd3t.collapsed?null:Gt.children));let jt=Nt.descendants();const Ut=Nt.links();return lt!==void 0&&Lt&&this.setInitialTreeDepth(jt,lt),Rt&&jt.forEach(Gt=>{Gt.y=Gt.depth*Rt}),{nodes:jt,links:Ut}}static calculateD3Geometry(lt){let Rt;return lt.zoom>lt.scaleExtent.max?Rt=lt.scaleExtent.max:lt.zoomReact.createElement(Link,{key:"link-"+en,orientation:Pt,pathFunc:Dt,pathClassFunc:Xt,linkData:Jt,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:Gt,transitionDuration:Lt})),lt.map((Jt,en)=>{const{data:tn,x:an,y:cn,parent:un}=Jt;return React.createElement(Node$5,{key:"node-"+en,data:tn,position:{x:an,y:cn},hierarchyPointNode:Jt,parent:un,nodeClassName:this.getNodeClassName(un,tn),renderCustomNodeElement:At,nodeSize:Bt,orientation:Pt,enableLegacyTransitions:Gt,transitionDuration:Lt,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,handleAddChildrenToNode:this.handleAddChildrenToNode,subscriptions:Qt,centerNode:this.centerNode})}))))}};Tree$1.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,draggable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800,dataKey:void 0};const divider$4=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1}}),Tree=Tree$1;function useCache(_e,lt=!1){const[Rt,At]=reactExports.useState();return reactExports.useEffect(()=>{lt||_e&&At(_e)},[_e,lt]),Rt}const radius2={small:{value:0,name:"Current",description:"Show the current node and its parents"},medium:{value:4,name:"Nearby",description:"Show nodes with ≤4 degrees of separation"},infinite:{value:void 0,name:"All",description:"Show all nodes, may impact performance"}},orientationOptions={horizontal:{value:"horizontal"},vertical:{value:"vertical"}};function TreePage({template:_e}){var cn,un,rn,sn,pn;const{palette:lt}=useTheme(),{key:Rt,setKey:At,layer:Pt,setLayer:Dt,layers:Lt}=useLayer(),Bt=useThrottle$1(((cn=Pt==null?void 0:Pt.source)==null?void 0:cn.step)??0,600),{controls:Nt,onChange:jt,state:Ut,dragHandle:Gt}=useViewTreeContext(),[qt,Xt]=reactExports.useState("small"),[Kt,Zt]=reactExports.useState("horizontal"),Qt=useCss$1({"&.rd3t-link":{stroke:alpha(lt.text.primary,lt.action.disabledOpacity)}}),{result:Jt,loading:en}=useTreeMemo({trace:(rn=(un=Pt==null?void 0:Pt.source)==null?void 0:un.trace)==null?void 0:rn.content,step:Bt,radius:radius2[qt].value},[Bt,Pt,qt]),tn=useCache(Jt,en),an=reactExports.useCallback(()=>Qt,[Qt]);return jsxRuntimeExports.jsxs(_e,{onChange:jt,stack:Ut,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Gt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:(pn=(sn=Pt==null?void 0:Pt.source)==null?void 0:sn.trace)!=null&&pn.content&&(tn!=null&&tn.tree)?jsxRuntimeExports.jsx(AutoSizer,{children:({width:bn,height:gn})=>jsxRuntimeExports.jsx(Box$1,{width:bn,height:gn,children:jsxRuntimeExports.jsx(Tree,{scaleExtent:{max:10,min:.01},orientation:Kt,translate:{x:bn/2,y:bn/2},data:tn.tree,dimensions:{width:bn,height:gn},separation:{siblings:1,nonSiblings:1},pathClassFunc:an,renderCustomNodeElement:({nodeDatum:_n,onNodeClick:xn})=>{var ln;return jsxRuntimeExports.jsx(Node$4,{node:_n,onClick:()=>xn==null?void 0:xn({}),step:(ln=Pt==null?void 0:Pt.source)==null?void 0:ln.step,onStep:Mn=>Dt(produce(Pt,Tn=>{lodashExports$1.set(Tn,"source.step",Mn)}))})}})})}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(TreeIcon,{}),label:"Tree"})})})," ",jsxRuntimeExports.jsxs(_e.Options,{children:[jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Rt,items:lodashExports$1.map(Lt,bn=>({id:bn.key,name:inferLayerName(bn)})),onChange:At,arrow:!0,ellipsis:12}),divider$4,jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(VisibilityOutlined,{}),label:"Radius",value:qt,onChange:bn=>Xt(bn),items:lodashExports$1.map(lodashExports$1.entries(radius2),([bn,gn])=>({id:bn,...gn})),arrow:!0}),divider$4,jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(RotateIcon,{}),label:"Orientation",value:Kt,onChange:bn=>Zt(bn),items:lodashExports$1.entries(orientationOptions).map(([bn,gn])=>({id:bn,name:lodashExports$1.startCase(gn.value)})),arrow:!0})]}),jsxRuntimeExports.jsx(_e.Extras,{children:Nt})]})}const width=16,height=4;function Node$4({onClick:_e,node:lt,step:Rt=0,onStep:At}){var Ut;const{palette:Pt,spacing:Dt,shape:Lt}=useTheme(),Bt=lodashExports$1.findLast(lt==null?void 0:lt.events,Gt=>Gt.step<=Rt),Nt=!!lodashExports$1.find(lt==null?void 0:lt.events,Gt=>Gt.step===Rt),jt=getColorHex((Ut=Bt==null?void 0:Bt.data)==null?void 0:Ut.type);return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Gt=>{var qt,Xt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tooltip$1,{title:`f: ${((qt=Bt==null?void 0:Bt.data)==null?void 0:qt.f)??"unknown"}, g: ${((Xt=Bt==null?void 0:Bt.data)==null?void 0:Xt.g)??"unknown"}`,children:jsxRuntimeExports.jsxs("g",{onClick:Kt=>{Gt.open(Kt)},children:[jsxRuntimeExports.jsx("clipPath",{id:"clipPath",children:jsxRuntimeExports.jsx("rect",{y:Dt(-height/2),x:Dt(-.25),strokeWidth:0,width:Dt(width),height:Dt(height),rx:Lt.borderRadius})}),jsxRuntimeExports.jsx("rect",{y:Dt(-height/2),x:Dt(-.25),strokeWidth:0,fill:Pt.background.default,width:Dt(width),height:Dt(height),clipPath:"url(#clipPath)"}),Nt&&jsxRuntimeExports.jsx("rect",{y:Dt(-height/2),x:Dt(-.25),strokeWidth:0,fill:alpha(Pt.primary.main,Pt.action.selectedOpacity),width:Dt(width),height:Dt(height),clipPath:"url(#clipPath)"}),jsxRuntimeExports.jsx("rect",{x:Dt(-.25),y:Dt(-height/2),height:Dt(height),width:Dt(.5),fill:jt,strokeWidth:0,clipPath:"url(#clipPath)"}),jsxRuntimeExports.jsx("text",{strokeWidth:0,height:Dt(4),fill:Pt.text.primary,y:0,fontWeight:500,fontSize:"0.875rem",x:Dt(2-.25),alignmentBaseline:"central",children:lt==null?void 0:lt.name}),!!(lt!=null&<.cumulativeChildCount)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("text",{strokeWidth:0,height:Dt(4),fill:Pt.text.secondary,y:0,x:Dt(width-2.25-1),textAnchor:"end",fontWeight:400,fontSize:"0.875rem",alignmentBaseline:"central",children:lt==null?void 0:lt.cumulativeChildCount}),jsxRuntimeExports.jsx(NextIcon,{width:Dt(2),height:Dt(2),x:Dt(width-2-1),y:Dt(-height/2+1),strokeWidth:0,fill:Pt.text.primary,opacity:Pt.action.disabledOpacity})]})]})}),jsxRuntimeExports.jsx(Menu$1,{anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{horizontal:"center",vertical:"top"},...bindMenu(Gt),children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{p:0},children:lodashExports$1.map(lt==null?void 0:lt.events,Kt=>jsxRuntimeExports.jsx(MenuItem$1,{selected:Kt.step===Rt,sx:{borderLeft:`4px solid ${getColorHex(Kt.data.type)}`},onClick:()=>{Gt.close(),_e==null||_e(),lodashExports$1.delay(()=>At==null?void 0:At(Kt.step),150)},children:jsxRuntimeExports.jsx(Label$1,{primary:lodashExports$1.startCase(Kt.data.type),secondary:`Step ${Kt.step}`})}))})})]})}})}function SelectionMenu({selection:_e,onClose:lt}){const Rt=useSelectionMenu(),At=useCache(_e),{client:Pt}=_e??{};return jsxRuntimeExports.jsx(Menu$1,{open:!!_e,anchorReference:"anchorPosition",anchorPosition:{top:(Pt==null?void 0:Pt.y)??0,left:(Pt==null?void 0:Pt.x)??0},onClose:lt,keepMounted:!0,children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{py:0},children:jsxRuntimeExports.jsx(Rt,{event:At,children:Dt=>{const Lt=lodashExports$1.entries(Dt);return Lt.length?lodashExports$1.chain(Lt).sortBy(([,Bt])=>Bt.index).map(([,{items:Bt,primary:Nt}],jt)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!!jt&&jsxRuntimeExports.jsx(Divider$1,{sx:{my:1,mx:2}}),Nt&&jsxRuntimeExports.jsx(ListItem$1,{sx:{py:0},children:jsxRuntimeExports.jsx(Typography$1,{color:"text.secondary",variant:"overline",children:Nt})}),lodashExports$1.chain(Bt).entries().sortBy(([,Ut])=>Ut.index).map(([Ut,{action:Gt,icon:qt,primary:Xt,secondary:Kt}])=>Gt?jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{Gt(),lt==null||lt()},children:[qt&&jsxRuntimeExports.jsx(ListItemIcon$1,{children:qt}),jsxRuntimeExports.jsx(ListItemText$1,{primary:Xt,sx:{mr:4}}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Kt})]},Ut):jsxRuntimeExports.jsxs(ListItem$1,{children:[qt&&jsxRuntimeExports.jsx(ListItemIcon$1,{children:qt}),jsxRuntimeExports.jsx(ListItemText$1,{primary:Xt,sx:{mr:4}}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Kt})]},Ut)).value()]})).value():jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(Typography$1,{children:"No info to show."})})})}})})})}const identity$1=({children:_e})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==null?void 0:_e({})});function useSelectionMenu(){const[{layers:_e}]=useLayers();return reactExports.useMemo(()=>lodashExports$1.chain(_e).reduce((lt,Rt)=>{var Pt;const At=((Pt=getLayerHandler(Rt))==null?void 0:Pt.provideSelectionInfo)??identity$1;return({children:Dt,event:Lt})=>jsxRuntimeExports.jsx(At,{layer:Rt.key,event:Lt,children:Bt=>jsxRuntimeExports.jsx(lt,{event:Lt,children:Nt=>Dt==null?void 0:Dt(lodashExports$1.merge(Bt,Nt))})})},identity$1).value(),[_e])}const TILE_RESOLUTION=128,tileSize=(_e=!1)=>(_e?.75:devicePixelRatio)*TILE_RESOLUTION,rendererOptions={tileSubdivision:2,workerCount:lodashExports$1.clamp(navigator.hardwareConcurrency-1,1,12),tileResolution:{width:tileSize(),height:tileSize()}},TraceRendererContext=reactExports.createContext({});function useRendererInstance(){return reactExports.useContext(TraceRendererContext)}function useRenderer(_e,{width:lt,height:Rt}={}){const At=useTheme(),[Pt]=useRenderers(),Dt=reactExports.useRef(null),[Lt,Bt]=reactExports.useState(""),[Nt,jt]=reactExports.useState();return reactExports.useEffect(()=>{if(Bt(""),Dt.current&<&&Rt&&_e){const Ut=lodashExports$1.find(Pt,Gt=>Gt.renderer.meta.id===_e);if(Ut){const Gt=new Ut.renderer.constructor;return Gt.setup({...rendererOptions,screenSize:{width:lt,height:Rt},backgroundColor:At.palette.background.paper,accentColor:At.palette.primary.main}),Dt.current.append(Gt.getView()),jt(Gt),()=>{var qt,Xt;try{(Xt=(qt=Dt.current)==null?void 0:qt.removeChild)==null||Xt.call(qt,Gt.getView()),jt(void 0)}catch(Kt){console.warn(Kt)}finally{Gt.destroy()}}}}},[Dt.current,lodashExports$1.map,_e,Pt,At,Bt,jt]),useDebounce(()=>{Nt&<&&Rt&&Nt.setOptions({screenSize:{width:lt,height:Rt}})},At.transitions.duration.standard,[Nt,lt,Rt]),{instance:Nt,ref:Dt,error:Lt}}function TraceRendererCircularProgress(){const[{map:_e,specimen:lt}]=useLoading();return!!(_e||lt)&&jsxRuntimeExports.jsx(CircularProgress$1,{sx:{position:"absolute",top:Rt=>Rt.spacing(6+2),right:Rt=>Rt.spacing(2)}})}function TraceRenderer({width:_e,height:lt,renderer:Rt,rendererRef:At,layers:Pt}){const Dt=reactExports.useMemo(nanoid$1,[]),{instance:Lt,error:Bt,ref:Nt}=useRenderer(Rt,{width:_e,height:lt}),{playing:jt}=usePlaybackState(),[,Ut]=useScreenshots(),[Gt,qt]=reactExports.useState();reactExports.useEffect(()=>{if(Lt){const Kt=(Zt,Qt)=>{const Jt=Zt;qt({client:{x:Jt.clientX,y:Jt.clientY},world:Qt.world,info:{point:Qt.world,components:Qt.components}})};return Lt.on("click",Kt),()=>void Lt.off("click",Kt)}},[Lt]);const Xt=reactExports.useMemo(()=>({renderer:Lt}),[Lt]);return reactExports.useEffect(()=>At==null?void 0:At(Lt),[Lt,At]),reactExports.useEffect(()=>{const Kt=async()=>{var Zt;return await((Zt=Lt==null?void 0:Lt.toDataUrl)==null?void 0:Zt.call(Lt))};return Ut(()=>({[Dt]:Kt})),()=>Ut(()=>({[Dt]:void 0}))},[Dt,Lt]),reactExports.useEffect(()=>{Lt&&Lt.setOptions({tileResolution:{width:tileSize(jt),height:tileSize(jt)}})},[Lt,jt]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TraceRendererCircularProgress,{}),jsxRuntimeExports.jsx(TraceRendererContext.Provider,{value:Xt,children:Pt!=null&&Pt.length?Bt?jsxRuntimeExports.jsxs(Box$1,{sx:{display:"flex",flexDirection:"column",width:_e,height:lt,alignItems:"center",justifyContent:"center",color:"text.secondary"},children:[jsxRuntimeExports.jsx(DisabledIcon,{sx:{mb:2},fontSize:"large"}),Bt]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Box$1,{ref:Nt,children:Pt.map((Kt,Zt)=>jsxRuntimeExports.jsx(RenderLayer,{index:Zt,layer:Kt},Kt.key))})}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(ViewportIcon,{}),label:"No layers to render",width:_e,height:lt})}),jsxRuntimeExports.jsx(SelectionMenu,{selection:Gt,onClose:()=>qt(void 0)})]})}function NodeList({nodes:_e}){const{renderer:lt}=useRendererInstance();return reactExports.useEffect(()=>{if(lt&&(_e!=null&&_e.length))return lt.add(_e.flat())},[lt,_e]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function LazyNodeList({nodes:_e,step:lt}){const At=lodashExports$1.floor((lt??0)/200)*200,Pt=reactExports.useMemo(()=>lodashExports$1.slice(_e,0,At),[_e,At]),Dt=reactExports.useMemo(()=>lodashExports$1.slice(_e,At,(lt??0)+1),[_e,At,lt]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!!At&&jsxRuntimeExports.jsx(NodeList,{nodes:Pt}),jsxRuntimeExports.jsx(NodeList,{nodes:Dt})]})}function useConnectionResolver(){const[_e]=useConnections();return reactExports.useCallback(lt=>lodashExports$1.find(_e,lt),[_e])}function useConnection(_e){return useConnectionResolver()({url:_e})}function useMapContent(_e){const lt=useSnackbar(),Rt=useLoadingState("map"),At=useConnectionResolver(),Pt=reactExports.useMemo(()=>memo(async({source:Nt,id:jt}={})=>{if(Nt&&jt){const Ut=At({url:Nt});if(Ut){lt("Fetching map...");const Gt=await Ut.transport().call("features/map",{id:jt});return Gt==null?void 0:Gt.content}}},{normalizer:JSON.stringify}),[At,lt]),{content:Dt,source:Lt,id:Bt}=_e??{};return useAsync(()=>Rt(async()=>{if(Bt)return{..._e,content:Dt||await Pt({source:Lt,id:Bt})}}),[Pt,Dt,Lt,Bt])}const noop$3=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});function useMapOptions(_e){const{format:lt}=_e??{};return useAsync(async()=>{var Rt,At;return await((At=(Rt=getParser(lt))==null?void 0:Rt.editor)==null?void 0:At.call(Rt,_e==null?void 0:_e.content))??noop$3},[_e])}function useParsedMap(_e,lt){const Rt=useSnackbar(),At=useTheme(),Pt=useLoadingState("map"),{format:Dt,content:Lt}=_e??{};return useAsync(()=>Pt(async()=>{var Bt,Nt;if(Dt&&Lt){Rt("Processing map...");try{const jt=await((Nt=(Bt=getParser(Dt))==null?void 0:Bt.parse)==null?void 0:Nt.call(Bt,Lt,{color:At.palette.text.primary,background:At.palette.background.paper,...lt}))??{nodes:[]};return Rt("Map loaded",`${jt.nodes.length} elements, ${jt.log.join(", ")}`),jt}catch(jt){return console.error(jt),Rt("Error parsing",lodashExports$1.get(jt,"message")),{error:lodashExports$1.get(jt,"message")}}}}),[Dt,Lt,At,lt])}const controller$2={key:"map",icon:jsxRuntimeExports.jsx(MapTwoTone,{}),inferName:_e=>{var lt;return(lt=_e==null?void 0:_e.source)!=null&<.map?`${_e.source.map.name} (${lodashExports$1.startCase(_e.source.map.format)})`:"Untitled Map"},error:_e=>{var lt,Rt;return(Rt=(lt=_e==null?void 0:_e.source)==null?void 0:lt.parsedMap)==null?void 0:Rt.error},claimImportedFile:async _e=>lodashExports$1.keys(mapParsers).includes(ext(_e.name))?{claimed:!0,layer:async lt=>{lt("Opening map...");try{return{map:{...await readUploadedMap(_e,lodashExports$1.entries(mapParsers).map(([At])=>({id:At}))).read()}}}catch(Rt){return console.error(Rt),lt(`Error opening, ${lodashExports$1.get(Rt,"message")}`),{map:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(Rt,"message"),name:lodashExports$1.startCase(name$1(_e.name))}}}}}:{claimed:!1},editor:withProduce(({value:_e,produce:lt})=>{var At,Pt,Dt,Lt,Bt,Nt,jt,Ut;const{result:Rt}=useMapOptions((At=_e==null?void 0:_e.source)==null?void 0:At.map);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Source",content:jsxRuntimeExports.jsx(MapPicker,{value:(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.map,onChange:Gt=>lt(qt=>lodashExports$1.set(qt,"source.map",Gt))})}),((Lt=(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.parsedMap)==null?void 0:Lt.error)&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:Gt=>Gt.palette.error.main,sx:{whiteSpace:"pre-line",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Nt=(Bt=_e==null?void 0:_e.source)==null?void 0:Bt.parsedMap)==null?void 0:Nt.error})}),!!((jt=_e==null?void 0:_e.source)!=null&&jt.map)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Heading,{label:"Map Options"}),Rt?jsxRuntimeExports.jsx(Rt,{value:(Ut=_e==null?void 0:_e.source)==null?void 0:Ut.options,onChange:Gt=>lt(qt=>{var Xt;lodashExports$1.set(qt,"source.options",Gt(((Xt=qt.source)==null?void 0:Xt.options)??{}))})}):jsxRuntimeExports.jsx(CircularProgress$1,{sx:{mt:2}})]})]})}),renderer:({layer:_e,index:lt})=>{var Pt;const{nodes:Rt}=((Pt=_e==null?void 0:_e.source)==null?void 0:Pt.parsedMap)??{},At=reactExports.useMemo(()=>[lodashExports$1.map(Rt,Dt=>({...Dt,meta:{...Dt.meta,sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:lt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))],[Rt,lt,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode]);return jsxRuntimeExports.jsx(NodeList,{nodes:At})},service:withProduce(({value:_e,produce:lt})=>{var Pt,Dt;const{result:Rt}=useMapContent((Pt=_e==null?void 0:_e.source)==null?void 0:Pt.map),{result:At}=useParsedMap(Rt,(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.options);return useEffectWhen(()=>void lt(Lt=>{lodashExports$1.set(Lt,"source.parsedMap",At),lodashExports$1.set(Lt,"viewKey",nanoid$1())}),[At,lt],[At]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}),provideSelectionInfo:({children:_e,event:lt,layer:Rt})=>{const{layer:At,setLayer:Pt,layers:Dt}=useLayer(Rt),{parsedMap:Lt}=(At==null?void 0:At.source)??{},{point:Bt,node:Nt}=reactExports.useMemo(()=>{var Ut,Gt,qt,Xt;if(Lt&<){const Kt=(Xt=(qt=getParser((Gt=(Ut=At==null?void 0:At.source)==null?void 0:Ut.map)==null?void 0:Gt.format))==null?void 0:qt.hydrate)==null?void 0:Xt.call(qt,Lt);if(Kt){const Zt=(lt==null?void 0:lt.world)&&Kt.snap(lt.world);if(Zt){const Qt=(lt==null?void 0:lt.world)&&Kt.nodeAt(Zt);return{point:Zt,node:Qt}}}}return{}},[Lt,lt]),jt=reactExports.useMemo(()=>({...At&&Bt&&!lodashExports$1.isUndefined(Nt)&&{[At.key]:{primary:inferLayerName(At),items:{point:{primary:"Point",secondary:`(${lodashExports$1.round(Bt.x,2)}, ${lodashExports$1.round(Bt.y,2)})`}}}}}),[Bt,Nt,At,Dt,Pt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==null?void 0:_e(jt)})}};function IconButtonWithTooltip({label:_e,icon:lt,...Rt}){return jsxRuntimeExports.jsx(Tooltip$1,{title:lodashExports$1.startCase(_e),children:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IconButton$1,{...Rt,children:lt})})},_e)}const FRAME_TIME_MS=1e3/60;function PlaybackService({children:_e,value:lt}){const{step:Rt,end:At,playing:Pt,pause:Dt,stepWithBreakpointCheck:Lt}=usePlaybackState(lt==null?void 0:lt.key),[{"playback/playbackRate":Bt=1}]=useSettings();return reactExports.useEffect(()=>{if(Pt){let Nt=!1,jt=lodashExports$1.noop,Ut=Date.now();const Gt=()=>{if(!Nt){const qt=Date.now(),Xt=lodashExports$1.ceil(Bt*(qt-Ut)/FRAME_TIME_MS);Rt{jt(),Nt=!0}}},[Lt,Pt,At,Rt,Dt,Bt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e})}function Playback({layer:_e}){const{playing:lt,canPause:Rt,canPlay:At,canStepBackward:Pt,canStepForward:Dt,canStop:Lt,pause:Bt,play:Nt,stepBackward:jt,stepForward:Ut,stop:Gt,stepWithBreakpointCheck:qt,step:Xt,end:Kt}=usePlaybackState(_e==null?void 0:_e.key);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconButtonWithTooltip,{label:"step-backward",icon:jsxRuntimeExports.jsx(PreviousIcon,{}),onClick:jt,disabled:!Pt}),jsxRuntimeExports.jsx(IconButtonWithTooltip,{...lt?{label:"pause",icon:jsxRuntimeExports.jsx(PauseIcon,{}),onClick:()=>Bt(),disabled:!Rt}:{label:"play",icon:jsxRuntimeExports.jsx(PlayIcon,{}),onClick:()=>Nt(),disabled:!At,color:"primary"}}),jsxRuntimeExports.jsx(IconButtonWithTooltip,{label:"step-forward",icon:jsxRuntimeExports.jsx(NextIcon,{}),onClick:Ut,disabled:!Dt}),jsxRuntimeExports.jsx(IconButtonWithTooltip,{label:"stop",icon:jsxRuntimeExports.jsx(StopIcon,{}),onClick:Gt,disabled:!Lt}),jsxRuntimeExports.jsx(IconButtonWithTooltip,{label:"step-to-next-breakpoint",icon:jsxRuntimeExports.jsx(SkipIcon,{}),onClick:()=>{qt(Kt-Xt,1)},disabled:!Dt})]})}var ResizeSensor={exports:{}};(function(_e,lt){(function(Rt,At){_e.exports=At()})(typeof window<"u"?window:commonjsGlobal,function(){if(typeof window>"u")return null;var Rt=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),At=Rt.requestAnimationFrame||Rt.mozRequestAnimationFrame||Rt.webkitRequestAnimationFrame||function(Ut){return Rt.setTimeout(Ut,20)},Pt=Rt.cancelAnimationFrame||Rt.mozCancelAnimationFrame||Rt.webkitCancelAnimationFrame||function(Ut){Rt.clearTimeout(Ut)};function Dt(Ut,Gt){var qt=Object.prototype.toString.call(Ut),Xt=qt==="[object Array]"||qt==="[object NodeList]"||qt==="[object HTMLCollection]"||qt==="[object Object]"||typeof jQuery<"u"&&Ut instanceof jQuery||typeof Elements<"u"&&Ut instanceof Elements,Kt=0,Zt=Ut.length;if(Xt)for(;Kt=_n&&(Mn+=bn.value),bn.mode==="max"&&xn<=_n&&(Mn+=bn.value),ln[Tn]||(ln[Tn]=""),Mn&&(" "+ln[Tn]+" ").indexOf(" "+Mn+" ")===-1&&(ln[Tn]+=" "+Mn));for(var Cn in An)An.hasOwnProperty(Cn)&&(ln[An[Cn]]?this.element.setAttribute(An[Cn],ln[An[Cn]].substr(1)):this.element.removeAttribute(An[Cn]))}}function qt(rn,sn){rn.elementQueriesSetupInformation||(rn.elementQueriesSetupInformation=new Gt(rn,sn)),rn.elementQueriesSensor||(rn.elementQueriesSensor=new Rt(rn,function(){rn.elementQueriesSetupInformation.call()}))}function Xt(rn,sn,pn,bn){if(typeof Lt[rn]>"u"){Lt[rn]=[];var gn=Bt.length;Dt.innerHTML+=` +`;let Tree$1=class Lu extends React.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:Lu.assignInternalProperties(clone$1(this.props.data)),d3:Lu.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0,dataKey:this.props.dataKey},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${v4()}`,this.gInstanceRef=`rd3t-g-${v4()}`,this.handleNodeToggle=lt=>{const Rt=clone$1(this.state.data),Pt=this.findNodesById(lt,Rt,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(Pt.__rd3t.collapsed?(Lu.expandNode(Pt),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(Pt,Rt)):Lu.collapseNode(Pt),this.props.enableLegacyTransitions?(this.setState({data:Rt,isTransitioning:!0}),setTimeout(()=>this.setState({isTransitioning:!1}),this.props.transitionDuration+10)):this.setState({data:Rt}),this.internalState.targetNode=Pt)},this.handleAddChildrenToNode=(lt,Rt)=>{const At=clone$1(this.state.data),Pt=this.findNodesById(lt,At,[]);if(Pt.length>0){const Dt=Pt[0],Lt=Dt.__rd3t.depth,Bt=clone$1(Rt).map(Nt=>Lu.assignInternalProperties([Nt],Lt+1));Dt.children.push(...Bt.flat()),this.setState({data:At})}},this.handleOnNodeClickCb=(lt,Rt)=>{const{onNodeClick:At}=this.props;At&&typeof At=="function"&&(Rt.persist(),At(clone$1(lt),Rt))},this.handleOnLinkClickCb=(lt,Rt,At)=>{const{onLinkClick:Pt}=this.props;Pt&&typeof Pt=="function"&&(At.persist(),Pt(clone$1(lt),clone$1(Rt),At))},this.handleOnNodeMouseOverCb=(lt,Rt)=>{const{onNodeMouseOver:At}=this.props;At&&typeof At=="function"&&(Rt.persist(),At(clone$1(lt),Rt))},this.handleOnLinkMouseOverCb=(lt,Rt,At)=>{const{onLinkMouseOver:Pt}=this.props;Pt&&typeof Pt=="function"&&(At.persist(),Pt(clone$1(lt),clone$1(Rt),At))},this.handleOnNodeMouseOutCb=(lt,Rt)=>{const{onNodeMouseOut:At}=this.props;At&&typeof At=="function"&&(Rt.persist(),At(clone$1(lt),Rt))},this.handleOnLinkMouseOutCb=(lt,Rt,At)=>{const{onLinkMouseOut:Pt}=this.props;Pt&&typeof Pt=="function"&&(At.persist(),Pt(clone$1(lt),clone$1(Rt),At))},this.centerNode=lt=>{const{dimensions:Rt,orientation:At,zoom:Pt,centeringTransitionDuration:Dt}=this.props;if(Rt){const Lt=select(`.${this.gInstanceRef}`),Bt=select(`.${this.svgInstanceRef}`),Nt=this.state.d3.scale;let jt,Ut;At==="horizontal"?(Ut=-lt.x*Nt+Rt.height/2,jt=-lt.y*Nt+Rt.width/2):(jt=-lt.x*Nt+Rt.width/2,Ut=-lt.y*Nt+Rt.height/2),Lt.transition().duration(Dt).attr("transform","translate("+jt+","+Ut+")scale("+Nt+")"),Bt.call(d3zoom().transform,identity$2.translate(jt,Ut).scale(Pt))}},this.getNodeClassName=(lt,Rt)=>{const{rootNodeClassName:At,branchNodeClassName:Pt,leafNodeClassName:Dt}=this.props;return lt!=null?Rt.children?Pt:Dt:At}}static getDerivedStateFromProps(lt,Rt){let At=null;const Pt=!lt.dataKey||Rt.dataKey!==lt.dataKey;lt.data!==Rt.dataRef&&Pt&&(At={dataRef:lt.data,data:Lu.assignInternalProperties(clone$1(lt.data)),isInitialRenderForDataset:!0,dataKey:lt.dataKey});const Dt=Lu.calculateD3Geometry(lt);return dequal(Dt,Rt.d3)||(At=At||{},At.d3=Dt),At}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(lt){this.props.data!==lt.data&&this.setState({isInitialRenderForDataset:!1}),(!dequal(this.props.translate,lt.translate)||!dequal(this.props.scaleExtent,lt.scaleExtent)||this.props.zoomable!==lt.zoomable||this.props.draggable!==lt.draggable||this.props.zoom!==lt.zoom||this.props.enableLegacyTransitions!==lt.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?clone$1(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null}setInitialTreeDepth(lt,Rt){lt.forEach(At=>{At.data.__rd3t.collapsed=At.depth>=Rt})}bindZoomListener(lt){const{zoomable:Rt,scaleExtent:At,translate:Pt,zoom:Dt,onUpdate:Lt,hasInteractiveNodes:Bt}=lt,Nt=select(`.${this.svgInstanceRef}`),jt=select(`.${this.gInstanceRef}`);Nt.call(d3zoom().transform,identity$2.translate(Pt.x,Pt.y).scale(Dt)),Nt.call(d3zoom().scaleExtent(Rt?[At.min,At.max]:[Dt,Dt]).filter(Ut=>Bt?Ut.target.classList.contains(this.svgInstanceRef)||Ut.target.classList.contains(this.gInstanceRef)||Ut.shiftKey:!0).on("zoom",Ut=>{!this.props.draggable&&["mousemove","touchmove","dblclick"].includes(Ut.sourceEvent.type)||(jt.attr("transform",Ut.transform),typeof Lt=="function"&&(Lt({node:null,zoom:Ut.transform.k,translate:{x:Ut.transform.x,y:Ut.transform.y}}),this.state.d3.scale=Ut.transform.k,this.state.d3.translate={x:Ut.transform.x,y:Ut.transform.y}))}))}static assignInternalProperties(lt,Rt=0){return(Array.isArray(lt)?lt:[lt]).map(Pt=>{const Dt=Pt;return Dt.__rd3t={id:null,depth:null,collapsed:!1},Dt.__rd3t.id=v4(),Dt.__rd3t.depth=Rt,Dt.children&&Dt.children.length>0&&(Dt.children=Lu.assignInternalProperties(Dt.children,Rt+1)),Dt})}findNodesById(lt,Rt,At){return At.length>0||(At=At.concat(Rt.filter(Pt=>Pt.__rd3t.id===lt)),Rt.forEach(Pt=>{Pt.children&&Pt.children.length>0&&(At=this.findNodesById(lt,Pt.children,At))})),At}findNodesAtDepth(lt,Rt,At){return At=At.concat(Rt.filter(Pt=>Pt.__rd3t.depth===lt)),Rt.forEach(Pt=>{Pt.children&&Pt.children.length>0&&(At=this.findNodesAtDepth(lt,Pt.children,At))}),At}static collapseNode(lt){lt.__rd3t.collapsed=!0,lt.children&<.children.length>0&<.children.forEach(Rt=>{Lu.collapseNode(Rt)})}static expandNode(lt){lt.__rd3t.collapsed=!1}collapseNeighborNodes(lt,Rt){this.findNodesAtDepth(lt.__rd3t.depth,Rt,[]).filter(Pt=>Pt.__rd3t.id!==lt.__rd3t.id).forEach(Pt=>Lu.collapseNode(Pt))}generateTree(){const{initialDepth:lt,depthFactor:Rt,separation:At,nodeSize:Pt,orientation:Dt}=this.props,{isInitialRenderForDataset:Lt}=this.state,Nt=d3tree().nodeSize(Dt==="horizontal"?[Pt.y,Pt.x]:[Pt.x,Pt.y]).separation((Gt,qt)=>Gt.parent.data.__rd3t.id===qt.parent.data.__rd3t.id?At.siblings:At.nonSiblings)(hierarchy(this.state.data[0],Gt=>Gt.__rd3t.collapsed?null:Gt.children));let jt=Nt.descendants();const Ut=Nt.links();return lt!==void 0&&Lt&&this.setInitialTreeDepth(jt,lt),Rt&&jt.forEach(Gt=>{Gt.y=Gt.depth*Rt}),{nodes:jt,links:Ut}}static calculateD3Geometry(lt){let Rt;return lt.zoom>lt.scaleExtent.max?Rt=lt.scaleExtent.max:lt.zoomReact.createElement(Link,{key:"link-"+en,orientation:Pt,pathFunc:Dt,pathClassFunc:Xt,linkData:Jt,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:Gt,transitionDuration:Lt})),lt.map((Jt,en)=>{const{data:tn,x:an,y:cn,parent:un}=Jt;return React.createElement(Node$5,{key:"node-"+en,data:tn,position:{x:an,y:cn},hierarchyPointNode:Jt,parent:un,nodeClassName:this.getNodeClassName(un,tn),renderCustomNodeElement:At,nodeSize:Bt,orientation:Pt,enableLegacyTransitions:Gt,transitionDuration:Lt,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,handleAddChildrenToNode:this.handleAddChildrenToNode,subscriptions:Qt,centerNode:this.centerNode})}))))}};Tree$1.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,draggable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800,dataKey:void 0};const divider$4=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1}}),Tree=Tree$1;function useCache(_e,lt=!1){const[Rt,At]=reactExports.useState();return reactExports.useEffect(()=>{lt||_e&&At(_e)},[_e,lt]),Rt}const radius2={small:{value:0,name:"Current",description:"Show the current node and its parents"},medium:{value:4,name:"Nearby",description:"Show nodes with ≤4 degrees of separation"},infinite:{value:void 0,name:"All",description:"Show all nodes, may impact performance"}},orientationOptions={horizontal:{value:"horizontal"},vertical:{value:"vertical"}};function TreePage({template:_e}){var cn,un,rn,sn,pn;const{palette:lt}=useTheme(),{key:Rt,setKey:At,layer:Pt,setLayer:Dt,layers:Lt}=useLayer(),Bt=useThrottle$1(((cn=Pt==null?void 0:Pt.source)==null?void 0:cn.step)??0,600),{controls:Nt,onChange:jt,state:Ut,dragHandle:Gt}=useViewTreeContext(),[qt,Xt]=reactExports.useState("small"),[Kt,Zt]=reactExports.useState("horizontal"),Qt=useCss$1({"&.rd3t-link":{stroke:alpha(lt.text.primary,lt.action.disabledOpacity)}}),{result:Jt,loading:en}=useTreeMemo({trace:(rn=(un=Pt==null?void 0:Pt.source)==null?void 0:un.trace)==null?void 0:rn.content,step:Bt,radius:radius2[qt].value},[Bt,Pt,qt]),tn=useCache(Jt,en),an=reactExports.useCallback(()=>Qt,[Qt]);return jsxRuntimeExports.jsxs(_e,{onChange:jt,stack:Ut,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Gt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:(pn=(sn=Pt==null?void 0:Pt.source)==null?void 0:sn.trace)!=null&&pn.content&&(tn!=null&&tn.tree)?jsxRuntimeExports.jsx(AutoSizer,{children:({width:bn,height:gn})=>jsxRuntimeExports.jsx(Box$1,{width:bn,height:gn,children:jsxRuntimeExports.jsx(Tree,{scaleExtent:{max:10,min:.01},orientation:Kt,translate:{x:bn/2,y:bn/2},data:tn.tree,dimensions:{width:bn,height:gn},separation:{siblings:1,nonSiblings:1},pathClassFunc:an,renderCustomNodeElement:({nodeDatum:_n,onNodeClick:xn})=>{var ln;return jsxRuntimeExports.jsx(Node$4,{node:_n,onClick:()=>xn==null?void 0:xn({}),step:(ln=Pt==null?void 0:Pt.source)==null?void 0:ln.step,onStep:Mn=>Dt(produce(Pt,Tn=>{lodashExports$1.set(Tn,"source.step",Mn)}))})}})})}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(TreeIcon,{}),label:"Tree",secondary:"When you load a trace that has tree-like data, you'll see it as a decision tree here."})})})," ",jsxRuntimeExports.jsxs(_e.Options,{children:[jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Rt,items:lodashExports$1.map(Lt,bn=>({id:bn.key,name:inferLayerName(bn)})),onChange:At,arrow:!0,ellipsis:12}),divider$4,jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(VisibilityOutlined,{}),label:"Radius",value:qt,onChange:bn=>Xt(bn),items:lodashExports$1.map(lodashExports$1.entries(radius2),([bn,gn])=>({id:bn,...gn})),arrow:!0}),divider$4,jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(RotateIcon,{}),label:"Orientation",value:Kt,onChange:bn=>Zt(bn),items:lodashExports$1.entries(orientationOptions).map(([bn,gn])=>({id:bn,name:lodashExports$1.startCase(gn.value)})),arrow:!0})]}),jsxRuntimeExports.jsx(_e.Extras,{children:Nt})]})}const width=16,height=4;function Node$4({onClick:_e,node:lt,step:Rt=0,onStep:At}){var Ut;const{palette:Pt,spacing:Dt,shape:Lt}=useTheme(),Bt=lodashExports$1.findLast(lt==null?void 0:lt.events,Gt=>Gt.step<=Rt),Nt=!!lodashExports$1.find(lt==null?void 0:lt.events,Gt=>Gt.step===Rt),jt=getColorHex((Ut=Bt==null?void 0:Bt.data)==null?void 0:Ut.type);return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Gt=>{var qt,Xt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tooltip$1,{title:`f: ${((qt=Bt==null?void 0:Bt.data)==null?void 0:qt.f)??"unknown"}, g: ${((Xt=Bt==null?void 0:Bt.data)==null?void 0:Xt.g)??"unknown"}`,children:jsxRuntimeExports.jsxs("g",{onClick:Kt=>{Gt.open(Kt)},children:[jsxRuntimeExports.jsx("clipPath",{id:"clipPath",children:jsxRuntimeExports.jsx("rect",{y:Dt(-height/2),x:Dt(-.25),strokeWidth:0,width:Dt(width),height:Dt(height),rx:Lt.borderRadius})}),jsxRuntimeExports.jsx("rect",{y:Dt(-height/2),x:Dt(-.25),strokeWidth:0,fill:Pt.background.default,width:Dt(width),height:Dt(height),clipPath:"url(#clipPath)"}),Nt&&jsxRuntimeExports.jsx("rect",{y:Dt(-height/2),x:Dt(-.25),strokeWidth:0,fill:alpha(Pt.primary.main,Pt.action.selectedOpacity),width:Dt(width),height:Dt(height),clipPath:"url(#clipPath)"}),jsxRuntimeExports.jsx("rect",{x:Dt(-.25),y:Dt(-height/2),height:Dt(height),width:Dt(.5),fill:jt,strokeWidth:0,clipPath:"url(#clipPath)"}),jsxRuntimeExports.jsx("text",{strokeWidth:0,height:Dt(4),fill:Pt.text.primary,y:0,fontWeight:500,fontSize:"0.875rem",x:Dt(2-.25),alignmentBaseline:"central",children:lt==null?void 0:lt.name}),!!(lt!=null&<.cumulativeChildCount)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("text",{strokeWidth:0,height:Dt(4),fill:Pt.text.secondary,y:0,x:Dt(width-2.25-1),textAnchor:"end",fontWeight:400,fontSize:"0.875rem",alignmentBaseline:"central",children:lt==null?void 0:lt.cumulativeChildCount}),jsxRuntimeExports.jsx(NextIcon,{width:Dt(2),height:Dt(2),x:Dt(width-2-1),y:Dt(-height/2+1),strokeWidth:0,fill:Pt.text.primary,opacity:Pt.action.disabledOpacity})]})]})}),jsxRuntimeExports.jsx(Menu$1,{anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{horizontal:"center",vertical:"top"},...bindMenu(Gt),children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{p:0},children:lodashExports$1.map(lt==null?void 0:lt.events,Kt=>jsxRuntimeExports.jsx(MenuItem$1,{selected:Kt.step===Rt,sx:{borderLeft:`4px solid ${getColorHex(Kt.data.type)}`},onClick:()=>{Gt.close(),_e==null||_e(),lodashExports$1.delay(()=>At==null?void 0:At(Kt.step),150)},children:jsxRuntimeExports.jsx(Label$1,{primary:lodashExports$1.startCase(Kt.data.type),secondary:`Step ${Kt.step}`})}))})})]})}})}function SelectionMenu({selection:_e,onClose:lt}){const Rt=useSelectionMenu(),At=useCache(_e),{client:Pt}=_e??{};return jsxRuntimeExports.jsx(Menu$1,{open:!!_e,anchorReference:"anchorPosition",anchorPosition:{top:(Pt==null?void 0:Pt.y)??0,left:(Pt==null?void 0:Pt.x)??0},onClose:lt,keepMounted:!0,children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{py:0},children:jsxRuntimeExports.jsx(Rt,{event:At,children:Dt=>{const Lt=lodashExports$1.entries(Dt);return Lt.length?lodashExports$1.chain(Lt).sortBy(([,Bt])=>Bt.index).map(([,{items:Bt,primary:Nt}],jt)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!!jt&&jsxRuntimeExports.jsx(Divider$1,{sx:{my:1,mx:2}}),Nt&&jsxRuntimeExports.jsx(ListItem$1,{sx:{py:0},children:jsxRuntimeExports.jsx(Typography$1,{color:"text.secondary",variant:"overline",children:Nt})}),lodashExports$1.chain(Bt).entries().sortBy(([,Ut])=>Ut.index).map(([Ut,{action:Gt,icon:qt,primary:Xt,secondary:Kt}])=>Gt?jsxRuntimeExports.jsxs(MenuItem$1,{onClick:()=>{Gt(),lt==null||lt()},children:[qt&&jsxRuntimeExports.jsx(ListItemIcon$1,{children:qt}),jsxRuntimeExports.jsx(ListItemText$1,{primary:Xt,sx:{mr:4}}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Kt})]},Ut):jsxRuntimeExports.jsxs(ListItem$1,{children:[qt&&jsxRuntimeExports.jsx(ListItemIcon$1,{children:qt}),jsxRuntimeExports.jsx(ListItemText$1,{primary:Xt,sx:{mr:4}}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Kt})]},Ut)).value()]})).value():jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(Typography$1,{children:"No info to show."})})})}})})})}const identity$1=({children:_e})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==null?void 0:_e({})});function useSelectionMenu(){const[{layers:_e}]=useLayers();return reactExports.useMemo(()=>lodashExports$1.chain(_e).reduce((lt,Rt)=>{var Pt;const At=((Pt=getLayerHandler(Rt))==null?void 0:Pt.provideSelectionInfo)??identity$1;return({children:Dt,event:Lt})=>jsxRuntimeExports.jsx(At,{layer:Rt.key,event:Lt,children:Bt=>jsxRuntimeExports.jsx(lt,{event:Lt,children:Nt=>Dt==null?void 0:Dt(lodashExports$1.merge(Bt,Nt))})})},identity$1).value(),[_e])}const TILE_RESOLUTION=128,tileSize=(_e=!1)=>(_e?.75:devicePixelRatio)*TILE_RESOLUTION,rendererOptions={tileSubdivision:2,workerCount:lodashExports$1.clamp(navigator.hardwareConcurrency-1,1,12),tileResolution:{width:tileSize(),height:tileSize()}},TraceRendererContext=reactExports.createContext({});function useRendererInstance(){return reactExports.useContext(TraceRendererContext)}function useRenderer(_e,{width:lt,height:Rt}={}){const At=useTheme(),[Pt]=useRenderers(),Dt=reactExports.useRef(null),[Lt,Bt]=reactExports.useState(""),[Nt,jt]=reactExports.useState();return reactExports.useEffect(()=>{if(Bt(""),Dt.current&<&&Rt&&_e){const Ut=lodashExports$1.find(Pt,Gt=>Gt.renderer.meta.id===_e);if(Ut){const Gt=new Ut.renderer.constructor;return Gt.setup({...rendererOptions,screenSize:{width:lt,height:Rt},backgroundColor:At.palette.background.paper,accentColor:At.palette.primary.main}),Dt.current.append(Gt.getView()),jt(Gt),()=>{var qt,Xt;try{(Xt=(qt=Dt.current)==null?void 0:qt.removeChild)==null||Xt.call(qt,Gt.getView()),jt(void 0)}catch(Kt){console.warn(Kt)}finally{Gt.destroy()}}}}},[Dt.current,lodashExports$1.map,_e,Pt,At,Bt,jt]),useDebounce(()=>{Nt&<&&Rt&&Nt.setOptions({screenSize:{width:lt,height:Rt}})},At.transitions.duration.standard,[Nt,lt,Rt]),{instance:Nt,ref:Dt,error:Lt}}function TraceRendererCircularProgress(){const[{map:_e,specimen:lt}]=useLoading();return!!(_e||lt)&&jsxRuntimeExports.jsx(CircularProgress$1,{sx:{position:"absolute",top:Rt=>Rt.spacing(6+2),right:Rt=>Rt.spacing(2)}})}const VIEWPORT_PAGE_DESCRIPTION="When you create a layer, you'll see it visualised here.";function TraceRenderer({width:_e,height:lt,renderer:Rt,rendererRef:At,layers:Pt}){const Dt=reactExports.useMemo(nanoid$1,[]),{instance:Lt,error:Bt,ref:Nt}=useRenderer(Rt,{width:_e,height:lt}),{playing:jt}=usePlaybackState(),[,Ut]=useScreenshots(),[Gt,qt]=reactExports.useState();reactExports.useEffect(()=>{if(Lt){const Kt=(Zt,Qt)=>{const Jt=Zt;qt({client:{x:Jt.clientX,y:Jt.clientY},world:Qt.world,info:{point:Qt.world,components:Qt.components}})};return Lt.on("click",Kt),()=>void Lt.off("click",Kt)}},[Lt]);const Xt=reactExports.useMemo(()=>({renderer:Lt}),[Lt]);return reactExports.useEffect(()=>At==null?void 0:At(Lt),[Lt,At]),reactExports.useEffect(()=>{const Kt=async()=>{var Zt;return await((Zt=Lt==null?void 0:Lt.toDataUrl)==null?void 0:Zt.call(Lt))};return Ut(()=>({[Dt]:Kt})),()=>Ut(()=>({[Dt]:void 0}))},[Dt,Lt]),reactExports.useEffect(()=>{Lt&&Lt.setOptions({tileResolution:{width:tileSize(jt),height:tileSize(jt)}})},[Lt,jt]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TraceRendererCircularProgress,{}),jsxRuntimeExports.jsx(TraceRendererContext.Provider,{value:Xt,children:Pt!=null&&Pt.length?Bt?jsxRuntimeExports.jsxs(Box$1,{sx:{display:"flex",flexDirection:"column",width:_e,height:lt,alignItems:"center",justifyContent:"center",color:"text.secondary"},children:[jsxRuntimeExports.jsx(DisabledIcon,{sx:{mb:2},fontSize:"large"}),Bt]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Box$1,{ref:Nt,children:Pt.map((Kt,Zt)=>jsxRuntimeExports.jsx(RenderLayer,{index:Zt,layer:Kt},Kt.key))})}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(ViewportIcon,{}),label:"Viewport",width:_e,height:lt,secondary:VIEWPORT_PAGE_DESCRIPTION})}),jsxRuntimeExports.jsx(SelectionMenu,{selection:Gt,onClose:()=>qt(void 0)})]})}function NodeList({nodes:_e}){const{renderer:lt}=useRendererInstance();return reactExports.useEffect(()=>{if(lt&&(_e!=null&&_e.length))return lt.add(_e.flat())},[lt,_e]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function LazyNodeList({nodes:_e,step:lt}){const At=lodashExports$1.floor((lt??0)/200)*200,Pt=reactExports.useMemo(()=>lodashExports$1.slice(_e,0,At),[_e,At]),Dt=reactExports.useMemo(()=>lodashExports$1.slice(_e,At,(lt??0)+1),[_e,At,lt]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!!At&&jsxRuntimeExports.jsx(NodeList,{nodes:Pt}),jsxRuntimeExports.jsx(NodeList,{nodes:Dt})]})}function useConnectionResolver(){const[_e]=useConnections();return reactExports.useCallback(lt=>lodashExports$1.find(_e,lt),[_e])}function useConnection(_e){return useConnectionResolver()({url:_e})}function useMapContent(_e){const lt=useSnackbar(),Rt=useLoadingState("map"),At=useConnectionResolver(),Pt=reactExports.useMemo(()=>memo(async({source:Nt,id:jt}={})=>{if(Nt&&jt){const Ut=At({url:Nt});if(Ut){lt("Fetching map...");const Gt=await Ut.transport().call("features/map",{id:jt});return Gt==null?void 0:Gt.content}}},{normalizer:JSON.stringify}),[At,lt]),{content:Dt,source:Lt,id:Bt}=_e??{};return useAsync(()=>Rt(async()=>{if(Bt)return{..._e,content:Dt||await Pt({source:Lt,id:Bt})}}),[Pt,Dt,Lt,Bt])}const noop$3=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});function useMapOptions(_e){const{format:lt}=_e??{};return useAsync(async()=>{var Rt,At;return await((At=(Rt=getParser(lt))==null?void 0:Rt.editor)==null?void 0:At.call(Rt,_e==null?void 0:_e.content))??noop$3},[_e])}function useParsedMap(_e,lt){const Rt=useSnackbar(),At=useTheme(),Pt=useLoadingState("map"),{format:Dt,content:Lt}=_e??{};return useAsync(()=>Pt(async()=>{var Bt,Nt;if(Dt&&Lt){Rt("Processing map...");try{const jt=await((Nt=(Bt=getParser(Dt))==null?void 0:Bt.parse)==null?void 0:Nt.call(Bt,Lt,{color:At.palette.text.primary,background:At.palette.background.paper,...lt}))??{nodes:[]};return Rt("Map loaded",`${jt.nodes.length} elements, ${jt.log.join(", ")}`),jt}catch(jt){return console.error(jt),Rt("Error parsing",lodashExports$1.get(jt,"message")),{error:lodashExports$1.get(jt,"message")}}}}),[Dt,Lt,At,lt])}const controller$2={key:"map",icon:jsxRuntimeExports.jsx(MapTwoTone,{}),inferName:_e=>{var lt;return(lt=_e==null?void 0:_e.source)!=null&<.map?`${_e.source.map.name} (${lodashExports$1.startCase(_e.source.map.format)})`:"Untitled Map"},error:_e=>{var lt,Rt;return(Rt=(lt=_e==null?void 0:_e.source)==null?void 0:lt.parsedMap)==null?void 0:Rt.error},claimImportedFile:async _e=>lodashExports$1.keys(mapParsers).includes(ext(_e.name))?{claimed:!0,layer:async lt=>{lt("Opening map...");try{return{map:{...await readUploadedMap(_e,lodashExports$1.entries(mapParsers).map(([At])=>({id:At}))).read()}}}catch(Rt){return console.error(Rt),lt(`Error opening, ${lodashExports$1.get(Rt,"message")}`),{map:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(Rt,"message"),name:lodashExports$1.startCase(name$1(_e.name))}}}}}:{claimed:!1},editor:withProduce(({value:_e,produce:lt})=>{var At,Pt,Dt,Lt,Bt,Nt,jt,Ut;const{result:Rt}=useMapOptions((At=_e==null?void 0:_e.source)==null?void 0:At.map);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Source",content:jsxRuntimeExports.jsx(MapPicker,{value:(Pt=_e==null?void 0:_e.source)==null?void 0:Pt.map,onChange:Gt=>lt(qt=>lodashExports$1.set(qt,"source.map",Gt))})}),((Lt=(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.parsedMap)==null?void 0:Lt.error)&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:Gt=>Gt.palette.error.main,sx:{whiteSpace:"pre-line",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Nt=(Bt=_e==null?void 0:_e.source)==null?void 0:Bt.parsedMap)==null?void 0:Nt.error})}),!!((jt=_e==null?void 0:_e.source)!=null&&jt.map)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Heading,{label:"Map Options"}),Rt?jsxRuntimeExports.jsx(Rt,{value:(Ut=_e==null?void 0:_e.source)==null?void 0:Ut.options,onChange:Gt=>lt(qt=>{var Xt;lodashExports$1.set(qt,"source.options",Gt(((Xt=qt.source)==null?void 0:Xt.options)??{}))})}):jsxRuntimeExports.jsx(CircularProgress$1,{sx:{mt:2}})]})]})}),renderer:({layer:_e,index:lt})=>{var Pt;const{nodes:Rt}=((Pt=_e==null?void 0:_e.source)==null?void 0:Pt.parsedMap)??{},At=reactExports.useMemo(()=>[lodashExports$1.map(Rt,Dt=>({...Dt,meta:{...Dt.meta,sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:lt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))],[Rt,lt,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode]);return jsxRuntimeExports.jsx(NodeList,{nodes:At})},service:withProduce(({value:_e,produce:lt})=>{var Pt,Dt;const{result:Rt}=useMapContent((Pt=_e==null?void 0:_e.source)==null?void 0:Pt.map),{result:At}=useParsedMap(Rt,(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.options);return useEffectWhen(()=>void lt(Lt=>{lodashExports$1.set(Lt,"source.parsedMap",At),lodashExports$1.set(Lt,"viewKey",nanoid$1())}),[At,lt],[At]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}),provideSelectionInfo:({children:_e,event:lt,layer:Rt})=>{const{layer:At,setLayer:Pt,layers:Dt}=useLayer(Rt),{parsedMap:Lt}=(At==null?void 0:At.source)??{},{point:Bt,node:Nt}=reactExports.useMemo(()=>{var Ut,Gt,qt,Xt;if(Lt&<){const Kt=(Xt=(qt=getParser((Gt=(Ut=At==null?void 0:At.source)==null?void 0:Ut.map)==null?void 0:Gt.format))==null?void 0:qt.hydrate)==null?void 0:Xt.call(qt,Lt);if(Kt){const Zt=(lt==null?void 0:lt.world)&&Kt.snap(lt.world);if(Zt){const Qt=(lt==null?void 0:lt.world)&&Kt.nodeAt(Zt);return{point:Zt,node:Qt}}}}return{}},[Lt,lt]),jt=reactExports.useMemo(()=>({...At&&Bt&&!lodashExports$1.isUndefined(Nt)&&{[At.key]:{primary:inferLayerName(At),items:{point:{primary:"Point",secondary:`(${lodashExports$1.round(Bt.x,2)}, ${lodashExports$1.round(Bt.y,2)})`}}}}}),[Bt,Nt,At,Dt,Pt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e==null?void 0:_e(jt)})}};function IconButtonWithTooltip({label:_e,icon:lt,...Rt}){return jsxRuntimeExports.jsx(Tooltip$1,{title:lodashExports$1.startCase(_e),children:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(IconButton$1,{...Rt,children:lt})})},_e)}const FRAME_TIME_MS=1e3/60;function PlaybackService({children:_e,value:lt}){const{step:Rt,end:At,playing:Pt,pause:Dt,stepWithBreakpointCheck:Lt}=usePlaybackState(lt==null?void 0:lt.key),[{"playback/playbackRate":Bt=1}]=useSettings();return reactExports.useEffect(()=>{if(Pt){let Nt=!1,jt=lodashExports$1.noop,Ut=Date.now();const Gt=()=>{if(!Nt){const qt=Date.now(),Xt=lodashExports$1.ceil(Bt*(qt-Ut)/FRAME_TIME_MS);Rt{jt(),Nt=!0}}},[Lt,Pt,At,Rt,Dt,Bt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e})}function Playback({layer:_e}){const{playing:lt,canPause:Rt,canPlay:At,canStepBackward:Pt,canStepForward:Dt,canStop:Lt,pause:Bt,play:Nt,stepBackward:jt,stepForward:Ut,stop:Gt,stepWithBreakpointCheck:qt,step:Xt,end:Kt}=usePlaybackState(_e==null?void 0:_e.key);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconButtonWithTooltip,{label:"step-backward",icon:jsxRuntimeExports.jsx(PreviousIcon,{}),onClick:jt,disabled:!Pt}),jsxRuntimeExports.jsx(IconButtonWithTooltip,{...lt?{label:"pause",icon:jsxRuntimeExports.jsx(PauseIcon,{}),onClick:()=>Bt(),disabled:!Rt}:{label:"play",icon:jsxRuntimeExports.jsx(PlayIcon,{}),onClick:()=>Nt(),disabled:!At,color:"primary"}}),jsxRuntimeExports.jsx(IconButtonWithTooltip,{label:"step-forward",icon:jsxRuntimeExports.jsx(NextIcon,{}),onClick:Ut,disabled:!Dt}),jsxRuntimeExports.jsx(IconButtonWithTooltip,{label:"stop",icon:jsxRuntimeExports.jsx(StopIcon,{}),onClick:Gt,disabled:!Lt}),jsxRuntimeExports.jsx(IconButtonWithTooltip,{label:"step-to-next-breakpoint",icon:jsxRuntimeExports.jsx(SkipIcon,{}),onClick:()=>{qt(Kt-Xt,1)},disabled:!Dt})]})}var ResizeSensor={exports:{}};(function(_e,lt){(function(Rt,At){_e.exports=At()})(typeof window<"u"?window:commonjsGlobal,function(){if(typeof window>"u")return null;var Rt=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),At=Rt.requestAnimationFrame||Rt.mozRequestAnimationFrame||Rt.webkitRequestAnimationFrame||function(Ut){return Rt.setTimeout(Ut,20)},Pt=Rt.cancelAnimationFrame||Rt.mozCancelAnimationFrame||Rt.webkitCancelAnimationFrame||function(Ut){Rt.clearTimeout(Ut)};function Dt(Ut,Gt){var qt=Object.prototype.toString.call(Ut),Xt=qt==="[object Array]"||qt==="[object NodeList]"||qt==="[object HTMLCollection]"||qt==="[object Object]"||typeof jQuery<"u"&&Ut instanceof jQuery||typeof Elements<"u"&&Ut instanceof Elements,Kt=0,Zt=Ut.length;if(Xt)for(;Kt=_n&&(Mn+=bn.value),bn.mode==="max"&&xn<=_n&&(Mn+=bn.value),ln[Tn]||(ln[Tn]=""),Mn&&(" "+ln[Tn]+" ").indexOf(" "+Mn+" ")===-1&&(ln[Tn]+=" "+Mn));for(var Cn in An)An.hasOwnProperty(Cn)&&(ln[An[Cn]]?this.element.setAttribute(An[Cn],ln[An[Cn]].substr(1)):this.element.removeAttribute(An[Cn]))}}function qt(rn,sn){rn.elementQueriesSetupInformation||(rn.elementQueriesSetupInformation=new Gt(rn,sn)),rn.elementQueriesSensor||(rn.elementQueriesSensor=new Rt(rn,function(){rn.elementQueriesSetupInformation.call()}))}function Xt(rn,sn,pn,bn){if(typeof Lt[rn]>"u"){Lt[rn]=[];var gn=Bt.length;Dt.innerHTML+=` `+rn+" {animation: 0.1s element-queries;}",Dt.innerHTML+=` `+rn+" > .resize-sensor {min-width: "+gn+"px;}",Bt.push(rn)}Lt[rn].push({mode:sn,property:pn,value:bn})}function Kt(rn){var sn;if(document.querySelectorAll&&(sn=rn?rn.querySelectorAll.bind(rn):document.querySelectorAll.bind(document)),!sn&&typeof $$<"u"&&(sn=$$),!sn&&typeof jQuery<"u"&&(sn=jQuery),!sn)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return sn}function Zt(rn){var sn=Kt(rn);for(var pn in Lt)if(Lt.hasOwnProperty(pn))for(var bn=sn(pn,rn),gn=0,_n=bn.length;gn<_n;gn++)qt(bn[gn],pn)}function Qt(rn){var sn=[],pn=[],bn=[],gn=0,_n=-1,xn=[];for(var ln in rn.children)if(rn.children.hasOwnProperty(ln)&&rn.children[ln].tagName&&rn.children[ln].tagName.toLowerCase()==="img"){sn.push(rn.children[ln]);var Mn=rn.children[ln].getAttribute("min-width")||rn.children[ln].getAttribute("data-min-width"),Tn=rn.children[ln].getAttribute("data-src")||rn.children[ln].getAttribute("url");bn.push(Tn);var An={minWidth:Mn};pn.push(An),Mn?rn.children[ln].style.display="none":(gn=sn.length-1,rn.children[ln].style.display="block")}_n=gn;function Cn(){var wn=!1,Fn;for(Fn in sn)sn.hasOwnProperty(Fn)&&pn[Fn].minWidth&&rn.offsetWidth>pn[Fn].minWidth&&(wn=Fn);if(wn||(wn=gn),_n!==wn)if(xn[wn])sn[_n].style.display="none",sn[wn].style.display="block",_n=wn;else{var $n=new Image;$n.onload=function(){sn[wn].src=bn[wn],sn[_n].style.display="none",sn[wn].style.display="block",xn[wn]=!0,_n=wn},$n.src=bn[wn]}else sn[wn].src=bn[wn]}rn.resizeSensorInstance=new Rt(rn,Cn),Cn()}function Jt(){for(var rn=Kt(),sn=rn("[data-responsive-image],[responsive-image]"),pn=0,bn=sn.length;pn img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",Dt.innerHTML+=` @keyframes element-queries { 0% { visibility: inherit; } }`,document.getElementsByTagName("head")[0].appendChild(Dt),un=!0);for(var sn=0,pn=document.styleSheets.length;sn{if(Bt){const Ut=()=>{{const Gt=Bt.scrollTop<=_e;Gt!==Dt&&Lt(Gt)}{const Gt=Bt.scrollTop<=1;Gt!==At&&Pt(Gt)}jt.current-Bt.scrollTop&&(Math.abs(jt.current-Bt.scrollTop)>2&&jt.current>=0&&Rt(jt.current>Bt.scrollTop),jt.current=Bt.scrollTop)};return Bt.addEventListener("scroll",Ut,{passive:!0}),()=>{Bt.removeEventListener("scroll",Ut)}}},[Bt,Dt,At,jt,_e]),[lt||Dt,Dt,At,Bt,Nt]}const PanelContext=reactExports.createContext(null);function usePanel(){return reactExports.useContext(PanelContext)}var download$1={exports:{}};(function(_e,lt){(function(Rt,At){_e.exports=At()})(commonjsGlobal,function(){return function Rt(At,Pt,Dt){var Lt=window,Bt="application/octet-stream",Nt=Dt||Bt,jt=At,Ut=!Pt&&!Dt&&jt,Gt=document.createElement("a"),qt=function(rn){return String(rn)},Xt=Lt.Blob||Lt.MozBlob||Lt.WebKitBlob||qt,Kt=Pt||"download",Zt,Qt;if(Xt=Xt.call?Xt.bind(Lt):Blob,String(this)==="true"&&(jt=[jt,Nt],Nt=jt[0],jt=jt[1]),Ut&&Ut.length<2048&&(Kt=Ut.split("/").pop().split("?")[0],Gt.href=Ut,Gt.href.indexOf(Ut)!==-1)){var Jt=new XMLHttpRequest;return Jt.open("GET",Ut,!0),Jt.responseType="blob",Jt.onload=function(rn){Rt(rn.target.response,Kt,Bt)},setTimeout(function(){Jt.send()},0),Jt}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(jt))if(jt.length>1024*1024*1.999&&Xt!==qt)jt=cn(jt),Nt=jt.type||Bt;else return navigator.msSaveBlob?navigator.msSaveBlob(cn(jt),Kt):un(jt);else if(/([\x80-\xff])/.test(jt)){var en=0,tn=new Uint8Array(jt.length),an=tn.length;for(en;enRt?`{ `+gap+Nt.join(`, `+gap)+` -`+Bt+"}":"{ "+Nt.join(", ")+" }":"{"+Nt.join(",")+"}",gap=Bt,Dt}}function beautify(_e,lt,Rt,At){var Pt;if(gap="",indent="",At||(At=0),typeof At!="number")throw new Error("beaufifier: limit must be a number");if(typeof Rt=="number")for(Pt=0;Pt+Pt);return Math.abs(At)>4?jsxRuntimeExports.jsxs("span",{children:[Rt,"x10",jsxRuntimeExports.jsx("sup",{style:supProps,children:At})]}):lodashExports$1.round(_e,2)}else return _e;case"string":return lodashExports$1.startCase(`${_e}`);case"undefined":return"null";default:return lt?jsxRuntimeExports.jsx("code",{children:lodashExports$1.isNull(_e)?"null":lodashExports$1.get(_e,"constructor.name")??typeof _e}):jsxRuntimeExports.jsx("code",{style:{whiteSpace:"pre"},children:lodashExports$1.truncate(beautify$1(_e,void 0,2),{length:100})})}}function Property({label:_e,value:lt,type:Rt,simple:At}){return jsxRuntimeExports.jsxs(Flex,{width:"auto",mr:2,mb:.5,alignItems:"baseline",children:[jsxRuntimeExports.jsx(Typography$1,{component:"div",variant:"body2",...Rt,sx:{opacity:.54,...Rt==null?void 0:Rt.sx},children:_e}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(Typography$1,{component:"div",variant:"body2",...Rt,children:renderProperty(lt,At)??"none"})]},`${_e}::${renderProperty(lt)}`)}const OMIT_PROPS=["type","id"],ESSENTIAL_PROPS=["f","g","pId"],ALL_PROPS=[...OMIT_PROPS,...ESSENTIAL_PROPS],sortEventKeys=_e=>lodashExports$1.chain(_e).entries().filter(([,lt])=>!lodashExports$1.isUndefined(lt)).sortBy(([lt])=>lodashExports$1.indexOf(ALL_PROPS,lt)+1||Number.MAX_SAFE_INTEGER).value();function PropertyDialog({event:_e,max:lt=10,simple:Rt,variant:At,...Pt}){const Dt=sortEventKeys(_e);return jsxRuntimeExports.jsx(ManagedModal,{...lodashExports$1.merge({appBar:{children:jsxRuntimeExports.jsx(AppBarTitle,{children:"Event Properties"})},trigger:Lt=>jsxRuntimeExports.jsxs(Button$2,{variant:"text",sx:{mx:-1,minWidth:0,width:"fit-content",color:Bt=>Bt.palette.text.secondary,justifyContent:"left"},onClick:Bt=>{Bt.stopPropagation(),Bt.preventDefault(),Lt(Bt)},children:[Dt.length-lt," more"]})},Pt),children:[{name:"common",props:lodashExports$1.filter(Dt,([Lt])=>OMIT_PROPS.includes(Lt))},{name:"search",props:lodashExports$1.filter(Dt,([Lt])=>ESSENTIAL_PROPS.includes(Lt))},{name:"other",props:lodashExports$1.filter(Dt,([Lt])=>!ALL_PROPS.includes(Lt))}].map(({name:Lt,props:Bt},Nt)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!!Nt&&jsxRuntimeExports.jsx(Divider$1,{sx:{mb:1}}),jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",component:"div",sx:{px:3},children:lodashExports$1.startCase(Lt)}),jsxRuntimeExports.jsx(Box$1,{sx:{p:1,pt:0,display:"grid",gridAutoFlow:"row",gridTemplateColumns:"repeat(2, 1fr)"},children:lodashExports$1.map(Bt,([jt,Ut])=>jsxRuntimeExports.jsx(ListItem$1,{sx:{py:.5},children:jsxRuntimeExports.jsx(ListItemText$1,{secondary:jt,primary:renderProperty(Ut)})},`${jt}::${Ut}`))},Lt)]}))})}function PropertyList(_e){const{event:lt,variant:Rt="body2",max:At=10,simple:Pt,...Dt}=_e,Lt=sortEventKeys(lt);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Flex,{...Dt,children:[lodashExports$1.map(lodashExports$1.slice(Lt,0,At),([Bt,Nt],jt)=>jsxRuntimeExports.jsx(Property,{label:Bt,value:Nt,type:{variant:Rt},simple:Pt},jt)),Lt.length>At&&!Pt&&jsxRuntimeExports.jsx(PropertyDialog,{..._e})]})})}function TracePreview({trace:_e,language:lt="json"}){return jsxRuntimeExports.jsx(Box$1,{sx:{width:"100%",height:"100%"},children:jsxRuntimeExports.jsx(ScriptViewer,{options:{readOnly:!0},language:lt,value:_e?beautify$1({..._e,events:lodashExports$1.take(_e.events,10)},null,2,1):"No data"})})}var dist$4={exports:{}};(function(_e,lt){(function(Rt,At){_e.exports=At()})(commonjsGlobal,function(){return function(Rt){function At(Dt){if(Pt[Dt])return Pt[Dt].exports;var Lt=Pt[Dt]={i:Dt,l:!1,exports:{}};return Rt[Dt].call(Lt.exports,Lt,Lt.exports,At),Lt.l=!0,Lt.exports}var Pt={};return At.m=Rt,At.c=Pt,At.d=function(Dt,Lt,Bt){At.o(Dt,Lt)||Object.defineProperty(Dt,Lt,{configurable:!1,enumerable:!0,get:Bt})},At.n=function(Dt){var Lt=Dt&&Dt.__esModule?function(){return Dt.default}:function(){return Dt};return At.d(Lt,"a",Lt),Lt},At.o=function(Dt,Lt){return Object.prototype.hasOwnProperty.call(Dt,Lt)},At.p="",At(At.s=1)}([function(Rt,At,Pt){function Dt(Bt){var Nt=Bt===void 0?{}:Bt,jt=Nt.ESCAPE,Ut=jt===void 0?/^\\/:jt,Gt=Nt.VARIABLE_START,qt=Gt===void 0?/^\${\s*/:Gt,Xt=Nt.VARIABLE_END,Kt=Xt===void 0?/^\s*}/:Xt,Zt=Nt.PIPE_START,Qt=Zt===void 0?/^\s*\|\s*/:Zt,Jt=Nt.PIPE_PARAMETER_START,en=Jt===void 0?/^\s*:\s*/:Jt,tn=Nt.QUOTED_STRING,an=tn===void 0?At.DEFAULT_QUOTED_STRING_REGEX:tn,cn=Nt.QUOTED_STRING_TEST,un=cn===void 0?null:cn,rn=Nt.QUOTED_STRING_GET_AND_ADVANCE,sn=rn===void 0?null:rn,pn=Nt.QUOTED_STRING_IN_PARAMETER_TEST,bn=pn===void 0?null:pn,gn=Nt.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,_n=gn===void 0?null:gn,xn=un||function(An){return an.test(An)},ln=sn||Lt(an),Mn=bn||function(An){return an.test(An)},Tn=_n||Lt(an);return function(An){function Cn(vr){vr===void 0&&(vr=1),dn=dn.substr(vr)}function wn(vr){vr===void 0&&(vr=/^/),Cn(dn.match(vr)[0].length)}function Fn(){var vr;return wn(Ut),vr=dn.length>0?dn[0]:"",Cn(),vr}function $n(vr){var br=(vr===void 0?{}:vr).isNull,Er=br!==void 0&&br;Gn={name:"",pipes:[]},er=!Er}function Pn(){hn.variables.push(Gn),$n({isNull:!0})}function Vn(vr){var br=(vr===void 0?{}:vr).isNull,Er=br!==void 0&&br;Sn={name:"",parameters:[]},Yn=!Er}function Zn(){Gn.pipes.push(Sn),Vn({isNull:!0})}function tr(vr){var br=(vr===void 0?{}:vr).isNull,Er=br!==void 0&&br;Kn="",dr=!Er}function vn(){Sn.parameters.push(Kn),tr({isNull:!0})}function En(){return!!Kt.test(dn)&&(wn(Kt),yn>=3&&vn(),yn>=2&&Zn(),yn>=1&&Pn(),yn=0,!0)}function kn(){return!!Qt.test(dn)&&(wn(Qt),yn>=3&&vn(),yn>=2&&Zn(),yn>=1&&Vn(),yn=2,!0)}function zn(){return!!en.test(dn)&&(wn(en),yn>=3&&vn(),yn>=2&&tr(),yn=3,!0)}for(var dn=An,hn={literals:[],variables:[]},yn=0,Bn="",Gn={name:"",pipes:[]},Sn={name:"",parameters:[]},Kn="",er=!1,Yn=!1,dr=!1;dn&&dn.length>0;)switch(yn){case 0:if(Ut.test(dn)){Bn+=Fn();continue}if(qt.test(dn)){yn=1,$n(),hn.literals.push(Bn),Bn="",wn(qt);continue}Bn+=dn[0],Cn();break;case 1:if(Ut.test(dn)){Gn.name+=Fn();continue}if(En()||kn())continue;if(xn(dn)){Gn.name+=ln(dn,Cn);continue}Gn.name+=dn[0],Cn();break;case 2:if(Ut.test(dn)){Sn.name+=Fn();continue}if(En()||zn()||kn())continue;if(xn(dn)){Sn.name+=ln(dn,Cn);continue}Sn.name+=dn[0],Cn();break;case 3:if(Ut.test(dn)){Kn+=Fn();continue}if(En()||zn()||kn())continue;if(Mn(dn)){Kn+=Tn(dn,Cn);continue}Kn+=dn[0],Cn()}return dr&&Sn.parameters.push(Kn),Yn&&Gn.pipes.push(Sn),er&&hn.variables.push(Gn),hn.literals.push(Bn),hn}}function Lt(Bt){return function(Nt,jt){var Ut=Nt.match(Bt);return jt(Ut[0].length),Ut.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(At,"__esModule",{value:!0}),At.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,At.parseStringTemplateGenerator=Dt,At.parseStringTemplate=Dt(),At.getQuotedStringAndAdvanceForRegex=Lt},function(Rt,At,Pt){Rt.exports=Pt(2)},function(Rt,At,Pt){function Dt(Lt){for(var Bt in Lt)At.hasOwnProperty(Bt)||(At[Bt]=Lt[Bt])}Object.defineProperty(At,"__esModule",{value:!0}),Dt(Pt(0)),Dt(Pt(3))},function(Rt,At,Pt){function Dt(Ut){return function(Gt){return Ut.hasOwnProperty(Gt)?Ut[Gt]:Gt.split(".").reduce(function(qt,Xt){return qt.hasOwnProperty(Xt)?qt[Xt]:""},Ut)}}function Lt(Ut,Gt,qt,Xt){Xt===void 0&&(Xt=Dt(Gt));var Kt=Xt(Ut.name);return Ut.pipes.reduce(function(Zt,Qt){return qt.hasOwnProperty(Qt.name)?qt[Qt.name](Zt,Qt.parameters):Zt},Kt??"")}function Bt(Ut,Gt,qt,Xt){return Xt===void 0&&(Xt=Dt(Gt)),Ut.literals.length===0?"":Ut.literals.slice(1).reduce(function(Kt,Zt,Qt){return""+Kt+Lt(Ut.variables[Qt],Gt,qt,Xt)+Zt},Ut.literals[0])}function Nt(Ut,Gt,qt){return Bt(jt.parseStringTemplate(Ut),Gt,qt)}Object.defineProperty(At,"__esModule",{value:!0});var jt=Pt(0);At.evaluateParsedString=Bt,At.evaluateStringTemplate=Nt}])})})(dist$4);var distExports=dist$4.exports;function mapProperties(_e={},lt){const Rt={};for(const At of Object.keys(_e))Rt[At]=At==="$"?_e[At]:lt(_e[At],At,_e);return Object.setPrototypeOf(Rt,_e)}function parseProperty(_e){switch(_e==null?void 0:_e.constructor){case Array:{const lt=lodashExports$1.map(_e,parseProperty);return Rt=>lodashExports$1.map(lt,At=>At(Rt))}case Object:{const lt=lodashExports$1.mapValues(_e,parseProperty);return Rt=>lodashExports$1.mapValues(lt,At=>At(Rt))}case String:return parseString(_e);default:return()=>_e}}function normalize(_e={}){return mapProperties(_e,lt=>lodashExports$1.isFunction(lt)?lt:parseProperty(lt))}const parseToken=_e=>{const lt=Function("$",`return ${_e};`);return Rt=>lt(new Proxy(normalize(Rt),{get(At,Pt){return typeof(At==null?void 0:At[Pt])=="function"?At[Pt]({}):At==null?void 0:At[Pt]}}))},openBrace=/^\{\{\s*/,closeBrace=/^\s*\}\}/,neverMatch=/\b\B/,parser$1=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace,VARIABLE_END:closeBrace,PIPE_START:neverMatch,PIPE_PARAMETER_START:neverMatch,QUOTED_STRING:neverMatch}),parseString=memo(_e=>{const lt=parser$1(_e);return lodashExports$1.join(lt.literals,"")?Rt=>distExports.evaluateParsedString(lt,{},{},At=>parseToken(At)(Rt)):parseToken(lt.variables[0].name)},{primitive:!0});function commonjsRequire(_e){throw new Error('Could not dynamically require "'+_e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pluralize$1={exports:{}};(function(_e,lt){(function(Rt,At){typeof commonjsRequire=="function"?_e.exports=At():Rt.pluralize=At()})(commonjsGlobal,function(){var Rt=[],At=[],Pt={},Dt={},Lt={};function Bt(Zt){return typeof Zt=="string"?new RegExp("^"+Zt+"$","i"):Zt}function Nt(Zt,Qt){return Zt===Qt?Qt:Zt===Zt.toLowerCase()?Qt.toLowerCase():Zt===Zt.toUpperCase()?Qt.toUpperCase():Zt[0]===Zt[0].toUpperCase()?Qt.charAt(0).toUpperCase()+Qt.substr(1).toLowerCase():Qt.toLowerCase()}function jt(Zt,Qt){return Zt.replace(/\$(\d{1,2})/g,function(Jt,en){return Qt[en]||""})}function Ut(Zt,Qt){return Zt.replace(Qt[0],function(Jt,en){var tn=jt(Qt[1],arguments);return Nt(Jt===""?Zt[en-1]:Jt,tn)})}function Gt(Zt,Qt,Jt){if(!Zt.length||Pt.hasOwnProperty(Zt))return Qt;for(var en=Jt.length;en--;){var tn=Jt[en];if(tn[0].test(Qt))return Ut(Qt,tn)}return Qt}function qt(Zt,Qt,Jt){return function(en){var tn=en.toLowerCase();return Qt.hasOwnProperty(tn)?Nt(en,tn):Zt.hasOwnProperty(tn)?Nt(en,Zt[tn]):Gt(tn,en,Jt)}}function Xt(Zt,Qt,Jt,en){return function(tn){var an=tn.toLowerCase();return Qt.hasOwnProperty(an)?!0:Zt.hasOwnProperty(an)?!1:Gt(an,an,Jt)===an}}function Kt(Zt,Qt,Jt){var en=Qt===1?Kt.singular(Zt):Kt.plural(Zt);return(Jt?Qt+" ":"")+en}return Kt.plural=qt(Lt,Dt,Rt),Kt.isPlural=Xt(Lt,Dt,Rt),Kt.singular=qt(Dt,Lt,At),Kt.isSingular=Xt(Dt,Lt,At),Kt.addPluralRule=function(Zt,Qt){Rt.push([Bt(Zt),Qt])},Kt.addSingularRule=function(Zt,Qt){At.push([Bt(Zt),Qt])},Kt.addUncountableRule=function(Zt){if(typeof Zt=="string"){Pt[Zt.toLowerCase()]=!0;return}Kt.addPluralRule(Zt,"$0"),Kt.addSingularRule(Zt,"$0")},Kt.addIrregularRule=function(Zt,Qt){Qt=Qt.toLowerCase(),Zt=Zt.toLowerCase(),Lt[Zt]=Qt,Dt[Qt]=Zt},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(Zt){return Kt.addIrregularRule(Zt[0],Zt[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(Zt){return Kt.addPluralRule(Zt[0],Zt[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(Zt){return Kt.addSingularRule(Zt[0],Zt[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(Kt.addUncountableRule),Kt})})(pluralize$1);var pluralizeExports=pluralize$1.exports;const pluralize=getDefaultExportFromCjs(pluralizeExports),parseTraceWorkerUrl=""+new URL("parseTrace.worker-cfbe532e.js",import.meta.url).href;class ParseTraceWorker extends Worker{constructor(){super(parseTraceWorkerUrl,{type:"module"})}}const parseTraceAsync=usingMemoizedWorkerTask(ParseTraceWorker);function useTraceParser(_e){const lt=useSnackbar(),Rt=useLoadingState("specimen");return reactExports.useCallback(()=>Rt(async()=>{var At;if(_e!=null&&_e.trace){lt("Processing trace...");try{const Pt=await parseTraceAsync(_e);return lt("Trace loaded",pluralize("step",((At=Pt==null?void 0:Pt.stepsPersistent)==null?void 0:At.length)??0,!0)),{components:Pt,content:_e.trace}}catch(Pt){return console.error(Pt),lt("Error parsing",lodashExports$1.get(Pt,"message")),{error:lodashExports$1.get(Pt,"message")}}}}),[_e])}function useTraceContent(_e){const lt=useSnackbar(),Rt=useLoadingState("specimen"),At=useConnectionResolver(),[{traces:Pt}]=useFeatures(),Dt=reactExports.useMemo(()=>memo(async({source:Ut,id:Gt})=>{if(Ut&&Gt){const qt=At({url:Ut});if(qt){lt("Fetching trace...");const Xt=await qt.transport().call("features/trace",{id:Gt});return Xt==null?void 0:Xt.content}}},{normalizer:JSON.stringify}),[At,lt]),{content:Lt,source:Bt,id:Nt}=_e??{},{lastModified:jt}=lodashExports$1.find(Pt,{id:Nt,source:Bt})??{};return useAsync(()=>Rt(async()=>{if(Nt)return{..._e,content:Lt||await Dt({source:Bt,id:Nt,lastModified:jt})}}),[Dt,Lt,Bt,Nt,jt])}const isNullish=_e=>_e==null;function makePathIndex(_e){const lt=[],Rt={},At={},Pt=lodashExports$1.chain(_e==null?void 0:_e.events).map((Bt,Nt)=>({step:Nt,id:Bt.id,pId:Bt.pId})).groupBy("id").value();lodashExports$1.forEach(_e==null?void 0:_e.events,({id:Bt,pId:Nt},jt)=>{!isNullish(Nt)&&Rt[Bt]!==Nt&&(lt.push({id:Bt,pId:Nt,step:jt,prev:lodashExports$1.last(lt)}),Rt[Bt]=Nt),At[jt]=lodashExports$1.last(lt)});const Dt=(Bt,Nt=(jt=>(jt=_e==null?void 0:_e.events)==null?void 0:jt.length)()??0)=>{let Ut=At[Nt];for(;Ut;){if(Ut.id===Bt)return Ut.pId;Ut=Ut.prev}};return{getParent:Dt,getPath:Bt=>{const Nt=[Bt];let jt={...(_e.events??[])[Bt],step:Bt};for(;jt;){const Ut=Dt(jt.id,jt.step);if(Ut){const Gt=lodashExports$1.findLast(Pt[Ut],qt=>qt.step<=jt.step);if(Gt)Nt.push(Gt.step),jt=Gt;else break}else break}return Nt}}}const controller$1={key:"trace",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),inferName:_e=>{var lt,Rt;return((Rt=(lt=_e.source)==null?void 0:lt.trace)==null?void 0:Rt.name)??"Untitled Trace"},error:_e=>{var lt,Rt,At,Pt;return((Rt=(lt=_e==null?void 0:_e.source)==null?void 0:lt.trace)==null?void 0:Rt.error)||((Pt=(At=_e==null?void 0:_e.source)==null?void 0:At.parsedTrace)==null?void 0:Pt.error)},claimImportedFile:async _e=>isTraceFormat(_e)?{claimed:!0,layer:async lt=>{lt("Opening trace...");try{return{trace:{...await readUploadedTrace(_e).read()}}}catch(Rt){return console.error(Rt),lt(`Error opening, ${lodashExports$1.get(Rt,"message")}`),{trace:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(Rt,"message"),name:lodashExports$1.startCase(name$1(_e.name))}}}}}:{claimed:!1},editor:withProduce(({value:_e,produce:lt})=>{var Rt,At,Pt,Dt,Lt,Bt,Nt,jt,Ut,Gt,qt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Trace",content:jsxRuntimeExports.jsx(TracePicker,{onChange:Xt=>lt(Kt=>lodashExports$1.set(Kt,"source.trace",Xt)),value:(Rt=_e==null?void 0:_e.source)==null?void 0:Rt.trace})}),((Pt=(At=_e==null?void 0:_e.source)==null?void 0:At.trace)==null?void 0:Pt.error)&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:Xt=>Xt.palette.error.main,sx:{whiteSpace:"pre-line",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Lt=(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace)==null?void 0:Lt.error})}),((Nt=(Bt=_e==null?void 0:_e.source)==null?void 0:Bt.parsedTrace)==null?void 0:Nt.error)&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:Xt=>Xt.palette.error.main,sx:{whiteSpace:"pre-line",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Ut=(jt=_e==null?void 0:_e.source)==null?void 0:jt.parsedTrace)==null?void 0:Ut.error})}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(qt=(Gt=_e==null?void 0:_e.source)==null?void 0:Gt.parsedTrace)==null?void 0:qt.content})})]})}),service:withProduce(({value:_e,produce:lt})=>{var Dt,Lt,Bt;const{palette:Rt}=useTheme(),{result:At}=useTraceContent((Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace),Pt=useTraceParser({trace:At==null?void 0:At.content,context:{color:colorsHex,themeAccent:Rt.primary.main,themeTextPrimary:Rt.text.primary,themeBackground:Rt.background.paper},view:"main"});return reactExports.useEffect(()=>{lt(Nt=>{var jt,Ut;return lodashExports$1.set(Nt,"source.playbackTo",((Ut=(jt=At==null?void 0:At.content)==null?void 0:jt.events)==null?void 0:Ut.length)??0)})},[(Bt=(Lt=At==null?void 0:At.content)==null?void 0:Lt.events)==null?void 0:Bt.length]),useEffectWhen(async()=>{const Nt=await Pt();lt(jt=>{lodashExports$1.set(jt,"source.parsedTrace",Nt),lodashExports$1.set(jt,"viewKey",nanoid$1())})},[Pt],[At==null?void 0:At.key]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(PlaybackService,{value:_e})})}),renderer:({layer:_e,index:lt})=>{var Nt,jt,Ut;const Rt=(jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)==null?void 0:jt.components,At=useThrottle$1(((Ut=_e==null?void 0:_e.source)==null?void 0:Ut.step)??0,1e3/60),Pt=use2DPath(_e,lt,At),Dt=reactExports.useMemo(()=>lodashExports$1.map(Rt==null?void 0:Rt.stepsPersistent,Gt=>lodashExports$1.map(Gt,qt=>lodashExports$1.merge(qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:lt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Rt==null?void 0:Rt.stepsPersistent,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,lt]),Lt=reactExports.useMemo(()=>lodashExports$1.map(Rt==null?void 0:Rt.stepsTransient,Gt=>lodashExports$1.map(Gt,qt=>lodashExports$1.merge(qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:lt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Rt==null?void 0:Rt.stepsTransient,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,lt]),Bt=reactExports.useMemo(()=>[Lt[At]??[]],[Lt,At]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyNodeList,{step:At,nodes:Dt}),jsxRuntimeExports.jsx(NodeList,{nodes:Bt}),Pt]})},steps:_e=>{var lt,Rt,At;return((At=(Rt=(lt=_e==null?void 0:_e.source)==null?void 0:lt.parsedTrace)==null?void 0:Rt.content)==null?void 0:At.events)??[]},provideSelectionInfo:({layer:_e,event:lt,children:Rt})=>{const{layer:At,setLayer:Pt}=useLayer(_e),Dt=reactExports.useMemo(()=>{var jt,Ut,Gt,qt,Xt;const Lt=((Gt=(Ut=(jt=At==null?void 0:At.source)==null?void 0:jt.parsedTrace)==null?void 0:Ut.content)==null?void 0:Gt.events)??[],Bt=lodashExports$1.chain((qt=lt==null?void 0:lt.info)==null?void 0:qt.components).filter(Kt=>{var Zt;return((Zt=Kt.meta)==null?void 0:Zt.sourceLayer)===(At==null?void 0:At.key)}).map(Kt=>{var Zt;return(Zt=Kt.meta)==null?void 0:Zt.step}).filter(lodashExports$1.negate(lodashExports$1.isUndefined)).sort((Kt,Zt)=>Kt-Zt).value(),Nt=lodashExports$1.chain((Xt=lt==null?void 0:lt.info)==null?void 0:Xt.components).filter(Kt=>{var Zt;return((Zt=Kt.meta)==null?void 0:Zt.sourceLayer)===(At==null?void 0:At.key)}).filter(Kt=>{var Zt;return(Zt=Kt.meta)==null?void 0:Zt.info}).value();if(Bt.length&&At){const Kt=lodashExports$1.last(Bt),Zt=Lt[Kt];if(Zt)return{...lodashExports$1.keyBy(lodashExports$1.map(Nt,(Qt,Jt)=>({key:`${At.key}.${Jt}`,primary:`Selection in ${inferLayerName(At)}`,items:{info:{index:-1,primary:jsxRuntimeExports.jsx(PropertyList,{event:Qt.meta.info,vertical:!0})}}})),"key"),[At.key]:{primary:inferLayerName(At),items:{properties:{index:-2,primary:jsxRuntimeExports.jsx(PropertyList,{event:Zt,vertical:!0})},[`${Zt}`]:{primary:`Go to Step ${Kt}`,secondary:`${lodashExports$1.startCase(Zt.type)}`,action:()=>Pt(produce(At,Qt=>{lodashExports$1.set(Qt,"source.step",Kt)})),icon:jsxRuntimeExports.jsx(ArrowOutwardRounded,{})}}}}}return{}},[At,lt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Rt==null?void 0:Rt(Dt)})}};function use2DPath(_e,lt=0,Rt=0){var Lt,Bt;const{palette:At}=useTheme(),{getPath:Pt}=reactExports.useMemo(()=>{var Nt,jt;return(jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)!=null&&jt.content?makePathIndex(_e.source.parsedTrace.content):{getParent:lodashExports$1.constant(void 0),getPath:lodashExports$1.constant([])}},[(Bt=(Lt=_e==null?void 0:_e.source)==null?void 0:Lt.parsedTrace)==null?void 0:Bt.content]);return reactExports.useMemo(()=>{var Nt,jt,Ut,Gt;if((Gt=(Ut=(jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)==null?void 0:jt.content)==null?void 0:Ut.render)!=null&&Gt.path){const{pivot:qt={},scale:Xt=1}=_e.source.parsedTrace.content.render.path,{x:Kt,y:Zt}=qt,Qt=Kt?parseString(Kt):tn=>tn.event.x,Jt=Zt?parseString(Zt):tn=>tn.event.y,en=lodashExports$1.map(Pt(Rt),tn=>{var an,cn,un,rn;return(rn=(un=(cn=(an=_e==null?void 0:_e.source)==null?void 0:an.parsedTrace)==null?void 0:cn.content)==null?void 0:un.events)==null?void 0:rn[tn]});if(en.length){const tn=[{$:"rect",x:Qt({event:{x:0,y:0,...lodashExports$1.head(en)}})-2*Xt/2,y:Jt({event:{x:0,y:0,...lodashExports$1.head(en)}})-2*Xt/2,fill:getColorHex("destination"),width:2*Xt,height:2*Xt},{$:"rect",x:Qt({event:{x:0,y:0,...lodashExports$1.last(en)}})-2*Xt/2,y:Jt({event:{x:0,y:0,...lodashExports$1.last(en)}})-2*Xt/2,fill:getColorHex("source"),width:2*Xt,height:2*Xt},{$:"path",points:en.map(an=>({x:Qt({event:{x:0,y:0,...an}}),y:Jt({event:{x:0,y:0,...an}})})),fill:At.primary.main,alpha:1,lineWidth:1*Xt}];return jsxRuntimeExports.jsx(NodeList,{nodes:[lodashExports$1.map(tn,an=>({component:an,meta:{source:"path",sourceLayerIndex:-99999+lt}}))]})}}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},[_e,lt,Rt,At,Pt])}async function findConnection(_e,lt,Rt){for(const At of _e){const Pt=await At.transport().call("features/algorithms"),Dt=await At.transport().call("features/formats");if(lodashExports$1.find(Pt,{id:lt})&&lodashExports$1.find(Dt,{id:Rt}))return At}}const controller={...lodashExports$1.omit(controller$1,"claimImportedFile"),key:"query",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),editor:withProduce(({value:_e,produce:lt})=>{var jt,Ut;const{algorithm:Rt}=(_e==null?void 0:_e.source)??{},{layers:At,allLayers:Pt,layer:Dt,key:Lt}=useLayer(void 0,Gt=>{var qt;return((qt=Gt.source)==null?void 0:qt.type)==="map"}),[{algorithms:Bt}]=useFeatures(),[Nt]=useConnections();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Algorithm",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(CodeOutlined,{}),label:"Algorithm",value:Rt,items:Bt.map(Gt=>{var qt;return{...Gt,description:(qt=lodashExports$1.find(Nt,{url:Gt.source}))==null?void 0:qt.name}}),onChange:async Gt=>lt(qt=>lodashExports$1.set(qt,"source.algorithm",Gt))})}),!(Bt!=null&&Bt.length)&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),jsxRuntimeExports.jsx(Option,{label:"Map",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Lt,items:Pt.map(Gt=>({id:Gt.key,hidden:!lodashExports$1.find(At,qt=>qt.key===Gt.key),name:inferLayerName(Gt)})),onChange:async Gt=>lt(qt=>lodashExports$1.set(qt,"source.mapLayerKey",Gt))})}),Dt&&jsxRuntimeExports.jsxs(Typography$1,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",inferLayerName(Dt)]}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Ut=(jt=_e==null?void 0:_e.source)==null?void 0:jt.trace)==null?void 0:Ut.content})})]})}),service:withProduce(({value:_e,produce:lt,onChange:Rt})=>{const At=controller$1.service,Pt=useSnackbar(),{algorithm:Dt,mapLayerKey:Lt,start:Bt,end:Nt}=(_e==null?void 0:_e.source)??{},[{layers:jt}]=useLayers(),[Ut]=useConnections(),[{algorithms:Gt}]=useFeatures(),qt=reactExports.useMemo(()=>{if(Lt&&Dt)return lodashExports$1.find(jt,{key:Lt})},[Lt,Dt,jt]);return useEffectWhenAsync(async Xt=>{var Kt;if(qt&&Dt){const{format:Zt,content:Qt}=((Kt=qt==null?void 0:qt.source)==null?void 0:Kt.map)??{};if(Zt&&Qt){const Jt=await findConnection(Ut,Dt,Zt),en=lodashExports$1.find(Gt,{id:Dt});if(Jt){Pt(`Executing ${inferLayerName(_e)} using ${Jt.name}...`);const tn=await Jt.transport().call("solve/pathfinding",{format:Zt,instances:[{start:Bt??0,end:Nt??0}],mapURI:`map:${encodeURIComponent(Qt)}`,algorithm:Dt});Xt.aborted?Pt("Canceled"):lt(an=>lodashExports$1.set(an,"source.trace",{name:`${en==null?void 0:en.name}`,content:tn,key:nanoid$1(),id:nanoid$1()}))}}}},[qt,Ut,Dt,Bt,Nt,lt,Pt,_e,Gt],[qt,Ut,Dt,Bt,Nt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(At,{value:_e,onChange:Rt})})}),inferName:_e=>{var lt,Rt;return((Rt=(lt=_e.source)==null?void 0:lt.trace)==null?void 0:Rt.name)??"Untitled Query"},provideSelectionInfo:({children:_e,event:lt,layer:Rt})=>{const At=controller$1.provideSelectionInfo,{layer:Pt,setLayer:Dt,layers:Lt}=useLayer(Rt),Bt=reactExports.useMemo(()=>{const jt=lodashExports$1.filter(Lt,{source:{type:"map"}});return lodashExports$1.filter(lodashExports$1.map(jt,Ut=>{var qt,Xt,Kt,Zt;const{parsedMap:Gt}=(Ut==null?void 0:Ut.source)??{};if(Gt&<){const Qt=(Zt=(Kt=getParser((Xt=(qt=Ut==null?void 0:Ut.source)==null?void 0:qt.map)==null?void 0:Xt.format))==null?void 0:Kt.hydrate)==null?void 0:Zt.call(Kt,Gt);if(Qt){const Jt=(lt==null?void 0:lt.world)&&Qt.snap(lt.world);if(Jt){const en=(lt==null?void 0:lt.world)&&Qt.nodeAt(Jt);return{point:Jt,node:en,key:Ut.key,name:inferLayerName(Ut)}}}}}))},[Lt]),Nt=reactExports.useMemo(()=>!!Pt&&!!Bt.length&&{[Pt.key]:{primary:inferLayerName(Pt),items:{...lodashExports$1.reduce(Bt,(jt,Ut)=>({...jt,[`${Rt}-${Ut==null?void 0:Ut.key}-source`]:{primary:"Set as source",secondary:Ut==null?void 0:Ut.name,action:()=>Dt(produce(Pt,Gt=>{lodashExports$1.set(Gt,"source.start",Ut==null?void 0:Ut.node),lodashExports$1.set(Gt,"source.query",void 0),lodashExports$1.set(Gt,"source.mapLayerKey",Ut==null?void 0:Ut.key),lodashExports$1.set(Gt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(StartIcon,{sx:{transform:"scale(0.5)"}})},[`${Rt}-${Ut==null?void 0:Ut.key}-destination`]:{primary:"Set as destination",secondary:Ut==null?void 0:Ut.name,action:()=>Dt(produce(Pt,Gt=>{lodashExports$1.set(Gt,"source.end",Ut==null?void 0:Ut.node),lodashExports$1.set(Gt,"source.query",void 0),lodashExports$1.set(Gt,"source.mapLayerKey",Ut==null?void 0:Ut.key),lodashExports$1.set(Gt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(DestinationIcon,{})}}),{})}}},[Bt,Pt,Lt,Dt]);return jsxRuntimeExports.jsx(At,{event:lt,layer:Rt,children:jt=>_e==null?void 0:_e(lodashExports$1.merge(jt,Nt))})}};function getLayerHandler(_e){var lt;return layerHandlers[((lt=_e==null?void 0:_e.source)==null?void 0:lt.type)??""]}const layerHandlers={trace:controller$1,map:controller$2,query:controller};function inferLayerName(_e){var lt,Rt;return _e!=null&&_e.name?_e==null?void 0:_e.name:(lt=_e==null?void 0:_e.source)!=null&<.type?layerHandlers[(Rt=_e.source)==null?void 0:Rt.type].inferName(_e):"Untitled Layer"}function _typeof$1(_e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(lt){return typeof lt}:function(lt){return lt&&typeof Symbol=="function"&<.constructor===Symbol&<!==Symbol.prototype?"symbol":typeof lt},_typeof$1(_e)}function toPrimitive(_e,lt){if(_typeof$1(_e)!="object"||!_e)return _e;var Rt=_e[Symbol.toPrimitive];if(Rt!==void 0){var At=Rt.call(_e,lt||"default");if(_typeof$1(At)!="object")return At;throw new TypeError("@@toPrimitive must return a primitive value.")}return(lt==="string"?String:Number)(_e)}function toPropertyKey(_e){var lt=toPrimitive(_e,"string");return _typeof$1(lt)=="symbol"?lt:String(lt)}function _defineProperty$1(_e,lt,Rt){return lt=toPropertyKey(lt),lt in _e?Object.defineProperty(_e,lt,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):_e[lt]=Rt,_e}function ownKeys(_e,lt){var Rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(_e);lt&&(At=At.filter(function(Pt){return Object.getOwnPropertyDescriptor(_e,Pt).enumerable})),Rt.push.apply(Rt,At)}return Rt}function _objectSpread2(_e){for(var lt=1;lt"u"&&(Rt=lt,lt=void 0),typeof Rt<"u"){if(typeof Rt!="function")throw new Error(formatProdErrorMessage(1));return Rt(createStore$1)(_e,lt)}if(typeof _e!="function")throw new Error(formatProdErrorMessage(2));var Pt=_e,Dt=lt,Lt=[],Bt=Lt,Nt=!1;function jt(){Bt===Lt&&(Bt=Lt.slice())}function Ut(){if(Nt)throw new Error(formatProdErrorMessage(3));return Dt}function Gt(Zt){if(typeof Zt!="function")throw new Error(formatProdErrorMessage(4));if(Nt)throw new Error(formatProdErrorMessage(5));var Qt=!0;return jt(),Bt.push(Zt),function(){if(Qt){if(Nt)throw new Error(formatProdErrorMessage(6));Qt=!1,jt();var en=Bt.indexOf(Zt);Bt.splice(en,1),Lt=null}}}function qt(Zt){if(!isPlainObject(Zt))throw new Error(formatProdErrorMessage(7));if(typeof Zt.type>"u")throw new Error(formatProdErrorMessage(8));if(Nt)throw new Error(formatProdErrorMessage(9));try{Nt=!0,Dt=Pt(Dt,Zt)}finally{Nt=!1}for(var Qt=Lt=Bt,Jt=0;Jt=0;At--){var Pt=lt[At](_e);if(Pt)return Pt}return function(Dt,Lt){throw new Error("Invalid value of type "+typeof _e+" for "+Rt+" argument when connecting component "+Lt.wrappedComponentName+".")}}function strictEqual(_e,lt){return _e===lt}function createConnect(_e){var lt=_e===void 0?{}:_e,Rt=lt.connectHOC,At=Rt===void 0?connectAdvanced:Rt,Pt=lt.mapStateToPropsFactories,Dt=Pt===void 0?defaultMapStateToPropsFactories:Pt,Lt=lt.mapDispatchToPropsFactories,Bt=Lt===void 0?defaultMapDispatchToPropsFactories:Lt,Nt=lt.mergePropsFactories,jt=Nt===void 0?defaultMergePropsFactories:Nt,Ut=lt.selectorFactory,Gt=Ut===void 0?finalPropsSelectorFactory:Ut;return function(Xt,Kt,Zt,Qt){Qt===void 0&&(Qt={});var Jt=Qt,en=Jt.pure,tn=en===void 0?!0:en,an=Jt.areStatesEqual,cn=an===void 0?strictEqual:an,un=Jt.areOwnPropsEqual,rn=un===void 0?shallowEqual:un,sn=Jt.areStatePropsEqual,pn=sn===void 0?shallowEqual:sn,bn=Jt.areMergedPropsEqual,gn=bn===void 0?shallowEqual:bn,_n=_objectWithoutPropertiesLoose$3(Jt,_excluded),xn=match(Xt,Dt,"mapStateToProps"),ln=match(Kt,Bt,"mapDispatchToProps"),Mn=match(Zt,jt,"mergeProps");return At(Gt,_extends$2({methodName:"connect",getDisplayName:function(An){return"Connect("+An+")"},shouldHandleStateChanges:!!Xt,initMapStateToProps:xn,initMapDispatchToProps:ln,initMergeProps:Mn,pure:tn,areStatesEqual:cn,areOwnPropsEqual:rn,areStatePropsEqual:pn,areMergedPropsEqual:gn},_n))}}const connect$1=createConnect();setBatch(reactDomExports.unstable_batchedUpdates);function areInputsEqual$1(_e,lt){if(_e.length!==lt.length)return!1;for(var Rt=0;Rt<_e.length;Rt++)if(_e[Rt]!==lt[Rt])return!1;return!0}function useMemoOne(_e,lt){var Rt=reactExports.useState(function(){return{inputs:lt,result:_e()}})[0],At=reactExports.useRef(!0),Pt=reactExports.useRef(Rt),Dt=At.current||!!(lt&&Pt.current.inputs&&areInputsEqual$1(lt,Pt.current.inputs)),Lt=Dt?Pt.current:{inputs:lt,result:_e()};return reactExports.useEffect(function(){At.current=!1,Pt.current=Lt},[Lt]),Lt.result}function useCallbackOne(_e,lt){return useMemoOne(function(){return _e},lt)}var useMemo=useMemoOne,useCallback=useCallbackOne,isProduction=!0,prefix$2="Invariant failed";function invariant$1(_e,lt){if(!_e){if(isProduction)throw new Error(prefix$2);var Rt=typeof lt=="function"?lt():lt,At=Rt?"".concat(prefix$2,": ").concat(Rt):prefix$2;throw new Error(At)}}var getRect=function _e(lt){var Rt=lt.top,At=lt.right,Pt=lt.bottom,Dt=lt.left,Lt=At-Dt,Bt=Pt-Rt,Nt={top:Rt,right:At,bottom:Pt,left:Dt,width:Lt,height:Bt,x:Dt,y:Rt,center:{x:(At+Dt)/2,y:(Pt+Rt)/2}};return Nt},expand=function _e(lt,Rt){return{top:lt.top-Rt.top,left:lt.left-Rt.left,bottom:lt.bottom+Rt.bottom,right:lt.right+Rt.right}},shrink=function _e(lt,Rt){return{top:lt.top+Rt.top,left:lt.left+Rt.left,bottom:lt.bottom-Rt.bottom,right:lt.right-Rt.right}},shift=function _e(lt,Rt){return{top:lt.top+Rt.y,left:lt.left+Rt.x,bottom:lt.bottom+Rt.y,right:lt.right+Rt.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function _e(lt){var Rt=lt.borderBox,At=lt.margin,Pt=At===void 0?noSpacing$1:At,Dt=lt.border,Lt=Dt===void 0?noSpacing$1:Dt,Bt=lt.padding,Nt=Bt===void 0?noSpacing$1:Bt,jt=getRect(expand(Rt,Pt)),Ut=getRect(shrink(Rt,Lt)),Gt=getRect(shrink(Ut,Nt));return{marginBox:jt,borderBox:getRect(Rt),paddingBox:Ut,contentBox:Gt,margin:Pt,border:Lt,padding:Nt}},parse$6=function _e(lt){var Rt=lt.slice(0,-2),At=lt.slice(-2);if(At!=="px")return 0;var Pt=Number(Rt);return isNaN(Pt)&&invariant$1(!1),Pt},getWindowScroll$1=function _e(){return{x:window.pageXOffset,y:window.pageYOffset}},offset=function _e(lt,Rt){var At=lt.borderBox,Pt=lt.border,Dt=lt.margin,Lt=lt.padding,Bt=shift(At,Rt);return createBox({borderBox:Bt,border:Pt,margin:Dt,padding:Lt})},withScroll=function _e(lt,Rt){return Rt===void 0&&(Rt=getWindowScroll$1()),offset(lt,Rt)},calculateBox=function _e(lt,Rt){var At={top:parse$6(Rt.marginTop),right:parse$6(Rt.marginRight),bottom:parse$6(Rt.marginBottom),left:parse$6(Rt.marginLeft)},Pt={top:parse$6(Rt.paddingTop),right:parse$6(Rt.paddingRight),bottom:parse$6(Rt.paddingBottom),left:parse$6(Rt.paddingLeft)},Dt={top:parse$6(Rt.borderTopWidth),right:parse$6(Rt.borderRightWidth),bottom:parse$6(Rt.borderBottomWidth),left:parse$6(Rt.borderLeftWidth)};return createBox({borderBox:lt,margin:At,padding:Pt,border:Dt})},getBox=function _e(lt){var Rt=lt.getBoundingClientRect(),At=window.getComputedStyle(lt);return calculateBox(Rt,At)},safeIsNaN=Number.isNaN||function _e(lt){return typeof lt=="number"&<!==lt};function isEqual$2(_e,lt){return!!(_e===lt||safeIsNaN(_e)&&safeIsNaN(lt))}function areInputsEqual(_e,lt){if(_e.length!==lt.length)return!1;for(var Rt=0;Rt<_e.length;Rt++)if(!isEqual$2(_e[Rt],lt[Rt]))return!1;return!0}function memoizeOne(_e,lt){lt===void 0&&(lt=areInputsEqual);var Rt,At=[],Pt,Dt=!1;function Lt(){for(var Bt=[],Nt=0;Nt");return At.callbacks},At.setCallbacks=function(Bt){At.callbacks=Bt},At}var Rt=lt.prototype;return Rt.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},Rt.componentDidCatch=function(Pt){if(Pt instanceof RbdInvariant){this.setState({});return}throw Pt},Rt.componentWillUnmount=function(){this.unbind()},Rt.render=function(){return this.props.children(this.setCallbacks)},lt}(React.Component),dragHandleUsageInstructions=` +`+Bt+"}":"{ "+Nt.join(", ")+" }":"{"+Nt.join(",")+"}",gap=Bt,Dt}}function beautify(_e,lt,Rt,At){var Pt;if(gap="",indent="",At||(At=0),typeof At!="number")throw new Error("beaufifier: limit must be a number");if(typeof Rt=="number")for(Pt=0;Pt+Pt);return Math.abs(At)>4?jsxRuntimeExports.jsxs("span",{children:[Rt,"x10",jsxRuntimeExports.jsx("sup",{style:supProps,children:At})]}):lodashExports$1.round(_e,2)}else return _e;case"string":return lodashExports$1.startCase(`${_e}`);case"undefined":return"null";default:return lt?jsxRuntimeExports.jsx("code",{children:lodashExports$1.isNull(_e)?"null":lodashExports$1.get(_e,"constructor.name")??typeof _e}):jsxRuntimeExports.jsx("code",{style:{whiteSpace:"pre"},children:lodashExports$1.truncate(beautify$1(_e,void 0,2),{length:100})})}}function Property({label:_e,value:lt,type:Rt,simple:At}){return jsxRuntimeExports.jsxs(Flex,{width:"auto",mr:2,mb:.5,alignItems:"baseline",children:[jsxRuntimeExports.jsx(Typography$1,{component:"div",variant:"body2",...Rt,sx:{opacity:.54,...Rt==null?void 0:Rt.sx},children:_e}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(Typography$1,{component:"div",variant:"body2",...Rt,children:renderProperty(lt,At)??"none"})]},`${_e}::${renderProperty(lt)}`)}const OMIT_PROPS=["type","id"],ESSENTIAL_PROPS=["f","g","pId"],ALL_PROPS=[...OMIT_PROPS,...ESSENTIAL_PROPS],sortEventKeys=_e=>lodashExports$1.chain(_e).entries().filter(([,lt])=>!lodashExports$1.isUndefined(lt)).sortBy(([lt])=>lodashExports$1.indexOf(ALL_PROPS,lt)+1||Number.MAX_SAFE_INTEGER).value();function PropertyDialog({event:_e,max:lt=10,simple:Rt,variant:At,...Pt}){const Dt=sortEventKeys(_e);return jsxRuntimeExports.jsx(ManagedModal,{...lodashExports$1.merge({appBar:{children:jsxRuntimeExports.jsx(AppBarTitle,{children:"Event Properties"})},trigger:Lt=>jsxRuntimeExports.jsxs(Button$2,{variant:"text",sx:{mx:-1,minWidth:0,width:"fit-content",color:Bt=>Bt.palette.text.secondary,justifyContent:"left"},onClick:Bt=>{Bt.stopPropagation(),Bt.preventDefault(),Lt(Bt)},children:[Dt.length-lt," more"]})},Pt),children:[{name:"common",props:lodashExports$1.filter(Dt,([Lt])=>OMIT_PROPS.includes(Lt))},{name:"search",props:lodashExports$1.filter(Dt,([Lt])=>ESSENTIAL_PROPS.includes(Lt))},{name:"other",props:lodashExports$1.filter(Dt,([Lt])=>!ALL_PROPS.includes(Lt))}].map(({name:Lt,props:Bt},Nt)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!!Nt&&jsxRuntimeExports.jsx(Divider$1,{sx:{mb:1}}),jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",component:"div",sx:{px:3},children:lodashExports$1.startCase(Lt)}),jsxRuntimeExports.jsx(Box$1,{sx:{p:1,pt:0,display:"grid",gridAutoFlow:"row",gridTemplateColumns:"repeat(2, 1fr)"},children:lodashExports$1.map(Bt,([jt,Ut])=>jsxRuntimeExports.jsx(ListItem$1,{sx:{py:.5},children:jsxRuntimeExports.jsx(ListItemText$1,{secondary:jt,primary:renderProperty(Ut)})},`${jt}::${Ut}`))},Lt)]}))})}function PropertyList(_e){const{event:lt,variant:Rt="body2",max:At=10,simple:Pt,...Dt}=_e,Lt=sortEventKeys(lt);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Flex,{...Dt,children:[lodashExports$1.map(lodashExports$1.slice(Lt,0,At),([Bt,Nt],jt)=>jsxRuntimeExports.jsx(Property,{label:Bt,value:Nt,type:{variant:Rt},simple:Pt},jt)),Lt.length>At&&!Pt&&jsxRuntimeExports.jsx(PropertyDialog,{..._e})]})})}function TracePreview({trace:_e,language:lt="json"}){return jsxRuntimeExports.jsx(Box$1,{sx:{width:"100%",height:"100%"},children:jsxRuntimeExports.jsx(ScriptViewer,{options:{readOnly:!0},language:lt,value:_e?beautify$1({..._e,events:lodashExports$1.take(_e.events,10)},null,2,1):"No data"})})}var dist$4={exports:{}};(function(_e,lt){(function(Rt,At){_e.exports=At()})(commonjsGlobal,function(){return function(Rt){function At(Dt){if(Pt[Dt])return Pt[Dt].exports;var Lt=Pt[Dt]={i:Dt,l:!1,exports:{}};return Rt[Dt].call(Lt.exports,Lt,Lt.exports,At),Lt.l=!0,Lt.exports}var Pt={};return At.m=Rt,At.c=Pt,At.d=function(Dt,Lt,Bt){At.o(Dt,Lt)||Object.defineProperty(Dt,Lt,{configurable:!1,enumerable:!0,get:Bt})},At.n=function(Dt){var Lt=Dt&&Dt.__esModule?function(){return Dt.default}:function(){return Dt};return At.d(Lt,"a",Lt),Lt},At.o=function(Dt,Lt){return Object.prototype.hasOwnProperty.call(Dt,Lt)},At.p="",At(At.s=1)}([function(Rt,At,Pt){function Dt(Bt){var Nt=Bt===void 0?{}:Bt,jt=Nt.ESCAPE,Ut=jt===void 0?/^\\/:jt,Gt=Nt.VARIABLE_START,qt=Gt===void 0?/^\${\s*/:Gt,Xt=Nt.VARIABLE_END,Kt=Xt===void 0?/^\s*}/:Xt,Zt=Nt.PIPE_START,Qt=Zt===void 0?/^\s*\|\s*/:Zt,Jt=Nt.PIPE_PARAMETER_START,en=Jt===void 0?/^\s*:\s*/:Jt,tn=Nt.QUOTED_STRING,an=tn===void 0?At.DEFAULT_QUOTED_STRING_REGEX:tn,cn=Nt.QUOTED_STRING_TEST,un=cn===void 0?null:cn,rn=Nt.QUOTED_STRING_GET_AND_ADVANCE,sn=rn===void 0?null:rn,pn=Nt.QUOTED_STRING_IN_PARAMETER_TEST,bn=pn===void 0?null:pn,gn=Nt.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,_n=gn===void 0?null:gn,xn=un||function(An){return an.test(An)},ln=sn||Lt(an),Mn=bn||function(An){return an.test(An)},Tn=_n||Lt(an);return function(An){function Cn(vr){vr===void 0&&(vr=1),dn=dn.substr(vr)}function wn(vr){vr===void 0&&(vr=/^/),Cn(dn.match(vr)[0].length)}function Fn(){var vr;return wn(Ut),vr=dn.length>0?dn[0]:"",Cn(),vr}function $n(vr){var br=(vr===void 0?{}:vr).isNull,Er=br!==void 0&&br;Gn={name:"",pipes:[]},er=!Er}function Pn(){hn.variables.push(Gn),$n({isNull:!0})}function Vn(vr){var br=(vr===void 0?{}:vr).isNull,Er=br!==void 0&&br;Sn={name:"",parameters:[]},Yn=!Er}function Zn(){Gn.pipes.push(Sn),Vn({isNull:!0})}function tr(vr){var br=(vr===void 0?{}:vr).isNull,Er=br!==void 0&&br;Kn="",dr=!Er}function vn(){Sn.parameters.push(Kn),tr({isNull:!0})}function En(){return!!Kt.test(dn)&&(wn(Kt),yn>=3&&vn(),yn>=2&&Zn(),yn>=1&&Pn(),yn=0,!0)}function kn(){return!!Qt.test(dn)&&(wn(Qt),yn>=3&&vn(),yn>=2&&Zn(),yn>=1&&Vn(),yn=2,!0)}function zn(){return!!en.test(dn)&&(wn(en),yn>=3&&vn(),yn>=2&&tr(),yn=3,!0)}for(var dn=An,hn={literals:[],variables:[]},yn=0,Bn="",Gn={name:"",pipes:[]},Sn={name:"",parameters:[]},Kn="",er=!1,Yn=!1,dr=!1;dn&&dn.length>0;)switch(yn){case 0:if(Ut.test(dn)){Bn+=Fn();continue}if(qt.test(dn)){yn=1,$n(),hn.literals.push(Bn),Bn="",wn(qt);continue}Bn+=dn[0],Cn();break;case 1:if(Ut.test(dn)){Gn.name+=Fn();continue}if(En()||kn())continue;if(xn(dn)){Gn.name+=ln(dn,Cn);continue}Gn.name+=dn[0],Cn();break;case 2:if(Ut.test(dn)){Sn.name+=Fn();continue}if(En()||zn()||kn())continue;if(xn(dn)){Sn.name+=ln(dn,Cn);continue}Sn.name+=dn[0],Cn();break;case 3:if(Ut.test(dn)){Kn+=Fn();continue}if(En()||zn()||kn())continue;if(Mn(dn)){Kn+=Tn(dn,Cn);continue}Kn+=dn[0],Cn()}return dr&&Sn.parameters.push(Kn),Yn&&Gn.pipes.push(Sn),er&&hn.variables.push(Gn),hn.literals.push(Bn),hn}}function Lt(Bt){return function(Nt,jt){var Ut=Nt.match(Bt);return jt(Ut[0].length),Ut.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(At,"__esModule",{value:!0}),At.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,At.parseStringTemplateGenerator=Dt,At.parseStringTemplate=Dt(),At.getQuotedStringAndAdvanceForRegex=Lt},function(Rt,At,Pt){Rt.exports=Pt(2)},function(Rt,At,Pt){function Dt(Lt){for(var Bt in Lt)At.hasOwnProperty(Bt)||(At[Bt]=Lt[Bt])}Object.defineProperty(At,"__esModule",{value:!0}),Dt(Pt(0)),Dt(Pt(3))},function(Rt,At,Pt){function Dt(Ut){return function(Gt){return Ut.hasOwnProperty(Gt)?Ut[Gt]:Gt.split(".").reduce(function(qt,Xt){return qt.hasOwnProperty(Xt)?qt[Xt]:""},Ut)}}function Lt(Ut,Gt,qt,Xt){Xt===void 0&&(Xt=Dt(Gt));var Kt=Xt(Ut.name);return Ut.pipes.reduce(function(Zt,Qt){return qt.hasOwnProperty(Qt.name)?qt[Qt.name](Zt,Qt.parameters):Zt},Kt??"")}function Bt(Ut,Gt,qt,Xt){return Xt===void 0&&(Xt=Dt(Gt)),Ut.literals.length===0?"":Ut.literals.slice(1).reduce(function(Kt,Zt,Qt){return""+Kt+Lt(Ut.variables[Qt],Gt,qt,Xt)+Zt},Ut.literals[0])}function Nt(Ut,Gt,qt){return Bt(jt.parseStringTemplate(Ut),Gt,qt)}Object.defineProperty(At,"__esModule",{value:!0});var jt=Pt(0);At.evaluateParsedString=Bt,At.evaluateStringTemplate=Nt}])})})(dist$4);var distExports=dist$4.exports;function mapProperties(_e={},lt){const Rt={};for(const At of Object.keys(_e))Rt[At]=At==="$"?_e[At]:lt(_e[At],At,_e);return Object.setPrototypeOf(Rt,_e)}function parseProperty(_e){switch(_e==null?void 0:_e.constructor){case Array:{const lt=lodashExports$1.map(_e,parseProperty);return Rt=>lodashExports$1.map(lt,At=>At(Rt))}case Object:{const lt=lodashExports$1.mapValues(_e,parseProperty);return Rt=>lodashExports$1.mapValues(lt,At=>At(Rt))}case String:return parseString(_e);default:return()=>_e}}function normalize(_e={}){return mapProperties(_e,lt=>lodashExports$1.isFunction(lt)?lt:parseProperty(lt))}const parseToken=_e=>{const lt=Function("$",`return ${_e};`);return Rt=>lt(new Proxy(normalize(Rt),{get(At,Pt){return typeof(At==null?void 0:At[Pt])=="function"?At[Pt]({}):At==null?void 0:At[Pt]}}))},openBrace=/^\{\{\s*/,closeBrace=/^\s*\}\}/,neverMatch=/\b\B/,parser$1=distExports.parseStringTemplateGenerator({VARIABLE_START:openBrace,VARIABLE_END:closeBrace,PIPE_START:neverMatch,PIPE_PARAMETER_START:neverMatch,QUOTED_STRING:neverMatch}),parseString=memo(_e=>{const lt=parser$1(_e);return lodashExports$1.join(lt.literals,"")?Rt=>distExports.evaluateParsedString(lt,{},{},At=>parseToken(At)(Rt)):parseToken(lt.variables[0].name)},{primitive:!0});function commonjsRequire(_e){throw new Error('Could not dynamically require "'+_e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pluralize$1={exports:{}};(function(_e,lt){(function(Rt,At){typeof commonjsRequire=="function"?_e.exports=At():Rt.pluralize=At()})(commonjsGlobal,function(){var Rt=[],At=[],Pt={},Dt={},Lt={};function Bt(Zt){return typeof Zt=="string"?new RegExp("^"+Zt+"$","i"):Zt}function Nt(Zt,Qt){return Zt===Qt?Qt:Zt===Zt.toLowerCase()?Qt.toLowerCase():Zt===Zt.toUpperCase()?Qt.toUpperCase():Zt[0]===Zt[0].toUpperCase()?Qt.charAt(0).toUpperCase()+Qt.substr(1).toLowerCase():Qt.toLowerCase()}function jt(Zt,Qt){return Zt.replace(/\$(\d{1,2})/g,function(Jt,en){return Qt[en]||""})}function Ut(Zt,Qt){return Zt.replace(Qt[0],function(Jt,en){var tn=jt(Qt[1],arguments);return Nt(Jt===""?Zt[en-1]:Jt,tn)})}function Gt(Zt,Qt,Jt){if(!Zt.length||Pt.hasOwnProperty(Zt))return Qt;for(var en=Jt.length;en--;){var tn=Jt[en];if(tn[0].test(Qt))return Ut(Qt,tn)}return Qt}function qt(Zt,Qt,Jt){return function(en){var tn=en.toLowerCase();return Qt.hasOwnProperty(tn)?Nt(en,tn):Zt.hasOwnProperty(tn)?Nt(en,Zt[tn]):Gt(tn,en,Jt)}}function Xt(Zt,Qt,Jt,en){return function(tn){var an=tn.toLowerCase();return Qt.hasOwnProperty(an)?!0:Zt.hasOwnProperty(an)?!1:Gt(an,an,Jt)===an}}function Kt(Zt,Qt,Jt){var en=Qt===1?Kt.singular(Zt):Kt.plural(Zt);return(Jt?Qt+" ":"")+en}return Kt.plural=qt(Lt,Dt,Rt),Kt.isPlural=Xt(Lt,Dt,Rt),Kt.singular=qt(Dt,Lt,At),Kt.isSingular=Xt(Dt,Lt,At),Kt.addPluralRule=function(Zt,Qt){Rt.push([Bt(Zt),Qt])},Kt.addSingularRule=function(Zt,Qt){At.push([Bt(Zt),Qt])},Kt.addUncountableRule=function(Zt){if(typeof Zt=="string"){Pt[Zt.toLowerCase()]=!0;return}Kt.addPluralRule(Zt,"$0"),Kt.addSingularRule(Zt,"$0")},Kt.addIrregularRule=function(Zt,Qt){Qt=Qt.toLowerCase(),Zt=Zt.toLowerCase(),Lt[Zt]=Qt,Dt[Qt]=Zt},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(Zt){return Kt.addIrregularRule(Zt[0],Zt[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(Zt){return Kt.addPluralRule(Zt[0],Zt[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(Zt){return Kt.addSingularRule(Zt[0],Zt[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(Kt.addUncountableRule),Kt})})(pluralize$1);var pluralizeExports=pluralize$1.exports;const pluralize=getDefaultExportFromCjs(pluralizeExports),parseTraceWorkerUrl=""+new URL("parseTrace.worker-413a1f44.js",import.meta.url).href;class ParseTraceWorker extends Worker{constructor(){super(parseTraceWorkerUrl,{type:"module"})}}const parseTraceAsync=usingMemoizedWorkerTask(ParseTraceWorker);function useTraceParser(_e){const lt=useSnackbar(),Rt=useLoadingState("specimen");return reactExports.useCallback(()=>Rt(async()=>{var At;if(_e!=null&&_e.trace){lt("Processing trace...");try{const Pt=await parseTraceAsync(_e);return lt("Trace loaded",pluralize("step",((At=Pt==null?void 0:Pt.stepsPersistent)==null?void 0:At.length)??0,!0)),{components:Pt,content:_e.trace}}catch(Pt){return console.error(Pt),lt("Error parsing",lodashExports$1.get(Pt,"message")),{error:lodashExports$1.get(Pt,"message")}}}}),[_e])}function useTraceContent(_e){const lt=useSnackbar(),Rt=useLoadingState("specimen"),At=useConnectionResolver(),[{traces:Pt}]=useFeatures(),Dt=reactExports.useMemo(()=>memo(async({source:Ut,id:Gt})=>{if(Ut&&Gt){const qt=At({url:Ut});if(qt){lt("Fetching trace...");const Xt=await qt.transport().call("features/trace",{id:Gt});return Xt==null?void 0:Xt.content}}},{normalizer:JSON.stringify}),[At,lt]),{content:Lt,source:Bt,id:Nt}=_e??{},{lastModified:jt}=lodashExports$1.find(Pt,{id:Nt,source:Bt})??{};return useAsync(()=>Rt(async()=>{if(Nt)return{..._e,content:Lt||await Dt({source:Bt,id:Nt,lastModified:jt})}}),[Dt,Lt,Bt,Nt,jt])}const isNullish=_e=>_e==null;function makePathIndex(_e){const lt=[],Rt={},At={},Pt=lodashExports$1.chain(_e==null?void 0:_e.events).map((Bt,Nt)=>({step:Nt,id:Bt.id,pId:Bt.pId})).groupBy("id").value();lodashExports$1.forEach(_e==null?void 0:_e.events,({id:Bt,pId:Nt},jt)=>{!isNullish(Nt)&&Rt[Bt]!==Nt&&(lt.push({id:Bt,pId:Nt,step:jt,prev:lodashExports$1.last(lt)}),Rt[Bt]=Nt),At[jt]=lodashExports$1.last(lt)});const Dt=(Bt,Nt=(jt=>(jt=_e==null?void 0:_e.events)==null?void 0:jt.length)()??0)=>{let Ut=At[Nt];for(;Ut;){if(Ut.id===Bt)return Ut.pId;Ut=Ut.prev}};return{getParent:Dt,getPath:Bt=>{const Nt=[Bt];let jt={...(_e.events??[])[Bt],step:Bt};for(;jt;){const Ut=Dt(jt.id,jt.step);if(Ut){const Gt=lodashExports$1.findLast(Pt[Ut],qt=>qt.step<=jt.step);if(Gt)Nt.push(Gt.step),jt=Gt;else break}else break}return Nt}}}const controller$1={key:"trace",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),inferName:_e=>{var lt,Rt;return((Rt=(lt=_e.source)==null?void 0:lt.trace)==null?void 0:Rt.name)??"Untitled Trace"},error:_e=>{var lt,Rt,At,Pt;return((Rt=(lt=_e==null?void 0:_e.source)==null?void 0:lt.trace)==null?void 0:Rt.error)||((Pt=(At=_e==null?void 0:_e.source)==null?void 0:At.parsedTrace)==null?void 0:Pt.error)},claimImportedFile:async _e=>isTraceFormat(_e)?{claimed:!0,layer:async lt=>{lt("Opening trace...");try{return{trace:{...await readUploadedTrace(_e).read()}}}catch(Rt){return console.error(Rt),lt(`Error opening, ${lodashExports$1.get(Rt,"message")}`),{trace:{key:nanoid$1(),id:custom$1().id,error:lodashExports$1.get(Rt,"message"),name:lodashExports$1.startCase(name$1(_e.name))}}}}}:{claimed:!1},editor:withProduce(({value:_e,produce:lt})=>{var Rt,At,Pt,Dt,Lt,Bt,Nt,jt,Ut,Gt,qt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Trace",content:jsxRuntimeExports.jsx(TracePicker,{onChange:Xt=>lt(Kt=>lodashExports$1.set(Kt,"source.trace",Xt)),value:(Rt=_e==null?void 0:_e.source)==null?void 0:Rt.trace})}),((Pt=(At=_e==null?void 0:_e.source)==null?void 0:At.trace)==null?void 0:Pt.error)&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:Xt=>Xt.palette.error.main,sx:{whiteSpace:"pre-line",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Lt=(Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace)==null?void 0:Lt.error})}),((Nt=(Bt=_e==null?void 0:_e.source)==null?void 0:Bt.parsedTrace)==null?void 0:Nt.error)&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:Xt=>Xt.palette.error.main,sx:{whiteSpace:"pre-line",mb:1,mt:1},children:jsxRuntimeExports.jsx("code",{children:(Ut=(jt=_e==null?void 0:_e.source)==null?void 0:jt.parsedTrace)==null?void 0:Ut.error})}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(qt=(Gt=_e==null?void 0:_e.source)==null?void 0:Gt.parsedTrace)==null?void 0:qt.content})})]})}),service:withProduce(({value:_e,produce:lt})=>{var Dt,Lt,Bt;const{palette:Rt}=useTheme(),{result:At}=useTraceContent((Dt=_e==null?void 0:_e.source)==null?void 0:Dt.trace),Pt=useTraceParser({trace:At==null?void 0:At.content,context:{color:colorsHex,themeAccent:Rt.primary.main,themeTextPrimary:Rt.text.primary,themeBackground:Rt.background.paper},view:"main"});return reactExports.useEffect(()=>{lt(Nt=>{var jt,Ut;return lodashExports$1.set(Nt,"source.playbackTo",((Ut=(jt=At==null?void 0:At.content)==null?void 0:jt.events)==null?void 0:Ut.length)??0)})},[(Bt=(Lt=At==null?void 0:At.content)==null?void 0:Lt.events)==null?void 0:Bt.length]),useEffectWhen(async()=>{const Nt=await Pt();lt(jt=>{lodashExports$1.set(jt,"source.parsedTrace",Nt),lodashExports$1.set(jt,"viewKey",nanoid$1())})},[Pt],[At==null?void 0:At.key]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(PlaybackService,{value:_e})})}),renderer:({layer:_e,index:lt})=>{var Nt,jt,Ut;const Rt=(jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)==null?void 0:jt.components,At=useThrottle$1(((Ut=_e==null?void 0:_e.source)==null?void 0:Ut.step)??0,1e3/60),Pt=use2DPath(_e,lt,At),Dt=reactExports.useMemo(()=>lodashExports$1.map(Rt==null?void 0:Rt.stepsPersistent,Gt=>lodashExports$1.map(Gt,qt=>lodashExports$1.merge(qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:lt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Rt==null?void 0:Rt.stepsPersistent,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,lt]),Lt=reactExports.useMemo(()=>lodashExports$1.map(Rt==null?void 0:Rt.stepsTransient,Gt=>lodashExports$1.map(Gt,qt=>lodashExports$1.merge(qt,{meta:{sourceLayer:_e==null?void 0:_e.key,sourceLayerIndex:lt,sourceLayerAlpha:1-.01*+((_e==null?void 0:_e.transparency)??0),sourceLayerDisplayMode:(_e==null?void 0:_e.displayMode)??"source-over"}}))),[Rt==null?void 0:Rt.stepsTransient,_e==null?void 0:_e.key,_e==null?void 0:_e.transparency,_e==null?void 0:_e.displayMode,lt]),Bt=reactExports.useMemo(()=>[Lt[At]??[]],[Lt,At]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyNodeList,{step:At,nodes:Dt}),jsxRuntimeExports.jsx(NodeList,{nodes:Bt}),Pt]})},steps:_e=>{var lt,Rt,At;return((At=(Rt=(lt=_e==null?void 0:_e.source)==null?void 0:lt.parsedTrace)==null?void 0:Rt.content)==null?void 0:At.events)??[]},provideSelectionInfo:({layer:_e,event:lt,children:Rt})=>{const{layer:At,setLayer:Pt}=useLayer(_e),Dt=reactExports.useMemo(()=>{var jt,Ut,Gt,qt,Xt;const Lt=((Gt=(Ut=(jt=At==null?void 0:At.source)==null?void 0:jt.parsedTrace)==null?void 0:Ut.content)==null?void 0:Gt.events)??[],Bt=lodashExports$1.chain((qt=lt==null?void 0:lt.info)==null?void 0:qt.components).filter(Kt=>{var Zt;return((Zt=Kt.meta)==null?void 0:Zt.sourceLayer)===(At==null?void 0:At.key)}).map(Kt=>{var Zt;return(Zt=Kt.meta)==null?void 0:Zt.step}).filter(lodashExports$1.negate(lodashExports$1.isUndefined)).sort((Kt,Zt)=>Kt-Zt).value(),Nt=lodashExports$1.chain((Xt=lt==null?void 0:lt.info)==null?void 0:Xt.components).filter(Kt=>{var Zt;return((Zt=Kt.meta)==null?void 0:Zt.sourceLayer)===(At==null?void 0:At.key)}).filter(Kt=>{var Zt;return(Zt=Kt.meta)==null?void 0:Zt.info}).value();if(Bt.length&&At){const Kt=lodashExports$1.last(Bt),Zt=Lt[Kt];if(Zt)return{...lodashExports$1.keyBy(lodashExports$1.map(Nt,(Qt,Jt)=>({key:`${At.key}.${Jt}`,primary:`Selection in ${inferLayerName(At)}`,items:{info:{index:-1,primary:jsxRuntimeExports.jsx(PropertyList,{event:Qt.meta.info,vertical:!0})}}})),"key"),[At.key]:{primary:inferLayerName(At),items:{properties:{index:-2,primary:jsxRuntimeExports.jsx(PropertyList,{event:Zt,vertical:!0})},[`${Zt}`]:{primary:`Go to Step ${Kt}`,secondary:`${lodashExports$1.startCase(Zt.type)}`,action:()=>Pt(produce(At,Qt=>{lodashExports$1.set(Qt,"source.step",Kt)})),icon:jsxRuntimeExports.jsx(ArrowOutwardRounded,{})}}}}}return{}},[At,lt]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Rt==null?void 0:Rt(Dt)})}};function use2DPath(_e,lt=0,Rt=0){var Lt,Bt;const{palette:At}=useTheme(),{getPath:Pt}=reactExports.useMemo(()=>{var Nt,jt;return(jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)!=null&&jt.content?makePathIndex(_e.source.parsedTrace.content):{getParent:lodashExports$1.constant(void 0),getPath:lodashExports$1.constant([])}},[(Bt=(Lt=_e==null?void 0:_e.source)==null?void 0:Lt.parsedTrace)==null?void 0:Bt.content]);return reactExports.useMemo(()=>{var Nt,jt,Ut,Gt;if((Gt=(Ut=(jt=(Nt=_e==null?void 0:_e.source)==null?void 0:Nt.parsedTrace)==null?void 0:jt.content)==null?void 0:Ut.render)!=null&&Gt.path){const{pivot:qt={},scale:Xt=1}=_e.source.parsedTrace.content.render.path,{x:Kt,y:Zt}=qt,Qt=Kt?parseString(Kt):tn=>tn.event.x,Jt=Zt?parseString(Zt):tn=>tn.event.y,en=lodashExports$1.map(Pt(Rt),tn=>{var an,cn,un,rn;return(rn=(un=(cn=(an=_e==null?void 0:_e.source)==null?void 0:an.parsedTrace)==null?void 0:cn.content)==null?void 0:un.events)==null?void 0:rn[tn]});if(en.length){const tn=[{$:"rect",x:Qt({event:{x:0,y:0,...lodashExports$1.head(en)}})-2*Xt/2,y:Jt({event:{x:0,y:0,...lodashExports$1.head(en)}})-2*Xt/2,fill:getColorHex("destination"),width:2*Xt,height:2*Xt},{$:"rect",x:Qt({event:{x:0,y:0,...lodashExports$1.last(en)}})-2*Xt/2,y:Jt({event:{x:0,y:0,...lodashExports$1.last(en)}})-2*Xt/2,fill:getColorHex("source"),width:2*Xt,height:2*Xt},{$:"path",points:en.map(an=>({x:Qt({event:{x:0,y:0,...an}}),y:Jt({event:{x:0,y:0,...an}})})),fill:At.primary.main,alpha:1,lineWidth:1*Xt}];return jsxRuntimeExports.jsx(NodeList,{nodes:[lodashExports$1.map(tn,an=>({component:an,meta:{source:"path",sourceLayerIndex:-99999+lt}}))]})}}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},[_e,lt,Rt,At,Pt])}async function findConnection(_e,lt,Rt){for(const At of _e){const Pt=await At.transport().call("features/algorithms"),Dt=await At.transport().call("features/formats");if(lodashExports$1.find(Pt,{id:lt})&&lodashExports$1.find(Dt,{id:Rt}))return At}}const controller={...lodashExports$1.omit(controller$1,"claimImportedFile"),key:"query",icon:jsxRuntimeExports.jsx(RouteTwoTone,{}),editor:withProduce(({value:_e,produce:lt})=>{var jt,Ut;const{algorithm:Rt}=(_e==null?void 0:_e.source)??{},{layers:At,allLayers:Pt,layer:Dt,key:Lt}=useLayer(void 0,Gt=>{var qt;return((qt=Gt.source)==null?void 0:qt.type)==="map"}),[{algorithms:Bt}]=useFeatures(),[Nt]=useConnections();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Option,{label:"Algorithm",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(CodeOutlined,{}),label:"Algorithm",value:Rt,items:Bt.map(Gt=>{var qt;return{...Gt,description:(qt=lodashExports$1.find(Nt,{url:Gt.source}))==null?void 0:qt.name}}),onChange:async Gt=>lt(qt=>lodashExports$1.set(qt,"source.algorithm",Gt))})}),!(Bt!=null&&Bt.length)&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),jsxRuntimeExports.jsx(Option,{label:"Map",content:jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,paper:!0,icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Lt,items:Pt.map(Gt=>({id:Gt.key,hidden:!lodashExports$1.find(At,qt=>qt.key===Gt.key),name:inferLayerName(Gt)})),onChange:async Gt=>lt(qt=>lodashExports$1.set(qt,"source.mapLayerKey",Gt))})}),Dt&&jsxRuntimeExports.jsxs(Typography$1,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",inferLayerName(Dt)]}),jsxRuntimeExports.jsx(Heading,{label:"Preview"}),jsxRuntimeExports.jsx(Box$1,{sx:{height:240,mx:-2},children:jsxRuntimeExports.jsx(TracePreview,{trace:(Ut=(jt=_e==null?void 0:_e.source)==null?void 0:jt.trace)==null?void 0:Ut.content})})]})}),service:withProduce(({value:_e,produce:lt,onChange:Rt})=>{const At=controller$1.service,Pt=useSnackbar(),{algorithm:Dt,mapLayerKey:Lt,start:Bt,end:Nt}=(_e==null?void 0:_e.source)??{},[{layers:jt}]=useLayers(),[Ut]=useConnections(),[{algorithms:Gt}]=useFeatures(),qt=reactExports.useMemo(()=>{if(Lt&&Dt)return lodashExports$1.find(jt,{key:Lt})},[Lt,Dt,jt]);return useEffectWhenAsync(async Xt=>{var Kt;if(qt&&Dt){const{format:Zt,content:Qt}=((Kt=qt==null?void 0:qt.source)==null?void 0:Kt.map)??{};if(Zt&&Qt){const Jt=await findConnection(Ut,Dt,Zt),en=lodashExports$1.find(Gt,{id:Dt});if(Jt){Pt(`Executing ${inferLayerName(_e)} using ${Jt.name}...`);const tn=await Jt.transport().call("solve/pathfinding",{format:Zt,instances:[{start:Bt??0,end:Nt??0}],mapURI:`map:${encodeURIComponent(Qt)}`,algorithm:Dt});Xt.aborted?Pt("Canceled"):lt(an=>lodashExports$1.set(an,"source.trace",{name:`${en==null?void 0:en.name}`,content:tn,key:nanoid$1(),id:nanoid$1()}))}}}},[qt,Ut,Dt,Bt,Nt,lt,Pt,_e,Gt],[qt,Ut,Dt,Bt,Nt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(At,{value:_e,onChange:Rt})})}),inferName:_e=>{var lt,Rt;return((Rt=(lt=_e.source)==null?void 0:lt.trace)==null?void 0:Rt.name)??"Untitled Query"},provideSelectionInfo:({children:_e,event:lt,layer:Rt})=>{const At=controller$1.provideSelectionInfo,{layer:Pt,setLayer:Dt,layers:Lt}=useLayer(Rt),Bt=reactExports.useMemo(()=>{const jt=lodashExports$1.filter(Lt,{source:{type:"map"}});return lodashExports$1.filter(lodashExports$1.map(jt,Ut=>{var qt,Xt,Kt,Zt;const{parsedMap:Gt}=(Ut==null?void 0:Ut.source)??{};if(Gt&<){const Qt=(Zt=(Kt=getParser((Xt=(qt=Ut==null?void 0:Ut.source)==null?void 0:qt.map)==null?void 0:Xt.format))==null?void 0:Kt.hydrate)==null?void 0:Zt.call(Kt,Gt);if(Qt){const Jt=(lt==null?void 0:lt.world)&&Qt.snap(lt.world);if(Jt){const en=(lt==null?void 0:lt.world)&&Qt.nodeAt(Jt);return{point:Jt,node:en,key:Ut.key,name:inferLayerName(Ut)}}}}}))},[Lt]),Nt=reactExports.useMemo(()=>!!Pt&&!!Bt.length&&{[Pt.key]:{primary:inferLayerName(Pt),items:{...lodashExports$1.reduce(Bt,(jt,Ut)=>({...jt,[`${Rt}-${Ut==null?void 0:Ut.key}-source`]:{primary:"Set as source",secondary:Ut==null?void 0:Ut.name,action:()=>Dt(produce(Pt,Gt=>{lodashExports$1.set(Gt,"source.start",Ut==null?void 0:Ut.node),lodashExports$1.set(Gt,"source.query",void 0),lodashExports$1.set(Gt,"source.mapLayerKey",Ut==null?void 0:Ut.key),lodashExports$1.set(Gt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(StartIcon,{sx:{transform:"scale(0.5)"}})},[`${Rt}-${Ut==null?void 0:Ut.key}-destination`]:{primary:"Set as destination",secondary:Ut==null?void 0:Ut.name,action:()=>Dt(produce(Pt,Gt=>{lodashExports$1.set(Gt,"source.end",Ut==null?void 0:Ut.node),lodashExports$1.set(Gt,"source.query",void 0),lodashExports$1.set(Gt,"source.mapLayerKey",Ut==null?void 0:Ut.key),lodashExports$1.set(Gt,"source.trace",void 0)})),icon:jsxRuntimeExports.jsx(DestinationIcon,{})}}),{})}}},[Bt,Pt,Lt,Dt]);return jsxRuntimeExports.jsx(At,{event:lt,layer:Rt,children:jt=>_e==null?void 0:_e(lodashExports$1.merge(jt,Nt))})}};function getLayerHandler(_e){var lt;return layerHandlers[((lt=_e==null?void 0:_e.source)==null?void 0:lt.type)??""]}const layerHandlers={trace:controller$1,map:controller$2,query:controller};function inferLayerName(_e){var lt,Rt;return _e!=null&&_e.name?_e==null?void 0:_e.name:(lt=_e==null?void 0:_e.source)!=null&<.type?layerHandlers[(Rt=_e.source)==null?void 0:Rt.type].inferName(_e):"Untitled Layer"}function _typeof$1(_e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(lt){return typeof lt}:function(lt){return lt&&typeof Symbol=="function"&<.constructor===Symbol&<!==Symbol.prototype?"symbol":typeof lt},_typeof$1(_e)}function toPrimitive(_e,lt){if(_typeof$1(_e)!="object"||!_e)return _e;var Rt=_e[Symbol.toPrimitive];if(Rt!==void 0){var At=Rt.call(_e,lt||"default");if(_typeof$1(At)!="object")return At;throw new TypeError("@@toPrimitive must return a primitive value.")}return(lt==="string"?String:Number)(_e)}function toPropertyKey(_e){var lt=toPrimitive(_e,"string");return _typeof$1(lt)=="symbol"?lt:String(lt)}function _defineProperty$1(_e,lt,Rt){return lt=toPropertyKey(lt),lt in _e?Object.defineProperty(_e,lt,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):_e[lt]=Rt,_e}function ownKeys(_e,lt){var Rt=Object.keys(_e);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(_e);lt&&(At=At.filter(function(Pt){return Object.getOwnPropertyDescriptor(_e,Pt).enumerable})),Rt.push.apply(Rt,At)}return Rt}function _objectSpread2(_e){for(var lt=1;lt"u"&&(Rt=lt,lt=void 0),typeof Rt<"u"){if(typeof Rt!="function")throw new Error(formatProdErrorMessage(1));return Rt(createStore$1)(_e,lt)}if(typeof _e!="function")throw new Error(formatProdErrorMessage(2));var Pt=_e,Dt=lt,Lt=[],Bt=Lt,Nt=!1;function jt(){Bt===Lt&&(Bt=Lt.slice())}function Ut(){if(Nt)throw new Error(formatProdErrorMessage(3));return Dt}function Gt(Zt){if(typeof Zt!="function")throw new Error(formatProdErrorMessage(4));if(Nt)throw new Error(formatProdErrorMessage(5));var Qt=!0;return jt(),Bt.push(Zt),function(){if(Qt){if(Nt)throw new Error(formatProdErrorMessage(6));Qt=!1,jt();var en=Bt.indexOf(Zt);Bt.splice(en,1),Lt=null}}}function qt(Zt){if(!isPlainObject(Zt))throw new Error(formatProdErrorMessage(7));if(typeof Zt.type>"u")throw new Error(formatProdErrorMessage(8));if(Nt)throw new Error(formatProdErrorMessage(9));try{Nt=!0,Dt=Pt(Dt,Zt)}finally{Nt=!1}for(var Qt=Lt=Bt,Jt=0;Jt=0;At--){var Pt=lt[At](_e);if(Pt)return Pt}return function(Dt,Lt){throw new Error("Invalid value of type "+typeof _e+" for "+Rt+" argument when connecting component "+Lt.wrappedComponentName+".")}}function strictEqual(_e,lt){return _e===lt}function createConnect(_e){var lt=_e===void 0?{}:_e,Rt=lt.connectHOC,At=Rt===void 0?connectAdvanced:Rt,Pt=lt.mapStateToPropsFactories,Dt=Pt===void 0?defaultMapStateToPropsFactories:Pt,Lt=lt.mapDispatchToPropsFactories,Bt=Lt===void 0?defaultMapDispatchToPropsFactories:Lt,Nt=lt.mergePropsFactories,jt=Nt===void 0?defaultMergePropsFactories:Nt,Ut=lt.selectorFactory,Gt=Ut===void 0?finalPropsSelectorFactory:Ut;return function(Xt,Kt,Zt,Qt){Qt===void 0&&(Qt={});var Jt=Qt,en=Jt.pure,tn=en===void 0?!0:en,an=Jt.areStatesEqual,cn=an===void 0?strictEqual:an,un=Jt.areOwnPropsEqual,rn=un===void 0?shallowEqual:un,sn=Jt.areStatePropsEqual,pn=sn===void 0?shallowEqual:sn,bn=Jt.areMergedPropsEqual,gn=bn===void 0?shallowEqual:bn,_n=_objectWithoutPropertiesLoose$3(Jt,_excluded),xn=match(Xt,Dt,"mapStateToProps"),ln=match(Kt,Bt,"mapDispatchToProps"),Mn=match(Zt,jt,"mergeProps");return At(Gt,_extends$2({methodName:"connect",getDisplayName:function(An){return"Connect("+An+")"},shouldHandleStateChanges:!!Xt,initMapStateToProps:xn,initMapDispatchToProps:ln,initMergeProps:Mn,pure:tn,areStatesEqual:cn,areOwnPropsEqual:rn,areStatePropsEqual:pn,areMergedPropsEqual:gn},_n))}}const connect$1=createConnect();setBatch(reactDomExports.unstable_batchedUpdates);function areInputsEqual$1(_e,lt){if(_e.length!==lt.length)return!1;for(var Rt=0;Rt<_e.length;Rt++)if(_e[Rt]!==lt[Rt])return!1;return!0}function useMemoOne(_e,lt){var Rt=reactExports.useState(function(){return{inputs:lt,result:_e()}})[0],At=reactExports.useRef(!0),Pt=reactExports.useRef(Rt),Dt=At.current||!!(lt&&Pt.current.inputs&&areInputsEqual$1(lt,Pt.current.inputs)),Lt=Dt?Pt.current:{inputs:lt,result:_e()};return reactExports.useEffect(function(){At.current=!1,Pt.current=Lt},[Lt]),Lt.result}function useCallbackOne(_e,lt){return useMemoOne(function(){return _e},lt)}var useMemo=useMemoOne,useCallback=useCallbackOne,isProduction=!0,prefix$2="Invariant failed";function invariant$1(_e,lt){if(!_e){if(isProduction)throw new Error(prefix$2);var Rt=typeof lt=="function"?lt():lt,At=Rt?"".concat(prefix$2,": ").concat(Rt):prefix$2;throw new Error(At)}}var getRect=function _e(lt){var Rt=lt.top,At=lt.right,Pt=lt.bottom,Dt=lt.left,Lt=At-Dt,Bt=Pt-Rt,Nt={top:Rt,right:At,bottom:Pt,left:Dt,width:Lt,height:Bt,x:Dt,y:Rt,center:{x:(At+Dt)/2,y:(Pt+Rt)/2}};return Nt},expand=function _e(lt,Rt){return{top:lt.top-Rt.top,left:lt.left-Rt.left,bottom:lt.bottom+Rt.bottom,right:lt.right+Rt.right}},shrink=function _e(lt,Rt){return{top:lt.top+Rt.top,left:lt.left+Rt.left,bottom:lt.bottom-Rt.bottom,right:lt.right-Rt.right}},shift=function _e(lt,Rt){return{top:lt.top+Rt.y,left:lt.left+Rt.x,bottom:lt.bottom+Rt.y,right:lt.right+Rt.x}},noSpacing$1={top:0,right:0,bottom:0,left:0},createBox=function _e(lt){var Rt=lt.borderBox,At=lt.margin,Pt=At===void 0?noSpacing$1:At,Dt=lt.border,Lt=Dt===void 0?noSpacing$1:Dt,Bt=lt.padding,Nt=Bt===void 0?noSpacing$1:Bt,jt=getRect(expand(Rt,Pt)),Ut=getRect(shrink(Rt,Lt)),Gt=getRect(shrink(Ut,Nt));return{marginBox:jt,borderBox:getRect(Rt),paddingBox:Ut,contentBox:Gt,margin:Pt,border:Lt,padding:Nt}},parse$6=function _e(lt){var Rt=lt.slice(0,-2),At=lt.slice(-2);if(At!=="px")return 0;var Pt=Number(Rt);return isNaN(Pt)&&invariant$1(!1),Pt},getWindowScroll$1=function _e(){return{x:window.pageXOffset,y:window.pageYOffset}},offset=function _e(lt,Rt){var At=lt.borderBox,Pt=lt.border,Dt=lt.margin,Lt=lt.padding,Bt=shift(At,Rt);return createBox({borderBox:Bt,border:Pt,margin:Dt,padding:Lt})},withScroll=function _e(lt,Rt){return Rt===void 0&&(Rt=getWindowScroll$1()),offset(lt,Rt)},calculateBox=function _e(lt,Rt){var At={top:parse$6(Rt.marginTop),right:parse$6(Rt.marginRight),bottom:parse$6(Rt.marginBottom),left:parse$6(Rt.marginLeft)},Pt={top:parse$6(Rt.paddingTop),right:parse$6(Rt.paddingRight),bottom:parse$6(Rt.paddingBottom),left:parse$6(Rt.paddingLeft)},Dt={top:parse$6(Rt.borderTopWidth),right:parse$6(Rt.borderRightWidth),bottom:parse$6(Rt.borderBottomWidth),left:parse$6(Rt.borderLeftWidth)};return createBox({borderBox:lt,margin:At,padding:Pt,border:Dt})},getBox=function _e(lt){var Rt=lt.getBoundingClientRect(),At=window.getComputedStyle(lt);return calculateBox(Rt,At)},safeIsNaN=Number.isNaN||function _e(lt){return typeof lt=="number"&<!==lt};function isEqual$2(_e,lt){return!!(_e===lt||safeIsNaN(_e)&&safeIsNaN(lt))}function areInputsEqual(_e,lt){if(_e.length!==lt.length)return!1;for(var Rt=0;Rt<_e.length;Rt++)if(!isEqual$2(_e[Rt],lt[Rt]))return!1;return!0}function memoizeOne(_e,lt){lt===void 0&&(lt=areInputsEqual);var Rt,At=[],Pt,Dt=!1;function Lt(){for(var Bt=[],Nt=0;Nt");return At.callbacks},At.setCallbacks=function(Bt){At.callbacks=Bt},At}var Rt=lt.prototype;return Rt.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},Rt.componentDidCatch=function(Pt){if(Pt instanceof RbdInvariant){this.setState({});return}throw Pt},Rt.componentWillUnmount=function(){this.unbind()},Rt.render=function(){return this.props.children(this.setCallbacks)},lt}(React.Component),dragHandleUsageInstructions=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key @@ -656,7 +662,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},Lt=[At,Rt,Pt,Dt];return{always:getStyles(Lt,"always"),resting:getStyles(Lt,"resting"),dragging:getStyles(Lt,"dragging"),dropAnimating:getStyles(Lt,"dropAnimating"),userCancel:getStyles(Lt,"userCancel")}},useIsomorphicLayoutEffect$3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect,getHead=function _e(){var lt=document.querySelector("head");return lt||invariant(!1),lt},createStyleEl=function _e(lt){var Rt=document.createElement("style");return lt&&Rt.setAttribute("nonce",lt),Rt.type="text/css",Rt};function useStyleMarshal(_e,lt){var Rt=useMemo(function(){return getStyles$1(_e)},[_e]),At=reactExports.useRef(null),Pt=reactExports.useRef(null),Dt=useCallback(memoizeOne(function(Gt){var qt=Pt.current;qt||invariant(!1),qt.textContent=Gt}),[]),Lt=useCallback(function(Gt){var qt=At.current;qt||invariant(!1),qt.textContent=Gt},[]);useIsomorphicLayoutEffect$3(function(){!At.current&&!Pt.current||invariant(!1);var Gt=createStyleEl(lt),qt=createStyleEl(lt);return At.current=Gt,Pt.current=qt,Gt.setAttribute(prefix$1+"-always",_e),qt.setAttribute(prefix$1+"-dynamic",_e),getHead().appendChild(Gt),getHead().appendChild(qt),Lt(Rt.always),Dt(Rt.resting),function(){var Xt=function(Zt){var Qt=Zt.current;Qt||invariant(!1),getHead().removeChild(Qt),Zt.current=null};Xt(At),Xt(Pt)}},[lt,Lt,Dt,Rt.always,Rt.resting,_e]);var Bt=useCallback(function(){return Dt(Rt.dragging)},[Dt,Rt.dragging]),Nt=useCallback(function(Gt){if(Gt==="DROP"){Dt(Rt.dropAnimating);return}Dt(Rt.userCancel)},[Dt,Rt.dropAnimating,Rt.userCancel]),jt=useCallback(function(){Pt.current&&Dt(Rt.resting)},[Dt,Rt.resting]),Ut=useMemo(function(){return{dragging:Bt,dropping:Nt,resting:jt}},[Bt,Nt,jt]);return Ut}var getWindowFromEl=function(_e){return _e&&_e.ownerDocument?_e.ownerDocument.defaultView:window};function isHtmlElement(_e){return _e instanceof getWindowFromEl(_e).HTMLElement}function findDragHandle(_e,lt){var Rt="["+dragHandle.contextId+'="'+_e+'"]',At=toArray$1(document.querySelectorAll(Rt));if(!At.length)return null;var Pt=find$1(At,function(Dt){return Dt.getAttribute(dragHandle.draggableId)===lt});return!Pt||!isHtmlElement(Pt)?null:Pt}function useFocusMarshal(_e){var lt=reactExports.useRef({}),Rt=reactExports.useRef(null),At=reactExports.useRef(null),Pt=reactExports.useRef(!1),Dt=useCallback(function(qt,Xt){var Kt={id:qt,focus:Xt};return lt.current[qt]=Kt,function(){var Qt=lt.current,Jt=Qt[qt];Jt!==Kt&&delete Qt[qt]}},[]),Lt=useCallback(function(qt){var Xt=findDragHandle(_e,qt);Xt&&Xt!==document.activeElement&&Xt.focus()},[_e]),Bt=useCallback(function(qt,Xt){Rt.current===qt&&(Rt.current=Xt)},[]),Nt=useCallback(function(){At.current||Pt.current&&(At.current=requestAnimationFrame(function(){At.current=null;var qt=Rt.current;qt&&Lt(qt)}))},[Lt]),jt=useCallback(function(qt){Rt.current=null;var Xt=document.activeElement;Xt&&Xt.getAttribute(dragHandle.draggableId)===qt&&(Rt.current=qt)},[]);useIsomorphicLayoutEffect$3(function(){return Pt.current=!0,function(){Pt.current=!1;var qt=At.current;qt&&cancelAnimationFrame(qt)}},[]);var Ut=useMemo(function(){return{register:Dt,tryRecordFocus:jt,tryRestoreFocusRecorded:Nt,tryShiftRecord:Bt}},[Dt,jt,Nt,Bt]);return Ut}function createRegistry(){var _e={draggables:{},droppables:{}},lt=[];function Rt(Gt){return lt.push(Gt),function(){var Xt=lt.indexOf(Gt);Xt!==-1&<.splice(Xt,1)}}function At(Gt){lt.length&<.forEach(function(qt){return qt(Gt)})}function Pt(Gt){return _e.draggables[Gt]||null}function Dt(Gt){var qt=Pt(Gt);return qt||invariant(!1),qt}var Lt={register:function(qt){_e.draggables[qt.descriptor.id]=qt,At({type:"ADDITION",value:qt})},update:function(qt,Xt){var Kt=_e.draggables[Xt.descriptor.id];Kt&&Kt.uniqueId===qt.uniqueId&&(delete _e.draggables[Xt.descriptor.id],_e.draggables[qt.descriptor.id]=qt)},unregister:function(qt){var Xt=qt.descriptor.id,Kt=Pt(Xt);Kt&&qt.uniqueId===Kt.uniqueId&&(delete _e.draggables[Xt],At({type:"REMOVAL",value:qt}))},getById:Dt,findById:Pt,exists:function(qt){return!!Pt(qt)},getAllByType:function(qt){return values(_e.draggables).filter(function(Xt){return Xt.descriptor.type===qt})}};function Bt(Gt){return _e.droppables[Gt]||null}function Nt(Gt){var qt=Bt(Gt);return qt||invariant(!1),qt}var jt={register:function(qt){_e.droppables[qt.descriptor.id]=qt},unregister:function(qt){var Xt=Bt(qt.descriptor.id);Xt&&qt.uniqueId===Xt.uniqueId&&delete _e.droppables[qt.descriptor.id]},getById:Nt,findById:Bt,exists:function(qt){return!!Bt(qt)},getAllByType:function(qt){return values(_e.droppables).filter(function(Xt){return Xt.descriptor.type===qt})}};function Ut(){_e.draggables={},_e.droppables={},lt.length=0}return{draggable:Lt,droppable:jt,subscribe:Rt,clean:Ut}}function useRegistry(){var _e=useMemo(createRegistry,[]);return reactExports.useEffect(function(){return function(){requestAnimationFrame(_e.clean)}},[_e]),_e}var StoreContext=React.createContext(null),getBodyElement=function(){var _e=document.body;return _e||invariant(!1),_e},visuallyHidden={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},getId=function _e(lt){return"rbd-announcement-"+lt};function useAnnouncer(_e){var lt=useMemo(function(){return getId(_e)},[_e]),Rt=reactExports.useRef(null);reactExports.useEffect(function(){var Dt=document.createElement("div");return Rt.current=Dt,Dt.id=lt,Dt.setAttribute("aria-live","assertive"),Dt.setAttribute("aria-atomic","true"),_extends$2(Dt.style,visuallyHidden),getBodyElement().appendChild(Dt),function(){setTimeout(function(){var Nt=getBodyElement();Nt.contains(Dt)&&Nt.removeChild(Dt),Dt===Rt.current&&(Rt.current=null)})}},[lt]);var At=useCallback(function(Pt){var Dt=Rt.current;if(Dt){Dt.textContent=Pt;return}},[]);return At}var count=0,defaults$2={separator:"::"};function useUniqueId(_e,lt){return lt===void 0&&(lt=defaults$2),useMemo(function(){return""+_e+lt.separator+count++},[lt.separator,_e])}function getElementId(_e){var lt=_e.contextId,Rt=_e.uniqueId;return"rbd-hidden-text-"+lt+"-"+Rt}function useHiddenTextElement(_e){var lt=_e.contextId,Rt=_e.text,At=useUniqueId("hidden-text",{separator:"-"}),Pt=useMemo(function(){return getElementId({contextId:lt,uniqueId:At})},[At,lt]);return reactExports.useEffect(function(){var Lt=document.createElement("div");return Lt.id=Pt,Lt.textContent=Rt,Lt.style.display="none",getBodyElement().appendChild(Lt),function(){var Nt=getBodyElement();Nt.contains(Lt)&&Nt.removeChild(Lt)}},[Pt,Rt]),Pt}var AppContext=React.createContext(null);function usePrevious(_e){var lt=reactExports.useRef(_e);return reactExports.useEffect(function(){lt.current=_e}),lt}function create$1(){var _e=null;function lt(){return!!_e}function Rt(Lt){return Lt===_e}function At(Lt){_e&&invariant(!1);var Bt={abandon:Lt};return _e=Bt,Bt}function Pt(){_e||invariant(!1),_e=null}function Dt(){_e&&(_e.abandon(),Pt())}return{isClaimed:lt,isActive:Rt,claim:At,release:Pt,tryAbandon:Dt}}var tab=9,enter=13,escape$1=27,space=32,pageUp=33,pageDown=34,end=35,home=36,arrowLeft=37,arrowUp=38,arrowRight=39,arrowDown=40,_preventedKeys,preventedKeys=(_preventedKeys={},_preventedKeys[enter]=!0,_preventedKeys[tab]=!0,_preventedKeys),preventStandardKeyEvents=function(_e){preventedKeys[_e.keyCode]&&_e.preventDefault()},supportedEventName=function(){var _e="visibilitychange";if(typeof document>"u")return _e;var lt=[_e,"ms"+_e,"webkit"+_e,"moz"+_e,"o"+_e],Rt=find$1(lt,function(At){return"on"+At in document});return Rt||_e}(),primaryButton=0,sloppyClickThreshold=5;function isSloppyClickThresholdExceeded(_e,lt){return Math.abs(lt.x-_e.x)>=sloppyClickThreshold||Math.abs(lt.y-_e.y)>=sloppyClickThreshold}var idle$1={type:"IDLE"};function getCaptureBindings(_e){var lt=_e.cancel,Rt=_e.completed,At=_e.getPhase,Pt=_e.setPhase;return[{eventName:"mousemove",fn:function(Lt){var Bt=Lt.button,Nt=Lt.clientX,jt=Lt.clientY;if(Bt===primaryButton){var Ut={x:Nt,y:jt},Gt=At();if(Gt.type==="DRAGGING"){Lt.preventDefault(),Gt.actions.move(Ut);return}Gt.type!=="PENDING"&&invariant(!1);var qt=Gt.point;if(isSloppyClickThresholdExceeded(qt,Ut)){Lt.preventDefault();var Xt=Gt.actions.fluidLift(Ut);Pt({type:"DRAGGING",actions:Xt})}}}},{eventName:"mouseup",fn:function(Lt){var Bt=At();if(Bt.type!=="DRAGGING"){lt();return}Lt.preventDefault(),Bt.actions.drop({shouldBlockNextClick:!0}),Rt()}},{eventName:"mousedown",fn:function(Lt){At().type==="DRAGGING"&&Lt.preventDefault(),lt()}},{eventName:"keydown",fn:function(Lt){var Bt=At();if(Bt.type==="PENDING"){lt();return}if(Lt.keyCode===escape$1){Lt.preventDefault(),lt();return}preventStandardKeyEvents(Lt)}},{eventName:"resize",fn:lt},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){At().type==="PENDING"&<()}},{eventName:"webkitmouseforcedown",fn:function(Lt){var Bt=At();if(Bt.type==="IDLE"&&invariant(!1),Bt.actions.shouldRespectForcePress()){lt();return}Lt.preventDefault()}},{eventName:supportedEventName,fn:lt}]}function useMouseSensor(_e){var lt=reactExports.useRef(idle$1),Rt=reactExports.useRef(noop$2),At=useMemo(function(){return{eventName:"mousedown",fn:function(Gt){if(!Gt.defaultPrevented&&Gt.button===primaryButton&&!(Gt.ctrlKey||Gt.metaKey||Gt.shiftKey||Gt.altKey)){var qt=_e.findClosestDraggableId(Gt);if(qt){var Xt=_e.tryGetLock(qt,Lt,{sourceEvent:Gt});if(Xt){Gt.preventDefault();var Kt={x:Gt.clientX,y:Gt.clientY};Rt.current(),jt(Xt,Kt)}}}}}},[_e]),Pt=useMemo(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Gt){if(!Gt.defaultPrevented){var qt=_e.findClosestDraggableId(Gt);if(qt){var Xt=_e.findOptionsForDraggable(qt);Xt&&(Xt.shouldRespectForcePress||_e.canGetLock(qt)&&Gt.preventDefault())}}}}},[_e]),Dt=useCallback(function(){var Gt={passive:!1,capture:!0};Rt.current=bindEvents(window,[Pt,At],Gt)},[Pt,At]),Lt=useCallback(function(){var Ut=lt.current;Ut.type!=="IDLE"&&(lt.current=idle$1,Rt.current(),Dt())},[Dt]),Bt=useCallback(function(){var Ut=lt.current;Lt(),Ut.type==="DRAGGING"&&Ut.actions.cancel({shouldBlockNextClick:!0}),Ut.type==="PENDING"&&Ut.actions.abort()},[Lt]),Nt=useCallback(function(){var Gt={capture:!0,passive:!1},qt=getCaptureBindings({cancel:Bt,completed:Lt,getPhase:function(){return lt.current},setPhase:function(Kt){lt.current=Kt}});Rt.current=bindEvents(window,qt,Gt)},[Bt,Lt]),jt=useCallback(function(Gt,qt){lt.current.type!=="IDLE"&&invariant(!1),lt.current={type:"PENDING",point:qt,actions:Gt},Nt()},[Nt]);useIsomorphicLayoutEffect$3(function(){return Dt(),function(){Rt.current()}},[Dt])}var _scrollJumpKeys;function noop$1$1(){}var scrollJumpKeys=(_scrollJumpKeys={},_scrollJumpKeys[pageDown]=!0,_scrollJumpKeys[pageUp]=!0,_scrollJumpKeys[home]=!0,_scrollJumpKeys[end]=!0,_scrollJumpKeys);function getDraggingBindings(_e,lt){function Rt(){lt(),_e.cancel()}function At(){lt(),_e.drop()}return[{eventName:"keydown",fn:function(Dt){if(Dt.keyCode===escape$1){Dt.preventDefault(),Rt();return}if(Dt.keyCode===space){Dt.preventDefault(),At();return}if(Dt.keyCode===arrowDown){Dt.preventDefault(),_e.moveDown();return}if(Dt.keyCode===arrowUp){Dt.preventDefault(),_e.moveUp();return}if(Dt.keyCode===arrowRight){Dt.preventDefault(),_e.moveRight();return}if(Dt.keyCode===arrowLeft){Dt.preventDefault(),_e.moveLeft();return}if(scrollJumpKeys[Dt.keyCode]){Dt.preventDefault();return}preventStandardKeyEvents(Dt)}},{eventName:"mousedown",fn:Rt},{eventName:"mouseup",fn:Rt},{eventName:"click",fn:Rt},{eventName:"touchstart",fn:Rt},{eventName:"resize",fn:Rt},{eventName:"wheel",fn:Rt,options:{passive:!0}},{eventName:supportedEventName,fn:Rt}]}function useKeyboardSensor(_e){var lt=reactExports.useRef(noop$1$1),Rt=useMemo(function(){return{eventName:"keydown",fn:function(Dt){if(Dt.defaultPrevented||Dt.keyCode!==space)return;var Lt=_e.findClosestDraggableId(Dt);if(!Lt)return;var Bt=_e.tryGetLock(Lt,Ut,{sourceEvent:Dt});if(!Bt)return;Dt.preventDefault();var Nt=!0,jt=Bt.snapLift();lt.current();function Ut(){Nt||invariant(!1),Nt=!1,lt.current(),At()}lt.current=bindEvents(window,getDraggingBindings(jt,Ut),{capture:!0,passive:!1})}}},[_e]),At=useCallback(function(){var Dt={passive:!1,capture:!0};lt.current=bindEvents(window,[Rt],Dt)},[Rt]);useIsomorphicLayoutEffect$3(function(){return At(),function(){lt.current()}},[At])}var idle$2={type:"IDLE"},timeForLongPress=120,forcePressThreshold=.15;function getWindowBindings(_e){var lt=_e.cancel,Rt=_e.getPhase;return[{eventName:"orientationchange",fn:lt},{eventName:"resize",fn:lt},{eventName:"contextmenu",fn:function(Pt){Pt.preventDefault()}},{eventName:"keydown",fn:function(Pt){if(Rt().type!=="DRAGGING"){lt();return}Pt.keyCode===escape$1&&Pt.preventDefault(),lt()}},{eventName:supportedEventName,fn:lt}]}function getHandleBindings(_e){var lt=_e.cancel,Rt=_e.completed,At=_e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Dt){var Lt=At();if(Lt.type!=="DRAGGING"){lt();return}Lt.hasMoved=!0;var Bt=Dt.touches[0],Nt=Bt.clientX,jt=Bt.clientY,Ut={x:Nt,y:jt};Dt.preventDefault(),Lt.actions.move(Ut)}},{eventName:"touchend",fn:function(Dt){var Lt=At();if(Lt.type!=="DRAGGING"){lt();return}Dt.preventDefault(),Lt.actions.drop({shouldBlockNextClick:!0}),Rt()}},{eventName:"touchcancel",fn:function(Dt){if(At().type!=="DRAGGING"){lt();return}Dt.preventDefault(),lt()}},{eventName:"touchforcechange",fn:function(Dt){var Lt=At();Lt.type==="IDLE"&&invariant(!1);var Bt=Dt.touches[0];if(Bt){var Nt=Bt.force>=forcePressThreshold;if(Nt){var jt=Lt.actions.shouldRespectForcePress();if(Lt.type==="PENDING"){jt&<();return}if(jt){if(Lt.hasMoved){Dt.preventDefault();return}lt();return}Dt.preventDefault()}}}},{eventName:supportedEventName,fn:lt}]}function useTouchSensor(_e){var lt=reactExports.useRef(idle$2),Rt=reactExports.useRef(noop$2),At=useCallback(function(){return lt.current},[]),Pt=useCallback(function(Xt){lt.current=Xt},[]),Dt=useMemo(function(){return{eventName:"touchstart",fn:function(Xt){if(!Xt.defaultPrevented){var Kt=_e.findClosestDraggableId(Xt);if(Kt){var Zt=_e.tryGetLock(Kt,Bt,{sourceEvent:Xt});if(Zt){var Qt=Xt.touches[0],Jt=Qt.clientX,en=Qt.clientY,tn={x:Jt,y:en};Rt.current(),Gt(Zt,tn)}}}}}},[_e]),Lt=useCallback(function(){var Xt={capture:!0,passive:!1};Rt.current=bindEvents(window,[Dt],Xt)},[Dt]),Bt=useCallback(function(){var qt=lt.current;qt.type!=="IDLE"&&(qt.type==="PENDING"&&clearTimeout(qt.longPressTimerId),Pt(idle$2),Rt.current(),Lt())},[Lt,Pt]),Nt=useCallback(function(){var qt=lt.current;Bt(),qt.type==="DRAGGING"&&qt.actions.cancel({shouldBlockNextClick:!0}),qt.type==="PENDING"&&qt.actions.abort()},[Bt]),jt=useCallback(function(){var Xt={capture:!0,passive:!1},Kt={cancel:Nt,completed:Bt,getPhase:At},Zt=bindEvents(window,getHandleBindings(Kt),Xt),Qt=bindEvents(window,getWindowBindings(Kt),Xt);Rt.current=function(){Zt(),Qt()}},[Nt,At,Bt]),Ut=useCallback(function(){var Xt=At();Xt.type!=="PENDING"&&invariant(!1);var Kt=Xt.actions.fluidLift(Xt.point);Pt({type:"DRAGGING",actions:Kt,hasMoved:!1})},[At,Pt]),Gt=useCallback(function(Xt,Kt){At().type!=="IDLE"&&invariant(!1);var Zt=setTimeout(Ut,timeForLongPress);Pt({type:"PENDING",point:Kt,actions:Xt,longPressTimerId:Zt}),jt()},[jt,At,Pt,Ut]);useIsomorphicLayoutEffect$3(function(){return Lt(),function(){Rt.current();var Kt=At();Kt.type==="PENDING"&&(clearTimeout(Kt.longPressTimerId),Pt(idle$2))}},[At,Lt,Pt]),useIsomorphicLayoutEffect$3(function(){var Xt=bindEvents(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Xt},[])}var interactiveTagNames={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function isAnInteractiveElement(_e,lt){if(lt==null)return!1;var Rt=!!interactiveTagNames[lt.tagName.toLowerCase()];if(Rt)return!0;var At=lt.getAttribute("contenteditable");return At==="true"||At===""?!0:lt===_e?!1:isAnInteractiveElement(_e,lt.parentElement)}function isEventInInteractiveElement(_e,lt){var Rt=lt.target;return isHtmlElement(Rt)?isAnInteractiveElement(_e,Rt):!1}var getBorderBoxCenterPosition=function(_e){return getRect(_e.getBoundingClientRect()).center};function isElement$1(_e){return _e instanceof getWindowFromEl(_e).Element}var supportedMatchesName=function(){var _e="matches";if(typeof document>"u")return _e;var lt=[_e,"msMatchesSelector","webkitMatchesSelector"],Rt=find$1(lt,function(At){return At in Element.prototype});return Rt||_e}();function closestPonyfill(_e,lt){return _e==null?null:_e[supportedMatchesName](lt)?_e:closestPonyfill(_e.parentElement,lt)}function closest$1(_e,lt){return _e.closest?_e.closest(lt):closestPonyfill(_e,lt)}function getSelector(_e){return"["+dragHandle.contextId+'="'+_e+'"]'}function findClosestDragHandleFromEvent(_e,lt){var Rt=lt.target;if(!isElement$1(Rt))return null;var At=getSelector(_e),Pt=closest$1(Rt,At);return!Pt||!isHtmlElement(Pt)?null:Pt}function tryGetClosestDraggableIdFromEvent(_e,lt){var Rt=findClosestDragHandleFromEvent(_e,lt);return Rt?Rt.getAttribute(dragHandle.draggableId):null}function findDraggable(_e,lt){var Rt="["+draggable.contextId+'="'+_e+'"]',At=toArray$1(document.querySelectorAll(Rt)),Pt=find$1(At,function(Dt){return Dt.getAttribute(draggable.id)===lt});return!Pt||!isHtmlElement(Pt)?null:Pt}function preventDefault(_e){_e.preventDefault()}function _isActive(_e){var lt=_e.expected,Rt=_e.phase,At=_e.isLockActive;return _e.shouldWarn,!(!At()||lt!==Rt)}function canStart(_e){var lt=_e.lockAPI,Rt=_e.store,At=_e.registry,Pt=_e.draggableId;if(lt.isClaimed())return!1;var Dt=At.draggable.findById(Pt);return!(!Dt||!Dt.options.isEnabled||!canStartDrag(Rt.getState(),Pt))}function tryStart(_e){var lt=_e.lockAPI,Rt=_e.contextId,At=_e.store,Pt=_e.registry,Dt=_e.draggableId,Lt=_e.forceSensorStop,Bt=_e.sourceEvent,Nt=canStart({lockAPI:lt,store:At,registry:Pt,draggableId:Dt});if(!Nt)return null;var jt=Pt.draggable.getById(Dt),Ut=findDraggable(Rt,jt.descriptor.id);if(!Ut||Bt&&!jt.options.canDragInteractiveElements&&isEventInInteractiveElement(Ut,Bt))return null;var Gt=lt.claim(Lt||noop$2),qt="PRE_DRAG";function Xt(){return jt.options.shouldRespectForcePress}function Kt(){return lt.isActive(Gt)}function Zt(un,rn){_isActive({expected:un,phase:qt,isLockActive:Kt,shouldWarn:!0})&&At.dispatch(rn())}var Qt=Zt.bind(null,"DRAGGING");function Jt(un){function rn(){lt.release(),qt="COMPLETED"}qt!=="PRE_DRAG"&&(rn(),qt!=="PRE_DRAG"&&invariant(!1)),At.dispatch(lift(un.liftActionArgs)),qt="DRAGGING";function sn(pn,bn){if(bn===void 0&&(bn={shouldBlockNextClick:!1}),un.cleanup(),bn.shouldBlockNextClick){var gn=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(gn)}rn(),At.dispatch(drop({reason:pn}))}return _extends$2({isActive:function(){return _isActive({expected:"DRAGGING",phase:qt,isLockActive:Kt,shouldWarn:!1})},shouldRespectForcePress:Xt,drop:function(bn){return sn("DROP",bn)},cancel:function(bn){return sn("CANCEL",bn)}},un.actions)}function en(un){var rn=rafSchd$1(function(pn){Qt(function(){return move({client:pn})})}),sn=Jt({liftActionArgs:{id:Dt,clientSelection:un,movementMode:"FLUID"},cleanup:function(){return rn.cancel()},actions:{move:rn}});return _extends$2({},sn,{move:rn})}function tn(){var un={moveUp:function(){return Qt(moveUp)},moveRight:function(){return Qt(moveRight)},moveDown:function(){return Qt(moveDown)},moveLeft:function(){return Qt(moveLeft)}};return Jt({liftActionArgs:{id:Dt,clientSelection:getBorderBoxCenterPosition(Ut),movementMode:"SNAP"},cleanup:noop$2,actions:un})}function an(){var un=_isActive({expected:"PRE_DRAG",phase:qt,isLockActive:Kt,shouldWarn:!0});un&<.release()}var cn={isActive:function(){return _isActive({expected:"PRE_DRAG",phase:qt,isLockActive:Kt,shouldWarn:!1})},shouldRespectForcePress:Xt,fluidLift:en,snapLift:tn,abort:an};return cn}var defaultSensors=[useMouseSensor,useKeyboardSensor,useTouchSensor];function useSensorMarshal(_e){var lt=_e.contextId,Rt=_e.store,At=_e.registry,Pt=_e.customSensors,Dt=_e.enableDefaultSensors,Lt=[].concat(Dt?defaultSensors:[],Pt||[]),Bt=reactExports.useState(function(){return create$1()})[0],Nt=useCallback(function(en,tn){en.isDragging&&!tn.isDragging&&Bt.tryAbandon()},[Bt]);useIsomorphicLayoutEffect$3(function(){var en=Rt.getState(),tn=Rt.subscribe(function(){var an=Rt.getState();Nt(en,an),en=an});return tn},[Bt,Rt,Nt]),useIsomorphicLayoutEffect$3(function(){return Bt.tryAbandon},[Bt.tryAbandon]);for(var jt=useCallback(function(Jt){return canStart({lockAPI:Bt,registry:At,store:Rt,draggableId:Jt})},[Bt,At,Rt]),Ut=useCallback(function(Jt,en,tn){return tryStart({lockAPI:Bt,registry:At,contextId:lt,store:Rt,draggableId:Jt,forceSensorStop:en,sourceEvent:tn&&tn.sourceEvent?tn.sourceEvent:null})},[lt,Bt,At,Rt]),Gt=useCallback(function(Jt){return tryGetClosestDraggableIdFromEvent(lt,Jt)},[lt]),qt=useCallback(function(Jt){var en=At.draggable.findById(Jt);return en?en.options:null},[At.draggable]),Xt=useCallback(function(){Bt.isClaimed()&&(Bt.tryAbandon(),Rt.getState().phase!=="IDLE"&&Rt.dispatch(flush()))},[Bt,Rt]),Kt=useCallback(Bt.isClaimed,[Bt]),Zt=useMemo(function(){return{canGetLock:jt,tryGetLock:Ut,findClosestDraggableId:Gt,findOptionsForDraggable:qt,tryReleaseLock:Xt,isLockClaimed:Kt}},[jt,Ut,Gt,qt,Xt,Kt]),Qt=0;QtjsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[_e,lt,Rt]});function ListEditorField({toggleable:_e,deletable:lt,editable:Rt=!0,onChangeItem:At=()=>{},onDeleteItem:Pt=()=>{},extras:Dt,enabled:Lt=!1,editor:Bt=jsxRuntimeExports.jsx(DefaultListEditorInput,{}),value:Nt,id:jt,i:Ut=0,autoFocus:Gt,sortable:qt,button:Xt=!0,renderEditor:Kt=defaultEditorRenderer}){const Zt=useAcrylic(),Qt=usePaper(),[Jt,en]=reactExports.useState(null),tn=Xt?ButtonBase$1:Box$1;return jsxRuntimeExports.jsx(PublicDraggable,{index:Ut,draggableId:`${jt}`,children:(an,cn)=>jsxRuntimeExports.jsx("div",{ref:an.innerRef,...an.draggableProps,children:jsxRuntimeExports.jsx(Stack$1,{direction:"row",alignItems:"center",sx:{...Xt?{transition:un=>un.transitions.create("background"),"&:hover":{background:un=>un.palette.action.hover}}:void 0,...cn.isDragging?{...Qt(1),...Zt}:void 0},children:Kt==null?void 0:Kt({value:Nt,onValueChange:un=>At(jt??Ut,un,Lt),handle:qt&&jsxRuntimeExports.jsx(Flex,{...an.dragHandleProps,color:"text.secondary",sx:{flex:0,p:2},children:jsxRuntimeExports.jsx(DragHandleOutlined,{})}),content:jsxRuntimeExports.jsx(tn,{sx:{flex:1,display:"block",textAlign:"left",px:2},children:reactExports.cloneElement(Bt,{onDelete:()=>Pt(jt??Ut),autoFocus:Gt,value:Nt,key:jt??Ut,onValueChange:un=>At(jt??Ut,un,Lt),onChange:un=>At(jt??Ut,un.target.value,Lt),ref:un=>en(un)})}),extras:jsxRuntimeExports.jsxs(Flex,{sx:{flex:0,px:1},children:[_e&&jsxRuntimeExports.jsx(Switch$2,{color:"primary",edge:"end",onChange:(un,rn)=>At(jt??Ut,Nt,rn),checked:Lt}),Rt&&jsxRuntimeExports.jsx(IconButton$1,{edge:"end",onClick:()=>{Jt!=null&&Jt.focus&&Jt.focus()},children:jsxRuntimeExports.jsx(EditIcon,{})}),lt&&jsxRuntimeExports.jsx(IconButton$1,{onClick:()=>Pt(jt??Ut),children:jsxRuntimeExports.jsx(DeleteIcon,{})}),Dt&&Dt(Nt)]})})})})})}function reorder(_e,lt,Rt){const At=Array.from(_e),[Pt]=At.splice(lt,1);return At.splice(Rt,0,Pt),At}function Editor(_e){const{addItemLabel:lt="Add Item",UNSAFE_label:Rt,UNSAFE_text:At,onAddItem:Pt=()=>{},onDeleteItem:Dt=()=>{},items:Lt=[],placeholder:Bt,autoFocus:Nt,category:jt,order:Ut,onChange:Gt,addItemExtras:qt}=_e,Xt=usePaper(),Kt=useInitialRender(),Zt=useTheme(),[Qt,Jt]=reactExports.useState(Lt),[en,tn]=reactExports.useState(-1);reactExports.useEffect(()=>{const rn=setTimeout(()=>{Jt(Lt)},Zt.transitions.duration.standard);return()=>{clearTimeout(rn)}},[Lt,Jt,Zt.transitions.duration.standard]);const an=lodashExports$1.uniqBy([...Qt,...Lt],rn=>rn.id).map(rn=>Lt.find(sn=>rn.id===sn.id)??rn).map((rn,sn)=>{const{enabled:pn,editor:bn,value:gn,id:_n}=rn??{};return{value:gn,render:xn=>jsxRuntimeExports.jsx(Collapse$1,{in:!!Lt.find(ln=>ln.id===rn.id),unmountOnExit:!0,appear:!Kt,mountOnEnter:!0,children:jsxRuntimeExports.jsx(ListEditorField,{..._e,onDeleteItem:ln=>{Dt(ln),tn(-1)},enabled:pn,editor:bn,value:gn,id:_n,i:sn,autoFocus:Nt||sn===en,...xn})}),key:_n,in:!!Lt.find(xn=>xn.id===rn.id)}}),cn=lodashExports$1.sortBy(an,rn=>jt==null?void 0:jt(rn.value),rn=>Ut==null?void 0:Ut(rn.value)).map(rn=>({...rn,render:sn=>jsxRuntimeExports.jsx(Box$1,{children:rn.render(sn)},rn.key)}));return jsxRuntimeExports.jsx(DragDropContext,{onDragEnd:rn=>{if(!rn.destination)return;const sn=reorder(Lt,rn.source.index,rn.destination.index);Gt==null||Gt(sn),Jt(sn)},children:jsxRuntimeExports.jsxs(List$2,{subheader:Rt||At?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(ListSubheader$1,{disableSticky:!0,children:[Rt&&jsxRuntimeExports.jsx(Typography$1,{variant:"body1",gutterBottom:!0,color:"textPrimary",children:Rt}),At&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",gutterBottom:!0,style:{marginBottom:Zt.spacing(3)},children:At})]})}):void 0,children:[jsxRuntimeExports.jsx(Box$1,{mt:jt?-1:0,children:jsxRuntimeExports.jsx(ConnectedDroppable,{droppableId:"list",children:rn=>jsxRuntimeExports.jsxs("div",{...rn.droppableProps,ref:rn.innerRef,children:[(()=>{const sn=[];return cn.forEach((pn,bn)=>{jt&&un(cn,bn,pn)&&sn.push(jsxRuntimeExports.jsx(Collapse$1,{in:Lt.some(gn=>jt(gn.value)===jt(pn.value)),appear:!0,children:jsxRuntimeExports.jsx(Box$1,{pl:2,pb:2,pt:1,children:jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",children:jt(pn.value)})})},jt(pn.value))),sn.push(pn.render())}),sn})(),rn.placeholder]})})}),jsxRuntimeExports.jsx(Collapse$1,{in:!(Lt!=null&&Lt.length),children:jsxRuntimeExports.jsx(Box$1,{ml:2,mb:1,pt:jt?1:0,children:jsxRuntimeExports.jsx(Typography$1,{component:"div",color:"text.secondary",children:Bt??"No items"})})}),jsxRuntimeExports.jsxs(Box$1,{p:2,pt:2,children:[jsxRuntimeExports.jsx(Button$2,{disableElevation:!0,variant:"outlined",startIcon:jsxRuntimeExports.jsx(Add,{}),onClick:()=>{Pt(),tn(Lt.length)},sx:{...Xt(1)},children:jsxRuntimeExports.jsx(Box$1,{sx:{color:"text.primary"},children:lt})}),qt]})]})});function un(rn,sn,pn){return!!(jt&&(rn[sn-1]===void 0||jt(rn[sn-1].value)!==jt(pn.value)))}}function ListEditor({onChange:_e,value:lt,editor:Rt,create:At,onFocus:Pt,...Dt}){const[Lt,Bt]=reactExports.useState(lt??[]);function Nt(jt){Bt(jt),_e==null||_e(jt)}return reactExports.useEffect(()=>{Bt(lt??[])},[lt]),jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(Editor,{...Dt,items:Lt.map(jt=>({id:jt.key,value:jt,editor:Rt==null?void 0:Rt(jt)})),deletable:!0,editable:!1,onAddItem:()=>{const jt=nanoid$1();Nt==null||Nt([...Lt,{key:jt,...At==null?void 0:At()}]),lodashExports$1.defer(()=>Pt==null?void 0:Pt(jt))},onDeleteItem:jt=>Nt==null?void 0:Nt(lodashExports$1.filter(Lt,Ut=>Ut.key!==jt)),onChangeItem:(jt,Ut)=>Nt==null?void 0:Nt(lodashExports$1.map(Lt,Gt=>Gt.key===jt?Ut:Gt)),onChange:jt=>Nt==null?void 0:Nt(lodashExports$1.map(jt,Ut=>Ut.value))})})}const comparators=[{key:"equal",apply:({value:_e,reference:lt})=>_e===lt,needsReference:!0},{key:"less-than",apply:({value:_e,reference:lt})=>_e_e>lt,needsReference:!0},{key:"changed",apply:({value:_e,property:lt,step:Rt,node:At})=>{if(At.parent){const Pt=lodashExports$1.findLast(At.parent.events,Dt=>Dt.step({value:Bt,label:lodashExports$1.startCase(Bt)})),onChange:Bt=>At({type:Bt==="any"?void 0:Bt}),value:_e.type??"any"}),jsxRuntimeExports.jsx(Divider$1,{flexItem:!0,orientation:"vertical",sx:{mx:2}}),jsxRuntimeExports.jsx(SelectField,{placeholder:"Property",sx:{minWidth:140,textOverflow:"ellipsis",whiteSpace:"nowrap"},items:lodashExports$1.map(Rt,Bt=>({value:Bt,label:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lodashExports$1.last(Bt.split(".")),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(Typography$1,{color:"text.secondary",variant:"body2",component:"span",children:`event.${Bt}`})]})})),onChange:Bt=>At({property:Bt}),value:_e.property}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(SelectField,{placeholder:"Condition",items:comparators.map(Bt=>({value:Bt.key,label:lodashExports$1.startCase(Bt.key)})),value:((Pt=_e.condition)==null?void 0:Pt.key)??((Dt=comparators==null?void 0:comparators[0])==null?void 0:Dt.key),onChange:Bt=>At({condition:lodashExports$1.find(comparators,{key:Bt})})}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(TextField$1,{label:"Reference",fullWidth:!0,defaultValue:`${_e.reference??0}`,variant:"filled",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:Bt=>At({reference:+Bt.target.value}),type:"number",disabled:!((Lt=_e.condition)!=null&&Lt.needsReference)}),jsxRuntimeExports.jsx(Space,{sx:{px:2}}),jsxRuntimeExports.jsx(Switch,{checked:!!_e.active,onChange:(Bt,Nt)=>At({active:Nt}),sx:{mr:-4}})]})}function BreakpointListEditor({layer:_e}){var Lt,Bt,Nt;const{layer:lt,setLayer:Rt}=useLayer(_e),{breakpoints:At}=(lt==null?void 0:lt.source)??{};function Pt(jt){lt&&Rt(produce(lt,Ut=>lodashExports$1.set(Ut,"source.breakpoints",jt)))}const Dt=reactExports.useMemo(()=>{var jt,Ut,Gt;return lodashExports$1.chain((Gt=(Ut=(jt=lt==null?void 0:lt.source)==null?void 0:jt.trace)==null?void 0:Ut.content)==null?void 0:Gt.events).flatMap(lodashExports$1.keys).uniq().filter(qt=>qt!=="type").value()},[(Nt=(Bt=(Lt=lt==null?void 0:lt.source)==null?void 0:Lt.trace)==null?void 0:Bt.content)==null?void 0:Nt.events]);return jsxRuntimeExports.jsx(Box$1,{sx:{overflow:"auto hidden",width:"100%"},children:jsxRuntimeExports.jsx(Scroll,{x:!0,children:jsxRuntimeExports.jsx(Box$1,{sx:{minWidth:720,mb:2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,button:!1,icon:null,value:At,deletable:!0,editable:!1,editor:jt=>jsxRuntimeExports.jsx(BreakpointEditor,{value:jt,properties:Dt}),create:()=>({active:!0,property:Dt==null?void 0:Dt[0],condition:comparators==null?void 0:comparators[0],type:void 0,reference:0}),onChange:jt=>Pt(jt),addItemLabel:"Breakpoint",placeholder:"No breakpoints."})})})})}const divider$3=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1,height:_e=>_e.spacing(3),alignSelf:"auto"}});function DebugPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext(),[Dt,Lt]=reactExports.useState("standard"),{key:Bt,setKey:Nt,layers:jt,layer:Ut,setLayer:Gt}=useLayer(),{code:qt}=(Ut==null?void 0:Ut.source)??{};function Xt(Kt){return jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",children:Kt})}return jsxRuntimeExports.jsx(TabContext,{value:Dt,children:jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsxs(_e.Options,{children:[jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Bt,items:lodashExports$1.map(jt,Kt=>({id:Kt.key,name:inferLayerName(Kt)})),onChange:Nt,arrow:!0,ellipsis:12}),divider$3,jsxRuntimeExports.jsxs(TabList$1,{onChange:(Kt,Zt)=>Lt(Zt),children:[jsxRuntimeExports.jsx(Tab$1,{label:"Standard",value:"standard",disabled:!Ut}),jsxRuntimeExports.jsx(Tab$1,{label:"Advanced",value:"advanced",disabled:!Ut})]})]}),jsxRuntimeExports.jsx(_e.Content,{children:Ut?jsxRuntimeExports.jsx(Box$1,{overflow:"auto",height:"100%",children:jsxRuntimeExports.jsxs(Box$1,{pt:6,height:"100%",children:[jsxRuntimeExports.jsx(TabPanel$1,{value:"standard",children:jsxRuntimeExports.jsxs(Box$1,{mx:-2,children:[jsxRuntimeExports.jsx(Box$1,{px:2,children:Xt("Breakpoints")}),jsxRuntimeExports.jsx(BreakpointListEditor,{layer:Ut==null?void 0:Ut.key})]})}),jsxRuntimeExports.jsx(TabPanel$1,{value:"advanced",sx:{p:0,height:"100%"},children:jsxRuntimeExports.jsx(ScriptEditor,{code:qt??makeTemplate(lodashExports$1.values(templates)),onChange:Kt=>Ut&&Gt(produce(Ut,Zt=>lodashExports$1.set(Zt,"source.code",Kt)))})})]})}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(DebuggerIcon,{}),label:"Debugger"})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})})}const scriptRel="modulepreload",assetsURL=function(_e,lt){return new URL(_e,lt).href},seen={},__vitePreload=function _e(lt,Rt,At){if(!Rt||Rt.length===0)return lt();const Pt=document.getElementsByTagName("link");return Promise.all(Rt.map(Dt=>{if(Dt=assetsURL(Dt,At),Dt in seen)return;seen[Dt]=!0;const Lt=Dt.endsWith(".css"),Bt=Lt?'[rel="stylesheet"]':"";if(!!At)for(let Ut=Pt.length-1;Ut>=0;Ut--){const Gt=Pt[Ut];if(Gt.href===Dt&&(!Lt||Gt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${Dt}"]${Bt}`))return;const jt=document.createElement("link");if(jt.rel=Lt?"stylesheet":scriptRel,Lt||(jt.as="script",jt.crossOrigin=""),jt.href=Dt,document.head.appendChild(jt),Lt)return new Promise((Ut,Gt)=>{jt.addEventListener("load",Ut),jt.addEventListener("error",()=>Gt(new Error(`Unable to preload CSS for ${Dt}`)))})})).then(()=>lt()).catch(Dt=>{const Lt=new Event("vite:preloadError",{cancelable:!0});if(Lt.payload=Dt,window.dispatchEvent(Lt),!Lt.defaultPrevented)throw Dt})};function _typeof(_e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(lt){return typeof lt}:_typeof=function(lt){return lt&&typeof Symbol=="function"&<.constructor===Symbol&<!==Symbol.prototype?"symbol":typeof lt},_typeof(_e)}function _classCallCheck(_e,lt){if(!(_e instanceof lt))throw new TypeError("Cannot call a class as a function")}function _defineProperties(_e,lt){for(var Rt=0;Rt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(_e,lt,Rt){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Pt,Dt,Lt){var Bt=[null];Bt.push.apply(Bt,Dt);var Nt=Function.bind.apply(Pt,Bt),jt=new Nt;return Lt&&_setPrototypeOf(jt,Lt.prototype),jt},_construct.apply(null,arguments)}function _isNativeFunction(_e){return Function.toString.call(_e).indexOf("[native code]")!==-1}function _wrapNativeSuper(_e){var lt=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(At){if(At===null||!_isNativeFunction(At))return At;if(typeof At!="function")throw new TypeError("Super expression must either be null or a function");if(typeof lt<"u"){if(lt.has(At))return lt.get(At);lt.set(At,Pt)}function Pt(){return _construct(At,arguments,_getPrototypeOf(this).constructor)}return Pt.prototype=Object.create(At.prototype,{constructor:{value:Pt,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Pt,At)},_wrapNativeSuper(_e)}function _assertThisInitialized(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}function _possibleConstructorReturn(_e,lt){return lt&&(typeof lt=="object"||typeof lt=="function")?lt:_assertThisInitialized(_e)}function _createSuper(_e){var lt=_isNativeReflectConstruct();return function(){var At=_getPrototypeOf(_e),Pt;if(lt){var Dt=_getPrototypeOf(this).constructor;Pt=Reflect.construct(At,arguments,Dt)}else Pt=At.apply(this,arguments);return _possibleConstructorReturn(this,Pt)}}function _superPropBase(_e,lt){for(;!Object.prototype.hasOwnProperty.call(_e,lt)&&(_e=_getPrototypeOf(_e),_e!==null););return _e}function _get(_e,lt,Rt){return typeof Reflect<"u"&&Reflect.get?_get=Reflect.get:_get=function(Pt,Dt,Lt){var Bt=_superPropBase(Pt,Dt);if(Bt){var Nt=Object.getOwnPropertyDescriptor(Bt,Dt);return Nt.get?Nt.get.call(Lt):Nt.value}},_get(_e,lt,Rt||_e)}function _slicedToArray(_e,lt){return _arrayWithHoles(_e)||_iterableToArrayLimit(_e,lt)||_unsupportedIterableToArray(_e,lt)||_nonIterableRest()}function _toArray(_e){return _arrayWithHoles(_e)||_iterableToArray(_e)||_unsupportedIterableToArray(_e)||_nonIterableRest()}function _arrayWithHoles(_e){if(Array.isArray(_e))return _e}function _iterableToArray(_e){if(typeof Symbol<"u"&&Symbol.iterator in Object(_e))return Array.from(_e)}function _iterableToArrayLimit(_e,lt){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(_e)))){var Rt=[],At=!0,Pt=!1,Dt=void 0;try{for(var Lt=_e[Symbol.iterator](),Bt;!(At=(Bt=Lt.next()).done)&&(Rt.push(Bt.value),!(lt&&Rt.length===lt));At=!0);}catch(Nt){Pt=!0,Dt=Nt}finally{try{!At&&Lt.return!=null&&Lt.return()}finally{if(Pt)throw Dt}}return Rt}}function _unsupportedIterableToArray(_e,lt){if(_e){if(typeof _e=="string")return _arrayLikeToArray(_e,lt);var Rt=Object.prototype.toString.call(_e).slice(8,-1);if(Rt==="Object"&&_e.constructor&&(Rt=_e.constructor.name),Rt==="Map"||Rt==="Set")return Array.from(_e);if(Rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rt))return _arrayLikeToArray(_e,lt)}}function _arrayLikeToArray(_e,lt){(lt==null||lt>_e.length)&&(lt=_e.length);for(var Rt=0,At=new Array(lt);Rt"u")return _e;var lt=[_e,"ms"+_e,"webkit"+_e,"moz"+_e,"o"+_e],Rt=find$1(lt,function(At){return"on"+At in document});return Rt||_e}(),primaryButton=0,sloppyClickThreshold=5;function isSloppyClickThresholdExceeded(_e,lt){return Math.abs(lt.x-_e.x)>=sloppyClickThreshold||Math.abs(lt.y-_e.y)>=sloppyClickThreshold}var idle$1={type:"IDLE"};function getCaptureBindings(_e){var lt=_e.cancel,Rt=_e.completed,At=_e.getPhase,Pt=_e.setPhase;return[{eventName:"mousemove",fn:function(Lt){var Bt=Lt.button,Nt=Lt.clientX,jt=Lt.clientY;if(Bt===primaryButton){var Ut={x:Nt,y:jt},Gt=At();if(Gt.type==="DRAGGING"){Lt.preventDefault(),Gt.actions.move(Ut);return}Gt.type!=="PENDING"&&invariant(!1);var qt=Gt.point;if(isSloppyClickThresholdExceeded(qt,Ut)){Lt.preventDefault();var Xt=Gt.actions.fluidLift(Ut);Pt({type:"DRAGGING",actions:Xt})}}}},{eventName:"mouseup",fn:function(Lt){var Bt=At();if(Bt.type!=="DRAGGING"){lt();return}Lt.preventDefault(),Bt.actions.drop({shouldBlockNextClick:!0}),Rt()}},{eventName:"mousedown",fn:function(Lt){At().type==="DRAGGING"&&Lt.preventDefault(),lt()}},{eventName:"keydown",fn:function(Lt){var Bt=At();if(Bt.type==="PENDING"){lt();return}if(Lt.keyCode===escape$1){Lt.preventDefault(),lt();return}preventStandardKeyEvents(Lt)}},{eventName:"resize",fn:lt},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){At().type==="PENDING"&<()}},{eventName:"webkitmouseforcedown",fn:function(Lt){var Bt=At();if(Bt.type==="IDLE"&&invariant(!1),Bt.actions.shouldRespectForcePress()){lt();return}Lt.preventDefault()}},{eventName:supportedEventName,fn:lt}]}function useMouseSensor(_e){var lt=reactExports.useRef(idle$1),Rt=reactExports.useRef(noop$2),At=useMemo(function(){return{eventName:"mousedown",fn:function(Gt){if(!Gt.defaultPrevented&&Gt.button===primaryButton&&!(Gt.ctrlKey||Gt.metaKey||Gt.shiftKey||Gt.altKey)){var qt=_e.findClosestDraggableId(Gt);if(qt){var Xt=_e.tryGetLock(qt,Lt,{sourceEvent:Gt});if(Xt){Gt.preventDefault();var Kt={x:Gt.clientX,y:Gt.clientY};Rt.current(),jt(Xt,Kt)}}}}}},[_e]),Pt=useMemo(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Gt){if(!Gt.defaultPrevented){var qt=_e.findClosestDraggableId(Gt);if(qt){var Xt=_e.findOptionsForDraggable(qt);Xt&&(Xt.shouldRespectForcePress||_e.canGetLock(qt)&&Gt.preventDefault())}}}}},[_e]),Dt=useCallback(function(){var Gt={passive:!1,capture:!0};Rt.current=bindEvents(window,[Pt,At],Gt)},[Pt,At]),Lt=useCallback(function(){var Ut=lt.current;Ut.type!=="IDLE"&&(lt.current=idle$1,Rt.current(),Dt())},[Dt]),Bt=useCallback(function(){var Ut=lt.current;Lt(),Ut.type==="DRAGGING"&&Ut.actions.cancel({shouldBlockNextClick:!0}),Ut.type==="PENDING"&&Ut.actions.abort()},[Lt]),Nt=useCallback(function(){var Gt={capture:!0,passive:!1},qt=getCaptureBindings({cancel:Bt,completed:Lt,getPhase:function(){return lt.current},setPhase:function(Kt){lt.current=Kt}});Rt.current=bindEvents(window,qt,Gt)},[Bt,Lt]),jt=useCallback(function(Gt,qt){lt.current.type!=="IDLE"&&invariant(!1),lt.current={type:"PENDING",point:qt,actions:Gt},Nt()},[Nt]);useIsomorphicLayoutEffect$3(function(){return Dt(),function(){Rt.current()}},[Dt])}var _scrollJumpKeys;function noop$1$1(){}var scrollJumpKeys=(_scrollJumpKeys={},_scrollJumpKeys[pageDown]=!0,_scrollJumpKeys[pageUp]=!0,_scrollJumpKeys[home]=!0,_scrollJumpKeys[end]=!0,_scrollJumpKeys);function getDraggingBindings(_e,lt){function Rt(){lt(),_e.cancel()}function At(){lt(),_e.drop()}return[{eventName:"keydown",fn:function(Dt){if(Dt.keyCode===escape$1){Dt.preventDefault(),Rt();return}if(Dt.keyCode===space){Dt.preventDefault(),At();return}if(Dt.keyCode===arrowDown){Dt.preventDefault(),_e.moveDown();return}if(Dt.keyCode===arrowUp){Dt.preventDefault(),_e.moveUp();return}if(Dt.keyCode===arrowRight){Dt.preventDefault(),_e.moveRight();return}if(Dt.keyCode===arrowLeft){Dt.preventDefault(),_e.moveLeft();return}if(scrollJumpKeys[Dt.keyCode]){Dt.preventDefault();return}preventStandardKeyEvents(Dt)}},{eventName:"mousedown",fn:Rt},{eventName:"mouseup",fn:Rt},{eventName:"click",fn:Rt},{eventName:"touchstart",fn:Rt},{eventName:"resize",fn:Rt},{eventName:"wheel",fn:Rt,options:{passive:!0}},{eventName:supportedEventName,fn:Rt}]}function useKeyboardSensor(_e){var lt=reactExports.useRef(noop$1$1),Rt=useMemo(function(){return{eventName:"keydown",fn:function(Dt){if(Dt.defaultPrevented||Dt.keyCode!==space)return;var Lt=_e.findClosestDraggableId(Dt);if(!Lt)return;var Bt=_e.tryGetLock(Lt,Ut,{sourceEvent:Dt});if(!Bt)return;Dt.preventDefault();var Nt=!0,jt=Bt.snapLift();lt.current();function Ut(){Nt||invariant(!1),Nt=!1,lt.current(),At()}lt.current=bindEvents(window,getDraggingBindings(jt,Ut),{capture:!0,passive:!1})}}},[_e]),At=useCallback(function(){var Dt={passive:!1,capture:!0};lt.current=bindEvents(window,[Rt],Dt)},[Rt]);useIsomorphicLayoutEffect$3(function(){return At(),function(){lt.current()}},[At])}var idle$2={type:"IDLE"},timeForLongPress=120,forcePressThreshold=.15;function getWindowBindings(_e){var lt=_e.cancel,Rt=_e.getPhase;return[{eventName:"orientationchange",fn:lt},{eventName:"resize",fn:lt},{eventName:"contextmenu",fn:function(Pt){Pt.preventDefault()}},{eventName:"keydown",fn:function(Pt){if(Rt().type!=="DRAGGING"){lt();return}Pt.keyCode===escape$1&&Pt.preventDefault(),lt()}},{eventName:supportedEventName,fn:lt}]}function getHandleBindings(_e){var lt=_e.cancel,Rt=_e.completed,At=_e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Dt){var Lt=At();if(Lt.type!=="DRAGGING"){lt();return}Lt.hasMoved=!0;var Bt=Dt.touches[0],Nt=Bt.clientX,jt=Bt.clientY,Ut={x:Nt,y:jt};Dt.preventDefault(),Lt.actions.move(Ut)}},{eventName:"touchend",fn:function(Dt){var Lt=At();if(Lt.type!=="DRAGGING"){lt();return}Dt.preventDefault(),Lt.actions.drop({shouldBlockNextClick:!0}),Rt()}},{eventName:"touchcancel",fn:function(Dt){if(At().type!=="DRAGGING"){lt();return}Dt.preventDefault(),lt()}},{eventName:"touchforcechange",fn:function(Dt){var Lt=At();Lt.type==="IDLE"&&invariant(!1);var Bt=Dt.touches[0];if(Bt){var Nt=Bt.force>=forcePressThreshold;if(Nt){var jt=Lt.actions.shouldRespectForcePress();if(Lt.type==="PENDING"){jt&<();return}if(jt){if(Lt.hasMoved){Dt.preventDefault();return}lt();return}Dt.preventDefault()}}}},{eventName:supportedEventName,fn:lt}]}function useTouchSensor(_e){var lt=reactExports.useRef(idle$2),Rt=reactExports.useRef(noop$2),At=useCallback(function(){return lt.current},[]),Pt=useCallback(function(Xt){lt.current=Xt},[]),Dt=useMemo(function(){return{eventName:"touchstart",fn:function(Xt){if(!Xt.defaultPrevented){var Kt=_e.findClosestDraggableId(Xt);if(Kt){var Zt=_e.tryGetLock(Kt,Bt,{sourceEvent:Xt});if(Zt){var Qt=Xt.touches[0],Jt=Qt.clientX,en=Qt.clientY,tn={x:Jt,y:en};Rt.current(),Gt(Zt,tn)}}}}}},[_e]),Lt=useCallback(function(){var Xt={capture:!0,passive:!1};Rt.current=bindEvents(window,[Dt],Xt)},[Dt]),Bt=useCallback(function(){var qt=lt.current;qt.type!=="IDLE"&&(qt.type==="PENDING"&&clearTimeout(qt.longPressTimerId),Pt(idle$2),Rt.current(),Lt())},[Lt,Pt]),Nt=useCallback(function(){var qt=lt.current;Bt(),qt.type==="DRAGGING"&&qt.actions.cancel({shouldBlockNextClick:!0}),qt.type==="PENDING"&&qt.actions.abort()},[Bt]),jt=useCallback(function(){var Xt={capture:!0,passive:!1},Kt={cancel:Nt,completed:Bt,getPhase:At},Zt=bindEvents(window,getHandleBindings(Kt),Xt),Qt=bindEvents(window,getWindowBindings(Kt),Xt);Rt.current=function(){Zt(),Qt()}},[Nt,At,Bt]),Ut=useCallback(function(){var Xt=At();Xt.type!=="PENDING"&&invariant(!1);var Kt=Xt.actions.fluidLift(Xt.point);Pt({type:"DRAGGING",actions:Kt,hasMoved:!1})},[At,Pt]),Gt=useCallback(function(Xt,Kt){At().type!=="IDLE"&&invariant(!1);var Zt=setTimeout(Ut,timeForLongPress);Pt({type:"PENDING",point:Kt,actions:Xt,longPressTimerId:Zt}),jt()},[jt,At,Pt,Ut]);useIsomorphicLayoutEffect$3(function(){return Lt(),function(){Rt.current();var Kt=At();Kt.type==="PENDING"&&(clearTimeout(Kt.longPressTimerId),Pt(idle$2))}},[At,Lt,Pt]),useIsomorphicLayoutEffect$3(function(){var Xt=bindEvents(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Xt},[])}var interactiveTagNames={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function isAnInteractiveElement(_e,lt){if(lt==null)return!1;var Rt=!!interactiveTagNames[lt.tagName.toLowerCase()];if(Rt)return!0;var At=lt.getAttribute("contenteditable");return At==="true"||At===""?!0:lt===_e?!1:isAnInteractiveElement(_e,lt.parentElement)}function isEventInInteractiveElement(_e,lt){var Rt=lt.target;return isHtmlElement(Rt)?isAnInteractiveElement(_e,Rt):!1}var getBorderBoxCenterPosition=function(_e){return getRect(_e.getBoundingClientRect()).center};function isElement$1(_e){return _e instanceof getWindowFromEl(_e).Element}var supportedMatchesName=function(){var _e="matches";if(typeof document>"u")return _e;var lt=[_e,"msMatchesSelector","webkitMatchesSelector"],Rt=find$1(lt,function(At){return At in Element.prototype});return Rt||_e}();function closestPonyfill(_e,lt){return _e==null?null:_e[supportedMatchesName](lt)?_e:closestPonyfill(_e.parentElement,lt)}function closest$1(_e,lt){return _e.closest?_e.closest(lt):closestPonyfill(_e,lt)}function getSelector(_e){return"["+dragHandle.contextId+'="'+_e+'"]'}function findClosestDragHandleFromEvent(_e,lt){var Rt=lt.target;if(!isElement$1(Rt))return null;var At=getSelector(_e),Pt=closest$1(Rt,At);return!Pt||!isHtmlElement(Pt)?null:Pt}function tryGetClosestDraggableIdFromEvent(_e,lt){var Rt=findClosestDragHandleFromEvent(_e,lt);return Rt?Rt.getAttribute(dragHandle.draggableId):null}function findDraggable(_e,lt){var Rt="["+draggable.contextId+'="'+_e+'"]',At=toArray$1(document.querySelectorAll(Rt)),Pt=find$1(At,function(Dt){return Dt.getAttribute(draggable.id)===lt});return!Pt||!isHtmlElement(Pt)?null:Pt}function preventDefault(_e){_e.preventDefault()}function _isActive(_e){var lt=_e.expected,Rt=_e.phase,At=_e.isLockActive;return _e.shouldWarn,!(!At()||lt!==Rt)}function canStart(_e){var lt=_e.lockAPI,Rt=_e.store,At=_e.registry,Pt=_e.draggableId;if(lt.isClaimed())return!1;var Dt=At.draggable.findById(Pt);return!(!Dt||!Dt.options.isEnabled||!canStartDrag(Rt.getState(),Pt))}function tryStart(_e){var lt=_e.lockAPI,Rt=_e.contextId,At=_e.store,Pt=_e.registry,Dt=_e.draggableId,Lt=_e.forceSensorStop,Bt=_e.sourceEvent,Nt=canStart({lockAPI:lt,store:At,registry:Pt,draggableId:Dt});if(!Nt)return null;var jt=Pt.draggable.getById(Dt),Ut=findDraggable(Rt,jt.descriptor.id);if(!Ut||Bt&&!jt.options.canDragInteractiveElements&&isEventInInteractiveElement(Ut,Bt))return null;var Gt=lt.claim(Lt||noop$2),qt="PRE_DRAG";function Xt(){return jt.options.shouldRespectForcePress}function Kt(){return lt.isActive(Gt)}function Zt(un,rn){_isActive({expected:un,phase:qt,isLockActive:Kt,shouldWarn:!0})&&At.dispatch(rn())}var Qt=Zt.bind(null,"DRAGGING");function Jt(un){function rn(){lt.release(),qt="COMPLETED"}qt!=="PRE_DRAG"&&(rn(),qt!=="PRE_DRAG"&&invariant(!1)),At.dispatch(lift(un.liftActionArgs)),qt="DRAGGING";function sn(pn,bn){if(bn===void 0&&(bn={shouldBlockNextClick:!1}),un.cleanup(),bn.shouldBlockNextClick){var gn=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(gn)}rn(),At.dispatch(drop({reason:pn}))}return _extends$2({isActive:function(){return _isActive({expected:"DRAGGING",phase:qt,isLockActive:Kt,shouldWarn:!1})},shouldRespectForcePress:Xt,drop:function(bn){return sn("DROP",bn)},cancel:function(bn){return sn("CANCEL",bn)}},un.actions)}function en(un){var rn=rafSchd$1(function(pn){Qt(function(){return move({client:pn})})}),sn=Jt({liftActionArgs:{id:Dt,clientSelection:un,movementMode:"FLUID"},cleanup:function(){return rn.cancel()},actions:{move:rn}});return _extends$2({},sn,{move:rn})}function tn(){var un={moveUp:function(){return Qt(moveUp)},moveRight:function(){return Qt(moveRight)},moveDown:function(){return Qt(moveDown)},moveLeft:function(){return Qt(moveLeft)}};return Jt({liftActionArgs:{id:Dt,clientSelection:getBorderBoxCenterPosition(Ut),movementMode:"SNAP"},cleanup:noop$2,actions:un})}function an(){var un=_isActive({expected:"PRE_DRAG",phase:qt,isLockActive:Kt,shouldWarn:!0});un&<.release()}var cn={isActive:function(){return _isActive({expected:"PRE_DRAG",phase:qt,isLockActive:Kt,shouldWarn:!1})},shouldRespectForcePress:Xt,fluidLift:en,snapLift:tn,abort:an};return cn}var defaultSensors=[useMouseSensor,useKeyboardSensor,useTouchSensor];function useSensorMarshal(_e){var lt=_e.contextId,Rt=_e.store,At=_e.registry,Pt=_e.customSensors,Dt=_e.enableDefaultSensors,Lt=[].concat(Dt?defaultSensors:[],Pt||[]),Bt=reactExports.useState(function(){return create$1()})[0],Nt=useCallback(function(en,tn){en.isDragging&&!tn.isDragging&&Bt.tryAbandon()},[Bt]);useIsomorphicLayoutEffect$3(function(){var en=Rt.getState(),tn=Rt.subscribe(function(){var an=Rt.getState();Nt(en,an),en=an});return tn},[Bt,Rt,Nt]),useIsomorphicLayoutEffect$3(function(){return Bt.tryAbandon},[Bt.tryAbandon]);for(var jt=useCallback(function(Jt){return canStart({lockAPI:Bt,registry:At,store:Rt,draggableId:Jt})},[Bt,At,Rt]),Ut=useCallback(function(Jt,en,tn){return tryStart({lockAPI:Bt,registry:At,contextId:lt,store:Rt,draggableId:Jt,forceSensorStop:en,sourceEvent:tn&&tn.sourceEvent?tn.sourceEvent:null})},[lt,Bt,At,Rt]),Gt=useCallback(function(Jt){return tryGetClosestDraggableIdFromEvent(lt,Jt)},[lt]),qt=useCallback(function(Jt){var en=At.draggable.findById(Jt);return en?en.options:null},[At.draggable]),Xt=useCallback(function(){Bt.isClaimed()&&(Bt.tryAbandon(),Rt.getState().phase!=="IDLE"&&Rt.dispatch(flush()))},[Bt,Rt]),Kt=useCallback(Bt.isClaimed,[Bt]),Zt=useMemo(function(){return{canGetLock:jt,tryGetLock:Ut,findClosestDraggableId:Gt,findOptionsForDraggable:qt,tryReleaseLock:Xt,isLockClaimed:Kt}},[jt,Ut,Gt,qt,Xt,Kt]),Qt=0;QtjsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[_e,lt,Rt]});function ListEditorField({toggleable:_e,deletable:lt,editable:Rt=!0,onChangeItem:At=()=>{},onDeleteItem:Pt=()=>{},extras:Dt,enabled:Lt=!1,editor:Bt=jsxRuntimeExports.jsx(DefaultListEditorInput,{}),value:Nt,id:jt,i:Ut=0,autoFocus:Gt,sortable:qt,button:Xt=!0,renderEditor:Kt=defaultEditorRenderer}){const Zt=useAcrylic(),Qt=usePaper(),[Jt,en]=reactExports.useState(null),tn=Xt?ButtonBase$1:Box$1;return jsxRuntimeExports.jsx(PublicDraggable,{index:Ut,draggableId:`${jt}`,children:(an,cn)=>jsxRuntimeExports.jsx("div",{ref:an.innerRef,...an.draggableProps,children:jsxRuntimeExports.jsx(Stack$1,{direction:"row",alignItems:"center",sx:{...Xt?{transition:un=>un.transitions.create("background"),"&:hover":{background:un=>un.palette.action.hover}}:void 0,...cn.isDragging?{...Qt(1),...Zt}:void 0},children:Kt==null?void 0:Kt({value:Nt,onValueChange:un=>At(jt??Ut,un,Lt),handle:qt&&jsxRuntimeExports.jsx(Flex,{...an.dragHandleProps,color:"text.secondary",sx:{flex:0,p:2},children:jsxRuntimeExports.jsx(DragHandleOutlined,{})}),content:jsxRuntimeExports.jsx(tn,{sx:{flex:1,display:"block",textAlign:"left",px:2},children:reactExports.cloneElement(Bt,{onDelete:()=>Pt(jt??Ut),autoFocus:Gt,value:Nt,key:jt??Ut,onValueChange:un=>At(jt??Ut,un,Lt),onChange:un=>At(jt??Ut,un.target.value,Lt),ref:un=>en(un)})}),extras:jsxRuntimeExports.jsxs(Flex,{sx:{flex:0,px:1},children:[_e&&jsxRuntimeExports.jsx(Switch$2,{color:"primary",edge:"end",onChange:(un,rn)=>At(jt??Ut,Nt,rn),checked:Lt}),Rt&&jsxRuntimeExports.jsx(IconButton$1,{edge:"end",onClick:()=>{Jt!=null&&Jt.focus&&Jt.focus()},children:jsxRuntimeExports.jsx(EditIcon,{})}),lt&&jsxRuntimeExports.jsx(IconButton$1,{onClick:()=>Pt(jt??Ut),children:jsxRuntimeExports.jsx(DeleteIcon,{})}),Dt&&Dt(Nt)]})})})})})}function reorder(_e,lt,Rt){const At=Array.from(_e),[Pt]=At.splice(lt,1);return At.splice(Rt,0,Pt),At}function Editor(_e){const{addItemLabel:lt="Add Item",UNSAFE_label:Rt,UNSAFE_text:At,onAddItem:Pt=()=>{},onDeleteItem:Dt=()=>{},items:Lt=[],placeholder:Bt,autoFocus:Nt,category:jt,order:Ut,onChange:Gt,addItemExtras:qt}=_e,Xt=usePaper(),Kt=useInitialRender(),Zt=useTheme(),[Qt,Jt]=reactExports.useState(Lt),[en,tn]=reactExports.useState(-1);reactExports.useEffect(()=>{const rn=setTimeout(()=>{Jt(Lt)},Zt.transitions.duration.standard);return()=>{clearTimeout(rn)}},[Lt,Jt,Zt.transitions.duration.standard]);const an=lodashExports$1.uniqBy([...Qt,...Lt],rn=>rn.id).map(rn=>Lt.find(sn=>rn.id===sn.id)??rn).map((rn,sn)=>{const{enabled:pn,editor:bn,value:gn,id:_n}=rn??{};return{value:gn,render:xn=>jsxRuntimeExports.jsx(Collapse$1,{in:!!Lt.find(ln=>ln.id===rn.id),unmountOnExit:!0,appear:!Kt,mountOnEnter:!0,children:jsxRuntimeExports.jsx(ListEditorField,{..._e,onDeleteItem:ln=>{Dt(ln),tn(-1)},enabled:pn,editor:bn,value:gn,id:_n,i:sn,autoFocus:Nt||sn===en,...xn})}),key:_n,in:!!Lt.find(xn=>xn.id===rn.id)}}),cn=lodashExports$1.sortBy(an,rn=>jt==null?void 0:jt(rn.value),rn=>Ut==null?void 0:Ut(rn.value)).map(rn=>({...rn,render:sn=>jsxRuntimeExports.jsx(Box$1,{children:rn.render(sn)},rn.key)}));return jsxRuntimeExports.jsx(DragDropContext,{onDragEnd:rn=>{if(!rn.destination)return;const sn=reorder(Lt,rn.source.index,rn.destination.index);Gt==null||Gt(sn),Jt(sn)},children:jsxRuntimeExports.jsxs(List$2,{subheader:Rt||At?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(ListSubheader$1,{disableSticky:!0,children:[Rt&&jsxRuntimeExports.jsx(Typography$1,{variant:"body1",gutterBottom:!0,color:"textPrimary",children:Rt}),At&&jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",gutterBottom:!0,style:{marginBottom:Zt.spacing(3)},children:At})]})}):void 0,children:[jsxRuntimeExports.jsx(Box$1,{mt:jt?-1:0,children:jsxRuntimeExports.jsx(ConnectedDroppable,{droppableId:"list",children:rn=>jsxRuntimeExports.jsxs("div",{...rn.droppableProps,ref:rn.innerRef,children:[(()=>{const sn=[];return cn.forEach((pn,bn)=>{jt&&un(cn,bn,pn)&&sn.push(jsxRuntimeExports.jsx(Collapse$1,{in:Lt.some(gn=>jt(gn.value)===jt(pn.value)),appear:!0,children:jsxRuntimeExports.jsx(Box$1,{pl:2,pb:2,pt:1,children:jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",children:jt(pn.value)})})},jt(pn.value))),sn.push(pn.render())}),sn})(),rn.placeholder]})})}),jsxRuntimeExports.jsx(Collapse$1,{in:!(Lt!=null&&Lt.length),children:jsxRuntimeExports.jsx(Box$1,{ml:2,mb:1,pt:jt?1:0,children:jsxRuntimeExports.jsx(Typography$1,{component:"div",color:"text.secondary",children:Bt??"No items"})})}),jsxRuntimeExports.jsxs(Stack$1,{p:2,pt:2,gap:2,direction:"row",children:[jsxRuntimeExports.jsx(Button$2,{disableElevation:!0,variant:"outlined",startIcon:jsxRuntimeExports.jsx(Add,{}),onClick:()=>{Pt(),tn(Lt.length)},sx:{...Xt(1)},children:jsxRuntimeExports.jsx(Box$1,{sx:{color:"text.primary"},children:lt})}),qt]})]})});function un(rn,sn,pn){return!!(jt&&(rn[sn-1]===void 0||jt(rn[sn-1].value)!==jt(pn.value)))}}function ListEditor({onChange:_e,value:lt,editor:Rt,create:At,onFocus:Pt,...Dt}){const[Lt,Bt]=reactExports.useState(lt??[]);function Nt(jt){Bt(jt),_e==null||_e(jt)}return reactExports.useEffect(()=>{Bt(lt??[])},[lt]),jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(Editor,{...Dt,items:Lt.map(jt=>({id:jt.key,value:jt,editor:Rt==null?void 0:Rt(jt)})),deletable:!0,editable:!1,onAddItem:()=>{const jt=nanoid$1();Nt==null||Nt([...Lt,{key:jt,...At==null?void 0:At()}]),lodashExports$1.defer(()=>Pt==null?void 0:Pt(jt))},onDeleteItem:jt=>Nt==null?void 0:Nt(lodashExports$1.filter(Lt,Ut=>Ut.key!==jt)),onChangeItem:(jt,Ut)=>Nt==null?void 0:Nt(lodashExports$1.map(Lt,Gt=>Gt.key===jt?Ut:Gt)),onChange:jt=>Nt==null?void 0:Nt(lodashExports$1.map(jt,Ut=>Ut.value))})})}const comparators=[{key:"equal",apply:({value:_e,reference:lt})=>_e===lt,needsReference:!0},{key:"less-than",apply:({value:_e,reference:lt})=>_e_e>lt,needsReference:!0},{key:"changed",apply:({value:_e,property:lt,step:Rt,node:At})=>{if(At.parent){const Pt=lodashExports$1.findLast(At.parent.events,Dt=>Dt.step({value:Bt,label:lodashExports$1.startCase(Bt)})),onChange:Bt=>At({type:Bt==="any"?void 0:Bt}),value:_e.type??"any"}),jsxRuntimeExports.jsx(Divider$1,{flexItem:!0,orientation:"vertical",sx:{mx:2}}),jsxRuntimeExports.jsx(SelectField,{placeholder:"Property",sx:{minWidth:140,textOverflow:"ellipsis",whiteSpace:"nowrap"},items:lodashExports$1.map(Rt,Bt=>({value:Bt,label:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lodashExports$1.last(Bt.split(".")),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(Typography$1,{color:"text.secondary",variant:"body2",component:"span",children:`event.${Bt}`})]})})),onChange:Bt=>At({property:Bt}),value:_e.property}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(SelectField,{placeholder:"Condition",items:comparators.map(Bt=>({value:Bt.key,label:lodashExports$1.startCase(Bt.key)})),value:((Pt=_e.condition)==null?void 0:Pt.key)??((Dt=comparators==null?void 0:comparators[0])==null?void 0:Dt.key),onChange:Bt=>At({condition:lodashExports$1.find(comparators,{key:Bt})})}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(TextField$1,{label:"Reference",fullWidth:!0,defaultValue:`${_e.reference??0}`,variant:"filled",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:Bt=>At({reference:+Bt.target.value}),type:"number",disabled:!((Lt=_e.condition)!=null&&Lt.needsReference)}),jsxRuntimeExports.jsx(Space,{sx:{px:2}}),jsxRuntimeExports.jsx(Switch,{checked:!!_e.active,onChange:(Bt,Nt)=>At({active:Nt}),sx:{mr:-4}})]})}function BreakpointListEditor({layer:_e}){var Lt,Bt,Nt;const{layer:lt,setLayer:Rt}=useLayer(_e),{breakpoints:At}=(lt==null?void 0:lt.source)??{};function Pt(jt){lt&&Rt(produce(lt,Ut=>lodashExports$1.set(Ut,"source.breakpoints",jt)))}const Dt=reactExports.useMemo(()=>{var jt,Ut,Gt;return lodashExports$1.chain((Gt=(Ut=(jt=lt==null?void 0:lt.source)==null?void 0:jt.trace)==null?void 0:Ut.content)==null?void 0:Gt.events).flatMap(lodashExports$1.keys).uniq().filter(qt=>qt!=="type").value()},[(Nt=(Bt=(Lt=lt==null?void 0:lt.source)==null?void 0:Lt.trace)==null?void 0:Bt.content)==null?void 0:Nt.events]);return jsxRuntimeExports.jsx(Box$1,{sx:{overflow:"auto hidden",width:"100%"},children:jsxRuntimeExports.jsx(Scroll,{x:!0,children:jsxRuntimeExports.jsx(Box$1,{sx:{minWidth:720,mb:2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,button:!1,icon:null,value:At,deletable:!0,editable:!1,editor:jt=>jsxRuntimeExports.jsx(BreakpointEditor,{value:jt,properties:Dt}),create:()=>({active:!0,property:Dt==null?void 0:Dt[0],condition:comparators==null?void 0:comparators[0],type:void 0,reference:0}),onChange:jt=>Pt(jt),addItemLabel:"Breakpoint",placeholder:"Get started by adding a breakpoint."})})})})}const divider$3=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1,height:_e=>_e.spacing(3),alignSelf:"auto"}});function DebugPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext(),[Dt,Lt]=reactExports.useState("standard"),{key:Bt,setKey:Nt,layers:jt,layer:Ut,setLayer:Gt}=useLayer(),{code:qt}=(Ut==null?void 0:Ut.source)??{};function Xt(Kt){return jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",children:Kt})}return jsxRuntimeExports.jsx(TabContext,{value:Dt,children:jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsxs(_e.Options,{children:[jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:Bt,items:lodashExports$1.map(jt,Kt=>({id:Kt.key,name:inferLayerName(Kt)})),onChange:Nt,arrow:!0,ellipsis:12}),divider$3,jsxRuntimeExports.jsxs(TabList$1,{onChange:(Kt,Zt)=>Lt(Zt),children:[jsxRuntimeExports.jsx(Tab$1,{label:"Standard",value:"standard",disabled:!Ut}),jsxRuntimeExports.jsx(Tab$1,{label:"Advanced",value:"advanced",disabled:!Ut})]})]}),jsxRuntimeExports.jsx(_e.Content,{children:Ut?jsxRuntimeExports.jsx(Box$1,{overflow:"auto",height:"100%",children:jsxRuntimeExports.jsxs(Box$1,{pt:6,height:"100%",children:[jsxRuntimeExports.jsx(TabPanel$1,{value:"standard",children:jsxRuntimeExports.jsxs(Box$1,{mx:-2,children:[jsxRuntimeExports.jsx(Box$1,{px:2,children:Xt("Breakpoints")}),jsxRuntimeExports.jsx(BreakpointListEditor,{layer:Ut==null?void 0:Ut.key})]})}),jsxRuntimeExports.jsx(TabPanel$1,{value:"advanced",sx:{p:0,height:"100%"},children:jsxRuntimeExports.jsx(ScriptEditor,{code:qt??makeTemplate(lodashExports$1.values(templates)),onChange:Kt=>Ut&&Gt(produce(Ut,Zt=>lodashExports$1.set(Zt,"source.code",Kt)))})})]})}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(DebuggerIcon,{}),label:"Debugger",secondary:"Configure breakpoints and other debugging options here. First, you'll need to load a trace."})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})})}const scriptRel="modulepreload",assetsURL=function(_e,lt){return new URL(_e,lt).href},seen={},__vitePreload=function _e(lt,Rt,At){if(!Rt||Rt.length===0)return lt();const Pt=document.getElementsByTagName("link");return Promise.all(Rt.map(Dt=>{if(Dt=assetsURL(Dt,At),Dt in seen)return;seen[Dt]=!0;const Lt=Dt.endsWith(".css"),Bt=Lt?'[rel="stylesheet"]':"";if(!!At)for(let Ut=Pt.length-1;Ut>=0;Ut--){const Gt=Pt[Ut];if(Gt.href===Dt&&(!Lt||Gt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${Dt}"]${Bt}`))return;const jt=document.createElement("link");if(jt.rel=Lt?"stylesheet":scriptRel,Lt||(jt.as="script",jt.crossOrigin=""),jt.href=Dt,document.head.appendChild(jt),Lt)return new Promise((Ut,Gt)=>{jt.addEventListener("load",Ut),jt.addEventListener("error",()=>Gt(new Error(`Unable to preload CSS for ${Dt}`)))})})).then(()=>lt()).catch(Dt=>{const Lt=new Event("vite:preloadError",{cancelable:!0});if(Lt.payload=Dt,window.dispatchEvent(Lt),!Lt.defaultPrevented)throw Dt})};function _typeof(_e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(lt){return typeof lt}:_typeof=function(lt){return lt&&typeof Symbol=="function"&<.constructor===Symbol&<!==Symbol.prototype?"symbol":typeof lt},_typeof(_e)}function _classCallCheck(_e,lt){if(!(_e instanceof lt))throw new TypeError("Cannot call a class as a function")}function _defineProperties(_e,lt){for(var Rt=0;Rt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(_e,lt,Rt){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Pt,Dt,Lt){var Bt=[null];Bt.push.apply(Bt,Dt);var Nt=Function.bind.apply(Pt,Bt),jt=new Nt;return Lt&&_setPrototypeOf(jt,Lt.prototype),jt},_construct.apply(null,arguments)}function _isNativeFunction(_e){return Function.toString.call(_e).indexOf("[native code]")!==-1}function _wrapNativeSuper(_e){var lt=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(At){if(At===null||!_isNativeFunction(At))return At;if(typeof At!="function")throw new TypeError("Super expression must either be null or a function");if(typeof lt<"u"){if(lt.has(At))return lt.get(At);lt.set(At,Pt)}function Pt(){return _construct(At,arguments,_getPrototypeOf(this).constructor)}return Pt.prototype=Object.create(At.prototype,{constructor:{value:Pt,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Pt,At)},_wrapNativeSuper(_e)}function _assertThisInitialized(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}function _possibleConstructorReturn(_e,lt){return lt&&(typeof lt=="object"||typeof lt=="function")?lt:_assertThisInitialized(_e)}function _createSuper(_e){var lt=_isNativeReflectConstruct();return function(){var At=_getPrototypeOf(_e),Pt;if(lt){var Dt=_getPrototypeOf(this).constructor;Pt=Reflect.construct(At,arguments,Dt)}else Pt=At.apply(this,arguments);return _possibleConstructorReturn(this,Pt)}}function _superPropBase(_e,lt){for(;!Object.prototype.hasOwnProperty.call(_e,lt)&&(_e=_getPrototypeOf(_e),_e!==null););return _e}function _get(_e,lt,Rt){return typeof Reflect<"u"&&Reflect.get?_get=Reflect.get:_get=function(Pt,Dt,Lt){var Bt=_superPropBase(Pt,Dt);if(Bt){var Nt=Object.getOwnPropertyDescriptor(Bt,Dt);return Nt.get?Nt.get.call(Lt):Nt.value}},_get(_e,lt,Rt||_e)}function _slicedToArray(_e,lt){return _arrayWithHoles(_e)||_iterableToArrayLimit(_e,lt)||_unsupportedIterableToArray(_e,lt)||_nonIterableRest()}function _toArray(_e){return _arrayWithHoles(_e)||_iterableToArray(_e)||_unsupportedIterableToArray(_e)||_nonIterableRest()}function _arrayWithHoles(_e){if(Array.isArray(_e))return _e}function _iterableToArray(_e){if(typeof Symbol<"u"&&Symbol.iterator in Object(_e))return Array.from(_e)}function _iterableToArrayLimit(_e,lt){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(_e)))){var Rt=[],At=!0,Pt=!1,Dt=void 0;try{for(var Lt=_e[Symbol.iterator](),Bt;!(At=(Bt=Lt.next()).done)&&(Rt.push(Bt.value),!(lt&&Rt.length===lt));At=!0);}catch(Nt){Pt=!0,Dt=Nt}finally{try{!At&&Lt.return!=null&&Lt.return()}finally{if(Pt)throw Dt}}return Rt}}function _unsupportedIterableToArray(_e,lt){if(_e){if(typeof _e=="string")return _arrayLikeToArray(_e,lt);var Rt=Object.prototype.toString.call(_e).slice(8,-1);if(Rt==="Object"&&_e.constructor&&(Rt=_e.constructor.name),Rt==="Map"||Rt==="Set")return Array.from(_e);if(Rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rt))return _arrayLikeToArray(_e,lt)}}function _arrayLikeToArray(_e,lt){(lt==null||lt>_e.length)&&(lt=_e.length);for(var Rt=0,At=new Array(lt);Rt"u"||_e[Symbol.iterator]==null){if(Array.isArray(_e)||(Rt=_unsupportedIterableToArray(_e))||lt&&_e&&typeof _e.length=="number"){Rt&&(_e=Rt);var At=0,Pt=function(){};return{s:Pt,n:function(){return At>=_e.length?{done:!0}:{done:!1,value:_e[At++]}},e:function(Nt){throw Nt},f:Pt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Dt=!0,Lt=!1,Bt;return{s:function(){Rt=_e[Symbol.iterator]()},n:function(){var Nt=Rt.next();return Dt=Nt.done,Nt},e:function(Nt){Lt=!0,Bt=Nt},f:function(){try{!Dt&&Rt.return!=null&&Rt.return()}finally{if(Lt)throw Bt}}}}var Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},Type={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},defaultTagPrefix="tag:yaml.org,2002:",defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function findLineStarts(_e){for(var lt=[0],Rt=_e.indexOf(` `);Rt!==-1;)Rt+=1,lt.push(Rt),Rt=_e.indexOf(` @@ -804,7 +810,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\ `)||null}}function resolveTagDirective(_e,lt){var Rt=_e.tagPrefixes,At=_slicedToArray(lt.parameters,2),Pt=At[0],Dt=At[1];if(!Pt||!Dt){var Lt="Insufficient parameters given for %TAG directive";throw new YAMLSemanticError(lt,Lt)}if(Rt.some(function(Nt){return Nt.handle===Pt})){var Bt="The %TAG directive must only be given at most once per handle in the same document.";throw new YAMLSemanticError(lt,Bt)}return{handle:Pt,prefix:Dt}}function resolveYamlDirective(_e,lt){var Rt=_slicedToArray(lt.parameters,1),At=Rt[0];if(lt.name==="YAML:1.0"&&(At="1.0"),!At){var Pt="Insufficient parameters given for %YAML directive";throw new YAMLSemanticError(lt,Pt)}if(!documentOptions[At]){var Dt=_e.version||_e.options.version,Lt="Document will be parsed as YAML ".concat(Dt," rather than YAML ").concat(At);_e.warnings.push(new YAMLWarning(lt,Lt))}return At}function parseDirectives(_e,lt,Rt){var At=[],Pt=!1,Dt=_createForOfIteratorHelper(lt),Lt;try{for(Dt.s();!(Lt=Dt.n()).done;){var Bt=Lt.value,Nt=Bt.comment,jt=Bt.name;switch(jt){case"TAG":try{_e.tagPrefixes.push(resolveTagDirective(_e,Bt))}catch(Xt){_e.errors.push(Xt)}Pt=!0;break;case"YAML":case"YAML:1.0":if(_e.version){var Ut="The %YAML directive must only be given at most once per document.";_e.errors.push(new YAMLSemanticError(Bt,Ut))}try{_e.version=resolveYamlDirective(_e,Bt)}catch(Xt){_e.errors.push(Xt)}Pt=!0;break;default:if(jt){var Gt="YAML only supports %TAG and %YAML directives, and not %".concat(jt);_e.warnings.push(new YAMLWarning(Bt,Gt))}}Nt&&At.push(Nt)}}catch(Xt){Dt.e(Xt)}finally{Dt.f()}if(Rt&&!Pt&&(_e.version||Rt.version||_e.options.version)==="1.1"){var qt=function(Kt){var Zt=Kt.handle,Qt=Kt.prefix;return{handle:Zt,prefix:Qt}};_e.tagPrefixes=Rt.tagPrefixes.map(qt),_e.version=Rt.version}_e.commentBefore=At.join(` `)||null}function assertCollection(_e){if(_e instanceof Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Document$1=function(){function _e(lt){_classCallCheck(this,_e),this.anchors=new Anchors(lt.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=lt,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return _createClass(_e,[{key:"add",value:function(Rt){return assertCollection(this.contents),this.contents.add(Rt)}},{key:"addIn",value:function(Rt,At){assertCollection(this.contents),this.contents.addIn(Rt,At)}},{key:"delete",value:function(Rt){return assertCollection(this.contents),this.contents.delete(Rt)}},{key:"deleteIn",value:function(Rt){return isEmptyPath(Rt)?this.contents==null?!1:(this.contents=null,!0):(assertCollection(this.contents),this.contents.deleteIn(Rt))}},{key:"getDefaults",value:function(){return _e.defaults[this.version]||_e.defaults[this.options.version]||{}}},{key:"get",value:function(Rt,At){return this.contents instanceof Collection?this.contents.get(Rt,At):void 0}},{key:"getIn",value:function(Rt,At){return isEmptyPath(Rt)?!At&&this.contents instanceof Scalar?this.contents.value:this.contents:this.contents instanceof Collection?this.contents.getIn(Rt,At):void 0}},{key:"has",value:function(Rt){return this.contents instanceof Collection?this.contents.has(Rt):!1}},{key:"hasIn",value:function(Rt){return isEmptyPath(Rt)?this.contents!==void 0:this.contents instanceof Collection?this.contents.hasIn(Rt):!1}},{key:"set",value:function(Rt,At){assertCollection(this.contents),this.contents.set(Rt,At)}},{key:"setIn",value:function(Rt,At){isEmptyPath(Rt)?this.contents=At:(assertCollection(this.contents),this.contents.setIn(Rt,At))}},{key:"setSchema",value:function(Rt,At){if(!(!Rt&&!At&&this.schema)){typeof Rt=="number"&&(Rt=Rt.toFixed(1)),Rt==="1.0"||Rt==="1.1"||Rt==="1.2"?(this.version?this.version=Rt:this.options.version=Rt,delete this.options.schema):Rt&&typeof Rt=="string"&&(this.options.schema=Rt),Array.isArray(At)&&(this.options.customTags=At);var Pt=Object.assign({},this.getDefaults(),this.options);this.schema=new Schema(Pt)}}},{key:"parse",value:function(Rt,At){this.options.keepCstNodes&&(this.cstNode=Rt),this.options.keepNodeTypes&&(this.type="DOCUMENT");var Pt=Rt.directives,Dt=Pt===void 0?[]:Pt,Lt=Rt.contents,Bt=Lt===void 0?[]:Lt,Nt=Rt.directivesEndMarker,jt=Rt.error,Ut=Rt.valueRange;if(jt&&(jt.source||(jt.source=this),this.errors.push(jt)),parseDirectives(this,Dt,At),Nt&&(this.directivesEndMarker=!0),this.range=Ut?[Ut.start,Ut.end]:null,this.setSchema(),this.anchors._cstAliases=[],parseContents(this,Bt),this.anchors.resolveNodes(),this.options.prettyErrors){var Gt=_createForOfIteratorHelper(this.errors),qt;try{for(Gt.s();!(qt=Gt.n()).done;){var Xt=qt.value;Xt instanceof YAMLError&&Xt.makePretty()}}catch(Jt){Gt.e(Jt)}finally{Gt.f()}var Kt=_createForOfIteratorHelper(this.warnings),Zt;try{for(Kt.s();!(Zt=Kt.n()).done;){var Qt=Zt.value;Qt instanceof YAMLError&&Qt.makePretty()}}catch(Jt){Kt.e(Jt)}finally{Kt.f()}}return this}},{key:"listNonDefaultTags",value:function(){return listTagNames(this.contents).filter(function(Rt){return Rt.indexOf(Schema.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(Rt,At){if(Rt[0]!=="!"||Rt[Rt.length-1]!=="!")throw new Error("Handle must start and end with !");if(At){var Pt=this.tagPrefixes.find(function(Dt){return Dt.handle===Rt});Pt?Pt.prefix=At:this.tagPrefixes.push({handle:Rt,prefix:At})}else this.tagPrefixes=this.tagPrefixes.filter(function(Dt){return Dt.handle!==Rt})}},{key:"toJSON",value:function(Rt,At){var Pt=this,Dt=this.options,Lt=Dt.keepBlobsInJSON,Bt=Dt.mapAsMap,Nt=Dt.maxAliasCount,jt=Lt&&(typeof Rt!="string"||!(this.contents instanceof Scalar)),Ut={doc:this,indentStep:" ",keep:jt,mapAsMap:jt&&!!Bt,maxAliasCount:Nt,stringify:stringify$1$1},Gt=Object.keys(this.anchors.map);Gt.length>0&&(Ut.anchors=new Map(Gt.map(function(en){return[Pt.anchors.map[en],{alias:[],aliasCount:0,count:1}]})));var qt=toJSON(this.contents,Rt,Ut);if(typeof At=="function"&&Ut.anchors){var Xt=_createForOfIteratorHelper(Ut.anchors.values()),Kt;try{for(Xt.s();!(Kt=Xt.n()).done;){var Zt=Kt.value,Qt=Zt.count,Jt=Zt.res;At(Jt,Qt)}}catch(en){Xt.e(en)}finally{Xt.f()}}return qt}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var Rt=this.options.indent;if(!Number.isInteger(Rt)||Rt<=0){var At=JSON.stringify(Rt);throw new Error('"indent" option must be a positive integer, not '.concat(At))}this.setSchema();var Pt=[],Dt=!1;if(this.version){var Lt="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?Lt="%YAML:1.0":this.version==="1.1"&&(Lt="%YAML 1.1")),Pt.push(Lt),Dt=!0}var Bt=this.listNonDefaultTags();this.tagPrefixes.forEach(function(Xt){var Kt=Xt.handle,Zt=Xt.prefix;Bt.some(function(Qt){return Qt.indexOf(Zt)===0})&&(Pt.push("%TAG ".concat(Kt," ").concat(Zt)),Dt=!0)}),(Dt||this.directivesEndMarker)&&Pt.push("---"),this.commentBefore&&((Dt||!this.directivesEndMarker)&&Pt.unshift(""),Pt.unshift(this.commentBefore.replace(/^/gm,"#")));var Nt={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(Rt),stringify:stringify$1$1},jt=!1,Ut=null;if(this.contents){this.contents instanceof Node$2&&(this.contents.spaceBefore&&(Dt||this.directivesEndMarker)&&Pt.push(""),this.contents.commentBefore&&Pt.push(this.contents.commentBefore.replace(/^/gm,"#")),Nt.forceBlockIndent=!!this.comment,Ut=this.contents.comment);var Gt=Ut?null:function(){return jt=!0},qt=stringify$1$1(this.contents,Nt,function(){return Ut=null},Gt);Pt.push(addComment(qt,"",Ut))}else this.contents!==void 0&&Pt.push(stringify$1$1(this.contents,Nt));return this.comment&&((!jt||Ut)&&Pt[Pt.length-1]!==""&&Pt.push(""),Pt.push(this.comment.replace(/^/gm,"#"))),Pt.join(` `)+` -`}}]),_e}();_defineProperty(Document$1,"defaults",documentOptions);function createNode$1(_e){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Rt=arguments.length>2?arguments[2]:void 0;Rt===void 0&&typeof lt=="string"&&(Rt=lt,lt=!0);var At=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),Pt=new Schema(At);return Pt.createNode(_e,lt,Rt)}var Document=function(_e){_inherits(Rt,_e);var lt=_createSuper(Rt);function Rt(At){return _classCallCheck(this,Rt),lt.call(this,Object.assign({},defaultOptions,At))}return Rt}(Document$1);function parseAllDocuments(_e,lt){var Rt=[],At,Pt=_createForOfIteratorHelper(parse$5(_e)),Dt;try{for(Pt.s();!(Dt=Pt.n()).done;){var Lt=Dt.value,Bt=new Document(lt);Bt.parse(Lt,At),Rt.push(Bt),At=Bt}}catch(Nt){Pt.e(Nt)}finally{Pt.f()}return Rt}function parseDocument(_e,lt){var Rt=parse$5(_e),At=new Document(lt).parse(Rt[0]);if(Rt.length>1){var Pt="Source contains multiple documents; please use YAML.parseAllDocuments()";At.errors.unshift(new YAMLSemanticError(Rt[1],Pt))}return At}function parse$4(_e,lt){var Rt=parseDocument(_e,lt);if(Rt.warnings.forEach(function(At){return warn(At)}),Rt.errors.length>0)throw Rt.errors[0];return Rt.toJSON()}function stringify$2(_e,lt){var Rt=new Document(lt);return Rt.contents=_e,String(Rt)}var YAML={createNode:createNode$1,defaultOptions,Document,parse:parse$4,parseAllDocuments,parseCST:parse$5,parseDocument,scalarOptions,stringify:stringify$2};const dist$3=Object.freeze(Object.defineProperty({__proto__:null,YAML},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(dist$3);var browser=require$$0.YAML;const paths=Object.assign({"/public/recipes/9-tiles.workspace":()=>__vitePreload(()=>import("./9-tiles-1f224294.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search.workspace":()=>__vitePreload(()=>import("./a-star-grid-search-ffae5751.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/dynamic-star-craft.workspace":()=>__vitePreload(()=>import("./dynamic-star-craft-6a733d35.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/rayscan.workspace":()=>__vitePreload(()=>import("./rayscan-202b7804.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/weighted-a-star.workspace":()=>__vitePreload(()=>import("./weighted-a-star-756c8812.js"),[],import.meta.url).then(_e=>_e.default)}),metaPaths=Object.assign({"/public/recipes/9-tiles.workspace.meta":()=>__vitePreload(()=>import("./9-tiles.workspace-621e8328.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search.workspace.meta":()=>__vitePreload(()=>import("./a-star-grid-search.workspace-8079d31e.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/dynamic-star-craft.workspace.meta":()=>__vitePreload(()=>import("./dynamic-star-craft.workspace-5fa26288.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/rayscan.workspace.meta":()=>__vitePreload(()=>import("./rayscan.workspace-b6c007ed.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/weighted-a-star.workspace.meta":()=>__vitePreload(()=>import("./weighted-a-star.workspace-13502ed5.js"),[],import.meta.url).then(_e=>_e.default)});function stripExtension(_e){return _e.split(".")[0]}function basename(_e){return _e.split("/").pop()}async function getMeta(_e){const lt=metaPaths[_e.replace(/workspace$/,"workspace.meta")],Rt=await(lt==null?void 0:lt());if(Rt){const At=await fetch(Rt);return browser.parse(await At.text())}}async function getFileInfo(_e,lt){return{name:lodashExports$1.chain(_e).thru(basename).thru(stripExtension).startCase().value(),path:await lt(),...await getMeta(_e)}}const makeAvatar=_e=>lt=>jsxRuntimeExports.jsx(Avatar$1,{sx:lt,children:_e});function getAuthor(_e){if(_e){try{const{protocol:lt,pathname:Rt}=new URL(_e);switch(lt){case"github:":return{name:Rt,avatar:At=>jsxRuntimeExports.jsx("a",{href:`https://github.com/${Rt}`,target:"_blank",rel:"noreferrer",children:jsxRuntimeExports.jsx(Avatar$1,{sx:At,src:`https://github.com/${Rt}.png`})})};default:break}}catch{}return{name:_e,avatar:makeAvatar(_e[0])}}return{name:"No author",avatar:makeAvatar()}}const ellipsisProps={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"};function FeatureCard({name:_e,description:lt,image:Rt,author:At,size:Pt,onOpenClick:Dt,...Lt}){const[{"appearance/acrylic":Bt}]=useSettings(),Nt=usePaper(),{name:jt,avatar:Ut}=reactExports.useMemo(()=>getAuthor(At),[At]);return jsxRuntimeExports.jsxs(Card$1,{variant:"outlined",sx:{...Nt(1),position:"relative",height:"100%"},...Lt,children:[Bt&&jsxRuntimeExports.jsx(Box$1,{sx:{zIndex:-1,filter:"blur(64px)",opacity:.15,position:"absolute",width:"100%",height:"100%",backgroundImage:`url("${Rt}")`,backgroundSize:"200%",backgroundPosition:"bottom right"}}),jsxRuntimeExports.jsx(CardHeader$1,{sx:{alignItems:"flex-start","> .MuiCardHeader-content":{overflow:"hidden"}},avatar:jsxRuntimeExports.jsx(Box$1,{sx:{...Nt(1),border:"none",borderRadius:1,width:64,height:64,overflow:"hidden"},children:jsxRuntimeExports.jsx(Box$1,{sx:{width:64,height:64,backgroundImage:`url("${Rt}")`,backgroundSize:"cover",backgroundPosition:"center"}})}),titleTypeProps:ellipsisProps,title:_e||"Untitled",subheaderTypeProps:ellipsisProps,subheader:jsxRuntimeExports.jsxs(Stack$1,{gap:2,sx:{pt:1,alignItems:"flex-start"},children:[jsxRuntimeExports.jsx(Box$1,{sx:{...ellipsisProps,maxWidth:"100%",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,whiteSpace:"break-spaces",height:60},children:lt||"No description"}),jsxRuntimeExports.jsxs(Stack$1,{direction:"row",alignItems:"center",gap:1,children:[Ut==null?void 0:Ut({width:18,height:18,fontSize:"0.8rem"}),jsxRuntimeExports.jsx(Typography$1,{variant:"caption",children:jt})]}),jsxRuntimeExports.jsx(Button,{onClick:Dt,startIcon:jsxRuntimeExports.jsx(WorkspacesOutlined,{}),sx:Nt(2),children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",gap:1,children:[jsxRuntimeExports.jsx(Typography$1,{children:"Open"}),!!Pt&&jsxRuntimeExports.jsxs(Typography$1,{color:"text.secondary",children:[lodashExports$1.round(Pt/1024/1024,2)," MB"]})]})})]})})]})}const CONTENT_WIDTH=940;function ExplorePage({template:_e}){const lt=useSnackbar(),{controls:Rt,onChange:At,state:Pt,dragHandle:Dt,isViewTree:Lt}=useViewTreeContext(),Bt=useSmallDisplay()||Lt,[Nt,jt]=reactExports.useState(""),[Ut,Gt]=reactExports.useState("explore"),{load:qt}=useWorkspace(),Xt=useLoadingState(),{result:Kt,loading:Zt}=useAsync(async()=>await map$6(lodashExports$1.entries(paths),en=>getFileInfo(...en)),[]),Qt=en=>Xt(async()=>{try{lt(`Loading ${basename(en)}...`);const tn=await fetch(en);tn.ok||lt(`Couldn't load ${basename(en)}`,"Network error",{error:!0});const an=await tn.blob(),cn=new File([an],basename(en),{type:an.type});qt(cn)}catch(tn){lt(`Couldn't load ${basename(en)}`,`${tn}`,{error:!0})}}),Jt=reactExports.useMemo(()=>lodashExports$1.filter(Kt,en=>lodashExports$1.upperCase(browser.stringify(en)).includes(lodashExports$1.upperCase(Nt))),[Nt,Kt]);return jsxRuntimeExports.jsx(TabContext,{value:Ut,children:jsxRuntimeExports.jsxs(_e,{onChange:At,stack:Pt,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Dt}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsxs(TabList$1,{onChange:(en,tn)=>Gt(tn),children:[jsxRuntimeExports.jsx(Tab$1,{label:"Examples",value:"explore"}),jsxRuntimeExports.jsx(Tab$1,{label:"Guides",value:"guides"})]})}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(Box$1,{sx:Bt?void 0:{p:4,maxWidth:CONTENT_WIDTH,mx:"auto"},children:jsxRuntimeExports.jsxs(Box$1,{pt:6,children:[jsxRuntimeExports.jsxs(TabPanel$1,{value:"explore",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(Typography$1,{variant:Bt?"h6":"h4",children:"Examples"}),jsxRuntimeExports.jsx(Typography$1,{variant:"subtitle2",color:"text.secondary",children:"Browse a library of included and community-made examples"})]}),jsxRuntimeExports.jsx(Box$1,{px:2,py:1,children:jsxRuntimeExports.jsx(TextField$1,{...textFieldProps,size:"small",hiddenLabel:!0,fullWidth:!0,sx:{maxWidth:480},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment$1,{position:"start",children:jsxRuntimeExports.jsx(SearchOutlined,{})})},onChange:en=>jt(en.target.value),placeholder:"Search examples"})}),Zt?jsxRuntimeExports.jsx(Box$1,{sx:{p:2},children:jsxRuntimeExports.jsx(CircularProgress$1,{})}):jsxRuntimeExports.jsx(Box$1,{sx:{p:1,display:"grid",gridAutoFlow:"row",gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 320px), 1fr))"},children:Jt.length?lodashExports$1.map(Jt,({name:en,path:tn,description:an,screenshots:cn,author:un,size:rn},sn)=>jsxRuntimeExports.jsx(Box$1,{sx:{p:1},children:jsxRuntimeExports.jsx(FeatureCard,{name:en,description:an??"No description",image:lodashExports$1.first(cn),author:un,onOpenClick:()=>Qt(tn),size:rn})},sn)):jsxRuntimeExports.jsx(Typography$1,{color:"text.secondary",sx:{p:1},children:"No results match your search."})})]}),jsxRuntimeExports.jsxs(TabPanel$1,{value:"guides",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(Typography$1,{variant:Bt?"h6":"h4",children:"Guides"}),jsxRuntimeExports.jsx(Typography$1,{variant:"subtitle2",color:"text.secondary",children:`Learn how to use ${name$2} and explore ${name$2} features`})]}),jsxRuntimeExports.jsxs(Stack$1,{sx:{p:2},gap:2,children:[jsxRuntimeExports.jsx(Typography$1,{children:"We're still working on this feature. Check out our documentation instead."}),jsxRuntimeExports.jsx(Button,{onClick:()=>window.open(homepage,"_blank"),startIcon:jsxRuntimeExports.jsx(LaunchOutlined,{}),children:"Open Documentation"})]})]})]})})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:Rt})]})})}function InfoPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext(),[Dt]=useLog();return jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:Dt.length?jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(List$2,{sx:{pt:6},children:lodashExports$1.map(Dt,(Lt,Bt)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(ListItemText$1,{primary:Lt.content,secondary:Lt.timestamp})}),jsxRuntimeExports.jsx(Divider$1,{})]},Bt))})}):jsxRuntimeExports.jsx(Placeholder$2,{pt:6,label:"Logs",icon:jsxRuntimeExports.jsx(LogsIcon,{})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})}const compositeOperations=["color","color-burn","color-dodge","copy","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","lighten","lighter","luminosity","multiply","overlay","saturation","screen","soft-light","source-atop","source-in","source-out","source-over","xor"];function useDraft(_e,lt,Rt=300,At=[]){const[Pt,Dt]=reactExports.useState(_e);reactExports.useEffect(()=>{_e&&Dt(lodashExports$1.merge(Pt,lodashExports$1.omit(_e,...At)))},[Dt,_e]);const Lt=reactExports.useMemo(()=>lodashExports$1.debounce(Bt=>lt==null?void 0:lt(Bt),Rt),[lt,Rt]);return[Pt,Bt=>{Dt(Bt),Lt(Bt)}]}function Component({value:_e,onValueChange:lt},Rt){var qt,Xt,Kt,Zt;const At=usePaper();useAcrylic();const[Pt,Dt]=useDraft(_e,lt,300,["name","source.type"]),Lt=Qt=>jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:Qt}),Bt=Qt=>jsxRuntimeExports.jsx(Typography$1,{variant:"body1",children:Qt}),Nt=(Qt,Jt)=>jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[Bt(Qt),jsxRuntimeExports.jsx(Space,{flex:1}),Jt]}),jt=Qt=>Qt.map(Jt=>({id:Jt,name:lodashExports$1.startCase(Jt)})),Ut=Pt.name||inferLayerName(_e),Gt=(Xt=(qt=getLayerHandler(_e))==null?void 0:qt.error)==null?void 0:Xt.call(qt,_e);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ManagedModal,{popover:!0,slotProps:{popover:{anchorOrigin:{horizontal:-12,vertical:-12}}},appBar:{children:"Edit Layer"},trigger:Qt=>{var Jt;return jsxRuntimeExports.jsx(ButtonBase$1,{onClick:Qt,className:Pt.key,sx:{flex:1,display:"block",textAlign:"left",px:2},children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",direction:"row",gap:2,children:[jsxRuntimeExports.jsx(Stack$1,{sx:{...At(.5),alignItems:"center",justifyContent:"center",width:36,height:36,color:"action.disabled"},children:getLayerHandler(_e).icon}),jsxRuntimeExports.jsxs(Box$1,{sx:{py:1.5,flex:1,width:0,ml:0,overflow:"hidden","> *":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[jsxRuntimeExports.jsx(Typography$1,{children:Ut}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:lodashExports$1.startCase((Jt=_e.source)==null?void 0:Jt.type)})]}),!!Gt&&jsxRuntimeExports.jsx(Tooltip$1,{title:Gt,children:jsxRuntimeExports.jsx(Chip$1,{sx:{mr:-2,...lodashExports$1.omit(At(1),"borderRadius"),color:en=>en.palette.error.main,flex:0},label:`${lodashExports$1.truncate(`${Gt}`,{length:8})}`,size:"small"})})]})})},children:jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(TextField$1,{sx:{mb:2},autoComplete:"off",autoFocus:!0,placeholder:inferLayerName(Pt),fullWidth:!0,variant:"filled",label:"Layer Name",defaultValue:Pt.name??"",onChange:Qt=>Dt==null?void 0:Dt(produce(Pt,Jt=>lodashExports$1.set(Jt,"name",Qt.target.value)))}),jsxRuntimeExports.jsxs(Box$1,{sx:{mx:-2,pb:1},children:[jsxRuntimeExports.jsx(Tabs$1,{variant:"fullWidth",onChange:(Qt,Jt)=>Dt==null?void 0:Dt(produce(Pt,en=>{lodashExports$1.set(en,"source",{type:Jt})})),value:((Kt=Pt.source)==null?void 0:Kt.type)??lodashExports$1.first(lodashExports$1.keys(layerHandlers))??"",children:lodashExports$1.keys(layerHandlers).map(Qt=>jsxRuntimeExports.jsx(Tab$1,{label:lodashExports$1.startCase(Qt),value:Qt},Qt))}),jsxRuntimeExports.jsx(Divider$1,{sx:{width:"100%"}})]}),Lt("Source Options"),((Zt=Pt.source)==null?void 0:Zt.type)&&reactExports.createElement(layerHandlers[Pt.source.type].editor,{onChange:Qt=>Dt(Qt(Pt)),value:Pt}),Lt("Layer Options"),Nt("Transparency",jsxRuntimeExports.jsx(FeaturePicker,{label:"Transparency",items:["0","25","50","75"].map(Qt=>({id:Qt,name:`${Qt}%`})),value:Pt.transparency??"0",arrow:!0,onChange:Qt=>Dt==null?void 0:Dt(produce(Pt,Jt=>lodashExports$1.set(Jt,"transparency",Qt)))})),Nt("Display Mode",jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,label:"Display Mode",value:Pt.displayMode??"source-over",items:jt(compositeOperations),onChange:Qt=>Dt==null?void 0:Dt(produce(Pt,Jt=>lodashExports$1.set(Jt,"displayMode",Qt)))}))]})})})}const LayerEditor=reactExports.forwardRef(Component);function LayerListEditor(){const[{layers:_e=[]},lt]=useLayers();return jsxRuntimeExports.jsx(Box$1,{sx:{overflow:"auto hidden",width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{sx:{mb:2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,icon:null,value:_e,deletable:!0,orderable:!0,extras:Rt=>jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:At=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Menu$1,{...bindMenu(At),children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{p:0},children:[{name:"Fit Layer",key:"fit-layer",action:()=>lt(({layers:Pt})=>({layers:lodashExports$1.map(Pt,Dt=>({...Dt,viewKey:Dt.key===(Rt==null?void 0:Rt.key)?nanoid$1():void 0}))}))}].map(({name:Pt,key:Dt,action:Lt})=>jsxRuntimeExports.jsx(MenuItem$1,{onClick:()=>{Lt==null||Lt(),At.close()},children:Pt},Dt))})}),jsxRuntimeExports.jsx(IconButton$1,{...bindTrigger(At),children:jsxRuntimeExports.jsx(MoreVertOutlined,{})})]})}),renderEditor:({extras:Rt,handle:At,value:Pt,onValueChange:Dt})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[At,jsxRuntimeExports.jsx(LayerEditor,{value:Pt,onValueChange:Dt}),Rt]}),create:()=>({source:{type:"trace",trace:{}}}),onChange:Rt=>requestIdleCallback(()=>lt(()=>({layers:Rt})),{timeout:300}),addItemLabel:"Layer",placeholder:jsxRuntimeExports.jsx(Box$1,{pt:2,children:"Get started by adding a layer."}),onFocus:Rt=>{const At=lodashExports$1.head(document.getElementsByClassName(Rt));At&&"click"in At&&typeof At.click=="function"&&At.click()}})})})}function LayersPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext();return jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Scroll,{y:!0,style:{width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{pt:6,children:jsxRuntimeExports.jsx(LayerListEditor,{})})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})}var dist$2={},client={},models={};(function(_e){var lt=commonjsGlobal&&commonjsGlobal.__extends||function(){var Xt=function(Kt,Zt){return Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qt,Jt){Qt.__proto__=Jt}||function(Qt,Jt){for(var en in Jt)Object.prototype.hasOwnProperty.call(Jt,en)&&(Qt[en]=Jt[en])},Xt(Kt,Zt)};return function(Kt,Zt){if(typeof Zt!="function"&&Zt!==null)throw new TypeError("Class extends value "+String(Zt)+" is not a constructor or null");Xt(Kt,Zt);function Qt(){this.constructor=Kt}Kt.prototype=Zt===null?Object.create(Zt):(Qt.prototype=Zt.prototype,new Qt)}}();Object.defineProperty(_e,"__esModule",{value:!0}),_e.createJSONRPCNotification=_e.createJSONRPCRequest=_e.createJSONRPCSuccessResponse=_e.createJSONRPCErrorResponse=_e.JSONRPCErrorCode=_e.JSONRPCErrorException=_e.isJSONRPCResponses=_e.isJSONRPCResponse=_e.isJSONRPCRequests=_e.isJSONRPCRequest=_e.isJSONRPCID=_e.JSONRPC=void 0,_e.JSONRPC="2.0";var Rt=function(Xt){return typeof Xt=="string"||typeof Xt=="number"||Xt===null};_e.isJSONRPCID=Rt;var At=function(Xt){return Xt.jsonrpc===_e.JSONRPC&&Xt.method!==void 0&&Xt.result===void 0&&Xt.error===void 0};_e.isJSONRPCRequest=At;var Pt=function(Xt){return Array.isArray(Xt)&&Xt.every(_e.isJSONRPCRequest)};_e.isJSONRPCRequests=Pt;var Dt=function(Xt){return Xt.jsonrpc===_e.JSONRPC&&Xt.id!==void 0&&(Xt.result!==void 0||Xt.error!==void 0)};_e.isJSONRPCResponse=Dt;var Lt=function(Xt){return Array.isArray(Xt)&&Xt.every(_e.isJSONRPCResponse)};_e.isJSONRPCResponses=Lt;var Bt=function(Xt,Kt,Zt){var Qt={code:Xt,message:Kt};return Zt!=null&&(Qt.data=Zt),Qt},Nt=function(Xt){lt(Kt,Xt);function Kt(Zt,Qt,Jt){var en=Xt.call(this,Zt)||this;return Object.setPrototypeOf(en,Kt.prototype),en.code=Qt,en.data=Jt,en}return Kt.prototype.toObject=function(){return Bt(this.code,this.message,this.data)},Kt}(Error);_e.JSONRPCErrorException=Nt,function(Xt){Xt[Xt.ParseError=-32700]="ParseError",Xt[Xt.InvalidRequest=-32600]="InvalidRequest",Xt[Xt.MethodNotFound=-32601]="MethodNotFound",Xt[Xt.InvalidParams=-32602]="InvalidParams",Xt[Xt.InternalError=-32603]="InternalError"}(_e.JSONRPCErrorCode||(_e.JSONRPCErrorCode={}));var jt=function(Xt,Kt,Zt,Qt){return{jsonrpc:_e.JSONRPC,id:Xt,error:Bt(Kt,Zt,Qt)}};_e.createJSONRPCErrorResponse=jt;var Ut=function(Xt,Kt){return{jsonrpc:_e.JSONRPC,id:Xt,result:Kt??null}};_e.createJSONRPCSuccessResponse=Ut;var Gt=function(Xt,Kt,Zt){return{jsonrpc:_e.JSONRPC,id:Xt,method:Kt,params:Zt}};_e.createJSONRPCRequest=Gt;var qt=function(Xt,Kt){return{jsonrpc:_e.JSONRPC,method:Xt,params:Kt}};_e.createJSONRPCNotification=qt})(models);var internal$1={};Object.defineProperty(internal$1,"__esModule",{value:!0});internal$1.DefaultErrorCode=void 0;internal$1.DefaultErrorCode=0;var __awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(_e,lt,Rt,At){function Pt(Dt){return Dt instanceof Rt?Dt:new Rt(function(Lt){Lt(Dt)})}return new(Rt||(Rt=Promise))(function(Dt,Lt){function Bt(Ut){try{jt(At.next(Ut))}catch(Gt){Lt(Gt)}}function Nt(Ut){try{jt(At.throw(Ut))}catch(Gt){Lt(Gt)}}function jt(Ut){Ut.done?Dt(Ut.value):Pt(Ut.value).then(Bt,Nt)}jt((At=At.apply(_e,lt||[])).next())})},__generator$2=commonjsGlobal&&commonjsGlobal.__generator||function(_e,lt){var Rt={label:0,sent:function(){if(Dt[0]&1)throw Dt[1];return Dt[1]},trys:[],ops:[]},At,Pt,Dt,Lt;return Lt={next:Bt(0),throw:Bt(1),return:Bt(2)},typeof Symbol=="function"&&(Lt[Symbol.iterator]=function(){return this}),Lt;function Bt(jt){return function(Ut){return Nt([jt,Ut])}}function Nt(jt){if(At)throw new TypeError("Generator is already executing.");for(;Lt&&(Lt=0,jt[0]&&(Rt=0)),Rt;)try{if(At=1,Pt&&(Dt=jt[0]&2?Pt.return:jt[0]?Pt.throw||((Dt=Pt.return)&&Dt.call(Pt),0):Pt.next)&&!(Dt=Dt.call(Pt,jt[1])).done)return Dt;switch(Pt=0,Dt&&(jt=[jt[0]&2,Dt.value]),jt[0]){case 0:case 1:Dt=jt;break;case 4:return Rt.label++,{value:jt[1],done:!1};case 5:Rt.label++,Pt=jt[1],jt=[0];continue;case 7:jt=Rt.ops.pop(),Rt.trys.pop();continue;default:if(Dt=Rt.trys,!(Dt=Dt.length>0&&Dt[Dt.length-1])&&(jt[0]===6||jt[0]===2)){Rt=0;continue}if(jt[0]===3&&(!Dt||jt[1]>Dt[0]&&jt[1]0&&Dt[Dt.length-1])&&(jt[0]===6||jt[0]===2)){Rt=0;continue}if(jt[0]===3&&(!Dt||jt[1]>Dt[0]&&jt[1]0&&Dt[Dt.length-1])&&(jt[0]===6||jt[0]===2)){Rt=0;continue}if(jt[0]===3&&(!Dt||jt[1]>Dt[0]&&jt[1]{const Pt=({data:Dt})=>{Dt.id===At.id&&(this.rpc.receive(Dt),this.worker.removeEventListener("message",Pt))};this.worker.postMessage(At),this.worker.addEventListener("message",Pt)})}connect(){return this.worker.postMessage(this.options.url),new Promise(Rt=>{const At=()=>{Rt(),this.worker.removeEventListener("message",At)};this.worker.addEventListener("message",At)})}async disconnect(){this.worker.terminate()}async call(Rt,At){return await this.rpc.request(Rt,At)}}var requiresPort=function _e(lt,Rt){if(Rt=Rt.split(":")[0],lt=+lt,!lt)return!1;switch(Rt){case"http":case"ws":return lt!==80;case"https":case"wss":return lt!==443;case"ftp":return lt!==21;case"gopher":return lt!==70;case"file":return!1}return lt!==0},querystringify$1={},has$4=Object.prototype.hasOwnProperty,undef;function decode$3(_e){try{return decodeURIComponent(_e.replace(/\+/g," "))}catch{return null}}function encode$3(_e){try{return encodeURIComponent(_e)}catch{return null}}function querystring$1(_e){for(var lt=/([^=?#&]+)=?([^&]*)/g,Rt={},At;At=lt.exec(_e);){var Pt=decode$3(At[1]),Dt=decode$3(At[2]);Pt===null||Dt===null||Pt in Rt||(Rt[Pt]=Dt)}return Rt}function querystringify(_e,lt){lt=lt||"";var Rt=[],At,Pt;typeof lt!="string"&&(lt="?");for(Pt in _e)if(has$4.call(_e,Pt)){if(At=_e[Pt],!At&&(At===null||At===undef||isNaN(At))&&(At=""),Pt=encode$3(Pt),At=encode$3(At),Pt===null||At===null)continue;Rt.push(Pt+"="+At)}return Rt.length?lt+Rt.join("&"):""}querystringify$1.stringify=querystringify;querystringify$1.parse=querystring$1;var required=requiresPort,qs=querystringify$1,controlOrWhitespace=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,CRHTLF=/[\n\r\t]/g,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,port=/:\d+$/,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/;function trimLeft(_e){return(_e||"").toString().replace(controlOrWhitespace,"")}var rules=[["#","hash"],["?","query"],function _e(lt,Rt){return isSpecial(Rt.protocol)?lt.replace(/\\/g,"/"):lt},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(_e){var lt;typeof window<"u"?lt=window:typeof commonjsGlobal<"u"?lt=commonjsGlobal:typeof self<"u"?lt=self:lt={};var Rt=lt.location||{};_e=_e||Rt;var At={},Pt=typeof _e,Dt;if(_e.protocol==="blob:")At=new Url$1(unescape(_e.pathname),{});else if(Pt==="string"){At=new Url$1(_e,{});for(Dt in ignore)delete At[Dt]}else if(Pt==="object"){for(Dt in _e)Dt in ignore||(At[Dt]=_e[Dt]);At.slashes===void 0&&(At.slashes=slashes.test(_e.href))}return At}function isSpecial(_e){return _e==="file:"||_e==="ftp:"||_e==="http:"||_e==="https:"||_e==="ws:"||_e==="wss:"}function extractProtocol(_e,lt){_e=trimLeft(_e),_e=_e.replace(CRHTLF,""),lt=lt||{};var Rt=protocolre.exec(_e),At=Rt[1]?Rt[1].toLowerCase():"",Pt=!!Rt[2],Dt=!!Rt[3],Lt=0,Bt;return Pt?Dt?(Bt=Rt[2]+Rt[3]+Rt[4],Lt=Rt[2].length+Rt[3].length):(Bt=Rt[2]+Rt[4],Lt=Rt[2].length):Dt?(Bt=Rt[3]+Rt[4],Lt=Rt[3].length):Bt=Rt[4],At==="file:"?Lt>=2&&(Bt=Bt.slice(2)):isSpecial(At)?Bt=Rt[4]:At?Pt&&(Bt=Bt.slice(2)):Lt>=2&&isSpecial(lt.protocol)&&(Bt=Rt[4]),{protocol:At,slashes:Pt||isSpecial(At),slashesCount:Lt,rest:Bt}}function resolve$1(_e,lt){if(_e==="")return lt;for(var Rt=(lt||"/").split("/").slice(0,-1).concat(_e.split("/")),At=Rt.length,Pt=Rt[At-1],Dt=!1,Lt=0;At--;)Rt[At]==="."?Rt.splice(At,1):Rt[At]===".."?(Rt.splice(At,1),Lt++):Lt&&(At===0&&(Dt=!0),Rt.splice(At,1),Lt--);return Dt&&Rt.unshift(""),(Pt==="."||Pt==="..")&&Rt.push(""),Rt.join("/")}function Url$1(_e,lt,Rt){if(_e=trimLeft(_e),_e=_e.replace(CRHTLF,""),!(this instanceof Url$1))return new Url$1(_e,lt,Rt);var At,Pt,Dt,Lt,Bt,Nt,jt=rules.slice(),Ut=typeof lt,Gt=this,qt=0;for(Ut!=="object"&&Ut!=="string"&&(Rt=lt,lt=null),Rt&&typeof Rt!="function"&&(Rt=qs.parse),lt=lolcation(lt),Pt=extractProtocol(_e||"",lt),At=!Pt.protocol&&!Pt.slashes,Gt.slashes=Pt.slashes||At&<.slashes,Gt.protocol=Pt.protocol||lt.protocol||"",_e=Pt.rest,(Pt.protocol==="file:"&&(Pt.slashesCount!==2||windowsDriveLetter.test(_e))||!Pt.slashes&&(Pt.protocol||Pt.slashesCount<2||!isSpecial(Gt.protocol)))&&(jt[3]=[/(.*)/,"pathname"]);qt{switch(_e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:Rt}=lt;try{return JSON.parse((Rt==null?void 0:Rt.content)??"")}catch{return{}}}}}};class NativeTransport extends EventEmitter$2{constructor(Rt){super();Nm(this,"handler");this.options=Rt;const{hostname:At}=url$2(Rt.url);this.handler=internal[At]}async connect(){}async disconnect(){}async call(Rt,At){return await this.handler(Rt,At)}}const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(_e=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_e]]=_e});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=_e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e&&_e.buffer instanceof ArrayBuffer,encodePacket=({type:_e,data:lt},Rt,At)=>withNativeBlob$1&< instanceof Blob?Rt?At(lt):encodeBlobAsBase64(lt,At):withNativeArrayBuffer$2&&(lt instanceof ArrayBuffer||isView$1(lt))?Rt?At(lt):encodeBlobAsBase64(new Blob([lt]),At):At(PACKET_TYPES[_e]+(lt||"")),encodeBlobAsBase64=(_e,lt)=>{const Rt=new FileReader;return Rt.onload=function(){const At=Rt.result.split(",")[1];lt("b"+(At||""))},Rt.readAsDataURL(_e)};function toArray(_e){return _e instanceof Uint8Array?_e:_e instanceof ArrayBuffer?new Uint8Array(_e):new Uint8Array(_e.buffer,_e.byteOffset,_e.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(_e,lt){if(withNativeBlob$1&&_e.data instanceof Blob)return _e.data.arrayBuffer().then(toArray).then(lt);if(withNativeArrayBuffer$2&&(_e.data instanceof ArrayBuffer||isView$1(_e.data)))return lt(toArray(_e.data));encodePacket(_e,!1,Rt=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),lt(TEXT_ENCODER.encode(Rt))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let _e=0;_e{let lt=_e.length*.75,Rt=_e.length,At,Pt=0,Dt,Lt,Bt,Nt;_e[_e.length-1]==="="&&(lt--,_e[_e.length-2]==="="&<--);const jt=new ArrayBuffer(lt),Ut=new Uint8Array(jt);for(At=0;At>4,Ut[Pt++]=(Lt&15)<<4|Bt>>2,Ut[Pt++]=(Bt&3)<<6|Nt&63;return jt},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(_e,lt)=>{if(typeof _e!="string")return{type:"message",data:mapBinary(_e,lt)};const Rt=_e.charAt(0);return Rt==="b"?{type:"message",data:decodeBase64Packet(_e.substring(1),lt)}:PACKET_TYPES_REVERSE[Rt]?_e.length>1?{type:PACKET_TYPES_REVERSE[Rt],data:_e.substring(1)}:{type:PACKET_TYPES_REVERSE[Rt]}:ERROR_PACKET},decodeBase64Packet=(_e,lt)=>{if(withNativeArrayBuffer$1){const Rt=decode$2(_e);return mapBinary(Rt,lt)}else return{base64:!0,data:_e}},mapBinary=(_e,lt)=>{switch(lt){case"blob":return _e instanceof Blob?_e:new Blob([_e]);case"arraybuffer":default:return _e instanceof ArrayBuffer?_e:_e.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(_e,lt)=>{const Rt=_e.length,At=new Array(Rt);let Pt=0;_e.forEach((Dt,Lt)=>{encodePacket(Dt,!1,Bt=>{At[Lt]=Bt,++Pt===Rt&<(At.join(SEPARATOR))})})},decodePayload=(_e,lt)=>{const Rt=_e.split(SEPARATOR),At=[];for(let Pt=0;Pt{const At=Rt.length;let Pt;if(At<126)Pt=new Uint8Array(1),new DataView(Pt.buffer).setUint8(0,At);else if(At<65536){Pt=new Uint8Array(3);const Dt=new DataView(Pt.buffer);Dt.setUint8(0,126),Dt.setUint16(1,At)}else{Pt=new Uint8Array(9);const Dt=new DataView(Pt.buffer);Dt.setUint8(0,127),Dt.setBigUint64(1,BigInt(At))}_e.data&&typeof _e.data!="string"&&(Pt[0]|=128),lt.enqueue(Pt),lt.enqueue(Rt)})}})}let TEXT_DECODER;function totalLength(_e){return _e.reduce((lt,Rt)=>lt+Rt.length,0)}function concatChunks(_e,lt){if(_e[0].length===lt)return _e.shift();const Rt=new Uint8Array(lt);let At=0;for(let Pt=0;PtMath.pow(2,53-32)-1){Bt.enqueue(ERROR_PACKET);break}Pt=Ut*Math.pow(2,32)+jt.getUint32(4),At=3}else{if(totalLength(Rt)_e){Bt.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(_e){if(_e)return mixin(_e)}function mixin(_e){for(var lt in Emitter.prototype)_e[lt]=Emitter.prototype[lt];return _e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(_e,lt){return this._callbacks=this._callbacks||{},(this._callbacks["$"+_e]=this._callbacks["$"+_e]||[]).push(lt),this};Emitter.prototype.once=function(_e,lt){function Rt(){this.off(_e,Rt),lt.apply(this,arguments)}return Rt.fn=lt,this.on(_e,Rt),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(_e,lt){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Rt=this._callbacks["$"+_e];if(!Rt)return this;if(arguments.length==1)return delete this._callbacks["$"+_e],this;for(var At,Pt=0;Pttypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(_e,...lt){return lt.reduce((Rt,At)=>(_e.hasOwnProperty(At)&&(Rt[At]=_e[At]),Rt),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(_e,lt){lt.useNativeTimers?(_e.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),_e.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(_e.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),_e.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(_e){return typeof _e=="string"?utf8Length(_e):Math.ceil((_e.byteLength||_e.size)*BASE64_OVERHEAD)}function utf8Length(_e){let lt=0,Rt=0;for(let At=0,Pt=_e.length;At=57344?Rt+=3:(At++,Rt+=4);return Rt}function encode$2(_e){let lt="";for(let Rt in _e)_e.hasOwnProperty(Rt)&&(lt.length&&(lt+="&"),lt+=encodeURIComponent(Rt)+"="+encodeURIComponent(_e[Rt]));return lt}function decode$1(_e){let lt={},Rt=_e.split("&");for(let At=0,Pt=Rt.length;At0);return lt}function yeast(){const _e=encode$1(+new Date);return _e!==prev?(seed=0,prev=_e):_e+"."+encode$1(seed++)}for(;i$2{this.readyState="paused",lt()};if(this.polling||!this.writable){let At=0;this.polling&&(At++,this.once("pollComplete",function(){--At||Rt()})),this.writable||(At++,this.once("drain",function(){--At||Rt()}))}else Rt()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(lt){const Rt=At=>{if(this.readyState==="opening"&&At.type==="open"&&this.onOpen(),At.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(At)};decodePayload(lt,this.socket.binaryType).forEach(Rt),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const lt=()=>{this.write([{type:"close"}])};this.readyState==="open"?lt():this.once("open",lt)}write(lt){this.writable=!1,encodePayload(lt,Rt=>{this.doWrite(Rt,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const lt=this.opts.secure?"https":"http",Rt=this.query||{};return this.opts.timestampRequests!==!1&&(Rt[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!Rt.sid&&(Rt.b64=1),this.createUri(lt,Rt)}request(lt={}){return Object.assign(lt,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),lt)}doWrite(lt,Rt){const At=this.request({method:"POST",data:lt});At.on("success",Rt),At.on("error",(Pt,Dt)=>{this.onError("xhr post error",Pt,Dt)})}doPoll(){const lt=this.request();lt.on("data",this.onData.bind(this)),lt.on("error",(Rt,At)=>{this.onError("xhr poll error",Rt,At)}),this.pollXhr=lt}}class Request extends Emitter{constructor(lt,Rt){super(),installTimerFunctions(this,Rt),this.opts=Rt,this.method=Rt.method||"GET",this.uri=lt,this.data=Rt.data!==void 0?Rt.data:null,this.create()}create(){var lt;const Rt=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");Rt.xdomain=!!this.opts.xd;const At=this.xhr=new XHR(Rt);try{At.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){At.setDisableHeaderCheck&&At.setDisableHeaderCheck(!0);for(let Pt in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(Pt)&&At.setRequestHeader(Pt,this.opts.extraHeaders[Pt])}}catch{}if(this.method==="POST")try{At.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{At.setRequestHeader("Accept","*/*")}catch{}(lt=this.opts.cookieJar)===null||lt===void 0||lt.addCookies(At),"withCredentials"in At&&(At.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(At.timeout=this.opts.requestTimeout),At.onreadystatechange=()=>{var Pt;At.readyState===3&&((Pt=this.opts.cookieJar)===null||Pt===void 0||Pt.parseCookies(At)),At.readyState===4&&(At.status===200||At.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof At.status=="number"?At.status:0)},0))},At.send(this.data)}catch(Pt){this.setTimeoutFn(()=>{this.onError(Pt)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(lt){this.emitReserved("error",lt,this.xhr),this.cleanup(!0)}cleanup(lt){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty$1,lt)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const lt=this.xhr.responseText;lt!==null&&(this.emitReserved("data",lt),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const _e="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(_e,unloadHandler,!1)}}function unloadHandler(){for(let _e in Request.requests)Request.requests.hasOwnProperty(_e)&&Request.requests[_e].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?lt=>Promise.resolve().then(lt):(lt,Rt)=>Rt(lt,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(lt){super(lt),this.supportsBinary=!lt.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const lt=this.uri(),Rt=this.opts.protocols,At=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(At.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?Rt?new WebSocket(lt,Rt):new WebSocket(lt):new WebSocket(lt,Rt,At)}catch(Pt){return this.emitReserved("error",Pt)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=lt=>this.onClose({description:"websocket connection closed",context:lt}),this.ws.onmessage=lt=>this.onData(lt.data),this.ws.onerror=lt=>this.onError("websocket error",lt)}write(lt){this.writable=!1;for(let Rt=0;Rt{const Lt={};try{usingBrowserWebSocket&&this.ws.send(Dt)}catch{}Pt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const lt=this.opts.secure?"wss":"ws",Rt=this.query||{};return this.opts.timestampRequests&&(Rt[this.opts.timestampParam]=yeast()),this.supportsBinary||(Rt.b64=1),this.createUri(lt,Rt)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(lt=>{this.onError("webtransport error",lt)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(lt=>{const Rt=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),At=lt.readable.pipeThrough(Rt).getReader(),Pt=createPacketEncoderStream();Pt.readable.pipeTo(lt.writable),this.writer=Pt.writable.getWriter();const Dt=()=>{At.read().then(({done:Bt,value:Nt})=>{Bt||(this.onPacket(Nt),Dt())}).catch(Bt=>{})};Dt();const Lt={type:"open"};this.query.sid&&(Lt.data=`{"sid":"${this.query.sid}"}`),this.writer.write(Lt).then(()=>this.onOpen())})}))}write(lt){this.writable=!1;for(let Rt=0;Rt{Pt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var lt;(lt=this.transport)===null||lt===void 0||lt.close()}}const transports$2={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse$3(_e){if(_e.length>2e3)throw"URI too long";const lt=_e,Rt=_e.indexOf("["),At=_e.indexOf("]");Rt!=-1&&At!=-1&&(_e=_e.substring(0,Rt)+_e.substring(Rt,At).replace(/:/g,";")+_e.substring(At,_e.length));let Pt=re.exec(_e||""),Dt={},Lt=14;for(;Lt--;)Dt[parts[Lt]]=Pt[Lt]||"";return Rt!=-1&&At!=-1&&(Dt.source=lt,Dt.host=Dt.host.substring(1,Dt.host.length-1).replace(/;/g,":"),Dt.authority=Dt.authority.replace("[","").replace("]","").replace(/;/g,":"),Dt.ipv6uri=!0),Dt.pathNames=pathNames(Dt,Dt.path),Dt.queryKey=queryKey(Dt,Dt.query),Dt}function pathNames(_e,lt){const Rt=/\/{2,9}/g,At=lt.replace(Rt,"/").split("/");return(lt.slice(0,1)=="/"||lt.length===0)&&At.splice(0,1),lt.slice(-1)=="/"&&At.splice(At.length-1,1),At}function queryKey(_e,lt){const Rt={};return lt.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(At,Pt,Dt){Pt&&(Rt[Pt]=Dt)}),Rt}let Socket$1=class Fm extends Emitter{constructor(lt,Rt={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],lt&&typeof lt=="object"&&(Rt=lt,lt=null),lt?(lt=parse$3(lt),Rt.hostname=lt.host,Rt.secure=lt.protocol==="https"||lt.protocol==="wss",Rt.port=lt.port,lt.query&&(Rt.query=lt.query)):Rt.host&&(Rt.hostname=parse$3(Rt.host).host),installTimerFunctions(this,Rt),this.secure=Rt.secure!=null?Rt.secure:typeof location<"u"&&location.protocol==="https:",Rt.hostname&&!Rt.port&&(Rt.port=this.secure?"443":"80"),this.hostname=Rt.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=Rt.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=Rt.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},Rt),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode$1(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(lt){const Rt=Object.assign({},this.opts.query);Rt.EIO=protocol$1,Rt.transport=lt,this.id&&(Rt.sid=this.id);const At=Object.assign({},this.opts,{query:Rt,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[lt]);return new transports$2[lt](At)}open(){let lt;if(this.opts.rememberUpgrade&&Fm.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)lt="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else lt=this.transports[0];this.readyState="opening";try{lt=this.createTransport(lt)}catch{this.transports.shift(),this.open();return}lt.open(),this.setTransport(lt)}setTransport(lt){this.transport&&this.transport.removeAllListeners(),this.transport=lt,lt.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",Rt=>this.onClose("transport close",Rt))}probe(lt){let Rt=this.createTransport(lt),At=!1;Fm.priorWebsocketSuccess=!1;const Pt=()=>{At||(Rt.send([{type:"ping",data:"probe"}]),Rt.once("packet",Gt=>{if(!At)if(Gt.type==="pong"&&Gt.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",Rt),!Rt)return;Fm.priorWebsocketSuccess=Rt.name==="websocket",this.transport.pause(()=>{At||this.readyState!=="closed"&&(Ut(),this.setTransport(Rt),Rt.send([{type:"upgrade"}]),this.emitReserved("upgrade",Rt),Rt=null,this.upgrading=!1,this.flush())})}else{const qt=new Error("probe error");qt.transport=Rt.name,this.emitReserved("upgradeError",qt)}}))};function Dt(){At||(At=!0,Ut(),Rt.close(),Rt=null)}const Lt=Gt=>{const qt=new Error("probe error: "+Gt);qt.transport=Rt.name,Dt(),this.emitReserved("upgradeError",qt)};function Bt(){Lt("transport closed")}function Nt(){Lt("socket closed")}function jt(Gt){Rt&&Gt.name!==Rt.name&&Dt()}const Ut=()=>{Rt.removeListener("open",Pt),Rt.removeListener("error",Lt),Rt.removeListener("close",Bt),this.off("close",Nt),this.off("upgrading",jt)};Rt.once("open",Pt),Rt.once("error",Lt),Rt.once("close",Bt),this.once("close",Nt),this.once("upgrading",jt),this.upgrades.indexOf("webtransport")!==-1&<!=="webtransport"?this.setTimeoutFn(()=>{At||Rt.open()},200):Rt.open()}onOpen(){if(this.readyState="open",Fm.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let lt=0;const Rt=this.upgrades.length;for(;lt{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const lt=this.getWritablePackets();this.transport.send(lt),this.prevBufferLen=lt.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let Rt=1;for(let At=0;At0&&Rt>this.maxPayload)return this.writeBuffer.slice(0,At);Rt+=2}return this.writeBuffer}write(lt,Rt,At){return this.sendPacket("message",lt,Rt,At),this}send(lt,Rt,At){return this.sendPacket("message",lt,Rt,At),this}sendPacket(lt,Rt,At,Pt){if(typeof Rt=="function"&&(Pt=Rt,Rt=void 0),typeof At=="function"&&(Pt=At,At=null),this.readyState==="closing"||this.readyState==="closed")return;At=At||{},At.compress=At.compress!==!1;const Dt={type:lt,data:Rt,options:At};this.emitReserved("packetCreate",Dt),this.writeBuffer.push(Dt),Pt&&this.once("flush",Pt),this.flush()}close(){const lt=()=>{this.onClose("forced close"),this.transport.close()},Rt=()=>{this.off("upgrade",Rt),this.off("upgradeError",Rt),lt()},At=()=>{this.once("upgrade",Rt),this.once("upgradeError",Rt)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?At():lt()}):this.upgrading?At():lt()),this}onError(lt){Fm.priorWebsocketSuccess=!1,this.emitReserved("error",lt),this.onClose("transport error",lt)}onClose(lt,Rt){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",lt,Rt),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(lt){const Rt=[];let At=0;const Pt=lt.length;for(;Attypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(_e){return withNativeArrayBuffer&&(_e instanceof ArrayBuffer||isView(_e))||withNativeBlob&&_e instanceof Blob||withNativeFile&&_e instanceof File}function hasBinary(_e,lt){if(!_e||typeof _e!="object")return!1;if(Array.isArray(_e)){for(let Rt=0,At=_e.length;Rt=0&&_e.num{delete this.acks[lt];for(let Lt=0;Lt{this.io.clearTimeoutFn(Dt),Rt.apply(this,[null,...Lt])}}emitWithAck(lt,...Rt){const At=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((Pt,Dt)=>{Rt.push((Lt,Bt)=>At?Lt?Dt(Lt):Pt(Bt):Pt(Lt)),this.emit(lt,...Rt)})}_addToQueue(lt){let Rt;typeof lt[lt.length-1]=="function"&&(Rt=lt.pop());const At={id:this._queueSeq++,tryCount:0,pending:!1,args:lt,flags:Object.assign({fromQueue:!0},this.flags)};lt.push((Pt,...Dt)=>At!==this._queue[0]?void 0:(Pt!==null?At.tryCount>this._opts.retries&&(this._queue.shift(),Rt&&Rt(Pt)):(this._queue.shift(),Rt&&Rt(null,...Dt)),At.pending=!1,this._drainQueue())),this._queue.push(At),this._drainQueue()}_drainQueue(lt=!1){if(!this.connected||this._queue.length===0)return;const Rt=this._queue[0];Rt.pending&&!lt||(Rt.pending=!0,Rt.tryCount++,this.flags=Rt.flags,this.emit.apply(this,Rt.args))}packet(lt){lt.nsp=this.nsp,this.io._packet(lt)}onopen(){typeof this.auth=="function"?this.auth(lt=>{this._sendConnectPacket(lt)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(lt){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},lt):lt})}onerror(lt){this.connected||this.emitReserved("connect_error",lt)}onclose(lt,Rt){this.connected=!1,delete this.id,this.emitReserved("disconnect",lt,Rt)}onpacket(lt){if(lt.nsp===this.nsp)switch(lt.type){case PacketType.CONNECT:lt.data&<.data.sid?this.onconnect(lt.data.sid,lt.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(lt);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(lt);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const At=new Error(lt.data.message);At.data=lt.data.data,this.emitReserved("connect_error",At);break}}onevent(lt){const Rt=lt.data||[];lt.id!=null&&Rt.push(this.ack(lt.id)),this.connected?this.emitEvent(Rt):this.receiveBuffer.push(Object.freeze(Rt))}emitEvent(lt){if(this._anyListeners&&this._anyListeners.length){const Rt=this._anyListeners.slice();for(const At of Rt)At.apply(this,lt)}super.emit.apply(this,lt),this._pid&<.length&&typeof lt[lt.length-1]=="string"&&(this._lastOffset=lt[lt.length-1])}ack(lt){const Rt=this;let At=!1;return function(...Pt){At||(At=!0,Rt.packet({type:PacketType.ACK,id:lt,data:Pt}))}}onack(lt){const Rt=this.acks[lt.id];typeof Rt=="function"&&(Rt.apply(this,lt.data),delete this.acks[lt.id])}onconnect(lt,Rt){this.id=lt,this.recovered=Rt&&this._pid===Rt,this._pid=Rt,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(lt=>this.emitEvent(lt)),this.receiveBuffer=[],this.sendBuffer.forEach(lt=>{this.notifyOutgoingListeners(lt),this.packet(lt)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(lt=>lt()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(lt){return this.flags.compress=lt,this}get volatile(){return this.flags.volatile=!0,this}timeout(lt){return this.flags.timeout=lt,this}onAny(lt){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(lt),this}prependAny(lt){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(lt),this}offAny(lt){if(!this._anyListeners)return this;if(lt){const Rt=this._anyListeners;for(let At=0;At0&&_e.jitter<=1?_e.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var _e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var lt=Math.random(),Rt=Math.floor(lt*this.jitter*_e);_e=Math.floor(lt*10)&1?_e+Rt:_e-Rt}return Math.min(_e,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(_e){this.ms=_e};Backoff.prototype.setMax=function(_e){this.max=_e};Backoff.prototype.setJitter=function(_e){this.jitter=_e};class Manager extends Emitter{constructor(lt,Rt){var At;super(),this.nsps={},this.subs=[],lt&&typeof lt=="object"&&(Rt=lt,lt=void 0),Rt=Rt||{},Rt.path=Rt.path||"/socket.io",this.opts=Rt,installTimerFunctions(this,Rt),this.reconnection(Rt.reconnection!==!1),this.reconnectionAttempts(Rt.reconnectionAttempts||1/0),this.reconnectionDelay(Rt.reconnectionDelay||1e3),this.reconnectionDelayMax(Rt.reconnectionDelayMax||5e3),this.randomizationFactor((At=Rt.randomizationFactor)!==null&&At!==void 0?At:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(Rt.timeout==null?2e4:Rt.timeout),this._readyState="closed",this.uri=lt;const Pt=Rt.parser||parser;this.encoder=new Pt.Encoder,this.decoder=new Pt.Decoder,this._autoConnect=Rt.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(lt){return arguments.length?(this._reconnection=!!lt,this):this._reconnection}reconnectionAttempts(lt){return lt===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=lt,this)}reconnectionDelay(lt){var Rt;return lt===void 0?this._reconnectionDelay:(this._reconnectionDelay=lt,(Rt=this.backoff)===null||Rt===void 0||Rt.setMin(lt),this)}randomizationFactor(lt){var Rt;return lt===void 0?this._randomizationFactor:(this._randomizationFactor=lt,(Rt=this.backoff)===null||Rt===void 0||Rt.setJitter(lt),this)}reconnectionDelayMax(lt){var Rt;return lt===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=lt,(Rt=this.backoff)===null||Rt===void 0||Rt.setMax(lt),this)}timeout(lt){return arguments.length?(this._timeout=lt,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(lt){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const Rt=this.engine,At=this;this._readyState="opening",this.skipReconnect=!1;const Pt=on(Rt,"open",function(){At.onopen(),lt&<()}),Dt=Bt=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Bt),lt?lt(Bt):this.maybeReconnectOnOpen()},Lt=on(Rt,"error",Dt);if(this._timeout!==!1){const Bt=this._timeout,Nt=this.setTimeoutFn(()=>{Pt(),Dt(new Error("timeout")),Rt.close()},Bt);this.opts.autoUnref&&Nt.unref(),this.subs.push(()=>{this.clearTimeoutFn(Nt)})}return this.subs.push(Pt),this.subs.push(Lt),this}connect(lt){return this.open(lt)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const lt=this.engine;this.subs.push(on(lt,"ping",this.onping.bind(this)),on(lt,"data",this.ondata.bind(this)),on(lt,"error",this.onerror.bind(this)),on(lt,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(lt){try{this.decoder.add(lt)}catch(Rt){this.onclose("parse error",Rt)}}ondecoded(lt){nextTick(()=>{this.emitReserved("packet",lt)},this.setTimeoutFn)}onerror(lt){this.emitReserved("error",lt)}socket(lt,Rt){let At=this.nsps[lt];return At?this._autoConnect&&!At.active&&At.connect():(At=new Socket(this,lt,Rt),this.nsps[lt]=At),At}_destroy(lt){const Rt=Object.keys(this.nsps);for(const At of Rt)if(this.nsps[At].active)return;this._close()}_packet(lt){const Rt=this.encoder.encode(lt);for(let At=0;Atlt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(lt,Rt){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",lt,Rt),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const lt=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const Rt=this.backoff.duration();this._reconnecting=!0;const At=this.setTimeoutFn(()=>{lt.skipReconnect||(this.emitReserved("reconnect_attempt",lt.backoff.attempts),!lt.skipReconnect&<.open(Pt=>{Pt?(lt._reconnecting=!1,lt.reconnect(),this.emitReserved("reconnect_error",Pt)):lt.onreconnect()}))},Rt);this.opts.autoUnref&&At.unref(),this.subs.push(()=>{this.clearTimeoutFn(At)})}}onreconnect(){const lt=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",lt)}}const cache={};function lookup(_e,lt){typeof _e=="object"&&(lt=_e,_e=void 0),lt=lt||{};const Rt=url$1(_e,lt.path||"/socket.io"),At=Rt.source,Pt=Rt.id,Dt=Rt.path,Lt=cache[Pt]&&Dt in cache[Pt].nsps,Bt=lt.forceNew||lt["force new connection"]||lt.multiplex===!1||Lt;let Nt;return Bt?Nt=new Manager(At,lt):(cache[Pt]||(cache[Pt]=new Manager(At,lt)),Nt=cache[Pt]),Rt.query&&!lt.query&&(lt.query=Rt.queryKey),Nt.socket(Rt.path,lt)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});class SocketIOTransport extends EventEmitter$2{constructor(Rt){super();Nm(this,"client");Nm(this,"socket");this.options=Rt,this.socket=lookup(Rt.url),this.client=new dist$2.JSONRPCClient(async At=>{const Pt=Dt=>{Dt.id===At.id&&(this.socket.off("response",Pt),this.client.receive(Dt))};this.socket.emit("request",At),this.socket.on("response",Pt)}),this.socket.on("request",({method:At,params:Pt})=>{this.emit(At,Pt)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(Rt,At){return await this.client.request(Rt,At)}}const transports$1={socketio:{name:"socket.io",constructor:SocketIOTransport},ipc:{name:"Web Worker",constructor:IPCTransport},native:{name:"Internal",constructor:NativeTransport}};function getTransport(_e){return transports$1[_e].constructor}const defaultTransport=lodashExports$1.first(lodashExports$1.keys(transports$1));var lodash={exports:{}};/** +`}}]),_e}();_defineProperty(Document$1,"defaults",documentOptions);function createNode$1(_e){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Rt=arguments.length>2?arguments[2]:void 0;Rt===void 0&&typeof lt=="string"&&(Rt=lt,lt=!0);var At=Object.assign({},Document$1.defaults[defaultOptions.version],defaultOptions),Pt=new Schema(At);return Pt.createNode(_e,lt,Rt)}var Document=function(_e){_inherits(Rt,_e);var lt=_createSuper(Rt);function Rt(At){return _classCallCheck(this,Rt),lt.call(this,Object.assign({},defaultOptions,At))}return Rt}(Document$1);function parseAllDocuments(_e,lt){var Rt=[],At,Pt=_createForOfIteratorHelper(parse$5(_e)),Dt;try{for(Pt.s();!(Dt=Pt.n()).done;){var Lt=Dt.value,Bt=new Document(lt);Bt.parse(Lt,At),Rt.push(Bt),At=Bt}}catch(Nt){Pt.e(Nt)}finally{Pt.f()}return Rt}function parseDocument(_e,lt){var Rt=parse$5(_e),At=new Document(lt).parse(Rt[0]);if(Rt.length>1){var Pt="Source contains multiple documents; please use YAML.parseAllDocuments()";At.errors.unshift(new YAMLSemanticError(Rt[1],Pt))}return At}function parse$4(_e,lt){var Rt=parseDocument(_e,lt);if(Rt.warnings.forEach(function(At){return warn(At)}),Rt.errors.length>0)throw Rt.errors[0];return Rt.toJSON()}function stringify$2(_e,lt){var Rt=new Document(lt);return Rt.contents=_e,String(Rt)}var YAML={createNode:createNode$1,defaultOptions,Document,parse:parse$4,parseAllDocuments,parseCST:parse$5,parseDocument,scalarOptions,stringify:stringify$2};const dist$3=Object.freeze(Object.defineProperty({__proto__:null,YAML},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(dist$3);var browser=require$$0.YAML;const paths=Object.assign({"/public/recipes/9-tiles.workspace":()=>__vitePreload(()=>import("./9-tiles-1f224294.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search.workspace":()=>__vitePreload(()=>import("./a-star-grid-search-ffae5751.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/dynamic-star-craft.workspace":()=>__vitePreload(()=>import("./dynamic-star-craft-6a733d35.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/rayscan.workspace":()=>__vitePreload(()=>import("./rayscan-202b7804.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/weighted-a-star.workspace":()=>__vitePreload(()=>import("./weighted-a-star-756c8812.js"),[],import.meta.url).then(_e=>_e.default)}),metaPaths=Object.assign({"/public/recipes/9-tiles.workspace.meta":()=>__vitePreload(()=>import("./9-tiles.workspace-621e8328.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/a-star-grid-search.workspace.meta":()=>__vitePreload(()=>import("./a-star-grid-search.workspace-8079d31e.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/dynamic-star-craft.workspace.meta":()=>__vitePreload(()=>import("./dynamic-star-craft.workspace-5fa26288.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/rayscan.workspace.meta":()=>__vitePreload(()=>import("./rayscan.workspace-b6c007ed.js"),[],import.meta.url).then(_e=>_e.default),"/public/recipes/weighted-a-star.workspace.meta":()=>__vitePreload(()=>import("./weighted-a-star.workspace-13502ed5.js"),[],import.meta.url).then(_e=>_e.default)});function stripExtension(_e){return _e.split(".")[0]}function basename(_e){return _e.split("/").pop()}async function getMeta(_e){const lt=metaPaths[_e.replace(/workspace$/,"workspace.meta")],Rt=await(lt==null?void 0:lt());if(Rt){const At=await fetch(Rt);return browser.parse(await At.text())}}async function getFileInfo(_e,lt){return{name:lodashExports$1.chain(_e).thru(basename).thru(stripExtension).startCase().value(),path:await lt(),...await getMeta(_e)}}const makeAvatar=_e=>lt=>jsxRuntimeExports.jsx(Avatar$1,{sx:lt,children:_e});function getAuthor(_e){if(_e){try{const{protocol:lt,pathname:Rt}=new URL(_e);switch(lt){case"github:":return{name:Rt,avatar:At=>jsxRuntimeExports.jsx("a",{href:`https://github.com/${Rt}`,target:"_blank",rel:"noreferrer",children:jsxRuntimeExports.jsx(Avatar$1,{sx:At,src:`https://github.com/${Rt}.png`})})};default:break}}catch{}return{name:_e,avatar:makeAvatar(_e[0])}}return{name:"No author",avatar:makeAvatar()}}const ellipsisProps={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"};function FeatureCard({name:_e,description:lt,image:Rt,author:At,size:Pt,onOpenClick:Dt,...Lt}){const[{"appearance/acrylic":Bt}]=useSettings(),Nt=usePaper(),{name:jt,avatar:Ut}=reactExports.useMemo(()=>getAuthor(At),[At]);return jsxRuntimeExports.jsxs(Card$1,{variant:"outlined",sx:{...Nt(1),position:"relative",height:"100%"},...Lt,children:[Bt&&jsxRuntimeExports.jsx(Box$1,{sx:{zIndex:-1,filter:"blur(64px)",opacity:.15,position:"absolute",width:"100%",height:"100%",backgroundImage:`url("${Rt}")`,backgroundSize:"200%",backgroundPosition:"bottom right"}}),jsxRuntimeExports.jsx(CardHeader$1,{sx:{alignItems:"flex-start","> .MuiCardHeader-content":{overflow:"hidden"}},avatar:jsxRuntimeExports.jsx(Box$1,{sx:{...Nt(1),border:"none",borderRadius:1,width:64,height:64,overflow:"hidden"},children:jsxRuntimeExports.jsx(Box$1,{sx:{width:64,height:64,backgroundImage:`url("${Rt}")`,backgroundSize:"cover",backgroundPosition:"center"}})}),titleTypeProps:ellipsisProps,title:_e||"Untitled",subheaderTypeProps:ellipsisProps,subheader:jsxRuntimeExports.jsxs(Stack$1,{gap:2,sx:{pt:1,alignItems:"flex-start"},children:[jsxRuntimeExports.jsx(Box$1,{sx:{...ellipsisProps,maxWidth:"100%",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,whiteSpace:"break-spaces",height:60},children:lt||"No description"}),jsxRuntimeExports.jsxs(Stack$1,{direction:"row",alignItems:"center",gap:1,children:[Ut==null?void 0:Ut({width:18,height:18,fontSize:"0.8rem"}),jsxRuntimeExports.jsx(Typography$1,{variant:"caption",children:jt})]}),jsxRuntimeExports.jsx(Button,{onClick:Dt,startIcon:jsxRuntimeExports.jsx(WorkspacesOutlined,{}),sx:Nt(2),children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",gap:1,children:[jsxRuntimeExports.jsx(Typography$1,{children:"Open"}),!!Pt&&jsxRuntimeExports.jsxs(Typography$1,{color:"text.secondary",children:[lodashExports$1.round(Pt/1024/1024,2)," MB"]})]})})]})})]})}const CONTENT_WIDTH=940;function ExplorePage({template:_e}){const lt=useSnackbar(),{controls:Rt,onChange:At,state:Pt,dragHandle:Dt,isViewTree:Lt}=useViewTreeContext(),Bt=useSmallDisplay()||Lt,[Nt,jt]=reactExports.useState(""),[Ut,Gt]=reactExports.useState("explore"),{load:qt}=useWorkspace(),Xt=useLoadingState(),{result:Kt,loading:Zt}=useAsync(async()=>await map$6(lodashExports$1.entries(paths),en=>getFileInfo(...en)),[]),Qt=en=>Xt(async()=>{try{lt(`Loading ${basename(en)}...`);const tn=await fetch(en);tn.ok||lt(`Couldn't load ${basename(en)}`,"Network error",{error:!0});const an=await tn.blob(),cn=new File([an],basename(en),{type:an.type});qt(cn)}catch(tn){lt(`Couldn't load ${basename(en)}`,`${tn}`,{error:!0})}}),Jt=reactExports.useMemo(()=>lodashExports$1.filter(Kt,en=>lodashExports$1.upperCase(browser.stringify(en)).includes(lodashExports$1.upperCase(Nt))),[Nt,Kt]);return jsxRuntimeExports.jsx(TabContext,{value:Ut,children:jsxRuntimeExports.jsxs(_e,{onChange:At,stack:Pt,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Dt}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsxs(TabList$1,{onChange:(en,tn)=>Gt(tn),children:[jsxRuntimeExports.jsx(Tab$1,{label:"Examples",value:"explore"}),jsxRuntimeExports.jsx(Tab$1,{label:"Guides",value:"guides"})]})}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(Box$1,{sx:Bt?void 0:{p:4,maxWidth:CONTENT_WIDTH,mx:"auto"},children:jsxRuntimeExports.jsxs(Box$1,{pt:6,children:[jsxRuntimeExports.jsxs(TabPanel$1,{value:"explore",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(Typography$1,{variant:Bt?"h6":"h4",children:"Examples"}),jsxRuntimeExports.jsx(Typography$1,{variant:"subtitle2",color:"text.secondary",children:"Browse a library of included and community-made examples"})]}),jsxRuntimeExports.jsx(Box$1,{px:2,py:1,children:jsxRuntimeExports.jsx(TextField$1,{...textFieldProps,size:"small",hiddenLabel:!0,fullWidth:!0,sx:{maxWidth:480},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment$1,{position:"start",children:jsxRuntimeExports.jsx(SearchOutlined,{})})},onChange:en=>jt(en.target.value),placeholder:"Search examples"})}),Zt?jsxRuntimeExports.jsx(Box$1,{sx:{p:2},children:jsxRuntimeExports.jsx(CircularProgress$1,{})}):jsxRuntimeExports.jsx(Box$1,{sx:{p:1,display:"grid",gridAutoFlow:"row",gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 320px), 1fr))"},children:Jt.length?lodashExports$1.map(Jt,({name:en,path:tn,description:an,screenshots:cn,author:un,size:rn},sn)=>jsxRuntimeExports.jsx(Box$1,{sx:{p:1},children:jsxRuntimeExports.jsx(FeatureCard,{name:en,description:an??"No description",image:lodashExports$1.first(cn),author:un,onOpenClick:()=>Qt(tn),size:rn})},sn)):jsxRuntimeExports.jsx(Typography$1,{color:"text.secondary",sx:{p:1},children:"No results match your search."})})]}),jsxRuntimeExports.jsxs(TabPanel$1,{value:"guides",sx:{p:0},children:[jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(Typography$1,{variant:Bt?"h6":"h4",children:"Guides"}),jsxRuntimeExports.jsx(Typography$1,{variant:"subtitle2",color:"text.secondary",children:`Learn how to use ${name$2} and explore ${name$2} features`})]}),jsxRuntimeExports.jsxs(Stack$1,{sx:{p:2},gap:2,children:[jsxRuntimeExports.jsx(Typography$1,{children:"We're still working on this feature. Check out our documentation instead."}),jsxRuntimeExports.jsx(Button,{onClick:()=>window.open(homepage,"_blank"),startIcon:jsxRuntimeExports.jsx(LaunchOutlined,{}),children:"Open Documentation"})]})]})]})})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:Rt})]})})}function InfoPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext(),[Dt,Lt]=useLog();return jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsx(FeaturePickerButton,{disabled:!Dt.length,icon:jsxRuntimeExports.jsx(CloseOutlined,{}),onClick:()=>Lt(()=>({action:"clear"})),children:"Clear"})}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:Dt.length?jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsx(List$2,{sx:{pt:6},children:lodashExports$1.map(Dt,(Bt,Nt)=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(ListItemText$1,{primary:Bt.content,secondary:Bt.timestamp})}),jsxRuntimeExports.jsx(Divider$1,{})]},Nt))})}):jsxRuntimeExports.jsx(Placeholder$2,{pt:6,label:"Logs",icon:jsxRuntimeExports.jsx(LogsIcon,{})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})}const compositeOperations=["color","color-burn","color-dodge","copy","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","lighten","lighter","luminosity","multiply","overlay","saturation","screen","soft-light","source-atop","source-in","source-out","source-over","xor"];function useDraft(_e,lt,Rt=300,At=[]){const[Pt,Dt]=reactExports.useState(_e);reactExports.useEffect(()=>{_e&&Dt(lodashExports$1.merge(Pt,lodashExports$1.omit(_e,...At)))},[Dt,_e]);const Lt=reactExports.useMemo(()=>lodashExports$1.debounce(Bt=>lt==null?void 0:lt(Bt),Rt),[lt,Rt]);return[Pt,Bt=>{Dt(Bt),Lt(Bt)}]}function Component({value:_e,onValueChange:lt},Rt){var qt,Xt,Kt,Zt;const At=usePaper();useAcrylic();const[Pt,Dt]=useDraft(_e,lt,300,["name","source.type"]),Lt=Qt=>jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:Qt}),Bt=Qt=>jsxRuntimeExports.jsx(Typography$1,{variant:"body1",children:Qt}),Nt=(Qt,Jt)=>jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[Bt(Qt),jsxRuntimeExports.jsx(Space,{flex:1}),Jt]}),jt=Qt=>Qt.map(Jt=>({id:Jt,name:lodashExports$1.startCase(Jt)})),Ut=Pt.name||inferLayerName(_e),Gt=(Xt=(qt=getLayerHandler(_e))==null?void 0:qt.error)==null?void 0:Xt.call(qt,_e);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ManagedModal,{popover:!0,slotProps:{popover:{anchorOrigin:{horizontal:-12,vertical:-12}}},appBar:{children:"Edit Layer"},trigger:Qt=>{var Jt;return jsxRuntimeExports.jsx(ButtonBase$1,{onClick:Qt,className:Pt.key,sx:{flex:1,display:"block",textAlign:"left",px:2},children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",direction:"row",gap:2,children:[jsxRuntimeExports.jsx(Stack$1,{sx:{...At(.5),alignItems:"center",justifyContent:"center",width:36,height:36,color:"action.disabled"},children:getLayerHandler(_e).icon}),jsxRuntimeExports.jsxs(Box$1,{sx:{py:1.5,flex:1,width:0,ml:0,overflow:"hidden","> *":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[jsxRuntimeExports.jsx(Typography$1,{children:Ut}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:lodashExports$1.startCase((Jt=_e.source)==null?void 0:Jt.type)})]}),!!Gt&&jsxRuntimeExports.jsx(Tooltip$1,{title:Gt,children:jsxRuntimeExports.jsx(Chip$1,{sx:{mr:-2,...lodashExports$1.omit(At(1),"borderRadius"),color:en=>en.palette.error.main,flex:0},label:`${lodashExports$1.truncate(`${Gt}`,{length:8})}`,size:"small"})})]})})},children:jsxRuntimeExports.jsxs(Box$1,{p:2,children:[jsxRuntimeExports.jsx(TextField$1,{sx:{mb:2},autoComplete:"off",autoFocus:!0,placeholder:inferLayerName(Pt),fullWidth:!0,variant:"filled",label:"Layer Name",defaultValue:Pt.name??"",onChange:Qt=>Dt==null?void 0:Dt(produce(Pt,Jt=>lodashExports$1.set(Jt,"name",Qt.target.value)))}),jsxRuntimeExports.jsxs(Box$1,{sx:{mx:-2,pb:1},children:[jsxRuntimeExports.jsx(Tabs$1,{variant:"fullWidth",onChange:(Qt,Jt)=>Dt==null?void 0:Dt(produce(Pt,en=>{lodashExports$1.set(en,"source",{type:Jt})})),value:((Kt=Pt.source)==null?void 0:Kt.type)??lodashExports$1.first(lodashExports$1.keys(layerHandlers))??"",children:lodashExports$1.keys(layerHandlers).map(Qt=>jsxRuntimeExports.jsx(Tab$1,{label:lodashExports$1.startCase(Qt),value:Qt},Qt))}),jsxRuntimeExports.jsx(Divider$1,{sx:{width:"100%"}})]}),Lt("Source Options"),((Zt=Pt.source)==null?void 0:Zt.type)&&reactExports.createElement(layerHandlers[Pt.source.type].editor,{onChange:Qt=>Dt(Qt(Pt)),value:Pt}),Lt("Layer Options"),Nt("Transparency",jsxRuntimeExports.jsx(FeaturePicker,{label:"Transparency",items:["0","25","50","75"].map(Qt=>({id:Qt,name:`${Qt}%`})),value:Pt.transparency??"0",arrow:!0,onChange:Qt=>Dt==null?void 0:Dt(produce(Pt,Jt=>lodashExports$1.set(Jt,"transparency",Qt)))})),Nt("Display Mode",jsxRuntimeExports.jsx(FeaturePicker,{arrow:!0,label:"Display Mode",value:Pt.displayMode??"source-over",items:jt(compositeOperations),onChange:Qt=>Dt==null?void 0:Dt(produce(Pt,Jt=>lodashExports$1.set(Jt,"displayMode",Qt)))}))]})})})}const LayerEditor=reactExports.forwardRef(Component);function LayerListEditor(){const[{layers:_e=[]},lt]=useLayers();return jsxRuntimeExports.jsx(Box$1,{sx:{overflow:"auto hidden",width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{sx:{mb:2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,icon:null,value:_e,deletable:!0,orderable:!0,extras:Rt=>jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:At=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Menu$1,{...bindMenu(At),children:jsxRuntimeExports.jsx(MenuList$1,{dense:!0,sx:{p:0},children:[{name:"Fit Layer",key:"fit-layer",action:()=>lt(({layers:Pt})=>({layers:lodashExports$1.map(Pt,Dt=>({...Dt,viewKey:Dt.key===(Rt==null?void 0:Rt.key)?nanoid$1():void 0}))}))}].map(({name:Pt,key:Dt,action:Lt})=>jsxRuntimeExports.jsx(MenuItem$1,{onClick:()=>{Lt==null||Lt(),At.close()},children:Pt},Dt))})}),jsxRuntimeExports.jsx(IconButton$1,{...bindTrigger(At),children:jsxRuntimeExports.jsx(MoreVertOutlined,{})})]})}),renderEditor:({extras:Rt,handle:At,value:Pt,onValueChange:Dt})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[At,jsxRuntimeExports.jsx(LayerEditor,{value:Pt,onValueChange:Dt}),Rt]}),create:()=>({source:{type:"trace",trace:{}}}),onChange:Rt=>requestIdleCallback(()=>lt(()=>({layers:Rt})),{timeout:300}),addItemLabel:"Layer",placeholder:jsxRuntimeExports.jsx(Box$1,{pt:2,children:"Get started by adding a layer."}),onFocus:Rt=>{const At=lodashExports$1.head(document.getElementsByClassName(Rt));At&&"click"in At&&typeof At.click=="function"&&At.click()}})})})}function LayersPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext();return jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Scroll,{y:!0,style:{width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{pt:6,children:jsxRuntimeExports.jsx(LayerListEditor,{})})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})}var dist$2={},client={},models={};(function(_e){var lt=commonjsGlobal&&commonjsGlobal.__extends||function(){var Xt=function(Kt,Zt){return Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qt,Jt){Qt.__proto__=Jt}||function(Qt,Jt){for(var en in Jt)Object.prototype.hasOwnProperty.call(Jt,en)&&(Qt[en]=Jt[en])},Xt(Kt,Zt)};return function(Kt,Zt){if(typeof Zt!="function"&&Zt!==null)throw new TypeError("Class extends value "+String(Zt)+" is not a constructor or null");Xt(Kt,Zt);function Qt(){this.constructor=Kt}Kt.prototype=Zt===null?Object.create(Zt):(Qt.prototype=Zt.prototype,new Qt)}}();Object.defineProperty(_e,"__esModule",{value:!0}),_e.createJSONRPCNotification=_e.createJSONRPCRequest=_e.createJSONRPCSuccessResponse=_e.createJSONRPCErrorResponse=_e.JSONRPCErrorCode=_e.JSONRPCErrorException=_e.isJSONRPCResponses=_e.isJSONRPCResponse=_e.isJSONRPCRequests=_e.isJSONRPCRequest=_e.isJSONRPCID=_e.JSONRPC=void 0,_e.JSONRPC="2.0";var Rt=function(Xt){return typeof Xt=="string"||typeof Xt=="number"||Xt===null};_e.isJSONRPCID=Rt;var At=function(Xt){return Xt.jsonrpc===_e.JSONRPC&&Xt.method!==void 0&&Xt.result===void 0&&Xt.error===void 0};_e.isJSONRPCRequest=At;var Pt=function(Xt){return Array.isArray(Xt)&&Xt.every(_e.isJSONRPCRequest)};_e.isJSONRPCRequests=Pt;var Dt=function(Xt){return Xt.jsonrpc===_e.JSONRPC&&Xt.id!==void 0&&(Xt.result!==void 0||Xt.error!==void 0)};_e.isJSONRPCResponse=Dt;var Lt=function(Xt){return Array.isArray(Xt)&&Xt.every(_e.isJSONRPCResponse)};_e.isJSONRPCResponses=Lt;var Bt=function(Xt,Kt,Zt){var Qt={code:Xt,message:Kt};return Zt!=null&&(Qt.data=Zt),Qt},Nt=function(Xt){lt(Kt,Xt);function Kt(Zt,Qt,Jt){var en=Xt.call(this,Zt)||this;return Object.setPrototypeOf(en,Kt.prototype),en.code=Qt,en.data=Jt,en}return Kt.prototype.toObject=function(){return Bt(this.code,this.message,this.data)},Kt}(Error);_e.JSONRPCErrorException=Nt,function(Xt){Xt[Xt.ParseError=-32700]="ParseError",Xt[Xt.InvalidRequest=-32600]="InvalidRequest",Xt[Xt.MethodNotFound=-32601]="MethodNotFound",Xt[Xt.InvalidParams=-32602]="InvalidParams",Xt[Xt.InternalError=-32603]="InternalError"}(_e.JSONRPCErrorCode||(_e.JSONRPCErrorCode={}));var jt=function(Xt,Kt,Zt,Qt){return{jsonrpc:_e.JSONRPC,id:Xt,error:Bt(Kt,Zt,Qt)}};_e.createJSONRPCErrorResponse=jt;var Ut=function(Xt,Kt){return{jsonrpc:_e.JSONRPC,id:Xt,result:Kt??null}};_e.createJSONRPCSuccessResponse=Ut;var Gt=function(Xt,Kt,Zt){return{jsonrpc:_e.JSONRPC,id:Xt,method:Kt,params:Zt}};_e.createJSONRPCRequest=Gt;var qt=function(Xt,Kt){return{jsonrpc:_e.JSONRPC,method:Xt,params:Kt}};_e.createJSONRPCNotification=qt})(models);var internal$1={};Object.defineProperty(internal$1,"__esModule",{value:!0});internal$1.DefaultErrorCode=void 0;internal$1.DefaultErrorCode=0;var __awaiter$2=commonjsGlobal&&commonjsGlobal.__awaiter||function(_e,lt,Rt,At){function Pt(Dt){return Dt instanceof Rt?Dt:new Rt(function(Lt){Lt(Dt)})}return new(Rt||(Rt=Promise))(function(Dt,Lt){function Bt(Ut){try{jt(At.next(Ut))}catch(Gt){Lt(Gt)}}function Nt(Ut){try{jt(At.throw(Ut))}catch(Gt){Lt(Gt)}}function jt(Ut){Ut.done?Dt(Ut.value):Pt(Ut.value).then(Bt,Nt)}jt((At=At.apply(_e,lt||[])).next())})},__generator$2=commonjsGlobal&&commonjsGlobal.__generator||function(_e,lt){var Rt={label:0,sent:function(){if(Dt[0]&1)throw Dt[1];return Dt[1]},trys:[],ops:[]},At,Pt,Dt,Lt;return Lt={next:Bt(0),throw:Bt(1),return:Bt(2)},typeof Symbol=="function"&&(Lt[Symbol.iterator]=function(){return this}),Lt;function Bt(jt){return function(Ut){return Nt([jt,Ut])}}function Nt(jt){if(At)throw new TypeError("Generator is already executing.");for(;Lt&&(Lt=0,jt[0]&&(Rt=0)),Rt;)try{if(At=1,Pt&&(Dt=jt[0]&2?Pt.return:jt[0]?Pt.throw||((Dt=Pt.return)&&Dt.call(Pt),0):Pt.next)&&!(Dt=Dt.call(Pt,jt[1])).done)return Dt;switch(Pt=0,Dt&&(jt=[jt[0]&2,Dt.value]),jt[0]){case 0:case 1:Dt=jt;break;case 4:return Rt.label++,{value:jt[1],done:!1};case 5:Rt.label++,Pt=jt[1],jt=[0];continue;case 7:jt=Rt.ops.pop(),Rt.trys.pop();continue;default:if(Dt=Rt.trys,!(Dt=Dt.length>0&&Dt[Dt.length-1])&&(jt[0]===6||jt[0]===2)){Rt=0;continue}if(jt[0]===3&&(!Dt||jt[1]>Dt[0]&&jt[1]0&&Dt[Dt.length-1])&&(jt[0]===6||jt[0]===2)){Rt=0;continue}if(jt[0]===3&&(!Dt||jt[1]>Dt[0]&&jt[1]0&&Dt[Dt.length-1])&&(jt[0]===6||jt[0]===2)){Rt=0;continue}if(jt[0]===3&&(!Dt||jt[1]>Dt[0]&&jt[1]{const Pt=({data:Dt})=>{Dt.id===At.id&&(this.rpc.receive(Dt),this.worker.removeEventListener("message",Pt))};this.worker.postMessage(At),this.worker.addEventListener("message",Pt)})}connect(){return this.worker.postMessage(this.options.url),new Promise(Rt=>{const At=()=>{Rt(),this.worker.removeEventListener("message",At)};this.worker.addEventListener("message",At)})}async disconnect(){this.worker.terminate()}async call(Rt,At){return await this.rpc.request(Rt,At)}}var requiresPort=function _e(lt,Rt){if(Rt=Rt.split(":")[0],lt=+lt,!lt)return!1;switch(Rt){case"http":case"ws":return lt!==80;case"https":case"wss":return lt!==443;case"ftp":return lt!==21;case"gopher":return lt!==70;case"file":return!1}return lt!==0},querystringify$1={},has$4=Object.prototype.hasOwnProperty,undef;function decode$3(_e){try{return decodeURIComponent(_e.replace(/\+/g," "))}catch{return null}}function encode$3(_e){try{return encodeURIComponent(_e)}catch{return null}}function querystring$1(_e){for(var lt=/([^=?#&]+)=?([^&]*)/g,Rt={},At;At=lt.exec(_e);){var Pt=decode$3(At[1]),Dt=decode$3(At[2]);Pt===null||Dt===null||Pt in Rt||(Rt[Pt]=Dt)}return Rt}function querystringify(_e,lt){lt=lt||"";var Rt=[],At,Pt;typeof lt!="string"&&(lt="?");for(Pt in _e)if(has$4.call(_e,Pt)){if(At=_e[Pt],!At&&(At===null||At===undef||isNaN(At))&&(At=""),Pt=encode$3(Pt),At=encode$3(At),Pt===null||At===null)continue;Rt.push(Pt+"="+At)}return Rt.length?lt+Rt.join("&"):""}querystringify$1.stringify=querystringify;querystringify$1.parse=querystring$1;var required=requiresPort,qs=querystringify$1,controlOrWhitespace=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,CRHTLF=/[\n\r\t]/g,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,port=/:\d+$/,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/;function trimLeft(_e){return(_e||"").toString().replace(controlOrWhitespace,"")}var rules=[["#","hash"],["?","query"],function _e(lt,Rt){return isSpecial(Rt.protocol)?lt.replace(/\\/g,"/"):lt},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(_e){var lt;typeof window<"u"?lt=window:typeof commonjsGlobal<"u"?lt=commonjsGlobal:typeof self<"u"?lt=self:lt={};var Rt=lt.location||{};_e=_e||Rt;var At={},Pt=typeof _e,Dt;if(_e.protocol==="blob:")At=new Url$1(unescape(_e.pathname),{});else if(Pt==="string"){At=new Url$1(_e,{});for(Dt in ignore)delete At[Dt]}else if(Pt==="object"){for(Dt in _e)Dt in ignore||(At[Dt]=_e[Dt]);At.slashes===void 0&&(At.slashes=slashes.test(_e.href))}return At}function isSpecial(_e){return _e==="file:"||_e==="ftp:"||_e==="http:"||_e==="https:"||_e==="ws:"||_e==="wss:"}function extractProtocol(_e,lt){_e=trimLeft(_e),_e=_e.replace(CRHTLF,""),lt=lt||{};var Rt=protocolre.exec(_e),At=Rt[1]?Rt[1].toLowerCase():"",Pt=!!Rt[2],Dt=!!Rt[3],Lt=0,Bt;return Pt?Dt?(Bt=Rt[2]+Rt[3]+Rt[4],Lt=Rt[2].length+Rt[3].length):(Bt=Rt[2]+Rt[4],Lt=Rt[2].length):Dt?(Bt=Rt[3]+Rt[4],Lt=Rt[3].length):Bt=Rt[4],At==="file:"?Lt>=2&&(Bt=Bt.slice(2)):isSpecial(At)?Bt=Rt[4]:At?Pt&&(Bt=Bt.slice(2)):Lt>=2&&isSpecial(lt.protocol)&&(Bt=Rt[4]),{protocol:At,slashes:Pt||isSpecial(At),slashesCount:Lt,rest:Bt}}function resolve$1(_e,lt){if(_e==="")return lt;for(var Rt=(lt||"/").split("/").slice(0,-1).concat(_e.split("/")),At=Rt.length,Pt=Rt[At-1],Dt=!1,Lt=0;At--;)Rt[At]==="."?Rt.splice(At,1):Rt[At]===".."?(Rt.splice(At,1),Lt++):Lt&&(At===0&&(Dt=!0),Rt.splice(At,1),Lt--);return Dt&&Rt.unshift(""),(Pt==="."||Pt==="..")&&Rt.push(""),Rt.join("/")}function Url$1(_e,lt,Rt){if(_e=trimLeft(_e),_e=_e.replace(CRHTLF,""),!(this instanceof Url$1))return new Url$1(_e,lt,Rt);var At,Pt,Dt,Lt,Bt,Nt,jt=rules.slice(),Ut=typeof lt,Gt=this,qt=0;for(Ut!=="object"&&Ut!=="string"&&(Rt=lt,lt=null),Rt&&typeof Rt!="function"&&(Rt=qs.parse),lt=lolcation(lt),Pt=extractProtocol(_e||"",lt),At=!Pt.protocol&&!Pt.slashes,Gt.slashes=Pt.slashes||At&<.slashes,Gt.protocol=Pt.protocol||lt.protocol||"",_e=Pt.rest,(Pt.protocol==="file:"&&(Pt.slashesCount!==2||windowsDriveLetter.test(_e))||!Pt.slashes&&(Pt.protocol||Pt.slashesCount<2||!isSpecial(Gt.protocol)))&&(jt[3]=[/(.*)/,"pathname"]);qt{switch(_e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:Rt}=lt;try{return JSON.parse((Rt==null?void 0:Rt.content)??"")}catch{return{}}}}}};class NativeTransport extends EventEmitter$2{constructor(Rt){super();Nm(this,"handler");this.options=Rt;const{hostname:At}=url$2(Rt.url);this.handler=internal[At]}async connect(){}async disconnect(){}async call(Rt,At){return await this.handler(Rt,At)}}const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(_e=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_e]]=_e});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=_e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e&&_e.buffer instanceof ArrayBuffer,encodePacket=({type:_e,data:lt},Rt,At)=>withNativeBlob$1&< instanceof Blob?Rt?At(lt):encodeBlobAsBase64(lt,At):withNativeArrayBuffer$2&&(lt instanceof ArrayBuffer||isView$1(lt))?Rt?At(lt):encodeBlobAsBase64(new Blob([lt]),At):At(PACKET_TYPES[_e]+(lt||"")),encodeBlobAsBase64=(_e,lt)=>{const Rt=new FileReader;return Rt.onload=function(){const At=Rt.result.split(",")[1];lt("b"+(At||""))},Rt.readAsDataURL(_e)};function toArray(_e){return _e instanceof Uint8Array?_e:_e instanceof ArrayBuffer?new Uint8Array(_e):new Uint8Array(_e.buffer,_e.byteOffset,_e.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(_e,lt){if(withNativeBlob$1&&_e.data instanceof Blob)return _e.data.arrayBuffer().then(toArray).then(lt);if(withNativeArrayBuffer$2&&(_e.data instanceof ArrayBuffer||isView$1(_e.data)))return lt(toArray(_e.data));encodePacket(_e,!1,Rt=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),lt(TEXT_ENCODER.encode(Rt))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let _e=0;_e{let lt=_e.length*.75,Rt=_e.length,At,Pt=0,Dt,Lt,Bt,Nt;_e[_e.length-1]==="="&&(lt--,_e[_e.length-2]==="="&<--);const jt=new ArrayBuffer(lt),Ut=new Uint8Array(jt);for(At=0;At>4,Ut[Pt++]=(Lt&15)<<4|Bt>>2,Ut[Pt++]=(Bt&3)<<6|Nt&63;return jt},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(_e,lt)=>{if(typeof _e!="string")return{type:"message",data:mapBinary(_e,lt)};const Rt=_e.charAt(0);return Rt==="b"?{type:"message",data:decodeBase64Packet(_e.substring(1),lt)}:PACKET_TYPES_REVERSE[Rt]?_e.length>1?{type:PACKET_TYPES_REVERSE[Rt],data:_e.substring(1)}:{type:PACKET_TYPES_REVERSE[Rt]}:ERROR_PACKET},decodeBase64Packet=(_e,lt)=>{if(withNativeArrayBuffer$1){const Rt=decode$2(_e);return mapBinary(Rt,lt)}else return{base64:!0,data:_e}},mapBinary=(_e,lt)=>{switch(lt){case"blob":return _e instanceof Blob?_e:new Blob([_e]);case"arraybuffer":default:return _e instanceof ArrayBuffer?_e:_e.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(_e,lt)=>{const Rt=_e.length,At=new Array(Rt);let Pt=0;_e.forEach((Dt,Lt)=>{encodePacket(Dt,!1,Bt=>{At[Lt]=Bt,++Pt===Rt&<(At.join(SEPARATOR))})})},decodePayload=(_e,lt)=>{const Rt=_e.split(SEPARATOR),At=[];for(let Pt=0;Pt{const At=Rt.length;let Pt;if(At<126)Pt=new Uint8Array(1),new DataView(Pt.buffer).setUint8(0,At);else if(At<65536){Pt=new Uint8Array(3);const Dt=new DataView(Pt.buffer);Dt.setUint8(0,126),Dt.setUint16(1,At)}else{Pt=new Uint8Array(9);const Dt=new DataView(Pt.buffer);Dt.setUint8(0,127),Dt.setBigUint64(1,BigInt(At))}_e.data&&typeof _e.data!="string"&&(Pt[0]|=128),lt.enqueue(Pt),lt.enqueue(Rt)})}})}let TEXT_DECODER;function totalLength(_e){return _e.reduce((lt,Rt)=>lt+Rt.length,0)}function concatChunks(_e,lt){if(_e[0].length===lt)return _e.shift();const Rt=new Uint8Array(lt);let At=0;for(let Pt=0;PtMath.pow(2,53-32)-1){Bt.enqueue(ERROR_PACKET);break}Pt=Ut*Math.pow(2,32)+jt.getUint32(4),At=3}else{if(totalLength(Rt)_e){Bt.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(_e){if(_e)return mixin(_e)}function mixin(_e){for(var lt in Emitter.prototype)_e[lt]=Emitter.prototype[lt];return _e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(_e,lt){return this._callbacks=this._callbacks||{},(this._callbacks["$"+_e]=this._callbacks["$"+_e]||[]).push(lt),this};Emitter.prototype.once=function(_e,lt){function Rt(){this.off(_e,Rt),lt.apply(this,arguments)}return Rt.fn=lt,this.on(_e,Rt),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(_e,lt){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Rt=this._callbacks["$"+_e];if(!Rt)return this;if(arguments.length==1)return delete this._callbacks["$"+_e],this;for(var At,Pt=0;Pttypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(_e,...lt){return lt.reduce((Rt,At)=>(_e.hasOwnProperty(At)&&(Rt[At]=_e[At]),Rt),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(_e,lt){lt.useNativeTimers?(_e.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),_e.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(_e.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),_e.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(_e){return typeof _e=="string"?utf8Length(_e):Math.ceil((_e.byteLength||_e.size)*BASE64_OVERHEAD)}function utf8Length(_e){let lt=0,Rt=0;for(let At=0,Pt=_e.length;At=57344?Rt+=3:(At++,Rt+=4);return Rt}function encode$2(_e){let lt="";for(let Rt in _e)_e.hasOwnProperty(Rt)&&(lt.length&&(lt+="&"),lt+=encodeURIComponent(Rt)+"="+encodeURIComponent(_e[Rt]));return lt}function decode$1(_e){let lt={},Rt=_e.split("&");for(let At=0,Pt=Rt.length;At0);return lt}function yeast(){const _e=encode$1(+new Date);return _e!==prev?(seed=0,prev=_e):_e+"."+encode$1(seed++)}for(;i$2{this.readyState="paused",lt()};if(this.polling||!this.writable){let At=0;this.polling&&(At++,this.once("pollComplete",function(){--At||Rt()})),this.writable||(At++,this.once("drain",function(){--At||Rt()}))}else Rt()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(lt){const Rt=At=>{if(this.readyState==="opening"&&At.type==="open"&&this.onOpen(),At.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(At)};decodePayload(lt,this.socket.binaryType).forEach(Rt),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const lt=()=>{this.write([{type:"close"}])};this.readyState==="open"?lt():this.once("open",lt)}write(lt){this.writable=!1,encodePayload(lt,Rt=>{this.doWrite(Rt,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const lt=this.opts.secure?"https":"http",Rt=this.query||{};return this.opts.timestampRequests!==!1&&(Rt[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!Rt.sid&&(Rt.b64=1),this.createUri(lt,Rt)}request(lt={}){return Object.assign(lt,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),lt)}doWrite(lt,Rt){const At=this.request({method:"POST",data:lt});At.on("success",Rt),At.on("error",(Pt,Dt)=>{this.onError("xhr post error",Pt,Dt)})}doPoll(){const lt=this.request();lt.on("data",this.onData.bind(this)),lt.on("error",(Rt,At)=>{this.onError("xhr poll error",Rt,At)}),this.pollXhr=lt}}class Request extends Emitter{constructor(lt,Rt){super(),installTimerFunctions(this,Rt),this.opts=Rt,this.method=Rt.method||"GET",this.uri=lt,this.data=Rt.data!==void 0?Rt.data:null,this.create()}create(){var lt;const Rt=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");Rt.xdomain=!!this.opts.xd;const At=this.xhr=new XHR(Rt);try{At.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){At.setDisableHeaderCheck&&At.setDisableHeaderCheck(!0);for(let Pt in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(Pt)&&At.setRequestHeader(Pt,this.opts.extraHeaders[Pt])}}catch{}if(this.method==="POST")try{At.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{At.setRequestHeader("Accept","*/*")}catch{}(lt=this.opts.cookieJar)===null||lt===void 0||lt.addCookies(At),"withCredentials"in At&&(At.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(At.timeout=this.opts.requestTimeout),At.onreadystatechange=()=>{var Pt;At.readyState===3&&((Pt=this.opts.cookieJar)===null||Pt===void 0||Pt.parseCookies(At)),At.readyState===4&&(At.status===200||At.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof At.status=="number"?At.status:0)},0))},At.send(this.data)}catch(Pt){this.setTimeoutFn(()=>{this.onError(Pt)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(lt){this.emitReserved("error",lt,this.xhr),this.cleanup(!0)}cleanup(lt){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty$1,lt)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const lt=this.xhr.responseText;lt!==null&&(this.emitReserved("data",lt),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const _e="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(_e,unloadHandler,!1)}}function unloadHandler(){for(let _e in Request.requests)Request.requests.hasOwnProperty(_e)&&Request.requests[_e].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?lt=>Promise.resolve().then(lt):(lt,Rt)=>Rt(lt,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(lt){super(lt),this.supportsBinary=!lt.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const lt=this.uri(),Rt=this.opts.protocols,At=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(At.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?Rt?new WebSocket(lt,Rt):new WebSocket(lt):new WebSocket(lt,Rt,At)}catch(Pt){return this.emitReserved("error",Pt)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=lt=>this.onClose({description:"websocket connection closed",context:lt}),this.ws.onmessage=lt=>this.onData(lt.data),this.ws.onerror=lt=>this.onError("websocket error",lt)}write(lt){this.writable=!1;for(let Rt=0;Rt{const Lt={};try{usingBrowserWebSocket&&this.ws.send(Dt)}catch{}Pt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const lt=this.opts.secure?"wss":"ws",Rt=this.query||{};return this.opts.timestampRequests&&(Rt[this.opts.timestampParam]=yeast()),this.supportsBinary||(Rt.b64=1),this.createUri(lt,Rt)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(lt=>{this.onError("webtransport error",lt)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(lt=>{const Rt=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),At=lt.readable.pipeThrough(Rt).getReader(),Pt=createPacketEncoderStream();Pt.readable.pipeTo(lt.writable),this.writer=Pt.writable.getWriter();const Dt=()=>{At.read().then(({done:Bt,value:Nt})=>{Bt||(this.onPacket(Nt),Dt())}).catch(Bt=>{})};Dt();const Lt={type:"open"};this.query.sid&&(Lt.data=`{"sid":"${this.query.sid}"}`),this.writer.write(Lt).then(()=>this.onOpen())})}))}write(lt){this.writable=!1;for(let Rt=0;Rt{Pt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var lt;(lt=this.transport)===null||lt===void 0||lt.close()}}const transports$2={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse$3(_e){if(_e.length>2e3)throw"URI too long";const lt=_e,Rt=_e.indexOf("["),At=_e.indexOf("]");Rt!=-1&&At!=-1&&(_e=_e.substring(0,Rt)+_e.substring(Rt,At).replace(/:/g,";")+_e.substring(At,_e.length));let Pt=re.exec(_e||""),Dt={},Lt=14;for(;Lt--;)Dt[parts[Lt]]=Pt[Lt]||"";return Rt!=-1&&At!=-1&&(Dt.source=lt,Dt.host=Dt.host.substring(1,Dt.host.length-1).replace(/;/g,":"),Dt.authority=Dt.authority.replace("[","").replace("]","").replace(/;/g,":"),Dt.ipv6uri=!0),Dt.pathNames=pathNames(Dt,Dt.path),Dt.queryKey=queryKey(Dt,Dt.query),Dt}function pathNames(_e,lt){const Rt=/\/{2,9}/g,At=lt.replace(Rt,"/").split("/");return(lt.slice(0,1)=="/"||lt.length===0)&&At.splice(0,1),lt.slice(-1)=="/"&&At.splice(At.length-1,1),At}function queryKey(_e,lt){const Rt={};return lt.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(At,Pt,Dt){Pt&&(Rt[Pt]=Dt)}),Rt}let Socket$1=class Fm extends Emitter{constructor(lt,Rt={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],lt&&typeof lt=="object"&&(Rt=lt,lt=null),lt?(lt=parse$3(lt),Rt.hostname=lt.host,Rt.secure=lt.protocol==="https"||lt.protocol==="wss",Rt.port=lt.port,lt.query&&(Rt.query=lt.query)):Rt.host&&(Rt.hostname=parse$3(Rt.host).host),installTimerFunctions(this,Rt),this.secure=Rt.secure!=null?Rt.secure:typeof location<"u"&&location.protocol==="https:",Rt.hostname&&!Rt.port&&(Rt.port=this.secure?"443":"80"),this.hostname=Rt.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=Rt.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=Rt.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},Rt),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode$1(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(lt){const Rt=Object.assign({},this.opts.query);Rt.EIO=protocol$1,Rt.transport=lt,this.id&&(Rt.sid=this.id);const At=Object.assign({},this.opts,{query:Rt,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[lt]);return new transports$2[lt](At)}open(){let lt;if(this.opts.rememberUpgrade&&Fm.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)lt="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else lt=this.transports[0];this.readyState="opening";try{lt=this.createTransport(lt)}catch{this.transports.shift(),this.open();return}lt.open(),this.setTransport(lt)}setTransport(lt){this.transport&&this.transport.removeAllListeners(),this.transport=lt,lt.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",Rt=>this.onClose("transport close",Rt))}probe(lt){let Rt=this.createTransport(lt),At=!1;Fm.priorWebsocketSuccess=!1;const Pt=()=>{At||(Rt.send([{type:"ping",data:"probe"}]),Rt.once("packet",Gt=>{if(!At)if(Gt.type==="pong"&&Gt.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",Rt),!Rt)return;Fm.priorWebsocketSuccess=Rt.name==="websocket",this.transport.pause(()=>{At||this.readyState!=="closed"&&(Ut(),this.setTransport(Rt),Rt.send([{type:"upgrade"}]),this.emitReserved("upgrade",Rt),Rt=null,this.upgrading=!1,this.flush())})}else{const qt=new Error("probe error");qt.transport=Rt.name,this.emitReserved("upgradeError",qt)}}))};function Dt(){At||(At=!0,Ut(),Rt.close(),Rt=null)}const Lt=Gt=>{const qt=new Error("probe error: "+Gt);qt.transport=Rt.name,Dt(),this.emitReserved("upgradeError",qt)};function Bt(){Lt("transport closed")}function Nt(){Lt("socket closed")}function jt(Gt){Rt&&Gt.name!==Rt.name&&Dt()}const Ut=()=>{Rt.removeListener("open",Pt),Rt.removeListener("error",Lt),Rt.removeListener("close",Bt),this.off("close",Nt),this.off("upgrading",jt)};Rt.once("open",Pt),Rt.once("error",Lt),Rt.once("close",Bt),this.once("close",Nt),this.once("upgrading",jt),this.upgrades.indexOf("webtransport")!==-1&<!=="webtransport"?this.setTimeoutFn(()=>{At||Rt.open()},200):Rt.open()}onOpen(){if(this.readyState="open",Fm.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let lt=0;const Rt=this.upgrades.length;for(;lt{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const lt=this.getWritablePackets();this.transport.send(lt),this.prevBufferLen=lt.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let Rt=1;for(let At=0;At0&&Rt>this.maxPayload)return this.writeBuffer.slice(0,At);Rt+=2}return this.writeBuffer}write(lt,Rt,At){return this.sendPacket("message",lt,Rt,At),this}send(lt,Rt,At){return this.sendPacket("message",lt,Rt,At),this}sendPacket(lt,Rt,At,Pt){if(typeof Rt=="function"&&(Pt=Rt,Rt=void 0),typeof At=="function"&&(Pt=At,At=null),this.readyState==="closing"||this.readyState==="closed")return;At=At||{},At.compress=At.compress!==!1;const Dt={type:lt,data:Rt,options:At};this.emitReserved("packetCreate",Dt),this.writeBuffer.push(Dt),Pt&&this.once("flush",Pt),this.flush()}close(){const lt=()=>{this.onClose("forced close"),this.transport.close()},Rt=()=>{this.off("upgrade",Rt),this.off("upgradeError",Rt),lt()},At=()=>{this.once("upgrade",Rt),this.once("upgradeError",Rt)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?At():lt()}):this.upgrading?At():lt()),this}onError(lt){Fm.priorWebsocketSuccess=!1,this.emitReserved("error",lt),this.onClose("transport error",lt)}onClose(lt,Rt){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",lt,Rt),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(lt){const Rt=[];let At=0;const Pt=lt.length;for(;Attypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(_e){return withNativeArrayBuffer&&(_e instanceof ArrayBuffer||isView(_e))||withNativeBlob&&_e instanceof Blob||withNativeFile&&_e instanceof File}function hasBinary(_e,lt){if(!_e||typeof _e!="object")return!1;if(Array.isArray(_e)){for(let Rt=0,At=_e.length;Rt=0&&_e.num{delete this.acks[lt];for(let Lt=0;Lt{this.io.clearTimeoutFn(Dt),Rt.apply(this,[null,...Lt])}}emitWithAck(lt,...Rt){const At=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((Pt,Dt)=>{Rt.push((Lt,Bt)=>At?Lt?Dt(Lt):Pt(Bt):Pt(Lt)),this.emit(lt,...Rt)})}_addToQueue(lt){let Rt;typeof lt[lt.length-1]=="function"&&(Rt=lt.pop());const At={id:this._queueSeq++,tryCount:0,pending:!1,args:lt,flags:Object.assign({fromQueue:!0},this.flags)};lt.push((Pt,...Dt)=>At!==this._queue[0]?void 0:(Pt!==null?At.tryCount>this._opts.retries&&(this._queue.shift(),Rt&&Rt(Pt)):(this._queue.shift(),Rt&&Rt(null,...Dt)),At.pending=!1,this._drainQueue())),this._queue.push(At),this._drainQueue()}_drainQueue(lt=!1){if(!this.connected||this._queue.length===0)return;const Rt=this._queue[0];Rt.pending&&!lt||(Rt.pending=!0,Rt.tryCount++,this.flags=Rt.flags,this.emit.apply(this,Rt.args))}packet(lt){lt.nsp=this.nsp,this.io._packet(lt)}onopen(){typeof this.auth=="function"?this.auth(lt=>{this._sendConnectPacket(lt)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(lt){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},lt):lt})}onerror(lt){this.connected||this.emitReserved("connect_error",lt)}onclose(lt,Rt){this.connected=!1,delete this.id,this.emitReserved("disconnect",lt,Rt)}onpacket(lt){if(lt.nsp===this.nsp)switch(lt.type){case PacketType.CONNECT:lt.data&<.data.sid?this.onconnect(lt.data.sid,lt.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(lt);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(lt);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const At=new Error(lt.data.message);At.data=lt.data.data,this.emitReserved("connect_error",At);break}}onevent(lt){const Rt=lt.data||[];lt.id!=null&&Rt.push(this.ack(lt.id)),this.connected?this.emitEvent(Rt):this.receiveBuffer.push(Object.freeze(Rt))}emitEvent(lt){if(this._anyListeners&&this._anyListeners.length){const Rt=this._anyListeners.slice();for(const At of Rt)At.apply(this,lt)}super.emit.apply(this,lt),this._pid&<.length&&typeof lt[lt.length-1]=="string"&&(this._lastOffset=lt[lt.length-1])}ack(lt){const Rt=this;let At=!1;return function(...Pt){At||(At=!0,Rt.packet({type:PacketType.ACK,id:lt,data:Pt}))}}onack(lt){const Rt=this.acks[lt.id];typeof Rt=="function"&&(Rt.apply(this,lt.data),delete this.acks[lt.id])}onconnect(lt,Rt){this.id=lt,this.recovered=Rt&&this._pid===Rt,this._pid=Rt,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(lt=>this.emitEvent(lt)),this.receiveBuffer=[],this.sendBuffer.forEach(lt=>{this.notifyOutgoingListeners(lt),this.packet(lt)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(lt=>lt()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(lt){return this.flags.compress=lt,this}get volatile(){return this.flags.volatile=!0,this}timeout(lt){return this.flags.timeout=lt,this}onAny(lt){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(lt),this}prependAny(lt){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(lt),this}offAny(lt){if(!this._anyListeners)return this;if(lt){const Rt=this._anyListeners;for(let At=0;At0&&_e.jitter<=1?_e.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var _e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var lt=Math.random(),Rt=Math.floor(lt*this.jitter*_e);_e=Math.floor(lt*10)&1?_e+Rt:_e-Rt}return Math.min(_e,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(_e){this.ms=_e};Backoff.prototype.setMax=function(_e){this.max=_e};Backoff.prototype.setJitter=function(_e){this.jitter=_e};class Manager extends Emitter{constructor(lt,Rt){var At;super(),this.nsps={},this.subs=[],lt&&typeof lt=="object"&&(Rt=lt,lt=void 0),Rt=Rt||{},Rt.path=Rt.path||"/socket.io",this.opts=Rt,installTimerFunctions(this,Rt),this.reconnection(Rt.reconnection!==!1),this.reconnectionAttempts(Rt.reconnectionAttempts||1/0),this.reconnectionDelay(Rt.reconnectionDelay||1e3),this.reconnectionDelayMax(Rt.reconnectionDelayMax||5e3),this.randomizationFactor((At=Rt.randomizationFactor)!==null&&At!==void 0?At:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(Rt.timeout==null?2e4:Rt.timeout),this._readyState="closed",this.uri=lt;const Pt=Rt.parser||parser;this.encoder=new Pt.Encoder,this.decoder=new Pt.Decoder,this._autoConnect=Rt.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(lt){return arguments.length?(this._reconnection=!!lt,this):this._reconnection}reconnectionAttempts(lt){return lt===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=lt,this)}reconnectionDelay(lt){var Rt;return lt===void 0?this._reconnectionDelay:(this._reconnectionDelay=lt,(Rt=this.backoff)===null||Rt===void 0||Rt.setMin(lt),this)}randomizationFactor(lt){var Rt;return lt===void 0?this._randomizationFactor:(this._randomizationFactor=lt,(Rt=this.backoff)===null||Rt===void 0||Rt.setJitter(lt),this)}reconnectionDelayMax(lt){var Rt;return lt===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=lt,(Rt=this.backoff)===null||Rt===void 0||Rt.setMax(lt),this)}timeout(lt){return arguments.length?(this._timeout=lt,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(lt){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const Rt=this.engine,At=this;this._readyState="opening",this.skipReconnect=!1;const Pt=on(Rt,"open",function(){At.onopen(),lt&<()}),Dt=Bt=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Bt),lt?lt(Bt):this.maybeReconnectOnOpen()},Lt=on(Rt,"error",Dt);if(this._timeout!==!1){const Bt=this._timeout,Nt=this.setTimeoutFn(()=>{Pt(),Dt(new Error("timeout")),Rt.close()},Bt);this.opts.autoUnref&&Nt.unref(),this.subs.push(()=>{this.clearTimeoutFn(Nt)})}return this.subs.push(Pt),this.subs.push(Lt),this}connect(lt){return this.open(lt)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const lt=this.engine;this.subs.push(on(lt,"ping",this.onping.bind(this)),on(lt,"data",this.ondata.bind(this)),on(lt,"error",this.onerror.bind(this)),on(lt,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(lt){try{this.decoder.add(lt)}catch(Rt){this.onclose("parse error",Rt)}}ondecoded(lt){nextTick(()=>{this.emitReserved("packet",lt)},this.setTimeoutFn)}onerror(lt){this.emitReserved("error",lt)}socket(lt,Rt){let At=this.nsps[lt];return At?this._autoConnect&&!At.active&&At.connect():(At=new Socket(this,lt,Rt),this.nsps[lt]=At),At}_destroy(lt){const Rt=Object.keys(this.nsps);for(const At of Rt)if(this.nsps[At].active)return;this._close()}_packet(lt){const Rt=this.encoder.encode(lt);for(let At=0;Atlt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(lt,Rt){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",lt,Rt),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const lt=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const Rt=this.backoff.duration();this._reconnecting=!0;const At=this.setTimeoutFn(()=>{lt.skipReconnect||(this.emitReserved("reconnect_attempt",lt.backoff.attempts),!lt.skipReconnect&<.open(Pt=>{Pt?(lt._reconnecting=!1,lt.reconnect(),this.emitReserved("reconnect_error",Pt)):lt.onreconnect()}))},Rt);this.opts.autoUnref&&At.unref(),this.subs.push(()=>{this.clearTimeoutFn(At)})}}onreconnect(){const lt=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",lt)}}const cache={};function lookup(_e,lt){typeof _e=="object"&&(lt=_e,_e=void 0),lt=lt||{};const Rt=url$1(_e,lt.path||"/socket.io"),At=Rt.source,Pt=Rt.id,Dt=Rt.path,Lt=cache[Pt]&&Dt in cache[Pt].nsps,Bt=lt.forceNew||lt["force new connection"]||lt.multiplex===!1||Lt;let Nt;return Bt?Nt=new Manager(At,lt):(cache[Pt]||(cache[Pt]=new Manager(At,lt)),Nt=cache[Pt]),Rt.query&&!lt.query&&(lt.query=Rt.queryKey),Nt.socket(Rt.path,lt)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});class SocketIOTransport extends EventEmitter$2{constructor(Rt){super();Nm(this,"client");Nm(this,"socket");this.options=Rt,this.socket=lookup(Rt.url),this.client=new dist$2.JSONRPCClient(async At=>{const Pt=Dt=>{Dt.id===At.id&&(this.socket.off("response",Pt),this.client.receive(Dt))};this.socket.emit("request",At),this.socket.on("response",Pt)}),this.socket.on("request",({method:At,params:Pt})=>{this.emit(At,Pt)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(Rt,At){return await this.client.request(Rt,At)}}const transports$1={socketio:{name:"socket.io",constructor:SocketIOTransport},ipc:{name:"Web Worker",constructor:IPCTransport},native:{name:"Internal",constructor:NativeTransport}};function getTransport(_e){return transports$1[_e].constructor}const defaultTransport=lodashExports$1.first(lodashExports$1.keys(transports$1));var lodash={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors @@ -1986,4 +1992,4 @@ void main(void)\r src: url('${lt.dataSrc}'); font-weight: ${lt.weight}; font-style: ${lt.style}; - }`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(_e){this._stylesheet!==_e&&(this._stylesheet=_e,this.styleID++)}normalizeColor(_e){return Array.isArray(_e)&&(_e=rgb2hex(_e)),typeof _e=="number"?hex2string(_e):_e}dropShadowToCSS(){let _e=this.normalizeColor(this.dropShadowColor);const lt=this.dropShadowAlpha,Rt=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),At=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);_e.startsWith("#")&<<1&&(_e+=(lt*255|0).toString(16).padStart(2,"0"));const Pt=`${Rt}px ${At}px`;return this.dropShadowBlur>0?`text-shadow: ${Pt} ${this.dropShadowBlur}px ${_e}`:`text-shadow: ${Pt} ${_e}`}reset(){Object.assign(this,_HTMLTextStyle.defaultOptions)}onBeforeDraw(){const{fontsDirty:_e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&_e?new Promise(lt=>setTimeout(lt,100)):Promise.resolve()}get isSafari(){const{userAgent:_e}=settings.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(_e)}set fillGradientStops(_e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(_e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(_e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(_e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(_e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(_e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(_e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};let HTMLTextStyle=_HTMLTextStyle;HTMLTextStyle.availableFonts={};HTMLTextStyle.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};const _HTMLText=class extends Sprite{constructor(_e="",lt={}){super(Texture.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this._loading=!1,this.localStyleID=-1,this.dirty=!1,this.ownsStyle=!1;const Rt=new Image,At=Texture.from(Rt,{scaleMode:settings.SCALE_MODE,resourceOptions:{autoLoad:!1}});At.orig=new Rectangle,At.trim=new Rectangle,this.texture=At;const Pt="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml",Lt=document.createElementNS(Pt,"svg"),Bt=document.createElementNS(Pt,"foreignObject"),Nt=document.createElementNS(Dt,"div"),jt=document.createElementNS(Dt,"style");Bt.setAttribute("width","10000"),Bt.setAttribute("height","10000"),Bt.style.overflow="hidden",Lt.appendChild(Bt),this.maxWidth=_HTMLText.defaultMaxWidth,this.maxHeight=_HTMLText.defaultMaxHeight,this._domElement=Nt,this._styleElement=jt,this._svgRoot=Lt,this._foreignObject=Bt,this._foreignObject.appendChild(jt),this._foreignObject.appendChild(Nt),this._image=Rt,this._loadImage=new Image,this._autoResolution=_HTMLText.defaultAutoResolution,this._resolution=_HTMLText.defaultResolution??settings.RESOLUTION,this.text=_e,this.style=lt}measureText(_e){var Bt,Nt;const{text:lt,style:Rt,resolution:At}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},_e);Object.assign(this._domElement,{innerHTML:lt,style:Rt.toCSS(At)}),this._styleElement.textContent=Rt.toGlobalCSS(),document.body.appendChild(this._svgRoot);const Pt=this._domElement.getBoundingClientRect();this._svgRoot.remove();const Dt=Math.min(this.maxWidth,Math.ceil(Pt.width)),Lt=Math.min(this.maxHeight,Math.ceil(Pt.height));return this._svgRoot.setAttribute("width",Dt.toString()),this._svgRoot.setAttribute("height",Lt.toString()),lt!==this._text&&(this._domElement.innerHTML=this._text),Rt!==this._style&&(Object.assign(this._domElement,{style:(Bt=this._style)==null?void 0:Bt.toCSS(At)}),this._styleElement.textContent=(Nt=this._style)==null?void 0:Nt.toGlobalCSS()),{width:Dt+Rt.padding*2,height:Lt+Rt.padding*2}}async updateText(_e=!0){const{style:lt,_image:Rt,_loadImage:At}=this;if(this.localStyleID!==lt.styleID&&(this.dirty=!0,this.localStyleID=lt.styleID),!this.dirty&&_e)return;const{width:Pt,height:Dt}=this.measureText();Rt.width=At.width=Math.ceil(Math.max(1,Pt)),Rt.height=At.height=Math.ceil(Math.max(1,Dt)),this._loading||(this._loading=!0,await new Promise(Lt=>{At.onload=async()=>{await lt.onBeforeDraw(),this._loading=!1,Rt.src=At.src,At.onload=null,At.src="",this.updateTexture(),Lt()};const Bt=new XMLSerializer().serializeToString(this._svgRoot);At.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(Bt)}`}))}get source(){return this._image}updateTexture(){const{style:_e,texture:lt,_image:Rt,resolution:At}=this,{padding:Pt}=_e,{baseTexture:Dt}=lt;lt.trim.width=lt._frame.width=Rt.width/At,lt.trim.height=lt._frame.height=Rt.height/At,lt.trim.x=-Pt,lt.trim.y=-Pt,lt.orig.width=lt._frame.width-Pt*2,lt.orig.height=lt._frame.height-Pt*2,this._onTextureUpdate(),Dt.setRealSize(Rt.width,Rt.height,At),this.dirty=!1}_render(_e){this._autoResolution&&this._resolution!==_e.resolution&&(this._resolution=_e.resolution,this.dirty=!0),this.updateText(!0),super._render(_e)}_renderCanvas(_e){this._autoResolution&&this._resolution!==_e.resolution&&(this._resolution=_e.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(_e)}getLocalBounds(_e){return this.updateText(!0),super.getLocalBounds(_e)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(_e){var Rt,At,Pt,Dt,Lt;typeof _e=="boolean"&&(_e={children:_e}),_e=Object.assign({},_HTMLText.defaultDestroyOptions,_e),super.destroy(_e);const lt=null;this.ownsStyle&&((Rt=this._style)==null||Rt.cleanFonts()),this._style=lt,(At=this._svgRoot)==null||At.remove(),this._svgRoot=lt,(Pt=this._domElement)==null||Pt.remove(),this._domElement=lt,(Dt=this._foreignObject)==null||Dt.remove(),this._foreignObject=lt,(Lt=this._styleElement)==null||Lt.remove(),this._styleElement=lt,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=lt,this._image.src="",this._image=lt}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(_e){this.updateText(!0);const lt=sign$2(this.scale.x)||1;this.scale.x=lt*_e/this._image.width/this.resolution,this._width=_e}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(_e){this.updateText(!0);const lt=sign$2(this.scale.y)||1;this.scale.y=lt*_e/this._image.height/this.resolution,this._height=_e}get style(){return this._style}set style(_e){this._style!==_e&&(_e=_e||{},_e instanceof HTMLTextStyle?(this.ownsStyle=!1,this._style=_e):_e instanceof TextStyle?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=HTMLTextStyle.from(_e)):(this.ownsStyle=!0,this._style=new HTMLTextStyle(_e)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(_e){_e=String(_e===""||_e===null||_e===void 0?" ":_e),_e=this.sanitiseText(_e),this._text!==_e&&(this._text=_e,this.dirty=!0)}get resolution(){return this._resolution}set resolution(_e){this._autoResolution=!1,this._resolution!==_e&&(this._resolution=_e,this.dirty=!0)}sanitiseText(_e){return _e.replace(/
/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};let HTMLText=_HTMLText;HTMLText.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0};HTMLText.defaultMaxWidth=2024;HTMLText.defaultMaxHeight=2024;HTMLText.defaultAutoResolution=!0;function makeRenderer(_e,lt){return{constructor:_e,meta:lt}}function quickselect(_e,lt,Rt,At,Pt){quickselectStep(_e,lt,Rt||0,At||_e.length-1,Pt||defaultCompare)}function quickselectStep(_e,lt,Rt,At,Pt){for(;At>Rt;){if(At-Rt>600){var Dt=At-Rt+1,Lt=lt-Rt+1,Bt=Math.log(Dt),Nt=.5*Math.exp(2*Bt/3),jt=.5*Math.sqrt(Bt*Nt*(Dt-Nt)/Dt)*(Lt-Dt/2<0?-1:1),Ut=Math.max(Rt,Math.floor(lt-Lt*Nt/Dt+jt)),Gt=Math.min(At,Math.floor(lt+(Dt-Lt)*Nt/Dt+jt));quickselectStep(_e,lt,Ut,Gt,Pt)}var qt=_e[lt],Xt=Rt,Kt=At;for(swap(_e,Rt,lt),Pt(_e[At],qt)>0&&swap(_e,Rt,At);Xt0;)Kt--}Pt(_e[Rt],qt)===0?swap(_e,Rt,Kt):(Kt++,swap(_e,Kt,At)),Kt<=lt&&(Rt=Kt+1),lt<=Kt&&(At=Kt-1)}}function swap(_e,lt,Rt){var At=_e[lt];_e[lt]=_e[Rt],_e[Rt]=At}function defaultCompare(_e,lt){return _elt?1:0}class RBush{constructor(lt=9){this._maxEntries=Math.max(4,lt),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(lt){let Rt=this.data;const At=[];if(!intersects(lt,Rt))return At;const Pt=this.toBBox,Dt=[];for(;Rt;){for(let Lt=0;Lt=0&&Dt[Rt].children.length>this._maxEntries;)this._split(Dt,Rt),Rt--;this._adjustParentBBoxes(Pt,Dt,Rt)}_split(lt,Rt){const At=lt[Rt],Pt=At.children.length,Dt=this._minEntries;this._chooseSplitAxis(At,Dt,Pt);const Lt=this._chooseSplitIndex(At,Dt,Pt),Bt=createNode(At.children.splice(Lt,At.children.length-Lt));Bt.height=At.height,Bt.leaf=At.leaf,calcBBox(At,this.toBBox),calcBBox(Bt,this.toBBox),Rt?lt[Rt-1].children.push(Bt):this._splitRoot(At,Bt)}_splitRoot(lt,Rt){this.data=createNode([lt,Rt]),this.data.height=lt.height+1,this.data.leaf=!1,calcBBox(this.data,this.toBBox)}_chooseSplitIndex(lt,Rt,At){let Pt,Dt=1/0,Lt=1/0;for(let Bt=Rt;Bt<=At-Rt;Bt++){const Nt=distBBox(lt,0,Bt,this.toBBox),jt=distBBox(lt,Bt,At,this.toBBox),Ut=intersectionArea(Nt,jt),Gt=bboxArea(Nt)+bboxArea(jt);Ut=Rt;jt--){const Ut=lt.children[jt];extend(Bt,lt.leaf?Dt(Ut):Ut),Nt+=bboxMargin(Bt)}return Nt}_adjustParentBBoxes(lt,Rt,At){for(let Pt=At;Pt>=0;Pt--)extend(Rt[Pt],lt)}_condense(lt){for(let Rt=lt.length-1,At;Rt>=0;Rt--)lt[Rt].children.length===0?Rt>0?(At=lt[Rt-1].children,At.splice(At.indexOf(lt[Rt]),1)):this.clear():calcBBox(lt[Rt],this.toBBox)}}function findItem(_e,lt,Rt){if(!Rt)return lt.indexOf(_e);for(let At=0;At=_e.minX&<.maxY>=_e.minY}function createNode(_e){return{children:_e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function multiSelect(_e,lt,Rt,At,Pt){const Dt=[lt,Rt];for(;Dt.length;){if(Rt=Dt.pop(),lt=Dt.pop(),Rt-lt<=At)continue;const Lt=lt+Math.ceil((Rt-lt)/At/2)*At;quickselect(_e,Lt,lt,Rt,Pt),Dt.push(lt,Lt,Lt,Rt)}}class Bush extends RBush{toBBox(lt){return{minX:lt.left,minY:lt.top,maxX:lt.right,maxY:lt.bottom}}compareMinX(lt,Rt){return lt.left-Rt.left}compareMinY(lt,Rt){return lt.top-Rt.top}}const defaultD2RendererOptions={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:1e3/60,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:1.5,minScale:1,dtMax:1.5,dtMin:1.1}};var dist$1={},__assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(_e){for(var lt,Rt=1,At=arguments.length;Rt0?1:-1}),shim$4}var sign$1=isImplemented$6()?Math.sign:requireShim$4(),sign=sign$1,abs=Math.abs,floor$1=Math.floor,toInteger$1=function(_e){return isNaN(_e)?0:(_e=Number(_e),_e===0||!isFinite(_e)?_e:sign(_e)*floor$1(abs(_e)))},toInteger=toInteger$1,max$3=Math.max,toPosInteger=function(_e){return max$3(0,toInteger(_e))},validCallable=function(_e){if(typeof _e!="function")throw new TypeError(_e+" is not a function");return _e},isValue$3=isValue$5,validValue=function(_e){if(!isValue$3(_e))throw new TypeError("Cannot use null or undefined");return _e},custom={exports:{}},isImplemented$5=function(){var _e=Object.assign,lt;return typeof _e!="function"?!1:(lt={foo:"raz"},_e(lt,{bar:"dwa"},{trzy:"trzy"}),lt.foo+lt.bar+lt.trzy==="razdwatrzy")},isImplemented$4,hasRequiredIsImplemented$3;function requireIsImplemented$3(){return hasRequiredIsImplemented$3||(hasRequiredIsImplemented$3=1,isImplemented$4=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),isImplemented$4}var shim$3,hasRequiredShim$3;function requireShim$3(){if(hasRequiredShim$3)return shim$3;hasRequiredShim$3=1;var _e=isValue$5,lt=Object.keys;return shim$3=function(Rt){return lt(_e(Rt)?Object(Rt):Rt)},shim$3}var keys,hasRequiredKeys;function requireKeys(){return hasRequiredKeys||(hasRequiredKeys=1,keys=requireIsImplemented$3()()?Object.keys:requireShim$3()),keys}var shim$2,hasRequiredShim$2;function requireShim$2(){if(hasRequiredShim$2)return shim$2;hasRequiredShim$2=1;var _e=requireKeys(),lt=validValue,Rt=Math.max;return shim$2=function(At,Pt){var Dt,Lt,Bt=Rt(arguments.length,2),Nt;for(At=Object(lt(At)),Nt=function(jt){try{At[jt]=Pt[jt]}catch(Ut){Dt||(Dt=Ut)}},Lt=1;Lt-1},shim$1}var contains$1=isImplemented$3()?String.prototype.contains:requireShim$1(),isValue=is$4,isPlainFunction=is,assign=assign$1,normalizeOpts=normalizeOptions,contains=contains$1,d$1=d$2.exports=function(_e,lt){var Rt,At,Pt,Dt,Lt;return arguments.length<2||typeof _e!="string"?(Dt=lt,lt=_e,_e=null):Dt=arguments[2],isValue(_e)?(Rt=contains.call(_e,"c"),At=contains.call(_e,"e"),Pt=contains.call(_e,"w")):(Rt=Pt=!0,At=!1),Lt={value:lt,configurable:Rt,enumerable:At,writable:Pt},Dt?assign(normalizeOpts(Dt),Lt):Lt};d$1.gs=function(_e,lt,Rt){var At,Pt,Dt,Lt;return typeof _e!="string"?(Dt=Rt,Rt=lt,lt=_e,_e=null):Dt=arguments[3],isValue(lt)?isPlainFunction(lt)?isValue(Rt)?isPlainFunction(Rt)||(Dt=Rt,Rt=void 0):Rt=void 0:(Dt=lt,lt=Rt=void 0):lt=void 0,isValue(_e)?(At=contains.call(_e,"c"),Pt=contains.call(_e,"e")):(At=!0,Pt=!1),Lt={get:lt,set:Rt,configurable:At,enumerable:Pt},Dt?assign(normalizeOpts(Dt),Lt):Lt};var dExports=d$2.exports,eventEmitter={exports:{}};(function(_e,lt){var Rt=dExports,At=validCallable,Pt=Function.prototype.apply,Dt=Function.prototype.call,Lt=Object.create,Bt=Object.defineProperty,Nt=Object.defineProperties,jt=Object.prototype.hasOwnProperty,Ut={configurable:!0,enumerable:!1,writable:!0},Gt,qt,Xt,Kt,Zt,Qt,Jt;Gt=function(en,tn){var an;return At(tn),jt.call(this,"__ee__")?an=this.__ee__:(an=Ut.value=Lt(null),Bt(this,"__ee__",Ut),Ut.value=null),an[en]?typeof an[en]=="object"?an[en].push(tn):an[en]=[an[en],tn]:an[en]=tn,this},qt=function(en,tn){var an,cn;return At(tn),cn=this,Gt.call(this,en,an=function(){Xt.call(cn,en,an),Pt.call(tn,this,arguments)}),an.__eeOnceListener__=tn,this},Xt=function(en,tn){var an,cn,un,rn;if(At(tn),!jt.call(this,"__ee__"))return this;if(an=this.__ee__,!an[en])return this;if(cn=an[en],typeof cn=="object")for(rn=0;un=cn[rn];++rn)(un===tn||un.__eeOnceListener__===tn)&&(cn.length===2?an[en]=cn[rn?0:1]:cn.splice(rn,1));else(cn===tn||cn.__eeOnceListener__===tn)&&delete an[en];return this},Kt=function(en){var tn,an,cn,un,rn;if(jt.call(this,"__ee__")&&(un=this.__ee__[en],!!un))if(typeof un=="object"){for(an=arguments.length,rn=new Array(an-1),tn=1;tn=55296&&an<=56319&&(sn+=qt[++Qt])),sn=Xt?jt.call(Xt,Kt,sn,Jt):sn,Zt?(Ut.value=sn,Gt(en,Jt,Ut)):en[Jt]=sn,++Jt;tn=Jt}}if(tn===void 0)for(tn=At(qt.length),Zt&&(en=new Zt(tn)),Qt=0;Qt=6&&(Rt-=6),G(Rt<1?255*((lt-_e)*Rt+_e):Rt<3?255*lt:Rt<4?255*((lt-_e)*(4-Rt)+_e):255*_e)},X=function(_e,lt,Rt){lt/=100;var At=(Rt/=100)<=.5?Rt*(lt+1):Rt+lt-Rt*lt,Pt=2*Rt-At;return{r:O(Pt,At,(_e/=60)+2),g:O(Pt,At,_e),b:O(Pt,At,_e-2)}},Y=function(_e,lt,Rt,At){return{r:G(255*(1-_e)*(At=1-At)),g:G(255*(1-lt)*At),b:G(255*(1-Rt)*At)}},j=function(_e,lt,Rt){_e/=255,lt/=255,Rt/=255;var At=1-Math.max(_e,lt,Rt),Pt=1-At,Dt=Pt&&(Pt-lt)/Pt,Lt=Pt&&(Pt-Rt)/Pt;return{c:G(100*(Pt&&(Pt-_e)/Pt)),m:G(100*Dt),y:G(100*Lt),k:G(100*At)}},K=function(_e,lt,Rt,At){At===void 0&&(At=1),_e/=255,lt/=255,Rt/=255,At=Math.min(At,1);var Pt=Math.max(_e,lt,Rt),Dt=Math.min(_e,lt,Rt),Lt=Pt-Dt,Bt=0,Nt=0,jt=(Pt+Dt)/2;if(Lt!==0){switch(Pt){case _e:Bt=(lt-Rt)/Lt%6;break;case lt:Bt=(Rt-_e)/Lt+2;break;case Rt:Bt=(_e-lt)/Lt+4}(Bt=G(60*Bt))<0&&(Bt+=360),Nt=Lt/(1-Math.abs(2*jt-1))}return{h:Bt,s:G(100*Nt),l:G(100*jt),a:At}},I=function(_e,lt){if(_e<0&&(_e+=360),_e>360&&(_e-=360),_e===360||_e===0)return _e;var Rt=[[0,120],[120,180],[180,240],[240,360]],At=[[0,60],[60,120],[120,240],[240,360]],Pt=lt?At:Rt,Dt=0,Lt=0,Bt=0,Nt=0;return(lt?Rt:At).find(function(jt,Ut){return _e>=jt[0]&&_e360||_e<0)&&(_e-=360*Math.floor(_e/360)),_e},N=function(_e){return typeof _e=="string"&&(_e=m$1.test(_e)?B(_e)/100:+_e),isNaN(+_e)||_e>1?1:G(_e)},V=function(_e,lt,Rt){return lt.reduce(function(At,Pt){return e(e([],At,!0),[t(t({},_e),{h:Rt===i.ADDITIVE?x(_e.h+Pt):x(I(I(_e.h,!1)+Pt,!0))})],!1)},[t({},_e)])},U=function(_e,lt){return V(_e,[30,-30],lt)},q=function(_e,lt){return V(_e,[180],lt)},$=function(_e,lt){return V(_e,[150,-150],lt)},_=function(_e,lt){return V(_e,[120,-120],lt)},Q=function(_e,lt){return V(_e,[60,-120,180],lt)},z$1=function(_e,lt){return V(_e,[90,-90,180],lt)},J=function(_e){return typeof _e=="string"?function(lt){var Rt;if(Object.keys(r).some(function(At){if(b[At].test(lt))return Rt=At,!0}),!Rt&&~f.indexOf(lt)&&(Rt=r.HEX),!Rt)throw new Error(E);return Rt}(_e):function(lt){var Rt,At=!1,Pt=L(Object.keys(lt));if(p[Pt]&&(Rt=p[Pt]),Rt&&Rt===r.RGB){var Dt=Object.entries(lt).some(function(Bt){return!y.test("".concat(Bt[1]))}),Lt=Object.entries(lt).some(function(Bt){return!(m$1.test("".concat(Bt[1]))||!y.test("".concat(Bt[1]))&&!isNaN(+Bt[1])&&+Bt[1]<=255)});Dt&&Lt&&(At=!0),Dt||(Rt=r.HEX)}if(!Rt||At)throw new Error(v);return Rt}(_e)},W=((c={})[r.HEX]=function(_e){var lt=(~f.indexOf(_e)?o[_e]:_e).match(b.HEX),Rt={r:M(lt[1]||lt[5]),g:M(lt[2]||lt[6]),b:M(lt[3]||lt[7])},At=lt[4]||lt[8];return At!==void 0&&(Rt.a=M(At)/255),Rt},c[r.RGB]=function(_e){var lt=_e.match(b.RGB),Rt=D(lt[1]||lt[5]),At=D(lt[2]||lt[6]),Pt=D(lt[3]||lt[7]),Dt=lt[4]||lt[8],Lt={r:Math.min(Rt,255),g:Math.min(At,255),b:Math.min(Pt,255)};return Dt!==void 0&&(Lt.a=N(Dt)),Lt},c[r.HSL]=function(_e){var lt=_e.match(b.HSL),Rt=x(lt[1]||lt[5]),At=C(lt[2]||lt[6]),Pt=C(lt[3]||lt[7]),Dt=lt[4]||lt[8],Lt=X(Rt,At,Pt);return Dt!==void 0&&(Lt.a=N(Dt)),Lt},c[r.CMYK]=function(_e){var lt=_e.match(b.CMYK),Rt=S(lt[1]||lt[6]),At=S(lt[2]||lt[7]),Pt=S(lt[3]||lt[8]),Dt=S(lt[4]||lt[9]),Lt=lt[5]||lt[10],Bt=Y(Rt,At,Pt,Dt);return Lt!==void 0&&(Bt.a=N(Lt)),Bt},c),Z=((s={})[r.HEX]=function(_e){var lt={r:D("".concat(_e.r)),g:D("".concat(_e.g)),b:D("".concat(_e.b))};return H(_e,"a")&&(lt.a=Math.min(D("".concat(_e.a),!0),1)),lt},s[r.RGB]=function(_e){return this.HEX(_e)},s[r.HSL]=function(_e){var lt=C("".concat(_e.s)),Rt=C("".concat(_e.l)),At=X(x(_e.h),lt,Rt);return H(_e,"a")&&(At.a=N(_e.a)),At},s[r.CMYK]=function(_e){var lt=S("".concat(_e.c)),Rt=S("".concat(_e.m)),At=S("".concat(_e.y)),Pt=S("".concat(_e.k)),Dt=Y(lt,Rt,At,Pt);return H(_e,"a")&&(Dt.a=N(_e.a)),Dt},s),tt=function(_e,lt){return lt===void 0&&(lt=J(_e)),typeof _e=="string"?W[lt](_e):Z[lt](_e)},et=((d={})[r.HEX]=function(_e){return{r:R(_e.r),g:R(_e.g),b:R(_e.b)}},d.HEXA=function(_e){var lt=et.HEX(_e);return lt.a=H(_e,"a")?R(255*_e.a):"0xFF",lt},d[r.RGB]=function(_e,lt){return H(_e,"a")&&delete _e.a,ot(_e,lt)},d.RGBA=function(_e,lt){return _e.a=H(_e,"a")?G(_e.a):1,ot(_e,lt)},d[r.HSL]=function(_e,lt){var Rt=K(_e.r,_e.g,_e.b);return delete Rt.a,at(Rt,lt)},d.HSLA=function(_e,lt){var Rt=et.HSL(_e,lt);return Rt.a=H(_e,"a")?G(_e.a,lt):1,Rt},d[r.CMYK]=function(_e,lt){return ut(j(_e.r,_e.g,_e.b),lt)},d.CMYKA=function(_e,lt){var Rt=et.CMYK(_e,lt);return Rt.a=H(_e,"a")?G(_e.a,lt):1,Rt},d),rt=function(_e,lt,Rt,At){var Pt=J(_e),Dt=typeof _e=="string",Lt=tt(_e,Pt),Bt=typeof _e=="string"&&H(Lt,"a")||typeof _e!="string"&&H(_e,"a"),Nt=K(Lt.r,Lt.g,Lt.b,Lt.a);Bt||delete Nt.a;var jt=Rt?Nt.l/(lt+1):(100-Nt.l)/(lt+1),Ut=Array(lt).fill(null).map(function(Gt,qt){return t(t({},Nt),{l:Nt.l+jt*(qt+1)*(1-2*+Rt)})});switch(Pt){case r.HEX:default:return Ut.map(function(Gt){var qt=X(Gt.h,Gt.s,Gt.l);return Bt&&(qt.a=Gt.a),Dt?Bt?w.HEX(ot(t(t({},qt),{a:G(255*qt.a)}),At)):w.HEX(ot(qt,At)):Bt?et.HEXA(qt):et.HEX(qt)});case r.RGB:return Ut.map(function(Gt){var qt=X(Gt.h,Gt.s,Gt.l);return Bt&&(qt.a=Gt.a),Dt?w.RGB(ot(qt,At)):Bt?et.RGBA(qt,At):et.RGB(qt,At)});case r.HSL:return Ut.map(function(Gt){return Dt?w.HSL(at(Gt,At)):Bt?et.HSLA(t(t({},X(Gt.h,Gt.s,Gt.l)),{a:Gt.a}),At):et.HSL(X(Gt.h,Gt.s,Gt.l),At)})}},nt=((h={buildHarmony:function(_e,lt,Rt,At){var Pt=J(_e),Dt=tt(_e,Pt),Lt=K(Dt.r,Dt.g,Dt.b,Dt.a),Bt=typeof _e=="string"&&H(Dt,"a")||typeof _e!="string"&&H(_e,"a"),Nt=typeof _e=="string";switch(Pt){case r.HEX:default:return Bt?this.HEXA(at(Lt,0),lt,Rt,Nt):this.HEX(at(Lt,0),lt,Rt,Nt);case r.HSL:return Bt?this.HSLA(Lt,lt,Rt,Nt,At):this.HSL(Lt,lt,Rt,Nt,At);case r.RGB:return Bt?this.RGBA(Lt,lt,Rt,Nt,At):this.RGB(Lt,lt,Rt,Nt,At)}}})[r.HEX]=function(_e,lt,Rt,At){return lt(_e,Rt).map(function(Pt){return At?w.HEX(X(Pt.h,Pt.s,Pt.l)):et.HEX(X(Pt.h,Pt.s,Pt.l))})},h.HEXA=function(_e,lt,Rt,At){return lt(_e,Rt).map(function(Pt){return At?w.HEX(t(t({},X(Pt.h,Pt.s,Pt.l)),{a:255*N(Pt.a)})):et.HEXA(t(t({},X(Pt.h,Pt.s,Pt.l)),{a:N(Pt.a)}))})},h[r.RGB]=function(_e,lt,Rt,At,Pt){return lt(_e,Rt).map(function(Dt){return At?w.RGB(ot(X(Dt.h,Dt.s,Dt.l),Pt)):et.RGB(X(Dt.h,Dt.s,Dt.l),Pt)})},h.RGBA=function(_e,lt,Rt,At,Pt){return lt(_e,Rt).map(function(Dt){return At?w.RGB(ot(t(t({},X(Dt.h,Dt.s,Dt.l)),{a:N(Dt.a)}),Pt)):et.RGBA(t(t({},X(Dt.h,Dt.s,Dt.l)),{a:N(Dt.a)}),Pt)})},h[r.HSL]=function(_e,lt,Rt,At,Pt){return lt(_e,Rt).map(function(Dt){return At?w.HSL(at({h:Dt.h,s:Dt.s,l:Dt.l},Pt)):et.HSL(X(Dt.h,Dt.s,Dt.l),Pt)})},h.HSLA=function(_e,lt,Rt,At,Pt){return lt(_e,Rt).map(function(Dt){return At?w.HSL(at(t(t({},Dt),{a:N(Dt.a)}),Pt)):et.HSLA(t(t({},X(Dt.h,Dt.s,Dt.l)),{a:N(Dt.a)}),Pt)})},h),it=((l={mix:function(_e,lt){var Rt,At,Pt,Dt,Lt,Bt,Nt,jt,Ut,Gt,qt,Xt,Kt,Zt,Qt,Jt=_e.map(function(cn){var un=J(cn);return tt(cn,un)}),en=lt===i.SUBTRACTIVE?Jt.map(function(cn){var un,rn,sn,pn,bn,gn,_n,xn,ln,Mn,Tn,An,Cn,wn,Fn=(un=cn.r,rn=cn.g,sn=cn.b,pn=Math.min(un,rn,sn),bn=Math.min(255-un,255-rn,255-sn),gn=un-pn,_n=rn-pn,xn=sn-pn,ln=Math.min(gn,_n),Mn=gn-ln,Tn=(_n+ln)/2,An=(xn+_n-ln)/2,Cn=Math.max(Mn,Tn,An)/Math.max(gn,_n,xn),wn=isNaN(Cn)||Cn===1/0||Cn<=0?1:Cn,{r:Mn/wn+bn,y:Tn/wn+bn,b:An/wn+bn});return H(cn,"a")&&(Fn.a=cn.a),Fn}):null;function tn(cn){var un=lt===i.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return cn.reduce(function(rn,sn){var pn=H(sn,"a")?sn.a:1,bn={r:Math.min(rn.r+sn.r*pn,255),b:Math.min(rn.b+sn.b*pn,255),a:1-(1-pn)*(1-rn.a)},gn="g"in rn?rn.g:rn.y,_n="g"in sn?sn.g:sn.y;return t(t({},bn),lt===i.ADDITIVE?{g:Math.min(gn+_n*pn,255)}:{y:Math.min(gn+_n*pn,255)})},un)}if(lt===i.ADDITIVE)Rt=tn(Jt);else{var an=tn(en);At=an.r,Pt=an.y,Dt=an.b,Lt=Math.min(At,Pt,Dt),Bt=Math.min(255-At,255-Pt,255-Dt),Nt=At-Lt,jt=Pt-Lt,Ut=Dt-Lt,Gt=Math.min(jt,Ut),qt=Nt+jt-Gt,Xt=jt+Gt,Kt=2*(Ut-Gt),Zt=Math.max(qt,Xt,Kt)/Math.max(Nt,jt,Ut),Qt=isNaN(Zt)||Zt===1/0||Zt<=0?1:Zt,(Rt={r:qt/Qt+Bt,g:Xt/Qt+Bt,b:Kt/Qt+Bt}).a=an.a}return{r:G(Rt.r),g:G(Rt.g),b:G(Rt.b),a:k(Rt.a,0,1)}}})[r.HEX]=function(_e,lt,Rt){var At=this.mix(_e,lt);return delete At.a,Rt?w.HEX(At):et.HEX(At)},l.HEXA=function(_e,lt,Rt){var At=this.mix(_e,lt);return At.a=Rt?255*N(At.a):N(At.a),Rt?w.HEX(At):et.HEXA(At)},l[r.RGB]=function(_e,lt,Rt,At){var Pt=this.mix(_e,lt);return delete Pt.a,Rt?w.RGB(Pt):et.RGB(Pt,At)},l.RGBA=function(_e,lt,Rt,At){var Pt=this.mix(_e,lt);return Rt?w.RGB(Pt):et.RGBA(Pt,At)},l[r.HSL]=function(_e,lt,Rt,At){var Pt=this.mix(_e,lt),Dt=K(Pt.r,Pt.g,Pt.b);return delete Pt.a,delete Dt.a,Rt?w.HSL(Dt):et.HSL(Pt,At)},l.HSLA=function(_e,lt,Rt,At){var Pt=this.mix(_e,lt),Dt=K(Pt.r,Pt.g,Pt.b,Pt.a);return Rt?w.HSL(Dt):et.HSLA(Pt,At)},l),ot=function(_e,lt){return t({r:G(_e.r,lt),g:G(_e.g,lt),b:G(_e.b,lt)},H(_e,"a")?{a:G(_e.a,lt)}:{})},at=function(_e,lt){return t({h:G(_e.h,lt),s:G(_e.s,lt),l:G(_e.l,lt)},H(_e,"a")?{a:G(_e.a,lt)}:{})},ut=function(_e,lt){return{c:G(_e.c,lt),m:G(_e.m,lt),y:G(_e.y,lt),k:G(_e.k,lt)}},ct=function(_e,lt,Rt,At,Pt,Dt){var Lt=Pt(tt(_e,lt),At);return Rt?Dt(Lt):Lt},st=function(_e,lt,Rt,At,Pt,Dt,Lt){Rt<1&&(Rt=5);var Bt=function(Nt,jt,Ut){var Gt=Ut-1,qt=(jt.r-Nt.r)/Gt,Xt=(jt.g-Nt.g)/Gt,Kt=(jt.b-Nt.b)/Gt,Zt=N(Nt.a),Qt=(N(jt.a)-Zt)/Gt;return Array(Ut).fill(null).map(function(Jt,en){return en===0?Nt:en===Gt?jt:{r:G(Nt.r+qt*en),g:G(Nt.g+Xt*en),b:G(Nt.b+Kt*en),a:G(Zt+Qt*en)}})}(tt(_e),tt(lt),Rt);return Bt.map(function(Nt){var jt=Dt(Nt,Pt);return At?Lt(jt):jt})},dt=function(){function _e(lt,Rt){Rt===void 0&&(Rt=6),this.rgb=tt(lt),this._decimals=Rt,this.updateHSL(),this.updateCMYK()}return _e.prototype.updateRGB=function(){this.rgb=t(t({},X(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},_e.prototype.updateRGBFromCMYK=function(){this.rgb=t(t({},Y(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},_e.prototype.updateHSL=function(){this.hsl=K(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},_e.prototype.updateCMYK=function(){this.cmyk=j(this.rgb.r,this.rgb.g,this.rgb.b)},_e.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},_e.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},_e.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},_e.prototype.setDecimals=function(lt){return this._decimals=lt,this},_e.prototype.setH=function(lt){return this.hsl.h=x(lt),this.updateRGBAndCMYK()},_e.prototype.setS=function(lt){return this.hsl.s=k(lt,0,100),this.updateRGBAndCMYK()},_e.prototype.setL=function(lt){return this.hsl.l=k(lt,0,100),this.updateRGBAndCMYK()},_e.prototype.setR=function(lt){return this.rgb.r=k(lt,0,255),this.updateHSLAndCMYK()},_e.prototype.setG=function(lt){return this.rgb.g=k(lt,0,255),this.updateHSLAndCMYK()},_e.prototype.setB=function(lt){return this.rgb.b=k(lt,0,255),this.updateHSLAndCMYK()},_e.prototype.setA=function(lt){return this.hsl.a=this.rgb.a=k(lt,0,1),this},_e.prototype.setC=function(lt){return this.cmyk.c=k(lt,0,100),this.updateRGBAndHSL()},_e.prototype.setM=function(lt){return this.cmyk.m=k(lt,0,100),this.updateRGBAndHSL()},_e.prototype.setY=function(lt){return this.cmyk.y=k(lt,0,100),this.updateRGBAndHSL()},_e.prototype.setK=function(lt){return this.cmyk.k=k(lt,0,100),this.updateRGBAndHSL()},Object.defineProperty(_e.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"H",{get:function(){return G(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"S",{get:function(){return G(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"L",{get:function(){return G(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"R",{get:function(){return G(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"G",{get:function(){return G(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"B",{get:function(){return G(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"A",{get:function(){return G(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"C",{get:function(){return G(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"M",{get:function(){return G(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"Y",{get:function(){return G(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"K",{get:function(){return G(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HEXObject",{get:function(){return et.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HEXAObject",{get:function(){return et.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"RGBAObject",{get:function(){return t(t({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HSLAObject",{get:function(){return t(t({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"CMYKAObject",{get:function(){return t(t({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HEX",{get:function(){return w.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HEXA",{get:function(){return w.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"RGB",{get:function(){return w.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"RGBA",{get:function(){return w.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HSL",{get:function(){return w.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HSLA",{get:function(){return w.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"CMYK",{get:function(){return w.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"CMYKA",{get:function(){return w.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),_e.toHEX=function(lt,Rt){Rt===void 0&&(Rt=!0);var At=J(lt);return ct(lt,At,Rt,0,et.HEX,w.HEX)},_e.toHEXA=function(lt,Rt){Rt===void 0&&(Rt=!0);var At=J(lt);return ct(lt,At,Rt,0,et.HEXA,w.HEX)},_e.toRGB=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.RGB,w.RGB)},_e.toRGBA=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.RGBA,w.RGB)},_e.toHSL=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.HSL,w.HSL)},_e.toHSLA=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.HSLA,w.HSL)},_e.toCMYK=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.CMYK,w.CMYK)},_e.toCMYKA=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.CMYKA,w.CMYK)},_e.getBlendHEX=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.HEX,w.HEX)},_e.getBlendHEXA=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.HEXA,w.HEX)},_e.getBlendRGB=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.RGB,w.RGB)},_e.getBlendRGBA=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.RGBA,w.RGB)},_e.getBlendHSL=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.HSL,w.HSL)},_e.getBlendHSLA=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.HSLA,w.HSL)},_e.getMixHEX=function(lt,Rt,At){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),it.HEX(lt,Rt,At)},_e.getMixHEXA=function(lt,Rt,At){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),it.HEXA(lt,Rt,At)},_e.getMixRGB=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),Pt===void 0&&(Pt=6),it.RGB(lt,Rt,At,Pt)},_e.getMixRGBA=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),Pt===void 0&&(Pt=6),it.RGBA(lt,Rt,At,Pt)},_e.getMixHSL=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),Pt===void 0&&(Pt=6),it.HSL(lt,Rt,At,Pt)},_e.getMixHSLA=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),Pt===void 0&&(Pt=6),it.HSLA(lt,Rt,At,Pt)},_e.getShades=function(lt,Rt,At){return At===void 0&&(At=6),rt(lt,Rt,!0,At)},_e.getTints=function(lt,Rt,At){return At===void 0&&(At=6),rt(lt,Rt,!1,At)},_e.getHarmony=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=n.COMPLEMENTARY),At===void 0&&(At=i.ADDITIVE),Pt===void 0&&(Pt=6),function(Dt,Lt,Bt,Nt){var jt;return(jt={},jt[n.ANALOGOUS]=nt.buildHarmony(Lt,U,Nt,Bt),jt[n.COMPLEMENTARY]=nt.buildHarmony(Lt,q,Nt,Bt),jt[n.SPLIT_COMPLEMENTARY]=nt.buildHarmony(Lt,$,Nt,Bt),jt[n.TRIADIC]=nt.buildHarmony(Lt,_,Nt,Bt),jt[n.TETRADIC]=nt.buildHarmony(Lt,Q,Nt,Bt),jt[n.SQUARE]=nt.buildHarmony(Lt,z$1,Nt,Bt),jt)[Dt]}(Rt,lt,Pt,At)},_e}();const defaultContext={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:ceil$1,PI}=Math,getFillStyle=(_e,lt)=>new dt(_e).setA(lt??defaultContext.alpha).RGBA,getStrokeStyle=(_e,lt)=>getFillStyle(_e,lt);function transform(_e,lt){return{width:_e.width*lt.scale.x,height:_e.height*lt.scale.y,x:_e.x*lt.scale.x+lt.x,y:_e.y*lt.scale.y+lt.y}}const text={draw(_e,lt,Rt){if(_e.text){const At=transform(_e,{x:_e.textX,y:_e.textY,scale:{x:1,y:1}}),Pt=transform(At,Rt);lt.font=`${_e.fontSize*Rt.scale.x}px Arial`,lt.fillStyle=getFillStyle(_e.fontColor,_e.alpha),lt.fillText(_e.text,Pt.x,Pt.y)}},test(_e){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},rect={draw(_e,lt,Rt){const{x:At,y:Pt,width:Dt,height:Lt}=transform(_e,Rt);lt.fillStyle=getFillStyle(_e.fill,_e.alpha),lt.fillRect(ceil$1(At),ceil$1(Pt),ceil$1(Dt)||1,ceil$1(Lt)||1)},test(_e){return{left:_e.x,right:_e.x+_e.width,top:_e.y,bottom:_e.y+_e.height}}},circle={draw(_e,lt,Rt){lt.fillStyle=getFillStyle(_e.fill,_e.alpha),lt.beginPath();const At=transform({..._e,width:_e.radius,height:_e.radius},Rt);lt.ellipse(ceil$1(At.x),ceil$1(At.y),ceil$1(At.width),ceil$1(At.height),0,0,2*PI),lt.fill()},test(_e){return{left:_e.x-_e.radius,right:_e.x+_e.radius,top:_e.y-_e.radius,bottom:_e.y+_e.radius}}},polygon={draw(_e,lt,Rt){const[At,...Pt]=_e.points;lt.beginPath(),lt.fillStyle=getFillStyle(_e.fill,_e.alpha);const{x:Dt,y:Lt}=transform({...At,width:0,height:0},Rt);lt.moveTo(ceil$1(Dt),ceil$1(Lt));for(const Bt of Pt){const{x:Nt,y:jt}=transform({...Bt,width:0,height:0},Rt);lt.lineTo(ceil$1(Nt),ceil$1(jt))}lt.closePath(),lt.fill()},test(_e){var lt,Rt,At,Pt;return{left:((lt=lodashExports.minBy(_e.points,"x"))==null?void 0:lt.x)??0,right:((Rt=lodashExports.maxBy(_e.points,"x"))==null?void 0:Rt.x)??0,top:((At=lodashExports.minBy(_e.points,"y"))==null?void 0:At.y)??0,bottom:((Pt=lodashExports.maxBy(_e.points,"y"))==null?void 0:Pt.y)??0}}},path={draw(_e,lt,Rt){const[At,...Pt]=_e.points;lt.beginPath(),lt.lineCap="round",lt.lineJoin="round",lt.strokeStyle=getStrokeStyle(_e.fill,_e.alpha);const{x:Dt,y:Lt,width:Bt}=transform({...At,width:_e.lineWidth,height:0},Rt);lt.lineWidth=ceil$1(Bt),lt.moveTo(ceil$1(Dt),ceil$1(Lt));for(const Nt of Pt){const{x:jt,y:Ut}=transform({...Nt,width:0,height:0},Rt);lt.lineTo(ceil$1(jt),ceil$1(Ut))}lt.stroke()},test(_e){var lt,Rt,At,Pt;return{left:((lt=lodashExports.minBy(_e.points,"x"))==null?void 0:lt.x)??0-_e.lineWidth??0,right:((Rt=lodashExports.maxBy(_e.points,"x"))==null?void 0:Rt.x)??0+_e.lineWidth??0,top:((At=lodashExports.minBy(_e.points,"y"))==null?void 0:At.y)??0-_e.lineWidth??0,bottom:((Pt=lodashExports.maxBy(_e.points,"y"))==null?void 0:Pt.y)??0+_e.lineWidth??0}}},primitives={text,path,rect,polygon,circle},{log2,max:max$2}=Math,z=_e=>lodashExports.floor(log2(_e+1));function getTiles({right:_e,left:lt,bottom:Rt,top:At},Pt){const Dt=max$2(z(_e-lt),z(Rt-At))-Pt,Lt=2**Dt,Bt={left:lodashExports.floor(lt/Lt),right:lodashExports.ceil((_e+1)/Lt),top:lodashExports.floor(At/Lt),bottom:lodashExports.ceil((Rt+1)/Lt)};return{zoom:Dt,order:Lt,tiles:lodashExports.shuffle(_default({x:lodashExports.range(Bt.left,Bt.right+1),y:lodashExports.range(Bt.top,Bt.bottom+1)}).map(Nt=>{const jt=Nt.x*Lt,Ut=Nt.y*Lt;return{tile:Nt,bounds:{left:jt-Lt/2,right:jt+Lt/2,top:Ut-Lt/2,bottom:Ut+Lt/2}}}))}}const d2RendererWorkerUrl=""+new URL("D2Renderer.worker-ebe2dbad.js",import.meta.url).href;class D2RendererWorkerAdapter extends Worker{constructor(){super(d2RendererWorkerUrl,{type:"module"})}call(lt,Rt,At=[]){return this.postMessage({action:lt,payload:Rt},At)}on(lt,Rt){const At=Pt=>{const{action:Dt,payload:Lt}=Pt.data;Dt===lt&&Rt(Lt)};return this.addEventListener("message",At),()=>this.removeEventListener("message",At)}}function intersect(_e,lt){return!(lt.left>=_e.right||lt.right<=_e.left||lt.top>=_e.bottom||lt.bottom<=_e.top)}const{max:max$1,min:min$1}=Math,_Tile=class BE extends Sprite{constructor(lt,Rt){super(lt),this.bounds=Rt,this.destroying=!1,this.age=BE.age++}};_Tile.age=0;let Tile=_Tile;function handleNaN(_e,lt){return lodashExports.isNaN(_e)?lt:_e}var Zl,Vs,$p,wp,Tl,Bu,Tp,Cp,G0,V0,NE,q0,FE,jm,z0,Y0,X0,jE,K0,zE,Z0,UE,Q0,HE,U0,PE,H0,ME,J0,WE,W0,OE,ey,GE,ty,VE,ny,qE;class D2Renderer extends EventEmitter{constructor(){super(...arguments);Ps(this,V0);Ps(this,q0);Ps(this,X0);Ps(this,K0);Ps(this,Z0);Ps(this,Q0);Ps(this,U0);Ps(this,H0);Ps(this,J0);Ps(this,W0);Ps(this,ey);Ps(this,ty);Ps(this,ny);Ps(this,Zl,void 0);Ps(this,Vs,void 0);Ps(this,$p,void 0);Ps(this,wp,void 0);Ps(this,Tl,defaultD2RendererOptions);Ps(this,Bu,[]);Ps(this,Tp,new Bush(16));Ps(this,Cp,void 0);Ps(this,G0,0);Ps(this,jm,lodashExports.once(()=>lodashExports.debounce(()=>Fl(this,U0,PE).call(this),_o(this,Tl).debounceInterval)));Ps(this,z0,lodashExports.once(()=>lodashExports.throttle(()=>Fl(this,H0,ME).call(this),_o(this,Tl).refreshInterval)));Ps(this,Y0,lodashExports.once(()=>lodashExports.throttle(Rt=>Fl(this,J0,WE).call(this,Rt),_o(this,Tl).refreshInterval)))}getInstance(){return{app:_o(this,Zl),viewport:_o(this,Vs)}}fitCamera(Rt=lodashExports.constant(!0)){var Pt,Dt,Lt,Bt;const At=lodashExports.values(_o(this,Tp).all()).flat().filter(Rt);if(At.length){const Nt=lodashExports.reduce(At,(jt,Ut)=>({top:handleNaN(min$1(jt.top,Ut.top),jt.top),left:handleNaN(min$1(jt.left,Ut.left),jt.left),bottom:handleNaN(max$1(jt.bottom,Ut.bottom),jt.bottom),right:handleNaN(max$1(jt.right,Ut.right),jt.right)}),{bottom:-1/0,top:1/0,left:1/0,right:-1/0});(Bt=(Pt=_o(this,Vs))==null?void 0:Pt.animate)==null||Bt.call(Pt,{position:new Point((Nt.left+Nt.right)/2,(Nt.top+Nt.bottom)/2),scale:((Lt=(Dt=_o(this,Vs))==null?void 0:Dt.findFit)==null?void 0:Lt.call(Dt,Nt.right-Nt.left,Nt.bottom-Nt.top))*.8,ease:"easeOutExpo",time:_o(this,Tl).animationDuration*1.5,callbackOnComplete:()=>_o(this,jm).call(this)()})}}initialCamera(){var Rt,At;(At=(Rt=_o(this,Vs))==null?void 0:Rt.animate)==null||At.call(Rt,{scale:1,ease:"easeOutExpo",time:_o(this,Tl).animationDuration*1.5,callbackOnComplete:()=>_o(this,jm).call(this)()})}getView(){var Rt;return(Rt=_o(this,Zl))==null?void 0:Rt.view}async toDataUrl(){var Rt,At,Pt,Dt,Lt;return(At=(Rt=_o(this,Zl))==null?void 0:Rt.render)==null||At.call(Rt),(Lt=(Dt=(Pt=_o(this,Zl))==null?void 0:Pt.view)==null?void 0:Dt.toDataURL)==null?void 0:Lt.call(Dt)}setup(Rt){const At={...defaultD2RendererOptions,...Rt};Fl(this,q0,FE).call(this,At),this.setOptions(At),Fl(this,K0,zE).call(this,At)}destroy(){lodashExports.map(_o(this,Bu),Rt=>Rt.terminate()),_o(this,Zl).destroy()}add(Rt){const At=nanoid();lodashExports.map(_o(this,Bu),Dt=>Dt.call("add",[Rt,At]));const Pt=lodashExports.map(Rt,({component:Dt,meta:Lt})=>({...primitives[Dt.$].test(Dt),component:Dt,meta:Lt,index:Fl(this,V0,NE).call(this)}));return _o(this,Tp).load(Pt),()=>lodashExports.defer(()=>{for(const Dt of Pt)_o(this,Tp).remove(Dt);lodashExports.map(_o(this,Bu),Dt=>Dt.call("remove",[At]))})}setOptions(Rt){const At={..._o(this,Tl),...Rt};Fl(this,Z0,UE).call(this,At),_p(this,Tl,At),Fl(this,U0,PE).call(this),Fl(this,H0,ME).call(this)}}Zl=new WeakMap,Vs=new WeakMap,$p=new WeakMap,wp=new WeakMap,Tl=new WeakMap,Bu=new WeakMap,Tp=new WeakMap,Cp=new WeakMap,G0=new WeakMap,V0=new WeakSet,NE=function(){return DE(this,G0)._++},q0=new WeakSet,FE=function(Rt){_p(this,Zl,new Application({backgroundAlpha:0,width:Rt.screenSize.width,height:Rt.screenSize.height,autoDensity:!0,resolution:2})),_p(this,Vs,new ht({stopPropagation:!0,screenWidth:Rt.screenSize.width,screenHeight:Rt.screenSize.height,events:_o(this,Zl).renderer.events,passiveWheel:!1})),_o(this,Vs).on("clicked",At=>{const{x:Pt,y:Dt}=At.world,Lt=_o(this,Tp).search({minX:Pt,minY:Dt,maxX:Pt+Number.MIN_VALUE,maxY:Dt+Number.MIN_VALUE});this.emit("click",At.event,{world:At.world,components:Lt})}),_o(this,Zl).stage.addChild(_o(this,Vs)),_o(this,Vs).drag().pinch().wheel().decelerate({friction:.98}).clampZoom({maxScale:300,minScale:1e-5}),_o(this,Vs).on("moved",()=>{_o(this,jm).call(this)(),_o(this,z0).call(this)()}),_o(this,Vs).on("mousemove",At=>_o(this,Y0).call(this)(At)),_p(this,$p,new Container),_o(this,Vs).addChild(_o(this,$p)),_p(this,wp,new Graphics),_o(this,Vs).addChild(_o(this,wp)),_p(this,Cp,new Graphics),_o(this,Vs).addChild(_o(this,Cp)),Fl(this,X0,jE).call(this)},jm=new WeakMap,z0=new WeakMap,Y0=new WeakMap,X0=new WeakSet,jE=function(){const{dynamicResolution:Rt}=_o(this,Tl),{dtMax:At,dtMin:Pt,increment:Dt,intervalMs:Lt,maxScale:Bt,minScale:Nt}=Rt,jt=lodashExports.floor(Ticker.targetFPMS*Lt);let Ut=0,Gt=0,qt=1;_o(this,Zl).ticker.add(Xt=>{const{tileResolution:Kt}=_o(this,Tl);if(!(Ut%jt)){const Zt=Gt/jt;qt=lodashExports.clamp(Zt>=At?qt+Dt:Zt<=Pt?qt-Dt:qt,Nt,Bt),lodashExports.map(_o(this,Bu),Qt=>{Qt.call("setTileResolution",[{width:lodashExports.ceil(Kt.width/qt),height:lodashExports.ceil(Kt.height/qt)}])}),Gt=0}Gt+=Xt,Ut++})},K0=new WeakSet,zE=function(Rt){lodashExports.map(_o(this,Bu),At=>At.terminate()),_p(this,Bu,lodashExports.times(Rt.workerCount,At=>{const Pt=new D2RendererWorkerAdapter;return Pt.on("update",Dt=>Fl(this,Q0,HE).call(this,Dt)),Pt.onerror=Dt=>{throw Dt},Pt.call("setup",[{...Rt,workerIndex:At}]),Pt}))},Z0=new WeakSet,UE=function(Rt){var Dt,Lt,Bt,Nt;const{width:At,height:Pt}=Rt.screenSize;(Bt=(Lt=(Dt=_o(this,Zl))==null?void 0:Dt.renderer)==null?void 0:Lt.resize)==null||Bt.call(Lt,At,Pt),(Nt=_o(this,Vs))==null||Nt.resize(At,Pt),lodashExports.map(_o(this,Bu),jt=>{jt.call("setTileResolution",[{width:lodashExports.ceil(Rt.tileResolution.width),height:lodashExports.ceil(Rt.tileResolution.height)}])})},Q0=new WeakSet,HE=function({bounds:Rt,bitmap:At}){const Pt=Texture.from(At);Fl(this,ey,GE).call(this,Pt,Rt)},U0=new WeakSet,PE=function(){const{top:Rt,bottom:At,left:Pt,right:Dt}=_o(this,Vs);lodashExports.map(_o(this,Bu),Lt=>Lt.call("setFrustum",[{top:Rt,bottom:At,left:Pt,right:Dt}]))},H0=new WeakSet,ME=function(){var Lt,Bt,Nt,jt,Ut;const{tileSubdivision:Rt,accentColor:At}=_o(this,Tl),{tiles:Pt}=getTiles(_o(this,Vs),Rt),Dt=Fl(this,W0,OE).call(this);(Lt=_o(this,wp))==null||Lt.clear(),(Bt=_o(this,wp))==null||Bt.lineStyle(1*Dt,At,.5),(Nt=_o(this,wp))==null||Nt.beginFill(At,.05);for(const{bounds:Gt,tile:qt}of Pt)lodashExports.find((jt=_o(this,$p))==null?void 0:jt.children,Xt=>lodashExports.isEqual(Xt.bounds,Gt))||(Ut=_o(this,wp))==null||Ut.drawRect(Gt.left,Gt.top,Gt.right-Gt.left,Gt.bottom-Gt.top)},J0=new WeakSet,WE=function(Rt){var Nt;const{accentColor:At}=_o(this,Tl),Pt=Fl(this,W0,OE).call(this),{x:Dt,y:Lt}=_o(this,Vs).toWorld(Rt.globalX,Rt.globalY),Bt=_o(this,Tp).search({minX:Dt,minY:Lt,maxX:Dt+Number.MIN_VALUE,maxY:Lt+Number.MIN_VALUE});_o(this,Cp).clear(),_o(this,Cp).lineStyle(2*Pt,At,1);for(const jt of Bt)(Nt=_o(this,Cp))==null||Nt.drawRect(jt.left,jt.top,jt.right-jt.left,jt.bottom-jt.top)},W0=new WeakSet,OE=function(){const{right:Rt,left:At}=_o(this,Vs),{width:Pt}=_o(this,Tl).screenSize;return(Rt-At)/Pt},ey=new WeakSet,GE=async function(Rt,At){var Lt,Bt;const{tileSubdivision:Pt}=_o(this,Tl),{tiles:Dt}=getTiles(_o(this,Vs),Pt);if(lodashExports.find(Dt,Nt=>lodashExports.isEqual(Nt.bounds,At))){const Nt={x:(At.right-At.left)/Rt.width,y:(At.bottom-At.top)/Rt.height},jt=new Tile(Rt,At);(Lt=_o(this,$p))==null||Lt.addChild(jt).setTransform(At.left,At.top,Nt.x,Nt.y),_o(this,z0).call(this)(),await Fl(this,ty,VE).call(this,jt),lodashExports.forEach((Bt=_o(this,$p))==null?void 0:Bt.children,async Ut=>{intersect(Ut.bounds,At)&&Ut.age{const Dt=Lt=>{Rt.alpha+=Lt/Ticker.targetFPMS/_o(this,Tl).animationDuration,Rt.alpha>1&&(At.remove(Dt),Pt())};Rt.alpha=0,At.add(Dt)})},ny=new WeakSet,qE=function(Rt){const At=_o(this,Zl).ticker;return new Promise(Pt=>{const Dt=Lt=>{Rt.alpha-=Lt/Ticker.targetFPMS/_o(this,Tl).animationDuration,Rt.alpha<0&&(At.remove(Dt),Pt())};Rt.alpha=1,At.add(Dt)})};const D2Renderer$1=makeRenderer(D2Renderer,{components:["rect","circle","path","polygon"],id:"d2-renderer",name:"Pixi",description:"Provides 2D Visualisation Support",version:"1.0.0"}),renderers={"d2-renderer":D2Renderer$1};class NativeRendererTransport{constructor(lt){this.options=lt}async get(){const{hostname:lt}=url$2(this.options.url);return renderers[lt]}}const transports={native:{name:"Internal",constructor:NativeRendererTransport}};function RendererService(){const[{renderer:_e}]=useSettings(),[,lt]=useRenderers();return useAsync(async()=>{const Rt=[];for(const{transport:At,url:Pt,key:Dt,disabled:Lt}of _e??[])if(!Lt){const Bt=new transports[At].constructor({url:Pt});Rt.push({key:Dt,url:Pt,renderer:await Bt.get()})}lt(()=>Rt)},[_e,lt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}const statusColor$1={connected:"success.light",connecting:"warning.light",error:"error.light",disabled:"text.disabled"};function RendererEditor({value:_e,onValueChange:lt}){const[Rt]=useRenderers(),At=usePaper(),Pt=lodashExports$1.find(Rt,{key:_e.key});function Dt(Bt){lt==null||lt(merge$3(_e,Bt))}const Lt=_e!=null&&_e.disabled?"disabled":Pt?"connected":"error";return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Flex,{alignItems:"center",py:1,children:[jsxRuntimeExports.jsxs(Box$1,{flex:1,children:[jsxRuntimeExports.jsx(Typography$1,{children:Pt?`${Pt.renderer.meta.name} ${Pt.renderer.meta.version}`:lodashExports$1.startCase(Lt)}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Pt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:Pt.renderer.meta.description}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs("span",{children:["Contributes: ",lodashExports$1.join(Pt.renderer.meta.components,", ")]})]}):(_e==null?void 0:_e.url)||"No URL"})]}),jsxRuntimeExports.jsx(Chip$1,{sx:{mx:1,color:statusColor$1[Lt],...lodashExports$1.omit(At(1),"borderRadius")},size:"small",label:lodashExports$1.startCase(Lt)}),jsxRuntimeExports.jsx(Tooltip$1,{title:`${_e.disabled?"Enable":"Disable"} Renderer`,children:jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(Switch$2,{checked:!_e.disabled,onChange:(Bt,Nt)=>Dt({disabled:!Nt})})})}),jsxRuntimeExports.jsx(ManagedModal,{trigger:Bt=>jsxRuntimeExports.jsx(IconButtonWithTooltip,{icon:jsxRuntimeExports.jsx(EditIcon,{}),label:"Edit Renderer",sx:{mr:-3},onClick:Bt}),appBar:{children:jsxRuntimeExports.jsx(AppBarTitle,{children:"Edit Renderer"})},children:jsxRuntimeExports.jsxs(Box$1,{p:2.5,children:[jsxRuntimeExports.jsx(TextField$1,{defaultValue:_e.url,onChange:Bt=>Dt({url:Bt.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),jsxRuntimeExports.jsx(SelectField,{placeholder:"Renderer Type",items:lodashExports$1.entries(transports).map(([Bt,{name:Nt}])=>({value:Bt,label:Nt})),fullWidth:!0,value:_e.transport,onChange:Bt=>Dt({transport:Bt})})]})})]})})}function RendererListEditor(){const[{renderer:_e},lt]=useSettings();return jsxRuntimeExports.jsx(Box$1,{sx:{mx:-2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,button:!1,editor:Rt=>jsxRuntimeExports.jsx(RendererEditor,{value:Rt}),icon:null,value:_e,onChange:lodashExports$1.debounce(Rt=>lt(()=>({renderer:Rt})),300),addItemLabel:"Add Renderer",create:()=>({transport:defaultTransport,url:"",disabled:!0}),addItemExtras:jsxRuntimeExports.jsx(FeaturePickerButton,{icon:jsxRuntimeExports.jsx(ResetIcon,{}),sx:{ml:2},onClick:()=>lt(()=>({renderer:defaultRenderers})),children:"Reset to Defaults"})})})}function useConnectionStatus(_e){const[{connections:lt}]=useLoading(),Rt=useConnectionResolver(),[{remote:At}]=useSettings(),Pt=lodashExports$1.find(At,{url:_e});return Pt&&!(Pt!=null&&Pt.disabled)?Rt({url:_e})?"connected":lt?"connecting":_e?"error":"not-connected":"not-connected"}const statusColor={connected:"success.light",connecting:"warning.light",error:"error.light","not-connected":"text.disabled"};function ServerEditor({value:_e,onValueChange:lt}){const Rt=useConnection(_e.url),At=usePaper(),Pt=useConnectionStatus(_e.url),Dt=reactExports.useMemo(()=>debounce$2(Lt=>{lt==null||lt(merge$3(_e,Lt))},300),[lt,_e]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Flex,{alignItems:"center",py:.5,children:[jsxRuntimeExports.jsxs(Box$1,{flex:1,children:[jsxRuntimeExports.jsx(Typography$1,{children:Rt?`${Rt.name} ${Rt.version}`:lodashExports$1.startCase(Pt)}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:(Rt==null?void 0:Rt.description)??((_e==null?void 0:_e.url)||"No URL")})]}),jsxRuntimeExports.jsx(Chip$1,{sx:{mx:1,color:statusColor[Pt],...lodashExports$1.omit(At(1),"borderRadius")},size:"small",label:lodashExports$1.startCase(Pt)}),jsxRuntimeExports.jsx(Tooltip$1,{title:`${_e.disabled?"Enable":"Disable"} Connection`,children:jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(Switch$2,{defaultChecked:!_e.disabled,onChange:(Lt,Bt)=>Dt({disabled:!Bt})})})}),jsxRuntimeExports.jsx(ManagedModal,{trigger:Lt=>jsxRuntimeExports.jsx(IconButtonWithTooltip,{icon:jsxRuntimeExports.jsx(EditIcon,{}),label:"Edit Connection",sx:{mr:-3},onClick:Lt}),appBar:{children:jsxRuntimeExports.jsx(AppBarTitle,{children:"Edit Connection"})},children:jsxRuntimeExports.jsxs(Box$1,{p:2.5,children:[jsxRuntimeExports.jsx(TextField$1,{defaultValue:_e.url,onChange:Lt=>Dt({url:Lt.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),jsxRuntimeExports.jsx(SelectField,{placeholder:"Connection Type",items:lodashExports$1.entries(transports$1).map(([Lt,{name:Bt}])=>({value:Lt,label:Bt})),fullWidth:!0,value:_e.transport,onChange:Lt=>Dt({transport:Lt})})]})})]})})}function ServerListEditor(){const[{remote:_e},lt]=useSettings();return jsxRuntimeExports.jsx(Box$1,{sx:{mx:-2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,button:!1,editor:Rt=>jsxRuntimeExports.jsx(ServerEditor,{value:Rt}),icon:null,value:_e,onChange:lodashExports$1.debounce(Rt=>lt(()=>({remote:Rt})),300),addItemLabel:"Add Solver",create:()=>({transport:defaultTransport,url:"",disabled:!0}),addItemExtras:jsxRuntimeExports.jsx(FeaturePickerButton,{icon:jsxRuntimeExports.jsx(ResetIcon,{}),sx:{ml:2},onClick:()=>lt(()=>({remote:defaultRemotes})),children:"Reset to Defaults"})})})}const formatLabel=_e=>`${_e}x`;function SettingsPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext(),[{"playback/playbackRate":Dt=1,"appearance/acrylic":Lt,"appearance/theme":Bt="light","appearance/accentColor":Nt="teal","behaviour/showOnStart":jt},Ut]=useSettings(),[Gt,qt]=reactExports.useState("general");function Xt(Zt){return jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",children:Zt})}function Kt(Zt){return jsxRuntimeExports.jsx(Typography$1,{variant:"body1",sx:{minWidth:"max-content",mr:4},children:Zt})}return jsxRuntimeExports.jsx(TabContext,{value:Gt,children:jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsxs(TabList$1,{onChange:(Zt,Qt)=>qt(Qt),children:[jsxRuntimeExports.jsx(Tab$1,{label:"General",value:"general"}),jsxRuntimeExports.jsx(Tab$1,{label:"Connections",value:"connections"}),jsxRuntimeExports.jsx(Tab$1,{label:"Renderers",value:"renderers"}),jsxRuntimeExports.jsx(Tab$1,{label:"Map Parsers",value:"map-parsers"})]})}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsxs(Flex,{vertical:!0,pt:6,children:[jsxRuntimeExports.jsx(TabPanel$1,{value:"general",children:jsxRuntimeExports.jsxs(Box$1,{children:[Xt("Playback"),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[Kt("Playback Rate"),jsxRuntimeExports.jsx(Space,{flex:1}),jsxRuntimeExports.jsx(Slider$1,{sx:{maxWidth:320,mr:2},marks:[1,2,5,10].map(Zt=>({value:Zt*defaultPlaybackRate,label:formatLabel(Zt)})),step:1*defaultPlaybackRate,min:1*defaultPlaybackRate,max:10*defaultPlaybackRate,valueLabelFormat:Zt=>formatLabel(Zt/defaultPlaybackRate),valueLabelDisplay:"auto",defaultValue:Dt,onChangeCommitted:(Zt,Qt)=>Ut(()=>({"playback/playbackRate":Qt}))})]}),Xt("Appearance"),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[Kt("Acrylic"),jsxRuntimeExports.jsx(Space,{flex:1}),jsxRuntimeExports.jsx(Switch$2,{defaultChecked:!!Lt,onChange:(Zt,Qt)=>Ut(()=>({"appearance/acrylic":Qt}))})]}),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[Kt("Dark Mode"),jsxRuntimeExports.jsx(Space,{flex:1}),jsxRuntimeExports.jsx(Switch$2,{defaultChecked:Bt==="dark",onChange:(Zt,Qt)=>Ut(()=>({"appearance/theme":Qt?"dark":"light"}))})]}),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[Kt("Accent"),jsxRuntimeExports.jsx(Space,{flex:1}),jsxRuntimeExports.jsx(FeaturePicker,{value:Nt,items:lodashExports$1.map(lodashExports$1.keys(accentColors),Zt=>({id:Zt,name:lodashExports$1.startCase(Zt)})),arrow:!0,onChange:Zt=>Ut(()=>({"appearance/accentColor":Zt}))})]}),Xt("Behaviour"),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",children:[Kt("Show Explore Panel on Start-up"),jsxRuntimeExports.jsx(Space,{flex:1}),jsxRuntimeExports.jsx(Switch$2,{defaultChecked:!!jt,onChange:(Zt,Qt)=>Ut(()=>({"behaviour/showOnStart":Qt?"explore":void 0}))})]})]})}),jsxRuntimeExports.jsx(TabPanel$1,{value:"connections",children:jsxRuntimeExports.jsxs(Box$1,{children:[Xt("Solvers"),jsxRuntimeExports.jsx(ServerListEditor,{})]})}),jsxRuntimeExports.jsx(TabPanel$1,{value:"renderers",children:jsxRuntimeExports.jsxs(Box$1,{children:[Xt("Renderers"),jsxRuntimeExports.jsx(RendererListEditor,{})]})}),jsxRuntimeExports.jsx(TabPanel$1,{value:"map-parsers",children:jsxRuntimeExports.jsxs(Box$1,{children:[Xt("Map Parsers"),jsxRuntimeExports.jsx(MapParserListEditor,{})]})})]})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})})}function MapParserListEditor(){return jsxRuntimeExports.jsx(List$2,{children:lodashExports$1.keys(mapParsers).map(_e=>jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(ListItemText$1,{primary:_e,secondary:"Internal"})},_e))})}const PUBLISH=0,SUBSCRIBE=1,RESET=2,VALUE=4;function compose(_e,lt){return Rt=>_e(lt(Rt))}function thrush(_e,lt){return lt(_e)}function curry2to1(_e,lt){return Rt=>_e(lt,Rt)}function curry1to0(_e,lt){return()=>_e(lt)}function tap(_e,lt){return lt(_e),_e}function tup(..._e){return _e}function call(_e){_e()}function always(_e){return()=>_e}function joinProc(..._e){return()=>{_e.map(call)}}function isDefined(_e){return _e!==void 0}function noop(){}function subscribe(_e,lt){return _e(SUBSCRIBE,lt)}function publish(_e,lt){_e(PUBLISH,lt)}function reset(_e){_e(RESET)}function getValue(_e){return _e(VALUE)}function connect(_e,lt){return subscribe(_e,curry2to1(lt,PUBLISH))}function handleNext(_e,lt){const Rt=_e(SUBSCRIBE,At=>{Rt(),lt(At)});return Rt}function stream(){const _e=[];return(lt,Rt)=>{switch(lt){case RESET:_e.splice(0,_e.length);return;case SUBSCRIBE:return _e.push(Rt),()=>{const At=_e.indexOf(Rt);At>-1&&_e.splice(At,1)};case PUBLISH:_e.slice().forEach(At=>{At(Rt)});return;default:throw new Error(`unrecognized action ${lt}`)}}}function statefulStream(_e){let lt=_e;const Rt=stream();return(At,Pt)=>{switch(At){case SUBSCRIBE:Pt(lt);break;case PUBLISH:lt=Pt;break;case VALUE:return lt}return Rt(At,Pt)}}function eventHandler(_e){let lt,Rt;const At=()=>lt&<();return function(Pt,Dt){switch(Pt){case SUBSCRIBE:return Dt?Rt===Dt?void 0:(At(),Rt=Dt,lt=subscribe(_e,Dt),lt):(At(),noop);case RESET:At(),Rt=null;return;default:throw new Error(`unrecognized action ${Pt}`)}}}function streamFromEmitter(_e){return tap(stream(),lt=>connect(_e,lt))}function statefulStreamFromEmitter(_e,lt){return tap(statefulStream(lt),Rt=>connect(_e,Rt))}function combineOperators(..._e){return lt=>_e.reduceRight(thrush,lt)}function pipe(_e,...lt){const Rt=combineOperators(...lt);return(At,Pt)=>{switch(At){case SUBSCRIBE:return subscribe(_e,Rt(Pt));case RESET:reset(_e);return}}}function defaultComparator(_e,lt){return _e===lt}function distinctUntilChanged(_e=defaultComparator){let lt;return Rt=>At=>{_e(lt,At)||(lt=At,Rt(At))}}function filter(_e){return lt=>Rt=>{_e(Rt)&<(Rt)}}function map(_e){return lt=>compose(lt,_e)}function mapTo(_e){return lt=>()=>lt(_e)}function scan(_e,lt){return Rt=>At=>Rt(lt=_e(lt,At))}function skip(_e){return lt=>Rt=>{_e>0?_e--:lt(Rt)}}function throttleTime(_e){let lt=null,Rt;return At=>Pt=>{lt=Pt,!Rt&&(Rt=setTimeout(()=>{Rt=void 0,At(lt)},_e))}}function debounceTime(_e){let lt,Rt;return At=>Pt=>{lt=Pt,Rt&&clearTimeout(Rt),Rt=setTimeout(()=>{At(lt)},_e)}}function withLatestFrom(..._e){const lt=new Array(_e.length);let Rt=0,At=null;const Pt=Math.pow(2,_e.length)-1;return _e.forEach((Dt,Lt)=>{const Bt=Math.pow(2,Lt);subscribe(Dt,Nt=>{const jt=Rt;Rt=Rt|Bt,lt[Lt]=Nt,jt!==Pt&&Rt===Pt&&At&&(At(),At=null)})}),Dt=>Lt=>{const Bt=()=>Dt([Lt].concat(lt));Rt===Pt?Bt():At=Bt}}function merge(..._e){return function(lt,Rt){switch(lt){case SUBSCRIBE:return joinProc(..._e.map(At=>subscribe(At,Rt)));case RESET:return;default:throw new Error(`unrecognized action ${lt}`)}}}function duc(_e,lt=defaultComparator){return pipe(_e,distinctUntilChanged(lt))}function combineLatest(..._e){const lt=stream(),Rt=new Array(_e.length);let At=0;const Pt=Math.pow(2,_e.length)-1;return _e.forEach((Dt,Lt)=>{const Bt=Math.pow(2,Lt);subscribe(Dt,Nt=>{Rt[Lt]=Nt,At=At|Bt,At===Pt&&publish(lt,Rt)})}),function(Dt,Lt){switch(Dt){case SUBSCRIBE:return At===Pt&&Lt(Rt),subscribe(lt,Lt);case RESET:return reset(lt);default:throw new Error(`unrecognized action ${Dt}`)}}}function system(_e,lt=[],{singleton:Rt}={singleton:!0}){return{id:id(),constructor:_e,dependencies:lt,singleton:Rt}}const id=()=>Symbol();function init(_e){const lt=new Map,Rt=({id:At,constructor:Pt,dependencies:Dt,singleton:Lt})=>{if(Lt&<.has(At))return lt.get(At);const Bt=Pt(Dt.map(Nt=>Rt(Nt)));return Lt&<.set(At,Bt),Bt};return Rt(_e)}function omit(_e,lt){const Rt={},At={};let Pt=0;const Dt=_e.length;for(;Pt(en[tn]=an=>{const cn=Jt[lt.methods[tn]];publish(cn,an)},en),{})}function Ut(Jt){return Lt.reduce((en,tn)=>(en[tn]=eventHandler(Jt[lt.events[tn]]),en),{})}const Gt=React.forwardRef((Jt,en)=>{const{children:tn,...an}=Jt,[cn]=React.useState(()=>tap(init(_e),rn=>Nt(rn,an))),[un]=React.useState(curry1to0(Ut,cn));return useIsomorphicLayoutEffect$2(()=>{for(const rn of Lt)rn in an&&subscribe(un[rn],an[rn]);return()=>{Object.values(un).map(reset)}},[an,un,cn]),useIsomorphicLayoutEffect$2(()=>{Nt(cn,an)}),React.useImperativeHandle(en,always(jt(cn))),React.createElement(Bt.Provider,{value:cn},Rt?React.createElement(Rt,omit([...At,...Pt,...Lt],an),tn):tn)}),qt=Jt=>React.useCallback(curry2to1(publish,React.useContext(Bt)[Jt]),[Jt]),Xt=Jt=>{const tn=React.useContext(Bt)[Jt],an=React.useCallback(cn=>subscribe(tn,cn),[tn]);return React.useSyncExternalStore(an,()=>getValue(tn),()=>getValue(tn))},Kt=Jt=>{const tn=React.useContext(Bt)[Jt],[an,cn]=React.useState(curry1to0(getValue,tn));return useIsomorphicLayoutEffect$2(()=>subscribe(tn,un=>{un!==an&&cn(always(un))}),[tn,an]),an},Zt=React.version.startsWith("18")?Xt:Kt;return{Component:Gt,usePublisher:qt,useEmitterValue:Zt,useEmitter:(Jt,en)=>{const an=React.useContext(Bt)[Jt];useIsomorphicLayoutEffect$2(()=>subscribe(an,en),[en,an])}}}const useIsomorphicLayoutEffect=typeof document<"u"?React.useLayoutEffect:React.useEffect,useIsomorphicLayoutEffect$1=useIsomorphicLayoutEffect;var LogLevel=(_e=>(_e[_e.DEBUG=0]="DEBUG",_e[_e.INFO=1]="INFO",_e[_e.WARN=2]="WARN",_e[_e.ERROR=3]="ERROR",_e))(LogLevel||{});const CONSOLE_METHOD_MAP={0:"debug",1:"log",2:"warn",3:"error"},getGlobalThis=()=>typeof globalThis>"u"?window:globalThis,loggerSystem=system(()=>{const _e=statefulStream(3);return{log:statefulStream((Rt,At,Pt=1)=>{var Dt;const Lt=(Dt=getGlobalThis().VIRTUOSO_LOG_LEVEL)!=null?Dt:getValue(_e);Pt>=Lt&&console[CONSOLE_METHOD_MAP[Pt]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",Rt,At)}),logLevel:_e}},[],{singleton:!0});function useSizeWithElRef(_e,lt=!0){const Rt=React.useRef(null);let At=Pt=>{};if(typeof ResizeObserver<"u"){const Pt=React.useMemo(()=>new ResizeObserver(Dt=>{const Lt=Dt[0].target;Lt.offsetParent!==null&&_e(Lt)}),[_e]);At=Dt=>{Dt&<?(Pt.observe(Dt),Rt.current=Dt):(Rt.current&&Pt.unobserve(Rt.current),Rt.current=null)}}return{ref:Rt,callbackRef:At}}function useSize(_e,lt=!0){return useSizeWithElRef(_e,lt).callbackRef}function useChangedListContentsSizes(_e,lt,Rt,At,Pt,Dt,Lt){const Bt=React.useCallback(Nt=>{const jt=getChangedChildSizes(Nt.children,lt,"offsetHeight",Pt);let Ut=Nt.parentElement;for(;!Ut.dataset.virtuosoScroller;)Ut=Ut.parentElement;const Gt=Ut.lastElementChild.dataset.viewportType==="window",qt=Lt?Lt.scrollTop:Gt?window.pageYOffset||document.documentElement.scrollTop:Ut.scrollTop,Xt=Lt?Lt.scrollHeight:Gt?document.documentElement.scrollHeight:Ut.scrollHeight,Kt=Lt?Lt.offsetHeight:Gt?window.innerHeight:Ut.offsetHeight;At({scrollTop:Math.max(qt,0),scrollHeight:Xt,viewportHeight:Kt}),Dt==null||Dt(resolveGapValue$1("row-gap",getComputedStyle(Nt).rowGap,Pt)),jt!==null&&_e(jt)},[_e,lt,Pt,Dt,Lt,At]);return useSizeWithElRef(Bt,Rt)}function getChangedChildSizes(_e,lt,Rt,At){const Pt=_e.length;if(Pt===0)return null;const Dt=[];for(let Lt=0;Lt{const qt=Gt.target,Xt=qt===window||qt===document,Kt=Xt?window.pageYOffset||document.documentElement.scrollTop:qt.scrollTop,Zt=Xt?document.documentElement.scrollHeight:qt.scrollHeight,Qt=Xt?window.innerHeight:qt.offsetHeight,Jt=()=>{_e({scrollTop:Math.max(Kt,0),scrollHeight:Zt,viewportHeight:Qt})};Gt.suppressFlushSync?Jt():ReactDOM.flushSync(Jt),Lt.current!==null&&(Kt===Lt.current||Kt<=0||Kt===Zt-Qt)&&(Lt.current=null,lt(!0),Bt.current&&(clearTimeout(Bt.current),Bt.current=null))},[_e,lt]);React.useEffect(()=>{const Gt=Pt||Dt.current;return At(Pt||Dt.current),Nt({target:Gt,suppressFlushSync:!0}),Gt.addEventListener("scroll",Nt,{passive:!0}),()=>{At(null),Gt.removeEventListener("scroll",Nt)}},[Dt,Nt,Rt,At,Pt]);function jt(Gt){const qt=Dt.current;if(!qt||"offsetHeight"in qt&&qt.offsetHeight===0)return;const Xt=Gt.behavior==="smooth";let Kt,Zt,Qt;qt===window?(Zt=Math.max(correctItemSize(document.documentElement,"height"),document.documentElement.scrollHeight),Kt=window.innerHeight,Qt=document.documentElement.scrollTop):(Zt=qt.scrollHeight,Kt=correctItemSize(qt,"height"),Qt=qt.scrollTop);const Jt=Zt-Kt;if(Gt.top=Math.ceil(Math.max(Math.min(Jt,Gt.top),0)),approximatelyEqual(Kt,Zt)||Gt.top===Qt){_e({scrollTop:Qt,scrollHeight:Zt,viewportHeight:Kt}),Xt&<(!0);return}Xt?(Lt.current=Gt.top,Bt.current&&clearTimeout(Bt.current),Bt.current=setTimeout(()=>{Bt.current=null,Lt.current=null,lt(!0)},1e3)):Lt.current=null,qt.scrollTo(Gt)}function Ut(Gt){Dt.current.scrollBy(Gt)}return{scrollerRef:Dt,scrollByCallback:Ut,scrollToCallback:jt}}const domIOSystem=system(()=>{const _e=stream(),lt=stream(),Rt=statefulStream(0),At=stream(),Pt=statefulStream(0),Dt=stream(),Lt=stream(),Bt=statefulStream(0),Nt=statefulStream(0),jt=statefulStream(0),Ut=statefulStream(0),Gt=stream(),qt=stream(),Xt=statefulStream(!1);return connect(pipe(_e,map(({scrollTop:Kt})=>Kt)),lt),connect(pipe(_e,map(({scrollHeight:Kt})=>Kt)),Lt),connect(lt,Pt),{scrollContainerState:_e,scrollTop:lt,viewportHeight:Dt,headerHeight:Bt,fixedHeaderHeight:Nt,fixedFooterHeight:jt,footerHeight:Ut,scrollHeight:Lt,smoothScrollTargetReached:At,scrollTo:Gt,scrollBy:qt,statefulScrollTop:Pt,deviation:Rt,scrollingInProgress:Xt}},[],{singleton:!0}),NIL_NODE={lvl:0};function newAANode(_e,lt,Rt,At=NIL_NODE,Pt=NIL_NODE){return{k:_e,v:lt,lvl:Rt,l:At,r:Pt}}function empty(_e){return _e===NIL_NODE}function newTree(){return NIL_NODE}function remove(_e,lt){if(empty(_e))return NIL_NODE;const{k:Rt,l:At,r:Pt}=_e;if(lt===Rt){if(empty(At))return Pt;if(empty(Pt))return At;{const[Dt,Lt]=last(At);return adjust(clone(_e,{k:Dt,v:Lt,l:deleteLast(At)}))}}else return ltlt&&(Bt=Bt.concat(walkWithin(Dt,lt,Rt))),At>=lt&&At<=Rt&&Bt.push({k:At,v:Pt}),At<=Rt&&(Bt=Bt.concat(walkWithin(Lt,lt,Rt))),Bt}function walk(_e){return empty(_e)?[]:[...walk(_e.l),{k:_e.k,v:_e.v},...walk(_e.r)]}function last(_e){return empty(_e.r)?[_e.k,_e.v]:last(_e.r)}function deleteLast(_e){return empty(_e.r)?_e.l:adjust(clone(_e,{r:deleteLast(_e.r)}))}function clone(_e,lt){return newAANode(lt.k!==void 0?lt.k:_e.k,lt.v!==void 0?lt.v:_e.v,lt.lvl!==void 0?lt.lvl:_e.lvl,lt.l!==void 0?lt.l:_e.l,lt.r!==void 0?lt.r:_e.r)}function isSingle(_e){return empty(_e)||_e.lvl>_e.r.lvl}function rebalance(_e){return split(skew(_e))}function adjust(_e){const{l:lt,r:Rt,lvl:At}=_e;if(Rt.lvl>=At-1&<.lvl>=At-1)return _e;if(At>Rt.lvl+1){if(isSingle(lt))return skew(clone(_e,{lvl:At-1}));if(!empty(lt)&&!empty(lt.r))return clone(lt.r,{l:clone(lt,{r:lt.r.l}),r:clone(_e,{l:lt.r.r,lvl:At-1}),lvl:At});throw new Error("Unexpected empty nodes")}else{if(isSingle(_e))return split(clone(_e,{lvl:At-1}));if(!empty(Rt)&&!empty(Rt.l)){const Pt=Rt.l,Dt=isSingle(Pt)?Rt.lvl-1:Rt.lvl;return clone(Pt,{l:clone(_e,{r:Pt.l,lvl:At-1}),r:split(clone(Rt,{l:Pt.r,lvl:Dt})),lvl:Pt.lvl+1})}else throw new Error("Unexpected empty nodes")}}function rangesWithin(_e,lt,Rt){if(empty(_e))return[];const At=findMaxKeyValue(_e,lt)[0];return toRanges(walkWithin(_e,At,Rt))}function arrayToRanges(_e,lt){const Rt=_e.length;if(Rt===0)return[];let{index:At,value:Pt}=lt(_e[0]);const Dt=[];for(let Lt=1;Lt({index:lt,value:Rt}))}function split(_e){const{r:lt,lvl:Rt}=_e;return!empty(lt)&&!empty(lt.r)&<.lvl===Rt&<.r.lvl===Rt?clone(lt,{l:clone(_e,{r:lt.l}),lvl:Rt+1}):_e}function skew(_e){const{l:lt}=_e;return!empty(lt)&<.lvl===_e.lvl?clone(lt,{r:clone(_e,{l:lt.r})}):_e}function findIndexOfClosestSmallerOrEqual(_e,lt,Rt,At=0){let Pt=_e.length-1;for(;At<=Pt;){const Dt=Math.floor((At+Pt)/2),Lt=_e[Dt],Bt=Rt(Lt,lt);if(Bt===0)return Dt;if(Bt===-1){if(Pt-At<2)return Dt-1;Pt=Dt-1}else{if(Pt===At)return Dt;At=Dt+1}}throw new Error(`Failed binary finding record in array - ${_e.join(",")}, searched for ${lt}`)}function findClosestSmallerOrEqual(_e,lt,Rt){return _e[findIndexOfClosestSmallerOrEqual(_e,lt,Rt)]}function findRange(_e,lt,Rt,At){const Pt=findIndexOfClosestSmallerOrEqual(_e,lt,At),Dt=findIndexOfClosestSmallerOrEqual(_e,Rt,At,Pt);return _e.slice(Pt,Dt+1)}const recalcSystem=system(()=>({recalcInProgress:statefulStream(!1)}),[],{singleton:!0});function rangeIncludes(_e){const{size:lt,startIndex:Rt,endIndex:At}=_e;return Pt=>Pt.start===Rt&&(Pt.end===At||Pt.end===1/0)&&Pt.value===lt}function affectedGroupCount(_e,lt){let Rt=0,At=0;for(;Rt<_e;)Rt+=lt[At+1]-lt[At]-1,At++;return At-(Rt===_e?0:1)}function insertRanges(_e,lt){let Rt=empty(_e)?0:1/0;for(const At of lt){const{size:Pt,startIndex:Dt,endIndex:Lt}=At;if(Rt=Math.min(Rt,Dt),empty(_e)){_e=insert(_e,0,Pt);continue}const Bt=rangesWithin(_e,Dt-1,Lt+1);if(Bt.some(rangeIncludes(At)))continue;let Nt=!1,jt=!1;for(const{start:Ut,end:Gt,value:qt}of Bt)Nt?(Lt>=Ut||Pt===qt)&&(_e=remove(_e,Ut)):(jt=qt!==Pt,Nt=!0),Gt>Lt&&Lt>=Ut&&qt!==Pt&&(_e=insert(_e,Lt+1,qt));jt&&(_e=insert(_e,Dt,Pt))}return[_e,Rt]}function initialSizeState(){return{offsetTree:[],sizeTree:newTree(),groupOffsetTree:newTree(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function indexComparator({index:_e},lt){return lt===_e?0:lt<_e?-1:1}function offsetComparator({offset:_e},lt){return lt===_e?0:lt<_e?-1:1}function offsetPointParser(_e){return{index:_e.index,value:_e}}function rangesWithinOffsets(_e,lt,Rt,At=0){return At>0&&(lt=Math.max(lt,findClosestSmallerOrEqual(_e,At,indexComparator).offset)),arrayToRanges(findRange(_e,lt,Rt,offsetComparator),offsetPointParser)}function createOffsetTree(_e,lt,Rt,At){let Pt=_e,Dt=0,Lt=0,Bt=0,Nt=0;if(lt!==0){Nt=findIndexOfClosestSmallerOrEqual(Pt,lt-1,indexComparator),Bt=Pt[Nt].offset;const Ut=findMaxKeyValue(Rt,lt-1);Dt=Ut[0],Lt=Ut[1],Pt.length&&Pt[Nt].size===findMaxKeyValue(Rt,lt)[1]&&(Nt-=1),Pt=Pt.slice(0,Nt+1)}else Pt=[];for(const{start:jt,value:Ut}of rangesWithin(Rt,lt,1/0)){const Gt=jt-Dt,qt=Gt*Lt+Bt+Gt*At;Pt.push({offset:qt,size:Ut,index:jt}),Dt=jt,Bt=qt,Lt=Ut}return{offsetTree:Pt,lastIndex:Dt,lastOffset:Bt,lastSize:Lt}}function sizeStateReducer(_e,[lt,Rt,At,Pt]){lt.length>0&&At("received item sizes",lt,LogLevel.DEBUG);const Dt=_e.sizeTree;let Lt=Dt,Bt=0;if(Rt.length>0&&empty(Dt)&<.length===2){const qt=lt[0].size,Xt=lt[1].size;Lt=Rt.reduce((Kt,Zt)=>insert(insert(Kt,Zt,qt),Zt+1,Xt),Lt)}else[Lt,Bt]=insertRanges(Lt,lt);if(Lt===Dt)return _e;const{offsetTree:Nt,lastIndex:jt,lastSize:Ut,lastOffset:Gt}=createOffsetTree(_e.offsetTree,Bt,Lt,Pt);return{sizeTree:Lt,offsetTree:Nt,lastIndex:jt,lastOffset:Gt,lastSize:Ut,groupOffsetTree:Rt.reduce((qt,Xt)=>insert(qt,Xt,offsetOf(Xt,Nt,Pt)),newTree()),groupIndices:Rt}}function offsetOf(_e,lt,Rt){if(lt.length===0)return 0;const{offset:At,index:Pt,size:Dt}=findClosestSmallerOrEqual(lt,_e,indexComparator),Lt=_e-Pt,Bt=Dt*Lt+(Lt-1)*Rt+At;return Bt>0?Bt+Rt:Bt}function isGroupLocation(_e){return typeof _e.groupIndex<"u"}function originalIndexFromLocation(_e,lt,Rt){if(isGroupLocation(_e))return lt.groupIndices[_e.groupIndex]+1;{const At=_e.index==="LAST"?Rt:_e.index;let Pt=originalIndexFromItemIndex(At,lt);return Pt=Math.max(0,Pt,Math.min(Rt,Pt)),Pt}}function originalIndexFromItemIndex(_e,lt){if(!hasGroups(lt))return _e;let Rt=0;for(;lt.groupIndices[Rt]<=_e+Rt;)Rt++;return _e+Rt}function hasGroups(_e){return!empty(_e.groupOffsetTree)}function sizeTreeToRanges(_e){return walk(_e).map(({k:lt,v:Rt},At,Pt)=>{const Dt=Pt[At+1],Lt=Dt?Dt.k-1:1/0;return{startIndex:lt,endIndex:Lt,size:Rt}})}const SIZE_MAP={offsetHeight:"height",offsetWidth:"width"},sizeSystem=system(([{log:_e},{recalcInProgress:lt}])=>{const Rt=stream(),At=stream(),Pt=statefulStreamFromEmitter(At,0),Dt=stream(),Lt=stream(),Bt=statefulStream(0),Nt=statefulStream([]),jt=statefulStream(void 0),Ut=statefulStream(void 0),Gt=statefulStream((cn,un)=>correctItemSize(cn,SIZE_MAP[un])),qt=statefulStream(void 0),Xt=statefulStream(0),Kt=initialSizeState(),Zt=statefulStreamFromEmitter(pipe(Rt,withLatestFrom(Nt,_e,Xt),scan(sizeStateReducer,Kt),distinctUntilChanged()),Kt),Qt=statefulStreamFromEmitter(pipe(Nt,distinctUntilChanged(),scan((cn,un)=>({prev:cn.current,current:un}),{prev:[],current:[]}),map(({prev:cn})=>cn)),[]);connect(pipe(Nt,filter(cn=>cn.length>0),withLatestFrom(Zt,Xt),map(([cn,un,rn])=>{const sn=cn.reduce((pn,bn,gn)=>insert(pn,bn,offsetOf(bn,un.offsetTree,rn)||gn),newTree());return{...un,groupIndices:cn,groupOffsetTree:sn}})),Zt),connect(pipe(At,withLatestFrom(Zt),filter(([cn,{lastIndex:un}])=>cn[{startIndex:cn,endIndex:un,size:rn}])),Rt),connect(jt,Ut);const Jt=statefulStreamFromEmitter(pipe(jt,map(cn=>cn===void 0)),!0);connect(pipe(Ut,filter(cn=>cn!==void 0&&empty(getValue(Zt).sizeTree)),map(cn=>[{startIndex:0,endIndex:0,size:cn}])),Rt);const en=streamFromEmitter(pipe(Rt,withLatestFrom(Zt),scan(({sizes:cn},[un,rn])=>({changed:rn!==cn,sizes:rn}),{changed:!1,sizes:Kt}),map(cn=>cn.changed)));subscribe(pipe(Bt,scan((cn,un)=>({diff:cn.prev-un,prev:un}),{diff:0,prev:0}),map(cn=>cn.diff)),cn=>{const{groupIndices:un}=getValue(Zt);if(cn>0)publish(lt,!0),publish(Dt,cn+affectedGroupCount(cn,un));else if(cn<0){const rn=getValue(Qt);rn.length>0&&(cn-=affectedGroupCount(-cn,rn)),publish(Lt,cn)}}),subscribe(pipe(Bt,withLatestFrom(_e)),([cn,un])=>{cn<0&&un("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:Bt},LogLevel.ERROR)});const tn=streamFromEmitter(Dt);connect(pipe(Dt,withLatestFrom(Zt),map(([cn,un])=>{const rn=un.groupIndices.length>0,sn=[],pn=un.lastSize;if(rn){const bn=find(un.sizeTree,0);let gn=0,_n=0;for(;gn{let Cn=Mn.ranges;return Mn.prevSize!==0&&(Cn=[...Mn.ranges,{startIndex:Mn.prevIndex,endIndex:Tn+cn-1,size:Mn.prevSize}]),{ranges:Cn,prevIndex:Tn+cn,prevSize:An}},{ranges:sn,prevIndex:cn,prevSize:0}).ranges}return walk(un.sizeTree).reduce((bn,{k:gn,v:_n})=>({ranges:[...bn.ranges,{startIndex:bn.prevIndex,endIndex:gn+cn-1,size:bn.prevSize}],prevIndex:gn+cn,prevSize:_n}),{ranges:[],prevIndex:0,prevSize:pn}).ranges})),Rt);const an=streamFromEmitter(pipe(Lt,withLatestFrom(Zt,Xt),map(([cn,{offsetTree:un},rn])=>{const sn=-cn;return offsetOf(sn,un,rn)})));return connect(pipe(Lt,withLatestFrom(Zt,Xt),map(([cn,un,rn])=>{if(un.groupIndices.length>0){if(empty(un.sizeTree))return un;let pn=newTree();const bn=getValue(Qt);let gn=0,_n=0,xn=0;for(;gn<-cn;){xn=bn[_n];const Mn=bn[_n+1]-xn-1;_n++,gn+=Mn+1}if(pn=walk(un.sizeTree).reduce((Mn,{k:Tn,v:An})=>insert(Mn,Math.max(0,Tn+cn),An),pn),gn!==-cn){const Mn=find(un.sizeTree,xn);pn=insert(pn,0,Mn);const Tn=findMaxKeyValue(un.sizeTree,-cn+1)[1];pn=insert(pn,1,Tn)}return{...un,sizeTree:pn,...createOffsetTree(un.offsetTree,0,pn,rn)}}else{const pn=walk(un.sizeTree).reduce((bn,{k:gn,v:_n})=>insert(bn,Math.max(0,gn+cn),_n),newTree());return{...un,sizeTree:pn,...createOffsetTree(un.offsetTree,0,pn,rn)}}})),Zt),{data:qt,totalCount:At,sizeRanges:Rt,groupIndices:Nt,defaultItemSize:Ut,fixedItemSize:jt,unshiftWith:Dt,shiftWith:Lt,shiftWithOffset:an,beforeUnshiftWith:tn,firstItemIndex:Bt,gap:Xt,sizes:Zt,listRefresh:en,statefulTotalCount:Pt,trackItemSizes:Jt,itemSize:Gt}},tup(loggerSystem,recalcSystem),{singleton:!0}),SUPPORTS_SCROLL_TO_OPTIONS=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function normalizeIndexLocation(_e){const lt=typeof _e=="number"?{index:_e}:_e;return lt.align||(lt.align="start"),(!lt.behavior||!SUPPORTS_SCROLL_TO_OPTIONS)&&(lt.behavior="auto"),lt.offset||(lt.offset=0),lt}const scrollToIndexSystem=system(([{sizes:_e,totalCount:lt,listRefresh:Rt,gap:At},{scrollingInProgress:Pt,viewportHeight:Dt,scrollTo:Lt,smoothScrollTargetReached:Bt,headerHeight:Nt,footerHeight:jt,fixedHeaderHeight:Ut,fixedFooterHeight:Gt},{log:qt}])=>{const Xt=stream(),Kt=statefulStream(0);let Zt=null,Qt=null,Jt=null;function en(){Zt&&(Zt(),Zt=null),Jt&&(Jt(),Jt=null),Qt&&(clearTimeout(Qt),Qt=null),publish(Pt,!1)}return connect(pipe(Xt,withLatestFrom(_e,Dt,lt,Kt,Nt,jt,qt),withLatestFrom(At,Ut,Gt),map(([[tn,an,cn,un,rn,sn,pn,bn],gn,_n,xn])=>{const ln=normalizeIndexLocation(tn),{align:Mn,behavior:Tn,offset:An}=ln,Cn=un-1,wn=originalIndexFromLocation(ln,an,Cn);let Fn=offsetOf(wn,an.offsetTree,gn)+sn;Mn==="end"?(Fn+=_n+findMaxKeyValue(an.sizeTree,wn)[1]-cn+xn,wn===Cn&&(Fn+=pn)):Mn==="center"?Fn+=(_n+findMaxKeyValue(an.sizeTree,wn)[1]-cn+xn)/2:Fn-=rn,An&&(Fn+=An);const $n=Pn=>{en(),Pn?(bn("retrying to scroll to",{location:tn},LogLevel.DEBUG),publish(Xt,tn)):bn("list did not change, scroll successful",{},LogLevel.DEBUG)};if(en(),Tn==="smooth"){let Pn=!1;Jt=subscribe(Rt,Vn=>{Pn=Pn||Vn}),Zt=handleNext(Bt,()=>{$n(Pn)})}else Zt=handleNext(pipe(Rt,watchChangesFor(150)),$n);return Qt=setTimeout(()=>{en()},1200),publish(Pt,!0),bn("scrolling from index to",{index:wn,top:Fn,behavior:Tn},LogLevel.DEBUG),{top:Fn,behavior:Tn}})),Lt),{scrollToIndex:Xt,topListHeight:Kt}},tup(sizeSystem,domIOSystem,loggerSystem),{singleton:!0});function watchChangesFor(_e){return lt=>{const Rt=setTimeout(()=>{lt(!1)},_e);return At=>{At&&(lt(!0),clearTimeout(Rt))}}}const UP="up",DOWN="down",NONE$1="none",INITIAL_BOTTOM_STATE={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},DEFAULT_AT_TOP_THRESHOLD=0,stateFlagsSystem=system(([{scrollContainerState:_e,scrollTop:lt,viewportHeight:Rt,headerHeight:At,footerHeight:Pt,scrollBy:Dt}])=>{const Lt=statefulStream(!1),Bt=statefulStream(!0),Nt=stream(),jt=stream(),Ut=statefulStream(4),Gt=statefulStream(DEFAULT_AT_TOP_THRESHOLD),qt=statefulStreamFromEmitter(pipe(merge(pipe(duc(lt),skip(1),mapTo(!0)),pipe(duc(lt),skip(1),mapTo(!1),debounceTime(100))),distinctUntilChanged()),!1),Xt=statefulStreamFromEmitter(pipe(merge(pipe(Dt,mapTo(!0)),pipe(Dt,mapTo(!1),debounceTime(200))),distinctUntilChanged()),!1);connect(pipe(combineLatest(duc(lt),duc(Gt)),map(([en,tn])=>en<=tn),distinctUntilChanged()),Bt),connect(pipe(Bt,throttleTime(50)),jt);const Kt=streamFromEmitter(pipe(combineLatest(_e,duc(Rt),duc(At),duc(Pt),duc(Ut)),scan((en,[{scrollTop:tn,scrollHeight:an},cn,un,rn,sn])=>{const pn=tn+cn-an>-sn,bn={viewportHeight:cn,scrollTop:tn,scrollHeight:an};if(pn){let _n,xn;return tn>en.state.scrollTop?(_n="SCROLLED_DOWN",xn=en.state.scrollTop-tn):(_n="SIZE_DECREASED",xn=en.state.scrollTop-tn||en.scrollTopDelta),{atBottom:!0,state:bn,atBottomBecause:_n,scrollTopDelta:xn}}let gn;return bn.scrollHeight>en.state.scrollHeight?gn="SIZE_INCREASED":cnen&&en.atBottom===tn.atBottom))),Zt=statefulStreamFromEmitter(pipe(_e,scan((en,{scrollTop:tn,scrollHeight:an,viewportHeight:cn})=>{if(approximatelyEqual(en.scrollHeight,an))return{scrollTop:tn,scrollHeight:an,jump:0,changed:!1};{const un=an-(tn+cn)<1;return en.scrollTop!==tn&&un?{scrollHeight:an,scrollTop:tn,jump:en.scrollTop-tn,changed:!0}:{scrollHeight:an,scrollTop:tn,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),filter(en=>en.changed),map(en=>en.jump)),0);connect(pipe(Kt,map(en=>en.atBottom)),Lt),connect(pipe(Lt,throttleTime(50)),Nt);const Qt=statefulStream(DOWN);connect(pipe(_e,map(({scrollTop:en})=>en),distinctUntilChanged(),scan((en,tn)=>getValue(Xt)?{direction:en.direction,prevScrollTop:tn}:{direction:tnen.direction)),Qt),connect(pipe(_e,throttleTime(50),mapTo(NONE$1)),Qt);const Jt=statefulStream(0);return connect(pipe(qt,filter(en=>!en),mapTo(0)),Jt),connect(pipe(lt,throttleTime(100),withLatestFrom(qt),filter(([en,tn])=>!!tn),scan(([en,tn],[an])=>[tn,an],[0,0]),map(([en,tn])=>tn-en)),Jt),{isScrolling:qt,isAtTop:Bt,isAtBottom:Lt,atBottomState:Kt,atTopStateChange:jt,atBottomStateChange:Nt,scrollDirection:Qt,atBottomThreshold:Ut,atTopThreshold:Gt,scrollVelocity:Jt,lastJumpDueToItemResize:Zt}},tup(domIOSystem)),propsReadySystem=system(([{log:_e}])=>{const lt=statefulStream(!1),Rt=streamFromEmitter(pipe(lt,filter(At=>At),distinctUntilChanged()));return subscribe(lt,At=>{At&&getValue(_e)("props updated",{},LogLevel.DEBUG)}),{propsReady:lt,didMount:Rt}},tup(loggerSystem),{singleton:!0});function skipFrames(_e,lt){_e==0?lt():requestAnimationFrame(()=>skipFrames(_e-1,lt))}function getInitialTopMostItemIndexNumber(_e,lt){const Rt=lt-1;return typeof _e=="number"?_e:_e.index==="LAST"?Rt:_e.index}const initialTopMostItemIndexSystem=system(([{sizes:_e,listRefresh:lt,defaultItemSize:Rt},{scrollTop:At},{scrollToIndex:Pt},{didMount:Dt}])=>{const Lt=statefulStream(!0),Bt=statefulStream(0),Nt=statefulStream(!1);return connect(pipe(Dt,withLatestFrom(Bt),filter(([jt,Ut])=>!!Ut),mapTo(!1)),Lt),subscribe(pipe(combineLatest(lt,Dt),withLatestFrom(Lt,_e,Rt,Nt),filter(([[,jt],Ut,{sizeTree:Gt},qt,Xt])=>jt&&(!empty(Gt)||isDefined(qt))&&!Ut&&!Xt),withLatestFrom(Bt)),([,jt])=>{publish(Nt,!0),skipFrames(3,()=>{handleNext(At,()=>publish(Lt,!0)),publish(Pt,jt)})}),{scrolledToInitialItem:Lt,initialTopMostItemIndex:Bt}},tup(sizeSystem,domIOSystem,scrollToIndexSystem,propsReadySystem),{singleton:!0});function normalizeFollowOutput(_e){return _e?_e==="smooth"?"smooth":"auto":!1}const behaviorFromFollowOutput=(_e,lt)=>typeof _e=="function"?normalizeFollowOutput(_e(lt)):lt&&normalizeFollowOutput(_e),followOutputSystem=system(([{totalCount:_e,listRefresh:lt},{isAtBottom:Rt,atBottomState:At},{scrollToIndex:Pt},{scrolledToInitialItem:Dt},{propsReady:Lt,didMount:Bt},{log:Nt},{scrollingInProgress:jt}])=>{const Ut=statefulStream(!1),Gt=stream();let qt=null;function Xt(Zt){publish(Pt,{index:"LAST",align:"end",behavior:Zt})}subscribe(pipe(combineLatest(pipe(duc(_e),skip(1)),Bt),withLatestFrom(duc(Ut),Rt,Dt,jt),map(([[Zt,Qt],Jt,en,tn,an])=>{let cn=Qt&&tn,un="auto";return cn&&(un=behaviorFromFollowOutput(Jt,en||an),cn=cn&&!!un),{totalCount:Zt,shouldFollow:cn,followOutputBehavior:un}}),filter(({shouldFollow:Zt})=>Zt)),({totalCount:Zt,followOutputBehavior:Qt})=>{qt&&(qt(),qt=null),qt=handleNext(lt,()=>{getValue(Nt)("following output to ",{totalCount:Zt},LogLevel.DEBUG),Xt(Qt),qt=null})});function Kt(Zt){const Qt=handleNext(At,Jt=>{Zt&&!Jt.atBottom&&Jt.notAtBottomBecause==="SIZE_INCREASED"&&!qt&&(getValue(Nt)("scrolling to bottom due to increased size",{},LogLevel.DEBUG),Xt("auto"))});setTimeout(Qt,100)}return subscribe(pipe(combineLatest(duc(Ut),_e,Lt),filter(([Zt,,Qt])=>Zt&&Qt),scan(({value:Zt},[,Qt])=>({refreshed:Zt===Qt,value:Qt}),{refreshed:!1,value:0}),filter(({refreshed:Zt})=>Zt),withLatestFrom(Ut,_e)),([,Zt])=>{Kt(Zt!==!1)}),subscribe(Gt,()=>{Kt(getValue(Ut)!==!1)}),subscribe(combineLatest(duc(Ut),At),([Zt,Qt])=>{Zt&&!Qt.atBottom&&Qt.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&Xt("auto")}),{followOutput:Ut,autoscrollToBottom:Gt}},tup(sizeSystem,stateFlagsSystem,scrollToIndexSystem,initialTopMostItemIndexSystem,propsReadySystem,loggerSystem,domIOSystem));function groupCountsToIndicesAndCount(_e){return _e.reduce((lt,Rt)=>(lt.groupIndices.push(lt.totalCount),lt.totalCount+=Rt+1,lt),{totalCount:0,groupIndices:[]})}const groupedListSystem=system(([{totalCount:_e,groupIndices:lt,sizes:Rt},{scrollTop:At,headerHeight:Pt}])=>{const Dt=stream(),Lt=stream(),Bt=streamFromEmitter(pipe(Dt,map(groupCountsToIndicesAndCount)));return connect(pipe(Bt,map(Nt=>Nt.totalCount)),_e),connect(pipe(Bt,map(Nt=>Nt.groupIndices)),lt),connect(pipe(combineLatest(At,Rt,Pt),filter(([Nt,jt])=>hasGroups(jt)),map(([Nt,jt,Ut])=>findMaxKeyValue(jt.groupOffsetTree,Math.max(Nt-Ut,0),"v")[0]),distinctUntilChanged(),map(Nt=>[Nt])),Lt),{groupCounts:Dt,topItemsIndexes:Lt}},tup(sizeSystem,domIOSystem));function tupleComparator(_e,lt){return!!(_e&&_e[0]===lt[0]&&_e[1]===lt[1])}function rangeComparator(_e,lt){return!!(_e&&_e.startIndex===lt.startIndex&&_e.endIndex===lt.endIndex)}const TOP="top",BOTTOM="bottom",NONE="none";function getOverscan(_e,lt,Rt){return typeof _e=="number"?Rt===UP&<===TOP||Rt===DOWN&<===BOTTOM?_e:0:Rt===UP?lt===TOP?_e.main:_e.reverse:lt===BOTTOM?_e.main:_e.reverse}function getViewportIncrease(_e,lt){return typeof _e=="number"?_e:_e[lt]||0}const sizeRangeSystem=system(([{scrollTop:_e,viewportHeight:lt,deviation:Rt,headerHeight:At,fixedHeaderHeight:Pt}])=>{const Dt=stream(),Lt=statefulStream(0),Bt=statefulStream(0),Nt=statefulStream(0),jt=statefulStreamFromEmitter(pipe(combineLatest(duc(_e),duc(lt),duc(At),duc(Dt,tupleComparator),duc(Nt),duc(Lt),duc(Pt),duc(Rt),duc(Bt)),map(([Ut,Gt,qt,[Xt,Kt],Zt,Qt,Jt,en,tn])=>{const an=Ut-en,cn=Qt+Jt,un=Math.max(qt-an,0);let rn=NONE;const sn=getViewportIncrease(tn,TOP),pn=getViewportIncrease(tn,BOTTOM);return Xt-=en,Xt+=qt+Jt,Kt+=qt+Jt,Kt-=en,Xt>Ut+cn-sn&&(rn=UP),KtUt!=null),distinctUntilChanged(tupleComparator)),[0,0]);return{listBoundary:Dt,overscan:Nt,topListHeight:Lt,increaseViewportBy:Bt,visibleRange:jt}},tup(domIOSystem),{singleton:!0});function probeItemSet(_e,lt,Rt){if(hasGroups(lt)){const At=originalIndexFromItemIndex(_e,lt);return[{index:findMaxKeyValue(lt.groupOffsetTree,At)[0],size:0,offset:0},{index:At,size:0,offset:0,data:Rt&&Rt[0]}]}return[{index:_e,size:0,offset:0,data:Rt&&Rt[0]}]}const EMPTY_LIST_STATE={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function transposeItems(_e,lt,Rt){if(_e.length===0)return[];if(!hasGroups(lt))return _e.map(jt=>({...jt,index:jt.index+Rt,originalIndex:jt.index}));const At=_e[0].index,Pt=_e[_e.length-1].index,Dt=[],Lt=rangesWithin(lt.groupOffsetTree,At,Pt);let Bt,Nt=0;for(const jt of _e){(!Bt||Bt.end0){jt=_e[0].offset;const Zt=_e[_e.length-1];Ut=Zt.offset+Zt.size}const Gt=Rt-Nt,qt=Bt+Gt*Lt+(Gt-1)*At,Xt=jt,Kt=qt-Ut;return{items:transposeItems(_e,Pt,Dt),topItems:transposeItems(lt,Pt,Dt),topListHeight:lt.reduce((Zt,Qt)=>Qt.size+Zt,0),offsetTop:jt,offsetBottom:Kt,top:Xt,bottom:Ut,totalCount:Rt,firstItemIndex:Dt}}function buildListStateFromItemCount(_e,lt,Rt,At,Pt,Dt){let Lt=0;if(Rt.groupIndices.length>0)for(const Ut of Rt.groupIndices){if(Ut-Lt>=_e)break;Lt++}const Bt=_e+Lt,Nt=getInitialTopMostItemIndexNumber(lt,Bt),jt=Array.from({length:Bt}).map((Ut,Gt)=>({index:Gt+Nt,size:0,offset:0,data:Dt[Gt+Nt]}));return buildListState(jt,[],Bt,Pt,Rt,At)}const listStateSystem=system(([{sizes:_e,totalCount:lt,data:Rt,firstItemIndex:At,gap:Pt},Dt,{visibleRange:Lt,listBoundary:Bt,topListHeight:Nt},{scrolledToInitialItem:jt,initialTopMostItemIndex:Ut},{topListHeight:Gt},qt,{didMount:Xt},{recalcInProgress:Kt}])=>{const Zt=statefulStream([]),Qt=statefulStream(0),Jt=stream();connect(Dt.topItemsIndexes,Zt);const en=statefulStreamFromEmitter(pipe(combineLatest(Xt,Kt,duc(Lt,tupleComparator),duc(lt),duc(_e),duc(Ut),jt,duc(Zt),duc(At),duc(Pt),Rt),filter(([un,rn,,sn,,,,,,,pn])=>{const bn=pn&&pn.length!==sn;return un&&!rn&&!bn}),map(([,,[un,rn],sn,pn,bn,gn,_n,xn,ln,Mn])=>{const Tn=pn,{sizeTree:An,offsetTree:Cn}=Tn,wn=getValue(Qt);if(sn===0)return{...EMPTY_LIST_STATE,totalCount:sn};if(un===0&&rn===0)return wn===0?{...EMPTY_LIST_STATE,totalCount:sn}:buildListStateFromItemCount(wn,bn,pn,xn,ln,Mn||[]);if(empty(An))return wn>0?null:buildListState(probeItemSet(getInitialTopMostItemIndexNumber(bn,sn),Tn,Mn),[],sn,ln,Tn,xn);const Fn=[];if(_n.length>0){const tr=_n[0],vn=_n[_n.length-1];let En=0;for(const kn of rangesWithin(An,tr,vn)){const zn=kn.value,dn=Math.max(kn.start,tr),hn=Math.min(kn.end,vn);for(let yn=dn;yn<=hn;yn++)Fn.push({index:yn,size:zn,offset:En,data:Mn&&Mn[yn]}),En+=zn}}if(!gn)return buildListState([],Fn,sn,ln,Tn,xn);const $n=_n.length>0?_n[_n.length-1]+1:0,Pn=rangesWithinOffsets(Cn,un,rn,$n);if(Pn.length===0)return null;const Vn=sn-1,Zn=tap([],tr=>{for(const vn of Pn){const En=vn.value;let kn=En.offset,zn=vn.start;const dn=En.size;if(En.offset=rn);yn++)tr.push({index:yn,size:dn,offset:kn,data:Mn&&Mn[yn]}),kn+=dn+ln}});return buildListState(Zn,Fn,sn,ln,Tn,xn)}),filter(un=>un!==null),distinctUntilChanged()),EMPTY_LIST_STATE);connect(pipe(Rt,filter(isDefined),map(un=>un==null?void 0:un.length)),lt),connect(pipe(en,map(un=>un.topListHeight)),Gt),connect(Gt,Nt),connect(pipe(en,map(un=>[un.top,un.bottom])),Bt),connect(pipe(en,map(un=>un.items)),Jt);const tn=streamFromEmitter(pipe(en,filter(({items:un})=>un.length>0),withLatestFrom(lt,Rt),filter(([{items:un},rn])=>un[un.length-1].originalIndex===rn-1),map(([,un,rn])=>[un-1,rn]),distinctUntilChanged(tupleComparator),map(([un])=>un))),an=streamFromEmitter(pipe(en,throttleTime(200),filter(({items:un,topItems:rn})=>un.length>0&&un[0].originalIndex===rn.length),map(({items:un})=>un[0].index),distinctUntilChanged())),cn=streamFromEmitter(pipe(en,filter(({items:un})=>un.length>0),map(({items:un})=>{let rn=0,sn=un.length-1;for(;un[rn].type==="group"&&rnrn;)sn--;return{startIndex:un[rn].index,endIndex:un[sn].index}}),distinctUntilChanged(rangeComparator)));return{listState:en,topItemsIndexes:Zt,endReached:tn,startReached:an,rangeChanged:cn,itemsRendered:Jt,initialItemCount:Qt,...qt}},tup(sizeSystem,groupedListSystem,sizeRangeSystem,initialTopMostItemIndexSystem,scrollToIndexSystem,stateFlagsSystem,propsReadySystem,recalcSystem),{singleton:!0}),initialItemCountSystem=system(([{sizes:_e,firstItemIndex:lt,data:Rt,gap:At},{initialTopMostItemIndex:Pt},{initialItemCount:Dt,listState:Lt},{didMount:Bt}])=>(connect(pipe(Bt,withLatestFrom(Dt),filter(([,Nt])=>Nt!==0),withLatestFrom(Pt,_e,lt,At,Rt),map(([[,Nt],jt,Ut,Gt,qt,Xt=[]])=>buildListStateFromItemCount(Nt,jt,Ut,Gt,qt,Xt))),Lt),{}),tup(sizeSystem,initialTopMostItemIndexSystem,listStateSystem,propsReadySystem),{singleton:!0}),scrollSeekSystem=system(([{scrollVelocity:_e}])=>{const lt=statefulStream(!1),Rt=stream(),At=statefulStream(!1);return connect(pipe(_e,withLatestFrom(At,lt,Rt),filter(([Pt,Dt])=>!!Dt),map(([Pt,Dt,Lt,Bt])=>{const{exit:Nt,enter:jt}=Dt;if(Lt){if(Nt(Pt,Bt))return!1}else if(jt(Pt,Bt))return!0;return Lt}),distinctUntilChanged()),lt),subscribe(pipe(combineLatest(lt,_e,Rt),withLatestFrom(At)),([[Pt,Dt,Lt],Bt])=>Pt&&Bt&&Bt.change&&Bt.change(Dt,Lt)),{isSeeking:lt,scrollSeekConfiguration:At,scrollVelocity:_e,scrollSeekRangeChanged:Rt}},tup(stateFlagsSystem),{singleton:!0}),topItemCountSystem=system(([{topItemsIndexes:_e}])=>{const lt=statefulStream(0);return connect(pipe(lt,filter(Rt=>Rt>0),map(Rt=>Array.from({length:Rt}).map((At,Pt)=>Pt))),_e),{topItemCount:lt}},tup(listStateSystem)),totalListHeightSystem=system(([{footerHeight:_e,headerHeight:lt,fixedHeaderHeight:Rt,fixedFooterHeight:At},{listState:Pt}])=>{const Dt=stream(),Lt=statefulStreamFromEmitter(pipe(combineLatest(_e,At,lt,Rt,Pt),map(([Bt,Nt,jt,Ut,Gt])=>Bt+Nt+jt+Ut+Gt.offsetBottom+Gt.bottom)),0);return connect(duc(Lt),Dt),{totalListHeight:Lt,totalListHeightChanged:Dt}},tup(domIOSystem,listStateSystem),{singleton:!0});function simpleMemoize(_e){let lt=!1,Rt;return()=>(lt||(lt=!0,Rt=_e()),Rt)}const isMobileSafari=simpleMemoize(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),upwardScrollFixSystem=system(([{scrollBy:_e,scrollTop:lt,deviation:Rt,scrollingInProgress:At},{isScrolling:Pt,isAtBottom:Dt,scrollDirection:Lt,lastJumpDueToItemResize:Bt},{listState:Nt},{beforeUnshiftWith:jt,shiftWithOffset:Ut,sizes:Gt,gap:qt},{log:Xt},{recalcInProgress:Kt}])=>{const Zt=streamFromEmitter(pipe(Nt,withLatestFrom(Bt),scan(([,Jt,en,tn],[{items:an,totalCount:cn,bottom:un,offsetBottom:rn},sn])=>{const pn=un+rn;let bn=0;return en===cn&&Jt.length>0&&an.length>0&&(an[0].originalIndex===0&&Jt[0].originalIndex===0||(bn=pn-tn,bn!==0&&(bn+=sn))),[bn,an,cn,pn]},[0,[],0,0]),filter(([Jt])=>Jt!==0),withLatestFrom(lt,Lt,At,Dt,Xt,Kt),filter(([,Jt,en,tn,,,an])=>!an&&!tn&&Jt!==0&&en===UP),map(([[Jt],,,,,en])=>(en("Upward scrolling compensation",{amount:Jt},LogLevel.DEBUG),Jt))));function Qt(Jt){Jt>0?(publish(_e,{top:-Jt,behavior:"auto"}),publish(Rt,0)):(publish(Rt,0),publish(_e,{top:-Jt,behavior:"auto"}))}return subscribe(pipe(Zt,withLatestFrom(Rt,Pt)),([Jt,en,tn])=>{tn&&isMobileSafari()?publish(Rt,en-Jt):Qt(-Jt)}),subscribe(pipe(combineLatest(statefulStreamFromEmitter(Pt,!1),Rt,Kt),filter(([Jt,en,tn])=>!Jt&&!tn&&en!==0),map(([Jt,en])=>en),throttleTime(1)),Qt),connect(pipe(Ut,map(Jt=>({top:-Jt}))),_e),subscribe(pipe(jt,withLatestFrom(Gt,qt),map(([Jt,{lastSize:en,groupIndices:tn,sizeTree:an},cn])=>{function un(rn){return rn*(en+cn)}if(tn.length===0)return un(Jt);{let rn=0;const sn=find(an,0);let pn=0,bn=0;for(;pnJt&&(rn-=sn,gn=Jt-pn+1),pn+=gn,rn+=un(gn),bn++}return rn}})),Jt=>{publish(Rt,Jt),requestAnimationFrame(()=>{publish(_e,{top:Jt}),requestAnimationFrame(()=>{publish(Rt,0),publish(Kt,!1)})})}),{deviation:Rt}},tup(domIOSystem,stateFlagsSystem,listStateSystem,sizeSystem,loggerSystem,recalcSystem)),initialScrollTopSystem=system(([{didMount:_e},{scrollTo:lt},{listState:Rt}])=>{const At=statefulStream(0);return subscribe(pipe(_e,withLatestFrom(At),filter(([,Pt])=>Pt!==0),map(([,Pt])=>({top:Pt}))),Pt=>{handleNext(pipe(Rt,skip(1),filter(Dt=>Dt.items.length>1)),()=>{requestAnimationFrame(()=>{publish(lt,Pt)})})}),{initialScrollTop:At}},tup(propsReadySystem,domIOSystem,listStateSystem),{singleton:!0}),alignToBottomSystem=system(([{viewportHeight:_e},{totalListHeight:lt}])=>{const Rt=statefulStream(!1),At=statefulStreamFromEmitter(pipe(combineLatest(Rt,_e,lt),filter(([Pt])=>Pt),map(([,Pt,Dt])=>Math.max(0,Pt-Dt)),throttleTime(0),distinctUntilChanged()),0);return{alignToBottom:Rt,paddingTopAddition:At}},tup(domIOSystem,totalListHeightSystem),{singleton:!0}),windowScrollerSystem=system(([{scrollTo:_e,scrollContainerState:lt}])=>{const Rt=stream(),At=stream(),Pt=stream(),Dt=statefulStream(!1),Lt=statefulStream(void 0);return connect(pipe(combineLatest(Rt,At),map(([{viewportHeight:Bt,scrollTop:Nt,scrollHeight:jt},{offsetTop:Ut}])=>({scrollTop:Math.max(0,Nt-Ut),scrollHeight:jt,viewportHeight:Bt}))),lt),connect(pipe(_e,withLatestFrom(At),map(([Bt,{offsetTop:Nt}])=>({...Bt,top:Bt.top+Nt}))),Pt),{useWindowScroll:Dt,customScrollParent:Lt,windowScrollContainerState:Rt,windowViewportRect:At,windowScrollTo:Pt}},tup(domIOSystem)),defaultCalculateViewLocation=({itemTop:_e,itemBottom:lt,viewportTop:Rt,viewportBottom:At,locationParams:{behavior:Pt,align:Dt,...Lt}})=>_eAt?{...Lt,behavior:Pt,align:Dt??"end"}:null,scrollIntoViewSystem=system(([{sizes:_e,totalCount:lt,gap:Rt},{scrollTop:At,viewportHeight:Pt,headerHeight:Dt,fixedHeaderHeight:Lt,fixedFooterHeight:Bt,scrollingInProgress:Nt},{scrollToIndex:jt}])=>{const Ut=stream();return connect(pipe(Ut,withLatestFrom(_e,Pt,lt,Dt,Lt,Bt,At),withLatestFrom(Rt),map(([[Gt,qt,Xt,Kt,Zt,Qt,Jt,en],tn])=>{const{done:an,behavior:cn,align:un,calculateViewLocation:rn=defaultCalculateViewLocation,...sn}=Gt,pn=originalIndexFromLocation(Gt,qt,Kt-1),bn=offsetOf(pn,qt.offsetTree,tn)+Zt+Qt,gn=bn+findMaxKeyValue(qt.sizeTree,pn)[1],_n=en+Qt,xn=en+Xt-Jt,ln=rn({itemTop:bn,itemBottom:gn,viewportTop:_n,viewportBottom:xn,locationParams:{behavior:cn,align:un,...sn}});return ln?an&&handleNext(pipe(Nt,filter(Mn=>Mn===!1),skip(getValue(Nt)?1:2)),an):an&&an(),ln}),filter(Gt=>Gt!==null)),jt),{scrollIntoView:Ut}},tup(sizeSystem,domIOSystem,scrollToIndexSystem,listStateSystem,loggerSystem),{singleton:!0}),stateLoadSystem=system(([{sizes:_e,sizeRanges:lt},{scrollTop:Rt},{initialTopMostItemIndex:At},{didMount:Pt},{useWindowScroll:Dt,windowScrollContainerState:Lt,windowViewportRect:Bt}])=>{const Nt=stream(),jt=statefulStream(void 0),Ut=statefulStream(null),Gt=statefulStream(null);return connect(Lt,Ut),connect(Bt,Gt),subscribe(pipe(Nt,withLatestFrom(_e,Rt,Dt,Ut,Gt)),([qt,Xt,Kt,Zt,Qt,Jt])=>{const en=sizeTreeToRanges(Xt.sizeTree);Zt&&Qt!==null&&Jt!==null&&(Kt=Qt.scrollTop-Jt.offsetTop),qt({ranges:en,scrollTop:Kt})}),connect(pipe(jt,filter(isDefined),map(locationFromSnapshot)),At),connect(pipe(Pt,withLatestFrom(jt),filter(([,qt])=>qt!==void 0),distinctUntilChanged(),map(([,qt])=>qt.ranges)),lt),{getState:Nt,restoreStateFrom:jt}},tup(sizeSystem,domIOSystem,initialTopMostItemIndexSystem,propsReadySystem,windowScrollerSystem));function locationFromSnapshot(_e){return{offset:_e.scrollTop,index:0,align:"start"}}const featureGroup1System=system(([_e,lt,Rt,At,Pt,Dt,Lt,Bt,Nt,jt])=>({..._e,...lt,...Rt,...At,...Pt,...Dt,...Lt,...Bt,...Nt,...jt}),tup(sizeRangeSystem,initialItemCountSystem,propsReadySystem,scrollSeekSystem,totalListHeightSystem,initialScrollTopSystem,alignToBottomSystem,windowScrollerSystem,scrollIntoViewSystem,loggerSystem)),listSystem=system(([{totalCount:_e,sizeRanges:lt,fixedItemSize:Rt,defaultItemSize:At,trackItemSizes:Pt,itemSize:Dt,data:Lt,firstItemIndex:Bt,groupIndices:Nt,statefulTotalCount:jt,gap:Ut,sizes:Gt},{initialTopMostItemIndex:qt,scrolledToInitialItem:Xt},Kt,Zt,Qt,{listState:Jt,topItemsIndexes:en,...tn},{scrollToIndex:an},cn,{topItemCount:un},{groupCounts:rn},sn])=>(connect(tn.rangeChanged,sn.scrollSeekRangeChanged),connect(pipe(sn.windowViewportRect,map(pn=>pn.visibleHeight)),Kt.viewportHeight),{totalCount:_e,data:Lt,firstItemIndex:Bt,sizeRanges:lt,initialTopMostItemIndex:qt,scrolledToInitialItem:Xt,topItemsIndexes:en,topItemCount:un,groupCounts:rn,fixedItemHeight:Rt,defaultItemHeight:At,gap:Ut,...Qt,statefulTotalCount:jt,listState:Jt,scrollToIndex:an,trackItemSizes:Pt,itemSize:Dt,groupIndices:Nt,...tn,...sn,...Kt,sizes:Gt,...Zt}),tup(sizeSystem,initialTopMostItemIndexSystem,domIOSystem,stateLoadSystem,followOutputSystem,listStateSystem,scrollToIndexSystem,upwardScrollFixSystem,topItemCountSystem,groupedListSystem,featureGroup1System)),WEBKIT_STICKY="-webkit-sticky",STICKY="sticky",positionStickyCssValue=simpleMemoize(()=>{if(typeof document>"u")return STICKY;const _e=document.createElement("div");return _e.style.position=WEBKIT_STICKY,_e.style.position===WEBKIT_STICKY?WEBKIT_STICKY:STICKY});function useWindowViewportRectRef(_e,lt){const Rt=React.useRef(null),At=React.useCallback(Bt=>{if(Bt===null||!Bt.offsetParent)return;const Nt=Bt.getBoundingClientRect(),jt=Nt.width;let Ut,Gt;if(lt){const qt=lt.getBoundingClientRect(),Xt=Nt.top-qt.top;Ut=qt.height-Math.max(0,Xt),Gt=Xt+lt.scrollTop}else Ut=window.innerHeight-Math.max(0,Nt.top),Gt=Nt.top+window.pageYOffset;Rt.current={offsetTop:Gt,visibleHeight:Ut,visibleWidth:jt},_e(Rt.current)},[_e,lt]),{callbackRef:Pt,ref:Dt}=useSizeWithElRef(At),Lt=React.useCallback(()=>{At(Dt.current)},[At,Dt]);return React.useEffect(()=>{if(lt){lt.addEventListener("scroll",Lt);const Bt=new ResizeObserver(Lt);return Bt.observe(lt),()=>{lt.removeEventListener("scroll",Lt),Bt.unobserve(lt)}}else return window.addEventListener("scroll",Lt),window.addEventListener("resize",Lt),()=>{window.removeEventListener("scroll",Lt),window.removeEventListener("resize",Lt)}},[Lt,lt]),Pt}const VirtuosoMockContext=React.createContext(void 0),VirtuosoGridMockContext=React.createContext(void 0);function identity(_e){return _e}const listComponentPropsSystem=system(()=>{const _e=statefulStream(Nt=>`Item ${Nt}`),lt=statefulStream(null),Rt=statefulStream(Nt=>`Group ${Nt}`),At=statefulStream({}),Pt=statefulStream(identity),Dt=statefulStream("div"),Lt=statefulStream(noop),Bt=(Nt,jt=null)=>statefulStreamFromEmitter(pipe(At,map(Ut=>Ut[Nt]),distinctUntilChanged()),jt);return{context:lt,itemContent:_e,groupContent:Rt,components:At,computeItemKey:Pt,headerFooterTag:Dt,scrollerRef:Lt,FooterComponent:Bt("Footer"),HeaderComponent:Bt("Header"),TopItemListComponent:Bt("TopItemList"),ListComponent:Bt("List","div"),ItemComponent:Bt("Item","div"),GroupComponent:Bt("Group","div"),ScrollerComponent:Bt("Scroller","div"),EmptyPlaceholder:Bt("EmptyPlaceholder"),ScrollSeekPlaceholder:Bt("ScrollSeekPlaceholder")}}),combinedSystem$2=system(([_e,lt])=>({..._e,...lt}),tup(listSystem,listComponentPropsSystem)),DefaultScrollSeekPlaceholder$1=({height:_e})=>React.createElement("div",{style:{height:_e}}),GROUP_STYLE={position:positionStickyCssValue(),zIndex:1,overflowAnchor:"none"},ITEM_STYLE$1={overflowAnchor:"none"},Items$1=React.memo(function _e({showTopList:lt=!1}){const Rt=useEmitterValue$2("listState"),At=usePublisher$2("sizeRanges"),Pt=useEmitterValue$2("useWindowScroll"),Dt=useEmitterValue$2("customScrollParent"),Lt=usePublisher$2("windowScrollContainerState"),Bt=usePublisher$2("scrollContainerState"),Nt=Dt||Pt?Lt:Bt,jt=useEmitterValue$2("itemContent"),Ut=useEmitterValue$2("context"),Gt=useEmitterValue$2("groupContent"),qt=useEmitterValue$2("trackItemSizes"),Xt=useEmitterValue$2("itemSize"),Kt=useEmitterValue$2("log"),Zt=usePublisher$2("gap"),{callbackRef:Qt}=useChangedListContentsSizes(At,Xt,qt,lt?noop:Nt,Kt,Zt,Dt),[Jt,en]=React.useState(0);useEmitter$2("deviation",ln=>{Jt!==ln&&en(ln)});const tn=useEmitterValue$2("EmptyPlaceholder"),an=useEmitterValue$2("ScrollSeekPlaceholder")||DefaultScrollSeekPlaceholder$1,cn=useEmitterValue$2("ListComponent"),un=useEmitterValue$2("ItemComponent"),rn=useEmitterValue$2("GroupComponent"),sn=useEmitterValue$2("computeItemKey"),pn=useEmitterValue$2("isSeeking"),bn=useEmitterValue$2("groupIndices").length>0,gn=useEmitterValue$2("paddingTopAddition"),_n=useEmitterValue$2("scrolledToInitialItem"),xn=lt?{}:{boxSizing:"border-box",paddingTop:Rt.offsetTop+gn,paddingBottom:Rt.offsetBottom,marginTop:Jt,..._n?{}:{visibility:"hidden"}};return!lt&&Rt.totalCount===0&&tn?React.createElement(tn,contextPropIfNotDomElement(tn,Ut)):React.createElement(cn,{...contextPropIfNotDomElement(cn,Ut),ref:Qt,style:xn,"data-test-id":lt?"virtuoso-top-item-list":"virtuoso-item-list"},(lt?Rt.topItems:Rt.items).map(ln=>{const Mn=ln.originalIndex,Tn=sn(Mn+Rt.firstItemIndex,ln.data,Ut);return pn?React.createElement(an,{...contextPropIfNotDomElement(an,Ut),key:Tn,index:ln.index,height:ln.size,type:ln.type||"item",...ln.type==="group"?{}:{groupIndex:ln.groupIndex}}):ln.type==="group"?React.createElement(rn,{...contextPropIfNotDomElement(rn,Ut),key:Tn,"data-index":Mn,"data-known-size":ln.size,"data-item-index":ln.index,style:GROUP_STYLE},Gt(ln.index,Ut)):React.createElement(un,{...contextPropIfNotDomElement(un,Ut),...itemPropIfNotDomElement(un,ln.data),key:Tn,"data-index":Mn,"data-known-size":ln.size,"data-item-index":ln.index,"data-item-group-index":ln.groupIndex,style:ITEM_STYLE$1},bn?jt(ln.index,ln.groupIndex,ln.data,Ut):jt(ln.index,ln.data,Ut))}))}),scrollerStyle={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},viewportStyle={width:"100%",height:"100%",position:"absolute",top:0},topItemListStyle={width:"100%",position:positionStickyCssValue(),top:0,zIndex:1};function contextPropIfNotDomElement(_e,lt){if(typeof _e!="string")return{context:lt}}function itemPropIfNotDomElement(_e,lt){return{item:typeof _e=="string"?void 0:lt}}const Header$1=React.memo(function _e(){const lt=useEmitterValue$2("HeaderComponent"),Rt=usePublisher$2("headerHeight"),At=useEmitterValue$2("headerFooterTag"),Pt=useSize(Lt=>Rt(correctItemSize(Lt,"height"))),Dt=useEmitterValue$2("context");return lt?React.createElement(At,{ref:Pt},React.createElement(lt,contextPropIfNotDomElement(lt,Dt))):null}),Footer$1=React.memo(function _e(){const lt=useEmitterValue$2("FooterComponent"),Rt=usePublisher$2("footerHeight"),At=useEmitterValue$2("headerFooterTag"),Pt=useSize(Lt=>Rt(correctItemSize(Lt,"height"))),Dt=useEmitterValue$2("context");return lt?React.createElement(At,{ref:Pt},React.createElement(lt,contextPropIfNotDomElement(lt,Dt))):null});function buildScroller({usePublisher:_e,useEmitter:lt,useEmitterValue:Rt}){return React.memo(function({style:Dt,children:Lt,...Bt}){const Nt=_e("scrollContainerState"),jt=Rt("ScrollerComponent"),Ut=_e("smoothScrollTargetReached"),Gt=Rt("scrollerRef"),qt=Rt("context"),{scrollerRef:Xt,scrollByCallback:Kt,scrollToCallback:Zt}=useScrollTop(Nt,Ut,jt,Gt);return lt("scrollTo",Zt),lt("scrollBy",Kt),React.createElement(jt,{ref:Xt,style:{...scrollerStyle,...Dt},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...Bt,...contextPropIfNotDomElement(jt,qt)},Lt)})}function buildWindowScroller({usePublisher:_e,useEmitter:lt,useEmitterValue:Rt}){return React.memo(function({style:Dt,children:Lt,...Bt}){const Nt=_e("windowScrollContainerState"),jt=Rt("ScrollerComponent"),Ut=_e("smoothScrollTargetReached"),Gt=Rt("totalListHeight"),qt=Rt("deviation"),Xt=Rt("customScrollParent"),Kt=Rt("context"),{scrollerRef:Zt,scrollByCallback:Qt,scrollToCallback:Jt}=useScrollTop(Nt,Ut,jt,noop,Xt);return useIsomorphicLayoutEffect$1(()=>(Zt.current=Xt||window,()=>{Zt.current=null}),[Zt,Xt]),lt("windowScrollTo",Jt),lt("scrollBy",Qt),React.createElement(jt,{style:{position:"relative",...Dt,...Gt!==0?{height:Gt+qt}:{}},"data-virtuoso-scroller":!0,...Bt,...contextPropIfNotDomElement(jt,Kt)},Lt)})}const Viewport$2=({children:_e})=>{const lt=React.useContext(VirtuosoMockContext),Rt=usePublisher$2("viewportHeight"),At=usePublisher$2("fixedItemHeight"),Pt=useSize(compose(Rt,Dt=>correctItemSize(Dt,"height")));return React.useEffect(()=>{lt&&(Rt(lt.viewportHeight),At(lt.itemHeight))},[lt,Rt,At]),React.createElement("div",{style:viewportStyle,ref:Pt,"data-viewport-type":"element"},_e)},WindowViewport$2=({children:_e})=>{const lt=React.useContext(VirtuosoMockContext),Rt=usePublisher$2("windowViewportRect"),At=usePublisher$2("fixedItemHeight"),Pt=useEmitterValue$2("customScrollParent"),Dt=useWindowViewportRectRef(Rt,Pt);return React.useEffect(()=>{lt&&(At(lt.itemHeight),Rt({offsetTop:0,visibleHeight:lt.viewportHeight,visibleWidth:100}))},[lt,Rt,At]),React.createElement("div",{ref:Dt,style:viewportStyle,"data-viewport-type":"window"},_e)},TopItemListContainer=({children:_e})=>{const lt=useEmitterValue$2("TopItemListComponent")||"div",Rt=useEmitterValue$2("headerHeight"),At={...topItemListStyle,marginTop:`${Rt}px`},Pt=useEmitterValue$2("context");return React.createElement(lt,{style:At,...contextPropIfNotDomElement(lt,Pt)},_e)},ListRoot=React.memo(function _e(lt){const Rt=useEmitterValue$2("useWindowScroll"),At=useEmitterValue$2("topItemsIndexes").length>0,Pt=useEmitterValue$2("customScrollParent"),Dt=Pt||Rt?WindowScroller$2:Scroller$2,Lt=Pt||Rt?WindowViewport$2:Viewport$2;return React.createElement(Dt,{...lt},At&&React.createElement(TopItemListContainer,null,React.createElement(Items$1,{showTopList:!0})),React.createElement(Lt,null,React.createElement(Header$1,null),React.createElement(Items$1,null),React.createElement(Footer$1,null)))}),{Component:List,usePublisher:usePublisher$2,useEmitterValue:useEmitterValue$2,useEmitter:useEmitter$2}=systemToComponent(combinedSystem$2,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},ListRoot),Scroller$2=buildScroller({usePublisher:usePublisher$2,useEmitterValue:useEmitterValue$2,useEmitter:useEmitter$2}),WindowScroller$2=buildWindowScroller({usePublisher:usePublisher$2,useEmitterValue:useEmitterValue$2,useEmitter:useEmitter$2}),Virtuoso=List,INITIAL_GRID_STATE={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},PROBE_GRID_STATE={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round,ceil,floor,min,max}=Math;function buildProbeGridState(_e){return{...PROBE_GRID_STATE,items:_e}}function buildItems(_e,lt,Rt){return Array.from({length:lt-_e+1}).map((At,Pt)=>{const Dt=Rt===null?null:Rt[Pt+_e];return{index:Pt+_e,data:Dt}})}function gapComparator(_e,lt){return _e&&_e.column===lt.column&&_e.row===lt.row}function dimensionComparator(_e,lt){return _e&&_e.width===lt.width&&_e.height===lt.height}const gridSystem=system(([{overscan:_e,visibleRange:lt,listBoundary:Rt},{scrollTop:At,viewportHeight:Pt,scrollBy:Dt,scrollTo:Lt,smoothScrollTargetReached:Bt,scrollContainerState:Nt,footerHeight:jt,headerHeight:Ut},Gt,qt,{propsReady:Xt,didMount:Kt},{windowViewportRect:Zt,useWindowScroll:Qt,customScrollParent:Jt,windowScrollContainerState:en,windowScrollTo:tn},an])=>{const cn=statefulStream(0),un=statefulStream(0),rn=statefulStream(INITIAL_GRID_STATE),sn=statefulStream({height:0,width:0}),pn=statefulStream({height:0,width:0}),bn=stream(),gn=stream(),_n=statefulStream(0),xn=statefulStream(null),ln=statefulStream({row:0,column:0}),Mn=stream(),Tn=stream(),An=statefulStream(!1),Cn=statefulStream(0),wn=statefulStream(!0),Fn=statefulStream(!1);subscribe(pipe(Kt,withLatestFrom(Cn),filter(([vn,En])=>!!En)),()=>{publish(wn,!1),publish(un,0)}),subscribe(pipe(combineLatest(Kt,wn,pn,sn,Cn,Fn),filter(([vn,En,kn,zn,,dn])=>vn&&!En&&kn.height!==0&&zn.height!==0&&!dn)),([,,,,vn])=>{publish(Fn,!0),skipFrames(1,()=>{publish(bn,vn)}),handleNext(pipe(At),()=>{publish(Rt,[0,0]),publish(wn,!0)})}),connect(pipe(Tn,filter(vn=>vn!=null&&vn.scrollTop>0),mapTo(0)),un),subscribe(pipe(Kt,withLatestFrom(Tn),filter(([,vn])=>vn!=null)),([,vn])=>{vn&&(publish(sn,vn.viewport),publish(pn,vn==null?void 0:vn.item),publish(ln,vn.gap),vn.scrollTop>0&&(publish(An,!0),handleNext(pipe(At,skip(1)),En=>{publish(An,!1)}),publish(Lt,{top:vn.scrollTop})))}),connect(pipe(sn,map(({height:vn})=>vn)),Pt),connect(pipe(combineLatest(duc(sn,dimensionComparator),duc(pn,dimensionComparator),duc(ln,(vn,En)=>vn&&vn.column===En.column&&vn.row===En.row),duc(At)),map(([vn,En,kn,zn])=>({viewport:vn,item:En,gap:kn,scrollTop:zn}))),Mn),connect(pipe(combineLatest(duc(cn),lt,duc(ln,gapComparator),duc(pn,dimensionComparator),duc(sn,dimensionComparator),duc(xn),duc(un),duc(An),duc(wn),duc(Cn)),filter(([,,,,,,,vn])=>!vn),map(([vn,[En,kn],zn,dn,hn,yn,Bn,,Gn,Sn])=>{const{row:Kn,column:er}=zn,{height:Yn,width:dr}=dn,{width:vr}=hn;if(Bn===0&&(vn===0||vr===0))return INITIAL_GRID_STATE;if(dr===0){const Jn=getInitialTopMostItemIndexNumber(Sn,vn),ur=Jn===0?Math.max(Bn-1,0):Jn;return buildProbeGridState(buildItems(Jn,ur,yn))}const br=itemsPerRow(vr,dr,er);let Er,nr;Gn?En===0&&kn===0&&Bn>0?(Er=0,nr=Bn-1):(Er=br*floor((En+Kn)/(Yn+Kn)),nr=br*ceil((kn+Kn)/(Yn+Kn))-1,nr=min(vn-1,max(nr,br-1)),Er=min(nr,max(0,Er))):(Er=0,nr=-1);const sr=buildItems(Er,nr,yn),{top:_r,bottom:Rr}=gridLayout(hn,zn,dn,sr),Un=ceil(vn/br),Dn=Un*Yn+(Un-1)*Kn-Rr;return{items:sr,offsetTop:_r,offsetBottom:Dn,top:_r,bottom:Rr,itemHeight:Yn,itemWidth:dr}})),rn),connect(pipe(xn,filter(vn=>vn!==null),map(vn=>vn.length)),cn),connect(pipe(combineLatest(sn,pn,rn,ln),filter(([vn,En,{items:kn}])=>kn.length>0&&En.height!==0&&vn.height!==0),map(([vn,En,{items:kn},zn])=>{const{top:dn,bottom:hn}=gridLayout(vn,zn,En,kn);return[dn,hn]}),distinctUntilChanged(tupleComparator)),Rt);const $n=statefulStream(!1);connect(pipe(At,withLatestFrom($n),map(([vn,En])=>En||vn!==0)),$n);const Pn=streamFromEmitter(pipe(duc(rn),filter(({items:vn})=>vn.length>0),withLatestFrom(cn,$n),filter(([{items:vn},En,kn])=>kn&&vn[vn.length-1].index===En-1),map(([,vn])=>vn-1),distinctUntilChanged())),Vn=streamFromEmitter(pipe(duc(rn),filter(({items:vn})=>vn.length>0&&vn[0].index===0),mapTo(0),distinctUntilChanged())),Zn=streamFromEmitter(pipe(duc(rn),withLatestFrom(An),filter(([{items:vn},En])=>vn.length>0&&!En),map(([{items:vn}])=>({startIndex:vn[0].index,endIndex:vn[vn.length-1].index})),distinctUntilChanged(rangeComparator),throttleTime(0)));connect(Zn,qt.scrollSeekRangeChanged),connect(pipe(bn,withLatestFrom(sn,pn,cn,ln),map(([vn,En,kn,zn,dn])=>{const hn=normalizeIndexLocation(vn),{align:yn,behavior:Bn,offset:Gn}=hn;let Sn=hn.index;Sn==="LAST"&&(Sn=zn-1),Sn=max(0,Sn,min(zn-1,Sn));let Kn=itemTop(En,dn,kn,Sn);return yn==="end"?Kn=round(Kn-En.height+kn.height):yn==="center"&&(Kn=round(Kn-En.height/2+kn.height/2)),Gn&&(Kn+=Gn),{top:Kn,behavior:Bn}})),Lt);const tr=statefulStreamFromEmitter(pipe(rn,map(vn=>vn.offsetBottom+vn.bottom)),0);return connect(pipe(Zt,map(vn=>({width:vn.visibleWidth,height:vn.visibleHeight}))),sn),{data:xn,totalCount:cn,viewportDimensions:sn,itemDimensions:pn,scrollTop:At,scrollHeight:gn,overscan:_e,scrollBy:Dt,scrollTo:Lt,scrollToIndex:bn,smoothScrollTargetReached:Bt,windowViewportRect:Zt,windowScrollTo:tn,useWindowScroll:Qt,customScrollParent:Jt,windowScrollContainerState:en,deviation:_n,scrollContainerState:Nt,footerHeight:jt,headerHeight:Ut,initialItemCount:un,gap:ln,restoreStateFrom:Tn,...qt,initialTopMostItemIndex:Cn,gridState:rn,totalListHeight:tr,...Gt,startReached:Vn,endReached:Pn,rangeChanged:Zn,stateChanged:Mn,propsReady:Xt,stateRestoreInProgress:An,...an}},tup(sizeRangeSystem,domIOSystem,stateFlagsSystem,scrollSeekSystem,propsReadySystem,windowScrollerSystem,loggerSystem));function gridLayout(_e,lt,Rt,At){const{height:Pt}=Rt;if(Pt===void 0||At.length===0)return{top:0,bottom:0};const Dt=itemTop(_e,lt,Rt,At[0].index),Lt=itemTop(_e,lt,Rt,At[At.length-1].index)+Pt;return{top:Dt,bottom:Lt}}function itemTop(_e,lt,Rt,At){const Pt=itemsPerRow(_e.width,Rt.width,lt.column),Dt=floor(At/Pt),Lt=Dt*Rt.height+max(0,Dt-1)*lt.row;return Lt>0?Lt+lt.row:Lt}function itemsPerRow(_e,lt,Rt){return max(1,floor((_e+Rt)/(floor(lt)+Rt)))}const gridComponentPropsSystem=system(()=>{const _e=statefulStream(jt=>`Item ${jt}`),lt=statefulStream({}),Rt=statefulStream(null),At=statefulStream("virtuoso-grid-item"),Pt=statefulStream("virtuoso-grid-list"),Dt=statefulStream(identity),Lt=statefulStream("div"),Bt=statefulStream(noop),Nt=(jt,Ut=null)=>statefulStreamFromEmitter(pipe(lt,map(Gt=>Gt[jt]),distinctUntilChanged()),Ut);return{context:Rt,itemContent:_e,components:lt,computeItemKey:Dt,itemClassName:At,listClassName:Pt,headerFooterTag:Lt,scrollerRef:Bt,FooterComponent:Nt("Footer"),HeaderComponent:Nt("Header"),ListComponent:Nt("List","div"),ItemComponent:Nt("Item","div"),ScrollerComponent:Nt("Scroller","div"),ScrollSeekPlaceholder:Nt("ScrollSeekPlaceholder","div")}}),combinedSystem$1=system(([_e,lt])=>({..._e,...lt}),tup(gridSystem,gridComponentPropsSystem)),GridItems=React.memo(function _e(){const lt=useEmitterValue$1("gridState"),Rt=useEmitterValue$1("listClassName"),At=useEmitterValue$1("itemClassName"),Pt=useEmitterValue$1("itemContent"),Dt=useEmitterValue$1("computeItemKey"),Lt=useEmitterValue$1("isSeeking"),Bt=usePublisher$1("scrollHeight"),Nt=useEmitterValue$1("ItemComponent"),jt=useEmitterValue$1("ListComponent"),Ut=useEmitterValue$1("ScrollSeekPlaceholder"),Gt=useEmitterValue$1("context"),qt=usePublisher$1("itemDimensions"),Xt=usePublisher$1("gap"),Kt=useEmitterValue$1("log"),Zt=useEmitterValue$1("stateRestoreInProgress"),Qt=useSize(Jt=>{const en=Jt.parentElement.parentElement.scrollHeight;Bt(en);const tn=Jt.firstChild;if(tn){const{width:an,height:cn}=tn.getBoundingClientRect();qt({width:an,height:cn})}Xt({row:resolveGapValue("row-gap",getComputedStyle(Jt).rowGap,Kt),column:resolveGapValue("column-gap",getComputedStyle(Jt).columnGap,Kt)})});return Zt?null:React.createElement(jt,{ref:Qt,className:Rt,...contextPropIfNotDomElement(jt,Gt),style:{paddingTop:lt.offsetTop,paddingBottom:lt.offsetBottom},"data-test-id":"virtuoso-item-list"},lt.items.map(Jt=>{const en=Dt(Jt.index,Jt.data,Gt);return Lt?React.createElement(Ut,{key:en,...contextPropIfNotDomElement(Ut,Gt),index:Jt.index,height:lt.itemHeight,width:lt.itemWidth}):React.createElement(Nt,{...contextPropIfNotDomElement(Nt,Gt),className:At,"data-index":Jt.index,key:en},Pt(Jt.index,Jt.data,Gt))}))}),Header=React.memo(function _e(){const lt=useEmitterValue$1("HeaderComponent"),Rt=usePublisher$1("headerHeight"),At=useEmitterValue$1("headerFooterTag"),Pt=useSize(Lt=>Rt(correctItemSize(Lt,"height"))),Dt=useEmitterValue$1("context");return lt?React.createElement(At,{ref:Pt},React.createElement(lt,contextPropIfNotDomElement(lt,Dt))):null}),Footer=React.memo(function _e(){const lt=useEmitterValue$1("FooterComponent"),Rt=usePublisher$1("footerHeight"),At=useEmitterValue$1("headerFooterTag"),Pt=useSize(Lt=>Rt(correctItemSize(Lt,"height"))),Dt=useEmitterValue$1("context");return lt?React.createElement(At,{ref:Pt},React.createElement(lt,contextPropIfNotDomElement(lt,Dt))):null}),Viewport$1=({children:_e})=>{const lt=React.useContext(VirtuosoGridMockContext),Rt=usePublisher$1("itemDimensions"),At=usePublisher$1("viewportDimensions"),Pt=useSize(Dt=>{At(Dt.getBoundingClientRect())});return React.useEffect(()=>{lt&&(At({height:lt.viewportHeight,width:lt.viewportWidth}),Rt({height:lt.itemHeight,width:lt.itemWidth}))},[lt,At,Rt]),React.createElement("div",{style:viewportStyle,ref:Pt},_e)},WindowViewport$1=({children:_e})=>{const lt=React.useContext(VirtuosoGridMockContext),Rt=usePublisher$1("windowViewportRect"),At=usePublisher$1("itemDimensions"),Pt=useEmitterValue$1("customScrollParent"),Dt=useWindowViewportRectRef(Rt,Pt);return React.useEffect(()=>{lt&&(At({height:lt.itemHeight,width:lt.itemWidth}),Rt({offsetTop:0,visibleHeight:lt.viewportHeight,visibleWidth:lt.viewportWidth}))},[lt,Rt,At]),React.createElement("div",{ref:Dt,style:viewportStyle},_e)},GridRoot=React.memo(function _e({...lt}){const Rt=useEmitterValue$1("useWindowScroll"),At=useEmitterValue$1("customScrollParent"),Pt=At||Rt?WindowScroller$1:Scroller$1,Dt=At||Rt?WindowViewport$1:Viewport$1;return React.createElement(Pt,{...lt},React.createElement(Dt,null,React.createElement(Header,null),React.createElement(GridItems,null),React.createElement(Footer,null)))}),{Component:Grid,usePublisher:usePublisher$1,useEmitterValue:useEmitterValue$1,useEmitter:useEmitter$1}=systemToComponent(combinedSystem$1,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},GridRoot),Scroller$1=buildScroller({usePublisher:usePublisher$1,useEmitterValue:useEmitterValue$1,useEmitter:useEmitter$1}),WindowScroller$1=buildWindowScroller({usePublisher:usePublisher$1,useEmitterValue:useEmitterValue$1,useEmitter:useEmitter$1});function resolveGapValue(_e,lt,Rt){return lt!=="normal"&&!(lt!=null&<.endsWith("px"))&&Rt(`${_e} was not resolved to pixel value correctly`,lt,LogLevel.WARN),lt==="normal"?0:parseInt(lt??"0",10)}const Scroller=reactExports.forwardRef(({style:_e,children:lt,...Rt},At)=>{const Pt=reactExports.useRef(null),{palette:Dt,spacing:Lt}=useTheme(),Bt=useCss$1({"--os-padding-perpendicular":"2px",".os-scrollbar":{visibility:"visible",opacity:1},".os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle":{"min-height":Lt(12)},"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${Lt(6)})`,marginTop:Lt(6)},"div > div.os-scrollbar-track":{"--os-handle-perpendicular-size":"2px","--os-handle-perpendicular-size-hover":"6px","--os-handle-perpendicular-size-active":"6px","> div.os-scrollbar-handle":{borderRadius:0,opacity:.5,"&:hover":{opacity:.8}}}}),[Nt]=S$5({options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{autoHide:"move",theme:Dt.mode==="dark"?"os-theme-light":"os-theme-dark"}}});reactExports.useEffect(()=>{typeof At!="function"&&(At!=null&&At.current)&&(Pt!=null&&Pt.current)&&Nt({target:Pt.current,elements:{viewport:At.current}})},[Nt]);const jt=reactExports.useCallback(Ut=>{Ut&&At&&(typeof At=="function"?At(Ut):At.current=Ut)},[At]);return jsxRuntimeExports.jsx("div",{ref:Pt,style:_e,className:Bt,children:jsxRuntimeExports.jsx("div",{ref:jt,...Rt,children:lt})})});function LazyList({items:_e=[],renderItem:lt,listOptions:Rt,placeholder:At,...Pt}){return jsxRuntimeExports.jsx(Box$1,{...Pt,children:jsxRuntimeExports.jsx(Virtuoso,{components:{Scroller},totalCount:_e.length,itemContent:Dt=>lt==null?void 0:lt(_e[Dt],Dt),...Rt})})}function Dot({label:_e}){return jsxRuntimeExports.jsx(Tooltip$1,{title:_e,children:jsxRuntimeExports.jsx(FiberManualRecord,{sx:{color:"error.main",transform:"scale(0.5)",pl:.5,mr:2},fontSize:"small"})})}function EventInspector({event:_e,index:lt,selected:Rt,label:At,...Pt}){const{spacing:Dt}=useTheme(),Lt=useCss$1({}),Bt=useCss$1({}),Nt=lodashExports$1.omit(_e,...OMIT_PROPS),jt=lodashExports$1.pick(Nt,...ESSENTIAL_PROPS),Ut=lodashExports$1.omit(Nt,...ESSENTIAL_PROPS);return jsxRuntimeExports.jsxs(Box$1,{sx:{position:"relative",[`> .${Bt}`]:{opacity:0},[`&:hover > .${Bt}`]:{opacity:1},[`&:hover > .${Lt}`]:{pr:8}},children:[jsxRuntimeExports.jsxs(ListItemButton$1,{className:Lt,selected:Rt,...Pt,sx:{borderLeft:`${Dt(.5)} solid ${getColorHex(_e==null?void 0:_e.type)}`,...Pt.sx},children:[jsxRuntimeExports.jsxs(ListItemIcon$1,{sx:{alignItems:"center"},children:[jsxRuntimeExports.jsx(Typography$1,{variant:"body2",children:lt}),At&&jsxRuntimeExports.jsx(Dot,{label:At})]}),jsxRuntimeExports.jsx(ListItemText$1,{sx:{overflow:"hidden"},primary:jsxRuntimeExports.jsxs(Box$1,{sx:{overflow:"hidden",whiteSpace:"nowrap",display:"block",textOverflow:"ellipsis",my:.5},children:[lodashExports$1.startCase(`${(_e==null?void 0:_e.type)??"unsupported"} ${(_e==null?void 0:_e.id)??"-"}`)," "]}),secondaryTypographyProps:{component:"div",whiteSpace:"nowrap",overflow:"hidden"},secondary:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",justifyContent:"flex-start",sx:{"> *":{flex:0}},children:[jsxRuntimeExports.jsx(PropertyList,{event:jt,simple:!0}),jsxRuntimeExports.jsx(PropertyList,{event:Ut,simple:!0})]})})]}),jsxRuntimeExports.jsx(Stack$1,{className:Bt,direction:"row",sx:{p:1,justifyContent:"center",position:"absolute",right:0,alignItems:"center",top:0,height:"100%"},children:jsxRuntimeExports.jsx(PropertyDialog,{event:_e,trigger:Gt=>jsxRuntimeExports.jsx(IconButtonWithTooltip,{onClick:Gt,sx:{p:1.5,color:"text.secondary"},label:"See All Properties",icon:jsxRuntimeExports.jsx(DataObjectOutlined,{fontSize:"small"})})})})]})}function Skeleton({event:_e}){const{spacing:lt}=useTheme();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ListItem$1,{sx:{height:80,borderLeft:`${lt(.5)} solid ${getColorHex(_e==null?void 0:_e.type)}`},children:jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(Placeholder$3,{animation:!1,width:lt(4)})})}),jsxRuntimeExports.jsx(Divider$1,{variant:"inset"})]})}function lerp(_e,lt,Rt){return _e+lodashExports$1.clamp(Rt,0,1)*(lt-_e)}const ITEM_HEIGHT=80,PADDING_TOP=8,divider$2=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1}}),pxToInt=_e=>Number(_e.replace(/px$/,"")),SYMBOL_ALL=nanoid$1(),stepsLayerGuard=_e=>!!getLayerHandler(_e).steps;function useStepsPageState(_e,lt){const{key:Rt,setKey:At,layers:Pt,layer:Dt,allLayers:Lt}=useLayer(_e==null?void 0:_e.layer,stepsLayerGuard),[Bt,Nt]=reactExports.useState(_e==null?void 0:_e.selectedType);function jt(Gt){lt==null||lt({layer:Gt}),At(Gt)}function Ut(Gt){lt==null||lt({selectedType:Gt}),Nt(Gt)}return{setSelectedType:Ut,setKey:jt,selectedType:Bt,layers:Pt,allLayers:Lt,key:Rt,layer:Dt}}function StepsPage({template:_e}){const{spacing:lt}=useTheme(),Rt=usePaper(),At=useAcrylic(),Pt=reactExports.useRef(null),[Dt,Lt]=reactExports.useState(null),{controls:Bt,onChange:Nt,state:jt,dragHandle:Ut}=useViewTreeContext(),{allLayers:Gt,key:qt,layers:Xt,selectedType:Kt,setKey:Zt,setSelectedType:Qt,layer:Jt}=useStepsPageState(jt,Nt),{step:en,playing:tn,stepTo:an}=usePlaybackState(qt),cn=reactExports.useMemo(()=>{if(Jt){const{steps:gn}=getLayerHandler(Jt);return gn(Jt)}},[Jt]),{steps:un,types:rn,stepToFilteredStep:sn,selectedType:pn}=reactExports.useMemo(()=>{if(cn){const gn=cn.map((Tn,An)=>[Tn,An]),_n=lodashExports$1.chain(gn).map(([Tn])=>Tn.type).filter().uniq().value(),xn=!_n.includes(Kt),ln=xn?gn:gn.filter(([Tn])=>Tn.type===Kt),{stepMap:Mn}=lodashExports$1.reduce(gn,(Tn,[,An])=>{const Cn=lodashExports$1.findIndex(ln,([,Fn])=>Fn>=An,Tn.from),wn=Cn===-1?ln.length:Cn;return Tn.from=wn,Tn.stepMap.push(wn),Tn},{from:0,stepMap:[]});return{steps:ln,types:_n,stepToFilteredStep:Tn=>Mn[Tn],selectedType:xn?SYMBOL_ALL:Kt}}return{}},[cn,Kt]),bn=useBreakpoints(qt);return reactExports.useEffect(()=>{if(sn&&Dt&&Pt.current){const gn=sn(en);if(tn){let _n=!1;const xn=ln=>{var Mn;if(!_n&&"scrollTop"in Dt&&!lodashExports$1.isUndefined(en)){const{scrollTop:Tn}=Dt,An=gn*ITEM_HEIGHT;(Mn=Pt.current)==null||Mn.scrollTo({top:lerp(Tn,An,1e-6*ln)}),requestAnimationFrame(xn)}};return requestAnimationFrame(xn),()=>{_n=!0}}else Pt.current.scrollToIndex({index:gn,behavior:"smooth",offset:-pxToInt(lt(6+PADDING_TOP))})}},[en,Pt,Dt,sn,tn]),jsxRuntimeExports.jsxs(_e,{onChange:Nt,stack:jt,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Ut}),jsxRuntimeExports.jsxs(_e.Content,{children:[jsxRuntimeExports.jsx(Flex,{vertical:!0,alignItems:"center",children:un?un.length?jsxRuntimeExports.jsx(LazyList,{sx:{width:"100%",height:"100%"},items:un,listOptions:{scrollerRef:Lt,ref:Pt,defaultItemHeight:ITEM_HEIGHT,overscan:0},renderItem:([gn,_n],xn)=>{var ln;return tn?jsxRuntimeExports.jsx(Box$1,{sx:{pt:xn?0:lt(6+PADDING_TOP)},children:jsxRuntimeExports.jsx(Skeleton,{event:gn})},xn):jsxRuntimeExports.jsxs(Box$1,{sx:{height:pxToInt(lt(xn?0:6+PADDING_TOP))+ITEM_HEIGHT,pt:xn?0:lt(6+PADDING_TOP)},children:[jsxRuntimeExports.jsx(EventInspector,{event:gn,index:_n,selected:_n===en,sx:{height:"100%"},label:(ln=bn(_n))==null?void 0:ln.result,onClick:()=>an(_n)}),jsxRuntimeExports.jsx(Divider$1,{variant:"inset"})]},xn)}}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(StepsIcon,{}),label:`${inferLayerName(Jt)}`}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(StepsIcon,{}),label:"Steps"})}),!!(un!=null&&un.length)&&jsxRuntimeExports.jsxs(Stack$1,{direction:"row",sx:{...Rt(1),...At,alignItems:"center",position:"absolute",top:gn=>gn.spacing(6),height:gn=>gn.spacing(6),borderRadius:1,px:1,m:1},children:[jsxRuntimeExports.jsx(Playback,{layer:Jt}),divider$2,jsxRuntimeExports.jsx(Typography$1,{component:"div",variant:"body2",color:"text.secondary",sx:{px:1,py:.25,textAlign:"center",...Rt(0),borderRadius:1},children:en})]})]}),jsxRuntimeExports.jsxs(_e.Options,{children:[jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:qt,items:lodashExports$1.map(Gt,gn=>({id:gn.key,hidden:!lodashExports$1.find(Xt,{key:gn.key}),name:inferLayerName(gn)})),onChange:Zt,arrow:!0,ellipsis:12}),divider$2,jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(FiberManualRecordOutlined,{sx:{color:getColorHex(pn)}}),label:"Event Type",value:pn,items:[{id:SYMBOL_ALL,name:"All Events"},...lodashExports$1.map(rn,gn=>({id:`${gn}`,name:lodashExports$1.startCase(gn)}))],onChange:Qt,arrow:!0,ellipsis:12})]}),jsxRuntimeExports.jsx(_e.Extras,{children:Bt})]})}const itemHeight=_e=>_e?48:36,padding=8;function SelectMulti({trigger:_e,items:lt,value:Rt,onChange:At,placeholder:Pt="Select Options",defaultChecked:Dt}){const Lt=useSmallDisplay(),Bt=lodashExports$1.max([lodashExports$1.findIndex(lt,({value:Nt})=>!!(Rt!=null&&Rt[Nt])),0])??0;return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Nt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tooltip$1,{title:Pt,children:jsxRuntimeExports.jsx("span",{children:_e==null?void 0:_e(bindTrigger(Nt))})}),jsxRuntimeExports.jsx(Menu$1,{...bindMenu(Nt),anchorOrigin:{horizontal:"center",vertical:-itemHeight(Lt)*Bt-padding},transformOrigin:{vertical:"top",horizontal:"center"},children:lodashExports$1.map(lt,({value:jt,label:Ut,disabled:Gt})=>jsxRuntimeExports.jsxs(MenuItem$1,{disabled:Gt,onClick:()=>{At==null||At({...Rt,[jt]:!((Rt==null?void 0:Rt[jt])??Dt)})},children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(Checkbox$1,{sx:{p:0},checked:!!((Rt==null?void 0:Rt[jt])??Dt)})}),Ut]},jt))})]})})}function FeaturePickerMulti({label:_e,value:lt,onChange:Rt,items:At,icon:Pt,showArrow:Dt,defaultChecked:Lt,ellipsis:Bt=1/0}){var Ut;const Nt=lodashExports$1.filter(At,({id:Gt})=>!!((lt==null?void 0:lt[Gt])??Lt)),jt=Nt.length?Nt.length===1?(Ut=lodashExports$1.head(Nt))==null?void 0:Ut.name:`${Nt.length} Selected`:_e;return jsxRuntimeExports.jsx(SelectMulti,{defaultChecked:!0,placeholder:lodashExports$1.startCase(_e),trigger:Gt=>jsxRuntimeExports.jsx(FeaturePickerButton,{...Gt,disabled:!(At!=null&&At.length),icon:Pt,arrow:Dt,children:lodashExports$1.truncate(jt,{length:Bt})}),items:lodashExports$1.map(At,({id:Gt,name:qt,description:Xt,hidden:Kt})=>({value:Gt,label:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography$1,{children:qt}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Xt})]}),disabled:Kt})),value:lt,onChange:Rt})}const divider$1=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1}});function ViewportPage({template:_e}){var Kt,Zt,Qt,Jt;const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext(),[Dt]=useRenderers(),[{layers:Lt}]=useLayers(),[Bt,Nt]=reactExports.useState({}),jt=reactExports.useMemo(()=>lodashExports$1.filter(Lt,en=>(Bt==null?void 0:Bt[en.key])??!0),[Bt,Lt]),[Ut,Gt]=reactExports.useState(),qt=reactExports.useMemo(()=>lodashExports$1.head(Dt),[Dt]),Xt=At!=null&&At.renderer&&At.renderer!=="internal:auto"?At.renderer:(Zt=(Kt=qt==null?void 0:qt.renderer)==null?void 0:Kt.meta)==null?void 0:Zt.id;return reactExports.useEffect(()=>{lodashExports$1.delay(()=>{var en;(en=Ut==null?void 0:Ut.fitCamera)==null||en.call(Ut,tn=>{var an;return lodashExports$1.chain(jt).filter("viewKey").map("key").includes(((an=tn.meta)==null?void 0:an.sourceLayer)??"").value()})},150)},[Ut,lodashExports$1.chain(jt).map("viewKey").sort().join(".").value()]),jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(AutoSizer,{children:en=>jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(TraceRenderer,{...en,layers:jt,renderer:Xt,rendererRef:Gt})})})})}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",children:[jsxRuntimeExports.jsx(FeaturePicker,{label:"Renderer",icon:jsxRuntimeExports.jsx(BlurCircularOutlined,{}),value:(At==null?void 0:At.renderer)??"internal:auto",onChange:en=>Rt==null?void 0:Rt({renderer:en}),items:[{id:"internal:auto",name:`Auto (${((Jt=(Qt=qt==null?void 0:qt.renderer)==null?void 0:Qt.meta)==null?void 0:Jt.name)??"None"})`},...lodashExports$1.map(Dt,({renderer:en})=>({id:en.meta.id,name:en.meta.name,description:en.meta.id}))],arrow:!0}),divider$1,jsxRuntimeExports.jsx(FeaturePickerMulti,{defaultChecked:!0,label:"Layers",icon:jsxRuntimeExports.jsx(LayersIcon,{}),value:Bt,onChange:Nt,items:lodashExports$1.map(Lt,en=>({id:en.key,name:inferLayerName(en)})),showArrow:!0,ellipsis:12}),divider$1,jsxRuntimeExports.jsx(FeaturePickerButton,{disabled:!Ut,onClick:()=>{Ut==null||Ut.fitCamera()},icon:jsxRuntimeExports.jsx(CenterFocusStrongOutlined,{}),children:"Fit"}),jsxRuntimeExports.jsx(FeaturePickerButton,{disabled:!Ut,onClick:()=>{Ut==null||Ut.initialCamera()},icon:jsxRuntimeExports.jsx(CropFreeOutlined,{}),children:"1:1"})]})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})}const pages={explore:{id:"explore",name:"Explore",color:"pink",description:"Browse a library of examples and guides",icon:jsxRuntimeExports.jsx(RocketIcon,{}),content:ExplorePage,allowFullscreen:!0},layers:{id:"layers",name:"Layers",description:"",color:"deepPurple",icon:jsxRuntimeExports.jsx(LayersIcon,{}),content:LayersPage},steps:{id:"steps",name:"Steps",description:"",color:"deepPurple",icon:jsxRuntimeExports.jsx(StepsIcon,{}),content:StepsPage},viewport:{id:"viewport",name:"Viewport",description:"",color:"indigo",icon:jsxRuntimeExports.jsx(ViewportIcon,{}),content:ViewportPage},tree:{id:"tree",name:"Tree",description:"",color:"indigo",icon:jsxRuntimeExports.jsx(TreeIcon,{}),content:TreePage},debug:{id:"debug",name:"Debugger",description:"",color:"lightBlue",icon:jsxRuntimeExports.jsx(DebuggerIcon,{}),content:DebugPage},info:{id:"info",name:"Logs",description:"",color:"grey",icon:jsxRuntimeExports.jsx(LogsIcon,{}),content:InfoPage},settings:{id:"settings",name:"Settings",description:"",color:"grey",icon:jsxRuntimeExports.jsx(SettingsIcon,{}),content:SettingsPage},about:{id:"about",name:"About",description:"",color:"grey",icon:jsxRuntimeExports.jsx(AboutIcon,{}),content:AboutPage}};function _extends(){return _extends=Object.assign||function(_e){for(var lt=1;lt=0)&&(Rt[Pt]=_e[Pt]);return Rt}var EXCLUDED_NAMES=["PropTypes"],getSlotProps=function _e(lt,Rt){return reactExports.Children.toArray(lt).reduce(function(At,Pt){if(reactExports.isValidElement(Pt)){var Dt=Pt.type.displayName;Rt!=null&&Rt.includes(Dt)&&(At[Dt]=Pt.props)}return At},{})},getCleanChildren=function _e(lt,Rt){var At=reactExports.Children.toArray(lt).filter(function(Pt){if(reactExports.isValidElement(Pt)){var Dt=Pt.type.displayName;return!(Rt!=null&&Rt.includes(Dt))}return!0});return At.length>0?At:void 0},isComponentName=function _e(lt){return typeof lt=="string"&&!EXCLUDED_NAMES.includes(lt)&<.match(/^[A-Z0-9]/)},createResultComponent=function _e(lt){var Rt=reactExports.memo(function(At){var Pt=At.children,Dt=At.propagateSlotProps,Lt=At.slotKeys,Bt=Lt===void 0?[]:Lt,Nt=_objectWithoutPropertiesLoose(At,["children","propagateSlotProps","slotKeys"]),jt=reactExports.useMemo(function(){return getSlotProps(Pt,Bt)},[Bt,Pt]),Ut=reactExports.useMemo(function(){return getCleanChildren(Pt,Bt)},[Bt,Pt]),Gt=reactExports.useMemo(function(){return _extends({},Nt,{slotProps:_extends({},Dt,jt)})},[Nt,jt,Dt]);return reactExports.createElement(lt,Gt,Ut)});return Rt},withSlots=function _e(lt){var Rt=reactExports.memo(createResultComponent(lt));Rt.displayName="WithSlots("+(lt.displayName||lt.name)+")";var At=new Proxy(Rt,{get:function(Dt,Lt,Bt){var Nt;if(Lt in Dt||typeof Lt=="symbol"||!isComponentName(Lt))return Reflect.get(Dt,Lt,Bt);var jt=((Nt=Reflect.get(Dt,"defaultProps"))==null?void 0:Nt.slotKeys)||[],Ut=Reflect.get(Dt,Lt);if(!Ut){var Gt=function(){return null};Gt.displayName=Lt,Reflect.set(Dt,Lt,Gt)}return Reflect.set(Dt,"defaultProps",_extends({},Dt.defaultProps,{slotKeys:[].concat(jt,[Lt])})),Reflect.get(Dt,Lt,Bt)}});return At};const divider=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1,height:_e=>_e.spacing(3),alignSelf:"auto"}}),Page=withSlots(({slotProps:_e,onChange:lt,stack:Rt})=>{var Pt,Dt,Lt,Bt;const At=useAcrylic();return jsxRuntimeExports.jsxs(Flex,{vertical:!0,children:[jsxRuntimeExports.jsx(Flex,{sx:{position:"absolute",top:0,left:0,width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{sx:{width:"100%",height:"100%",bgcolor:"background.paper"},children:(Pt=_e.Content)==null?void 0:Pt.children})}),jsxRuntimeExports.jsxs(Flex,{sx:{height:Nt=>Nt.spacing(6)},children:[jsxRuntimeExports.jsx(Flex,{sx:{p:0,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,...At},children:jsxRuntimeExports.jsx(Scroll,{x:!0,children:jsxRuntimeExports.jsxs(Flex,{sx:{width:"max-content",height:Nt=>Nt.spacing(6),alignItems:"center",p:1},children:[(Dt=_e.Handle)==null?void 0:Dt.children,jsxRuntimeExports.jsx(FeaturePicker,{label:"Page",onChange:Nt=>lt==null?void 0:lt({...Rt,type:Nt}),value:Rt==null?void 0:Rt.type,items:lodashExports$1.values(pages),itemOrientation:"vertical"}),((Lt=_e.Options)==null?void 0:Lt.children)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[divider,_e.Options.children]})]})})}),jsxRuntimeExports.jsx(Space,{sx:{mx:"auto"}}),(Bt=_e.Extras)==null?void 0:Bt.children]})]})});function FullscreenProgress(){const[_e]=useBusy(),lt=useAcrylic(),Rt=lodashExports$1.values(_e);return jsxRuntimeExports.jsx(Backdrop$1,{sx:{...lt,zIndex:At=>At.zIndex.tooltip+1,WebkitAppRegion:"drag"},open:!!Rt.length,children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",spacing:4,children:[jsxRuntimeExports.jsx(CircularProgress$1,{}),Rt.map((At,Pt)=>jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"textSecondary",children:At},Pt))]})})}var FileDrop$1={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var _e=function(lt,Rt){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(At,Pt){At.__proto__=Pt}||function(At,Pt){for(var Dt in Pt)Pt.hasOwnProperty(Dt)&&(At[Dt]=Pt[Dt])},_e(lt,Rt)};return function(lt,Rt){_e(lt,Rt);function At(){this.constructor=lt}lt.prototype=Rt===null?Object.create(Rt):(At.prototype=Rt.prototype,new At)}}(),__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(FileDrop$1,"__esModule",{value:!0});var prop_types_1=__importDefault(propTypesExports),react_1=__importDefault(reactExports),FileDrop=function(_e){__extends(lt,_e);function lt(Rt){var At=_e.call(this,Rt)||this;return At.resetDragging=function(){At.frameDragCounter=0,At.setState({draggingOverFrame:!1,draggingOverTarget:!1})},At.handleWindowDragOverOrDrop=function(Pt){Pt.preventDefault()},At.handleFrameDrag=function(Pt){if(lt.eventHasFiles(Pt)){if(At.frameDragCounter+=Pt.type==="dragenter"?1:-1,At.frameDragCounter===1){At.setState({draggingOverFrame:!0}),At.props.onFrameDragEnter&&At.props.onFrameDragEnter(Pt);return}if(At.frameDragCounter===0){At.setState({draggingOverFrame:!1}),At.props.onFrameDragLeave&&At.props.onFrameDragLeave(Pt);return}}},At.handleFrameDrop=function(Pt){At.state.draggingOverTarget||(At.resetDragging(),At.props.onFrameDrop&&At.props.onFrameDrop(Pt))},At.handleDragOver=function(Pt){lt.eventHasFiles(Pt)&&(At.setState({draggingOverTarget:!0}),!lt.isIE()&&At.props.dropEffect&&(Pt.dataTransfer.dropEffect=At.props.dropEffect),At.props.onDragOver&&At.props.onDragOver(Pt))},At.handleDragLeave=function(Pt){At.setState({draggingOverTarget:!1}),At.props.onDragLeave&&At.props.onDragLeave(Pt)},At.handleDrop=function(Pt){if(At.props.onDrop&<.eventHasFiles(Pt)){var Dt=Pt.dataTransfer?Pt.dataTransfer.files:null;At.props.onDrop(Dt,Pt)}At.resetDragging()},At.handleTargetClick=function(Pt){At.props.onTargetClick&&At.props.onTargetClick(Pt),At.resetDragging()},At.stopFrameListeners=function(Pt){Pt&&(Pt.removeEventListener("dragenter",At.handleFrameDrag),Pt.removeEventListener("dragleave",At.handleFrameDrag),Pt.removeEventListener("drop",At.handleFrameDrop))},At.startFrameListeners=function(Pt){Pt&&(Pt.addEventListener("dragenter",At.handleFrameDrag),Pt.addEventListener("dragleave",At.handleFrameDrag),Pt.addEventListener("drop",At.handleFrameDrop))},At.frameDragCounter=0,At.state={draggingOverFrame:!1,draggingOverTarget:!1},At}return lt.prototype.componentDidMount=function(){this.startFrameListeners(this.props.frame),this.resetDragging(),window.addEventListener("dragover",this.handleWindowDragOverOrDrop),window.addEventListener("drop",this.handleWindowDragOverOrDrop)},lt.prototype.componentDidUpdate=function(Rt){Rt.frame!==this.props.frame&&(this.resetDragging(),this.stopFrameListeners(Rt.frame),this.startFrameListeners(this.props.frame))},lt.prototype.componentWillUnmount=function(){this.stopFrameListeners(this.props.frame),window.removeEventListener("dragover",this.handleWindowDragOverOrDrop),window.removeEventListener("drop",this.handleWindowDragOverOrDrop)},lt.prototype.render=function(){var Rt=this.props,At=Rt.children,Pt=Rt.className,Dt=Rt.targetClassName,Lt=Rt.draggingOverFrameClassName,Bt=Rt.draggingOverTargetClassName,Nt=this.state,jt=Nt.draggingOverTarget,Ut=Nt.draggingOverFrame,Gt=Dt;return Ut&&(Gt+=" "+Lt),jt&&(Gt+=" "+Bt),react_1.default.createElement("div",{className:Pt,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},react_1.default.createElement("div",{className:Gt,onClick:this.handleTargetClick},At))},lt.isIE=function(){return typeof window<"u"&&(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>0)},lt.eventHasFiles=function(Rt){var At=!1;if(Rt.dataTransfer){var Pt=Rt.dataTransfer.types;for(var Dt in Pt)if(Pt[Dt]==="Files"){At=!0;break}}return At},lt.propTypes={className:prop_types_1.default.string,targetClassName:prop_types_1.default.string,draggingOverFrameClassName:prop_types_1.default.string,draggingOverTargetClassName:prop_types_1.default.string,onDragOver:prop_types_1.default.func,onDragLeave:prop_types_1.default.func,onDrop:prop_types_1.default.func,onTargetClick:prop_types_1.default.func,dropEffect:prop_types_1.default.oneOf(["copy","move","link","none"]),frame:function(Rt,At,Pt){var Dt=Rt[At];if(Dt==null)return new Error("Warning: Required prop `"+At+"` was not specified in `"+Pt+"`");if(Dt!==document&&!(Dt instanceof HTMLElement))return new Error("Warning: Prop `"+At+"` must be one of the following: document, HTMLElement!")},onFrameDragEnter:prop_types_1.default.func,onFrameDragLeave:prop_types_1.default.func,onFrameDrop:prop_types_1.default.func},lt.defaultProps={dropEffect:"copy",frame:typeof window>"u"?void 0:window.document,className:"file-drop",targetClassName:"file-drop-target",draggingOverFrameClassName:"file-drop-dragging-over-frame",draggingOverTargetClassName:"file-drop-dragging-over-target"},lt}(react_1.default.PureComponent),FileDrop_2=FileDrop$1.FileDrop=FileDrop;function FileDropZone(){const _e=useAcrylic(),{load:lt}=useWorkspace(),[Rt,At]=reactExports.useState(0),[,Pt]=useLayers(),Dt=useBusyState("file-drop-import"),Lt=useSnackbar();async function Bt(Nt){let jt=0;for(const[Ut,Gt]of Nt.map((...qt)=>qt))for(const[qt,{claimImportedFile:Xt}]of lodashExports$1.entries(layerHandlers)){const Kt=await(Xt==null?void 0:Xt(Ut));if(Kt!=null&&Kt.claimed){await Dt(async()=>{const Zt=await Kt.layer(Lt);Pt(producify(Qt=>Qt.layers.push({key:nanoid$1(),source:{type:qt,...Zt}})))},`${Gt+1} of ${Nt.length}: Importing ${qt} (${formatByte(Ut.size)})`),jt+=1;continue}}!jt&&await lt(lodashExports$1.head(Nt))||Lt(`Couldn't open ${Nt.length} of ${pluralize("file",Nt.length,!0)}`)}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(FileDrop_2,{onFrameDragLeave:()=>At(0),onFrameDragEnter:Nt=>{var jt;return At(((jt=Nt==null?void 0:Nt.dataTransfer)==null?void 0:jt.items.length)??0)},onFrameDrop:()=>At(0),onDragLeave:()=>At(0),onDrop:Nt=>Nt&&Bt(Array.from(Nt)),children:jsxRuntimeExports.jsx(Backdrop$1,{sx:{..._e,zIndex:Nt=>Nt.zIndex.tooltip+1},open:!!Rt,children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",spacing:4,children:[jsxRuntimeExports.jsx(WorkspacesOutlined,{}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Rt?`Import ${pluralize("item",Rt,!0)}`:""})]})})})})}function wait(_e){return new Promise(lt=>lodashExports$1.delay(lt,_e))}async function timed(_e,lt=2500){const Rt=lodashExports$1.now();return{result:await Promise.any([_e(),wait(lt)]),delta:lodashExports$1.now()-Rt}}const FullscreenPage=withSlots(({slotProps:_e,showOnStartUpChecked:lt,onShowOnStartUpCheckedChange:Rt})=>{var Pt,Dt,Lt,Bt;const At=useSmallDisplay();return jsxRuntimeExports.jsxs(Box$1,{sx:{height:"100%"},children:[!!((Pt=_e.Options)!=null&&Pt.children)&&jsxRuntimeExports.jsxs(Flex,{sx:{height:Nt=>Nt.spacing(6)},children:[jsxRuntimeExports.jsxs(Flex,{sx:{p:0,zIndex:1,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,background:Nt=>Nt.palette.background.paper},children:[jsxRuntimeExports.jsx(Scroll,{x:!0,children:jsxRuntimeExports.jsx(Flex,{sx:{width:"max-content",height:Nt=>Nt.spacing(6),alignItems:"center",p:1},children:((Dt=_e.Options)==null?void 0:Dt.children)&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e.Options.children})})}),jsxRuntimeExports.jsx(FormControlLabel$1,{label:"Show on start-up",labelPlacement:"start",sx:{ml:"auto",mr:-5,minWidth:"fit-content"},control:jsxRuntimeExports.jsx(Checkbox$1,{defaultChecked:lt,onChange:(Nt,jt)=>Rt==null?void 0:Rt(jt)})})]}),jsxRuntimeExports.jsx(Space,{sx:{mx:"auto"}}),(Lt=_e.Extras)==null?void 0:Lt.children]}),jsxRuntimeExports.jsx(Box$1,{sx:{bgcolor:"background.paper",mt:-6,height:"100%"},children:jsxRuntimeExports.jsx(Scroll,{y:!0,style:{height:At?"100%":"70vh"},children:(Bt=_e.Content)==null?void 0:Bt.children})})]})});function FullscreenModalHost(){const[{"behaviour/showOnStart":_e},lt]=useSettings(),[{fullscreenModal:Rt},At]=useUIState(),[Pt,Dt]=reactExports.useState(!1);async function Lt(){Dt(!0),await wait(300),At(()=>({fullscreenModal:void 0})),Dt(!1)}const Bt=Rt?pages[Rt]:void 0,Nt=reactExports.useMemo(()=>{if(Bt){const jt=Bt.content,Ut=withSlots(({slotProps:Gt,...qt})=>{var Xt,Kt;return jsxRuntimeExports.jsxs(FullscreenPage,{...qt,onShowOnStartUpCheckedChange:Zt=>lt(()=>({"behaviour/showOnStart":Zt?Rt:void 0})),showOnStartUpChecked:_e===Rt,children:[jsxRuntimeExports.jsx(FullscreenPage.Content,{children:(Xt=Gt.Content)==null?void 0:Xt.children}),jsxRuntimeExports.jsx(FullscreenPage.Options,{children:(Kt=Gt.Options)==null?void 0:Kt.children})]})});return jsxRuntimeExports.jsx(jt,{template:Ut})}},[Rt,Bt]);return!!Bt&&jsxRuntimeExports.jsxs(Modal,{open:!Pt,onClose:Lt,width:"70vw",children:[jsxRuntimeExports.jsx(ModalAppBar,{onClose:Lt,children:jsxRuntimeExports.jsx(Typography$1,{variant:"h6",children:Bt.name})}),Nt]})}function Inspector(_e){const lt=useAnyLoading(),[{view:Rt},At]=useView(),[,Pt]=useUIState();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Flex,{..._e,children:jsxRuntimeExports.jsx(ViewTree,{onPopOut:Dt=>Pt(()=>{var Lt;return{fullscreenModal:(Lt=Dt.content)==null?void 0:Lt.type}}),canPopOut:Dt=>{var Lt;return!!((Lt=pages[Dt.content.type])!=null&&Lt.allowFullscreen)},root:Rt,onChange:Dt=>At(()=>({view:Dt})),renderLeaf:({content:Dt})=>{var Lt;return jsxRuntimeExports.jsx(Box$1,{sx:{width:"100%",height:"100%"},children:reactExports.createElement((Lt=pages[(Dt==null?void 0:Dt.type)??""])==null?void 0:Lt.content,{template:Page})})}})}),jsxRuntimeExports.jsx(Fade$1,{in:lt,children:jsxRuntimeExports.jsx(LinearProgress$1,{variant:"indeterminate",sx:{position:"absolute",bottom:0,width:"100%",zIndex:1}})}),jsxRuntimeExports.jsx(FullscreenModalHost,{}),jsxRuntimeExports.jsx(FullscreenProgress,{}),jsxRuntimeExports.jsx(FileDropZone,{})]})}const getForegroundColor=_e=>getContrastRatio(_e,"#ffffff")>getContrastRatio(_e,"#000000")?"#ffffff":"#000000";function useTitleBar(_e){reactExports.useEffect(()=>{lodashExports$1.defer(()=>document.querySelector('meta[name="theme-color"]').setAttribute("content",_e)),document.title=name$2,"electron"in window&&window.electron.invoke("title-bar","#00000000",getForegroundColor(_e))},[_e])}function ConnectionsService(){const _e=useSnackbar(),[{remote:lt}]=useSettings(),[,Rt]=useConnections(),At=useLoadingState("connections");return reactExports.useEffect(()=>{let Pt=!1,Dt=[];return At(async()=>{if(lt!=null&<.length){for(const{transport:Lt,url:Bt,disabled:Nt}of lt){if(Nt!==!0){_e(`Connecting to ${Bt}...`);const jt=new(getTransport(Lt))({url:Bt});await jt.connect();const{result:Ut,delta:Gt}=await timed(()=>jt.call("about"));Ut?(_e(`Connected to ${Ut.name}`),Dt=[...Dt,{...Ut,url:Bt,ping:Gt,transport:()=>jt}]):await jt.disconnect()}Pt||Rt(()=>Dt)}Pt||_e(`Connected to ${Dt.length} of ${lt.length} solvers`)}}),()=>{Pt=!0,Dt.map(Lt=>Lt.transport().disconnect())}},[lt,Rt,_e,At]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function withSource(_e){return lt=>({...lt,source:_e})}const getFeatures=async({transport:_e,url:lt})=>lodashExports$1.chain(await map$6(["algorithms","formats","maps","traces"],async Rt=>{const{result:At}=await timed(()=>_e().call(`features/${Rt}`),1e3);return{prop:Rt,result:lodashExports$1.map(At,withSource(lt))}})).keyBy("prop").mapValues("result").value();function FeaturesService(){const[_e]=useConnections(),[,lt]=useFeatures(),[{connections:Rt}]=useLoading();return useAsyncAbortable(async At=>{if(!Rt){const Pt={default:{algorithms:[],formats:lodashExports$1.keys(mapParsers).map(Lt=>({id:Lt,source:"internal"})),traces:[],maps:[]}},Dt=()=>{if(!At.aborted){const Lt=lodashExports$1.chain(Pt).values().reduce((Bt,Nt)=>lodashExports$1.mergeWith({},Bt,Nt,(jt,Ut)=>lodashExports$1.isArray(jt)?lodashExports$1.uniqBy([...jt,...Ut],"id"):void 0)).value();lt(()=>Lt)}};for(const Lt of _e){const Bt=async()=>{Pt[Lt.url]=await getFeatures(Lt),Dt()};Lt.transport().on("features/changed",Bt),Bt()}}},[_e,getFeatures,lt,Rt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function useLayerServices(){const[{layers:_e},lt]=useLayers();return reactExports.useMemo(()=>lodashExports$1.map(_e,Rt=>{const At=getLayerHandler(Rt).service;if(At)return reactExports.createElement(At,{key:Rt.key,value:Rt,onChange:Pt=>lt(({layers:Dt})=>({layers:lodashExports$1.map(Dt,Lt=>Lt.key===Rt.key?Pt(Lt):Lt)}))})}),[_e,lt])}function LayerService(){const _e=useLayerServices();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e})}function SliceProvider({slices:_e,children:lt,services:Rt}){return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:lodashExports$1.reduce(lodashExports$1.map(_e,At=>reactExports.createElement(At)),(At,Pt)=>reactExports.cloneElement(Pt,{},At),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lt,lodashExports$1.map(Rt,(At,Pt)=>reactExports.createElement(At,{key:Pt}))]}))})}var dist={},ConsoleCapture$1={},logs={};Object.defineProperty(logs,"__esModule",{value:!0});logs.overridableFunctionNames=void 0;logs.overridableFunctionNames=["log","warn","info","debug","error"];Object.defineProperty(ConsoleCapture$1,"__esModule",{value:!0});ConsoleCapture$1.ConsoleCapture=void 0;var logs_1=logs;console.original={};var ConsoleCapture=function(){function _e(){_e.captures=[]}return _e.saveLog=function(lt,Rt){var At=Rt.map(function(Pt){return typeof Pt=="object"?Pt instanceof Error?JSON.stringify(Pt,Object.getOwnPropertyNames(Pt)):JSON.stringify(Pt):Pt});_e.captures.push({function:lt,args:At,ts:Date.now()})},_e.setNewFunctions=function(lt){lt===void 0&&(lt=!1);var Rt={apply:function(At,Pt,Dt){if(_e.saveLog(At.name,Dt),At.bind(Pt),lt)return At.apply(void 0,Dt)}};logs_1.overridableFunctionNames.forEach(function(At){_e.consoleOverriden||(console.original[At]=console[At]),console[At]=new Proxy(console[At],Rt)}),_e.consoleOverriden=!0},_e.resetToOriginalFunctions=function(){_e.consoleOverriden&&logs_1.overridableFunctionNames.forEach(function(lt){console[lt]=console.original[lt]}),_e.consoleOverriden=!1},_e.prototype.start=function(lt){lt===void 0&&(lt=!1),_e.captures=[],_e.setNewFunctions(lt)},_e.prototype.stop=function(){_e.resetToOriginalFunctions()},_e.prototype.flush=function(){_e.captures=[]},_e.prototype.getCaptures=function(){return _e.captures},_e.makeOriginalLog=function(lt){if(_e.resetToOriginalFunctions(),logs_1.overridableFunctionNames.includes(lt.function)){var Rt=lt.args.map(function(At){if(typeof At=="string")try{var Pt=JSON.parse(At);return Pt.stack?Pt.stack:Pt}catch{return At}return At});console[lt.function].apply(console,Rt)}else throw Error("Invalid Log type")},_e.consoleOverriden=!1,_e}();ConsoleCapture$1.ConsoleCapture=ConsoleCapture;Object.defineProperty(dist,"__esModule",{value:!0});var ConsoleCapture_1=ConsoleCapture$1;dist.default=ConsoleCapture_1.ConsoleCapture;function LogCaptureService(){return useSnackbar(),reactExports.useEffect(()=>{},[]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function SettingsService(){const[{"behaviour/showOnStart":_e},,lt]=useSettings(),[,Rt]=useUIState();return reactExports.useEffect(()=>{_e&<&&Rt(()=>({fullscreenModal:_e}))},[lt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}const services=[ConnectionsService,FeaturesService,RendererService,LayerService,LogCaptureService,SettingsService];function App(){const lt=useTheme().palette.background.default;return useTitleBar(lt),jsxRuntimeExports.jsxs(Flex,{vertical:!0,sx:{bgcolor:lt,color:"text.primary"},children:[jsxRuntimeExports.jsx(TitleBar,{}),jsxRuntimeExports.jsx(Inspector,{flex:1})]})}function ThemedApp(){const[{"appearance/theme":_e="light","appearance/accentColor":lt="teal"}]=useSettings(),Rt=reactExports.useMemo(()=>makeTheme(_e,lt),[_e,lt]);return jsxRuntimeExports.jsx(ThemeProvider,{theme:Rt,children:jsxRuntimeExports.jsx(SnackbarProvider,{children:jsxRuntimeExports.jsx(SliceProvider,{services,children:jsxRuntimeExports.jsx(App,{})})})})}const index="",overlayscrollbars="";var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;const root=createRoot(document.getElementById("root")),slices=[BusyProvider,SettingsProvider,ConnectionsProvider,FeaturesProvider,UIStateProvider,LoadingProvider,RendererProvider,LogProvider,ViewProvider,LayersProvider,ScreenshotsProvider];root.render(jsxRuntimeExports.jsx(CssBaseline,{children:jsxRuntimeExports.jsx(SliceProvider,{slices,children:jsxRuntimeExports.jsx(ThemedApp,{})})})); + }`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(_e){this._stylesheet!==_e&&(this._stylesheet=_e,this.styleID++)}normalizeColor(_e){return Array.isArray(_e)&&(_e=rgb2hex(_e)),typeof _e=="number"?hex2string(_e):_e}dropShadowToCSS(){let _e=this.normalizeColor(this.dropShadowColor);const lt=this.dropShadowAlpha,Rt=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),At=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);_e.startsWith("#")&<<1&&(_e+=(lt*255|0).toString(16).padStart(2,"0"));const Pt=`${Rt}px ${At}px`;return this.dropShadowBlur>0?`text-shadow: ${Pt} ${this.dropShadowBlur}px ${_e}`:`text-shadow: ${Pt} ${_e}`}reset(){Object.assign(this,_HTMLTextStyle.defaultOptions)}onBeforeDraw(){const{fontsDirty:_e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&_e?new Promise(lt=>setTimeout(lt,100)):Promise.resolve()}get isSafari(){const{userAgent:_e}=settings.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(_e)}set fillGradientStops(_e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(_e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(_e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(_e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(_e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(_e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(_e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};let HTMLTextStyle=_HTMLTextStyle;HTMLTextStyle.availableFonts={};HTMLTextStyle.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};const _HTMLText=class extends Sprite{constructor(_e="",lt={}){super(Texture.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this._loading=!1,this.localStyleID=-1,this.dirty=!1,this.ownsStyle=!1;const Rt=new Image,At=Texture.from(Rt,{scaleMode:settings.SCALE_MODE,resourceOptions:{autoLoad:!1}});At.orig=new Rectangle,At.trim=new Rectangle,this.texture=At;const Pt="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml",Lt=document.createElementNS(Pt,"svg"),Bt=document.createElementNS(Pt,"foreignObject"),Nt=document.createElementNS(Dt,"div"),jt=document.createElementNS(Dt,"style");Bt.setAttribute("width","10000"),Bt.setAttribute("height","10000"),Bt.style.overflow="hidden",Lt.appendChild(Bt),this.maxWidth=_HTMLText.defaultMaxWidth,this.maxHeight=_HTMLText.defaultMaxHeight,this._domElement=Nt,this._styleElement=jt,this._svgRoot=Lt,this._foreignObject=Bt,this._foreignObject.appendChild(jt),this._foreignObject.appendChild(Nt),this._image=Rt,this._loadImage=new Image,this._autoResolution=_HTMLText.defaultAutoResolution,this._resolution=_HTMLText.defaultResolution??settings.RESOLUTION,this.text=_e,this.style=lt}measureText(_e){var Bt,Nt;const{text:lt,style:Rt,resolution:At}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},_e);Object.assign(this._domElement,{innerHTML:lt,style:Rt.toCSS(At)}),this._styleElement.textContent=Rt.toGlobalCSS(),document.body.appendChild(this._svgRoot);const Pt=this._domElement.getBoundingClientRect();this._svgRoot.remove();const Dt=Math.min(this.maxWidth,Math.ceil(Pt.width)),Lt=Math.min(this.maxHeight,Math.ceil(Pt.height));return this._svgRoot.setAttribute("width",Dt.toString()),this._svgRoot.setAttribute("height",Lt.toString()),lt!==this._text&&(this._domElement.innerHTML=this._text),Rt!==this._style&&(Object.assign(this._domElement,{style:(Bt=this._style)==null?void 0:Bt.toCSS(At)}),this._styleElement.textContent=(Nt=this._style)==null?void 0:Nt.toGlobalCSS()),{width:Dt+Rt.padding*2,height:Lt+Rt.padding*2}}async updateText(_e=!0){const{style:lt,_image:Rt,_loadImage:At}=this;if(this.localStyleID!==lt.styleID&&(this.dirty=!0,this.localStyleID=lt.styleID),!this.dirty&&_e)return;const{width:Pt,height:Dt}=this.measureText();Rt.width=At.width=Math.ceil(Math.max(1,Pt)),Rt.height=At.height=Math.ceil(Math.max(1,Dt)),this._loading||(this._loading=!0,await new Promise(Lt=>{At.onload=async()=>{await lt.onBeforeDraw(),this._loading=!1,Rt.src=At.src,At.onload=null,At.src="",this.updateTexture(),Lt()};const Bt=new XMLSerializer().serializeToString(this._svgRoot);At.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(Bt)}`}))}get source(){return this._image}updateTexture(){const{style:_e,texture:lt,_image:Rt,resolution:At}=this,{padding:Pt}=_e,{baseTexture:Dt}=lt;lt.trim.width=lt._frame.width=Rt.width/At,lt.trim.height=lt._frame.height=Rt.height/At,lt.trim.x=-Pt,lt.trim.y=-Pt,lt.orig.width=lt._frame.width-Pt*2,lt.orig.height=lt._frame.height-Pt*2,this._onTextureUpdate(),Dt.setRealSize(Rt.width,Rt.height,At),this.dirty=!1}_render(_e){this._autoResolution&&this._resolution!==_e.resolution&&(this._resolution=_e.resolution,this.dirty=!0),this.updateText(!0),super._render(_e)}_renderCanvas(_e){this._autoResolution&&this._resolution!==_e.resolution&&(this._resolution=_e.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(_e)}getLocalBounds(_e){return this.updateText(!0),super.getLocalBounds(_e)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(_e){var Rt,At,Pt,Dt,Lt;typeof _e=="boolean"&&(_e={children:_e}),_e=Object.assign({},_HTMLText.defaultDestroyOptions,_e),super.destroy(_e);const lt=null;this.ownsStyle&&((Rt=this._style)==null||Rt.cleanFonts()),this._style=lt,(At=this._svgRoot)==null||At.remove(),this._svgRoot=lt,(Pt=this._domElement)==null||Pt.remove(),this._domElement=lt,(Dt=this._foreignObject)==null||Dt.remove(),this._foreignObject=lt,(Lt=this._styleElement)==null||Lt.remove(),this._styleElement=lt,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=lt,this._image.src="",this._image=lt}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(_e){this.updateText(!0);const lt=sign$2(this.scale.x)||1;this.scale.x=lt*_e/this._image.width/this.resolution,this._width=_e}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(_e){this.updateText(!0);const lt=sign$2(this.scale.y)||1;this.scale.y=lt*_e/this._image.height/this.resolution,this._height=_e}get style(){return this._style}set style(_e){this._style!==_e&&(_e=_e||{},_e instanceof HTMLTextStyle?(this.ownsStyle=!1,this._style=_e):_e instanceof TextStyle?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=HTMLTextStyle.from(_e)):(this.ownsStyle=!0,this._style=new HTMLTextStyle(_e)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(_e){_e=String(_e===""||_e===null||_e===void 0?" ":_e),_e=this.sanitiseText(_e),this._text!==_e&&(this._text=_e,this.dirty=!0)}get resolution(){return this._resolution}set resolution(_e){this._autoResolution=!1,this._resolution!==_e&&(this._resolution=_e,this.dirty=!0)}sanitiseText(_e){return _e.replace(/
/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};let HTMLText=_HTMLText;HTMLText.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0};HTMLText.defaultMaxWidth=2024;HTMLText.defaultMaxHeight=2024;HTMLText.defaultAutoResolution=!0;function makeRenderer(_e,lt){return{constructor:_e,meta:lt}}function quickselect(_e,lt,Rt,At,Pt){quickselectStep(_e,lt,Rt||0,At||_e.length-1,Pt||defaultCompare)}function quickselectStep(_e,lt,Rt,At,Pt){for(;At>Rt;){if(At-Rt>600){var Dt=At-Rt+1,Lt=lt-Rt+1,Bt=Math.log(Dt),Nt=.5*Math.exp(2*Bt/3),jt=.5*Math.sqrt(Bt*Nt*(Dt-Nt)/Dt)*(Lt-Dt/2<0?-1:1),Ut=Math.max(Rt,Math.floor(lt-Lt*Nt/Dt+jt)),Gt=Math.min(At,Math.floor(lt+(Dt-Lt)*Nt/Dt+jt));quickselectStep(_e,lt,Ut,Gt,Pt)}var qt=_e[lt],Xt=Rt,Kt=At;for(swap(_e,Rt,lt),Pt(_e[At],qt)>0&&swap(_e,Rt,At);Xt0;)Kt--}Pt(_e[Rt],qt)===0?swap(_e,Rt,Kt):(Kt++,swap(_e,Kt,At)),Kt<=lt&&(Rt=Kt+1),lt<=Kt&&(At=Kt-1)}}function swap(_e,lt,Rt){var At=_e[lt];_e[lt]=_e[Rt],_e[Rt]=At}function defaultCompare(_e,lt){return _elt?1:0}class RBush{constructor(lt=9){this._maxEntries=Math.max(4,lt),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(lt){let Rt=this.data;const At=[];if(!intersects(lt,Rt))return At;const Pt=this.toBBox,Dt=[];for(;Rt;){for(let Lt=0;Lt=0&&Dt[Rt].children.length>this._maxEntries;)this._split(Dt,Rt),Rt--;this._adjustParentBBoxes(Pt,Dt,Rt)}_split(lt,Rt){const At=lt[Rt],Pt=At.children.length,Dt=this._minEntries;this._chooseSplitAxis(At,Dt,Pt);const Lt=this._chooseSplitIndex(At,Dt,Pt),Bt=createNode(At.children.splice(Lt,At.children.length-Lt));Bt.height=At.height,Bt.leaf=At.leaf,calcBBox(At,this.toBBox),calcBBox(Bt,this.toBBox),Rt?lt[Rt-1].children.push(Bt):this._splitRoot(At,Bt)}_splitRoot(lt,Rt){this.data=createNode([lt,Rt]),this.data.height=lt.height+1,this.data.leaf=!1,calcBBox(this.data,this.toBBox)}_chooseSplitIndex(lt,Rt,At){let Pt,Dt=1/0,Lt=1/0;for(let Bt=Rt;Bt<=At-Rt;Bt++){const Nt=distBBox(lt,0,Bt,this.toBBox),jt=distBBox(lt,Bt,At,this.toBBox),Ut=intersectionArea(Nt,jt),Gt=bboxArea(Nt)+bboxArea(jt);Ut=Rt;jt--){const Ut=lt.children[jt];extend(Bt,lt.leaf?Dt(Ut):Ut),Nt+=bboxMargin(Bt)}return Nt}_adjustParentBBoxes(lt,Rt,At){for(let Pt=At;Pt>=0;Pt--)extend(Rt[Pt],lt)}_condense(lt){for(let Rt=lt.length-1,At;Rt>=0;Rt--)lt[Rt].children.length===0?Rt>0?(At=lt[Rt-1].children,At.splice(At.indexOf(lt[Rt]),1)):this.clear():calcBBox(lt[Rt],this.toBBox)}}function findItem(_e,lt,Rt){if(!Rt)return lt.indexOf(_e);for(let At=0;At=_e.minX&<.maxY>=_e.minY}function createNode(_e){return{children:_e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function multiSelect(_e,lt,Rt,At,Pt){const Dt=[lt,Rt];for(;Dt.length;){if(Rt=Dt.pop(),lt=Dt.pop(),Rt-lt<=At)continue;const Lt=lt+Math.ceil((Rt-lt)/At/2)*At;quickselect(_e,Lt,lt,Rt,Pt),Dt.push(lt,Lt,Lt,Rt)}}class Bush extends RBush{toBBox(lt){return{minX:lt.left,minY:lt.top,maxX:lt.right,maxY:lt.bottom}}compareMinX(lt,Rt){return lt.left-Rt.left}compareMinY(lt,Rt){return lt.top-Rt.top}}const defaultD2RendererOptions={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:1e3/60,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:1.5,minScale:1,dtMax:1.5,dtMin:1.1}};var dist$1={},__assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(_e){for(var lt,Rt=1,At=arguments.length;Rt0?1:-1}),shim$4}var sign$1=isImplemented$6()?Math.sign:requireShim$4(),sign=sign$1,abs=Math.abs,floor$1=Math.floor,toInteger$1=function(_e){return isNaN(_e)?0:(_e=Number(_e),_e===0||!isFinite(_e)?_e:sign(_e)*floor$1(abs(_e)))},toInteger=toInteger$1,max$3=Math.max,toPosInteger=function(_e){return max$3(0,toInteger(_e))},validCallable=function(_e){if(typeof _e!="function")throw new TypeError(_e+" is not a function");return _e},isValue$3=isValue$5,validValue=function(_e){if(!isValue$3(_e))throw new TypeError("Cannot use null or undefined");return _e},custom={exports:{}},isImplemented$5=function(){var _e=Object.assign,lt;return typeof _e!="function"?!1:(lt={foo:"raz"},_e(lt,{bar:"dwa"},{trzy:"trzy"}),lt.foo+lt.bar+lt.trzy==="razdwatrzy")},isImplemented$4,hasRequiredIsImplemented$3;function requireIsImplemented$3(){return hasRequiredIsImplemented$3||(hasRequiredIsImplemented$3=1,isImplemented$4=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),isImplemented$4}var shim$3,hasRequiredShim$3;function requireShim$3(){if(hasRequiredShim$3)return shim$3;hasRequiredShim$3=1;var _e=isValue$5,lt=Object.keys;return shim$3=function(Rt){return lt(_e(Rt)?Object(Rt):Rt)},shim$3}var keys,hasRequiredKeys;function requireKeys(){return hasRequiredKeys||(hasRequiredKeys=1,keys=requireIsImplemented$3()()?Object.keys:requireShim$3()),keys}var shim$2,hasRequiredShim$2;function requireShim$2(){if(hasRequiredShim$2)return shim$2;hasRequiredShim$2=1;var _e=requireKeys(),lt=validValue,Rt=Math.max;return shim$2=function(At,Pt){var Dt,Lt,Bt=Rt(arguments.length,2),Nt;for(At=Object(lt(At)),Nt=function(jt){try{At[jt]=Pt[jt]}catch(Ut){Dt||(Dt=Ut)}},Lt=1;Lt-1},shim$1}var contains$1=isImplemented$3()?String.prototype.contains:requireShim$1(),isValue=is$4,isPlainFunction=is,assign=assign$1,normalizeOpts=normalizeOptions,contains=contains$1,d$1=d$2.exports=function(_e,lt){var Rt,At,Pt,Dt,Lt;return arguments.length<2||typeof _e!="string"?(Dt=lt,lt=_e,_e=null):Dt=arguments[2],isValue(_e)?(Rt=contains.call(_e,"c"),At=contains.call(_e,"e"),Pt=contains.call(_e,"w")):(Rt=Pt=!0,At=!1),Lt={value:lt,configurable:Rt,enumerable:At,writable:Pt},Dt?assign(normalizeOpts(Dt),Lt):Lt};d$1.gs=function(_e,lt,Rt){var At,Pt,Dt,Lt;return typeof _e!="string"?(Dt=Rt,Rt=lt,lt=_e,_e=null):Dt=arguments[3],isValue(lt)?isPlainFunction(lt)?isValue(Rt)?isPlainFunction(Rt)||(Dt=Rt,Rt=void 0):Rt=void 0:(Dt=lt,lt=Rt=void 0):lt=void 0,isValue(_e)?(At=contains.call(_e,"c"),Pt=contains.call(_e,"e")):(At=!0,Pt=!1),Lt={get:lt,set:Rt,configurable:At,enumerable:Pt},Dt?assign(normalizeOpts(Dt),Lt):Lt};var dExports=d$2.exports,eventEmitter={exports:{}};(function(_e,lt){var Rt=dExports,At=validCallable,Pt=Function.prototype.apply,Dt=Function.prototype.call,Lt=Object.create,Bt=Object.defineProperty,Nt=Object.defineProperties,jt=Object.prototype.hasOwnProperty,Ut={configurable:!0,enumerable:!1,writable:!0},Gt,qt,Xt,Kt,Zt,Qt,Jt;Gt=function(en,tn){var an;return At(tn),jt.call(this,"__ee__")?an=this.__ee__:(an=Ut.value=Lt(null),Bt(this,"__ee__",Ut),Ut.value=null),an[en]?typeof an[en]=="object"?an[en].push(tn):an[en]=[an[en],tn]:an[en]=tn,this},qt=function(en,tn){var an,cn;return At(tn),cn=this,Gt.call(this,en,an=function(){Xt.call(cn,en,an),Pt.call(tn,this,arguments)}),an.__eeOnceListener__=tn,this},Xt=function(en,tn){var an,cn,un,rn;if(At(tn),!jt.call(this,"__ee__"))return this;if(an=this.__ee__,!an[en])return this;if(cn=an[en],typeof cn=="object")for(rn=0;un=cn[rn];++rn)(un===tn||un.__eeOnceListener__===tn)&&(cn.length===2?an[en]=cn[rn?0:1]:cn.splice(rn,1));else(cn===tn||cn.__eeOnceListener__===tn)&&delete an[en];return this},Kt=function(en){var tn,an,cn,un,rn;if(jt.call(this,"__ee__")&&(un=this.__ee__[en],!!un))if(typeof un=="object"){for(an=arguments.length,rn=new Array(an-1),tn=1;tn=55296&&an<=56319&&(sn+=qt[++Qt])),sn=Xt?jt.call(Xt,Kt,sn,Jt):sn,Zt?(Ut.value=sn,Gt(en,Jt,Ut)):en[Jt]=sn,++Jt;tn=Jt}}if(tn===void 0)for(tn=At(qt.length),Zt&&(en=new Zt(tn)),Qt=0;Qt=6&&(Rt-=6),G(Rt<1?255*((lt-_e)*Rt+_e):Rt<3?255*lt:Rt<4?255*((lt-_e)*(4-Rt)+_e):255*_e)},X=function(_e,lt,Rt){lt/=100;var At=(Rt/=100)<=.5?Rt*(lt+1):Rt+lt-Rt*lt,Pt=2*Rt-At;return{r:O(Pt,At,(_e/=60)+2),g:O(Pt,At,_e),b:O(Pt,At,_e-2)}},Y=function(_e,lt,Rt,At){return{r:G(255*(1-_e)*(At=1-At)),g:G(255*(1-lt)*At),b:G(255*(1-Rt)*At)}},j=function(_e,lt,Rt){_e/=255,lt/=255,Rt/=255;var At=1-Math.max(_e,lt,Rt),Pt=1-At,Dt=Pt&&(Pt-lt)/Pt,Lt=Pt&&(Pt-Rt)/Pt;return{c:G(100*(Pt&&(Pt-_e)/Pt)),m:G(100*Dt),y:G(100*Lt),k:G(100*At)}},K=function(_e,lt,Rt,At){At===void 0&&(At=1),_e/=255,lt/=255,Rt/=255,At=Math.min(At,1);var Pt=Math.max(_e,lt,Rt),Dt=Math.min(_e,lt,Rt),Lt=Pt-Dt,Bt=0,Nt=0,jt=(Pt+Dt)/2;if(Lt!==0){switch(Pt){case _e:Bt=(lt-Rt)/Lt%6;break;case lt:Bt=(Rt-_e)/Lt+2;break;case Rt:Bt=(_e-lt)/Lt+4}(Bt=G(60*Bt))<0&&(Bt+=360),Nt=Lt/(1-Math.abs(2*jt-1))}return{h:Bt,s:G(100*Nt),l:G(100*jt),a:At}},I=function(_e,lt){if(_e<0&&(_e+=360),_e>360&&(_e-=360),_e===360||_e===0)return _e;var Rt=[[0,120],[120,180],[180,240],[240,360]],At=[[0,60],[60,120],[120,240],[240,360]],Pt=lt?At:Rt,Dt=0,Lt=0,Bt=0,Nt=0;return(lt?Rt:At).find(function(jt,Ut){return _e>=jt[0]&&_e360||_e<0)&&(_e-=360*Math.floor(_e/360)),_e},N=function(_e){return typeof _e=="string"&&(_e=m$1.test(_e)?B(_e)/100:+_e),isNaN(+_e)||_e>1?1:G(_e)},V=function(_e,lt,Rt){return lt.reduce(function(At,Pt){return e(e([],At,!0),[t(t({},_e),{h:Rt===i.ADDITIVE?x(_e.h+Pt):x(I(I(_e.h,!1)+Pt,!0))})],!1)},[t({},_e)])},U=function(_e,lt){return V(_e,[30,-30],lt)},q=function(_e,lt){return V(_e,[180],lt)},$=function(_e,lt){return V(_e,[150,-150],lt)},_=function(_e,lt){return V(_e,[120,-120],lt)},Q=function(_e,lt){return V(_e,[60,-120,180],lt)},z$1=function(_e,lt){return V(_e,[90,-90,180],lt)},J=function(_e){return typeof _e=="string"?function(lt){var Rt;if(Object.keys(r).some(function(At){if(b[At].test(lt))return Rt=At,!0}),!Rt&&~f.indexOf(lt)&&(Rt=r.HEX),!Rt)throw new Error(E);return Rt}(_e):function(lt){var Rt,At=!1,Pt=L(Object.keys(lt));if(p[Pt]&&(Rt=p[Pt]),Rt&&Rt===r.RGB){var Dt=Object.entries(lt).some(function(Bt){return!y.test("".concat(Bt[1]))}),Lt=Object.entries(lt).some(function(Bt){return!(m$1.test("".concat(Bt[1]))||!y.test("".concat(Bt[1]))&&!isNaN(+Bt[1])&&+Bt[1]<=255)});Dt&&Lt&&(At=!0),Dt||(Rt=r.HEX)}if(!Rt||At)throw new Error(v);return Rt}(_e)},W=((c={})[r.HEX]=function(_e){var lt=(~f.indexOf(_e)?o[_e]:_e).match(b.HEX),Rt={r:M(lt[1]||lt[5]),g:M(lt[2]||lt[6]),b:M(lt[3]||lt[7])},At=lt[4]||lt[8];return At!==void 0&&(Rt.a=M(At)/255),Rt},c[r.RGB]=function(_e){var lt=_e.match(b.RGB),Rt=D(lt[1]||lt[5]),At=D(lt[2]||lt[6]),Pt=D(lt[3]||lt[7]),Dt=lt[4]||lt[8],Lt={r:Math.min(Rt,255),g:Math.min(At,255),b:Math.min(Pt,255)};return Dt!==void 0&&(Lt.a=N(Dt)),Lt},c[r.HSL]=function(_e){var lt=_e.match(b.HSL),Rt=x(lt[1]||lt[5]),At=C(lt[2]||lt[6]),Pt=C(lt[3]||lt[7]),Dt=lt[4]||lt[8],Lt=X(Rt,At,Pt);return Dt!==void 0&&(Lt.a=N(Dt)),Lt},c[r.CMYK]=function(_e){var lt=_e.match(b.CMYK),Rt=S(lt[1]||lt[6]),At=S(lt[2]||lt[7]),Pt=S(lt[3]||lt[8]),Dt=S(lt[4]||lt[9]),Lt=lt[5]||lt[10],Bt=Y(Rt,At,Pt,Dt);return Lt!==void 0&&(Bt.a=N(Lt)),Bt},c),Z=((s={})[r.HEX]=function(_e){var lt={r:D("".concat(_e.r)),g:D("".concat(_e.g)),b:D("".concat(_e.b))};return H(_e,"a")&&(lt.a=Math.min(D("".concat(_e.a),!0),1)),lt},s[r.RGB]=function(_e){return this.HEX(_e)},s[r.HSL]=function(_e){var lt=C("".concat(_e.s)),Rt=C("".concat(_e.l)),At=X(x(_e.h),lt,Rt);return H(_e,"a")&&(At.a=N(_e.a)),At},s[r.CMYK]=function(_e){var lt=S("".concat(_e.c)),Rt=S("".concat(_e.m)),At=S("".concat(_e.y)),Pt=S("".concat(_e.k)),Dt=Y(lt,Rt,At,Pt);return H(_e,"a")&&(Dt.a=N(_e.a)),Dt},s),tt=function(_e,lt){return lt===void 0&&(lt=J(_e)),typeof _e=="string"?W[lt](_e):Z[lt](_e)},et=((d={})[r.HEX]=function(_e){return{r:R(_e.r),g:R(_e.g),b:R(_e.b)}},d.HEXA=function(_e){var lt=et.HEX(_e);return lt.a=H(_e,"a")?R(255*_e.a):"0xFF",lt},d[r.RGB]=function(_e,lt){return H(_e,"a")&&delete _e.a,ot(_e,lt)},d.RGBA=function(_e,lt){return _e.a=H(_e,"a")?G(_e.a):1,ot(_e,lt)},d[r.HSL]=function(_e,lt){var Rt=K(_e.r,_e.g,_e.b);return delete Rt.a,at(Rt,lt)},d.HSLA=function(_e,lt){var Rt=et.HSL(_e,lt);return Rt.a=H(_e,"a")?G(_e.a,lt):1,Rt},d[r.CMYK]=function(_e,lt){return ut(j(_e.r,_e.g,_e.b),lt)},d.CMYKA=function(_e,lt){var Rt=et.CMYK(_e,lt);return Rt.a=H(_e,"a")?G(_e.a,lt):1,Rt},d),rt=function(_e,lt,Rt,At){var Pt=J(_e),Dt=typeof _e=="string",Lt=tt(_e,Pt),Bt=typeof _e=="string"&&H(Lt,"a")||typeof _e!="string"&&H(_e,"a"),Nt=K(Lt.r,Lt.g,Lt.b,Lt.a);Bt||delete Nt.a;var jt=Rt?Nt.l/(lt+1):(100-Nt.l)/(lt+1),Ut=Array(lt).fill(null).map(function(Gt,qt){return t(t({},Nt),{l:Nt.l+jt*(qt+1)*(1-2*+Rt)})});switch(Pt){case r.HEX:default:return Ut.map(function(Gt){var qt=X(Gt.h,Gt.s,Gt.l);return Bt&&(qt.a=Gt.a),Dt?Bt?w.HEX(ot(t(t({},qt),{a:G(255*qt.a)}),At)):w.HEX(ot(qt,At)):Bt?et.HEXA(qt):et.HEX(qt)});case r.RGB:return Ut.map(function(Gt){var qt=X(Gt.h,Gt.s,Gt.l);return Bt&&(qt.a=Gt.a),Dt?w.RGB(ot(qt,At)):Bt?et.RGBA(qt,At):et.RGB(qt,At)});case r.HSL:return Ut.map(function(Gt){return Dt?w.HSL(at(Gt,At)):Bt?et.HSLA(t(t({},X(Gt.h,Gt.s,Gt.l)),{a:Gt.a}),At):et.HSL(X(Gt.h,Gt.s,Gt.l),At)})}},nt=((h={buildHarmony:function(_e,lt,Rt,At){var Pt=J(_e),Dt=tt(_e,Pt),Lt=K(Dt.r,Dt.g,Dt.b,Dt.a),Bt=typeof _e=="string"&&H(Dt,"a")||typeof _e!="string"&&H(_e,"a"),Nt=typeof _e=="string";switch(Pt){case r.HEX:default:return Bt?this.HEXA(at(Lt,0),lt,Rt,Nt):this.HEX(at(Lt,0),lt,Rt,Nt);case r.HSL:return Bt?this.HSLA(Lt,lt,Rt,Nt,At):this.HSL(Lt,lt,Rt,Nt,At);case r.RGB:return Bt?this.RGBA(Lt,lt,Rt,Nt,At):this.RGB(Lt,lt,Rt,Nt,At)}}})[r.HEX]=function(_e,lt,Rt,At){return lt(_e,Rt).map(function(Pt){return At?w.HEX(X(Pt.h,Pt.s,Pt.l)):et.HEX(X(Pt.h,Pt.s,Pt.l))})},h.HEXA=function(_e,lt,Rt,At){return lt(_e,Rt).map(function(Pt){return At?w.HEX(t(t({},X(Pt.h,Pt.s,Pt.l)),{a:255*N(Pt.a)})):et.HEXA(t(t({},X(Pt.h,Pt.s,Pt.l)),{a:N(Pt.a)}))})},h[r.RGB]=function(_e,lt,Rt,At,Pt){return lt(_e,Rt).map(function(Dt){return At?w.RGB(ot(X(Dt.h,Dt.s,Dt.l),Pt)):et.RGB(X(Dt.h,Dt.s,Dt.l),Pt)})},h.RGBA=function(_e,lt,Rt,At,Pt){return lt(_e,Rt).map(function(Dt){return At?w.RGB(ot(t(t({},X(Dt.h,Dt.s,Dt.l)),{a:N(Dt.a)}),Pt)):et.RGBA(t(t({},X(Dt.h,Dt.s,Dt.l)),{a:N(Dt.a)}),Pt)})},h[r.HSL]=function(_e,lt,Rt,At,Pt){return lt(_e,Rt).map(function(Dt){return At?w.HSL(at({h:Dt.h,s:Dt.s,l:Dt.l},Pt)):et.HSL(X(Dt.h,Dt.s,Dt.l),Pt)})},h.HSLA=function(_e,lt,Rt,At,Pt){return lt(_e,Rt).map(function(Dt){return At?w.HSL(at(t(t({},Dt),{a:N(Dt.a)}),Pt)):et.HSLA(t(t({},X(Dt.h,Dt.s,Dt.l)),{a:N(Dt.a)}),Pt)})},h),it=((l={mix:function(_e,lt){var Rt,At,Pt,Dt,Lt,Bt,Nt,jt,Ut,Gt,qt,Xt,Kt,Zt,Qt,Jt=_e.map(function(cn){var un=J(cn);return tt(cn,un)}),en=lt===i.SUBTRACTIVE?Jt.map(function(cn){var un,rn,sn,pn,bn,gn,_n,xn,ln,Mn,Tn,An,Cn,wn,Fn=(un=cn.r,rn=cn.g,sn=cn.b,pn=Math.min(un,rn,sn),bn=Math.min(255-un,255-rn,255-sn),gn=un-pn,_n=rn-pn,xn=sn-pn,ln=Math.min(gn,_n),Mn=gn-ln,Tn=(_n+ln)/2,An=(xn+_n-ln)/2,Cn=Math.max(Mn,Tn,An)/Math.max(gn,_n,xn),wn=isNaN(Cn)||Cn===1/0||Cn<=0?1:Cn,{r:Mn/wn+bn,y:Tn/wn+bn,b:An/wn+bn});return H(cn,"a")&&(Fn.a=cn.a),Fn}):null;function tn(cn){var un=lt===i.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return cn.reduce(function(rn,sn){var pn=H(sn,"a")?sn.a:1,bn={r:Math.min(rn.r+sn.r*pn,255),b:Math.min(rn.b+sn.b*pn,255),a:1-(1-pn)*(1-rn.a)},gn="g"in rn?rn.g:rn.y,_n="g"in sn?sn.g:sn.y;return t(t({},bn),lt===i.ADDITIVE?{g:Math.min(gn+_n*pn,255)}:{y:Math.min(gn+_n*pn,255)})},un)}if(lt===i.ADDITIVE)Rt=tn(Jt);else{var an=tn(en);At=an.r,Pt=an.y,Dt=an.b,Lt=Math.min(At,Pt,Dt),Bt=Math.min(255-At,255-Pt,255-Dt),Nt=At-Lt,jt=Pt-Lt,Ut=Dt-Lt,Gt=Math.min(jt,Ut),qt=Nt+jt-Gt,Xt=jt+Gt,Kt=2*(Ut-Gt),Zt=Math.max(qt,Xt,Kt)/Math.max(Nt,jt,Ut),Qt=isNaN(Zt)||Zt===1/0||Zt<=0?1:Zt,(Rt={r:qt/Qt+Bt,g:Xt/Qt+Bt,b:Kt/Qt+Bt}).a=an.a}return{r:G(Rt.r),g:G(Rt.g),b:G(Rt.b),a:k(Rt.a,0,1)}}})[r.HEX]=function(_e,lt,Rt){var At=this.mix(_e,lt);return delete At.a,Rt?w.HEX(At):et.HEX(At)},l.HEXA=function(_e,lt,Rt){var At=this.mix(_e,lt);return At.a=Rt?255*N(At.a):N(At.a),Rt?w.HEX(At):et.HEXA(At)},l[r.RGB]=function(_e,lt,Rt,At){var Pt=this.mix(_e,lt);return delete Pt.a,Rt?w.RGB(Pt):et.RGB(Pt,At)},l.RGBA=function(_e,lt,Rt,At){var Pt=this.mix(_e,lt);return Rt?w.RGB(Pt):et.RGBA(Pt,At)},l[r.HSL]=function(_e,lt,Rt,At){var Pt=this.mix(_e,lt),Dt=K(Pt.r,Pt.g,Pt.b);return delete Pt.a,delete Dt.a,Rt?w.HSL(Dt):et.HSL(Pt,At)},l.HSLA=function(_e,lt,Rt,At){var Pt=this.mix(_e,lt),Dt=K(Pt.r,Pt.g,Pt.b,Pt.a);return Rt?w.HSL(Dt):et.HSLA(Pt,At)},l),ot=function(_e,lt){return t({r:G(_e.r,lt),g:G(_e.g,lt),b:G(_e.b,lt)},H(_e,"a")?{a:G(_e.a,lt)}:{})},at=function(_e,lt){return t({h:G(_e.h,lt),s:G(_e.s,lt),l:G(_e.l,lt)},H(_e,"a")?{a:G(_e.a,lt)}:{})},ut=function(_e,lt){return{c:G(_e.c,lt),m:G(_e.m,lt),y:G(_e.y,lt),k:G(_e.k,lt)}},ct=function(_e,lt,Rt,At,Pt,Dt){var Lt=Pt(tt(_e,lt),At);return Rt?Dt(Lt):Lt},st=function(_e,lt,Rt,At,Pt,Dt,Lt){Rt<1&&(Rt=5);var Bt=function(Nt,jt,Ut){var Gt=Ut-1,qt=(jt.r-Nt.r)/Gt,Xt=(jt.g-Nt.g)/Gt,Kt=(jt.b-Nt.b)/Gt,Zt=N(Nt.a),Qt=(N(jt.a)-Zt)/Gt;return Array(Ut).fill(null).map(function(Jt,en){return en===0?Nt:en===Gt?jt:{r:G(Nt.r+qt*en),g:G(Nt.g+Xt*en),b:G(Nt.b+Kt*en),a:G(Zt+Qt*en)}})}(tt(_e),tt(lt),Rt);return Bt.map(function(Nt){var jt=Dt(Nt,Pt);return At?Lt(jt):jt})},dt=function(){function _e(lt,Rt){Rt===void 0&&(Rt=6),this.rgb=tt(lt),this._decimals=Rt,this.updateHSL(),this.updateCMYK()}return _e.prototype.updateRGB=function(){this.rgb=t(t({},X(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},_e.prototype.updateRGBFromCMYK=function(){this.rgb=t(t({},Y(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},_e.prototype.updateHSL=function(){this.hsl=K(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},_e.prototype.updateCMYK=function(){this.cmyk=j(this.rgb.r,this.rgb.g,this.rgb.b)},_e.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},_e.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},_e.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},_e.prototype.setDecimals=function(lt){return this._decimals=lt,this},_e.prototype.setH=function(lt){return this.hsl.h=x(lt),this.updateRGBAndCMYK()},_e.prototype.setS=function(lt){return this.hsl.s=k(lt,0,100),this.updateRGBAndCMYK()},_e.prototype.setL=function(lt){return this.hsl.l=k(lt,0,100),this.updateRGBAndCMYK()},_e.prototype.setR=function(lt){return this.rgb.r=k(lt,0,255),this.updateHSLAndCMYK()},_e.prototype.setG=function(lt){return this.rgb.g=k(lt,0,255),this.updateHSLAndCMYK()},_e.prototype.setB=function(lt){return this.rgb.b=k(lt,0,255),this.updateHSLAndCMYK()},_e.prototype.setA=function(lt){return this.hsl.a=this.rgb.a=k(lt,0,1),this},_e.prototype.setC=function(lt){return this.cmyk.c=k(lt,0,100),this.updateRGBAndHSL()},_e.prototype.setM=function(lt){return this.cmyk.m=k(lt,0,100),this.updateRGBAndHSL()},_e.prototype.setY=function(lt){return this.cmyk.y=k(lt,0,100),this.updateRGBAndHSL()},_e.prototype.setK=function(lt){return this.cmyk.k=k(lt,0,100),this.updateRGBAndHSL()},Object.defineProperty(_e.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"H",{get:function(){return G(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"S",{get:function(){return G(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"L",{get:function(){return G(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"R",{get:function(){return G(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"G",{get:function(){return G(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"B",{get:function(){return G(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"A",{get:function(){return G(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"C",{get:function(){return G(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"M",{get:function(){return G(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"Y",{get:function(){return G(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"K",{get:function(){return G(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HEXObject",{get:function(){return et.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HEXAObject",{get:function(){return et.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"RGBAObject",{get:function(){return t(t({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HSLAObject",{get:function(){return t(t({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"CMYKAObject",{get:function(){return t(t({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HEX",{get:function(){return w.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HEXA",{get:function(){return w.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"RGB",{get:function(){return w.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"RGBA",{get:function(){return w.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HSL",{get:function(){return w.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"HSLA",{get:function(){return w.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"CMYK",{get:function(){return w.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"CMYKA",{get:function(){return w.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),_e.toHEX=function(lt,Rt){Rt===void 0&&(Rt=!0);var At=J(lt);return ct(lt,At,Rt,0,et.HEX,w.HEX)},_e.toHEXA=function(lt,Rt){Rt===void 0&&(Rt=!0);var At=J(lt);return ct(lt,At,Rt,0,et.HEXA,w.HEX)},_e.toRGB=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.RGB,w.RGB)},_e.toRGBA=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.RGBA,w.RGB)},_e.toHSL=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.HSL,w.HSL)},_e.toHSLA=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.HSLA,w.HSL)},_e.toCMYK=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.CMYK,w.CMYK)},_e.toCMYKA=function(lt,Rt,At){Rt===void 0&&(Rt=!0),At===void 0&&(At=6);var Pt=J(lt);return ct(lt,Pt,Rt,At,et.CMYKA,w.CMYK)},_e.getBlendHEX=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.HEX,w.HEX)},_e.getBlendHEXA=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.HEXA,w.HEX)},_e.getBlendRGB=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.RGB,w.RGB)},_e.getBlendRGBA=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.RGBA,w.RGB)},_e.getBlendHSL=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.HSL,w.HSL)},_e.getBlendHSLA=function(lt,Rt,At,Pt,Dt){return At===void 0&&(At=5),Pt===void 0&&(Pt=!0),Dt===void 0&&(Dt=6),st(lt,Rt,At,Pt,Dt,et.HSLA,w.HSL)},_e.getMixHEX=function(lt,Rt,At){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),it.HEX(lt,Rt,At)},_e.getMixHEXA=function(lt,Rt,At){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),it.HEXA(lt,Rt,At)},_e.getMixRGB=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),Pt===void 0&&(Pt=6),it.RGB(lt,Rt,At,Pt)},_e.getMixRGBA=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),Pt===void 0&&(Pt=6),it.RGBA(lt,Rt,At,Pt)},_e.getMixHSL=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),Pt===void 0&&(Pt=6),it.HSL(lt,Rt,At,Pt)},_e.getMixHSLA=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=i.ADDITIVE),At===void 0&&(At=!0),Pt===void 0&&(Pt=6),it.HSLA(lt,Rt,At,Pt)},_e.getShades=function(lt,Rt,At){return At===void 0&&(At=6),rt(lt,Rt,!0,At)},_e.getTints=function(lt,Rt,At){return At===void 0&&(At=6),rt(lt,Rt,!1,At)},_e.getHarmony=function(lt,Rt,At,Pt){return Rt===void 0&&(Rt=n.COMPLEMENTARY),At===void 0&&(At=i.ADDITIVE),Pt===void 0&&(Pt=6),function(Dt,Lt,Bt,Nt){var jt;return(jt={},jt[n.ANALOGOUS]=nt.buildHarmony(Lt,U,Nt,Bt),jt[n.COMPLEMENTARY]=nt.buildHarmony(Lt,q,Nt,Bt),jt[n.SPLIT_COMPLEMENTARY]=nt.buildHarmony(Lt,$,Nt,Bt),jt[n.TRIADIC]=nt.buildHarmony(Lt,_,Nt,Bt),jt[n.TETRADIC]=nt.buildHarmony(Lt,Q,Nt,Bt),jt[n.SQUARE]=nt.buildHarmony(Lt,z$1,Nt,Bt),jt)[Dt]}(Rt,lt,Pt,At)},_e}();const defaultContext={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:ceil$1,PI}=Math,getFillStyle=(_e,lt)=>new dt(_e).setA(lt??defaultContext.alpha).RGBA,getStrokeStyle=(_e,lt)=>getFillStyle(_e,lt);function transform(_e,lt){return{width:_e.width*lt.scale.x,height:_e.height*lt.scale.y,x:_e.x*lt.scale.x+lt.x,y:_e.y*lt.scale.y+lt.y}}const text={draw(_e,lt,Rt){if(_e.text){const At=transform(_e,{x:_e.textX,y:_e.textY,scale:{x:1,y:1}}),Pt=transform(At,Rt);lt.font=`${_e.fontSize*Rt.scale.x}px Arial`,lt.fillStyle=getFillStyle(_e.fontColor,_e.alpha),lt.fillText(_e.text,Pt.x,Pt.y)}},test(_e){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},rect={draw(_e,lt,Rt){const{x:At,y:Pt,width:Dt,height:Lt}=transform(_e,Rt);lt.fillStyle=getFillStyle(_e.fill,_e.alpha),lt.fillRect(ceil$1(At),ceil$1(Pt),ceil$1(Dt)||1,ceil$1(Lt)||1)},test(_e){return{left:_e.x,right:_e.x+_e.width,top:_e.y,bottom:_e.y+_e.height}}},circle={draw(_e,lt,Rt){lt.fillStyle=getFillStyle(_e.fill,_e.alpha),lt.beginPath();const At=transform({..._e,width:_e.radius,height:_e.radius},Rt);lt.ellipse(ceil$1(At.x),ceil$1(At.y),ceil$1(At.width),ceil$1(At.height),0,0,2*PI),lt.fill()},test(_e){return{left:_e.x-_e.radius,right:_e.x+_e.radius,top:_e.y-_e.radius,bottom:_e.y+_e.radius}}},polygon={draw(_e,lt,Rt){const[At,...Pt]=_e.points;lt.beginPath(),lt.fillStyle=getFillStyle(_e.fill,_e.alpha);const{x:Dt,y:Lt}=transform({...At,width:0,height:0},Rt);lt.moveTo(ceil$1(Dt),ceil$1(Lt));for(const Bt of Pt){const{x:Nt,y:jt}=transform({...Bt,width:0,height:0},Rt);lt.lineTo(ceil$1(Nt),ceil$1(jt))}lt.closePath(),lt.fill()},test(_e){var lt,Rt,At,Pt;return{left:((lt=lodashExports.minBy(_e.points,"x"))==null?void 0:lt.x)??0,right:((Rt=lodashExports.maxBy(_e.points,"x"))==null?void 0:Rt.x)??0,top:((At=lodashExports.minBy(_e.points,"y"))==null?void 0:At.y)??0,bottom:((Pt=lodashExports.maxBy(_e.points,"y"))==null?void 0:Pt.y)??0}}},path={draw(_e,lt,Rt){const[At,...Pt]=_e.points;lt.beginPath(),lt.lineCap="round",lt.lineJoin="round",lt.strokeStyle=getStrokeStyle(_e.fill,_e.alpha);const{x:Dt,y:Lt,width:Bt}=transform({...At,width:_e.lineWidth,height:0},Rt);lt.lineWidth=ceil$1(Bt),lt.moveTo(ceil$1(Dt),ceil$1(Lt));for(const Nt of Pt){const{x:jt,y:Ut}=transform({...Nt,width:0,height:0},Rt);lt.lineTo(ceil$1(jt),ceil$1(Ut))}lt.stroke()},test(_e){var lt,Rt,At,Pt;return{left:((lt=lodashExports.minBy(_e.points,"x"))==null?void 0:lt.x)??0-_e.lineWidth??0,right:((Rt=lodashExports.maxBy(_e.points,"x"))==null?void 0:Rt.x)??0+_e.lineWidth??0,top:((At=lodashExports.minBy(_e.points,"y"))==null?void 0:At.y)??0-_e.lineWidth??0,bottom:((Pt=lodashExports.maxBy(_e.points,"y"))==null?void 0:Pt.y)??0+_e.lineWidth??0}}},primitives={text,path,rect,polygon,circle},{log2,max:max$2}=Math,z=_e=>lodashExports.floor(log2(_e+1));function getTiles({right:_e,left:lt,bottom:Rt,top:At},Pt){const Dt=max$2(z(_e-lt),z(Rt-At))-Pt,Lt=2**Dt,Bt={left:lodashExports.floor(lt/Lt),right:lodashExports.ceil((_e+1)/Lt),top:lodashExports.floor(At/Lt),bottom:lodashExports.ceil((Rt+1)/Lt)};return{zoom:Dt,order:Lt,tiles:lodashExports.shuffle(_default({x:lodashExports.range(Bt.left,Bt.right+1),y:lodashExports.range(Bt.top,Bt.bottom+1)}).map(Nt=>{const jt=Nt.x*Lt,Ut=Nt.y*Lt;return{tile:Nt,bounds:{left:jt-Lt/2,right:jt+Lt/2,top:Ut-Lt/2,bottom:Ut+Lt/2}}}))}}const d2RendererWorkerUrl=""+new URL("D2Renderer.worker-ebe2dbad.js",import.meta.url).href;class D2RendererWorkerAdapter extends Worker{constructor(){super(d2RendererWorkerUrl,{type:"module"})}call(lt,Rt,At=[]){return this.postMessage({action:lt,payload:Rt},At)}on(lt,Rt){const At=Pt=>{const{action:Dt,payload:Lt}=Pt.data;Dt===lt&&Rt(Lt)};return this.addEventListener("message",At),()=>this.removeEventListener("message",At)}}function intersect(_e,lt){return!(lt.left>=_e.right||lt.right<=_e.left||lt.top>=_e.bottom||lt.bottom<=_e.top)}const{max:max$1,min:min$1}=Math,_Tile=class BE extends Sprite{constructor(lt,Rt){super(lt),this.bounds=Rt,this.destroying=!1,this.age=BE.age++}};_Tile.age=0;let Tile=_Tile;function handleNaN(_e,lt){return lodashExports.isNaN(_e)?lt:_e}var Zl,Vs,$p,wp,Tl,Bu,Tp,Cp,G0,V0,NE,q0,FE,jm,z0,Y0,X0,jE,K0,zE,Z0,UE,Q0,HE,U0,PE,H0,ME,J0,WE,W0,OE,ey,GE,ty,VE,ny,qE;class D2Renderer extends EventEmitter{constructor(){super(...arguments);Ps(this,V0);Ps(this,q0);Ps(this,X0);Ps(this,K0);Ps(this,Z0);Ps(this,Q0);Ps(this,U0);Ps(this,H0);Ps(this,J0);Ps(this,W0);Ps(this,ey);Ps(this,ty);Ps(this,ny);Ps(this,Zl,void 0);Ps(this,Vs,void 0);Ps(this,$p,void 0);Ps(this,wp,void 0);Ps(this,Tl,defaultD2RendererOptions);Ps(this,Bu,[]);Ps(this,Tp,new Bush(16));Ps(this,Cp,void 0);Ps(this,G0,0);Ps(this,jm,lodashExports.once(()=>lodashExports.debounce(()=>Fl(this,U0,PE).call(this),_o(this,Tl).debounceInterval)));Ps(this,z0,lodashExports.once(()=>lodashExports.throttle(()=>Fl(this,H0,ME).call(this),_o(this,Tl).refreshInterval)));Ps(this,Y0,lodashExports.once(()=>lodashExports.throttle(Rt=>Fl(this,J0,WE).call(this,Rt),_o(this,Tl).refreshInterval)))}getInstance(){return{app:_o(this,Zl),viewport:_o(this,Vs)}}fitCamera(Rt=lodashExports.constant(!0)){var Pt,Dt,Lt,Bt;const At=lodashExports.values(_o(this,Tp).all()).flat().filter(Rt);if(At.length){const Nt=lodashExports.reduce(At,(jt,Ut)=>({top:handleNaN(min$1(jt.top,Ut.top),jt.top),left:handleNaN(min$1(jt.left,Ut.left),jt.left),bottom:handleNaN(max$1(jt.bottom,Ut.bottom),jt.bottom),right:handleNaN(max$1(jt.right,Ut.right),jt.right)}),{bottom:-1/0,top:1/0,left:1/0,right:-1/0});(Bt=(Pt=_o(this,Vs))==null?void 0:Pt.animate)==null||Bt.call(Pt,{position:new Point((Nt.left+Nt.right)/2,(Nt.top+Nt.bottom)/2),scale:((Lt=(Dt=_o(this,Vs))==null?void 0:Dt.findFit)==null?void 0:Lt.call(Dt,Nt.right-Nt.left,Nt.bottom-Nt.top))*.8,ease:"easeOutExpo",time:_o(this,Tl).animationDuration*1.5,callbackOnComplete:()=>_o(this,jm).call(this)()})}}initialCamera(){var Rt,At;(At=(Rt=_o(this,Vs))==null?void 0:Rt.animate)==null||At.call(Rt,{scale:1,ease:"easeOutExpo",time:_o(this,Tl).animationDuration*1.5,callbackOnComplete:()=>_o(this,jm).call(this)()})}getView(){var Rt;return(Rt=_o(this,Zl))==null?void 0:Rt.view}async toDataUrl(){var Rt,At,Pt,Dt,Lt;return(At=(Rt=_o(this,Zl))==null?void 0:Rt.render)==null||At.call(Rt),(Lt=(Dt=(Pt=_o(this,Zl))==null?void 0:Pt.view)==null?void 0:Dt.toDataURL)==null?void 0:Lt.call(Dt)}setup(Rt){const At={...defaultD2RendererOptions,...Rt};Fl(this,q0,FE).call(this,At),this.setOptions(At),Fl(this,K0,zE).call(this,At)}destroy(){lodashExports.map(_o(this,Bu),Rt=>Rt.terminate()),_o(this,Zl).destroy()}add(Rt){const At=nanoid();lodashExports.map(_o(this,Bu),Dt=>Dt.call("add",[Rt,At]));const Pt=lodashExports.map(Rt,({component:Dt,meta:Lt})=>({...primitives[Dt.$].test(Dt),component:Dt,meta:Lt,index:Fl(this,V0,NE).call(this)}));return _o(this,Tp).load(Pt),()=>lodashExports.defer(()=>{for(const Dt of Pt)_o(this,Tp).remove(Dt);lodashExports.map(_o(this,Bu),Dt=>Dt.call("remove",[At]))})}setOptions(Rt){const At={..._o(this,Tl),...Rt};Fl(this,Z0,UE).call(this,At),_p(this,Tl,At),Fl(this,U0,PE).call(this),Fl(this,H0,ME).call(this)}}Zl=new WeakMap,Vs=new WeakMap,$p=new WeakMap,wp=new WeakMap,Tl=new WeakMap,Bu=new WeakMap,Tp=new WeakMap,Cp=new WeakMap,G0=new WeakMap,V0=new WeakSet,NE=function(){return DE(this,G0)._++},q0=new WeakSet,FE=function(Rt){_p(this,Zl,new Application({backgroundAlpha:0,width:Rt.screenSize.width,height:Rt.screenSize.height,autoDensity:!0,resolution:2})),_p(this,Vs,new ht({stopPropagation:!0,screenWidth:Rt.screenSize.width,screenHeight:Rt.screenSize.height,events:_o(this,Zl).renderer.events,passiveWheel:!1})),_o(this,Vs).on("clicked",At=>{const{x:Pt,y:Dt}=At.world,Lt=_o(this,Tp).search({minX:Pt,minY:Dt,maxX:Pt+Number.MIN_VALUE,maxY:Dt+Number.MIN_VALUE});this.emit("click",At.event,{world:At.world,components:Lt})}),_o(this,Zl).stage.addChild(_o(this,Vs)),_o(this,Vs).drag().pinch().wheel().decelerate({friction:.98}).clampZoom({maxScale:300,minScale:1e-5}),_o(this,Vs).on("moved",()=>{_o(this,jm).call(this)(),_o(this,z0).call(this)()}),_o(this,Vs).on("mousemove",At=>_o(this,Y0).call(this)(At)),_p(this,$p,new Container),_o(this,Vs).addChild(_o(this,$p)),_p(this,wp,new Graphics),_o(this,Vs).addChild(_o(this,wp)),_p(this,Cp,new Graphics),_o(this,Vs).addChild(_o(this,Cp)),Fl(this,X0,jE).call(this)},jm=new WeakMap,z0=new WeakMap,Y0=new WeakMap,X0=new WeakSet,jE=function(){const{dynamicResolution:Rt}=_o(this,Tl),{dtMax:At,dtMin:Pt,increment:Dt,intervalMs:Lt,maxScale:Bt,minScale:Nt}=Rt,jt=lodashExports.floor(Ticker.targetFPMS*Lt);let Ut=0,Gt=0,qt=1;_o(this,Zl).ticker.add(Xt=>{const{tileResolution:Kt}=_o(this,Tl);if(!(Ut%jt)){const Zt=Gt/jt;qt=lodashExports.clamp(Zt>=At?qt+Dt:Zt<=Pt?qt-Dt:qt,Nt,Bt),lodashExports.map(_o(this,Bu),Qt=>{Qt.call("setTileResolution",[{width:lodashExports.ceil(Kt.width/qt),height:lodashExports.ceil(Kt.height/qt)}])}),Gt=0}Gt+=Xt,Ut++})},K0=new WeakSet,zE=function(Rt){lodashExports.map(_o(this,Bu),At=>At.terminate()),_p(this,Bu,lodashExports.times(Rt.workerCount,At=>{const Pt=new D2RendererWorkerAdapter;return Pt.on("update",Dt=>Fl(this,Q0,HE).call(this,Dt)),Pt.onerror=Dt=>{throw Dt},Pt.call("setup",[{...Rt,workerIndex:At}]),Pt}))},Z0=new WeakSet,UE=function(Rt){var Dt,Lt,Bt,Nt;const{width:At,height:Pt}=Rt.screenSize;(Bt=(Lt=(Dt=_o(this,Zl))==null?void 0:Dt.renderer)==null?void 0:Lt.resize)==null||Bt.call(Lt,At,Pt),(Nt=_o(this,Vs))==null||Nt.resize(At,Pt),lodashExports.map(_o(this,Bu),jt=>{jt.call("setTileResolution",[{width:lodashExports.ceil(Rt.tileResolution.width),height:lodashExports.ceil(Rt.tileResolution.height)}])})},Q0=new WeakSet,HE=function({bounds:Rt,bitmap:At}){const Pt=Texture.from(At);Fl(this,ey,GE).call(this,Pt,Rt)},U0=new WeakSet,PE=function(){const{top:Rt,bottom:At,left:Pt,right:Dt}=_o(this,Vs);lodashExports.map(_o(this,Bu),Lt=>Lt.call("setFrustum",[{top:Rt,bottom:At,left:Pt,right:Dt}]))},H0=new WeakSet,ME=function(){var Lt,Bt,Nt,jt,Ut;const{tileSubdivision:Rt,accentColor:At}=_o(this,Tl),{tiles:Pt}=getTiles(_o(this,Vs),Rt),Dt=Fl(this,W0,OE).call(this);(Lt=_o(this,wp))==null||Lt.clear(),(Bt=_o(this,wp))==null||Bt.lineStyle(1*Dt,At,.5),(Nt=_o(this,wp))==null||Nt.beginFill(At,.05);for(const{bounds:Gt,tile:qt}of Pt)lodashExports.find((jt=_o(this,$p))==null?void 0:jt.children,Xt=>lodashExports.isEqual(Xt.bounds,Gt))||(Ut=_o(this,wp))==null||Ut.drawRect(Gt.left,Gt.top,Gt.right-Gt.left,Gt.bottom-Gt.top)},J0=new WeakSet,WE=function(Rt){var Nt;const{accentColor:At}=_o(this,Tl),Pt=Fl(this,W0,OE).call(this),{x:Dt,y:Lt}=_o(this,Vs).toWorld(Rt.globalX,Rt.globalY),Bt=_o(this,Tp).search({minX:Dt,minY:Lt,maxX:Dt+Number.MIN_VALUE,maxY:Lt+Number.MIN_VALUE});_o(this,Cp).clear(),_o(this,Cp).lineStyle(2*Pt,At,1);for(const jt of Bt)(Nt=_o(this,Cp))==null||Nt.drawRect(jt.left,jt.top,jt.right-jt.left,jt.bottom-jt.top)},W0=new WeakSet,OE=function(){const{right:Rt,left:At}=_o(this,Vs),{width:Pt}=_o(this,Tl).screenSize;return(Rt-At)/Pt},ey=new WeakSet,GE=async function(Rt,At){var Lt,Bt;const{tileSubdivision:Pt}=_o(this,Tl),{tiles:Dt}=getTiles(_o(this,Vs),Pt);if(lodashExports.find(Dt,Nt=>lodashExports.isEqual(Nt.bounds,At))){const Nt={x:(At.right-At.left)/Rt.width,y:(At.bottom-At.top)/Rt.height},jt=new Tile(Rt,At);(Lt=_o(this,$p))==null||Lt.addChild(jt).setTransform(At.left,At.top,Nt.x,Nt.y),_o(this,z0).call(this)(),await Fl(this,ty,VE).call(this,jt),lodashExports.forEach((Bt=_o(this,$p))==null?void 0:Bt.children,async Ut=>{intersect(Ut.bounds,At)&&Ut.age{const Dt=Lt=>{Rt.alpha+=Lt/Ticker.targetFPMS/_o(this,Tl).animationDuration,Rt.alpha>1&&(At.remove(Dt),Pt())};Rt.alpha=0,At.add(Dt)})},ny=new WeakSet,qE=function(Rt){const At=_o(this,Zl).ticker;return new Promise(Pt=>{const Dt=Lt=>{Rt.alpha-=Lt/Ticker.targetFPMS/_o(this,Tl).animationDuration,Rt.alpha<0&&(At.remove(Dt),Pt())};Rt.alpha=1,At.add(Dt)})};const D2Renderer$1=makeRenderer(D2Renderer,{components:["rect","circle","path","polygon"],id:"d2-renderer",name:"Pixi",description:"Provides 2D Visualisation Support",version:"1.0.0"}),renderers={"d2-renderer":D2Renderer$1};class NativeRendererTransport{constructor(lt){this.options=lt}async get(){const{hostname:lt}=url$2(this.options.url);return renderers[lt]}}const transports={native:{name:"Internal",constructor:NativeRendererTransport}};function RendererService(){const[{renderer:_e}]=useSettings(),[,lt]=useRenderers();return useAsync(async()=>{const Rt=[];for(const{transport:At,url:Pt,key:Dt,disabled:Lt}of _e??[])if(!Lt){const Bt=new transports[At].constructor({url:Pt});Rt.push({key:Dt,url:Pt,renderer:await Bt.get()})}lt(()=>Rt)},[_e,lt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}const statusColor$1={connected:"success.light",connecting:"warning.light",error:"error.light",disabled:"text.disabled"};function RendererEditor({value:_e,onValueChange:lt}){const[Rt]=useRenderers(),At=usePaper(),Pt=lodashExports$1.find(Rt,{key:_e.key});function Dt(Bt){lt==null||lt(merge$3(_e,Bt))}const Lt=_e!=null&&_e.disabled?"disabled":Pt?"connected":"error";return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Flex,{alignItems:"center",py:1,children:[jsxRuntimeExports.jsxs(Box$1,{flex:1,sx:{width:0,overflow:"hidden","> *":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[jsxRuntimeExports.jsx(Typography$1,{children:Pt?`${Pt.renderer.meta.name} ${Pt.renderer.meta.version}`:lodashExports$1.startCase(Lt)}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Pt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:Pt.renderer.meta.description}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs("span",{children:["Contributes: ",lodashExports$1.join(Pt.renderer.meta.components,", ")]})]}):(_e==null?void 0:_e.url)||"No URL"})]}),jsxRuntimeExports.jsx(Chip$1,{sx:{mx:1,color:statusColor$1[Lt],...lodashExports$1.omit(At(1),"borderRadius")},size:"small",label:lodashExports$1.startCase(Lt)}),jsxRuntimeExports.jsx(Tooltip$1,{title:`${_e.disabled?"Enable":"Disable"} Renderer`,children:jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(Switch$2,{checked:!_e.disabled,onChange:(Bt,Nt)=>Dt({disabled:!Nt})})})}),jsxRuntimeExports.jsx(ManagedModal,{trigger:Bt=>jsxRuntimeExports.jsx(IconButtonWithTooltip,{icon:jsxRuntimeExports.jsx(EditIcon,{}),label:"Edit Renderer",sx:{mr:-3},onClick:Bt}),appBar:{children:jsxRuntimeExports.jsx(AppBarTitle,{children:"Edit Renderer"})},children:jsxRuntimeExports.jsxs(Box$1,{p:2.5,children:[jsxRuntimeExports.jsx(TextField$1,{defaultValue:_e.url,onChange:Bt=>Dt({url:Bt.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),jsxRuntimeExports.jsx(SelectField,{placeholder:"Renderer Type",items:lodashExports$1.entries(transports).map(([Bt,{name:Nt}])=>({value:Bt,label:Nt})),fullWidth:!0,value:_e.transport,onChange:Bt=>Dt({transport:Bt})})]})})]})})}function RendererListEditor(){const[{renderer:_e},lt]=useSettings();return jsxRuntimeExports.jsx(Box$1,{sx:{mx:-2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,button:!1,editor:Rt=>jsxRuntimeExports.jsx(RendererEditor,{value:Rt}),icon:null,value:_e,onChange:lodashExports$1.debounce(Rt=>lt(()=>({renderer:Rt})),300),addItemLabel:"Add Renderer",create:()=>({transport:defaultTransport,url:"",disabled:!0}),addItemExtras:jsxRuntimeExports.jsx(FeaturePickerButton,{icon:jsxRuntimeExports.jsx(ResetIcon,{}),onClick:()=>lt(()=>({renderer:defaultRenderers})),children:"Reset to Defaults"})})})}function useConnectionStatus(_e){const[{connections:lt}]=useLoading(),Rt=useConnectionResolver(),[{remote:At}]=useSettings(),Pt=lodashExports$1.find(At,{url:_e});return Pt&&!(Pt!=null&&Pt.disabled)?Rt({url:_e})?"connected":lt?"connecting":_e?"error":"not-connected":"not-connected"}const statusColor={connected:"success.light",connecting:"warning.light",error:"error.light","not-connected":"text.disabled"};function ServerEditor({value:_e,onValueChange:lt}){const Rt=useConnection(_e.url),At=usePaper(),Pt=useConnectionStatus(_e.url),Dt=reactExports.useMemo(()=>debounce$2(Lt=>{lt==null||lt(merge$3(_e,Lt))},300),[lt,_e]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Flex,{alignItems:"center",py:.5,children:[jsxRuntimeExports.jsxs(Box$1,{flex:1,sx:{width:0,overflow:"hidden","> *":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},children:[jsxRuntimeExports.jsx(Typography$1,{children:Rt?`${Rt.name} ${Rt.version}`:lodashExports$1.startCase(Pt)}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:(Rt==null?void 0:Rt.description)??((_e==null?void 0:_e.url)||"No URL")})]}),jsxRuntimeExports.jsx(Chip$1,{sx:{mx:1,color:statusColor[Pt],...lodashExports$1.omit(At(1),"borderRadius")},size:"small",label:lodashExports$1.startCase(Pt)}),jsxRuntimeExports.jsx(Tooltip$1,{title:`${_e.disabled?"Enable":"Disable"} Connection`,children:jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(Switch$2,{defaultChecked:!_e.disabled,onChange:(Lt,Bt)=>Dt({disabled:!Bt})})})}),jsxRuntimeExports.jsx(ManagedModal,{trigger:Lt=>jsxRuntimeExports.jsx(IconButtonWithTooltip,{icon:jsxRuntimeExports.jsx(EditIcon,{}),label:"Edit Connection",sx:{mr:-3},onClick:Lt}),appBar:{children:jsxRuntimeExports.jsx(AppBarTitle,{children:"Edit Connection"})},children:jsxRuntimeExports.jsxs(Box$1,{p:2.5,children:[jsxRuntimeExports.jsx(TextField$1,{defaultValue:_e.url,onChange:Lt=>Dt({url:Lt.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),jsxRuntimeExports.jsx(SelectField,{placeholder:"Connection Type",items:lodashExports$1.entries(transports$1).map(([Lt,{name:Bt}])=>({value:Lt,label:Bt})),fullWidth:!0,value:_e.transport,onChange:Lt=>Dt({transport:Lt})})]})})]})})}function ServerListEditor(){const[{remote:_e},lt]=useSettings();return jsxRuntimeExports.jsx(Box$1,{sx:{mx:-2},children:jsxRuntimeExports.jsx(ListEditor,{sortable:!0,button:!1,editor:Rt=>jsxRuntimeExports.jsx(ServerEditor,{value:Rt}),icon:null,value:_e,onChange:lodashExports$1.debounce(Rt=>lt(()=>({remote:Rt})),300),addItemLabel:"Add Solver",create:()=>({transport:defaultTransport,url:"",disabled:!0}),addItemExtras:jsxRuntimeExports.jsx(FeaturePickerButton,{icon:jsxRuntimeExports.jsx(ResetIcon,{}),onClick:()=>lt(()=>({remote:defaultRemotes})),children:"Reset to Defaults"})})})}const formatLabel=_e=>`${_e}x`;function SettingsPage({template:_e}){const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext(),[{"playback/playbackRate":Dt=1,"appearance/acrylic":Lt,"appearance/theme":Bt="light","appearance/accentColor":Nt="teal","behaviour/showOnStart":jt},Ut]=useSettings(),[Gt,qt]=reactExports.useState("general");function Xt(Zt){return jsxRuntimeExports.jsx(Typography$1,{variant:"overline",color:"text.secondary",children:Zt})}function Kt(Zt){return jsxRuntimeExports.jsx(Typography$1,{variant:"body1",sx:{mr:4,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:Zt})}return jsxRuntimeExports.jsx(TabContext,{value:Gt,children:jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsxs(TabList$1,{onChange:(Zt,Qt)=>qt(Qt),children:[jsxRuntimeExports.jsx(Tab$1,{label:"General",value:"general"}),jsxRuntimeExports.jsx(Tab$1,{label:"Connections",value:"connections"}),jsxRuntimeExports.jsx(Tab$1,{label:"Renderers",value:"renderers"}),jsxRuntimeExports.jsx(Tab$1,{label:"Map Parsers",value:"map-parsers"})]})}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{vertical:!0,children:jsxRuntimeExports.jsx(Scroll,{y:!0,children:jsxRuntimeExports.jsxs(Flex,{vertical:!0,pt:6,children:[jsxRuntimeExports.jsx(TabPanel$1,{value:"general",children:jsxRuntimeExports.jsxs(Box$1,{children:[Xt("Playback"),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",justifyContent:"space-between",children:[Kt("Playback Rate"),jsxRuntimeExports.jsx(Slider$1,{sx:{maxWidth:320,mr:2},marks:[1,2,5,10].map(Zt=>({value:Zt*defaultPlaybackRate,label:formatLabel(Zt)})),step:1*defaultPlaybackRate,min:1*defaultPlaybackRate,max:10*defaultPlaybackRate,valueLabelFormat:Zt=>formatLabel(Zt/defaultPlaybackRate),valueLabelDisplay:"auto",defaultValue:Dt,onChangeCommitted:(Zt,Qt)=>Ut(()=>({"playback/playbackRate":Qt}))})]}),Xt("Appearance"),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",justifyContent:"space-between",children:[Kt("Acrylic"),jsxRuntimeExports.jsx(Switch$2,{defaultChecked:!!Lt,onChange:(Zt,Qt)=>Ut(()=>({"appearance/acrylic":Qt}))})]}),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",justifyContent:"space-between",children:[Kt("Dark Mode"),jsxRuntimeExports.jsx(Space,{flex:1}),jsxRuntimeExports.jsx(Switch$2,{defaultChecked:Bt==="dark",onChange:(Zt,Qt)=>Ut(()=>({"appearance/theme":Qt?"dark":"light"}))})]}),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",justifyContent:"space-between",children:[Kt("Accent"),jsxRuntimeExports.jsx(FeaturePicker,{value:Nt,items:lodashExports$1.map(lodashExports$1.keys(accentColors),Zt=>({id:Zt,name:lodashExports$1.startCase(Zt)})),arrow:!0,onChange:Zt=>Ut(()=>({"appearance/accentColor":Zt}))})]}),Xt("Behaviour"),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",justifyContent:"space-between",children:[Kt("Show Explore Panel on Start-up"),jsxRuntimeExports.jsx(Switch$2,{defaultChecked:!!jt,onChange:(Zt,Qt)=>Ut(()=>({"behaviour/showOnStart":Qt?"explore":void 0}))})]})]})}),jsxRuntimeExports.jsx(TabPanel$1,{value:"connections",children:jsxRuntimeExports.jsxs(Box$1,{children:[Xt("Solvers"),jsxRuntimeExports.jsx(ServerListEditor,{})]})}),jsxRuntimeExports.jsx(TabPanel$1,{value:"renderers",children:jsxRuntimeExports.jsxs(Box$1,{children:[Xt("Renderers"),jsxRuntimeExports.jsx(RendererListEditor,{})]})}),jsxRuntimeExports.jsx(TabPanel$1,{value:"map-parsers",children:jsxRuntimeExports.jsxs(Box$1,{children:[Xt("Map Parsers"),jsxRuntimeExports.jsx(MapParserListEditor,{})]})})]})})})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})})}function MapParserListEditor(){return jsxRuntimeExports.jsx(List$2,{children:lodashExports$1.keys(mapParsers).map(_e=>jsxRuntimeExports.jsx(ListItem$1,{children:jsxRuntimeExports.jsx(ListItemText$1,{primary:_e,secondary:"Internal"})},_e))})}const PUBLISH=0,SUBSCRIBE=1,RESET=2,VALUE=4;function compose(_e,lt){return Rt=>_e(lt(Rt))}function thrush(_e,lt){return lt(_e)}function curry2to1(_e,lt){return Rt=>_e(lt,Rt)}function curry1to0(_e,lt){return()=>_e(lt)}function tap(_e,lt){return lt(_e),_e}function tup(..._e){return _e}function call(_e){_e()}function always(_e){return()=>_e}function joinProc(..._e){return()=>{_e.map(call)}}function isDefined(_e){return _e!==void 0}function noop(){}function subscribe(_e,lt){return _e(SUBSCRIBE,lt)}function publish(_e,lt){_e(PUBLISH,lt)}function reset(_e){_e(RESET)}function getValue(_e){return _e(VALUE)}function connect(_e,lt){return subscribe(_e,curry2to1(lt,PUBLISH))}function handleNext(_e,lt){const Rt=_e(SUBSCRIBE,At=>{Rt(),lt(At)});return Rt}function stream(){const _e=[];return(lt,Rt)=>{switch(lt){case RESET:_e.splice(0,_e.length);return;case SUBSCRIBE:return _e.push(Rt),()=>{const At=_e.indexOf(Rt);At>-1&&_e.splice(At,1)};case PUBLISH:_e.slice().forEach(At=>{At(Rt)});return;default:throw new Error(`unrecognized action ${lt}`)}}}function statefulStream(_e){let lt=_e;const Rt=stream();return(At,Pt)=>{switch(At){case SUBSCRIBE:Pt(lt);break;case PUBLISH:lt=Pt;break;case VALUE:return lt}return Rt(At,Pt)}}function eventHandler(_e){let lt,Rt;const At=()=>lt&<();return function(Pt,Dt){switch(Pt){case SUBSCRIBE:return Dt?Rt===Dt?void 0:(At(),Rt=Dt,lt=subscribe(_e,Dt),lt):(At(),noop);case RESET:At(),Rt=null;return;default:throw new Error(`unrecognized action ${Pt}`)}}}function streamFromEmitter(_e){return tap(stream(),lt=>connect(_e,lt))}function statefulStreamFromEmitter(_e,lt){return tap(statefulStream(lt),Rt=>connect(_e,Rt))}function combineOperators(..._e){return lt=>_e.reduceRight(thrush,lt)}function pipe(_e,...lt){const Rt=combineOperators(...lt);return(At,Pt)=>{switch(At){case SUBSCRIBE:return subscribe(_e,Rt(Pt));case RESET:reset(_e);return}}}function defaultComparator(_e,lt){return _e===lt}function distinctUntilChanged(_e=defaultComparator){let lt;return Rt=>At=>{_e(lt,At)||(lt=At,Rt(At))}}function filter(_e){return lt=>Rt=>{_e(Rt)&<(Rt)}}function map(_e){return lt=>compose(lt,_e)}function mapTo(_e){return lt=>()=>lt(_e)}function scan(_e,lt){return Rt=>At=>Rt(lt=_e(lt,At))}function skip(_e){return lt=>Rt=>{_e>0?_e--:lt(Rt)}}function throttleTime(_e){let lt=null,Rt;return At=>Pt=>{lt=Pt,!Rt&&(Rt=setTimeout(()=>{Rt=void 0,At(lt)},_e))}}function debounceTime(_e){let lt,Rt;return At=>Pt=>{lt=Pt,Rt&&clearTimeout(Rt),Rt=setTimeout(()=>{At(lt)},_e)}}function withLatestFrom(..._e){const lt=new Array(_e.length);let Rt=0,At=null;const Pt=Math.pow(2,_e.length)-1;return _e.forEach((Dt,Lt)=>{const Bt=Math.pow(2,Lt);subscribe(Dt,Nt=>{const jt=Rt;Rt=Rt|Bt,lt[Lt]=Nt,jt!==Pt&&Rt===Pt&&At&&(At(),At=null)})}),Dt=>Lt=>{const Bt=()=>Dt([Lt].concat(lt));Rt===Pt?Bt():At=Bt}}function merge(..._e){return function(lt,Rt){switch(lt){case SUBSCRIBE:return joinProc(..._e.map(At=>subscribe(At,Rt)));case RESET:return;default:throw new Error(`unrecognized action ${lt}`)}}}function duc(_e,lt=defaultComparator){return pipe(_e,distinctUntilChanged(lt))}function combineLatest(..._e){const lt=stream(),Rt=new Array(_e.length);let At=0;const Pt=Math.pow(2,_e.length)-1;return _e.forEach((Dt,Lt)=>{const Bt=Math.pow(2,Lt);subscribe(Dt,Nt=>{Rt[Lt]=Nt,At=At|Bt,At===Pt&&publish(lt,Rt)})}),function(Dt,Lt){switch(Dt){case SUBSCRIBE:return At===Pt&&Lt(Rt),subscribe(lt,Lt);case RESET:return reset(lt);default:throw new Error(`unrecognized action ${Dt}`)}}}function system(_e,lt=[],{singleton:Rt}={singleton:!0}){return{id:id(),constructor:_e,dependencies:lt,singleton:Rt}}const id=()=>Symbol();function init(_e){const lt=new Map,Rt=({id:At,constructor:Pt,dependencies:Dt,singleton:Lt})=>{if(Lt&<.has(At))return lt.get(At);const Bt=Pt(Dt.map(Nt=>Rt(Nt)));return Lt&<.set(At,Bt),Bt};return Rt(_e)}function omit(_e,lt){const Rt={},At={};let Pt=0;const Dt=_e.length;for(;Pt(en[tn]=an=>{const cn=Jt[lt.methods[tn]];publish(cn,an)},en),{})}function Ut(Jt){return Lt.reduce((en,tn)=>(en[tn]=eventHandler(Jt[lt.events[tn]]),en),{})}const Gt=React.forwardRef((Jt,en)=>{const{children:tn,...an}=Jt,[cn]=React.useState(()=>tap(init(_e),rn=>Nt(rn,an))),[un]=React.useState(curry1to0(Ut,cn));return useIsomorphicLayoutEffect$2(()=>{for(const rn of Lt)rn in an&&subscribe(un[rn],an[rn]);return()=>{Object.values(un).map(reset)}},[an,un,cn]),useIsomorphicLayoutEffect$2(()=>{Nt(cn,an)}),React.useImperativeHandle(en,always(jt(cn))),React.createElement(Bt.Provider,{value:cn},Rt?React.createElement(Rt,omit([...At,...Pt,...Lt],an),tn):tn)}),qt=Jt=>React.useCallback(curry2to1(publish,React.useContext(Bt)[Jt]),[Jt]),Xt=Jt=>{const tn=React.useContext(Bt)[Jt],an=React.useCallback(cn=>subscribe(tn,cn),[tn]);return React.useSyncExternalStore(an,()=>getValue(tn),()=>getValue(tn))},Kt=Jt=>{const tn=React.useContext(Bt)[Jt],[an,cn]=React.useState(curry1to0(getValue,tn));return useIsomorphicLayoutEffect$2(()=>subscribe(tn,un=>{un!==an&&cn(always(un))}),[tn,an]),an},Zt=React.version.startsWith("18")?Xt:Kt;return{Component:Gt,usePublisher:qt,useEmitterValue:Zt,useEmitter:(Jt,en)=>{const an=React.useContext(Bt)[Jt];useIsomorphicLayoutEffect$2(()=>subscribe(an,en),[en,an])}}}const useIsomorphicLayoutEffect=typeof document<"u"?React.useLayoutEffect:React.useEffect,useIsomorphicLayoutEffect$1=useIsomorphicLayoutEffect;var LogLevel=(_e=>(_e[_e.DEBUG=0]="DEBUG",_e[_e.INFO=1]="INFO",_e[_e.WARN=2]="WARN",_e[_e.ERROR=3]="ERROR",_e))(LogLevel||{});const CONSOLE_METHOD_MAP={0:"debug",1:"log",2:"warn",3:"error"},getGlobalThis=()=>typeof globalThis>"u"?window:globalThis,loggerSystem=system(()=>{const _e=statefulStream(3);return{log:statefulStream((Rt,At,Pt=1)=>{var Dt;const Lt=(Dt=getGlobalThis().VIRTUOSO_LOG_LEVEL)!=null?Dt:getValue(_e);Pt>=Lt&&console[CONSOLE_METHOD_MAP[Pt]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",Rt,At)}),logLevel:_e}},[],{singleton:!0});function useSizeWithElRef(_e,lt=!0){const Rt=React.useRef(null);let At=Pt=>{};if(typeof ResizeObserver<"u"){const Pt=React.useMemo(()=>new ResizeObserver(Dt=>{const Lt=Dt[0].target;Lt.offsetParent!==null&&_e(Lt)}),[_e]);At=Dt=>{Dt&<?(Pt.observe(Dt),Rt.current=Dt):(Rt.current&&Pt.unobserve(Rt.current),Rt.current=null)}}return{ref:Rt,callbackRef:At}}function useSize(_e,lt=!0){return useSizeWithElRef(_e,lt).callbackRef}function useChangedListContentsSizes(_e,lt,Rt,At,Pt,Dt,Lt){const Bt=React.useCallback(Nt=>{const jt=getChangedChildSizes(Nt.children,lt,"offsetHeight",Pt);let Ut=Nt.parentElement;for(;!Ut.dataset.virtuosoScroller;)Ut=Ut.parentElement;const Gt=Ut.lastElementChild.dataset.viewportType==="window",qt=Lt?Lt.scrollTop:Gt?window.pageYOffset||document.documentElement.scrollTop:Ut.scrollTop,Xt=Lt?Lt.scrollHeight:Gt?document.documentElement.scrollHeight:Ut.scrollHeight,Kt=Lt?Lt.offsetHeight:Gt?window.innerHeight:Ut.offsetHeight;At({scrollTop:Math.max(qt,0),scrollHeight:Xt,viewportHeight:Kt}),Dt==null||Dt(resolveGapValue$1("row-gap",getComputedStyle(Nt).rowGap,Pt)),jt!==null&&_e(jt)},[_e,lt,Pt,Dt,Lt,At]);return useSizeWithElRef(Bt,Rt)}function getChangedChildSizes(_e,lt,Rt,At){const Pt=_e.length;if(Pt===0)return null;const Dt=[];for(let Lt=0;Lt{const qt=Gt.target,Xt=qt===window||qt===document,Kt=Xt?window.pageYOffset||document.documentElement.scrollTop:qt.scrollTop,Zt=Xt?document.documentElement.scrollHeight:qt.scrollHeight,Qt=Xt?window.innerHeight:qt.offsetHeight,Jt=()=>{_e({scrollTop:Math.max(Kt,0),scrollHeight:Zt,viewportHeight:Qt})};Gt.suppressFlushSync?Jt():ReactDOM.flushSync(Jt),Lt.current!==null&&(Kt===Lt.current||Kt<=0||Kt===Zt-Qt)&&(Lt.current=null,lt(!0),Bt.current&&(clearTimeout(Bt.current),Bt.current=null))},[_e,lt]);React.useEffect(()=>{const Gt=Pt||Dt.current;return At(Pt||Dt.current),Nt({target:Gt,suppressFlushSync:!0}),Gt.addEventListener("scroll",Nt,{passive:!0}),()=>{At(null),Gt.removeEventListener("scroll",Nt)}},[Dt,Nt,Rt,At,Pt]);function jt(Gt){const qt=Dt.current;if(!qt||"offsetHeight"in qt&&qt.offsetHeight===0)return;const Xt=Gt.behavior==="smooth";let Kt,Zt,Qt;qt===window?(Zt=Math.max(correctItemSize(document.documentElement,"height"),document.documentElement.scrollHeight),Kt=window.innerHeight,Qt=document.documentElement.scrollTop):(Zt=qt.scrollHeight,Kt=correctItemSize(qt,"height"),Qt=qt.scrollTop);const Jt=Zt-Kt;if(Gt.top=Math.ceil(Math.max(Math.min(Jt,Gt.top),0)),approximatelyEqual(Kt,Zt)||Gt.top===Qt){_e({scrollTop:Qt,scrollHeight:Zt,viewportHeight:Kt}),Xt&<(!0);return}Xt?(Lt.current=Gt.top,Bt.current&&clearTimeout(Bt.current),Bt.current=setTimeout(()=>{Bt.current=null,Lt.current=null,lt(!0)},1e3)):Lt.current=null,qt.scrollTo(Gt)}function Ut(Gt){Dt.current.scrollBy(Gt)}return{scrollerRef:Dt,scrollByCallback:Ut,scrollToCallback:jt}}const domIOSystem=system(()=>{const _e=stream(),lt=stream(),Rt=statefulStream(0),At=stream(),Pt=statefulStream(0),Dt=stream(),Lt=stream(),Bt=statefulStream(0),Nt=statefulStream(0),jt=statefulStream(0),Ut=statefulStream(0),Gt=stream(),qt=stream(),Xt=statefulStream(!1);return connect(pipe(_e,map(({scrollTop:Kt})=>Kt)),lt),connect(pipe(_e,map(({scrollHeight:Kt})=>Kt)),Lt),connect(lt,Pt),{scrollContainerState:_e,scrollTop:lt,viewportHeight:Dt,headerHeight:Bt,fixedHeaderHeight:Nt,fixedFooterHeight:jt,footerHeight:Ut,scrollHeight:Lt,smoothScrollTargetReached:At,scrollTo:Gt,scrollBy:qt,statefulScrollTop:Pt,deviation:Rt,scrollingInProgress:Xt}},[],{singleton:!0}),NIL_NODE={lvl:0};function newAANode(_e,lt,Rt,At=NIL_NODE,Pt=NIL_NODE){return{k:_e,v:lt,lvl:Rt,l:At,r:Pt}}function empty(_e){return _e===NIL_NODE}function newTree(){return NIL_NODE}function remove(_e,lt){if(empty(_e))return NIL_NODE;const{k:Rt,l:At,r:Pt}=_e;if(lt===Rt){if(empty(At))return Pt;if(empty(Pt))return At;{const[Dt,Lt]=last(At);return adjust(clone(_e,{k:Dt,v:Lt,l:deleteLast(At)}))}}else return ltlt&&(Bt=Bt.concat(walkWithin(Dt,lt,Rt))),At>=lt&&At<=Rt&&Bt.push({k:At,v:Pt}),At<=Rt&&(Bt=Bt.concat(walkWithin(Lt,lt,Rt))),Bt}function walk(_e){return empty(_e)?[]:[...walk(_e.l),{k:_e.k,v:_e.v},...walk(_e.r)]}function last(_e){return empty(_e.r)?[_e.k,_e.v]:last(_e.r)}function deleteLast(_e){return empty(_e.r)?_e.l:adjust(clone(_e,{r:deleteLast(_e.r)}))}function clone(_e,lt){return newAANode(lt.k!==void 0?lt.k:_e.k,lt.v!==void 0?lt.v:_e.v,lt.lvl!==void 0?lt.lvl:_e.lvl,lt.l!==void 0?lt.l:_e.l,lt.r!==void 0?lt.r:_e.r)}function isSingle(_e){return empty(_e)||_e.lvl>_e.r.lvl}function rebalance(_e){return split(skew(_e))}function adjust(_e){const{l:lt,r:Rt,lvl:At}=_e;if(Rt.lvl>=At-1&<.lvl>=At-1)return _e;if(At>Rt.lvl+1){if(isSingle(lt))return skew(clone(_e,{lvl:At-1}));if(!empty(lt)&&!empty(lt.r))return clone(lt.r,{l:clone(lt,{r:lt.r.l}),r:clone(_e,{l:lt.r.r,lvl:At-1}),lvl:At});throw new Error("Unexpected empty nodes")}else{if(isSingle(_e))return split(clone(_e,{lvl:At-1}));if(!empty(Rt)&&!empty(Rt.l)){const Pt=Rt.l,Dt=isSingle(Pt)?Rt.lvl-1:Rt.lvl;return clone(Pt,{l:clone(_e,{r:Pt.l,lvl:At-1}),r:split(clone(Rt,{l:Pt.r,lvl:Dt})),lvl:Pt.lvl+1})}else throw new Error("Unexpected empty nodes")}}function rangesWithin(_e,lt,Rt){if(empty(_e))return[];const At=findMaxKeyValue(_e,lt)[0];return toRanges(walkWithin(_e,At,Rt))}function arrayToRanges(_e,lt){const Rt=_e.length;if(Rt===0)return[];let{index:At,value:Pt}=lt(_e[0]);const Dt=[];for(let Lt=1;Lt({index:lt,value:Rt}))}function split(_e){const{r:lt,lvl:Rt}=_e;return!empty(lt)&&!empty(lt.r)&<.lvl===Rt&<.r.lvl===Rt?clone(lt,{l:clone(_e,{r:lt.l}),lvl:Rt+1}):_e}function skew(_e){const{l:lt}=_e;return!empty(lt)&<.lvl===_e.lvl?clone(lt,{r:clone(_e,{l:lt.r})}):_e}function findIndexOfClosestSmallerOrEqual(_e,lt,Rt,At=0){let Pt=_e.length-1;for(;At<=Pt;){const Dt=Math.floor((At+Pt)/2),Lt=_e[Dt],Bt=Rt(Lt,lt);if(Bt===0)return Dt;if(Bt===-1){if(Pt-At<2)return Dt-1;Pt=Dt-1}else{if(Pt===At)return Dt;At=Dt+1}}throw new Error(`Failed binary finding record in array - ${_e.join(",")}, searched for ${lt}`)}function findClosestSmallerOrEqual(_e,lt,Rt){return _e[findIndexOfClosestSmallerOrEqual(_e,lt,Rt)]}function findRange(_e,lt,Rt,At){const Pt=findIndexOfClosestSmallerOrEqual(_e,lt,At),Dt=findIndexOfClosestSmallerOrEqual(_e,Rt,At,Pt);return _e.slice(Pt,Dt+1)}const recalcSystem=system(()=>({recalcInProgress:statefulStream(!1)}),[],{singleton:!0});function rangeIncludes(_e){const{size:lt,startIndex:Rt,endIndex:At}=_e;return Pt=>Pt.start===Rt&&(Pt.end===At||Pt.end===1/0)&&Pt.value===lt}function affectedGroupCount(_e,lt){let Rt=0,At=0;for(;Rt<_e;)Rt+=lt[At+1]-lt[At]-1,At++;return At-(Rt===_e?0:1)}function insertRanges(_e,lt){let Rt=empty(_e)?0:1/0;for(const At of lt){const{size:Pt,startIndex:Dt,endIndex:Lt}=At;if(Rt=Math.min(Rt,Dt),empty(_e)){_e=insert(_e,0,Pt);continue}const Bt=rangesWithin(_e,Dt-1,Lt+1);if(Bt.some(rangeIncludes(At)))continue;let Nt=!1,jt=!1;for(const{start:Ut,end:Gt,value:qt}of Bt)Nt?(Lt>=Ut||Pt===qt)&&(_e=remove(_e,Ut)):(jt=qt!==Pt,Nt=!0),Gt>Lt&&Lt>=Ut&&qt!==Pt&&(_e=insert(_e,Lt+1,qt));jt&&(_e=insert(_e,Dt,Pt))}return[_e,Rt]}function initialSizeState(){return{offsetTree:[],sizeTree:newTree(),groupOffsetTree:newTree(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function indexComparator({index:_e},lt){return lt===_e?0:lt<_e?-1:1}function offsetComparator({offset:_e},lt){return lt===_e?0:lt<_e?-1:1}function offsetPointParser(_e){return{index:_e.index,value:_e}}function rangesWithinOffsets(_e,lt,Rt,At=0){return At>0&&(lt=Math.max(lt,findClosestSmallerOrEqual(_e,At,indexComparator).offset)),arrayToRanges(findRange(_e,lt,Rt,offsetComparator),offsetPointParser)}function createOffsetTree(_e,lt,Rt,At){let Pt=_e,Dt=0,Lt=0,Bt=0,Nt=0;if(lt!==0){Nt=findIndexOfClosestSmallerOrEqual(Pt,lt-1,indexComparator),Bt=Pt[Nt].offset;const Ut=findMaxKeyValue(Rt,lt-1);Dt=Ut[0],Lt=Ut[1],Pt.length&&Pt[Nt].size===findMaxKeyValue(Rt,lt)[1]&&(Nt-=1),Pt=Pt.slice(0,Nt+1)}else Pt=[];for(const{start:jt,value:Ut}of rangesWithin(Rt,lt,1/0)){const Gt=jt-Dt,qt=Gt*Lt+Bt+Gt*At;Pt.push({offset:qt,size:Ut,index:jt}),Dt=jt,Bt=qt,Lt=Ut}return{offsetTree:Pt,lastIndex:Dt,lastOffset:Bt,lastSize:Lt}}function sizeStateReducer(_e,[lt,Rt,At,Pt]){lt.length>0&&At("received item sizes",lt,LogLevel.DEBUG);const Dt=_e.sizeTree;let Lt=Dt,Bt=0;if(Rt.length>0&&empty(Dt)&<.length===2){const qt=lt[0].size,Xt=lt[1].size;Lt=Rt.reduce((Kt,Zt)=>insert(insert(Kt,Zt,qt),Zt+1,Xt),Lt)}else[Lt,Bt]=insertRanges(Lt,lt);if(Lt===Dt)return _e;const{offsetTree:Nt,lastIndex:jt,lastSize:Ut,lastOffset:Gt}=createOffsetTree(_e.offsetTree,Bt,Lt,Pt);return{sizeTree:Lt,offsetTree:Nt,lastIndex:jt,lastOffset:Gt,lastSize:Ut,groupOffsetTree:Rt.reduce((qt,Xt)=>insert(qt,Xt,offsetOf(Xt,Nt,Pt)),newTree()),groupIndices:Rt}}function offsetOf(_e,lt,Rt){if(lt.length===0)return 0;const{offset:At,index:Pt,size:Dt}=findClosestSmallerOrEqual(lt,_e,indexComparator),Lt=_e-Pt,Bt=Dt*Lt+(Lt-1)*Rt+At;return Bt>0?Bt+Rt:Bt}function isGroupLocation(_e){return typeof _e.groupIndex<"u"}function originalIndexFromLocation(_e,lt,Rt){if(isGroupLocation(_e))return lt.groupIndices[_e.groupIndex]+1;{const At=_e.index==="LAST"?Rt:_e.index;let Pt=originalIndexFromItemIndex(At,lt);return Pt=Math.max(0,Pt,Math.min(Rt,Pt)),Pt}}function originalIndexFromItemIndex(_e,lt){if(!hasGroups(lt))return _e;let Rt=0;for(;lt.groupIndices[Rt]<=_e+Rt;)Rt++;return _e+Rt}function hasGroups(_e){return!empty(_e.groupOffsetTree)}function sizeTreeToRanges(_e){return walk(_e).map(({k:lt,v:Rt},At,Pt)=>{const Dt=Pt[At+1],Lt=Dt?Dt.k-1:1/0;return{startIndex:lt,endIndex:Lt,size:Rt}})}const SIZE_MAP={offsetHeight:"height",offsetWidth:"width"},sizeSystem=system(([{log:_e},{recalcInProgress:lt}])=>{const Rt=stream(),At=stream(),Pt=statefulStreamFromEmitter(At,0),Dt=stream(),Lt=stream(),Bt=statefulStream(0),Nt=statefulStream([]),jt=statefulStream(void 0),Ut=statefulStream(void 0),Gt=statefulStream((cn,un)=>correctItemSize(cn,SIZE_MAP[un])),qt=statefulStream(void 0),Xt=statefulStream(0),Kt=initialSizeState(),Zt=statefulStreamFromEmitter(pipe(Rt,withLatestFrom(Nt,_e,Xt),scan(sizeStateReducer,Kt),distinctUntilChanged()),Kt),Qt=statefulStreamFromEmitter(pipe(Nt,distinctUntilChanged(),scan((cn,un)=>({prev:cn.current,current:un}),{prev:[],current:[]}),map(({prev:cn})=>cn)),[]);connect(pipe(Nt,filter(cn=>cn.length>0),withLatestFrom(Zt,Xt),map(([cn,un,rn])=>{const sn=cn.reduce((pn,bn,gn)=>insert(pn,bn,offsetOf(bn,un.offsetTree,rn)||gn),newTree());return{...un,groupIndices:cn,groupOffsetTree:sn}})),Zt),connect(pipe(At,withLatestFrom(Zt),filter(([cn,{lastIndex:un}])=>cn[{startIndex:cn,endIndex:un,size:rn}])),Rt),connect(jt,Ut);const Jt=statefulStreamFromEmitter(pipe(jt,map(cn=>cn===void 0)),!0);connect(pipe(Ut,filter(cn=>cn!==void 0&&empty(getValue(Zt).sizeTree)),map(cn=>[{startIndex:0,endIndex:0,size:cn}])),Rt);const en=streamFromEmitter(pipe(Rt,withLatestFrom(Zt),scan(({sizes:cn},[un,rn])=>({changed:rn!==cn,sizes:rn}),{changed:!1,sizes:Kt}),map(cn=>cn.changed)));subscribe(pipe(Bt,scan((cn,un)=>({diff:cn.prev-un,prev:un}),{diff:0,prev:0}),map(cn=>cn.diff)),cn=>{const{groupIndices:un}=getValue(Zt);if(cn>0)publish(lt,!0),publish(Dt,cn+affectedGroupCount(cn,un));else if(cn<0){const rn=getValue(Qt);rn.length>0&&(cn-=affectedGroupCount(-cn,rn)),publish(Lt,cn)}}),subscribe(pipe(Bt,withLatestFrom(_e)),([cn,un])=>{cn<0&&un("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:Bt},LogLevel.ERROR)});const tn=streamFromEmitter(Dt);connect(pipe(Dt,withLatestFrom(Zt),map(([cn,un])=>{const rn=un.groupIndices.length>0,sn=[],pn=un.lastSize;if(rn){const bn=find(un.sizeTree,0);let gn=0,_n=0;for(;gn{let Cn=Mn.ranges;return Mn.prevSize!==0&&(Cn=[...Mn.ranges,{startIndex:Mn.prevIndex,endIndex:Tn+cn-1,size:Mn.prevSize}]),{ranges:Cn,prevIndex:Tn+cn,prevSize:An}},{ranges:sn,prevIndex:cn,prevSize:0}).ranges}return walk(un.sizeTree).reduce((bn,{k:gn,v:_n})=>({ranges:[...bn.ranges,{startIndex:bn.prevIndex,endIndex:gn+cn-1,size:bn.prevSize}],prevIndex:gn+cn,prevSize:_n}),{ranges:[],prevIndex:0,prevSize:pn}).ranges})),Rt);const an=streamFromEmitter(pipe(Lt,withLatestFrom(Zt,Xt),map(([cn,{offsetTree:un},rn])=>{const sn=-cn;return offsetOf(sn,un,rn)})));return connect(pipe(Lt,withLatestFrom(Zt,Xt),map(([cn,un,rn])=>{if(un.groupIndices.length>0){if(empty(un.sizeTree))return un;let pn=newTree();const bn=getValue(Qt);let gn=0,_n=0,xn=0;for(;gn<-cn;){xn=bn[_n];const Mn=bn[_n+1]-xn-1;_n++,gn+=Mn+1}if(pn=walk(un.sizeTree).reduce((Mn,{k:Tn,v:An})=>insert(Mn,Math.max(0,Tn+cn),An),pn),gn!==-cn){const Mn=find(un.sizeTree,xn);pn=insert(pn,0,Mn);const Tn=findMaxKeyValue(un.sizeTree,-cn+1)[1];pn=insert(pn,1,Tn)}return{...un,sizeTree:pn,...createOffsetTree(un.offsetTree,0,pn,rn)}}else{const pn=walk(un.sizeTree).reduce((bn,{k:gn,v:_n})=>insert(bn,Math.max(0,gn+cn),_n),newTree());return{...un,sizeTree:pn,...createOffsetTree(un.offsetTree,0,pn,rn)}}})),Zt),{data:qt,totalCount:At,sizeRanges:Rt,groupIndices:Nt,defaultItemSize:Ut,fixedItemSize:jt,unshiftWith:Dt,shiftWith:Lt,shiftWithOffset:an,beforeUnshiftWith:tn,firstItemIndex:Bt,gap:Xt,sizes:Zt,listRefresh:en,statefulTotalCount:Pt,trackItemSizes:Jt,itemSize:Gt}},tup(loggerSystem,recalcSystem),{singleton:!0}),SUPPORTS_SCROLL_TO_OPTIONS=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function normalizeIndexLocation(_e){const lt=typeof _e=="number"?{index:_e}:_e;return lt.align||(lt.align="start"),(!lt.behavior||!SUPPORTS_SCROLL_TO_OPTIONS)&&(lt.behavior="auto"),lt.offset||(lt.offset=0),lt}const scrollToIndexSystem=system(([{sizes:_e,totalCount:lt,listRefresh:Rt,gap:At},{scrollingInProgress:Pt,viewportHeight:Dt,scrollTo:Lt,smoothScrollTargetReached:Bt,headerHeight:Nt,footerHeight:jt,fixedHeaderHeight:Ut,fixedFooterHeight:Gt},{log:qt}])=>{const Xt=stream(),Kt=statefulStream(0);let Zt=null,Qt=null,Jt=null;function en(){Zt&&(Zt(),Zt=null),Jt&&(Jt(),Jt=null),Qt&&(clearTimeout(Qt),Qt=null),publish(Pt,!1)}return connect(pipe(Xt,withLatestFrom(_e,Dt,lt,Kt,Nt,jt,qt),withLatestFrom(At,Ut,Gt),map(([[tn,an,cn,un,rn,sn,pn,bn],gn,_n,xn])=>{const ln=normalizeIndexLocation(tn),{align:Mn,behavior:Tn,offset:An}=ln,Cn=un-1,wn=originalIndexFromLocation(ln,an,Cn);let Fn=offsetOf(wn,an.offsetTree,gn)+sn;Mn==="end"?(Fn+=_n+findMaxKeyValue(an.sizeTree,wn)[1]-cn+xn,wn===Cn&&(Fn+=pn)):Mn==="center"?Fn+=(_n+findMaxKeyValue(an.sizeTree,wn)[1]-cn+xn)/2:Fn-=rn,An&&(Fn+=An);const $n=Pn=>{en(),Pn?(bn("retrying to scroll to",{location:tn},LogLevel.DEBUG),publish(Xt,tn)):bn("list did not change, scroll successful",{},LogLevel.DEBUG)};if(en(),Tn==="smooth"){let Pn=!1;Jt=subscribe(Rt,Vn=>{Pn=Pn||Vn}),Zt=handleNext(Bt,()=>{$n(Pn)})}else Zt=handleNext(pipe(Rt,watchChangesFor(150)),$n);return Qt=setTimeout(()=>{en()},1200),publish(Pt,!0),bn("scrolling from index to",{index:wn,top:Fn,behavior:Tn},LogLevel.DEBUG),{top:Fn,behavior:Tn}})),Lt),{scrollToIndex:Xt,topListHeight:Kt}},tup(sizeSystem,domIOSystem,loggerSystem),{singleton:!0});function watchChangesFor(_e){return lt=>{const Rt=setTimeout(()=>{lt(!1)},_e);return At=>{At&&(lt(!0),clearTimeout(Rt))}}}const UP="up",DOWN="down",NONE$1="none",INITIAL_BOTTOM_STATE={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},DEFAULT_AT_TOP_THRESHOLD=0,stateFlagsSystem=system(([{scrollContainerState:_e,scrollTop:lt,viewportHeight:Rt,headerHeight:At,footerHeight:Pt,scrollBy:Dt}])=>{const Lt=statefulStream(!1),Bt=statefulStream(!0),Nt=stream(),jt=stream(),Ut=statefulStream(4),Gt=statefulStream(DEFAULT_AT_TOP_THRESHOLD),qt=statefulStreamFromEmitter(pipe(merge(pipe(duc(lt),skip(1),mapTo(!0)),pipe(duc(lt),skip(1),mapTo(!1),debounceTime(100))),distinctUntilChanged()),!1),Xt=statefulStreamFromEmitter(pipe(merge(pipe(Dt,mapTo(!0)),pipe(Dt,mapTo(!1),debounceTime(200))),distinctUntilChanged()),!1);connect(pipe(combineLatest(duc(lt),duc(Gt)),map(([en,tn])=>en<=tn),distinctUntilChanged()),Bt),connect(pipe(Bt,throttleTime(50)),jt);const Kt=streamFromEmitter(pipe(combineLatest(_e,duc(Rt),duc(At),duc(Pt),duc(Ut)),scan((en,[{scrollTop:tn,scrollHeight:an},cn,un,rn,sn])=>{const pn=tn+cn-an>-sn,bn={viewportHeight:cn,scrollTop:tn,scrollHeight:an};if(pn){let _n,xn;return tn>en.state.scrollTop?(_n="SCROLLED_DOWN",xn=en.state.scrollTop-tn):(_n="SIZE_DECREASED",xn=en.state.scrollTop-tn||en.scrollTopDelta),{atBottom:!0,state:bn,atBottomBecause:_n,scrollTopDelta:xn}}let gn;return bn.scrollHeight>en.state.scrollHeight?gn="SIZE_INCREASED":cnen&&en.atBottom===tn.atBottom))),Zt=statefulStreamFromEmitter(pipe(_e,scan((en,{scrollTop:tn,scrollHeight:an,viewportHeight:cn})=>{if(approximatelyEqual(en.scrollHeight,an))return{scrollTop:tn,scrollHeight:an,jump:0,changed:!1};{const un=an-(tn+cn)<1;return en.scrollTop!==tn&&un?{scrollHeight:an,scrollTop:tn,jump:en.scrollTop-tn,changed:!0}:{scrollHeight:an,scrollTop:tn,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),filter(en=>en.changed),map(en=>en.jump)),0);connect(pipe(Kt,map(en=>en.atBottom)),Lt),connect(pipe(Lt,throttleTime(50)),Nt);const Qt=statefulStream(DOWN);connect(pipe(_e,map(({scrollTop:en})=>en),distinctUntilChanged(),scan((en,tn)=>getValue(Xt)?{direction:en.direction,prevScrollTop:tn}:{direction:tnen.direction)),Qt),connect(pipe(_e,throttleTime(50),mapTo(NONE$1)),Qt);const Jt=statefulStream(0);return connect(pipe(qt,filter(en=>!en),mapTo(0)),Jt),connect(pipe(lt,throttleTime(100),withLatestFrom(qt),filter(([en,tn])=>!!tn),scan(([en,tn],[an])=>[tn,an],[0,0]),map(([en,tn])=>tn-en)),Jt),{isScrolling:qt,isAtTop:Bt,isAtBottom:Lt,atBottomState:Kt,atTopStateChange:jt,atBottomStateChange:Nt,scrollDirection:Qt,atBottomThreshold:Ut,atTopThreshold:Gt,scrollVelocity:Jt,lastJumpDueToItemResize:Zt}},tup(domIOSystem)),propsReadySystem=system(([{log:_e}])=>{const lt=statefulStream(!1),Rt=streamFromEmitter(pipe(lt,filter(At=>At),distinctUntilChanged()));return subscribe(lt,At=>{At&&getValue(_e)("props updated",{},LogLevel.DEBUG)}),{propsReady:lt,didMount:Rt}},tup(loggerSystem),{singleton:!0});function skipFrames(_e,lt){_e==0?lt():requestAnimationFrame(()=>skipFrames(_e-1,lt))}function getInitialTopMostItemIndexNumber(_e,lt){const Rt=lt-1;return typeof _e=="number"?_e:_e.index==="LAST"?Rt:_e.index}const initialTopMostItemIndexSystem=system(([{sizes:_e,listRefresh:lt,defaultItemSize:Rt},{scrollTop:At},{scrollToIndex:Pt},{didMount:Dt}])=>{const Lt=statefulStream(!0),Bt=statefulStream(0),Nt=statefulStream(!1);return connect(pipe(Dt,withLatestFrom(Bt),filter(([jt,Ut])=>!!Ut),mapTo(!1)),Lt),subscribe(pipe(combineLatest(lt,Dt),withLatestFrom(Lt,_e,Rt,Nt),filter(([[,jt],Ut,{sizeTree:Gt},qt,Xt])=>jt&&(!empty(Gt)||isDefined(qt))&&!Ut&&!Xt),withLatestFrom(Bt)),([,jt])=>{publish(Nt,!0),skipFrames(3,()=>{handleNext(At,()=>publish(Lt,!0)),publish(Pt,jt)})}),{scrolledToInitialItem:Lt,initialTopMostItemIndex:Bt}},tup(sizeSystem,domIOSystem,scrollToIndexSystem,propsReadySystem),{singleton:!0});function normalizeFollowOutput(_e){return _e?_e==="smooth"?"smooth":"auto":!1}const behaviorFromFollowOutput=(_e,lt)=>typeof _e=="function"?normalizeFollowOutput(_e(lt)):lt&&normalizeFollowOutput(_e),followOutputSystem=system(([{totalCount:_e,listRefresh:lt},{isAtBottom:Rt,atBottomState:At},{scrollToIndex:Pt},{scrolledToInitialItem:Dt},{propsReady:Lt,didMount:Bt},{log:Nt},{scrollingInProgress:jt}])=>{const Ut=statefulStream(!1),Gt=stream();let qt=null;function Xt(Zt){publish(Pt,{index:"LAST",align:"end",behavior:Zt})}subscribe(pipe(combineLatest(pipe(duc(_e),skip(1)),Bt),withLatestFrom(duc(Ut),Rt,Dt,jt),map(([[Zt,Qt],Jt,en,tn,an])=>{let cn=Qt&&tn,un="auto";return cn&&(un=behaviorFromFollowOutput(Jt,en||an),cn=cn&&!!un),{totalCount:Zt,shouldFollow:cn,followOutputBehavior:un}}),filter(({shouldFollow:Zt})=>Zt)),({totalCount:Zt,followOutputBehavior:Qt})=>{qt&&(qt(),qt=null),qt=handleNext(lt,()=>{getValue(Nt)("following output to ",{totalCount:Zt},LogLevel.DEBUG),Xt(Qt),qt=null})});function Kt(Zt){const Qt=handleNext(At,Jt=>{Zt&&!Jt.atBottom&&Jt.notAtBottomBecause==="SIZE_INCREASED"&&!qt&&(getValue(Nt)("scrolling to bottom due to increased size",{},LogLevel.DEBUG),Xt("auto"))});setTimeout(Qt,100)}return subscribe(pipe(combineLatest(duc(Ut),_e,Lt),filter(([Zt,,Qt])=>Zt&&Qt),scan(({value:Zt},[,Qt])=>({refreshed:Zt===Qt,value:Qt}),{refreshed:!1,value:0}),filter(({refreshed:Zt})=>Zt),withLatestFrom(Ut,_e)),([,Zt])=>{Kt(Zt!==!1)}),subscribe(Gt,()=>{Kt(getValue(Ut)!==!1)}),subscribe(combineLatest(duc(Ut),At),([Zt,Qt])=>{Zt&&!Qt.atBottom&&Qt.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&Xt("auto")}),{followOutput:Ut,autoscrollToBottom:Gt}},tup(sizeSystem,stateFlagsSystem,scrollToIndexSystem,initialTopMostItemIndexSystem,propsReadySystem,loggerSystem,domIOSystem));function groupCountsToIndicesAndCount(_e){return _e.reduce((lt,Rt)=>(lt.groupIndices.push(lt.totalCount),lt.totalCount+=Rt+1,lt),{totalCount:0,groupIndices:[]})}const groupedListSystem=system(([{totalCount:_e,groupIndices:lt,sizes:Rt},{scrollTop:At,headerHeight:Pt}])=>{const Dt=stream(),Lt=stream(),Bt=streamFromEmitter(pipe(Dt,map(groupCountsToIndicesAndCount)));return connect(pipe(Bt,map(Nt=>Nt.totalCount)),_e),connect(pipe(Bt,map(Nt=>Nt.groupIndices)),lt),connect(pipe(combineLatest(At,Rt,Pt),filter(([Nt,jt])=>hasGroups(jt)),map(([Nt,jt,Ut])=>findMaxKeyValue(jt.groupOffsetTree,Math.max(Nt-Ut,0),"v")[0]),distinctUntilChanged(),map(Nt=>[Nt])),Lt),{groupCounts:Dt,topItemsIndexes:Lt}},tup(sizeSystem,domIOSystem));function tupleComparator(_e,lt){return!!(_e&&_e[0]===lt[0]&&_e[1]===lt[1])}function rangeComparator(_e,lt){return!!(_e&&_e.startIndex===lt.startIndex&&_e.endIndex===lt.endIndex)}const TOP="top",BOTTOM="bottom",NONE="none";function getOverscan(_e,lt,Rt){return typeof _e=="number"?Rt===UP&<===TOP||Rt===DOWN&<===BOTTOM?_e:0:Rt===UP?lt===TOP?_e.main:_e.reverse:lt===BOTTOM?_e.main:_e.reverse}function getViewportIncrease(_e,lt){return typeof _e=="number"?_e:_e[lt]||0}const sizeRangeSystem=system(([{scrollTop:_e,viewportHeight:lt,deviation:Rt,headerHeight:At,fixedHeaderHeight:Pt}])=>{const Dt=stream(),Lt=statefulStream(0),Bt=statefulStream(0),Nt=statefulStream(0),jt=statefulStreamFromEmitter(pipe(combineLatest(duc(_e),duc(lt),duc(At),duc(Dt,tupleComparator),duc(Nt),duc(Lt),duc(Pt),duc(Rt),duc(Bt)),map(([Ut,Gt,qt,[Xt,Kt],Zt,Qt,Jt,en,tn])=>{const an=Ut-en,cn=Qt+Jt,un=Math.max(qt-an,0);let rn=NONE;const sn=getViewportIncrease(tn,TOP),pn=getViewportIncrease(tn,BOTTOM);return Xt-=en,Xt+=qt+Jt,Kt+=qt+Jt,Kt-=en,Xt>Ut+cn-sn&&(rn=UP),KtUt!=null),distinctUntilChanged(tupleComparator)),[0,0]);return{listBoundary:Dt,overscan:Nt,topListHeight:Lt,increaseViewportBy:Bt,visibleRange:jt}},tup(domIOSystem),{singleton:!0});function probeItemSet(_e,lt,Rt){if(hasGroups(lt)){const At=originalIndexFromItemIndex(_e,lt);return[{index:findMaxKeyValue(lt.groupOffsetTree,At)[0],size:0,offset:0},{index:At,size:0,offset:0,data:Rt&&Rt[0]}]}return[{index:_e,size:0,offset:0,data:Rt&&Rt[0]}]}const EMPTY_LIST_STATE={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function transposeItems(_e,lt,Rt){if(_e.length===0)return[];if(!hasGroups(lt))return _e.map(jt=>({...jt,index:jt.index+Rt,originalIndex:jt.index}));const At=_e[0].index,Pt=_e[_e.length-1].index,Dt=[],Lt=rangesWithin(lt.groupOffsetTree,At,Pt);let Bt,Nt=0;for(const jt of _e){(!Bt||Bt.end0){jt=_e[0].offset;const Zt=_e[_e.length-1];Ut=Zt.offset+Zt.size}const Gt=Rt-Nt,qt=Bt+Gt*Lt+(Gt-1)*At,Xt=jt,Kt=qt-Ut;return{items:transposeItems(_e,Pt,Dt),topItems:transposeItems(lt,Pt,Dt),topListHeight:lt.reduce((Zt,Qt)=>Qt.size+Zt,0),offsetTop:jt,offsetBottom:Kt,top:Xt,bottom:Ut,totalCount:Rt,firstItemIndex:Dt}}function buildListStateFromItemCount(_e,lt,Rt,At,Pt,Dt){let Lt=0;if(Rt.groupIndices.length>0)for(const Ut of Rt.groupIndices){if(Ut-Lt>=_e)break;Lt++}const Bt=_e+Lt,Nt=getInitialTopMostItemIndexNumber(lt,Bt),jt=Array.from({length:Bt}).map((Ut,Gt)=>({index:Gt+Nt,size:0,offset:0,data:Dt[Gt+Nt]}));return buildListState(jt,[],Bt,Pt,Rt,At)}const listStateSystem=system(([{sizes:_e,totalCount:lt,data:Rt,firstItemIndex:At,gap:Pt},Dt,{visibleRange:Lt,listBoundary:Bt,topListHeight:Nt},{scrolledToInitialItem:jt,initialTopMostItemIndex:Ut},{topListHeight:Gt},qt,{didMount:Xt},{recalcInProgress:Kt}])=>{const Zt=statefulStream([]),Qt=statefulStream(0),Jt=stream();connect(Dt.topItemsIndexes,Zt);const en=statefulStreamFromEmitter(pipe(combineLatest(Xt,Kt,duc(Lt,tupleComparator),duc(lt),duc(_e),duc(Ut),jt,duc(Zt),duc(At),duc(Pt),Rt),filter(([un,rn,,sn,,,,,,,pn])=>{const bn=pn&&pn.length!==sn;return un&&!rn&&!bn}),map(([,,[un,rn],sn,pn,bn,gn,_n,xn,ln,Mn])=>{const Tn=pn,{sizeTree:An,offsetTree:Cn}=Tn,wn=getValue(Qt);if(sn===0)return{...EMPTY_LIST_STATE,totalCount:sn};if(un===0&&rn===0)return wn===0?{...EMPTY_LIST_STATE,totalCount:sn}:buildListStateFromItemCount(wn,bn,pn,xn,ln,Mn||[]);if(empty(An))return wn>0?null:buildListState(probeItemSet(getInitialTopMostItemIndexNumber(bn,sn),Tn,Mn),[],sn,ln,Tn,xn);const Fn=[];if(_n.length>0){const tr=_n[0],vn=_n[_n.length-1];let En=0;for(const kn of rangesWithin(An,tr,vn)){const zn=kn.value,dn=Math.max(kn.start,tr),hn=Math.min(kn.end,vn);for(let yn=dn;yn<=hn;yn++)Fn.push({index:yn,size:zn,offset:En,data:Mn&&Mn[yn]}),En+=zn}}if(!gn)return buildListState([],Fn,sn,ln,Tn,xn);const $n=_n.length>0?_n[_n.length-1]+1:0,Pn=rangesWithinOffsets(Cn,un,rn,$n);if(Pn.length===0)return null;const Vn=sn-1,Zn=tap([],tr=>{for(const vn of Pn){const En=vn.value;let kn=En.offset,zn=vn.start;const dn=En.size;if(En.offset=rn);yn++)tr.push({index:yn,size:dn,offset:kn,data:Mn&&Mn[yn]}),kn+=dn+ln}});return buildListState(Zn,Fn,sn,ln,Tn,xn)}),filter(un=>un!==null),distinctUntilChanged()),EMPTY_LIST_STATE);connect(pipe(Rt,filter(isDefined),map(un=>un==null?void 0:un.length)),lt),connect(pipe(en,map(un=>un.topListHeight)),Gt),connect(Gt,Nt),connect(pipe(en,map(un=>[un.top,un.bottom])),Bt),connect(pipe(en,map(un=>un.items)),Jt);const tn=streamFromEmitter(pipe(en,filter(({items:un})=>un.length>0),withLatestFrom(lt,Rt),filter(([{items:un},rn])=>un[un.length-1].originalIndex===rn-1),map(([,un,rn])=>[un-1,rn]),distinctUntilChanged(tupleComparator),map(([un])=>un))),an=streamFromEmitter(pipe(en,throttleTime(200),filter(({items:un,topItems:rn})=>un.length>0&&un[0].originalIndex===rn.length),map(({items:un})=>un[0].index),distinctUntilChanged())),cn=streamFromEmitter(pipe(en,filter(({items:un})=>un.length>0),map(({items:un})=>{let rn=0,sn=un.length-1;for(;un[rn].type==="group"&&rnrn;)sn--;return{startIndex:un[rn].index,endIndex:un[sn].index}}),distinctUntilChanged(rangeComparator)));return{listState:en,topItemsIndexes:Zt,endReached:tn,startReached:an,rangeChanged:cn,itemsRendered:Jt,initialItemCount:Qt,...qt}},tup(sizeSystem,groupedListSystem,sizeRangeSystem,initialTopMostItemIndexSystem,scrollToIndexSystem,stateFlagsSystem,propsReadySystem,recalcSystem),{singleton:!0}),initialItemCountSystem=system(([{sizes:_e,firstItemIndex:lt,data:Rt,gap:At},{initialTopMostItemIndex:Pt},{initialItemCount:Dt,listState:Lt},{didMount:Bt}])=>(connect(pipe(Bt,withLatestFrom(Dt),filter(([,Nt])=>Nt!==0),withLatestFrom(Pt,_e,lt,At,Rt),map(([[,Nt],jt,Ut,Gt,qt,Xt=[]])=>buildListStateFromItemCount(Nt,jt,Ut,Gt,qt,Xt))),Lt),{}),tup(sizeSystem,initialTopMostItemIndexSystem,listStateSystem,propsReadySystem),{singleton:!0}),scrollSeekSystem=system(([{scrollVelocity:_e}])=>{const lt=statefulStream(!1),Rt=stream(),At=statefulStream(!1);return connect(pipe(_e,withLatestFrom(At,lt,Rt),filter(([Pt,Dt])=>!!Dt),map(([Pt,Dt,Lt,Bt])=>{const{exit:Nt,enter:jt}=Dt;if(Lt){if(Nt(Pt,Bt))return!1}else if(jt(Pt,Bt))return!0;return Lt}),distinctUntilChanged()),lt),subscribe(pipe(combineLatest(lt,_e,Rt),withLatestFrom(At)),([[Pt,Dt,Lt],Bt])=>Pt&&Bt&&Bt.change&&Bt.change(Dt,Lt)),{isSeeking:lt,scrollSeekConfiguration:At,scrollVelocity:_e,scrollSeekRangeChanged:Rt}},tup(stateFlagsSystem),{singleton:!0}),topItemCountSystem=system(([{topItemsIndexes:_e}])=>{const lt=statefulStream(0);return connect(pipe(lt,filter(Rt=>Rt>0),map(Rt=>Array.from({length:Rt}).map((At,Pt)=>Pt))),_e),{topItemCount:lt}},tup(listStateSystem)),totalListHeightSystem=system(([{footerHeight:_e,headerHeight:lt,fixedHeaderHeight:Rt,fixedFooterHeight:At},{listState:Pt}])=>{const Dt=stream(),Lt=statefulStreamFromEmitter(pipe(combineLatest(_e,At,lt,Rt,Pt),map(([Bt,Nt,jt,Ut,Gt])=>Bt+Nt+jt+Ut+Gt.offsetBottom+Gt.bottom)),0);return connect(duc(Lt),Dt),{totalListHeight:Lt,totalListHeightChanged:Dt}},tup(domIOSystem,listStateSystem),{singleton:!0});function simpleMemoize(_e){let lt=!1,Rt;return()=>(lt||(lt=!0,Rt=_e()),Rt)}const isMobileSafari=simpleMemoize(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),upwardScrollFixSystem=system(([{scrollBy:_e,scrollTop:lt,deviation:Rt,scrollingInProgress:At},{isScrolling:Pt,isAtBottom:Dt,scrollDirection:Lt,lastJumpDueToItemResize:Bt},{listState:Nt},{beforeUnshiftWith:jt,shiftWithOffset:Ut,sizes:Gt,gap:qt},{log:Xt},{recalcInProgress:Kt}])=>{const Zt=streamFromEmitter(pipe(Nt,withLatestFrom(Bt),scan(([,Jt,en,tn],[{items:an,totalCount:cn,bottom:un,offsetBottom:rn},sn])=>{const pn=un+rn;let bn=0;return en===cn&&Jt.length>0&&an.length>0&&(an[0].originalIndex===0&&Jt[0].originalIndex===0||(bn=pn-tn,bn!==0&&(bn+=sn))),[bn,an,cn,pn]},[0,[],0,0]),filter(([Jt])=>Jt!==0),withLatestFrom(lt,Lt,At,Dt,Xt,Kt),filter(([,Jt,en,tn,,,an])=>!an&&!tn&&Jt!==0&&en===UP),map(([[Jt],,,,,en])=>(en("Upward scrolling compensation",{amount:Jt},LogLevel.DEBUG),Jt))));function Qt(Jt){Jt>0?(publish(_e,{top:-Jt,behavior:"auto"}),publish(Rt,0)):(publish(Rt,0),publish(_e,{top:-Jt,behavior:"auto"}))}return subscribe(pipe(Zt,withLatestFrom(Rt,Pt)),([Jt,en,tn])=>{tn&&isMobileSafari()?publish(Rt,en-Jt):Qt(-Jt)}),subscribe(pipe(combineLatest(statefulStreamFromEmitter(Pt,!1),Rt,Kt),filter(([Jt,en,tn])=>!Jt&&!tn&&en!==0),map(([Jt,en])=>en),throttleTime(1)),Qt),connect(pipe(Ut,map(Jt=>({top:-Jt}))),_e),subscribe(pipe(jt,withLatestFrom(Gt,qt),map(([Jt,{lastSize:en,groupIndices:tn,sizeTree:an},cn])=>{function un(rn){return rn*(en+cn)}if(tn.length===0)return un(Jt);{let rn=0;const sn=find(an,0);let pn=0,bn=0;for(;pnJt&&(rn-=sn,gn=Jt-pn+1),pn+=gn,rn+=un(gn),bn++}return rn}})),Jt=>{publish(Rt,Jt),requestAnimationFrame(()=>{publish(_e,{top:Jt}),requestAnimationFrame(()=>{publish(Rt,0),publish(Kt,!1)})})}),{deviation:Rt}},tup(domIOSystem,stateFlagsSystem,listStateSystem,sizeSystem,loggerSystem,recalcSystem)),initialScrollTopSystem=system(([{didMount:_e},{scrollTo:lt},{listState:Rt}])=>{const At=statefulStream(0);return subscribe(pipe(_e,withLatestFrom(At),filter(([,Pt])=>Pt!==0),map(([,Pt])=>({top:Pt}))),Pt=>{handleNext(pipe(Rt,skip(1),filter(Dt=>Dt.items.length>1)),()=>{requestAnimationFrame(()=>{publish(lt,Pt)})})}),{initialScrollTop:At}},tup(propsReadySystem,domIOSystem,listStateSystem),{singleton:!0}),alignToBottomSystem=system(([{viewportHeight:_e},{totalListHeight:lt}])=>{const Rt=statefulStream(!1),At=statefulStreamFromEmitter(pipe(combineLatest(Rt,_e,lt),filter(([Pt])=>Pt),map(([,Pt,Dt])=>Math.max(0,Pt-Dt)),throttleTime(0),distinctUntilChanged()),0);return{alignToBottom:Rt,paddingTopAddition:At}},tup(domIOSystem,totalListHeightSystem),{singleton:!0}),windowScrollerSystem=system(([{scrollTo:_e,scrollContainerState:lt}])=>{const Rt=stream(),At=stream(),Pt=stream(),Dt=statefulStream(!1),Lt=statefulStream(void 0);return connect(pipe(combineLatest(Rt,At),map(([{viewportHeight:Bt,scrollTop:Nt,scrollHeight:jt},{offsetTop:Ut}])=>({scrollTop:Math.max(0,Nt-Ut),scrollHeight:jt,viewportHeight:Bt}))),lt),connect(pipe(_e,withLatestFrom(At),map(([Bt,{offsetTop:Nt}])=>({...Bt,top:Bt.top+Nt}))),Pt),{useWindowScroll:Dt,customScrollParent:Lt,windowScrollContainerState:Rt,windowViewportRect:At,windowScrollTo:Pt}},tup(domIOSystem)),defaultCalculateViewLocation=({itemTop:_e,itemBottom:lt,viewportTop:Rt,viewportBottom:At,locationParams:{behavior:Pt,align:Dt,...Lt}})=>_eAt?{...Lt,behavior:Pt,align:Dt??"end"}:null,scrollIntoViewSystem=system(([{sizes:_e,totalCount:lt,gap:Rt},{scrollTop:At,viewportHeight:Pt,headerHeight:Dt,fixedHeaderHeight:Lt,fixedFooterHeight:Bt,scrollingInProgress:Nt},{scrollToIndex:jt}])=>{const Ut=stream();return connect(pipe(Ut,withLatestFrom(_e,Pt,lt,Dt,Lt,Bt,At),withLatestFrom(Rt),map(([[Gt,qt,Xt,Kt,Zt,Qt,Jt,en],tn])=>{const{done:an,behavior:cn,align:un,calculateViewLocation:rn=defaultCalculateViewLocation,...sn}=Gt,pn=originalIndexFromLocation(Gt,qt,Kt-1),bn=offsetOf(pn,qt.offsetTree,tn)+Zt+Qt,gn=bn+findMaxKeyValue(qt.sizeTree,pn)[1],_n=en+Qt,xn=en+Xt-Jt,ln=rn({itemTop:bn,itemBottom:gn,viewportTop:_n,viewportBottom:xn,locationParams:{behavior:cn,align:un,...sn}});return ln?an&&handleNext(pipe(Nt,filter(Mn=>Mn===!1),skip(getValue(Nt)?1:2)),an):an&&an(),ln}),filter(Gt=>Gt!==null)),jt),{scrollIntoView:Ut}},tup(sizeSystem,domIOSystem,scrollToIndexSystem,listStateSystem,loggerSystem),{singleton:!0}),stateLoadSystem=system(([{sizes:_e,sizeRanges:lt},{scrollTop:Rt},{initialTopMostItemIndex:At},{didMount:Pt},{useWindowScroll:Dt,windowScrollContainerState:Lt,windowViewportRect:Bt}])=>{const Nt=stream(),jt=statefulStream(void 0),Ut=statefulStream(null),Gt=statefulStream(null);return connect(Lt,Ut),connect(Bt,Gt),subscribe(pipe(Nt,withLatestFrom(_e,Rt,Dt,Ut,Gt)),([qt,Xt,Kt,Zt,Qt,Jt])=>{const en=sizeTreeToRanges(Xt.sizeTree);Zt&&Qt!==null&&Jt!==null&&(Kt=Qt.scrollTop-Jt.offsetTop),qt({ranges:en,scrollTop:Kt})}),connect(pipe(jt,filter(isDefined),map(locationFromSnapshot)),At),connect(pipe(Pt,withLatestFrom(jt),filter(([,qt])=>qt!==void 0),distinctUntilChanged(),map(([,qt])=>qt.ranges)),lt),{getState:Nt,restoreStateFrom:jt}},tup(sizeSystem,domIOSystem,initialTopMostItemIndexSystem,propsReadySystem,windowScrollerSystem));function locationFromSnapshot(_e){return{offset:_e.scrollTop,index:0,align:"start"}}const featureGroup1System=system(([_e,lt,Rt,At,Pt,Dt,Lt,Bt,Nt,jt])=>({..._e,...lt,...Rt,...At,...Pt,...Dt,...Lt,...Bt,...Nt,...jt}),tup(sizeRangeSystem,initialItemCountSystem,propsReadySystem,scrollSeekSystem,totalListHeightSystem,initialScrollTopSystem,alignToBottomSystem,windowScrollerSystem,scrollIntoViewSystem,loggerSystem)),listSystem=system(([{totalCount:_e,sizeRanges:lt,fixedItemSize:Rt,defaultItemSize:At,trackItemSizes:Pt,itemSize:Dt,data:Lt,firstItemIndex:Bt,groupIndices:Nt,statefulTotalCount:jt,gap:Ut,sizes:Gt},{initialTopMostItemIndex:qt,scrolledToInitialItem:Xt},Kt,Zt,Qt,{listState:Jt,topItemsIndexes:en,...tn},{scrollToIndex:an},cn,{topItemCount:un},{groupCounts:rn},sn])=>(connect(tn.rangeChanged,sn.scrollSeekRangeChanged),connect(pipe(sn.windowViewportRect,map(pn=>pn.visibleHeight)),Kt.viewportHeight),{totalCount:_e,data:Lt,firstItemIndex:Bt,sizeRanges:lt,initialTopMostItemIndex:qt,scrolledToInitialItem:Xt,topItemsIndexes:en,topItemCount:un,groupCounts:rn,fixedItemHeight:Rt,defaultItemHeight:At,gap:Ut,...Qt,statefulTotalCount:jt,listState:Jt,scrollToIndex:an,trackItemSizes:Pt,itemSize:Dt,groupIndices:Nt,...tn,...sn,...Kt,sizes:Gt,...Zt}),tup(sizeSystem,initialTopMostItemIndexSystem,domIOSystem,stateLoadSystem,followOutputSystem,listStateSystem,scrollToIndexSystem,upwardScrollFixSystem,topItemCountSystem,groupedListSystem,featureGroup1System)),WEBKIT_STICKY="-webkit-sticky",STICKY="sticky",positionStickyCssValue=simpleMemoize(()=>{if(typeof document>"u")return STICKY;const _e=document.createElement("div");return _e.style.position=WEBKIT_STICKY,_e.style.position===WEBKIT_STICKY?WEBKIT_STICKY:STICKY});function useWindowViewportRectRef(_e,lt){const Rt=React.useRef(null),At=React.useCallback(Bt=>{if(Bt===null||!Bt.offsetParent)return;const Nt=Bt.getBoundingClientRect(),jt=Nt.width;let Ut,Gt;if(lt){const qt=lt.getBoundingClientRect(),Xt=Nt.top-qt.top;Ut=qt.height-Math.max(0,Xt),Gt=Xt+lt.scrollTop}else Ut=window.innerHeight-Math.max(0,Nt.top),Gt=Nt.top+window.pageYOffset;Rt.current={offsetTop:Gt,visibleHeight:Ut,visibleWidth:jt},_e(Rt.current)},[_e,lt]),{callbackRef:Pt,ref:Dt}=useSizeWithElRef(At),Lt=React.useCallback(()=>{At(Dt.current)},[At,Dt]);return React.useEffect(()=>{if(lt){lt.addEventListener("scroll",Lt);const Bt=new ResizeObserver(Lt);return Bt.observe(lt),()=>{lt.removeEventListener("scroll",Lt),Bt.unobserve(lt)}}else return window.addEventListener("scroll",Lt),window.addEventListener("resize",Lt),()=>{window.removeEventListener("scroll",Lt),window.removeEventListener("resize",Lt)}},[Lt,lt]),Pt}const VirtuosoMockContext=React.createContext(void 0),VirtuosoGridMockContext=React.createContext(void 0);function identity(_e){return _e}const listComponentPropsSystem=system(()=>{const _e=statefulStream(Nt=>`Item ${Nt}`),lt=statefulStream(null),Rt=statefulStream(Nt=>`Group ${Nt}`),At=statefulStream({}),Pt=statefulStream(identity),Dt=statefulStream("div"),Lt=statefulStream(noop),Bt=(Nt,jt=null)=>statefulStreamFromEmitter(pipe(At,map(Ut=>Ut[Nt]),distinctUntilChanged()),jt);return{context:lt,itemContent:_e,groupContent:Rt,components:At,computeItemKey:Pt,headerFooterTag:Dt,scrollerRef:Lt,FooterComponent:Bt("Footer"),HeaderComponent:Bt("Header"),TopItemListComponent:Bt("TopItemList"),ListComponent:Bt("List","div"),ItemComponent:Bt("Item","div"),GroupComponent:Bt("Group","div"),ScrollerComponent:Bt("Scroller","div"),EmptyPlaceholder:Bt("EmptyPlaceholder"),ScrollSeekPlaceholder:Bt("ScrollSeekPlaceholder")}}),combinedSystem$2=system(([_e,lt])=>({..._e,...lt}),tup(listSystem,listComponentPropsSystem)),DefaultScrollSeekPlaceholder$1=({height:_e})=>React.createElement("div",{style:{height:_e}}),GROUP_STYLE={position:positionStickyCssValue(),zIndex:1,overflowAnchor:"none"},ITEM_STYLE$1={overflowAnchor:"none"},Items$1=React.memo(function _e({showTopList:lt=!1}){const Rt=useEmitterValue$2("listState"),At=usePublisher$2("sizeRanges"),Pt=useEmitterValue$2("useWindowScroll"),Dt=useEmitterValue$2("customScrollParent"),Lt=usePublisher$2("windowScrollContainerState"),Bt=usePublisher$2("scrollContainerState"),Nt=Dt||Pt?Lt:Bt,jt=useEmitterValue$2("itemContent"),Ut=useEmitterValue$2("context"),Gt=useEmitterValue$2("groupContent"),qt=useEmitterValue$2("trackItemSizes"),Xt=useEmitterValue$2("itemSize"),Kt=useEmitterValue$2("log"),Zt=usePublisher$2("gap"),{callbackRef:Qt}=useChangedListContentsSizes(At,Xt,qt,lt?noop:Nt,Kt,Zt,Dt),[Jt,en]=React.useState(0);useEmitter$2("deviation",ln=>{Jt!==ln&&en(ln)});const tn=useEmitterValue$2("EmptyPlaceholder"),an=useEmitterValue$2("ScrollSeekPlaceholder")||DefaultScrollSeekPlaceholder$1,cn=useEmitterValue$2("ListComponent"),un=useEmitterValue$2("ItemComponent"),rn=useEmitterValue$2("GroupComponent"),sn=useEmitterValue$2("computeItemKey"),pn=useEmitterValue$2("isSeeking"),bn=useEmitterValue$2("groupIndices").length>0,gn=useEmitterValue$2("paddingTopAddition"),_n=useEmitterValue$2("scrolledToInitialItem"),xn=lt?{}:{boxSizing:"border-box",paddingTop:Rt.offsetTop+gn,paddingBottom:Rt.offsetBottom,marginTop:Jt,..._n?{}:{visibility:"hidden"}};return!lt&&Rt.totalCount===0&&tn?React.createElement(tn,contextPropIfNotDomElement(tn,Ut)):React.createElement(cn,{...contextPropIfNotDomElement(cn,Ut),ref:Qt,style:xn,"data-test-id":lt?"virtuoso-top-item-list":"virtuoso-item-list"},(lt?Rt.topItems:Rt.items).map(ln=>{const Mn=ln.originalIndex,Tn=sn(Mn+Rt.firstItemIndex,ln.data,Ut);return pn?React.createElement(an,{...contextPropIfNotDomElement(an,Ut),key:Tn,index:ln.index,height:ln.size,type:ln.type||"item",...ln.type==="group"?{}:{groupIndex:ln.groupIndex}}):ln.type==="group"?React.createElement(rn,{...contextPropIfNotDomElement(rn,Ut),key:Tn,"data-index":Mn,"data-known-size":ln.size,"data-item-index":ln.index,style:GROUP_STYLE},Gt(ln.index,Ut)):React.createElement(un,{...contextPropIfNotDomElement(un,Ut),...itemPropIfNotDomElement(un,ln.data),key:Tn,"data-index":Mn,"data-known-size":ln.size,"data-item-index":ln.index,"data-item-group-index":ln.groupIndex,style:ITEM_STYLE$1},bn?jt(ln.index,ln.groupIndex,ln.data,Ut):jt(ln.index,ln.data,Ut))}))}),scrollerStyle={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},viewportStyle={width:"100%",height:"100%",position:"absolute",top:0},topItemListStyle={width:"100%",position:positionStickyCssValue(),top:0,zIndex:1};function contextPropIfNotDomElement(_e,lt){if(typeof _e!="string")return{context:lt}}function itemPropIfNotDomElement(_e,lt){return{item:typeof _e=="string"?void 0:lt}}const Header$1=React.memo(function _e(){const lt=useEmitterValue$2("HeaderComponent"),Rt=usePublisher$2("headerHeight"),At=useEmitterValue$2("headerFooterTag"),Pt=useSize(Lt=>Rt(correctItemSize(Lt,"height"))),Dt=useEmitterValue$2("context");return lt?React.createElement(At,{ref:Pt},React.createElement(lt,contextPropIfNotDomElement(lt,Dt))):null}),Footer$1=React.memo(function _e(){const lt=useEmitterValue$2("FooterComponent"),Rt=usePublisher$2("footerHeight"),At=useEmitterValue$2("headerFooterTag"),Pt=useSize(Lt=>Rt(correctItemSize(Lt,"height"))),Dt=useEmitterValue$2("context");return lt?React.createElement(At,{ref:Pt},React.createElement(lt,contextPropIfNotDomElement(lt,Dt))):null});function buildScroller({usePublisher:_e,useEmitter:lt,useEmitterValue:Rt}){return React.memo(function({style:Dt,children:Lt,...Bt}){const Nt=_e("scrollContainerState"),jt=Rt("ScrollerComponent"),Ut=_e("smoothScrollTargetReached"),Gt=Rt("scrollerRef"),qt=Rt("context"),{scrollerRef:Xt,scrollByCallback:Kt,scrollToCallback:Zt}=useScrollTop(Nt,Ut,jt,Gt);return lt("scrollTo",Zt),lt("scrollBy",Kt),React.createElement(jt,{ref:Xt,style:{...scrollerStyle,...Dt},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...Bt,...contextPropIfNotDomElement(jt,qt)},Lt)})}function buildWindowScroller({usePublisher:_e,useEmitter:lt,useEmitterValue:Rt}){return React.memo(function({style:Dt,children:Lt,...Bt}){const Nt=_e("windowScrollContainerState"),jt=Rt("ScrollerComponent"),Ut=_e("smoothScrollTargetReached"),Gt=Rt("totalListHeight"),qt=Rt("deviation"),Xt=Rt("customScrollParent"),Kt=Rt("context"),{scrollerRef:Zt,scrollByCallback:Qt,scrollToCallback:Jt}=useScrollTop(Nt,Ut,jt,noop,Xt);return useIsomorphicLayoutEffect$1(()=>(Zt.current=Xt||window,()=>{Zt.current=null}),[Zt,Xt]),lt("windowScrollTo",Jt),lt("scrollBy",Qt),React.createElement(jt,{style:{position:"relative",...Dt,...Gt!==0?{height:Gt+qt}:{}},"data-virtuoso-scroller":!0,...Bt,...contextPropIfNotDomElement(jt,Kt)},Lt)})}const Viewport$2=({children:_e})=>{const lt=React.useContext(VirtuosoMockContext),Rt=usePublisher$2("viewportHeight"),At=usePublisher$2("fixedItemHeight"),Pt=useSize(compose(Rt,Dt=>correctItemSize(Dt,"height")));return React.useEffect(()=>{lt&&(Rt(lt.viewportHeight),At(lt.itemHeight))},[lt,Rt,At]),React.createElement("div",{style:viewportStyle,ref:Pt,"data-viewport-type":"element"},_e)},WindowViewport$2=({children:_e})=>{const lt=React.useContext(VirtuosoMockContext),Rt=usePublisher$2("windowViewportRect"),At=usePublisher$2("fixedItemHeight"),Pt=useEmitterValue$2("customScrollParent"),Dt=useWindowViewportRectRef(Rt,Pt);return React.useEffect(()=>{lt&&(At(lt.itemHeight),Rt({offsetTop:0,visibleHeight:lt.viewportHeight,visibleWidth:100}))},[lt,Rt,At]),React.createElement("div",{ref:Dt,style:viewportStyle,"data-viewport-type":"window"},_e)},TopItemListContainer=({children:_e})=>{const lt=useEmitterValue$2("TopItemListComponent")||"div",Rt=useEmitterValue$2("headerHeight"),At={...topItemListStyle,marginTop:`${Rt}px`},Pt=useEmitterValue$2("context");return React.createElement(lt,{style:At,...contextPropIfNotDomElement(lt,Pt)},_e)},ListRoot=React.memo(function _e(lt){const Rt=useEmitterValue$2("useWindowScroll"),At=useEmitterValue$2("topItemsIndexes").length>0,Pt=useEmitterValue$2("customScrollParent"),Dt=Pt||Rt?WindowScroller$2:Scroller$2,Lt=Pt||Rt?WindowViewport$2:Viewport$2;return React.createElement(Dt,{...lt},At&&React.createElement(TopItemListContainer,null,React.createElement(Items$1,{showTopList:!0})),React.createElement(Lt,null,React.createElement(Header$1,null),React.createElement(Items$1,null),React.createElement(Footer$1,null)))}),{Component:List,usePublisher:usePublisher$2,useEmitterValue:useEmitterValue$2,useEmitter:useEmitter$2}=systemToComponent(combinedSystem$2,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},ListRoot),Scroller$2=buildScroller({usePublisher:usePublisher$2,useEmitterValue:useEmitterValue$2,useEmitter:useEmitter$2}),WindowScroller$2=buildWindowScroller({usePublisher:usePublisher$2,useEmitterValue:useEmitterValue$2,useEmitter:useEmitter$2}),Virtuoso=List,INITIAL_GRID_STATE={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},PROBE_GRID_STATE={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round,ceil,floor,min,max}=Math;function buildProbeGridState(_e){return{...PROBE_GRID_STATE,items:_e}}function buildItems(_e,lt,Rt){return Array.from({length:lt-_e+1}).map((At,Pt)=>{const Dt=Rt===null?null:Rt[Pt+_e];return{index:Pt+_e,data:Dt}})}function gapComparator(_e,lt){return _e&&_e.column===lt.column&&_e.row===lt.row}function dimensionComparator(_e,lt){return _e&&_e.width===lt.width&&_e.height===lt.height}const gridSystem=system(([{overscan:_e,visibleRange:lt,listBoundary:Rt},{scrollTop:At,viewportHeight:Pt,scrollBy:Dt,scrollTo:Lt,smoothScrollTargetReached:Bt,scrollContainerState:Nt,footerHeight:jt,headerHeight:Ut},Gt,qt,{propsReady:Xt,didMount:Kt},{windowViewportRect:Zt,useWindowScroll:Qt,customScrollParent:Jt,windowScrollContainerState:en,windowScrollTo:tn},an])=>{const cn=statefulStream(0),un=statefulStream(0),rn=statefulStream(INITIAL_GRID_STATE),sn=statefulStream({height:0,width:0}),pn=statefulStream({height:0,width:0}),bn=stream(),gn=stream(),_n=statefulStream(0),xn=statefulStream(null),ln=statefulStream({row:0,column:0}),Mn=stream(),Tn=stream(),An=statefulStream(!1),Cn=statefulStream(0),wn=statefulStream(!0),Fn=statefulStream(!1);subscribe(pipe(Kt,withLatestFrom(Cn),filter(([vn,En])=>!!En)),()=>{publish(wn,!1),publish(un,0)}),subscribe(pipe(combineLatest(Kt,wn,pn,sn,Cn,Fn),filter(([vn,En,kn,zn,,dn])=>vn&&!En&&kn.height!==0&&zn.height!==0&&!dn)),([,,,,vn])=>{publish(Fn,!0),skipFrames(1,()=>{publish(bn,vn)}),handleNext(pipe(At),()=>{publish(Rt,[0,0]),publish(wn,!0)})}),connect(pipe(Tn,filter(vn=>vn!=null&&vn.scrollTop>0),mapTo(0)),un),subscribe(pipe(Kt,withLatestFrom(Tn),filter(([,vn])=>vn!=null)),([,vn])=>{vn&&(publish(sn,vn.viewport),publish(pn,vn==null?void 0:vn.item),publish(ln,vn.gap),vn.scrollTop>0&&(publish(An,!0),handleNext(pipe(At,skip(1)),En=>{publish(An,!1)}),publish(Lt,{top:vn.scrollTop})))}),connect(pipe(sn,map(({height:vn})=>vn)),Pt),connect(pipe(combineLatest(duc(sn,dimensionComparator),duc(pn,dimensionComparator),duc(ln,(vn,En)=>vn&&vn.column===En.column&&vn.row===En.row),duc(At)),map(([vn,En,kn,zn])=>({viewport:vn,item:En,gap:kn,scrollTop:zn}))),Mn),connect(pipe(combineLatest(duc(cn),lt,duc(ln,gapComparator),duc(pn,dimensionComparator),duc(sn,dimensionComparator),duc(xn),duc(un),duc(An),duc(wn),duc(Cn)),filter(([,,,,,,,vn])=>!vn),map(([vn,[En,kn],zn,dn,hn,yn,Bn,,Gn,Sn])=>{const{row:Kn,column:er}=zn,{height:Yn,width:dr}=dn,{width:vr}=hn;if(Bn===0&&(vn===0||vr===0))return INITIAL_GRID_STATE;if(dr===0){const Jn=getInitialTopMostItemIndexNumber(Sn,vn),ur=Jn===0?Math.max(Bn-1,0):Jn;return buildProbeGridState(buildItems(Jn,ur,yn))}const br=itemsPerRow(vr,dr,er);let Er,nr;Gn?En===0&&kn===0&&Bn>0?(Er=0,nr=Bn-1):(Er=br*floor((En+Kn)/(Yn+Kn)),nr=br*ceil((kn+Kn)/(Yn+Kn))-1,nr=min(vn-1,max(nr,br-1)),Er=min(nr,max(0,Er))):(Er=0,nr=-1);const sr=buildItems(Er,nr,yn),{top:_r,bottom:Rr}=gridLayout(hn,zn,dn,sr),Un=ceil(vn/br),Dn=Un*Yn+(Un-1)*Kn-Rr;return{items:sr,offsetTop:_r,offsetBottom:Dn,top:_r,bottom:Rr,itemHeight:Yn,itemWidth:dr}})),rn),connect(pipe(xn,filter(vn=>vn!==null),map(vn=>vn.length)),cn),connect(pipe(combineLatest(sn,pn,rn,ln),filter(([vn,En,{items:kn}])=>kn.length>0&&En.height!==0&&vn.height!==0),map(([vn,En,{items:kn},zn])=>{const{top:dn,bottom:hn}=gridLayout(vn,zn,En,kn);return[dn,hn]}),distinctUntilChanged(tupleComparator)),Rt);const $n=statefulStream(!1);connect(pipe(At,withLatestFrom($n),map(([vn,En])=>En||vn!==0)),$n);const Pn=streamFromEmitter(pipe(duc(rn),filter(({items:vn})=>vn.length>0),withLatestFrom(cn,$n),filter(([{items:vn},En,kn])=>kn&&vn[vn.length-1].index===En-1),map(([,vn])=>vn-1),distinctUntilChanged())),Vn=streamFromEmitter(pipe(duc(rn),filter(({items:vn})=>vn.length>0&&vn[0].index===0),mapTo(0),distinctUntilChanged())),Zn=streamFromEmitter(pipe(duc(rn),withLatestFrom(An),filter(([{items:vn},En])=>vn.length>0&&!En),map(([{items:vn}])=>({startIndex:vn[0].index,endIndex:vn[vn.length-1].index})),distinctUntilChanged(rangeComparator),throttleTime(0)));connect(Zn,qt.scrollSeekRangeChanged),connect(pipe(bn,withLatestFrom(sn,pn,cn,ln),map(([vn,En,kn,zn,dn])=>{const hn=normalizeIndexLocation(vn),{align:yn,behavior:Bn,offset:Gn}=hn;let Sn=hn.index;Sn==="LAST"&&(Sn=zn-1),Sn=max(0,Sn,min(zn-1,Sn));let Kn=itemTop(En,dn,kn,Sn);return yn==="end"?Kn=round(Kn-En.height+kn.height):yn==="center"&&(Kn=round(Kn-En.height/2+kn.height/2)),Gn&&(Kn+=Gn),{top:Kn,behavior:Bn}})),Lt);const tr=statefulStreamFromEmitter(pipe(rn,map(vn=>vn.offsetBottom+vn.bottom)),0);return connect(pipe(Zt,map(vn=>({width:vn.visibleWidth,height:vn.visibleHeight}))),sn),{data:xn,totalCount:cn,viewportDimensions:sn,itemDimensions:pn,scrollTop:At,scrollHeight:gn,overscan:_e,scrollBy:Dt,scrollTo:Lt,scrollToIndex:bn,smoothScrollTargetReached:Bt,windowViewportRect:Zt,windowScrollTo:tn,useWindowScroll:Qt,customScrollParent:Jt,windowScrollContainerState:en,deviation:_n,scrollContainerState:Nt,footerHeight:jt,headerHeight:Ut,initialItemCount:un,gap:ln,restoreStateFrom:Tn,...qt,initialTopMostItemIndex:Cn,gridState:rn,totalListHeight:tr,...Gt,startReached:Vn,endReached:Pn,rangeChanged:Zn,stateChanged:Mn,propsReady:Xt,stateRestoreInProgress:An,...an}},tup(sizeRangeSystem,domIOSystem,stateFlagsSystem,scrollSeekSystem,propsReadySystem,windowScrollerSystem,loggerSystem));function gridLayout(_e,lt,Rt,At){const{height:Pt}=Rt;if(Pt===void 0||At.length===0)return{top:0,bottom:0};const Dt=itemTop(_e,lt,Rt,At[0].index),Lt=itemTop(_e,lt,Rt,At[At.length-1].index)+Pt;return{top:Dt,bottom:Lt}}function itemTop(_e,lt,Rt,At){const Pt=itemsPerRow(_e.width,Rt.width,lt.column),Dt=floor(At/Pt),Lt=Dt*Rt.height+max(0,Dt-1)*lt.row;return Lt>0?Lt+lt.row:Lt}function itemsPerRow(_e,lt,Rt){return max(1,floor((_e+Rt)/(floor(lt)+Rt)))}const gridComponentPropsSystem=system(()=>{const _e=statefulStream(jt=>`Item ${jt}`),lt=statefulStream({}),Rt=statefulStream(null),At=statefulStream("virtuoso-grid-item"),Pt=statefulStream("virtuoso-grid-list"),Dt=statefulStream(identity),Lt=statefulStream("div"),Bt=statefulStream(noop),Nt=(jt,Ut=null)=>statefulStreamFromEmitter(pipe(lt,map(Gt=>Gt[jt]),distinctUntilChanged()),Ut);return{context:Rt,itemContent:_e,components:lt,computeItemKey:Dt,itemClassName:At,listClassName:Pt,headerFooterTag:Lt,scrollerRef:Bt,FooterComponent:Nt("Footer"),HeaderComponent:Nt("Header"),ListComponent:Nt("List","div"),ItemComponent:Nt("Item","div"),ScrollerComponent:Nt("Scroller","div"),ScrollSeekPlaceholder:Nt("ScrollSeekPlaceholder","div")}}),combinedSystem$1=system(([_e,lt])=>({..._e,...lt}),tup(gridSystem,gridComponentPropsSystem)),GridItems=React.memo(function _e(){const lt=useEmitterValue$1("gridState"),Rt=useEmitterValue$1("listClassName"),At=useEmitterValue$1("itemClassName"),Pt=useEmitterValue$1("itemContent"),Dt=useEmitterValue$1("computeItemKey"),Lt=useEmitterValue$1("isSeeking"),Bt=usePublisher$1("scrollHeight"),Nt=useEmitterValue$1("ItemComponent"),jt=useEmitterValue$1("ListComponent"),Ut=useEmitterValue$1("ScrollSeekPlaceholder"),Gt=useEmitterValue$1("context"),qt=usePublisher$1("itemDimensions"),Xt=usePublisher$1("gap"),Kt=useEmitterValue$1("log"),Zt=useEmitterValue$1("stateRestoreInProgress"),Qt=useSize(Jt=>{const en=Jt.parentElement.parentElement.scrollHeight;Bt(en);const tn=Jt.firstChild;if(tn){const{width:an,height:cn}=tn.getBoundingClientRect();qt({width:an,height:cn})}Xt({row:resolveGapValue("row-gap",getComputedStyle(Jt).rowGap,Kt),column:resolveGapValue("column-gap",getComputedStyle(Jt).columnGap,Kt)})});return Zt?null:React.createElement(jt,{ref:Qt,className:Rt,...contextPropIfNotDomElement(jt,Gt),style:{paddingTop:lt.offsetTop,paddingBottom:lt.offsetBottom},"data-test-id":"virtuoso-item-list"},lt.items.map(Jt=>{const en=Dt(Jt.index,Jt.data,Gt);return Lt?React.createElement(Ut,{key:en,...contextPropIfNotDomElement(Ut,Gt),index:Jt.index,height:lt.itemHeight,width:lt.itemWidth}):React.createElement(Nt,{...contextPropIfNotDomElement(Nt,Gt),className:At,"data-index":Jt.index,key:en},Pt(Jt.index,Jt.data,Gt))}))}),Header=React.memo(function _e(){const lt=useEmitterValue$1("HeaderComponent"),Rt=usePublisher$1("headerHeight"),At=useEmitterValue$1("headerFooterTag"),Pt=useSize(Lt=>Rt(correctItemSize(Lt,"height"))),Dt=useEmitterValue$1("context");return lt?React.createElement(At,{ref:Pt},React.createElement(lt,contextPropIfNotDomElement(lt,Dt))):null}),Footer=React.memo(function _e(){const lt=useEmitterValue$1("FooterComponent"),Rt=usePublisher$1("footerHeight"),At=useEmitterValue$1("headerFooterTag"),Pt=useSize(Lt=>Rt(correctItemSize(Lt,"height"))),Dt=useEmitterValue$1("context");return lt?React.createElement(At,{ref:Pt},React.createElement(lt,contextPropIfNotDomElement(lt,Dt))):null}),Viewport$1=({children:_e})=>{const lt=React.useContext(VirtuosoGridMockContext),Rt=usePublisher$1("itemDimensions"),At=usePublisher$1("viewportDimensions"),Pt=useSize(Dt=>{At(Dt.getBoundingClientRect())});return React.useEffect(()=>{lt&&(At({height:lt.viewportHeight,width:lt.viewportWidth}),Rt({height:lt.itemHeight,width:lt.itemWidth}))},[lt,At,Rt]),React.createElement("div",{style:viewportStyle,ref:Pt},_e)},WindowViewport$1=({children:_e})=>{const lt=React.useContext(VirtuosoGridMockContext),Rt=usePublisher$1("windowViewportRect"),At=usePublisher$1("itemDimensions"),Pt=useEmitterValue$1("customScrollParent"),Dt=useWindowViewportRectRef(Rt,Pt);return React.useEffect(()=>{lt&&(At({height:lt.itemHeight,width:lt.itemWidth}),Rt({offsetTop:0,visibleHeight:lt.viewportHeight,visibleWidth:lt.viewportWidth}))},[lt,Rt,At]),React.createElement("div",{ref:Dt,style:viewportStyle},_e)},GridRoot=React.memo(function _e({...lt}){const Rt=useEmitterValue$1("useWindowScroll"),At=useEmitterValue$1("customScrollParent"),Pt=At||Rt?WindowScroller$1:Scroller$1,Dt=At||Rt?WindowViewport$1:Viewport$1;return React.createElement(Pt,{...lt},React.createElement(Dt,null,React.createElement(Header,null),React.createElement(GridItems,null),React.createElement(Footer,null)))}),{Component:Grid,usePublisher:usePublisher$1,useEmitterValue:useEmitterValue$1,useEmitter:useEmitter$1}=systemToComponent(combinedSystem$1,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},GridRoot),Scroller$1=buildScroller({usePublisher:usePublisher$1,useEmitterValue:useEmitterValue$1,useEmitter:useEmitter$1}),WindowScroller$1=buildWindowScroller({usePublisher:usePublisher$1,useEmitterValue:useEmitterValue$1,useEmitter:useEmitter$1});function resolveGapValue(_e,lt,Rt){return lt!=="normal"&&!(lt!=null&<.endsWith("px"))&&Rt(`${_e} was not resolved to pixel value correctly`,lt,LogLevel.WARN),lt==="normal"?0:parseInt(lt??"0",10)}const Scroller=reactExports.forwardRef(({style:_e,children:lt,...Rt},At)=>{const Pt=reactExports.useRef(null),{palette:Dt,spacing:Lt}=useTheme(),Bt=useCss$1({"--os-padding-perpendicular":"2px",".os-scrollbar":{visibility:"visible",opacity:1},".os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle":{"min-height":Lt(12)},"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${Lt(6)})`,marginTop:Lt(6)},"div > div.os-scrollbar-track":{"--os-handle-perpendicular-size":"2px","--os-handle-perpendicular-size-hover":"6px","--os-handle-perpendicular-size-active":"6px","> div.os-scrollbar-handle":{borderRadius:0,opacity:.5,"&:hover":{opacity:.8}}}}),[Nt]=S$5({options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{autoHide:"move",theme:Dt.mode==="dark"?"os-theme-light":"os-theme-dark"}}});reactExports.useEffect(()=>{typeof At!="function"&&(At!=null&&At.current)&&(Pt!=null&&Pt.current)&&Nt({target:Pt.current,elements:{viewport:At.current}})},[Nt]);const jt=reactExports.useCallback(Ut=>{Ut&&At&&(typeof At=="function"?At(Ut):At.current=Ut)},[At]);return jsxRuntimeExports.jsx("div",{ref:Pt,style:_e,className:Bt,children:jsxRuntimeExports.jsx("div",{ref:jt,...Rt,children:lt})})});function LazyList({items:_e=[],renderItem:lt,listOptions:Rt,placeholder:At,...Pt}){return jsxRuntimeExports.jsx(Box$1,{...Pt,children:jsxRuntimeExports.jsx(Virtuoso,{components:{Scroller},totalCount:_e.length,itemContent:Dt=>lt==null?void 0:lt(_e[Dt],Dt),...Rt})})}function Dot({label:_e}){return jsxRuntimeExports.jsx(Tooltip$1,{title:_e,children:jsxRuntimeExports.jsx(FiberManualRecord,{sx:{color:"error.main",transform:"scale(0.5)",pl:.5,mr:2},fontSize:"small"})})}function EventInspector({event:_e,index:lt,selected:Rt,label:At,...Pt}){const{spacing:Dt}=useTheme(),Lt=useCss$1({}),Bt=useCss$1({}),Nt=lodashExports$1.omit(_e,...OMIT_PROPS),jt=lodashExports$1.pick(Nt,...ESSENTIAL_PROPS),Ut=lodashExports$1.omit(Nt,...ESSENTIAL_PROPS);return jsxRuntimeExports.jsxs(Box$1,{sx:{position:"relative",[`> .${Bt}`]:{opacity:0},[`&:hover > .${Bt}`]:{opacity:1},[`&:hover > .${Lt}`]:{pr:8}},children:[jsxRuntimeExports.jsxs(ListItemButton$1,{className:Lt,selected:Rt,...Pt,sx:{borderLeft:`${Dt(.5)} solid ${getColorHex(_e==null?void 0:_e.type)}`,...Pt.sx},children:[jsxRuntimeExports.jsxs(ListItemIcon$1,{sx:{alignItems:"center"},children:[jsxRuntimeExports.jsx(Typography$1,{variant:"body2",children:lt}),At&&jsxRuntimeExports.jsx(Dot,{label:At})]}),jsxRuntimeExports.jsx(ListItemText$1,{sx:{overflow:"hidden"},primary:jsxRuntimeExports.jsxs(Box$1,{sx:{overflow:"hidden",whiteSpace:"nowrap",display:"block",textOverflow:"ellipsis",my:.5},children:[lodashExports$1.startCase(`${(_e==null?void 0:_e.type)??"unsupported"} ${(_e==null?void 0:_e.id)??"-"}`)," "]}),secondaryTypographyProps:{component:"div",whiteSpace:"nowrap",overflow:"hidden"},secondary:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",justifyContent:"flex-start",sx:{"> *":{flex:0}},children:[jsxRuntimeExports.jsx(PropertyList,{event:jt,simple:!0}),jsxRuntimeExports.jsx(PropertyList,{event:Ut,simple:!0})]})})]}),jsxRuntimeExports.jsx(Stack$1,{className:Bt,direction:"row",sx:{p:1,justifyContent:"center",position:"absolute",right:0,alignItems:"center",top:0,height:"100%"},children:jsxRuntimeExports.jsx(PropertyDialog,{event:_e,trigger:Gt=>jsxRuntimeExports.jsx(IconButtonWithTooltip,{onClick:Gt,sx:{p:1.5,color:"text.secondary"},label:"See All Properties",icon:jsxRuntimeExports.jsx(DataObjectOutlined,{fontSize:"small"})})})})]})}function Skeleton({event:_e}){const{spacing:lt}=useTheme();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ListItem$1,{sx:{height:80,borderLeft:`${lt(.5)} solid ${getColorHex(_e==null?void 0:_e.type)}`},children:jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(Placeholder$3,{animation:!1,width:lt(4)})})}),jsxRuntimeExports.jsx(Divider$1,{variant:"inset"})]})}function lerp(_e,lt,Rt){return _e+lodashExports$1.clamp(Rt,0,1)*(lt-_e)}const ITEM_HEIGHT=80,PADDING_TOP=8,divider$2=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1}}),pxToInt=_e=>Number(_e.replace(/px$/,"")),SYMBOL_ALL=nanoid$1(),stepsLayerGuard=_e=>!!getLayerHandler(_e).steps;function useStepsPageState(_e,lt){const{key:Rt,setKey:At,layers:Pt,layer:Dt,allLayers:Lt}=useLayer(_e==null?void 0:_e.layer,stepsLayerGuard),[Bt,Nt]=reactExports.useState(_e==null?void 0:_e.selectedType);function jt(Gt){lt==null||lt({layer:Gt}),At(Gt)}function Ut(Gt){lt==null||lt({selectedType:Gt}),Nt(Gt)}return{setSelectedType:Ut,setKey:jt,selectedType:Bt,layers:Pt,allLayers:Lt,key:Rt,layer:Dt}}const getStepsPageDescription=_e=>_e?`${_e} contains 0 steps.`:"When you load a trace, you'll see its steps here.";function StepsPage({template:_e}){const{spacing:lt}=useTheme(),Rt=usePaper(),At=useAcrylic(),Pt=reactExports.useRef(null),[Dt,Lt]=reactExports.useState(null),{controls:Bt,onChange:Nt,state:jt,dragHandle:Ut}=useViewTreeContext(),{allLayers:Gt,key:qt,layers:Xt,selectedType:Kt,setKey:Zt,setSelectedType:Qt,layer:Jt}=useStepsPageState(jt,Nt),{step:en,playing:tn,stepTo:an}=usePlaybackState(qt),cn=reactExports.useMemo(()=>{if(Jt){const{steps:gn}=getLayerHandler(Jt);return gn(Jt)}},[Jt]),{steps:un,types:rn,stepToFilteredStep:sn,selectedType:pn}=reactExports.useMemo(()=>{if(cn){const gn=cn.map((Tn,An)=>[Tn,An]),_n=lodashExports$1.chain(gn).map(([Tn])=>Tn.type).filter().uniq().value(),xn=!_n.includes(Kt),ln=xn?gn:gn.filter(([Tn])=>Tn.type===Kt),{stepMap:Mn}=lodashExports$1.reduce(gn,(Tn,[,An])=>{const Cn=lodashExports$1.findIndex(ln,([,Fn])=>Fn>=An,Tn.from),wn=Cn===-1?ln.length:Cn;return Tn.from=wn,Tn.stepMap.push(wn),Tn},{from:0,stepMap:[]});return{steps:ln,types:_n,stepToFilteredStep:Tn=>Mn[Tn],selectedType:xn?SYMBOL_ALL:Kt}}return{}},[cn,Kt]),bn=useBreakpoints(qt);return reactExports.useEffect(()=>{if(sn&&Dt&&Pt.current){const gn=sn(en);if(tn){let _n=!1;const xn=ln=>{var Mn;if(!_n&&"scrollTop"in Dt&&!lodashExports$1.isUndefined(en)){const{scrollTop:Tn}=Dt,An=gn*ITEM_HEIGHT;(Mn=Pt.current)==null||Mn.scrollTo({top:lerp(Tn,An,1e-6*ln)}),requestAnimationFrame(xn)}};return requestAnimationFrame(xn),()=>{_n=!0}}else Pt.current.scrollToIndex({index:gn,behavior:"smooth",offset:-pxToInt(lt(6+PADDING_TOP))})}},[en,Pt,Dt,sn,tn]),jsxRuntimeExports.jsxs(_e,{onChange:Nt,stack:jt,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Ut}),jsxRuntimeExports.jsxs(_e.Content,{children:[jsxRuntimeExports.jsx(Flex,{vertical:!0,alignItems:"center",children:un?un.length?jsxRuntimeExports.jsx(LazyList,{sx:{width:"100%",height:"100%"},items:un,listOptions:{scrollerRef:Lt,ref:Pt,defaultItemHeight:ITEM_HEIGHT,overscan:0},renderItem:([gn,_n],xn)=>{var ln;return tn?jsxRuntimeExports.jsx(Box$1,{sx:{pt:xn?0:lt(6+PADDING_TOP)},children:jsxRuntimeExports.jsx(Skeleton,{event:gn})},xn):jsxRuntimeExports.jsxs(Box$1,{sx:{height:pxToInt(lt(xn?0:6+PADDING_TOP))+ITEM_HEIGHT,pt:xn?0:lt(6+PADDING_TOP)},children:[jsxRuntimeExports.jsx(EventInspector,{event:gn,index:_n,selected:_n===en,sx:{height:"100%"},label:(ln=bn(_n))==null?void 0:ln.result,onClick:()=>an(_n)}),jsxRuntimeExports.jsx(Divider$1,{variant:"inset"})]},xn)}}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(StepsIcon,{}),label:"Steps",secondary:getStepsPageDescription(inferLayerName(Jt))}):jsxRuntimeExports.jsx(Placeholder$2,{icon:jsxRuntimeExports.jsx(StepsIcon,{}),label:"Steps",secondary:getStepsPageDescription()})}),!!(un!=null&&un.length)&&jsxRuntimeExports.jsxs(Stack$1,{direction:"row",sx:{...Rt(1),...At,alignItems:"center",position:"absolute",top:gn=>gn.spacing(6),height:gn=>gn.spacing(6),borderRadius:1,px:1,m:1},children:[jsxRuntimeExports.jsx(Playback,{layer:Jt}),divider$2,jsxRuntimeExports.jsx(Typography$1,{component:"div",variant:"body2",color:"text.secondary",sx:{px:1,py:.25,textAlign:"center",...Rt(0),borderRadius:1},children:en})]})]}),jsxRuntimeExports.jsxs(_e.Options,{children:[jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(LayersIcon,{}),label:"Layer",value:qt,items:lodashExports$1.map(Gt,gn=>({id:gn.key,hidden:!lodashExports$1.find(Xt,{key:gn.key}),name:inferLayerName(gn)})),onChange:Zt,arrow:!0,ellipsis:12}),divider$2,jsxRuntimeExports.jsx(FeaturePicker,{icon:jsxRuntimeExports.jsx(FiberManualRecordOutlined,{sx:{color:getColorHex(pn)}}),label:"Event Type",value:pn,items:[{id:SYMBOL_ALL,name:"All Events"},...lodashExports$1.map(rn,gn=>({id:`${gn}`,name:lodashExports$1.startCase(gn)}))],onChange:Qt,arrow:!0,ellipsis:12})]}),jsxRuntimeExports.jsx(_e.Extras,{children:Bt})]})}const itemHeight=_e=>_e?48:36,padding=8;function SelectMulti({trigger:_e,items:lt,value:Rt,onChange:At,placeholder:Pt="Select Options",defaultChecked:Dt}){const Lt=useSmallDisplay(),Bt=lodashExports$1.max([lodashExports$1.findIndex(lt,({value:Nt})=>!!(Rt!=null&&Rt[Nt])),0])??0;return jsxRuntimeExports.jsx(PopupState,{variant:"popover",children:Nt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tooltip$1,{title:Pt,children:jsxRuntimeExports.jsx("span",{children:_e==null?void 0:_e(bindTrigger(Nt))})}),jsxRuntimeExports.jsx(Menu$1,{...bindMenu(Nt),anchorOrigin:{horizontal:"center",vertical:-itemHeight(Lt)*Bt-padding},transformOrigin:{vertical:"top",horizontal:"center"},children:lodashExports$1.map(lt,({value:jt,label:Ut,disabled:Gt})=>jsxRuntimeExports.jsxs(MenuItem$1,{disabled:Gt,onClick:()=>{At==null||At({...Rt,[jt]:!((Rt==null?void 0:Rt[jt])??Dt)})},children:[jsxRuntimeExports.jsx(ListItemIcon$1,{children:jsxRuntimeExports.jsx(Checkbox$1,{sx:{p:0},checked:!!((Rt==null?void 0:Rt[jt])??Dt)})}),Ut]},jt))})]})})}function FeaturePickerMulti({label:_e,value:lt,onChange:Rt,items:At,icon:Pt,showArrow:Dt,defaultChecked:Lt,ellipsis:Bt=1/0}){var Ut;const Nt=lodashExports$1.filter(At,({id:Gt})=>!!((lt==null?void 0:lt[Gt])??Lt)),jt=Nt.length?Nt.length===1?(Ut=lodashExports$1.head(Nt))==null?void 0:Ut.name:`${Nt.length} Selected`:_e;return jsxRuntimeExports.jsx(SelectMulti,{defaultChecked:!0,placeholder:lodashExports$1.startCase(_e),trigger:Gt=>jsxRuntimeExports.jsx(FeaturePickerButton,{...Gt,disabled:!(At!=null&&At.length),icon:Pt,arrow:Dt,children:lodashExports$1.truncate(jt,{length:Bt})}),items:lodashExports$1.map(At,({id:Gt,name:qt,description:Xt,hidden:Kt})=>({value:Gt,label:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography$1,{children:qt}),jsxRuntimeExports.jsx(Space,{}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Xt})]}),disabled:Kt})),value:lt,onChange:Rt})}const divider$1=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1}});function ViewportPage({template:_e}){var Kt,Zt,Qt,Jt;const{controls:lt,onChange:Rt,state:At,dragHandle:Pt}=useViewTreeContext(),[Dt]=useRenderers(),[{layers:Lt}]=useLayers(),[Bt,Nt]=reactExports.useState({}),jt=reactExports.useMemo(()=>lodashExports$1.filter(Lt,en=>(Bt==null?void 0:Bt[en.key])??!0),[Bt,Lt]),[Ut,Gt]=reactExports.useState(),qt=reactExports.useMemo(()=>lodashExports$1.head(Dt),[Dt]),Xt=At!=null&&At.renderer&&At.renderer!=="internal:auto"?At.renderer:(Zt=(Kt=qt==null?void 0:qt.renderer)==null?void 0:Kt.meta)==null?void 0:Zt.id;return reactExports.useEffect(()=>{lodashExports$1.delay(()=>{var en;(en=Ut==null?void 0:Ut.fitCamera)==null||en.call(Ut,tn=>{var an;return lodashExports$1.chain(jt).filter("viewKey").map("key").includes(((an=tn.meta)==null?void 0:an.sourceLayer)??"").value()})},150)},[Ut,lodashExports$1.chain(jt).map("viewKey").sort().join(".").value()]),jsxRuntimeExports.jsxs(_e,{onChange:Rt,stack:At,children:[jsxRuntimeExports.jsx(_e.Handle,{children:Pt}),jsxRuntimeExports.jsx(_e.Content,{children:jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(AutoSizer,{children:en=>jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(TraceRenderer,{...en,layers:jt,renderer:Xt,rendererRef:Gt})})})})}),jsxRuntimeExports.jsx(_e.Options,{children:jsxRuntimeExports.jsxs(Stack$1,{direction:"row",children:[jsxRuntimeExports.jsx(FeaturePicker,{label:"Renderer",icon:jsxRuntimeExports.jsx(BlurCircularOutlined,{}),value:(At==null?void 0:At.renderer)??"internal:auto",onChange:en=>Rt==null?void 0:Rt({renderer:en}),items:[{id:"internal:auto",name:`Auto (${((Jt=(Qt=qt==null?void 0:qt.renderer)==null?void 0:Qt.meta)==null?void 0:Jt.name)??"None"})`},...lodashExports$1.map(Dt,({renderer:en})=>({id:en.meta.id,name:en.meta.name,description:en.meta.id}))],arrow:!0}),divider$1,jsxRuntimeExports.jsx(FeaturePickerMulti,{defaultChecked:!0,label:"Layers",icon:jsxRuntimeExports.jsx(LayersIcon,{}),value:Bt,onChange:Nt,items:lodashExports$1.map(Lt,en=>({id:en.key,name:inferLayerName(en)})),showArrow:!0,ellipsis:12}),divider$1,jsxRuntimeExports.jsx(FeaturePickerButton,{disabled:!Ut,onClick:()=>{Ut==null||Ut.fitCamera()},icon:jsxRuntimeExports.jsx(CenterFocusStrongOutlined,{}),children:"Fit"}),jsxRuntimeExports.jsx(FeaturePickerButton,{disabled:!Ut,onClick:()=>{Ut==null||Ut.initialCamera()},icon:jsxRuntimeExports.jsx(CropFreeOutlined,{}),children:"1:1"})]})}),jsxRuntimeExports.jsx(_e.Extras,{children:lt})]})}const pages={explore:{id:"explore",name:"Explore",color:"pink",description:"Browse a library of examples and guides",icon:jsxRuntimeExports.jsx(RocketIcon,{}),content:ExplorePage,allowFullscreen:!0},layers:{id:"layers",name:"Layers",description:"",color:"deepPurple",icon:jsxRuntimeExports.jsx(LayersIcon,{}),content:LayersPage},steps:{id:"steps",name:"Steps",description:"",color:"deepPurple",icon:jsxRuntimeExports.jsx(StepsIcon,{}),content:StepsPage},viewport:{id:"viewport",name:"Viewport",description:"",color:"indigo",icon:jsxRuntimeExports.jsx(ViewportIcon,{}),content:ViewportPage},tree:{id:"tree",name:"Tree",description:"",color:"indigo",icon:jsxRuntimeExports.jsx(TreeIcon,{}),content:TreePage},debug:{id:"debug",name:"Debugger",description:"",color:"lightBlue",icon:jsxRuntimeExports.jsx(DebuggerIcon,{}),content:DebugPage},info:{id:"info",name:"Logs",description:"",color:"grey",icon:jsxRuntimeExports.jsx(LogsIcon,{}),content:InfoPage},settings:{id:"settings",name:"Settings",description:"",color:"grey",icon:jsxRuntimeExports.jsx(SettingsIcon,{}),content:SettingsPage},about:{id:"about",name:"About",description:"",color:"grey",icon:jsxRuntimeExports.jsx(AboutIcon,{}),content:AboutPage}};function _extends(){return _extends=Object.assign||function(_e){for(var lt=1;lt=0)&&(Rt[Pt]=_e[Pt]);return Rt}var EXCLUDED_NAMES=["PropTypes"],getSlotProps=function _e(lt,Rt){return reactExports.Children.toArray(lt).reduce(function(At,Pt){if(reactExports.isValidElement(Pt)){var Dt=Pt.type.displayName;Rt!=null&&Rt.includes(Dt)&&(At[Dt]=Pt.props)}return At},{})},getCleanChildren=function _e(lt,Rt){var At=reactExports.Children.toArray(lt).filter(function(Pt){if(reactExports.isValidElement(Pt)){var Dt=Pt.type.displayName;return!(Rt!=null&&Rt.includes(Dt))}return!0});return At.length>0?At:void 0},isComponentName=function _e(lt){return typeof lt=="string"&&!EXCLUDED_NAMES.includes(lt)&<.match(/^[A-Z0-9]/)},createResultComponent=function _e(lt){var Rt=reactExports.memo(function(At){var Pt=At.children,Dt=At.propagateSlotProps,Lt=At.slotKeys,Bt=Lt===void 0?[]:Lt,Nt=_objectWithoutPropertiesLoose(At,["children","propagateSlotProps","slotKeys"]),jt=reactExports.useMemo(function(){return getSlotProps(Pt,Bt)},[Bt,Pt]),Ut=reactExports.useMemo(function(){return getCleanChildren(Pt,Bt)},[Bt,Pt]),Gt=reactExports.useMemo(function(){return _extends({},Nt,{slotProps:_extends({},Dt,jt)})},[Nt,jt,Dt]);return reactExports.createElement(lt,Gt,Ut)});return Rt},withSlots=function _e(lt){var Rt=reactExports.memo(createResultComponent(lt));Rt.displayName="WithSlots("+(lt.displayName||lt.name)+")";var At=new Proxy(Rt,{get:function(Dt,Lt,Bt){var Nt;if(Lt in Dt||typeof Lt=="symbol"||!isComponentName(Lt))return Reflect.get(Dt,Lt,Bt);var jt=((Nt=Reflect.get(Dt,"defaultProps"))==null?void 0:Nt.slotKeys)||[],Ut=Reflect.get(Dt,Lt);if(!Ut){var Gt=function(){return null};Gt.displayName=Lt,Reflect.set(Dt,Lt,Gt)}return Reflect.set(Dt,"defaultProps",_extends({},Dt.defaultProps,{slotKeys:[].concat(jt,[Lt])})),Reflect.get(Dt,Lt,Bt)}});return At};const divider=jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0,sx:{m:1,height:_e=>_e.spacing(3),alignSelf:"auto"}}),Page=withSlots(({slotProps:_e,onChange:lt,stack:Rt})=>{var Pt,Dt,Lt,Bt;const At=useAcrylic();return jsxRuntimeExports.jsxs(Flex,{vertical:!0,children:[jsxRuntimeExports.jsx(Flex,{sx:{position:"absolute",top:0,left:0,width:"100%"},children:jsxRuntimeExports.jsx(Box$1,{sx:{width:"100%",height:"100%",bgcolor:"background.paper"},children:(Pt=_e.Content)==null?void 0:Pt.children})}),jsxRuntimeExports.jsxs(Flex,{sx:{height:Nt=>Nt.spacing(6)},children:[jsxRuntimeExports.jsx(Flex,{sx:{p:0,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,...At},children:jsxRuntimeExports.jsx(Scroll,{x:!0,children:jsxRuntimeExports.jsxs(Flex,{sx:{width:"max-content",height:Nt=>Nt.spacing(6),alignItems:"center",p:1},children:[(Dt=_e.Handle)==null?void 0:Dt.children,jsxRuntimeExports.jsx(FeaturePicker,{label:"Page",onChange:Nt=>lt==null?void 0:lt({...Rt,type:Nt}),value:Rt==null?void 0:Rt.type,items:lodashExports$1.values(pages),itemOrientation:"vertical"}),((Lt=_e.Options)==null?void 0:Lt.children)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[divider,_e.Options.children]})]})})}),jsxRuntimeExports.jsx(Space,{sx:{mx:"auto"}}),(Bt=_e.Extras)==null?void 0:Bt.children]})]})});function FullscreenProgress(){const[_e]=useBusy(),lt=useAcrylic(),Rt=lodashExports$1.values(_e);return jsxRuntimeExports.jsx(Backdrop$1,{sx:{...lt,zIndex:At=>At.zIndex.tooltip+1,WebkitAppRegion:"drag"},open:!!Rt.length,children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",spacing:4,children:[jsxRuntimeExports.jsx(CircularProgress$1,{}),Rt.map((At,Pt)=>jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"textSecondary",children:At},Pt))]})})}var FileDrop$1={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var _e=function(lt,Rt){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(At,Pt){At.__proto__=Pt}||function(At,Pt){for(var Dt in Pt)Pt.hasOwnProperty(Dt)&&(At[Dt]=Pt[Dt])},_e(lt,Rt)};return function(lt,Rt){_e(lt,Rt);function At(){this.constructor=lt}lt.prototype=Rt===null?Object.create(Rt):(At.prototype=Rt.prototype,new At)}}(),__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(FileDrop$1,"__esModule",{value:!0});var prop_types_1=__importDefault(propTypesExports),react_1=__importDefault(reactExports),FileDrop=function(_e){__extends(lt,_e);function lt(Rt){var At=_e.call(this,Rt)||this;return At.resetDragging=function(){At.frameDragCounter=0,At.setState({draggingOverFrame:!1,draggingOverTarget:!1})},At.handleWindowDragOverOrDrop=function(Pt){Pt.preventDefault()},At.handleFrameDrag=function(Pt){if(lt.eventHasFiles(Pt)){if(At.frameDragCounter+=Pt.type==="dragenter"?1:-1,At.frameDragCounter===1){At.setState({draggingOverFrame:!0}),At.props.onFrameDragEnter&&At.props.onFrameDragEnter(Pt);return}if(At.frameDragCounter===0){At.setState({draggingOverFrame:!1}),At.props.onFrameDragLeave&&At.props.onFrameDragLeave(Pt);return}}},At.handleFrameDrop=function(Pt){At.state.draggingOverTarget||(At.resetDragging(),At.props.onFrameDrop&&At.props.onFrameDrop(Pt))},At.handleDragOver=function(Pt){lt.eventHasFiles(Pt)&&(At.setState({draggingOverTarget:!0}),!lt.isIE()&&At.props.dropEffect&&(Pt.dataTransfer.dropEffect=At.props.dropEffect),At.props.onDragOver&&At.props.onDragOver(Pt))},At.handleDragLeave=function(Pt){At.setState({draggingOverTarget:!1}),At.props.onDragLeave&&At.props.onDragLeave(Pt)},At.handleDrop=function(Pt){if(At.props.onDrop&<.eventHasFiles(Pt)){var Dt=Pt.dataTransfer?Pt.dataTransfer.files:null;At.props.onDrop(Dt,Pt)}At.resetDragging()},At.handleTargetClick=function(Pt){At.props.onTargetClick&&At.props.onTargetClick(Pt),At.resetDragging()},At.stopFrameListeners=function(Pt){Pt&&(Pt.removeEventListener("dragenter",At.handleFrameDrag),Pt.removeEventListener("dragleave",At.handleFrameDrag),Pt.removeEventListener("drop",At.handleFrameDrop))},At.startFrameListeners=function(Pt){Pt&&(Pt.addEventListener("dragenter",At.handleFrameDrag),Pt.addEventListener("dragleave",At.handleFrameDrag),Pt.addEventListener("drop",At.handleFrameDrop))},At.frameDragCounter=0,At.state={draggingOverFrame:!1,draggingOverTarget:!1},At}return lt.prototype.componentDidMount=function(){this.startFrameListeners(this.props.frame),this.resetDragging(),window.addEventListener("dragover",this.handleWindowDragOverOrDrop),window.addEventListener("drop",this.handleWindowDragOverOrDrop)},lt.prototype.componentDidUpdate=function(Rt){Rt.frame!==this.props.frame&&(this.resetDragging(),this.stopFrameListeners(Rt.frame),this.startFrameListeners(this.props.frame))},lt.prototype.componentWillUnmount=function(){this.stopFrameListeners(this.props.frame),window.removeEventListener("dragover",this.handleWindowDragOverOrDrop),window.removeEventListener("drop",this.handleWindowDragOverOrDrop)},lt.prototype.render=function(){var Rt=this.props,At=Rt.children,Pt=Rt.className,Dt=Rt.targetClassName,Lt=Rt.draggingOverFrameClassName,Bt=Rt.draggingOverTargetClassName,Nt=this.state,jt=Nt.draggingOverTarget,Ut=Nt.draggingOverFrame,Gt=Dt;return Ut&&(Gt+=" "+Lt),jt&&(Gt+=" "+Bt),react_1.default.createElement("div",{className:Pt,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},react_1.default.createElement("div",{className:Gt,onClick:this.handleTargetClick},At))},lt.isIE=function(){return typeof window<"u"&&(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>0)},lt.eventHasFiles=function(Rt){var At=!1;if(Rt.dataTransfer){var Pt=Rt.dataTransfer.types;for(var Dt in Pt)if(Pt[Dt]==="Files"){At=!0;break}}return At},lt.propTypes={className:prop_types_1.default.string,targetClassName:prop_types_1.default.string,draggingOverFrameClassName:prop_types_1.default.string,draggingOverTargetClassName:prop_types_1.default.string,onDragOver:prop_types_1.default.func,onDragLeave:prop_types_1.default.func,onDrop:prop_types_1.default.func,onTargetClick:prop_types_1.default.func,dropEffect:prop_types_1.default.oneOf(["copy","move","link","none"]),frame:function(Rt,At,Pt){var Dt=Rt[At];if(Dt==null)return new Error("Warning: Required prop `"+At+"` was not specified in `"+Pt+"`");if(Dt!==document&&!(Dt instanceof HTMLElement))return new Error("Warning: Prop `"+At+"` must be one of the following: document, HTMLElement!")},onFrameDragEnter:prop_types_1.default.func,onFrameDragLeave:prop_types_1.default.func,onFrameDrop:prop_types_1.default.func},lt.defaultProps={dropEffect:"copy",frame:typeof window>"u"?void 0:window.document,className:"file-drop",targetClassName:"file-drop-target",draggingOverFrameClassName:"file-drop-dragging-over-frame",draggingOverTargetClassName:"file-drop-dragging-over-target"},lt}(react_1.default.PureComponent),FileDrop_2=FileDrop$1.FileDrop=FileDrop;function FileDropZone(){const _e=useAcrylic(),{load:lt}=useWorkspace(),[Rt,At]=reactExports.useState(0),[,Pt]=useLayers(),Dt=useBusyState("file-drop-import"),Lt=useSnackbar();async function Bt(Nt){let jt=0;for(const[Ut,Gt]of Nt.map((...qt)=>qt))for(const[qt,{claimImportedFile:Xt}]of lodashExports$1.entries(layerHandlers)){const Kt=await(Xt==null?void 0:Xt(Ut));if(Kt!=null&&Kt.claimed){await Dt(async()=>{const Zt=await Kt.layer(Lt);Pt(producify(Qt=>Qt.layers.push({key:nanoid$1(),source:{type:qt,...Zt}})))},`${Gt+1} of ${Nt.length}: Importing ${qt} (${formatByte(Ut.size)})`),jt+=1;continue}}!jt&&await lt(lodashExports$1.head(Nt))||Lt(`Couldn't open ${Nt.length} of ${pluralize("file",Nt.length,!0)}`)}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(FileDrop_2,{onFrameDragLeave:()=>At(0),onFrameDragEnter:Nt=>{var jt;return At(((jt=Nt==null?void 0:Nt.dataTransfer)==null?void 0:jt.items.length)??0)},onFrameDrop:()=>At(0),onDragLeave:()=>At(0),onDrop:Nt=>Nt&&Bt(Array.from(Nt)),children:jsxRuntimeExports.jsx(Backdrop$1,{sx:{..._e,zIndex:Nt=>Nt.zIndex.tooltip+1},open:!!Rt,children:jsxRuntimeExports.jsxs(Stack$1,{alignItems:"center",spacing:4,children:[jsxRuntimeExports.jsx(WorkspacesOutlined,{}),jsxRuntimeExports.jsx(Typography$1,{variant:"body2",color:"text.secondary",children:Rt?`Import ${pluralize("item",Rt,!0)}`:""})]})})})})}function wait(_e){return new Promise(lt=>lodashExports$1.delay(lt,_e))}async function timed(_e,lt=2500){const Rt=lodashExports$1.now();return{result:await Promise.any([_e(),wait(lt)]),delta:lodashExports$1.now()-Rt}}const FullscreenPage=withSlots(({slotProps:_e,showOnStartUpChecked:lt,onShowOnStartUpCheckedChange:Rt})=>{var Pt,Dt,Lt,Bt;const At=useSmallDisplay();return jsxRuntimeExports.jsxs(Box$1,{sx:{height:"100%"},children:[!!((Pt=_e.Options)!=null&&Pt.children)&&jsxRuntimeExports.jsxs(Flex,{sx:{height:Nt=>Nt.spacing(6)},children:[jsxRuntimeExports.jsxs(Flex,{sx:{p:0,zIndex:1,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,background:Nt=>Nt.palette.background.paper},children:[jsxRuntimeExports.jsx(Scroll,{x:!0,children:jsxRuntimeExports.jsx(Flex,{sx:{width:"max-content",height:Nt=>Nt.spacing(6),alignItems:"center",p:1},children:((Dt=_e.Options)==null?void 0:Dt.children)&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e.Options.children})})}),jsxRuntimeExports.jsx(FormControlLabel$1,{label:"Show on start-up",labelPlacement:"start",sx:{ml:"auto",mr:-5,minWidth:"fit-content"},control:jsxRuntimeExports.jsx(Checkbox$1,{defaultChecked:lt,onChange:(Nt,jt)=>Rt==null?void 0:Rt(jt)})})]}),jsxRuntimeExports.jsx(Space,{sx:{mx:"auto"}}),(Lt=_e.Extras)==null?void 0:Lt.children]}),jsxRuntimeExports.jsx(Box$1,{sx:{bgcolor:"background.paper",mt:-6,height:"100%"},children:jsxRuntimeExports.jsx(Scroll,{y:!0,style:{height:At?"100%":"70vh"},children:(Bt=_e.Content)==null?void 0:Bt.children})})]})});function FullscreenModalHost(){const[{"behaviour/showOnStart":_e},lt]=useSettings(),[{fullscreenModal:Rt},At]=useUIState(),[Pt,Dt]=reactExports.useState(!1);async function Lt(){Dt(!0),await wait(300),At(()=>({fullscreenModal:void 0})),Dt(!1)}const Bt=Rt?pages[Rt]:void 0,Nt=reactExports.useMemo(()=>{if(Bt){const jt=Bt.content,Ut=withSlots(({slotProps:Gt,...qt})=>{var Xt,Kt;return jsxRuntimeExports.jsxs(FullscreenPage,{...qt,onShowOnStartUpCheckedChange:Zt=>lt(()=>({"behaviour/showOnStart":Zt?Rt:void 0})),showOnStartUpChecked:_e===Rt,children:[jsxRuntimeExports.jsx(FullscreenPage.Content,{children:(Xt=Gt.Content)==null?void 0:Xt.children}),jsxRuntimeExports.jsx(FullscreenPage.Options,{children:(Kt=Gt.Options)==null?void 0:Kt.children})]})});return jsxRuntimeExports.jsx(jt,{template:Ut})}},[Rt,Bt]);return!!Bt&&jsxRuntimeExports.jsxs(Modal,{open:!Pt,onClose:Lt,width:"70vw",children:[jsxRuntimeExports.jsx(ModalAppBar,{onClose:Lt,children:jsxRuntimeExports.jsx(Typography$1,{variant:"h6",children:Bt.name})}),Nt]})}function Inspector(_e){const lt=useAnyLoading(),[{view:Rt},At]=useView(),[,Pt]=useUIState();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Flex,{..._e,children:jsxRuntimeExports.jsx(ViewTree,{onPopOut:Dt=>Pt(()=>{var Lt;return{fullscreenModal:(Lt=Dt.content)==null?void 0:Lt.type}}),canPopOut:Dt=>{var Lt;return!!((Lt=pages[Dt.content.type])!=null&&Lt.allowFullscreen)},root:Rt,onChange:Dt=>At(()=>({view:Dt})),renderLeaf:({content:Dt})=>{var Lt;return jsxRuntimeExports.jsx(Box$1,{sx:{width:"100%",height:"100%"},children:reactExports.createElement((Lt=pages[(Dt==null?void 0:Dt.type)??""])==null?void 0:Lt.content,{template:Page})})}})}),jsxRuntimeExports.jsx(Fade$1,{in:lt,children:jsxRuntimeExports.jsx(LinearProgress$1,{variant:"indeterminate",sx:{position:"absolute",bottom:0,width:"100%",zIndex:1}})}),jsxRuntimeExports.jsx(FullscreenModalHost,{}),jsxRuntimeExports.jsx(FullscreenProgress,{}),jsxRuntimeExports.jsx(FileDropZone,{})]})}const getForegroundColor=_e=>getContrastRatio(_e,"#ffffff")>getContrastRatio(_e,"#000000")?"#ffffff":"#000000";function useTitleBar(_e){reactExports.useEffect(()=>{lodashExports$1.defer(()=>document.querySelector('meta[name="theme-color"]').setAttribute("content",_e)),document.title=name$2,"electron"in window&&window.electron.invoke("title-bar","#00000000",getForegroundColor(_e))},[_e])}function ConnectionsService(){const _e=useSnackbar(),[{remote:lt}]=useSettings(),[,Rt]=useConnections(),At=useLoadingState("connections");return reactExports.useEffect(()=>{let Pt=!1,Dt=[];return At(async()=>{if(lt!=null&<.length){for(const{transport:Lt,url:Bt,disabled:Nt}of lt){if(Nt!==!0){_e(`Connecting to ${Bt}...`);const jt=new(getTransport(Lt))({url:Bt});await jt.connect();const{result:Ut,delta:Gt}=await timed(()=>jt.call("about"));Ut?(_e(`Connected to ${Ut.name}`),Dt=[...Dt,{...Ut,url:Bt,ping:Gt,transport:()=>jt}]):await jt.disconnect()}Pt||Rt(()=>Dt)}Pt||_e(`Connected to ${Dt.length} of ${lt.length} solvers`)}}),()=>{Pt=!0,Dt.map(Lt=>Lt.transport().disconnect())}},[lt,Rt,_e,At]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function withSource(_e){return lt=>({...lt,source:_e})}const getFeatures=async({transport:_e,url:lt})=>lodashExports$1.chain(await map$6(["algorithms","formats","maps","traces"],async Rt=>{const{result:At}=await timed(()=>_e().call(`features/${Rt}`),1e3);return{prop:Rt,result:lodashExports$1.map(At,withSource(lt))}})).keyBy("prop").mapValues("result").value();function FeaturesService(){const[_e]=useConnections(),[,lt]=useFeatures(),[{connections:Rt}]=useLoading();return useAsyncAbortable(async At=>{if(!Rt){const Pt={default:{algorithms:[],formats:lodashExports$1.keys(mapParsers).map(Lt=>({id:Lt,source:"internal"})),traces:[],maps:[]}},Dt=()=>{if(!At.aborted){const Lt=lodashExports$1.chain(Pt).values().reduce((Bt,Nt)=>lodashExports$1.mergeWith({},Bt,Nt,(jt,Ut)=>lodashExports$1.isArray(jt)?lodashExports$1.uniqBy([...jt,...Ut],"id"):void 0)).value();lt(()=>Lt)}};for(const Lt of _e){const Bt=async()=>{Pt[Lt.url]=await getFeatures(Lt),Dt()};Lt.transport().on("features/changed",Bt),Bt()}}},[_e,getFeatures,lt,Rt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function useLayerServices(){const[{layers:_e},lt]=useLayers();return reactExports.useMemo(()=>lodashExports$1.map(_e,Rt=>{const At=getLayerHandler(Rt).service;if(At)return reactExports.createElement(At,{key:Rt.key,value:Rt,onChange:Pt=>lt(({layers:Dt})=>({layers:lodashExports$1.map(Dt,Lt=>Lt.key===Rt.key?Pt(Lt):Lt)}))})}),[_e,lt])}function LayerService(){const _e=useLayerServices();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e})}function SliceProvider({slices:_e,children:lt,services:Rt}){return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:lodashExports$1.reduce(lodashExports$1.map(_e,At=>reactExports.createElement(At)),(At,Pt)=>reactExports.cloneElement(Pt,{},At),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lt,lodashExports$1.map(Rt,(At,Pt)=>reactExports.createElement(At,{key:Pt}))]}))})}var dist={},ConsoleCapture$1={},logs={};Object.defineProperty(logs,"__esModule",{value:!0});logs.overridableFunctionNames=void 0;logs.overridableFunctionNames=["log","warn","info","debug","error"];Object.defineProperty(ConsoleCapture$1,"__esModule",{value:!0});ConsoleCapture$1.ConsoleCapture=void 0;var logs_1=logs;console.original={};var ConsoleCapture=function(){function _e(){_e.captures=[]}return _e.saveLog=function(lt,Rt){var At=Rt.map(function(Pt){return typeof Pt=="object"?Pt instanceof Error?JSON.stringify(Pt,Object.getOwnPropertyNames(Pt)):JSON.stringify(Pt):Pt});_e.captures.push({function:lt,args:At,ts:Date.now()})},_e.setNewFunctions=function(lt){lt===void 0&&(lt=!1);var Rt={apply:function(At,Pt,Dt){if(_e.saveLog(At.name,Dt),At.bind(Pt),lt)return At.apply(void 0,Dt)}};logs_1.overridableFunctionNames.forEach(function(At){_e.consoleOverriden||(console.original[At]=console[At]),console[At]=new Proxy(console[At],Rt)}),_e.consoleOverriden=!0},_e.resetToOriginalFunctions=function(){_e.consoleOverriden&&logs_1.overridableFunctionNames.forEach(function(lt){console[lt]=console.original[lt]}),_e.consoleOverriden=!1},_e.prototype.start=function(lt){lt===void 0&&(lt=!1),_e.captures=[],_e.setNewFunctions(lt)},_e.prototype.stop=function(){_e.resetToOriginalFunctions()},_e.prototype.flush=function(){_e.captures=[]},_e.prototype.getCaptures=function(){return _e.captures},_e.makeOriginalLog=function(lt){if(_e.resetToOriginalFunctions(),logs_1.overridableFunctionNames.includes(lt.function)){var Rt=lt.args.map(function(At){if(typeof At=="string")try{var Pt=JSON.parse(At);return Pt.stack?Pt.stack:Pt}catch{return At}return At});console[lt.function].apply(console,Rt)}else throw Error("Invalid Log type")},_e.consoleOverriden=!1,_e}();ConsoleCapture$1.ConsoleCapture=ConsoleCapture;Object.defineProperty(dist,"__esModule",{value:!0});var ConsoleCapture_1=ConsoleCapture$1;dist.default=ConsoleCapture_1.ConsoleCapture;function LogCaptureService(){return useSnackbar(),reactExports.useEffect(()=>{},[]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}function SettingsService(){const[{"behaviour/showOnStart":_e},,lt]=useSettings(),[,Rt]=useUIState();return reactExports.useEffect(()=>{_e&<&&Rt(()=>({fullscreenModal:_e}))},[lt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}const services=[ConnectionsService,FeaturesService,RendererService,LayerService,LogCaptureService,SettingsService];function App(){const lt=useTheme().palette.background.default;return useTitleBar(lt),jsxRuntimeExports.jsxs(Flex,{vertical:!0,sx:{bgcolor:lt,color:"text.primary"},children:[jsxRuntimeExports.jsx(TitleBar,{}),jsxRuntimeExports.jsx(Inspector,{flex:1})]})}function ThemedApp(){const[{"appearance/theme":_e="light","appearance/accentColor":lt="teal"}]=useSettings(),Rt=reactExports.useMemo(()=>makeTheme(_e,lt),[_e,lt]);return jsxRuntimeExports.jsx(ThemeProvider,{theme:Rt,children:jsxRuntimeExports.jsx(SnackbarProvider,{children:jsxRuntimeExports.jsx(SliceProvider,{services,children:jsxRuntimeExports.jsx(App,{})})})})}const index="",overlayscrollbars="";var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;const root=createRoot(document.getElementById("root")),slices=[BusyProvider,SettingsProvider,ConnectionsProvider,FeaturesProvider,UIStateProvider,LoadingProvider,RendererProvider,LogProvider,ViewProvider,LayersProvider,ScreenshotsProvider];root.render(jsxRuntimeExports.jsx(CssBaseline,{children:jsxRuntimeExports.jsx(SliceProvider,{slices,children:jsxRuntimeExports.jsx(ThemedApp,{})})})); diff --git a/assets/parseTrace.worker-413a1f44.js b/assets/parseTrace.worker-413a1f44.js new file mode 100644 index 00000000..30588509 --- /dev/null +++ b/assets/parseTrace.worker-413a1f44.js @@ -0,0 +1,27 @@ +(function(){"use strict";var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vt={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */vt.exports,function(h,w){(function(){var f,P="4.17.21",O=200,C="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",R="Expected a function",k="Invalid `variable` option passed into `_.template`",Z="__lodash_hash_undefined__",N=500,j="__lodash_placeholder__",an=1,G=2,z=4,pn=1,ln=2,L=1,_n=2,W=4,A=8,D=16,Y=32,J=64,nn=128,sn=256,Br=512,Es=30,Cs="...",Ls=800,Ps=16,Uu=1,Ws=2,Fs=3,de=1/0,oe=9007199254740991,Ms=17976931348623157e292,mt=0/0,Yn=4294967295,Bs=Yn-1,Us=Yn>>>1,Ds=[["ary",nn],["bind",L],["bindKey",_n],["curry",A],["curryRight",D],["flip",Br],["partial",Y],["partialRight",J],["rearg",sn]],Ee="[object Arguments]",xt="[object Array]",qs="[object AsyncFunction]",Xe="[object Boolean]",Je="[object Date]",$s="[object DOMException]",yt="[object Error]",At="[object Function]",Du="[object GeneratorFunction]",Nn="[object Map]",Qe="[object Number]",Ns="[object Null]",Vn="[object Object]",qu="[object Promise]",Gs="[object Proxy]",Ve="[object RegExp]",Gn="[object Set]",ke="[object String]",St="[object Symbol]",Hs="[object Undefined]",je="[object WeakMap]",zs="[object WeakSet]",nt="[object ArrayBuffer]",Ce="[object DataView]",Ur="[object Float32Array]",Dr="[object Float64Array]",qr="[object Int8Array]",$r="[object Int16Array]",Nr="[object Int32Array]",Gr="[object Uint8Array]",Hr="[object Uint8ClampedArray]",zr="[object Uint16Array]",Kr="[object Uint32Array]",Ks=/\b__p \+= '';/g,Zs=/\b(__p \+=) '' \+/g,Ys=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$u=/&(?:amp|lt|gt|quot|#39);/g,Nu=/[&<>"']/g,Xs=RegExp($u.source),Js=RegExp(Nu.source),Qs=/<%-([\s\S]+?)%>/g,Vs=/<%([\s\S]+?)%>/g,Gu=/<%=([\s\S]+?)%>/g,ks=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,js=/^\w*$/,nl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/[\\^$.*+?()[\]{}|]/g,el=RegExp(Zr.source),Yr=/^\s+/,tl=/\s/,rl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,il=/\{\n\/\* \[wrapped with (.+)\] \*/,ul=/,? & /,fl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ol=/[()=,{}\[\]\/\s]/,al=/\\(\\)?/g,sl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Hu=/\w*$/,ll=/^[-+]0x[0-9a-f]+$/i,cl=/^0b[01]+$/i,hl=/^\[object .+?Constructor\]$/,gl=/^0o[0-7]+$/i,pl=/^(?:0|[1-9]\d*)$/,_l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,vl=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",dl="\\u0300-\\u036f",wl="\\ufe20-\\ufe2f",ml="\\u20d0-\\u20ff",zu=dl+wl+ml,Ku="\\u2700-\\u27bf",Zu="a-z\\xdf-\\xf6\\xf8-\\xff",xl="\\xac\\xb1\\xd7\\xf7",yl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Al="\\u2000-\\u206f",Sl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yu="A-Z\\xc0-\\xd6\\xd8-\\xde",Xu="\\ufe0e\\ufe0f",Ju=xl+yl+Al+Sl,Xr="['’]",bl="["+It+"]",Qu="["+Ju+"]",Rt="["+zu+"]",Vu="\\d+",Il="["+Ku+"]",ku="["+Zu+"]",ju="[^"+It+Ju+Vu+Ku+Zu+Yu+"]",Jr="\\ud83c[\\udffb-\\udfff]",Rl="(?:"+Rt+"|"+Jr+")",nf="[^"+It+"]",Qr="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Yu+"]",ef="\\u200d",tf="(?:"+ku+"|"+ju+")",Tl="(?:"+Le+"|"+ju+")",rf="(?:"+Xr+"(?:d|ll|m|re|s|t|ve))?",uf="(?:"+Xr+"(?:D|LL|M|RE|S|T|VE))?",ff=Rl+"?",of="["+Xu+"]?",Ol="(?:"+ef+"(?:"+[nf,Qr,Vr].join("|")+")"+of+ff+")*",El="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",af=of+ff+Ol,Ll="(?:"+[Il,Qr,Vr].join("|")+")"+af,Pl="(?:"+[nf+Rt+"?",Rt,Qr,Vr,bl].join("|")+")",Wl=RegExp(Xr,"g"),Fl=RegExp(Rt,"g"),kr=RegExp(Jr+"(?="+Jr+")|"+Pl+af,"g"),Ml=RegExp([Le+"?"+ku+"+"+rf+"(?="+[Qu,Le,"$"].join("|")+")",Tl+"+"+uf+"(?="+[Qu,Le+tf,"$"].join("|")+")",Le+"?"+tf+"+"+rf,Le+"+"+uf,Cl,El,Vu,Ll].join("|"),"g"),Bl=RegExp("["+ef+It+zu+Xu+"]"),Ul=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ql=-1,en={};en[Ur]=en[Dr]=en[qr]=en[$r]=en[Nr]=en[Gr]=en[Hr]=en[zr]=en[Kr]=!0,en[Ee]=en[xt]=en[nt]=en[Xe]=en[Ce]=en[Je]=en[yt]=en[At]=en[Nn]=en[Qe]=en[Vn]=en[Ve]=en[Gn]=en[ke]=en[je]=!1;var V={};V[Ee]=V[xt]=V[nt]=V[Ce]=V[Xe]=V[Je]=V[Ur]=V[Dr]=V[qr]=V[$r]=V[Nr]=V[Nn]=V[Qe]=V[Vn]=V[Ve]=V[Gn]=V[ke]=V[St]=V[Gr]=V[Hr]=V[zr]=V[Kr]=!0,V[yt]=V[At]=V[je]=!1;var $l={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Nl={"&":"&","<":"<",">":">",'"':""","'":"'"},Gl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Hl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zl=parseFloat,Kl=parseInt,sf=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Zl=typeof self=="object"&&self&&self.Object===Object&&self,vn=sf||Zl||Function("return this")(),jr=w&&!w.nodeType&&w,we=jr&&!0&&h&&!h.nodeType&&h,lf=we&&we.exports===jr,ni=lf&&sf.process,Wn=function(){try{var l=we&&we.require&&we.require("util").types;return l||ni&&ni.binding&&ni.binding("util")}catch{}}(),cf=Wn&&Wn.isArrayBuffer,hf=Wn&&Wn.isDate,gf=Wn&&Wn.isMap,pf=Wn&&Wn.isRegExp,_f=Wn&&Wn.isSet,vf=Wn&&Wn.isTypedArray;function Tn(l,p,g){switch(g.length){case 0:return l.call(p);case 1:return l.call(p,g[0]);case 2:return l.call(p,g[0],g[1]);case 3:return l.call(p,g[0],g[1],g[2])}return l.apply(p,g)}function Yl(l,p,g,x){for(var T=-1,H=l==null?0:l.length;++T-1}function ei(l,p,g){for(var x=-1,T=l==null?0:l.length;++x-1;);return g}function bf(l,p){for(var g=l.length;g--&&Pe(p,l[g],0)>-1;);return g}function tc(l,p){for(var g=l.length,x=0;g--;)l[g]===p&&++x;return x}var rc=ui($l),ic=ui(Nl);function uc(l){return"\\"+Hl[l]}function fc(l,p){return l==null?f:l[p]}function We(l){return Bl.test(l)}function oc(l){return Ul.test(l)}function ac(l){for(var p,g=[];!(p=l.next()).done;)g.push(p.value);return g}function si(l){var p=-1,g=Array(l.size);return l.forEach(function(x,T){g[++p]=[T,x]}),g}function If(l,p){return function(g){return l(p(g))}}function le(l,p){for(var g=-1,x=l.length,T=0,H=[];++g-1}function Jc(n,e){var t=this.__data__,r=zt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}kn.prototype.clear=Kc,kn.prototype.delete=Zc,kn.prototype.get=Yc,kn.prototype.has=Xc,kn.prototype.set=Jc;function jn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Un(n,e,t,r,i,o){var a,s=e&an,c=e&G,_=e&z;if(t&&(a=i?t(n,r,i,o):t(n)),a!==f)return a;if(!rn(n))return n;var v=E(n);if(v){if(a=jh(n),!s)return Sn(n,a)}else{var d=mn(n),m=d==At||d==Du;if(ve(n))return oo(n,s);if(d==Vn||d==Ee||m&&!i){if(a=c||m?{}:To(n),!s)return c?Gh(n,ch(a,n)):Nh(n,Uf(a,n))}else{if(!V[d])return i?n:{};a=ng(n,d,s)}}o||(o=new zn);var y=o.get(n);if(y)return y;o.set(n,a),ta(n)?n.forEach(function(I){a.add(Un(I,e,t,I,n,o))}):na(n)&&n.forEach(function(I,U){a.set(U,Un(I,e,t,U,n,o))});var b=_?c?Mi:Fi:c?In:gn,M=v?f:b(n);return Fn(M||n,function(I,U){M&&(U=I,I=n[U]),ot(a,U,Un(I,e,t,U,n,o))}),a}function hh(n){var e=gn(n);return function(t){return Df(t,n,e)}}function Df(n,e,t){var r=t.length;if(n==null)return!r;for(n=Q(n);r--;){var i=t[r],o=e[i],a=n[i];if(a===f&&!(i in n)||!o(a))return!1}return!0}function qf(n,e,t){if(typeof n!="function")throw new Mn(R);return pt(function(){n.apply(f,t)},e)}function at(n,e,t,r){var i=-1,o=Tt,a=!0,s=n.length,c=[],_=e.length;if(!s)return c;t&&(e=tn(e,On(t))),r?(o=ei,a=!1):e.length>=O&&(o=et,a=!1,e=new ye(e));n:for(;++ii?0:i+t),r=r===f||r>i?i:F(r),r<0&&(r+=i),r=t>r?0:ia(r);t0&&t(s)?e>1?dn(s,e-1,t,r,i):se(i,s):r||(i[i.length]=s)}return i}var vi=go(),Gf=go(!0);function Xn(n,e){return n&&vi(n,e,gn)}function di(n,e){return n&&Gf(n,e,gn)}function Zt(n,e){return ae(e,function(t){return ie(n[t])})}function Se(n,e){e=pe(e,n);for(var t=0,r=e.length;n!=null&&te}function _h(n,e){return n!=null&&X.call(n,e)}function vh(n,e){return n!=null&&e in Q(n)}function dh(n,e,t){return n>=wn(e,t)&&n=120&&v.length>=120)?new ye(a&&v):f}v=n[0];var d=-1,m=s[0];n:for(;++d-1;)s!==n&&Ut.call(s,c,1),Ut.call(n,c,1);return n}function jf(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==o){var o=i;re(i)?Ut.call(n,i,1):Ti(n,i)}}return n}function bi(n,e){return n+$t(Wf()*(e-n+1))}function Ch(n,e,t,r){for(var i=-1,o=hn(qt((e-n)/(t||1)),0),a=g(o);o--;)a[r?o:++i]=n,n+=t;return a}function Ii(n,e){var t="";if(!n||e<1||e>oe)return t;do e%2&&(t+=n),e=$t(e/2),e&&(n+=n);while(e);return t}function B(n,e){return Gi(Co(n,e,Rn),n+"")}function Lh(n){return Bf(ze(n))}function Ph(n,e){var t=ze(n);return rr(t,Ae(e,0,t.length))}function ct(n,e,t,r){if(!rn(n))return n;e=pe(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=g(i);++r>>1,a=n[o];a!==null&&!Cn(a)&&(t?a<=e:a=O){var _=e?null:Zh(n);if(_)return Et(_);a=!1,i=et,c=new ye}else c=e?[]:s;n:for(;++r=r?n:Dn(n,e,t)}var fo=Sc||function(n){return vn.clearTimeout(n)};function oo(n,e){if(e)return n.slice();var t=n.length,r=Of?Of(t):new n.constructor(t);return n.copy(r),r}function Li(n){var e=new n.constructor(n.byteLength);return new Mt(e).set(new Mt(n)),e}function Uh(n,e){var t=e?Li(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Dh(n){var e=new n.constructor(n.source,Hu.exec(n));return e.lastIndex=n.lastIndex,e}function qh(n){return ft?Q(ft.call(n)):{}}function ao(n,e){var t=e?Li(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function so(n,e){if(n!==e){var t=n!==f,r=n===null,i=n===n,o=Cn(n),a=e!==f,s=e===null,c=e===e,_=Cn(e);if(!s&&!_&&!o&&n>e||o&&a&&c&&!s&&!_||r&&a&&c||!t&&c||!i)return 1;if(!r&&!o&&!_&&n=s)return c;var _=t[r];return c*(_=="desc"?-1:1)}}return n.index-e.index}function lo(n,e,t,r){for(var i=-1,o=n.length,a=t.length,s=-1,c=e.length,_=hn(o-a,0),v=g(c+_),d=!r;++s1?t[i-1]:f,a=i>2?t[2]:f;for(o=n.length>3&&typeof o=="function"?(i--,o):f,a&&yn(t[0],t[1],a)&&(o=i<3?f:o,i=1),e=Q(e);++r-1?i[o?e[a]:a]:f}}function vo(n){return te(function(e){var t=e.length,r=t,i=Bn.prototype.thru;for(n&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new Mn(R);if(i&&!a&&er(o)=="wrapper")var a=new Bn([],!0)}for(r=a?r:t;++r1&&$.reverse(),v&&cs))return!1;var _=o.get(n),v=o.get(e);if(_&&v)return _==e&&v==n;var d=-1,m=!0,y=t&ln?new ye:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(rl,`{ +/* [wrapped with `+e+`] */ +`)}function tg(n){return E(n)||Re(n)||!!(Lf&&n&&n[Lf])}function re(n,e){var t=typeof n;return e=e??oe,!!e&&(t=="number"||t!="symbol"&&pl.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Ls)return arguments[0]}else e=0;return n.apply(f,arguments)}}function rr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===f?r:e;++t1?n[e-1]:f;return t=typeof t=="function"?(n.pop(),t):f,Go(n,t)});function Ho(n){var e=u(n);return e.__chain__=!0,e}function gp(n,e){return e(n),n}function ir(n,e){return e(n)}var pp=te(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(o){return _i(o,n)};return e>1||this.__actions__.length||!(r instanceof q)||!re(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:ir,args:[i],thisArg:f}),new Bn(r,this.__chain__).thru(function(o){return e&&!o.length&&o.push(f),o}))});function _p(){return Ho(this)}function vp(){return new Bn(this.value(),this.__chain__)}function dp(){this.__values__===f&&(this.__values__=ra(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function wp(){return this}function mp(n){for(var e,t=this;t instanceof Ht;){var r=Bo(t);r.__index__=0,r.__values__=f,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function xp(){var n=this.__wrapped__;if(n instanceof q){var e=n;return this.__actions__.length&&(e=new q(this)),e=e.reverse(),e.__actions__.push({func:ir,args:[Hi],thisArg:f}),new Bn(e,this.__chain__)}return this.thru(Hi)}function yp(){return io(this.__wrapped__,this.__actions__)}var Ap=Qt(function(n,e,t){X.call(n,t)?++n[t]:ne(n,t,1)});function Sp(n,e,t){var r=E(n)?df:gh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}function bp(n,e){var t=E(n)?ae:Nf;return t(n,S(e,3))}var Ip=_o(Uo),Rp=_o(Do);function Tp(n,e){return dn(ur(n,e),1)}function Op(n,e){return dn(ur(n,e),de)}function Ep(n,e,t){return t=t===f?1:F(t),dn(ur(n,e),t)}function zo(n,e){var t=E(n)?Fn:he;return t(n,S(e,3))}function Ko(n,e){var t=E(n)?Xl:$f;return t(n,S(e,3))}var Cp=Qt(function(n,e,t){X.call(n,t)?n[t].push(e):ne(n,t,[e])});function Lp(n,e,t,r){n=bn(n)?n:ze(n),t=t&&!r?F(t):0;var i=n.length;return t<0&&(t=hn(i+t,0)),lr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Pe(n,e,t)>-1}var Pp=B(function(n,e,t){var r=-1,i=typeof e=="function",o=bn(n)?g(n.length):[];return he(n,function(a){o[++r]=i?Tn(e,a,t):st(a,e,t)}),o}),Wp=Qt(function(n,e,t){ne(n,t,e)});function ur(n,e){var t=E(n)?tn:Yf;return t(n,S(e,3))}function Fp(n,e,t,r){return n==null?[]:(E(e)||(e=e==null?[]:[e]),t=r?f:t,E(t)||(t=t==null?[]:[t]),Vf(n,e,t))}var Mp=Qt(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function Bp(n,e,t){var r=E(n)?ti:yf,i=arguments.length<3;return r(n,S(e,4),t,i,he)}function Up(n,e,t){var r=E(n)?Jl:yf,i=arguments.length<3;return r(n,S(e,4),t,i,$f)}function Dp(n,e){var t=E(n)?ae:Nf;return t(n,ar(S(e,3)))}function qp(n){var e=E(n)?Bf:Lh;return e(n)}function $p(n,e,t){(t?yn(n,e,t):e===f)?e=1:e=F(e);var r=E(n)?ah:Ph;return r(n,e)}function Np(n){var e=E(n)?sh:Fh;return e(n)}function Gp(n){if(n==null)return 0;if(bn(n))return lr(n)?Fe(n):n.length;var e=mn(n);return e==Nn||e==Gn?n.size:yi(n).length}function Hp(n,e,t){var r=E(n)?ri:Mh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}var zp=B(function(n,e){if(n==null)return[];var t=e.length;return t>1&&yn(n,e[0],e[1])?e=[]:t>2&&yn(e[0],e[1],e[2])&&(e=[e[0]]),Vf(n,dn(e,1),[])}),fr=bc||function(){return vn.Date.now()};function Kp(n,e){if(typeof e!="function")throw new Mn(R);return n=F(n),function(){if(--n<1)return e.apply(this,arguments)}}function Zo(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,ee(n,nn,f,f,f,f,e)}function Yo(n,e){var t;if(typeof e!="function")throw new Mn(R);return n=F(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=f),t}}var Ki=B(function(n,e,t){var r=L;if(t.length){var i=le(t,Ge(Ki));r|=Y}return ee(n,r,e,t,i)}),Xo=B(function(n,e,t){var r=L|_n;if(t.length){var i=le(t,Ge(Xo));r|=Y}return ee(e,r,n,t,i)});function Jo(n,e,t){e=t?f:e;var r=ee(n,A,f,f,f,f,f,e);return r.placeholder=Jo.placeholder,r}function Qo(n,e,t){e=t?f:e;var r=ee(n,D,f,f,f,f,f,e);return r.placeholder=Qo.placeholder,r}function Vo(n,e,t){var r,i,o,a,s,c,_=0,v=!1,d=!1,m=!0;if(typeof n!="function")throw new Mn(R);e=$n(e)||0,rn(t)&&(v=!!t.leading,d="maxWait"in t,o=d?hn($n(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function y(on){var Zn=r,fe=i;return r=i=f,_=on,a=n.apply(fe,Zn),a}function b(on){return _=on,s=pt(U,e),v?y(on):a}function M(on){var Zn=on-c,fe=on-_,va=e-Zn;return d?wn(va,o-fe):va}function I(on){var Zn=on-c,fe=on-_;return c===f||Zn>=e||Zn<0||d&&fe>=o}function U(){var on=fr();if(I(on))return $(on);s=pt(U,M(on))}function $(on){return s=f,m&&r?y(on):(r=i=f,a)}function Ln(){s!==f&&fo(s),_=0,r=c=i=s=f}function An(){return s===f?a:$(fr())}function Pn(){var on=fr(),Zn=I(on);if(r=arguments,i=this,c=on,Zn){if(s===f)return b(c);if(d)return fo(s),s=pt(U,e),y(c)}return s===f&&(s=pt(U,e)),a}return Pn.cancel=Ln,Pn.flush=An,Pn}var Zp=B(function(n,e){return qf(n,1,e)}),Yp=B(function(n,e,t){return qf(n,$n(e)||0,t)});function Xp(n){return ee(n,Br)}function or(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Mn(R);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(or.Cache||jn),t}or.Cache=jn;function ar(n){if(typeof n!="function")throw new Mn(R);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Jp(n){return Yo(2,n)}var Qp=Bh(function(n,e){e=e.length==1&&E(e[0])?tn(e[0],On(S())):tn(dn(e,1),On(S()));var t=e.length;return B(function(r){for(var i=-1,o=wn(r.length,t);++i=e}),Re=zf(function(){return arguments}())?zf:function(n){return un(n)&&X.call(n,"callee")&&!Cf.call(n,"callee")},E=g.isArray,c_=cf?On(cf):mh;function bn(n){return n!=null&&sr(n.length)&&!ie(n)}function fn(n){return un(n)&&bn(n)}function h_(n){return n===!0||n===!1||un(n)&&xn(n)==Xe}var ve=Rc||ru,g_=hf?On(hf):xh;function p_(n){return un(n)&&n.nodeType===1&&!_t(n)}function __(n){if(n==null)return!0;if(bn(n)&&(E(n)||typeof n=="string"||typeof n.splice=="function"||ve(n)||He(n)||Re(n)))return!n.length;var e=mn(n);if(e==Nn||e==Gn)return!n.size;if(gt(n))return!yi(n).length;for(var t in n)if(X.call(n,t))return!1;return!0}function v_(n,e){return lt(n,e)}function d_(n,e,t){t=typeof t=="function"?t:f;var r=t?t(n,e):f;return r===f?lt(n,e,f,t):!!r}function Yi(n){if(!un(n))return!1;var e=xn(n);return e==yt||e==$s||typeof n.message=="string"&&typeof n.name=="string"&&!_t(n)}function w_(n){return typeof n=="number"&&Pf(n)}function ie(n){if(!rn(n))return!1;var e=xn(n);return e==At||e==Du||e==qs||e==Gs}function jo(n){return typeof n=="number"&&n==F(n)}function sr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=oe}function rn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function un(n){return n!=null&&typeof n=="object"}var na=gf?On(gf):Ah;function m_(n,e){return n===e||xi(n,e,Ui(e))}function x_(n,e,t){return t=typeof t=="function"?t:f,xi(n,e,Ui(e),t)}function y_(n){return ea(n)&&n!=+n}function A_(n){if(ug(n))throw new T(C);return Kf(n)}function S_(n){return n===null}function b_(n){return n==null}function ea(n){return typeof n=="number"||un(n)&&xn(n)==Qe}function _t(n){if(!un(n)||xn(n)!=Vn)return!1;var e=Bt(n);if(e===null)return!0;var t=X.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Pt.call(t)==xc}var Xi=pf?On(pf):Sh;function I_(n){return jo(n)&&n>=-oe&&n<=oe}var ta=_f?On(_f):bh;function lr(n){return typeof n=="string"||!E(n)&&un(n)&&xn(n)==ke}function Cn(n){return typeof n=="symbol"||un(n)&&xn(n)==St}var He=vf?On(vf):Ih;function R_(n){return n===f}function T_(n){return un(n)&&mn(n)==je}function O_(n){return un(n)&&xn(n)==zs}var E_=nr(Ai),C_=nr(function(n,e){return n<=e});function ra(n){if(!n)return[];if(bn(n))return lr(n)?Hn(n):Sn(n);if(tt&&n[tt])return ac(n[tt]());var e=mn(n),t=e==Nn?si:e==Gn?Et:ze;return t(n)}function ue(n){if(!n)return n===0?n:0;if(n=$n(n),n===de||n===-de){var e=n<0?-1:1;return e*Ms}return n===n?n:0}function F(n){var e=ue(n),t=e%1;return e===e?t?e-t:e:0}function ia(n){return n?Ae(F(n),0,Yn):0}function $n(n){if(typeof n=="number")return n;if(Cn(n))return mt;if(rn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=rn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Af(n);var t=cl.test(n);return t||gl.test(n)?Kl(n.slice(2),t?2:8):ll.test(n)?mt:+n}function ua(n){return Jn(n,In(n))}function L_(n){return n?Ae(F(n),-oe,oe):n===0?n:0}function K(n){return n==null?"":En(n)}var P_=$e(function(n,e){if(gt(e)||bn(e)){Jn(e,gn(e),n);return}for(var t in e)X.call(e,t)&&ot(n,t,e[t])}),fa=$e(function(n,e){Jn(e,In(e),n)}),cr=$e(function(n,e,t,r){Jn(e,In(e),n,r)}),W_=$e(function(n,e,t,r){Jn(e,gn(e),n,r)}),F_=te(_i);function M_(n,e){var t=qe(n);return e==null?t:Uf(t,e)}var B_=B(function(n,e){n=Q(n);var t=-1,r=e.length,i=r>2?e[2]:f;for(i&&yn(e[0],e[1],i)&&(r=1);++t1),o}),Jn(n,Mi(n),t),r&&(t=Un(t,an|G|z,Yh));for(var i=e.length;i--;)Ti(t,e[i]);return t});function nv(n,e){return aa(n,ar(S(e)))}var ev=te(function(n,e){return n==null?{}:Oh(n,e)});function aa(n,e){if(n==null)return{};var t=tn(Mi(n),function(r){return[r]});return e=S(e),kf(n,t,function(r,i){return e(r,i[0])})}function tv(n,e,t){e=pe(e,n);var r=-1,i=e.length;for(i||(i=1,n=f);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=Wf();return wn(n+i*(e-n+zl("1e-"+((i+"").length-1))),e)}return bi(n,e)}var gv=Ne(function(n,e,t){return e=e.toLowerCase(),n+(t?ca(e):e)});function ca(n){return Vi(K(n).toLowerCase())}function ha(n){return n=K(n),n&&n.replace(_l,rc).replace(Fl,"")}function pv(n,e,t){n=K(n),e=En(e);var r=n.length;t=t===f?r:Ae(F(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function _v(n){return n=K(n),n&&Js.test(n)?n.replace(Nu,ic):n}function vv(n){return n=K(n),n&&el.test(n)?n.replace(Zr,"\\$&"):n}var dv=Ne(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),wv=Ne(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),mv=po("toLowerCase");function xv(n,e,t){n=K(n),e=F(e);var r=e?Fe(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return jt($t(i),t)+n+jt(qt(i),t)}function yv(n,e,t){n=K(n),e=F(e);var r=e?Fe(n):0;return e&&r>>0,t?(n=K(n),n&&(typeof e=="string"||e!=null&&!Xi(e))&&(e=En(e),!e&&We(n))?_e(Hn(n),0,t):n.split(e,t)):[]}var Ov=Ne(function(n,e,t){return n+(t?" ":"")+Vi(e)});function Ev(n,e,t){return n=K(n),t=t==null?0:Ae(F(t),0,n.length),e=En(e),n.slice(t,t+e.length)==e}function Cv(n,e,t){var r=u.templateSettings;t&&yn(n,e,t)&&(e=f),n=K(n),e=cr({},e,r,Ao);var i=cr({},e.imports,r.imports,Ao),o=gn(i),a=ai(i,o),s,c,_=0,v=e.interpolate||bt,d="__p += '",m=li((e.escape||bt).source+"|"+v.source+"|"+(v===Gu?sl:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),y="//# sourceURL="+(X.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ql+"]")+` +`;n.replace(m,function(I,U,$,Ln,An,Pn){return $||($=Ln),d+=n.slice(_,Pn).replace(vl,uc),U&&(s=!0,d+=`' + +__e(`+U+`) + +'`),An&&(c=!0,d+=`'; +`+An+`; +__p += '`),$&&(d+=`' + +((__t = (`+$+`)) == null ? '' : __t) + +'`),_=Pn+I.length,I}),d+=`'; +`;var b=X.call(e,"variable")&&e.variable;if(!b)d=`with (obj) { +`+d+` +} +`;else if(ol.test(b))throw new T(k);d=(c?d.replace(Ks,""):d).replace(Zs,"$1").replace(Ys,"$1;"),d="function("+(b||"obj")+`) { +`+(b?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+d+`return __p +}`;var M=pa(function(){return H(o,y+"return "+d).apply(f,a)});if(M.source=d,Yi(M))throw M;return M}function Lv(n){return K(n).toLowerCase()}function Pv(n){return K(n).toUpperCase()}function Wv(n,e,t){if(n=K(n),n&&(t||e===f))return Af(n);if(!n||!(e=En(e)))return n;var r=Hn(n),i=Hn(e),o=Sf(r,i),a=bf(r,i)+1;return _e(r,o,a).join("")}function Fv(n,e,t){if(n=K(n),n&&(t||e===f))return n.slice(0,Rf(n)+1);if(!n||!(e=En(e)))return n;var r=Hn(n),i=bf(r,Hn(e))+1;return _e(r,0,i).join("")}function Mv(n,e,t){if(n=K(n),n&&(t||e===f))return n.replace(Yr,"");if(!n||!(e=En(e)))return n;var r=Hn(n),i=Sf(r,Hn(e));return _e(r,i).join("")}function Bv(n,e){var t=Es,r=Cs;if(rn(e)){var i="separator"in e?e.separator:i;t="length"in e?F(e.length):t,r="omission"in e?En(e.omission):r}n=K(n);var o=n.length;if(We(n)){var a=Hn(n);o=a.length}if(t>=o)return n;var s=t-Fe(r);if(s<1)return r;var c=a?_e(a,0,s).join(""):n.slice(0,s);if(i===f)return c+r;if(a&&(s+=c.length-s),Xi(i)){if(n.slice(s).search(i)){var _,v=c;for(i.global||(i=li(i.source,K(Hu.exec(i))+"g")),i.lastIndex=0;_=i.exec(v);)var d=_.index;c=c.slice(0,d===f?s:d)}}else if(n.indexOf(En(i),s)!=s){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function Uv(n){return n=K(n),n&&Xs.test(n)?n.replace($u,hc):n}var Dv=Ne(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Vi=po("toUpperCase");function ga(n,e,t){return n=K(n),e=t?f:e,e===f?oc(n)?_c(n):kl(n):n.match(e)||[]}var pa=B(function(n,e){try{return Tn(n,f,e)}catch(t){return Yi(t)?t:new T(t)}}),qv=te(function(n,e){return Fn(e,function(t){t=Qn(t),ne(n,t,Ki(n[t],n))}),n});function $v(n){var e=n==null?0:n.length,t=S();return n=e?tn(n,function(r){if(typeof r[1]!="function")throw new Mn(R);return[t(r[0]),r[1]]}):[],B(function(r){for(var i=-1;++ioe)return[];var t=Yn,r=wn(n,Yn);e=S(e),n-=Yn;for(var i=oi(r,e);++t0||e<0)?new q(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=F(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},q.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},q.prototype.toArray=function(){return this.take(Yn)},Xn(q.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],o=r||/^find/.test(e);i&&(u.prototype[e]=function(){var a=this.__wrapped__,s=r?[1]:arguments,c=a instanceof q,_=s[0],v=c||E(a),d=function(U){var $=i.apply(u,se([U],s));return r&&m?$[0]:$};v&&t&&typeof _=="function"&&_.length!=1&&(c=v=!1);var m=this.__chain__,y=!!this.__actions__.length,b=o&&!m,M=c&&!y;if(!o&&v){a=M?a:new q(this);var I=n.apply(a,s);return I.__actions__.push({func:ir,args:[d],thisArg:f}),new Bn(I,m)}return b&&M?n.apply(this,s):(I=this.thru(d),b?r?I.value()[0]:I.value():I)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ct[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(E(o)?o:[],i)}return this[t](function(a){return e.apply(E(a)?a:[],i)})}}),Xn(q.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";X.call(De,r)||(De[r]=[]),De[r].push({name:e,func:t})}}),De[Vt(f,_n).name]=[{name:"wrapper",func:f}],q.prototype.clone=Uc,q.prototype.reverse=Dc,q.prototype.value=qc,u.prototype.at=pp,u.prototype.chain=_p,u.prototype.commit=vp,u.prototype.next=dp,u.prototype.plant=mp,u.prototype.reverse=xp,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=yp,u.prototype.first=u.prototype.head,tt&&(u.prototype[tt]=wp),u},Me=vc();we?((we.exports=Me)._=Me,jr._=Me):vn._=Me}).call(Ke)}(vt,vt.exports);var Te=vt.exports,da=function(){},wa=da(),Oe=function(h){return h!==wa&&h!==null},ma=Oe,xa=Array.prototype.forEach,ya=Object.create,Aa=function(h,w){var f;for(f in h)w[f]=h[f]},Sa=function(h){var w=ya(null);return xa.call(arguments,function(f){ma(f)&&Aa(Object(f),w)}),w},ba=function(){var h=Math.sign;return typeof h!="function"?!1:h(10)===1&&h(-20)===-1},hr,iu;function Ia(){return iu||(iu=1,hr=function(h){return h=Number(h),isNaN(h)||h===0?h:h>0?1:-1}),hr}var Ra=ba()?Math.sign:Ia(),Ta=Ra,Oa=Math.abs,Ea=Math.floor,Ca=function(h){return isNaN(h)?0:(h=Number(h),h===0||!isFinite(h)?h:Ta(h)*Ea(Oa(h)))},La=Ca,Pa=Math.max,Wa=function(h){return Pa(0,La(h))},uu=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h},Fa=Oe,fu=function(h){if(!Fa(h))throw new TypeError("Cannot use null or undefined");return h},Ma={exports:{}},Ba=function(){var h=Object.assign,w;return typeof h!="function"?!1:(w={foo:"raz"},h(w,{bar:"dwa"},{trzy:"trzy"}),w.foo+w.bar+w.trzy==="razdwatrzy")},gr,ou;function Ua(){return ou||(ou=1,gr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),gr}var pr,au;function Da(){if(au)return pr;au=1;var h=Oe,w=Object.keys;return pr=function(f){return w(h(f)?Object(f):f)},pr}var _r,su;function qa(){return su||(su=1,_r=Ua()()?Object.keys:Da()),_r}var vr,lu;function $a(){if(lu)return vr;lu=1;var h=qa(),w=fu,f=Math.max;return vr=function(P,O){var C,R,k=f(arguments.length,2),Z;for(P=Object(w(P)),Z=function(N){try{P[N]=O[N]}catch(j){C||(C=j)}},R=1;R-1},wr}var is=ts()?String.prototype.contains:rs(),dt=pu,vu=es,du=cu,wu=Sa,Ze=is,us=gu.exports=function(h,w){var f,P,O,C,R;return arguments.length<2||typeof h!="string"?(C=w,w=h,h=null):C=arguments[2],dt(h)?(f=Ze.call(h,"c"),P=Ze.call(h,"e"),O=Ze.call(h,"w")):(f=O=!0,P=!1),R={value:w,configurable:f,enumerable:P,writable:O},C?du(wu(C),R):R};us.gs=function(h,w,f){var P,O,C,R;return typeof h!="string"?(C=f,f=w,w=h,h=null):C=arguments[3],dt(w)?vu(w)?dt(f)?vu(f)||(C=f,f=void 0):f=void 0:(C=w,w=f=void 0):w=void 0,dt(h)?(P=Ze.call(h,"c"),O=Ze.call(h,"e")):(P=!0,O=!1),R={get:w,set:f,configurable:P,enumerable:O},C?du(wu(C),R):R};var Ye=gu.exports,mr={exports:{}};(function(h,w){var f=Ye,P=uu,O=Function.prototype.apply,C=Function.prototype.call,R=Object.create,k=Object.defineProperty,Z=Object.defineProperties,N=Object.prototype.hasOwnProperty,j={configurable:!0,enumerable:!1,writable:!0},an,G,z,pn,ln,L,_n;an=function(W,A){var D;return P(A),N.call(this,"__ee__")?D=this.__ee__:(D=j.value=R(null),k(this,"__ee__",j),j.value=null),D[W]?typeof D[W]=="object"?D[W].push(A):D[W]=[D[W],A]:D[W]=A,this},G=function(W,A){var D,Y;return P(A),Y=this,an.call(this,W,D=function(){z.call(Y,W,D),O.call(A,this,arguments)}),D.__eeOnceListener__=A,this},z=function(W,A){var D,Y,J,nn;if(P(A),!N.call(this,"__ee__"))return this;if(D=this.__ee__,!D[W])return this;if(Y=D[W],typeof Y=="object")for(nn=0;J=Y[nn];++nn)(J===A||J.__eeOnceListener__===A)&&(Y.length===2?D[W]=Y[nn?0:1]:Y.splice(nn,1));else(Y===A||Y.__eeOnceListener__===A)&&delete D[W];return this},pn=function(W){var A,D,Y,J,nn;if(N.call(this,"__ee__")&&(J=this.__ee__[W],!!J))if(typeof J=="object"){for(D=arguments.length,nn=new Array(D-1),A=1;A=55296&&D<=56319&&(sn+=G[++L])),sn=z?N.call(z,pn,sn,_n):sn,ln?(j.value=sn,an(W,_n,j)):W[_n]=sn,++_n;A=_n}}if(A===void 0)for(A=P(G.length),ln&&(W=new ln(A)),L=0;Lasync w=>{const f=new h,P=await w(f);return f.terminate(),P},As=h=>w=>ys(h)(f=>(f.postMessage(w),new Promise((P,O)=>{f.onmessage=C=>{P(C.data)},f.onerror=O})));var Ss=""+new URL("parseTraceSlave.worker-35d6b6c4.js",self.location.href).href;const{min:bs}=Math,Is=navigator.hardwareConcurrency??8;class Rs extends Worker{constructor(){super(Ss,{type:"module"})}}const Ts=As(Rs);async function Os({trace:h,context:w,view:f="main"}){var R,k;const P=Te.ceil((((R=h==null?void 0:h.events)==null?void 0:R.length)??0)/Is),O=Te.range(0,(k=h==null?void 0:h.events)==null?void 0:k.length,P),C=Te.flatten(await Promise.all(Te.map(O,Z=>{var N;return Ts({trace:h,context:w,view:f,from:Z,to:bs(Z+P,((N=h==null?void 0:h.events)==null?void 0:N.length)??0)})})));return{stepsPersistent:Te.flatMap(C,"stepsPersistent"),stepsTransient:Te.flatMap(C,"stepsTransient")}}onmessage=async({data:h})=>{postMessage(await Os(h))}})(); diff --git a/assets/parseTrace.worker-cfbe532e.js b/assets/parseTrace.worker-cfbe532e.js deleted file mode 100644 index b8be38aa..00000000 --- a/assets/parseTrace.worker-cfbe532e.js +++ /dev/null @@ -1,27 +0,0 @@ -(function(){"use strict";var Ke=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vt={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */vt.exports,function(h,w){(function(){var f,P="4.17.21",O=200,C="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",R="Expected a function",k="Invalid `variable` option passed into `_.template`",Z="__lodash_hash_undefined__",N=500,j="__lodash_placeholder__",an=1,G=2,z=4,pn=1,ln=2,L=1,_n=2,W=4,A=8,D=16,Y=32,J=64,nn=128,sn=256,Ur=512,Ps=30,Ws="...",Fs=800,Ms=16,qu=1,Bs=2,Us=3,de=1/0,oe=9007199254740991,Ds=17976931348623157e292,mt=0/0,Yn=4294967295,qs=Yn-1,$s=Yn>>>1,Ns=[["ary",nn],["bind",L],["bindKey",_n],["curry",A],["curryRight",D],["flip",Ur],["partial",Y],["partialRight",J],["rearg",sn]],Ee="[object Arguments]",xt="[object Array]",Gs="[object AsyncFunction]",Xe="[object Boolean]",Je="[object Date]",Hs="[object DOMException]",yt="[object Error]",At="[object Function]",$u="[object GeneratorFunction]",Nn="[object Map]",Qe="[object Number]",zs="[object Null]",Vn="[object Object]",Nu="[object Promise]",Ks="[object Proxy]",Ve="[object RegExp]",Gn="[object Set]",ke="[object String]",St="[object Symbol]",Zs="[object Undefined]",je="[object WeakMap]",Ys="[object WeakSet]",nt="[object ArrayBuffer]",Ce="[object DataView]",Dr="[object Float32Array]",qr="[object Float64Array]",$r="[object Int8Array]",Nr="[object Int16Array]",Gr="[object Int32Array]",Hr="[object Uint8Array]",zr="[object Uint8ClampedArray]",Kr="[object Uint16Array]",Zr="[object Uint32Array]",Xs=/\b__p \+= '';/g,Js=/\b(__p \+=) '' \+/g,Qs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gu=/&(?:amp|lt|gt|quot|#39);/g,Hu=/[&<>"']/g,Vs=RegExp(Gu.source),ks=RegExp(Hu.source),js=/<%-([\s\S]+?)%>/g,nl=/<%([\s\S]+?)%>/g,zu=/<%=([\s\S]+?)%>/g,el=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tl=/^\w*$/,rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yr=/[\\^$.*+?()[\]{}|]/g,il=RegExp(Yr.source),Xr=/^\s+/,ul=/\s/,fl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ol=/\{\n\/\* \[wrapped with (.+)\] \*/,al=/,? & /,sl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ll=/[()=,{}\[\]\/\s]/,cl=/\\(\\)?/g,hl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ku=/\w*$/,gl=/^[-+]0x[0-9a-f]+$/i,pl=/^0b[01]+$/i,_l=/^\[object .+?Constructor\]$/,vl=/^0o[0-7]+$/i,dl=/^(?:0|[1-9]\d*)$/,wl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,ml=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",xl="\\u0300-\\u036f",yl="\\ufe20-\\ufe2f",Al="\\u20d0-\\u20ff",Zu=xl+yl+Al,Yu="\\u2700-\\u27bf",Xu="a-z\\xdf-\\xf6\\xf8-\\xff",Sl="\\xac\\xb1\\xd7\\xf7",bl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Il="\\u2000-\\u206f",Rl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ju="A-Z\\xc0-\\xd6\\xd8-\\xde",Qu="\\ufe0e\\ufe0f",Vu=Sl+bl+Il+Rl,Jr="['’]",Tl="["+It+"]",ku="["+Vu+"]",Rt="["+Zu+"]",ju="\\d+",Ol="["+Yu+"]",nf="["+Xu+"]",ef="[^"+It+Vu+ju+Yu+Xu+Ju+"]",Qr="\\ud83c[\\udffb-\\udfff]",El="(?:"+Rt+"|"+Qr+")",tf="[^"+It+"]",Vr="(?:\\ud83c[\\udde6-\\uddff]){2}",kr="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ju+"]",rf="\\u200d",uf="(?:"+nf+"|"+ef+")",Cl="(?:"+Le+"|"+ef+")",ff="(?:"+Jr+"(?:d|ll|m|re|s|t|ve))?",of="(?:"+Jr+"(?:D|LL|M|RE|S|T|VE))?",af=El+"?",sf="["+Qu+"]?",Ll="(?:"+rf+"(?:"+[tf,Vr,kr].join("|")+")"+sf+af+")*",Pl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lf=sf+af+Ll,Fl="(?:"+[Ol,Vr,kr].join("|")+")"+lf,Ml="(?:"+[tf+Rt+"?",Rt,Vr,kr,Tl].join("|")+")",Bl=RegExp(Jr,"g"),Ul=RegExp(Rt,"g"),jr=RegExp(Qr+"(?="+Qr+")|"+Ml+lf,"g"),Dl=RegExp([Le+"?"+nf+"+"+ff+"(?="+[ku,Le,"$"].join("|")+")",Cl+"+"+of+"(?="+[ku,Le+uf,"$"].join("|")+")",Le+"?"+uf+"+"+ff,Le+"+"+of,Wl,Pl,ju,Fl].join("|"),"g"),ql=RegExp("["+rf+It+Zu+Qu+"]"),$l=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gl=-1,en={};en[Dr]=en[qr]=en[$r]=en[Nr]=en[Gr]=en[Hr]=en[zr]=en[Kr]=en[Zr]=!0,en[Ee]=en[xt]=en[nt]=en[Xe]=en[Ce]=en[Je]=en[yt]=en[At]=en[Nn]=en[Qe]=en[Vn]=en[Ve]=en[Gn]=en[ke]=en[je]=!1;var V={};V[Ee]=V[xt]=V[nt]=V[Ce]=V[Xe]=V[Je]=V[Dr]=V[qr]=V[$r]=V[Nr]=V[Gr]=V[Nn]=V[Qe]=V[Vn]=V[Ve]=V[Gn]=V[ke]=V[St]=V[Hr]=V[zr]=V[Kr]=V[Zr]=!0,V[yt]=V[At]=V[je]=!1;var Hl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},zl={"&":"&","<":"<",">":">",'"':""","'":"'"},Kl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Zl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yl=parseFloat,Xl=parseInt,cf=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,Jl=typeof self=="object"&&self&&self.Object===Object&&self,vn=cf||Jl||Function("return this")(),ni=w&&!w.nodeType&&w,we=ni&&!0&&h&&!h.nodeType&&h,hf=we&&we.exports===ni,ei=hf&&cf.process,Wn=function(){try{var l=we&&we.require&&we.require("util").types;return l||ei&&ei.binding&&ei.binding("util")}catch{}}(),gf=Wn&&Wn.isArrayBuffer,pf=Wn&&Wn.isDate,_f=Wn&&Wn.isMap,vf=Wn&&Wn.isRegExp,df=Wn&&Wn.isSet,wf=Wn&&Wn.isTypedArray;function Tn(l,p,g){switch(g.length){case 0:return l.call(p);case 1:return l.call(p,g[0]);case 2:return l.call(p,g[0],g[1]);case 3:return l.call(p,g[0],g[1],g[2])}return l.apply(p,g)}function Ql(l,p,g,x){for(var T=-1,H=l==null?0:l.length;++T-1}function ti(l,p,g){for(var x=-1,T=l==null?0:l.length;++x-1;);return g}function Rf(l,p){for(var g=l.length;g--&&Pe(p,l[g],0)>-1;);return g}function uc(l,p){for(var g=l.length,x=0;g--;)l[g]===p&&++x;return x}var fc=fi(Hl),oc=fi(zl);function ac(l){return"\\"+Zl[l]}function sc(l,p){return l==null?f:l[p]}function We(l){return ql.test(l)}function lc(l){return $l.test(l)}function cc(l){for(var p,g=[];!(p=l.next()).done;)g.push(p.value);return g}function li(l){var p=-1,g=Array(l.size);return l.forEach(function(x,T){g[++p]=[T,x]}),g}function Tf(l,p){return function(g){return l(p(g))}}function le(l,p){for(var g=-1,x=l.length,T=0,H=[];++g-1}function kc(n,e){var t=this.__data__,r=zt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}kn.prototype.clear=Xc,kn.prototype.delete=Jc,kn.prototype.get=Qc,kn.prototype.has=Vc,kn.prototype.set=kc;function jn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Un(n,e,t,r,i,o){var a,s=e&an,c=e&G,_=e&z;if(t&&(a=i?t(n,r,i,o):t(n)),a!==f)return a;if(!rn(n))return n;var v=E(n);if(v){if(a=tg(n),!s)return Sn(n,a)}else{var d=mn(n),m=d==At||d==$u;if(ve(n))return so(n,s);if(d==Vn||d==Ee||m&&!i){if(a=c||m?{}:Eo(n),!s)return c?Kh(n,ph(a,n)):zh(n,qf(a,n))}else{if(!V[d])return i?n:{};a=rg(n,d,s)}}o||(o=new zn);var y=o.get(n);if(y)return y;o.set(n,a),ia(n)?n.forEach(function(I){a.add(Un(I,e,t,I,n,o))}):ta(n)&&n.forEach(function(I,U){a.set(U,Un(I,e,t,U,n,o))});var b=_?c?Bi:Mi:c?In:gn,M=v?f:b(n);return Fn(M||n,function(I,U){M&&(U=I,I=n[U]),ot(a,U,Un(I,e,t,U,n,o))}),a}function _h(n){var e=gn(n);return function(t){return $f(t,n,e)}}function $f(n,e,t){var r=t.length;if(n==null)return!r;for(n=Q(n);r--;){var i=t[r],o=e[i],a=n[i];if(a===f&&!(i in n)||!o(a))return!1}return!0}function Nf(n,e,t){if(typeof n!="function")throw new Mn(R);return pt(function(){n.apply(f,t)},e)}function at(n,e,t,r){var i=-1,o=Tt,a=!0,s=n.length,c=[],_=e.length;if(!s)return c;t&&(e=tn(e,On(t))),r?(o=ti,a=!1):e.length>=O&&(o=et,a=!1,e=new ye(e));n:for(;++ii?0:i+t),r=r===f||r>i?i:F(r),r<0&&(r+=i),r=t>r?0:fa(r);t0&&t(s)?e>1?dn(s,e-1,t,r,i):se(i,s):r||(i[i.length]=s)}return i}var di=_o(),zf=_o(!0);function Xn(n,e){return n&&di(n,e,gn)}function wi(n,e){return n&&zf(n,e,gn)}function Zt(n,e){return ae(e,function(t){return ie(n[t])})}function Se(n,e){e=pe(e,n);for(var t=0,r=e.length;n!=null&&te}function wh(n,e){return n!=null&&X.call(n,e)}function mh(n,e){return n!=null&&e in Q(n)}function xh(n,e,t){return n>=wn(e,t)&&n=120&&v.length>=120)?new ye(a&&v):f}v=n[0];var d=-1,m=s[0];n:for(;++d-1;)s!==n&&Ut.call(s,c,1),Ut.call(n,c,1);return n}function eo(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==o){var o=i;re(i)?Ut.call(n,i,1):Oi(n,i)}}return n}function Ii(n,e){return n+$t(Mf()*(e-n+1))}function Wh(n,e,t,r){for(var i=-1,o=hn(qt((e-n)/(t||1)),0),a=g(o);o--;)a[r?o:++i]=n,n+=t;return a}function Ri(n,e){var t="";if(!n||e<1||e>oe)return t;do e%2&&(t+=n),e=$t(e/2),e&&(n+=n);while(e);return t}function B(n,e){return Hi(Po(n,e,Rn),n+"")}function Fh(n){return Df(ze(n))}function Mh(n,e){var t=ze(n);return rr(t,Ae(e,0,t.length))}function ct(n,e,t,r){if(!rn(n))return n;e=pe(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=g(i);++r>>1,a=n[o];a!==null&&!Cn(a)&&(t?a<=e:a=O){var _=e?null:Jh(n);if(_)return Et(_);a=!1,i=et,c=new ye}else c=e?[]:s;n:for(;++r=r?n:Dn(n,e,t)}var ao=Rc||function(n){return vn.clearTimeout(n)};function so(n,e){if(e)return n.slice();var t=n.length,r=Cf?Cf(t):new n.constructor(t);return n.copy(r),r}function Pi(n){var e=new n.constructor(n.byteLength);return new Mt(e).set(new Mt(n)),e}function $h(n,e){var t=e?Pi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Nh(n){var e=new n.constructor(n.source,Ku.exec(n));return e.lastIndex=n.lastIndex,e}function Gh(n){return ft?Q(ft.call(n)):{}}function lo(n,e){var t=e?Pi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function co(n,e){if(n!==e){var t=n!==f,r=n===null,i=n===n,o=Cn(n),a=e!==f,s=e===null,c=e===e,_=Cn(e);if(!s&&!_&&!o&&n>e||o&&a&&c&&!s&&!_||r&&a&&c||!t&&c||!i)return 1;if(!r&&!o&&!_&&n=s)return c;var _=t[r];return c*(_=="desc"?-1:1)}}return n.index-e.index}function ho(n,e,t,r){for(var i=-1,o=n.length,a=t.length,s=-1,c=e.length,_=hn(o-a,0),v=g(c+_),d=!r;++s1?t[i-1]:f,a=i>2?t[2]:f;for(o=n.length>3&&typeof o=="function"?(i--,o):f,a&&yn(t[0],t[1],a)&&(o=i<3?f:o,i=1),e=Q(e);++r-1?i[o?e[a]:a]:f}}function mo(n){return te(function(e){var t=e.length,r=t,i=Bn.prototype.thru;for(n&&e.reverse();r--;){var o=e[r];if(typeof o!="function")throw new Mn(R);if(i&&!a&&er(o)=="wrapper")var a=new Bn([],!0)}for(r=a?r:t;++r1&&$.reverse(),v&&cs))return!1;var _=o.get(n),v=o.get(e);if(_&&v)return _==e&&v==n;var d=-1,m=!0,y=t&ln?new ye:f;for(o.set(n,e),o.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(fl,`{ -/* [wrapped with `+e+`] */ -`)}function ug(n){return E(n)||Re(n)||!!(Wf&&n&&n[Wf])}function re(n,e){var t=typeof n;return e=e??oe,!!e&&(t=="number"||t!="symbol"&&dl.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Fs)return arguments[0]}else e=0;return n.apply(f,arguments)}}function rr(n,e){var t=-1,r=n.length,i=r-1;for(e=e===f?r:e;++t1?n[e-1]:f;return t=typeof t=="function"?(n.pop(),t):f,zo(n,t)});function Ko(n){var e=u(n);return e.__chain__=!0,e}function vp(n,e){return e(n),n}function ir(n,e){return e(n)}var dp=te(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(o){return vi(o,n)};return e>1||this.__actions__.length||!(r instanceof q)||!re(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:ir,args:[i],thisArg:f}),new Bn(r,this.__chain__).thru(function(o){return e&&!o.length&&o.push(f),o}))});function wp(){return Ko(this)}function mp(){return new Bn(this.value(),this.__chain__)}function xp(){this.__values__===f&&(this.__values__=ua(this.value()));var n=this.__index__>=this.__values__.length,e=n?f:this.__values__[this.__index__++];return{done:n,value:e}}function yp(){return this}function Ap(n){for(var e,t=this;t instanceof Ht;){var r=Do(t);r.__index__=0,r.__values__=f,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function Sp(){var n=this.__wrapped__;if(n instanceof q){var e=n;return this.__actions__.length&&(e=new q(this)),e=e.reverse(),e.__actions__.push({func:ir,args:[zi],thisArg:f}),new Bn(e,this.__chain__)}return this.thru(zi)}function bp(){return fo(this.__wrapped__,this.__actions__)}var Ip=Qt(function(n,e,t){X.call(n,t)?++n[t]:ne(n,t,1)});function Rp(n,e,t){var r=E(n)?mf:vh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}function Tp(n,e){var t=E(n)?ae:Hf;return t(n,S(e,3))}var Op=wo(qo),Ep=wo($o);function Cp(n,e){return dn(ur(n,e),1)}function Lp(n,e){return dn(ur(n,e),de)}function Pp(n,e,t){return t=t===f?1:F(t),dn(ur(n,e),t)}function Zo(n,e){var t=E(n)?Fn:he;return t(n,S(e,3))}function Yo(n,e){var t=E(n)?Vl:Gf;return t(n,S(e,3))}var Wp=Qt(function(n,e,t){X.call(n,t)?n[t].push(e):ne(n,t,[e])});function Fp(n,e,t,r){n=bn(n)?n:ze(n),t=t&&!r?F(t):0;var i=n.length;return t<0&&(t=hn(i+t,0)),lr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Pe(n,e,t)>-1}var Mp=B(function(n,e,t){var r=-1,i=typeof e=="function",o=bn(n)?g(n.length):[];return he(n,function(a){o[++r]=i?Tn(e,a,t):st(a,e,t)}),o}),Bp=Qt(function(n,e,t){ne(n,t,e)});function ur(n,e){var t=E(n)?tn:Jf;return t(n,S(e,3))}function Up(n,e,t,r){return n==null?[]:(E(e)||(e=e==null?[]:[e]),t=r?f:t,E(t)||(t=t==null?[]:[t]),jf(n,e,t))}var Dp=Qt(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function qp(n,e,t){var r=E(n)?ri:Sf,i=arguments.length<3;return r(n,S(e,4),t,i,he)}function $p(n,e,t){var r=E(n)?kl:Sf,i=arguments.length<3;return r(n,S(e,4),t,i,Gf)}function Np(n,e){var t=E(n)?ae:Hf;return t(n,ar(S(e,3)))}function Gp(n){var e=E(n)?Df:Fh;return e(n)}function Hp(n,e,t){(t?yn(n,e,t):e===f)?e=1:e=F(e);var r=E(n)?ch:Mh;return r(n,e)}function zp(n){var e=E(n)?hh:Uh;return e(n)}function Kp(n){if(n==null)return 0;if(bn(n))return lr(n)?Fe(n):n.length;var e=mn(n);return e==Nn||e==Gn?n.size:Ai(n).length}function Zp(n,e,t){var r=E(n)?ii:Dh;return t&&yn(n,e,t)&&(e=f),r(n,S(e,3))}var Yp=B(function(n,e){if(n==null)return[];var t=e.length;return t>1&&yn(n,e[0],e[1])?e=[]:t>2&&yn(e[0],e[1],e[2])&&(e=[e[0]]),jf(n,dn(e,1),[])}),fr=Tc||function(){return vn.Date.now()};function Xp(n,e){if(typeof e!="function")throw new Mn(R);return n=F(n),function(){if(--n<1)return e.apply(this,arguments)}}function Xo(n,e,t){return e=t?f:e,e=n&&e==null?n.length:e,ee(n,nn,f,f,f,f,e)}function Jo(n,e){var t;if(typeof e!="function")throw new Mn(R);return n=F(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=f),t}}var Zi=B(function(n,e,t){var r=L;if(t.length){var i=le(t,Ge(Zi));r|=Y}return ee(n,r,e,t,i)}),Qo=B(function(n,e,t){var r=L|_n;if(t.length){var i=le(t,Ge(Qo));r|=Y}return ee(e,r,n,t,i)});function Vo(n,e,t){e=t?f:e;var r=ee(n,A,f,f,f,f,f,e);return r.placeholder=Vo.placeholder,r}function ko(n,e,t){e=t?f:e;var r=ee(n,D,f,f,f,f,f,e);return r.placeholder=ko.placeholder,r}function jo(n,e,t){var r,i,o,a,s,c,_=0,v=!1,d=!1,m=!0;if(typeof n!="function")throw new Mn(R);e=$n(e)||0,rn(t)&&(v=!!t.leading,d="maxWait"in t,o=d?hn($n(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function y(on){var Zn=r,fe=i;return r=i=f,_=on,a=n.apply(fe,Zn),a}function b(on){return _=on,s=pt(U,e),v?y(on):a}function M(on){var Zn=on-c,fe=on-_,wa=e-Zn;return d?wn(wa,o-fe):wa}function I(on){var Zn=on-c,fe=on-_;return c===f||Zn>=e||Zn<0||d&&fe>=o}function U(){var on=fr();if(I(on))return $(on);s=pt(U,M(on))}function $(on){return s=f,m&&r?y(on):(r=i=f,a)}function Ln(){s!==f&&ao(s),_=0,r=c=i=s=f}function An(){return s===f?a:$(fr())}function Pn(){var on=fr(),Zn=I(on);if(r=arguments,i=this,c=on,Zn){if(s===f)return b(c);if(d)return ao(s),s=pt(U,e),y(c)}return s===f&&(s=pt(U,e)),a}return Pn.cancel=Ln,Pn.flush=An,Pn}var Jp=B(function(n,e){return Nf(n,1,e)}),Qp=B(function(n,e,t){return Nf(n,$n(e)||0,t)});function Vp(n){return ee(n,Ur)}function or(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Mn(R);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(or.Cache||jn),t}or.Cache=jn;function ar(n){if(typeof n!="function")throw new Mn(R);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function kp(n){return Jo(2,n)}var jp=qh(function(n,e){e=e.length==1&&E(e[0])?tn(e[0],On(S())):tn(dn(e,1),On(S()));var t=e.length;return B(function(r){for(var i=-1,o=wn(r.length,t);++i=e}),Re=Zf(function(){return arguments}())?Zf:function(n){return un(n)&&X.call(n,"callee")&&!Pf.call(n,"callee")},E=g.isArray,p_=gf?On(gf):Ah;function bn(n){return n!=null&&sr(n.length)&&!ie(n)}function fn(n){return un(n)&&bn(n)}function __(n){return n===!0||n===!1||un(n)&&xn(n)==Xe}var ve=Ec||iu,v_=pf?On(pf):Sh;function d_(n){return un(n)&&n.nodeType===1&&!_t(n)}function w_(n){if(n==null)return!0;if(bn(n)&&(E(n)||typeof n=="string"||typeof n.splice=="function"||ve(n)||He(n)||Re(n)))return!n.length;var e=mn(n);if(e==Nn||e==Gn)return!n.size;if(gt(n))return!Ai(n).length;for(var t in n)if(X.call(n,t))return!1;return!0}function m_(n,e){return lt(n,e)}function x_(n,e,t){t=typeof t=="function"?t:f;var r=t?t(n,e):f;return r===f?lt(n,e,f,t):!!r}function Xi(n){if(!un(n))return!1;var e=xn(n);return e==yt||e==Hs||typeof n.message=="string"&&typeof n.name=="string"&&!_t(n)}function y_(n){return typeof n=="number"&&Ff(n)}function ie(n){if(!rn(n))return!1;var e=xn(n);return e==At||e==$u||e==Gs||e==Ks}function ea(n){return typeof n=="number"&&n==F(n)}function sr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=oe}function rn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function un(n){return n!=null&&typeof n=="object"}var ta=_f?On(_f):Ih;function A_(n,e){return n===e||yi(n,e,Di(e))}function S_(n,e,t){return t=typeof t=="function"?t:f,yi(n,e,Di(e),t)}function b_(n){return ra(n)&&n!=+n}function I_(n){if(ag(n))throw new T(C);return Yf(n)}function R_(n){return n===null}function T_(n){return n==null}function ra(n){return typeof n=="number"||un(n)&&xn(n)==Qe}function _t(n){if(!un(n)||xn(n)!=Vn)return!1;var e=Bt(n);if(e===null)return!0;var t=X.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Pt.call(t)==Sc}var Ji=vf?On(vf):Rh;function O_(n){return ea(n)&&n>=-oe&&n<=oe}var ia=df?On(df):Th;function lr(n){return typeof n=="string"||!E(n)&&un(n)&&xn(n)==ke}function Cn(n){return typeof n=="symbol"||un(n)&&xn(n)==St}var He=wf?On(wf):Oh;function E_(n){return n===f}function C_(n){return un(n)&&mn(n)==je}function L_(n){return un(n)&&xn(n)==Ys}var P_=nr(Si),W_=nr(function(n,e){return n<=e});function ua(n){if(!n)return[];if(bn(n))return lr(n)?Hn(n):Sn(n);if(tt&&n[tt])return cc(n[tt]());var e=mn(n),t=e==Nn?li:e==Gn?Et:ze;return t(n)}function ue(n){if(!n)return n===0?n:0;if(n=$n(n),n===de||n===-de){var e=n<0?-1:1;return e*Ds}return n===n?n:0}function F(n){var e=ue(n),t=e%1;return e===e?t?e-t:e:0}function fa(n){return n?Ae(F(n),0,Yn):0}function $n(n){if(typeof n=="number")return n;if(Cn(n))return mt;if(rn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=rn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=bf(n);var t=pl.test(n);return t||vl.test(n)?Xl(n.slice(2),t?2:8):gl.test(n)?mt:+n}function oa(n){return Jn(n,In(n))}function F_(n){return n?Ae(F(n),-oe,oe):n===0?n:0}function K(n){return n==null?"":En(n)}var M_=$e(function(n,e){if(gt(e)||bn(e)){Jn(e,gn(e),n);return}for(var t in e)X.call(e,t)&&ot(n,t,e[t])}),aa=$e(function(n,e){Jn(e,In(e),n)}),cr=$e(function(n,e,t,r){Jn(e,In(e),n,r)}),B_=$e(function(n,e,t,r){Jn(e,gn(e),n,r)}),U_=te(vi);function D_(n,e){var t=qe(n);return e==null?t:qf(t,e)}var q_=B(function(n,e){n=Q(n);var t=-1,r=e.length,i=r>2?e[2]:f;for(i&&yn(e[0],e[1],i)&&(r=1);++t1),o}),Jn(n,Bi(n),t),r&&(t=Un(t,an|G|z,Qh));for(var i=e.length;i--;)Oi(t,e[i]);return t});function rv(n,e){return la(n,ar(S(e)))}var iv=te(function(n,e){return n==null?{}:Lh(n,e)});function la(n,e){if(n==null)return{};var t=tn(Bi(n),function(r){return[r]});return e=S(e),no(n,t,function(r,i){return e(r,i[0])})}function uv(n,e,t){e=pe(e,n);var r=-1,i=e.length;for(i||(i=1,n=f);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=Mf();return wn(n+i*(e-n+Yl("1e-"+((i+"").length-1))),e)}return Ii(n,e)}var vv=Ne(function(n,e,t){return e=e.toLowerCase(),n+(t?ga(e):e)});function ga(n){return ki(K(n).toLowerCase())}function pa(n){return n=K(n),n&&n.replace(wl,fc).replace(Ul,"")}function dv(n,e,t){n=K(n),e=En(e);var r=n.length;t=t===f?r:Ae(F(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function wv(n){return n=K(n),n&&ks.test(n)?n.replace(Hu,oc):n}function mv(n){return n=K(n),n&&il.test(n)?n.replace(Yr,"\\$&"):n}var xv=Ne(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),yv=Ne(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),Av=vo("toLowerCase");function Sv(n,e,t){n=K(n),e=F(e);var r=e?Fe(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return jt($t(i),t)+n+jt(qt(i),t)}function bv(n,e,t){n=K(n),e=F(e);var r=e?Fe(n):0;return e&&r>>0,t?(n=K(n),n&&(typeof e=="string"||e!=null&&!Ji(e))&&(e=En(e),!e&&We(n))?_e(Hn(n),0,t):n.split(e,t)):[]}var Lv=Ne(function(n,e,t){return n+(t?" ":"")+ki(e)});function Pv(n,e,t){return n=K(n),t=t==null?0:Ae(F(t),0,n.length),e=En(e),n.slice(t,t+e.length)==e}function Wv(n,e,t){var r=u.templateSettings;t&&yn(n,e,t)&&(e=f),n=K(n),e=cr({},e,r,bo);var i=cr({},e.imports,r.imports,bo),o=gn(i),a=si(i,o),s,c,_=0,v=e.interpolate||bt,d="__p += '",m=ci((e.escape||bt).source+"|"+v.source+"|"+(v===zu?hl:bt).source+"|"+(e.evaluate||bt).source+"|$","g"),y="//# sourceURL="+(X.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gl+"]")+` -`;n.replace(m,function(I,U,$,Ln,An,Pn){return $||($=Ln),d+=n.slice(_,Pn).replace(ml,ac),U&&(s=!0,d+=`' + -__e(`+U+`) + -'`),An&&(c=!0,d+=`'; -`+An+`; -__p += '`),$&&(d+=`' + -((__t = (`+$+`)) == null ? '' : __t) + -'`),_=Pn+I.length,I}),d+=`'; -`;var b=X.call(e,"variable")&&e.variable;if(!b)d=`with (obj) { -`+d+` -} -`;else if(ll.test(b))throw new T(k);d=(c?d.replace(Xs,""):d).replace(Js,"$1").replace(Qs,"$1;"),d="function("+(b||"obj")+`) { -`+(b?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+d+`return __p -}`;var M=va(function(){return H(o,y+"return "+d).apply(f,a)});if(M.source=d,Xi(M))throw M;return M}function Fv(n){return K(n).toLowerCase()}function Mv(n){return K(n).toUpperCase()}function Bv(n,e,t){if(n=K(n),n&&(t||e===f))return bf(n);if(!n||!(e=En(e)))return n;var r=Hn(n),i=Hn(e),o=If(r,i),a=Rf(r,i)+1;return _e(r,o,a).join("")}function Uv(n,e,t){if(n=K(n),n&&(t||e===f))return n.slice(0,Of(n)+1);if(!n||!(e=En(e)))return n;var r=Hn(n),i=Rf(r,Hn(e))+1;return _e(r,0,i).join("")}function Dv(n,e,t){if(n=K(n),n&&(t||e===f))return n.replace(Xr,"");if(!n||!(e=En(e)))return n;var r=Hn(n),i=If(r,Hn(e));return _e(r,i).join("")}function qv(n,e){var t=Ps,r=Ws;if(rn(e)){var i="separator"in e?e.separator:i;t="length"in e?F(e.length):t,r="omission"in e?En(e.omission):r}n=K(n);var o=n.length;if(We(n)){var a=Hn(n);o=a.length}if(t>=o)return n;var s=t-Fe(r);if(s<1)return r;var c=a?_e(a,0,s).join(""):n.slice(0,s);if(i===f)return c+r;if(a&&(s+=c.length-s),Ji(i)){if(n.slice(s).search(i)){var _,v=c;for(i.global||(i=ci(i.source,K(Ku.exec(i))+"g")),i.lastIndex=0;_=i.exec(v);)var d=_.index;c=c.slice(0,d===f?s:d)}}else if(n.indexOf(En(i),s)!=s){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r}function $v(n){return n=K(n),n&&Vs.test(n)?n.replace(Gu,_c):n}var Nv=Ne(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),ki=vo("toUpperCase");function _a(n,e,t){return n=K(n),e=t?f:e,e===f?lc(n)?wc(n):ec(n):n.match(e)||[]}var va=B(function(n,e){try{return Tn(n,f,e)}catch(t){return Xi(t)?t:new T(t)}}),Gv=te(function(n,e){return Fn(e,function(t){t=Qn(t),ne(n,t,Zi(n[t],n))}),n});function Hv(n){var e=n==null?0:n.length,t=S();return n=e?tn(n,function(r){if(typeof r[1]!="function")throw new Mn(R);return[t(r[0]),r[1]]}):[],B(function(r){for(var i=-1;++ioe)return[];var t=Yn,r=wn(n,Yn);e=S(e),n-=Yn;for(var i=ai(r,e);++t0||e<0)?new q(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==f&&(e=F(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},q.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},q.prototype.toArray=function(){return this.take(Yn)},Xn(q.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],o=r||/^find/.test(e);i&&(u.prototype[e]=function(){var a=this.__wrapped__,s=r?[1]:arguments,c=a instanceof q,_=s[0],v=c||E(a),d=function(U){var $=i.apply(u,se([U],s));return r&&m?$[0]:$};v&&t&&typeof _=="function"&&_.length!=1&&(c=v=!1);var m=this.__chain__,y=!!this.__actions__.length,b=o&&!m,M=c&&!y;if(!o&&v){a=M?a:new q(this);var I=n.apply(a,s);return I.__actions__.push({func:ir,args:[d],thisArg:f}),new Bn(I,m)}return b&&M?n.apply(this,s):(I=this.thru(d),b?r?I.value()[0]:I.value():I)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(n){var e=Ct[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(E(o)?o:[],i)}return this[t](function(a){return e.apply(E(a)?a:[],i)})}}),Xn(q.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";X.call(De,r)||(De[r]=[]),De[r].push({name:e,func:t})}}),De[Vt(f,_n).name]=[{name:"wrapper",func:f}],q.prototype.clone=$c,q.prototype.reverse=Nc,q.prototype.value=Gc,u.prototype.at=dp,u.prototype.chain=wp,u.prototype.commit=mp,u.prototype.next=xp,u.prototype.plant=Ap,u.prototype.reverse=Sp,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=bp,u.prototype.first=u.prototype.head,tt&&(u.prototype[tt]=yp),u},Me=mc();we?((we.exports=Me)._=Me,ni._=Me):vn._=Me}).call(Ke)}(vt,vt.exports);var Te=vt.exports,ma=function(){},xa=ma(),Oe=function(h){return h!==xa&&h!==null},ya=Oe,Aa=Array.prototype.forEach,Sa=Object.create,ba=function(h,w){var f;for(f in h)w[f]=h[f]},Ia=function(h){var w=Sa(null);return Aa.call(arguments,function(f){ya(f)&&ba(Object(f),w)}),w},Ra=function(){var h=Math.sign;return typeof h!="function"?!1:h(10)===1&&h(-20)===-1},hr,uu;function Ta(){return uu||(uu=1,hr=function(h){return h=Number(h),isNaN(h)||h===0?h:h>0?1:-1}),hr}var Oa=Ra()?Math.sign:Ta(),Ea=Oa,Ca=Math.abs,La=Math.floor,Pa=function(h){return isNaN(h)?0:(h=Number(h),h===0||!isFinite(h)?h:Ea(h)*La(Ca(h)))},Wa=Pa,Fa=Math.max,Ma=function(h){return Fa(0,Wa(h))},fu=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h},Ba=Oe,ou=function(h){if(!Ba(h))throw new TypeError("Cannot use null or undefined");return h},Ua={exports:{}},Da=function(){var h=Object.assign,w;return typeof h!="function"?!1:(w={foo:"raz"},h(w,{bar:"dwa"},{trzy:"trzy"}),w.foo+w.bar+w.trzy==="razdwatrzy")},gr,au;function qa(){return au||(au=1,gr=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),gr}var pr,su;function $a(){if(su)return pr;su=1;var h=Oe,w=Object.keys;return pr=function(f){return w(h(f)?Object(f):f)},pr}var _r,lu;function Na(){return lu||(lu=1,_r=qa()()?Object.keys:$a()),_r}var vr,cu;function Ga(){if(cu)return vr;cu=1;var h=Na(),w=ou,f=Math.max;return vr=function(P,O){var C,R,k=f(arguments.length,2),Z;for(P=Object(w(P)),Z=function(N){try{P[N]=O[N]}catch(j){C||(C=j)}},R=1;R-1},wr}var fs=is()?String.prototype.contains:us(),dt=_u,du=rs,wu=hu,mu=Ia,Ze=fs,os=pu.exports=function(h,w){var f,P,O,C,R;return arguments.length<2||typeof h!="string"?(C=w,w=h,h=null):C=arguments[2],dt(h)?(f=Ze.call(h,"c"),P=Ze.call(h,"e"),O=Ze.call(h,"w")):(f=O=!0,P=!1),R={value:w,configurable:f,enumerable:P,writable:O},C?wu(mu(C),R):R};os.gs=function(h,w,f){var P,O,C,R;return typeof h!="string"?(C=f,f=w,w=h,h=null):C=arguments[3],dt(w)?du(w)?dt(f)?du(f)||(C=f,f=void 0):f=void 0:(C=w,w=f=void 0):w=void 0,dt(h)?(P=Ze.call(h,"c"),O=Ze.call(h,"e")):(P=!0,O=!1),R={get:w,set:f,configurable:P,enumerable:O},C?wu(mu(C),R):R};var Ye=pu.exports,mr={exports:{}};(function(h,w){var f=Ye,P=fu,O=Function.prototype.apply,C=Function.prototype.call,R=Object.create,k=Object.defineProperty,Z=Object.defineProperties,N=Object.prototype.hasOwnProperty,j={configurable:!0,enumerable:!1,writable:!0},an,G,z,pn,ln,L,_n;an=function(W,A){var D;return P(A),N.call(this,"__ee__")?D=this.__ee__:(D=j.value=R(null),k(this,"__ee__",j),j.value=null),D[W]?typeof D[W]=="object"?D[W].push(A):D[W]=[D[W],A]:D[W]=A,this},G=function(W,A){var D,Y;return P(A),Y=this,an.call(this,W,D=function(){z.call(Y,W,D),O.call(A,this,arguments)}),D.__eeOnceListener__=A,this},z=function(W,A){var D,Y,J,nn;if(P(A),!N.call(this,"__ee__"))return this;if(D=this.__ee__,!D[W])return this;if(Y=D[W],typeof Y=="object")for(nn=0;J=Y[nn];++nn)(J===A||J.__eeOnceListener__===A)&&(Y.length===2?D[W]=Y[nn?0:1]:Y.splice(nn,1));else(Y===A||Y.__eeOnceListener__===A)&&delete D[W];return this},pn=function(W){var A,D,Y,J,nn;if(N.call(this,"__ee__")&&(J=this.__ee__[W],!!J))if(typeof J=="object"){for(D=arguments.length,nn=new Array(D-1),A=1;A=55296&&D<=56319&&(sn+=G[++L])),sn=z?N.call(z,pn,sn,_n):sn,ln?(j.value=sn,an(W,_n,j)):W[_n]=sn,++_n;A=_n}}if(A===void 0)for(A=P(G.length),ln&&(W=new ln(A)),L=0;Lasync w=>{const f=new h,P=await w(f);return f.terminate(),P},Is=h=>w=>bs(h)(f=>(f.postMessage(w),new Promise((P,O)=>{f.onmessage=C=>{P(C.data)},f.onerror=O})));var Rs=""+new URL("parseTraceSlave.worker-c1d61960.js",self.location.href).href;const{min:Ts}=Math,Os=navigator.hardwareConcurrency??8;class Es extends Worker{constructor(){super(Rs,{type:"module"})}}const Cs=Is(Es);async function Ls({trace:h,context:w,view:f="main"}){var R,k;const P=Te.ceil((((R=h==null?void 0:h.events)==null?void 0:R.length)??0)/Os),O=Te.range(0,(k=h==null?void 0:h.events)==null?void 0:k.length,P),C=Te.flatten(await Promise.all(Te.map(O,Z=>{var N;return Cs({trace:h,context:w,view:f,from:Z,to:Ts(Z+P,((N=h==null?void 0:h.events)==null?void 0:N.length)??0)})})));return{stepsPersistent:Te.flatMap(C,"stepsPersistent"),stepsTransient:Te.flatMap(C,"stepsTransient")}}onmessage=async({data:h})=>{postMessage(await Ls(h))}})(); diff --git a/assets/parseTraceSlave.worker-35d6b6c4.js b/assets/parseTraceSlave.worker-35d6b6c4.js new file mode 100644 index 00000000..409cb1df --- /dev/null +++ b/assets/parseTraceSlave.worker-35d6b6c4.js @@ -0,0 +1,28 @@ +(function(){"use strict";var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ms(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Ft={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Ft.exports,function(f,l){(function(){var i,h="4.17.21",m=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",_=500,b="__lodash_placeholder__",q=1,F=2,C=4,D=1,M=2,I=1,P=2,L=4,A=8,E=16,W=32,U=64,J=128,rn=256,Pn=512,gt=30,Ht="...",Wi=800,Kt=16,vt=1,Bi=2,Ui=3,Nn=1/0,wn=9007199254740991,De=17976931348623157e292,ae=0/0,$n=4294967295,Gi=$n-1,Zt=$n>>>1,Vt=[["ary",J],["bind",I],["bindKey",P],["curry",A],["curryRight",E],["flip",Pn],["partial",W],["partialRight",U],["rearg",rn]],le="[object Arguments]",xe="[object Array]",dt="[object AsyncFunction]",se="[object Boolean]",be="[object Date]",un="[object DOMException]",ie="[object Error]",xn="[object Function]",Se="[object GeneratorFunction]",dn="[object Map]",Cn="[object Number]",Ae="[object Null]",Hn="[object Object]",_t="[object Promise]",Yt="[object Proxy]",an="[object RegExp]",_n="[object Set]",kn="[object String]",Qt="[object Symbol]",Ph="[object Undefined]",mt="[object WeakMap]",Ch="[object WeakSet]",yt="[object ArrayBuffer]",Je="[object DataView]",zi="[object Float32Array]",Hi="[object Float64Array]",Ki="[object Int8Array]",Zi="[object Int16Array]",Vi="[object Int32Array]",Yi="[object Uint8Array]",Qi="[object Uint8ClampedArray]",Xi="[object Uint16Array]",Ji="[object Uint32Array]",Lh=/\b__p \+= '';/g,qh=/\b(__p \+=) '' \+/g,Mh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zo=/&(?:amp|lt|gt|quot|#39);/g,Ho=/[&<>"']/g,Fh=RegExp(zo.source),Nh=RegExp(Ho.source),$h=/<%-([\s\S]+?)%>/g,Dh=/<%([\s\S]+?)%>/g,Ko=/<%=([\s\S]+?)%>/g,Wh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bh=/^\w*$/,Uh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ji=/[\\^$.*+?()[\]{}|]/g,Gh=RegExp(ji.source),ki=/^\s+/,zh=/\s/,Hh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kh=/\{\n\/\* \[wrapped with (.+)\] \*/,Zh=/,? & /,Vh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yh=/[()=,{}\[\]\/\s]/,Qh=/\\(\\)?/g,Xh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zo=/\w*$/,Jh=/^[-+]0x[0-9a-f]+$/i,jh=/^0b[01]+$/i,kh=/^\[object .+?Constructor\]$/,np=/^0o[0-7]+$/i,ep=/^(?:0|[1-9]\d*)$/,tp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,rp=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",ip="\\u0300-\\u036f",up="\\ufe20-\\ufe2f",fp="\\u20d0-\\u20ff",Vo=ip+up+fp,Yo="\\u2700-\\u27bf",Qo="a-z\\xdf-\\xf6\\xf8-\\xff",op="\\xac\\xb1\\xd7\\xf7",ap="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lp="\\u2000-\\u206f",sp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xo="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\ufe0e\\ufe0f",jo=op+ap+lp+sp,nu="['’]",cp="["+Jt+"]",ko="["+jo+"]",jt="["+Vo+"]",na="\\d+",hp="["+Yo+"]",ea="["+Qo+"]",ta="[^"+Jt+jo+na+Yo+Qo+Xo+"]",eu="\\ud83c[\\udffb-\\udfff]",pp="(?:"+jt+"|"+eu+")",ra="[^"+Jt+"]",tu="(?:\\ud83c[\\udde6-\\uddff]){2}",ru="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Xo+"]",ia="\\u200d",ua="(?:"+ea+"|"+ta+")",gp="(?:"+je+"|"+ta+")",fa="(?:"+nu+"(?:d|ll|m|re|s|t|ve))?",oa="(?:"+nu+"(?:D|LL|M|RE|S|T|VE))?",aa=pp+"?",la="["+Jo+"]?",vp="(?:"+ia+"(?:"+[ra,tu,ru].join("|")+")"+la+aa+")*",dp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_p="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sa=la+aa+vp,mp="(?:"+[hp,tu,ru].join("|")+")"+sa,yp="(?:"+[ra+jt+"?",jt,tu,ru,cp].join("|")+")",wp=RegExp(nu,"g"),xp=RegExp(jt,"g"),iu=RegExp(eu+"(?="+eu+")|"+yp+sa,"g"),bp=RegExp([je+"?"+ea+"+"+fa+"(?="+[ko,je,"$"].join("|")+")",gp+"+"+oa+"(?="+[ko,je+ua,"$"].join("|")+")",je+"?"+ua+"+"+fa,je+"+"+oa,_p,dp,na,mp].join("|"),"g"),Sp=RegExp("["+ia+Jt+Vo+Jo+"]"),Ap=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Op=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tp=-1,ln={};ln[zi]=ln[Hi]=ln[Ki]=ln[Zi]=ln[Vi]=ln[Yi]=ln[Qi]=ln[Xi]=ln[Ji]=!0,ln[le]=ln[xe]=ln[yt]=ln[se]=ln[Je]=ln[be]=ln[ie]=ln[xn]=ln[dn]=ln[Cn]=ln[Hn]=ln[an]=ln[_n]=ln[kn]=ln[mt]=!1;var on={};on[le]=on[xe]=on[yt]=on[Je]=on[se]=on[be]=on[zi]=on[Hi]=on[Ki]=on[Zi]=on[Vi]=on[dn]=on[Cn]=on[Hn]=on[an]=on[_n]=on[kn]=on[Qt]=on[Yi]=on[Qi]=on[Xi]=on[Ji]=!0,on[ie]=on[xn]=on[mt]=!1;var Ip={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Rp={"&":"&","<":"<",">":">",'"':""","'":"'"},Ep={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cp=parseFloat,Lp=parseInt,ca=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,qp=typeof self=="object"&&self&&self.Object===Object&&self,Sn=ca||qp||Function("return this")(),uu=l&&!l.nodeType&&l,We=uu&&!0&&f&&!f.nodeType&&f,ha=We&&We.exports===uu,fu=ha&&ca.process,Kn=function(){try{var p=We&&We.require&&We.require("util").types;return p||fu&&fu.binding&&fu.binding("util")}catch{}}(),pa=Kn&&Kn.isArrayBuffer,ga=Kn&&Kn.isDate,va=Kn&&Kn.isMap,da=Kn&&Kn.isRegExp,_a=Kn&&Kn.isSet,ma=Kn&&Kn.isTypedArray;function Dn(p,S,x){switch(x.length){case 0:return p.call(S);case 1:return p.call(S,x[0]);case 2:return p.call(S,x[0],x[1]);case 3:return p.call(S,x[0],x[1],x[2])}return p.apply(S,x)}function Mp(p,S,x,$){for(var K=-1,nn=p==null?0:p.length;++K-1}function ou(p,S,x){for(var $=-1,K=p==null?0:p.length;++$-1;);return x}function Ta(p,S){for(var x=p.length;x--&&ke(S,p[x],0)>-1;);return x}function zp(p,S){for(var x=p.length,$=0;x--;)p[x]===S&&++$;return $}var Hp=cu(Ip),Kp=cu(Rp);function Zp(p){return"\\"+Pp[p]}function Vp(p,S){return p==null?i:p[S]}function nt(p){return Sp.test(p)}function Yp(p){return Ap.test(p)}function Qp(p){for(var S,x=[];!(S=p.next()).done;)x.push(S.value);return x}function vu(p){var S=-1,x=Array(p.size);return p.forEach(function($,K){x[++S]=[K,$]}),x}function Ia(p,S){return function(x){return p(S(x))}}function Ie(p,S){for(var x=-1,$=p.length,K=0,nn=[];++x<$;){var mn=p[x];(mn===S||mn===b)&&(p[x]=b,nn[K++]=x)}return nn}function er(p){var S=-1,x=Array(p.size);return p.forEach(function($){x[++S]=$}),x}function Xp(p){var S=-1,x=Array(p.size);return p.forEach(function($){x[++S]=[$,$]}),x}function Jp(p,S,x){for(var $=x-1,K=p.length;++$-1}function Ng(n,e){var t=this.__data__,r=dr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ce.prototype.clear=Lg,ce.prototype.delete=qg,ce.prototype.get=Mg,ce.prototype.has=Fg,ce.prototype.set=Ng;function he(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,u,a){var s,c=e&q,v=e&F,O=e&C;if(t&&(s=u?t(n,r,u,a):t(n)),s!==i)return s;if(!hn(n))return n;var T=Z(n);if(T){if(s=Bv(n),!c)return Ln(n,s)}else{var R=Tn(n),N=R==xn||R==Se;if(qe(n))return ll(n,c);if(R==Hn||R==le||N&&!u){if(s=v||N?{}:Rl(n),!c)return v?Ev(n,jg(s,n)):Rv(n,Wa(s,n))}else{if(!on[R])return u?n:{};s=Uv(n,R,c)}}a||(a=new ee);var B=a.get(n);if(B)return B;a.set(n,s),rs(n)?n.forEach(function(H){s.add(Qn(H,e,t,H,n,a))}):es(n)&&n.forEach(function(H,X){s.set(X,Qn(H,e,t,X,n,a))});var z=O?v?Uu:Bu:v?Mn:bn,Y=T?i:z(n);return Zn(Y||n,function(H,X){Y&&(X=H,H=n[X]),Tt(s,X,Qn(H,e,t,X,n,a))}),s}function kg(n){var e=bn(n);return function(t){return Ba(t,n,e)}}function Ba(n,e,t){var r=t.length;if(n==null)return!r;for(n=fn(n);r--;){var u=t[r],a=e[u],s=n[u];if(s===i&&!(u in n)||!a(s))return!1}return!0}function Ua(n,e,t){if(typeof n!="function")throw new Vn(g);return qt(function(){n.apply(i,t)},e)}function It(n,e,t,r){var u=-1,a=kt,s=!0,c=n.length,v=[],O=e.length;if(!c)return v;t&&(e=sn(e,Wn(t))),r?(a=ou,s=!1):e.length>=m&&(a=wt,s=!1,e=new Ge(e));n:for(;++uu?0:u+t),r=r===i||r>u?u:V(r),r<0&&(r+=u),r=t>r?0:us(r);t0&&t(c)?e>1?An(c,e-1,t,r,u):Te(u,c):r||(u[u.length]=c)}return u}var bu=vl(),Ha=vl(!0);function ue(n,e){return n&&bu(n,e,bn)}function Su(n,e){return n&&Ha(n,e,bn)}function mr(n,e){return Oe(e,function(t){return _e(n[t])})}function He(n,e){e=Ce(e,n);for(var t=0,r=e.length;n!=null&&te}function tv(n,e){return n!=null&&tn.call(n,e)}function rv(n,e){return n!=null&&e in fn(n)}function iv(n,e,t){return n>=On(e,t)&&n=120&&T.length>=120)?new Ge(s&&T):i}T=n[0];var R=-1,N=c[0];n:for(;++R-1;)c!==n&&lr.call(c,v,1),lr.call(n,v,1);return n}function el(n,e){for(var t=n?e.length:0,r=t-1;t--;){var u=e[t];if(t==r||u!==a){var a=u;de(u)?lr.call(n,u,1):qu(n,u)}}return n}function Pu(n,e){return n+hr(Fa()*(e-n+1))}function _v(n,e,t,r){for(var u=-1,a=yn(cr((e-n)/(t||1)),0),s=x(a);a--;)s[r?a:++u]=n,n+=t;return s}function Cu(n,e){var t="";if(!n||e<1||e>wn)return t;do e%2&&(t+=n),e=hr(e/2),e&&(n+=n);while(e);return t}function Q(n,e){return Yu(Cl(n,e,Fn),n+"")}function mv(n){return Da(ct(n))}function yv(n,e){var t=ct(n);return Er(t,ze(e,0,t.length))}function Pt(n,e,t,r){if(!hn(n))return n;e=Ce(e,n);for(var u=-1,a=e.length,s=a-1,c=n;c!=null&&++uu?0:u+e),t=t>u?u:t,t<0&&(t+=u),u=e>t?0:t-e>>>0,e>>>=0;for(var a=x(u);++r>>1,s=n[a];s!==null&&!Un(s)&&(t?s<=e:s=m){var O=e?null:qv(n);if(O)return er(O);s=!1,u=wt,v=new Ge}else v=e?[]:c;n:for(;++r=r?n:Xn(n,e,t)}var al=sg||function(n){return Sn.clearTimeout(n)};function ll(n,e){if(e)return n.slice();var t=n.length,r=Pa?Pa(t):new n.constructor(t);return n.copy(r),r}function $u(n){var e=new n.constructor(n.byteLength);return new or(e).set(new or(n)),e}function Av(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Ov(n){var e=new n.constructor(n.source,Zo.exec(n));return e.lastIndex=n.lastIndex,e}function Tv(n){return Ot?fn(Ot.call(n)):{}}function sl(n,e){var t=e?$u(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function cl(n,e){if(n!==e){var t=n!==i,r=n===null,u=n===n,a=Un(n),s=e!==i,c=e===null,v=e===e,O=Un(e);if(!c&&!O&&!a&&n>e||a&&s&&v&&!c&&!O||r&&s&&v||!t&&v||!u)return 1;if(!r&&!a&&!O&&n=c)return v;var O=t[r];return v*(O=="desc"?-1:1)}}return n.index-e.index}function hl(n,e,t,r){for(var u=-1,a=n.length,s=t.length,c=-1,v=e.length,O=yn(a-s,0),T=x(v+O),R=!r;++c1?t[u-1]:i,s=u>2?t[2]:i;for(a=n.length>3&&typeof a=="function"?(u--,a):i,s&&Rn(t[0],t[1],s)&&(a=u<3?i:a,u=1),e=fn(e);++r-1?u[a?e[s]:s]:i}}function ml(n){return ve(function(e){var t=e.length,r=t,u=Yn.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Vn(g);if(u&&!s&&Ir(a)=="wrapper")var s=new Yn([],!0)}for(r=s?r:t;++r1&&k.reverse(),T&&vc))return!1;var O=a.get(n),T=a.get(e);if(O&&T)return O==e&&T==n;var R=-1,N=!0,B=t&M?new Ge:i;for(a.set(n,e),a.set(e,n);++R1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Hh,`{ +/* [wrapped with `+e+`] */ +`)}function zv(n){return Z(n)||Ve(n)||!!(qa&&n&&n[qa])}function de(n,e){var t=typeof n;return e=e??wn,!!e&&(t=="number"||t!="symbol"&&ep.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Wi)return arguments[0]}else e=0;return n.apply(i,arguments)}}function Er(n,e){var t=-1,r=n.length,u=r-1;for(e=e===i?r:e;++t1?n[e-1]:i;return t=typeof t=="function"?(n.pop(),t):i,zl(n,t)});function Hl(n){var e=o(n);return e.__chain__=!0,e}function n_(n,e){return e(n),n}function Pr(n,e){return e(n)}var e_=ve(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,u=function(a){return xu(a,n)};return e>1||this.__actions__.length||!(r instanceof j)||!de(t)?this.thru(u):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Pr,args:[u],thisArg:i}),new Yn(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(i),a}))});function t_(){return Hl(this)}function r_(){return new Yn(this.value(),this.__chain__)}function i_(){this.__values__===i&&(this.__values__=is(this.value()));var n=this.__index__>=this.__values__.length,e=n?i:this.__values__[this.__index__++];return{done:n,value:e}}function u_(){return this}function f_(n){for(var e,t=this;t instanceof vr;){var r=$l(t);r.__index__=0,r.__values__=i,e?u.__wrapped__=r:e=r;var u=r;t=t.__wrapped__}return u.__wrapped__=n,e}function o_(){var n=this.__wrapped__;if(n instanceof j){var e=n;return this.__actions__.length&&(e=new j(this)),e=e.reverse(),e.__actions__.push({func:Pr,args:[Qu],thisArg:i}),new Yn(e,this.__chain__)}return this.thru(Qu)}function a_(){return fl(this.__wrapped__,this.__actions__)}var l_=br(function(n,e,t){tn.call(n,t)?++n[t]:pe(n,t,1)});function s_(n,e,t){var r=Z(n)?ya:nv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}function c_(n,e){var t=Z(n)?Oe:za;return t(n,G(e,3))}var h_=_l(Dl),p_=_l(Wl);function g_(n,e){return An(Cr(n,e),1)}function v_(n,e){return An(Cr(n,e),Nn)}function d_(n,e,t){return t=t===i?1:V(t),An(Cr(n,e),t)}function Kl(n,e){var t=Z(n)?Zn:Ee;return t(n,G(e,3))}function Zl(n,e){var t=Z(n)?Fp:Ga;return t(n,G(e,3))}var __=br(function(n,e,t){tn.call(n,t)?n[t].push(e):pe(n,t,[e])});function m_(n,e,t,r){n=qn(n)?n:ct(n),t=t&&!r?V(t):0;var u=n.length;return t<0&&(t=yn(u+t,0)),Nr(n)?t<=u&&n.indexOf(e,t)>-1:!!u&&ke(n,e,t)>-1}var y_=Q(function(n,e,t){var r=-1,u=typeof e=="function",a=qn(n)?x(n.length):[];return Ee(n,function(s){a[++r]=u?Dn(e,s,t):Rt(s,e,t)}),a}),w_=br(function(n,e,t){pe(n,t,e)});function Cr(n,e){var t=Z(n)?sn:Qa;return t(n,G(e,3))}function x_(n,e,t,r){return n==null?[]:(Z(e)||(e=e==null?[]:[e]),t=r?i:t,Z(t)||(t=t==null?[]:[t]),ka(n,e,t))}var b_=br(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function S_(n,e,t){var r=Z(n)?au:Sa,u=arguments.length<3;return r(n,G(e,4),t,u,Ee)}function A_(n,e,t){var r=Z(n)?Np:Sa,u=arguments.length<3;return r(n,G(e,4),t,u,Ga)}function O_(n,e){var t=Z(n)?Oe:za;return t(n,Mr(G(e,3)))}function T_(n){var e=Z(n)?Da:mv;return e(n)}function I_(n,e,t){(t?Rn(n,e,t):e===i)?e=1:e=V(e);var r=Z(n)?Qg:yv;return r(n,e)}function R_(n){var e=Z(n)?Xg:xv;return e(n)}function E_(n){if(n==null)return 0;if(qn(n))return Nr(n)?et(n):n.length;var e=Tn(n);return e==dn||e==_n?n.size:Iu(n).length}function P_(n,e,t){var r=Z(n)?lu:bv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}var C_=Q(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Rn(n,e[0],e[1])?e=[]:t>2&&Rn(e[0],e[1],e[2])&&(e=[e[0]]),ka(n,An(e,1),[])}),Lr=cg||function(){return Sn.Date.now()};function L_(n,e){if(typeof e!="function")throw new Vn(g);return n=V(n),function(){if(--n<1)return e.apply(this,arguments)}}function Vl(n,e,t){return e=t?i:e,e=n&&e==null?n.length:e,ge(n,J,i,i,i,i,e)}function Yl(n,e){var t;if(typeof e!="function")throw new Vn(g);return n=V(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=i),t}}var Ju=Q(function(n,e,t){var r=I;if(t.length){var u=Ie(t,lt(Ju));r|=W}return ge(n,r,e,t,u)}),Ql=Q(function(n,e,t){var r=I|P;if(t.length){var u=Ie(t,lt(Ql));r|=W}return ge(e,r,n,t,u)});function Xl(n,e,t){e=t?i:e;var r=ge(n,A,i,i,i,i,i,e);return r.placeholder=Xl.placeholder,r}function Jl(n,e,t){e=t?i:e;var r=ge(n,E,i,i,i,i,i,e);return r.placeholder=Jl.placeholder,r}function jl(n,e,t){var r,u,a,s,c,v,O=0,T=!1,R=!1,N=!0;if(typeof n!="function")throw new Vn(g);e=jn(e)||0,hn(t)&&(T=!!t.leading,R="maxWait"in t,a=R?yn(jn(t.maxWait)||0,e):a,N="trailing"in t?!!t.trailing:N);function B(vn){var re=r,ye=u;return r=u=i,O=vn,s=n.apply(ye,re),s}function z(vn){return O=vn,c=qt(X,e),T?B(vn):s}function Y(vn){var re=vn-v,ye=vn-O,_s=e-re;return R?On(_s,a-ye):_s}function H(vn){var re=vn-v,ye=vn-O;return v===i||re>=e||re<0||R&&ye>=a}function X(){var vn=Lr();if(H(vn))return k(vn);c=qt(X,Y(vn))}function k(vn){return c=i,N&&r?B(vn):(r=u=i,s)}function Gn(){c!==i&&al(c),O=0,r=v=u=c=i}function En(){return c===i?s:k(Lr())}function zn(){var vn=Lr(),re=H(vn);if(r=arguments,u=this,v=vn,re){if(c===i)return z(v);if(R)return al(c),c=qt(X,e),B(v)}return c===i&&(c=qt(X,e)),s}return zn.cancel=Gn,zn.flush=En,zn}var q_=Q(function(n,e){return Ua(n,1,e)}),M_=Q(function(n,e,t){return Ua(n,jn(e)||0,t)});function F_(n){return ge(n,Pn)}function qr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Vn(g);var t=function(){var r=arguments,u=e?e.apply(this,r):r[0],a=t.cache;if(a.has(u))return a.get(u);var s=n.apply(this,r);return t.cache=a.set(u,s)||a,s};return t.cache=new(qr.Cache||he),t}qr.Cache=he;function Mr(n){if(typeof n!="function")throw new Vn(g);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function N_(n){return Yl(2,n)}var $_=Sv(function(n,e){e=e.length==1&&Z(e[0])?sn(e[0],Wn(G())):sn(An(e,1),Wn(G()));var t=e.length;return Q(function(r){for(var u=-1,a=On(r.length,t);++u=e}),Ve=Za(function(){return arguments}())?Za:function(n){return pn(n)&&tn.call(n,"callee")&&!La.call(n,"callee")},Z=x.isArray,j_=pa?Wn(pa):fv;function qn(n){return n!=null&&Fr(n.length)&&!_e(n)}function gn(n){return pn(n)&&qn(n)}function k_(n){return n===!0||n===!1||pn(n)&&In(n)==se}var qe=pg||sf,n0=ga?Wn(ga):ov;function e0(n){return pn(n)&&n.nodeType===1&&!Mt(n)}function t0(n){if(n==null)return!0;if(qn(n)&&(Z(n)||typeof n=="string"||typeof n.splice=="function"||qe(n)||st(n)||Ve(n)))return!n.length;var e=Tn(n);if(e==dn||e==_n)return!n.size;if(Lt(n))return!Iu(n).length;for(var t in n)if(tn.call(n,t))return!1;return!0}function r0(n,e){return Et(n,e)}function i0(n,e,t){t=typeof t=="function"?t:i;var r=t?t(n,e):i;return r===i?Et(n,e,i,t):!!r}function ku(n){if(!pn(n))return!1;var e=In(n);return e==ie||e==un||typeof n.message=="string"&&typeof n.name=="string"&&!Mt(n)}function u0(n){return typeof n=="number"&&Ma(n)}function _e(n){if(!hn(n))return!1;var e=In(n);return e==xn||e==Se||e==dt||e==Yt}function ns(n){return typeof n=="number"&&n==V(n)}function Fr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=wn}function hn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function pn(n){return n!=null&&typeof n=="object"}var es=va?Wn(va):lv;function f0(n,e){return n===e||Tu(n,e,zu(e))}function o0(n,e,t){return t=typeof t=="function"?t:i,Tu(n,e,zu(e),t)}function a0(n){return ts(n)&&n!=+n}function l0(n){if(Zv(n))throw new K(d);return Va(n)}function s0(n){return n===null}function c0(n){return n==null}function ts(n){return typeof n=="number"||pn(n)&&In(n)==Cn}function Mt(n){if(!pn(n)||In(n)!=Hn)return!1;var e=ar(n);if(e===null)return!0;var t=tn.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&ir.call(t)==og}var nf=da?Wn(da):sv;function h0(n){return ns(n)&&n>=-wn&&n<=wn}var rs=_a?Wn(_a):cv;function Nr(n){return typeof n=="string"||!Z(n)&&pn(n)&&In(n)==kn}function Un(n){return typeof n=="symbol"||pn(n)&&In(n)==Qt}var st=ma?Wn(ma):hv;function p0(n){return n===i}function g0(n){return pn(n)&&Tn(n)==mt}function v0(n){return pn(n)&&In(n)==Ch}var d0=Tr(Ru),_0=Tr(function(n,e){return n<=e});function is(n){if(!n)return[];if(qn(n))return Nr(n)?ne(n):Ln(n);if(xt&&n[xt])return Qp(n[xt]());var e=Tn(n),t=e==dn?vu:e==_n?er:ct;return t(n)}function me(n){if(!n)return n===0?n:0;if(n=jn(n),n===Nn||n===-Nn){var e=n<0?-1:1;return e*De}return n===n?n:0}function V(n){var e=me(n),t=e%1;return e===e?t?e-t:e:0}function us(n){return n?ze(V(n),0,$n):0}function jn(n){if(typeof n=="number")return n;if(Un(n))return ae;if(hn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=hn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Aa(n);var t=jh.test(n);return t||np.test(n)?Lp(n.slice(2),t?2:8):Jh.test(n)?ae:+n}function fs(n){return fe(n,Mn(n))}function m0(n){return n?ze(V(n),-wn,wn):n===0?n:0}function en(n){return n==null?"":Bn(n)}var y0=ot(function(n,e){if(Lt(e)||qn(e)){fe(e,bn(e),n);return}for(var t in e)tn.call(e,t)&&Tt(n,t,e[t])}),os=ot(function(n,e){fe(e,Mn(e),n)}),$r=ot(function(n,e,t,r){fe(e,Mn(e),n,r)}),w0=ot(function(n,e,t,r){fe(e,bn(e),n,r)}),x0=ve(xu);function b0(n,e){var t=ft(n);return e==null?t:Wa(t,e)}var S0=Q(function(n,e){n=fn(n);var t=-1,r=e.length,u=r>2?e[2]:i;for(u&&Rn(e[0],e[1],u)&&(r=1);++t1),a}),fe(n,Uu(n),t),r&&(t=Qn(t,q|F|C,Mv));for(var u=e.length;u--;)qu(t,e[u]);return t});function U0(n,e){return ls(n,Mr(G(e)))}var G0=ve(function(n,e){return n==null?{}:vv(n,e)});function ls(n,e){if(n==null)return{};var t=sn(Uu(n),function(r){return[r]});return e=G(e),nl(n,t,function(r,u){return e(r,u[0])})}function z0(n,e,t){e=Ce(e,n);var r=-1,u=e.length;for(u||(u=1,n=i);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var u=Fa();return On(n+u*(e-n+Cp("1e-"+((u+"").length-1))),e)}return Pu(n,e)}var n1=at(function(n,e,t){return e=e.toLowerCase(),n+(t?hs(e):e)});function hs(n){return rf(en(n).toLowerCase())}function ps(n){return n=en(n),n&&n.replace(tp,Hp).replace(xp,"")}function e1(n,e,t){n=en(n),e=Bn(e);var r=n.length;t=t===i?r:ze(V(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function t1(n){return n=en(n),n&&Nh.test(n)?n.replace(Ho,Kp):n}function r1(n){return n=en(n),n&&Gh.test(n)?n.replace(ji,"\\$&"):n}var i1=at(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),u1=at(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),f1=dl("toLowerCase");function o1(n,e,t){n=en(n),e=V(e);var r=e?et(n):0;if(!e||r>=e)return n;var u=(e-r)/2;return Or(hr(u),t)+n+Or(cr(u),t)}function a1(n,e,t){n=en(n),e=V(e);var r=e?et(n):0;return e&&r>>0,t?(n=en(n),n&&(typeof e=="string"||e!=null&&!nf(e))&&(e=Bn(e),!e&&nt(n))?Le(ne(n),0,t):n.split(e,t)):[]}var v1=at(function(n,e,t){return n+(t?" ":"")+rf(e)});function d1(n,e,t){return n=en(n),t=t==null?0:ze(V(t),0,n.length),e=Bn(e),n.slice(t,t+e.length)==e}function _1(n,e,t){var r=o.templateSettings;t&&Rn(n,e,t)&&(e=i),n=en(n),e=$r({},e,r,Sl);var u=$r({},e.imports,r.imports,Sl),a=bn(u),s=gu(u,a),c,v,O=0,T=e.interpolate||Xt,R="__p += '",N=du((e.escape||Xt).source+"|"+T.source+"|"+(T===Ko?Xh:Xt).source+"|"+(e.evaluate||Xt).source+"|$","g"),B="//# sourceURL="+(tn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Tp+"]")+` +`;n.replace(N,function(H,X,k,Gn,En,zn){return k||(k=Gn),R+=n.slice(O,zn).replace(rp,Zp),X&&(c=!0,R+=`' + +__e(`+X+`) + +'`),En&&(v=!0,R+=`'; +`+En+`; +__p += '`),k&&(R+=`' + +((__t = (`+k+`)) == null ? '' : __t) + +'`),O=zn+H.length,H}),R+=`'; +`;var z=tn.call(e,"variable")&&e.variable;if(!z)R=`with (obj) { +`+R+` +} +`;else if(Yh.test(z))throw new K(y);R=(v?R.replace(Lh,""):R).replace(qh,"$1").replace(Mh,"$1;"),R="function("+(z||"obj")+`) { +`+(z?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+R+`return __p +}`;var Y=vs(function(){return nn(a,B+"return "+R).apply(i,s)});if(Y.source=R,ku(Y))throw Y;return Y}function m1(n){return en(n).toLowerCase()}function y1(n){return en(n).toUpperCase()}function w1(n,e,t){if(n=en(n),n&&(t||e===i))return Aa(n);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=ne(e),a=Oa(r,u),s=Ta(r,u)+1;return Le(r,a,s).join("")}function x1(n,e,t){if(n=en(n),n&&(t||e===i))return n.slice(0,Ra(n)+1);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ta(r,ne(e))+1;return Le(r,0,u).join("")}function b1(n,e,t){if(n=en(n),n&&(t||e===i))return n.replace(ki,"");if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Oa(r,ne(e));return Le(r,u).join("")}function S1(n,e){var t=gt,r=Ht;if(hn(e)){var u="separator"in e?e.separator:u;t="length"in e?V(e.length):t,r="omission"in e?Bn(e.omission):r}n=en(n);var a=n.length;if(nt(n)){var s=ne(n);a=s.length}if(t>=a)return n;var c=t-et(r);if(c<1)return r;var v=s?Le(s,0,c).join(""):n.slice(0,c);if(u===i)return v+r;if(s&&(c+=v.length-c),nf(u)){if(n.slice(c).search(u)){var O,T=v;for(u.global||(u=du(u.source,en(Zo.exec(u))+"g")),u.lastIndex=0;O=u.exec(T);)var R=O.index;v=v.slice(0,R===i?c:R)}}else if(n.indexOf(Bn(u),c)!=c){var N=v.lastIndexOf(u);N>-1&&(v=v.slice(0,N))}return v+r}function A1(n){return n=en(n),n&&Fh.test(n)?n.replace(zo,kp):n}var O1=at(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),rf=dl("toUpperCase");function gs(n,e,t){return n=en(n),e=t?i:e,e===i?Yp(n)?tg(n):Wp(n):n.match(e)||[]}var vs=Q(function(n,e){try{return Dn(n,i,e)}catch(t){return ku(t)?t:new K(t)}}),T1=ve(function(n,e){return Zn(e,function(t){t=oe(t),pe(n,t,Ju(n[t],n))}),n});function I1(n){var e=n==null?0:n.length,t=G();return n=e?sn(n,function(r){if(typeof r[1]!="function")throw new Vn(g);return[t(r[0]),r[1]]}):[],Q(function(r){for(var u=-1;++uwn)return[];var t=$n,r=On(n,$n);e=G(e),n-=$n;for(var u=pu(r,e);++t0||e<0)?new j(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==i&&(e=V(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},j.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},j.prototype.toArray=function(){return this.take($n)},ue(j.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),u=o[r?"take"+(e=="last"?"Right":""):e],a=r||/^find/.test(e);u&&(o.prototype[e]=function(){var s=this.__wrapped__,c=r?[1]:arguments,v=s instanceof j,O=c[0],T=v||Z(s),R=function(X){var k=u.apply(o,Te([X],c));return r&&N?k[0]:k};T&&t&&typeof O=="function"&&O.length!=1&&(v=T=!1);var N=this.__chain__,B=!!this.__actions__.length,z=a&&!N,Y=v&&!B;if(!a&&T){s=Y?s:new j(this);var H=n.apply(s,c);return H.__actions__.push({func:Pr,args:[R],thisArg:i}),new Yn(H,N)}return z&&Y?n.apply(this,c):(H=this.thru(R),z?r?H.value()[0]:H.value():H)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(n){var e=tr[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var u=arguments;if(r&&!this.__chain__){var a=this.value();return e.apply(Z(a)?a:[],u)}return this[t](function(s){return e.apply(Z(s)?s:[],u)})}}),ue(j.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";tn.call(ut,r)||(ut[r]=[]),ut[r].push({name:e,func:t})}}),ut[Sr(i,P).name]=[{name:"wrapper",func:i}],j.prototype.clone=Ag,j.prototype.reverse=Og,j.prototype.value=Tg,o.prototype.at=e_,o.prototype.chain=t_,o.prototype.commit=r_,o.prototype.next=i_,o.prototype.plant=f_,o.prototype.reverse=o_,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=a_,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=u_),o},tt=rg();We?((We.exports=tt)._=tt,uu._=tt):Sn._=tt}).call(Ye)}(Ft,Ft.exports);var cn=Ft.exports;function Dr(f={},l){const i={};for(const h of Object.keys(f))i[h]=h==="$"?f[h]:l(f[h],h,f);return Object.setPrototypeOf(i,f)}var ys=function(){},ws=ys(),Me=function(f){return f!==ws&&f!==null},xs=Me,bs=Array.prototype.forEach,Ss=Object.create,As=function(f,l){var i;for(i in f)l[i]=f[i]},cf=function(f){var l=Ss(null);return bs.call(arguments,function(i){xs(i)&&As(Object(i),l)}),l},Os=function(){var f=Math.sign;return typeof f!="function"?!1:f(10)===1&&f(-20)===-1},Wr,hf;function Ts(){return hf||(hf=1,Wr=function(f){return f=Number(f),isNaN(f)||f===0?f:f>0?1:-1}),Wr}var Is=Os()?Math.sign:Ts(),Rs=Is,Es=Math.abs,Ps=Math.floor,Cs=function(f){return isNaN(f)?0:(f=Number(f),f===0||!isFinite(f)?f:Rs(f)*Ps(Es(f)))},Ls=Cs,qs=Math.max,Fe=function(f){return qs(0,Ls(f))},Ms=Fe,pf=function(f,l,i){var h;return isNaN(f)?(h=l,h>=0?i&&h?h-1:h:1):f===!1?!1:Ms(f)},we=function(f){if(typeof f!="function")throw new TypeError(f+" is not a function");return f},Fs=Me,Qe=function(f){if(!Fs(f))throw new TypeError("Cannot use null or undefined");return f},Ns=we,$s=Qe,Ds=Function.prototype.bind,gf=Function.prototype.call,Ws=Object.keys,Bs=Object.prototype.propertyIsEnumerable,Us=function(f,l){return function(i,h){var m,d=arguments[2],g=arguments[3];return i=Object($s(i)),Ns(h),m=Ws(i),g&&m.sort(typeof g=="function"?Ds.call(g,i):void 0),typeof f!="function"&&(f=m[f]),gf.call(f,m,function(y,w){return Bs.call(i,y)?gf.call(h,d,i[y],y,i,w):l})}},Nt=Us("forEach"),Ne={},vf={exports:{}},Gs=function(){var f=Object.assign,l;return typeof f!="function"?!1:(l={foo:"raz"},f(l,{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")},Br,df;function zs(){return df||(df=1,Br=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Br}var Ur,_f;function Hs(){if(_f)return Ur;_f=1;var f=Me,l=Object.keys;return Ur=function(i){return l(f(i)?Object(i):i)},Ur}var Gr,mf;function Ks(){return mf||(mf=1,Gr=zs()()?Object.keys:Hs()),Gr}var zr,yf;function Zs(){if(yf)return zr;yf=1;var f=Ks(),l=Qe,i=Math.max;return zr=function(h,m){var d,g,y=i(arguments.length,2),w;for(h=Object(l(h)),w=function(_){try{h[_]=m[_]}catch(b){d||(d=b)}},g=1;g-1},Yr}var cc=lc()?String.prototype.contains:sc(),$t=Pf,Lf=ac,qf=wf,Mf=cf,ht=cc,hc=Ef.exports=function(f,l){var i,h,m,d,g;return arguments.length<2||typeof f!="string"?(d=l,l=f,f=null):d=arguments[2],$t(f)?(i=ht.call(f,"c"),h=ht.call(f,"e"),m=ht.call(f,"w")):(i=m=!0,h=!1),g={value:l,configurable:i,enumerable:h,writable:m},d?qf(Mf(d),g):g};hc.gs=function(f,l,i){var h,m,d,g;return typeof f!="string"?(d=i,i=l,l=f,f=null):d=arguments[3],$t(l)?Lf(l)?$t(i)?Lf(i)||(d=i,i=void 0):i=void 0:(d=l,l=i=void 0):l=void 0,$t(f)?(h=ht.call(f,"c"),m=ht.call(f,"e")):(h=!0,m=!1),g={get:l,set:i,configurable:h,enumerable:m},d?qf(Mf(d),g):g};var $e=Ef.exports,Qr={exports:{}};(function(f,l){var i=$e,h=we,m=Function.prototype.apply,d=Function.prototype.call,g=Object.create,y=Object.defineProperty,w=Object.defineProperties,_=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0},q,F,C,D,M,I,P;q=function(L,A){var E;return h(A),_.call(this,"__ee__")?E=this.__ee__:(E=b.value=g(null),y(this,"__ee__",b),b.value=null),E[L]?typeof E[L]=="object"?E[L].push(A):E[L]=[E[L],A]:E[L]=A,this},F=function(L,A){var E,W;return h(A),W=this,q.call(this,L,E=function(){C.call(W,L,E),m.call(A,this,arguments)}),E.__eeOnceListener__=A,this},C=function(L,A){var E,W,U,J;if(h(A),!_.call(this,"__ee__"))return this;if(E=this.__ee__,!E[L])return this;if(W=E[L],typeof W=="object")for(J=0;U=W[J];++J)(U===A||U.__eeOnceListener__===A)&&(W.length===2?E[L]=W[J?0:1]:W.splice(J,1));else(W===A||W.__eeOnceListener__===A)&&delete E[L];return this},D=function(L){var A,E,W,U,J;if(_.call(this,"__ee__")&&(U=this.__ee__[L],!!U))if(typeof U=="object"){for(E=arguments.length,J=new Array(E-1),A=1;A=55296&&E<=56319&&(rn+=F[++I])),rn=C?_.call(C,D,rn,P):rn,M?(b.value=rn,q(L,P,b)):L[P]=rn,++P;A=P}}if(A===void 0)for(A=h(F.length),M&&(L=new M(A)),I=0;I=0?b=g(b):b=l(this.length)-g(d(b)),w=b;w<_;++w)if(m.call(this,w)&&(q=this[w],f(q)))return w;return-1},wi}var bi,ao;function kc(){if(ao)return bi;ao=1;var f=xi(),l=Object.create;return bi=function(){var i=0,h=[],m=l(null);return{get:function(d){var g=0,y=h,w,_=d.length;if(_===0)return y[_]||null;if(y=y[_]){for(;g<_-1;){if(w=f.call(y[0],d[g]),w===-1)return null;y=y[1][w],++g}return w=f.call(y[0],d[g]),w===-1?null:y[1][w]||null}return null},set:function(d){var g=0,y=h,w,_=d.length;if(_===0)y[_]=++i;else{for(y[_]||(y[_]=[[],[]]),y=y[_];g<_-1;)w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1,y[1].push([[],[]])),y=y[1][w],++g;w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1),y[1][w]=++i}return m[i]=d,i},delete:function(d){var g=0,y=h,w,_=m[d],b=_.length,q=[];if(b===0)delete y[b];else if(y=y[b]){for(;g"}},Li}var qi,Ao;function oh(){if(Ao)return qi;Ao=1;var f=fh(),l=/[\n\r\u2028\u2029]/g;return qi=function(i){var h=f(i);return h.length>100&&(h=h.slice(0,99)+"…"),h=h.replace(l,function(m){return JSON.stringify(m).slice(1,-1)}),h},qi}var Gt={exports:{}},Oo;function To(){if(Oo)return Gt.exports;Oo=1,Gt.exports=f,Gt.exports.default=f;function f(l){return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"}return Gt.exports}var Io;function ah(){if(Io)return _o;Io=1;var f=po(),l=rh(),i=uh(),h=oh(),m=To(),d=Ii(),g=Object.create,y=l("then","then:finally","done","done:finally");return Ne.promise=function(w,_){var b=g(null),q=g(null),F=g(null);if(w===!0)w=null;else if(w=i(w),!y[w])throw new TypeError("'"+h(w)+"' is not valid promise mode");_.on("set",function(C,D,M){var I=!1;if(!m(M)){q[C]=M,_.emit("setasync",C,1);return}b[C]=1,F[C]=M;var P=function(W){var U=b[C];if(I)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) +Consider to rely on 'then' or 'done' mode instead.`);U&&(delete b[C],q[C]=W,_.emit("setasync",C,U))},L=function(){I=!0,b[C]&&(delete b[C],delete F[C],_.delete(C))},A=w;if(A||(A="then"),A==="then"){var E=function(){d(L)};M=M.then(function(W){d(P.bind(this,W))},E),typeof M.finally=="function"&&M.finally(E)}else if(A==="done"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");M.done(P,L)}else if(A==="done:finally"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof M.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");M.done(P),M.finally(L)}}),_.on("get",function(C,D,M){var I;if(b[C]){++b[C];return}I=F[C];var P=function(){_.emit("getasync",C,D,M)};m(I)?typeof I.done=="function"?I.done(P):I.then(function(){d(P)}):P()}),_.on("delete",function(C){if(delete F[C],b[C]){delete b[C];return}if(hasOwnProperty.call(q,C)){var D=q[C];delete q[C],_.emit("deleteasync",C,[D])}}),_.on("clear",function(){var C=q;q=g(null),b=g(null),F=g(null),_.emit("clearasync",f(C,function(D){return[D]}))})},_o}var Ro={},Eo;function lh(){if(Eo)return Ro;Eo=1;var f=we,l=Nt,i=Ne,h=Function.prototype.apply;return i.dispose=function(m,d,g){var y;if(f(m),g.async&&i.async||g.promise&&i.promise){d.on("deleteasync",y=function(w,_){h.call(m,null,_)}),d.on("clearasync",function(w){l(w,function(_,b){y(b,_)})});return}d.on("delete",y=function(w,_){m(_)}),d.on("clear",function(w){l(w,function(_,b){y(b,_)})})},Ro}var Po={},Mi,Co;function sh(){return Co||(Co=1,Mi=2147483647),Mi}var Fi,Lo;function ch(){if(Lo)return Fi;Lo=1;var f=Fe,l=sh();return Fi=function(i){if(i=f(i),i>l)throw new TypeError(i+" exceeds maximum possible timeout");return i},Fi}var qo;function hh(){if(qo)return Po;qo=1;var f=hi,l=Nt,i=Ii(),h=To(),m=ch(),d=Ne,g=Function.prototype,y=Math.max,w=Math.min,_=Object.create;return d.maxAge=function(b,q,F){var C,D,M,I;b=m(b),b&&(C=_(null),D=F.async&&d.async||F.promise&&d.promise?"async":"",q.on("set"+D,function(P){C[P]=setTimeout(function(){q.delete(P)},b),typeof C[P].unref=="function"&&C[P].unref(),I&&(I[P]&&I[P]!=="nextTick"&&clearTimeout(I[P]),I[P]=setTimeout(function(){delete I[P]},M),typeof I[P].unref=="function"&&I[P].unref())}),q.on("delete"+D,function(P){clearTimeout(C[P]),delete C[P],I&&(I[P]!=="nextTick"&&clearTimeout(I[P]),delete I[P])}),F.preFetch&&(F.preFetch===!0||isNaN(F.preFetch)?M=.333:M=y(w(Number(F.preFetch),1),0),M&&(I={},M=(1-M)*b,q.on("get"+D,function(P,L,A){I[P]||(I[P]="nextTick",i(function(){var E;I[P]==="nextTick"&&(delete I[P],q.delete(P),F.async&&(L=f(L),L.push(g)),E=q.memoized.apply(A,L),F.promise&&h(E)&&(typeof E.done=="function"?E.done(g,g):E.then(g,g)))}))}))),q.on("clear"+D,function(){l(C,function(P){clearTimeout(P)}),C={},I&&(l(I,function(P){P!=="nextTick"&&clearTimeout(P)}),I={})}))},Po}var Mo={},Ni,Fo;function ph(){if(Fo)return Ni;Fo=1;var f=Fe,l=Object.create,i=Object.prototype.hasOwnProperty;return Ni=function(h){var m=0,d=1,g=l(null),y=l(null),w=0,_;return h=f(h),{hit:function(b){var q=y[b],F=++w;if(g[F]=b,y[b]=F,!q)return++m,m<=h?void 0:(b=g[d],_(b),b);if(delete g[q],d===q)for(;!i.call(g,++d););},delete:_=function(b){var q=y[b];if(q&&(delete g[q],delete y[b],--m,d===q)){if(!m){w=0,d=1;return}for(;!i.call(g,++d););}},clear:function(){m=0,d=1,g=l(null),y=l(null),w=0}}},Ni}var No;function gh(){if(No)return Mo;No=1;var f=Fe,l=ph(),i=Ne;return i.max=function(h,m,d){var g,y,w;h=f(h),h&&(y=l(h),g=d.async&&i.async||d.promise&&i.promise?"async":"",m.on("set"+g,w=function(_){_=y.hit(_),_!==void 0&&m.delete(_)}),m.on("get"+g,w),m.on("delete"+g,y.delete),m.on("clear"+g,y.clear))},Mo}var $o={},Do;function vh(){if(Do)return $o;Do=1;var f=$e,l=Ne,i=Object.create,h=Object.defineProperties;return l.refCounter=function(m,d,g){var y,w;y=i(null),w=g.async&&l.async||g.promise&&l.promise?"async":"",d.on("set"+w,function(_,b){y[_]=b||1}),d.on("get"+w,function(_){++y[_]}),d.on("delete"+w,function(_){delete y[_]}),d.on("clear"+w,function(){y={}}),h(d.memoized,{deleteRef:f(function(){var _=d.get(arguments);return _===null||!y[_]?null:--y[_]?!1:(d.delete(_),!0)}),getRefCount:f(function(){var _=d.get(arguments);return _===null||!y[_]?0:y[_]})})},$o}var dh=cf,_h=pf,mh=Vc,yh=function(f){var l=dh(arguments[1]),i;return l.normalizer||(i=l.length=_h(l.length,f.length,l.async),i!==0&&(l.primitive?i===!1?l.normalizer=Yc():i>1&&(l.normalizer=Qc()(i)):i===!1?l.normalizer=kc()():i===1?l.normalizer=nh()():l.normalizer=eh()(i))),l.async&&th(),l.promise&&ah(),l.dispose&&lh(),l.maxAge&&hh(),l.max&&gh(),l.refCounter&&vh(),mh(f,l)},wh=ms(yh),Wo={exports:{}};(function(f,l){(function(i,h){f.exports=h()})(Ye,function(){return function(i){function h(d){if(m[d])return m[d].exports;var g=m[d]={i:d,l:!1,exports:{}};return i[d].call(g.exports,g,g.exports,h),g.l=!0,g.exports}var m={};return h.m=i,h.c=m,h.d=function(d,g,y){h.o(d,g)||Object.defineProperty(d,g,{configurable:!1,enumerable:!0,get:y})},h.n=function(d){var g=d&&d.__esModule?function(){return d.default}:function(){return d};return h.d(g,"a",g),g},h.o=function(d,g){return Object.prototype.hasOwnProperty.call(d,g)},h.p="",h(h.s=1)}([function(i,h,m){function d(y){var w=y===void 0?{}:y,_=w.ESCAPE,b=_===void 0?/^\\/:_,q=w.VARIABLE_START,F=q===void 0?/^\${\s*/:q,C=w.VARIABLE_END,D=C===void 0?/^\s*}/:C,M=w.PIPE_START,I=M===void 0?/^\s*\|\s*/:M,P=w.PIPE_PARAMETER_START,L=P===void 0?/^\s*:\s*/:P,A=w.QUOTED_STRING,E=A===void 0?h.DEFAULT_QUOTED_STRING_REGEX:A,W=w.QUOTED_STRING_TEST,U=W===void 0?null:W,J=w.QUOTED_STRING_GET_AND_ADVANCE,rn=J===void 0?null:J,Pn=w.QUOTED_STRING_IN_PARAMETER_TEST,gt=Pn===void 0?null:Pn,Ht=w.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,Wi=Ht===void 0?null:Ht,Kt=U||function(Nn){return E.test(Nn)},vt=rn||g(E),Bi=gt||function(Nn){return E.test(Nn)},Ui=Wi||g(E);return function(Nn){function wn(an){an===void 0&&(an=1),un=un.substr(an)}function De(an){an===void 0&&(an=/^/),wn(un.match(an)[0].length)}function ae(){var an;return De(b),an=un.length>0?un[0]:"",wn(),an}function $n(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;dn={name:"",pipes:[]},Hn=!kn}function Gi(){ie.variables.push(dn),$n({isNull:!0})}function Zt(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Cn={name:"",parameters:[]},_t=!kn}function Vt(){dn.pipes.push(Cn),Zt({isNull:!0})}function le(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Ae="",Yt=!kn}function xe(){Cn.parameters.push(Ae),le({isNull:!0})}function dt(){return!!D.test(un)&&(De(D),xn>=3&&xe(),xn>=2&&Vt(),xn>=1&&Gi(),xn=0,!0)}function se(){return!!I.test(un)&&(De(I),xn>=3&&xe(),xn>=2&&Vt(),xn>=1&&Zt(),xn=2,!0)}function be(){return!!L.test(un)&&(De(L),xn>=3&&xe(),xn>=2&&le(),xn=3,!0)}for(var un=Nn,ie={literals:[],variables:[]},xn=0,Se="",dn={name:"",pipes:[]},Cn={name:"",parameters:[]},Ae="",Hn=!1,_t=!1,Yt=!1;un&&un.length>0;)switch(xn){case 0:if(b.test(un)){Se+=ae();continue}if(F.test(un)){xn=1,$n(),ie.literals.push(Se),Se="",De(F);continue}Se+=un[0],wn();break;case 1:if(b.test(un)){dn.name+=ae();continue}if(dt()||se())continue;if(Kt(un)){dn.name+=vt(un,wn);continue}dn.name+=un[0],wn();break;case 2:if(b.test(un)){Cn.name+=ae();continue}if(dt()||be()||se())continue;if(Kt(un)){Cn.name+=vt(un,wn);continue}Cn.name+=un[0],wn();break;case 3:if(b.test(un)){Ae+=ae();continue}if(dt()||be()||se())continue;if(Bi(un)){Ae+=Ui(un,wn);continue}Ae+=un[0],wn()}return Yt&&Cn.parameters.push(Ae),_t&&dn.pipes.push(Cn),Hn&&ie.variables.push(dn),ie.literals.push(Se),ie}}function g(y){return function(w,_){var b=w.match(y);return _(b[0].length),b.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(h,"__esModule",{value:!0}),h.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,h.parseStringTemplateGenerator=d,h.parseStringTemplate=d(),h.getQuotedStringAndAdvanceForRegex=g},function(i,h,m){i.exports=m(2)},function(i,h,m){function d(g){for(var y in g)h.hasOwnProperty(y)||(h[y]=g[y])}Object.defineProperty(h,"__esModule",{value:!0}),d(m(0)),d(m(3))},function(i,h,m){function d(b){return function(q){return b.hasOwnProperty(q)?b[q]:q.split(".").reduce(function(F,C){return F.hasOwnProperty(C)?F[C]:""},b)}}function g(b,q,F,C){C===void 0&&(C=d(q));var D=C(b.name);return b.pipes.reduce(function(M,I){return F.hasOwnProperty(I.name)?F[I.name](M,I.parameters):M},D??"")}function y(b,q,F,C){return C===void 0&&(C=d(q)),b.literals.length===0?"":b.literals.slice(1).reduce(function(D,M,I){return""+D+g(b.variables[I],q,F,C)+M},b.literals[0])}function w(b,q,F){return y(_.parseStringTemplate(b),q,F)}Object.defineProperty(h,"__esModule",{value:!0});var _=m(0);h.evaluateParsedString=y,h.evaluateStringTemplate=w}])})})(Wo);var Bo=Wo.exports;const Uo=f=>{const l=Function("$",`return ${f};`);return i=>l(new Proxy(zt(i),{get(h,m){return typeof(h==null?void 0:h[m])=="function"?h[m]({}):h==null?void 0:h[m]}}))},xh=/^\{\{\s*/,bh=/^\s*\}\}/,$i=/\b\B/,Sh=Bo.parseStringTemplateGenerator({VARIABLE_START:xh,VARIABLE_END:bh,PIPE_START:$i,PIPE_PARAMETER_START:$i,QUOTED_STRING:$i}),Ah=wh(f=>{const l=Sh(f);return cn.join(l.literals,"")?i=>Bo.evaluateParsedString(l,{},{},h=>Uo(h)(i)):Uo(l.variables[0].name)},{primitive:!0});function Xe(f){switch(f==null?void 0:f.constructor){case Array:{const l=cn.map(f,Xe);return i=>cn.map(l,h=>h(i))}case Object:{const l=cn.mapValues(f,Xe);return i=>cn.mapValues(l,h=>h(i))}case String:return Ah(f);default:return()=>f}}function zt(f={}){return Dr(f,l=>cn.isFunction(l)?l:Xe(l))}function Oh(f={}){return new Proxy(f,{get:(l,i)=>typeof l[i]=="function"?l[i]:()=>l[i]})}function Di(f,l){return Object.setPrototypeOf(Dr(l,i=>h=>i(f)),f)}function Th(f){const{$for:l,...i}=f;if(l){const{$let:h="i",$from:m=0,$to:d=1,$step:g=1}=l,y=Xe(m),w=Xe(d),_=Xe(g);return(b={})=>cn.range(y(b),w(b),_(b)).map(q=>{const F=Di(b,zt({[h]:q}));return Di(F,zt(i))})}else return(h={})=>[Di(h,zt(i))]}function Ih(f,l){const i=d=>{const{$:g}=d,y=Th(d);return g in l?w=>cn.flatMap(y(w),_=>cn.flatMap(h[g],b=>b(_))):w=>cn.map(y(w),_=>Object.setPrototypeOf(Dr(_,b=>b(_)),null))},h=cn.mapValues(l,d=>cn.map(d,i)),m=cn.flatMap(f,i);return d=>cn.flatMap(m,g=>g(d))}const Rh=f=>f==null,Go=f=>f.display!=="transient";function Eh({trace:f,context:l,view:i="main",from:h=0,to:m=(d=>(d=f==null?void 0:f.events)==null?void 0:d.length)()??0}){var q,F,C,D;const g=Ih(((C=(F=(q=f==null?void 0:f.render)==null?void 0:q.views)==null?void 0:F[i])==null?void 0:C.components)??[],((D=f==null?void 0:f.render)==null?void 0:D.components)??{}),y=M=>M&&Object.hasOwn(M,"alpha")?M.alpha>0:!0,w=M=>I=>({component:I,meta:{source:"trace",step:M,info:I.$info}}),_=cn.chain(f==null?void 0:f.events).map((M,I)=>({step:I,id:M.id,data:M,pId:M.pId})).groupBy("id").value(),b=cn.chain(cn.range(h,m)).map(M=>{var W;const I=f.events[M],P=f.events,L=g(Oh({alpha:1,...l,step:M,parent:Rh(I.pId)?void 0:P[((W=cn.findLast(_[I.pId],U=>U.step<=M))==null?void 0:W.step)??0],event:I,events:P})),A=L.filter(Go),E=L.filter(cn.negate(Go));return{persistent:A,transient:E}}).map(M=>cn.mapValues(M,I=>I.filter(y))).map((M,I)=>cn.mapValues(M,P=>P.map(w(I)))).value();return{stepsPersistent:cn.map(b,M=>M.persistent),stepsTransient:cn.map(b,M=>M.transient)}}onmessage=({data:f})=>{postMessage(Eh(f))}})(); diff --git a/assets/parseTraceSlave.worker-c1d61960.js b/assets/parseTraceSlave.worker-c1d61960.js deleted file mode 100644 index 9b42f810..00000000 --- a/assets/parseTraceSlave.worker-c1d61960.js +++ /dev/null @@ -1,28 +0,0 @@ -(function(){"use strict";var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ws(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Ft={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */Ft.exports,function(f,l){(function(){var i,h="4.17.21",m=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",_=500,b="__lodash_placeholder__",q=1,F=2,C=4,D=1,M=2,I=1,P=2,L=4,A=8,E=16,W=32,U=64,J=128,rn=256,Pn=512,gt=30,Ht="...",Bi=800,Kt=16,vt=1,Ui=2,Gi=3,Nn=1/0,wn=9007199254740991,De=17976931348623157e292,ae=0/0,$n=4294967295,zi=$n-1,Zt=$n>>>1,Vt=[["ary",J],["bind",I],["bindKey",P],["curry",A],["curryRight",E],["flip",Pn],["partial",W],["partialRight",U],["rearg",rn]],le="[object Arguments]",xe="[object Array]",dt="[object AsyncFunction]",se="[object Boolean]",be="[object Date]",un="[object DOMException]",ie="[object Error]",xn="[object Function]",Se="[object GeneratorFunction]",dn="[object Map]",Cn="[object Number]",Ae="[object Null]",Hn="[object Object]",_t="[object Promise]",Yt="[object Proxy]",an="[object RegExp]",_n="[object Set]",kn="[object String]",Qt="[object Symbol]",Lh="[object Undefined]",mt="[object WeakMap]",qh="[object WeakSet]",yt="[object ArrayBuffer]",Je="[object DataView]",Hi="[object Float32Array]",Ki="[object Float64Array]",Zi="[object Int8Array]",Vi="[object Int16Array]",Yi="[object Int32Array]",Qi="[object Uint8Array]",Xi="[object Uint8ClampedArray]",Ji="[object Uint16Array]",ji="[object Uint32Array]",Mh=/\b__p \+= '';/g,Fh=/\b(__p \+=) '' \+/g,Nh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ko=/&(?:amp|lt|gt|quot|#39);/g,Zo=/[&<>"']/g,$h=RegExp(Ko.source),Dh=RegExp(Zo.source),Wh=/<%-([\s\S]+?)%>/g,Bh=/<%([\s\S]+?)%>/g,Vo=/<%=([\s\S]+?)%>/g,Uh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gh=/^\w*$/,zh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ki=/[\\^$.*+?()[\]{}|]/g,Hh=RegExp(ki.source),nu=/^\s+/,Kh=/\s/,Zh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Vh=/\{\n\/\* \[wrapped with (.+)\] \*/,Yh=/,? & /,Qh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xh=/[()=,{}\[\]\/\s]/,Jh=/\\(\\)?/g,jh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yo=/\w*$/,kh=/^[-+]0x[0-9a-f]+$/i,np=/^0b[01]+$/i,ep=/^\[object .+?Constructor\]$/,tp=/^0o[0-7]+$/i,rp=/^(?:0|[1-9]\d*)$/,ip=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xt=/($^)/,up=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",fp="\\u0300-\\u036f",op="\\ufe20-\\ufe2f",ap="\\u20d0-\\u20ff",Qo=fp+op+ap,Xo="\\u2700-\\u27bf",Jo="a-z\\xdf-\\xf6\\xf8-\\xff",lp="\\xac\\xb1\\xd7\\xf7",sp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cp="\\u2000-\\u206f",hp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",jo="A-Z\\xc0-\\xd6\\xd8-\\xde",ko="\\ufe0e\\ufe0f",na=lp+sp+cp+hp,eu="['’]",pp="["+Jt+"]",ea="["+na+"]",jt="["+Qo+"]",ta="\\d+",gp="["+Xo+"]",ra="["+Jo+"]",ia="[^"+Jt+na+ta+Xo+Jo+jo+"]",tu="\\ud83c[\\udffb-\\udfff]",vp="(?:"+jt+"|"+tu+")",ua="[^"+Jt+"]",ru="(?:\\ud83c[\\udde6-\\uddff]){2}",iu="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+jo+"]",fa="\\u200d",oa="(?:"+ra+"|"+ia+")",dp="(?:"+je+"|"+ia+")",aa="(?:"+eu+"(?:d|ll|m|re|s|t|ve))?",la="(?:"+eu+"(?:D|LL|M|RE|S|T|VE))?",sa=vp+"?",ca="["+ko+"]?",_p="(?:"+fa+"(?:"+[ua,ru,iu].join("|")+")"+ca+sa+")*",mp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ha=ca+sa+_p,wp="(?:"+[gp,ru,iu].join("|")+")"+ha,xp="(?:"+[ua+jt+"?",jt,ru,iu,pp].join("|")+")",bp=RegExp(eu,"g"),Sp=RegExp(jt,"g"),uu=RegExp(tu+"(?="+tu+")|"+xp+ha,"g"),Ap=RegExp([je+"?"+ra+"+"+aa+"(?="+[ea,je,"$"].join("|")+")",dp+"+"+la+"(?="+[ea,je+oa,"$"].join("|")+")",je+"?"+oa+"+"+aa,je+"+"+la,yp,mp,ta,wp].join("|"),"g"),Op=RegExp("["+fa+Jt+Qo+ko+"]"),Tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ip=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rp=-1,ln={};ln[Hi]=ln[Ki]=ln[Zi]=ln[Vi]=ln[Yi]=ln[Qi]=ln[Xi]=ln[Ji]=ln[ji]=!0,ln[le]=ln[xe]=ln[yt]=ln[se]=ln[Je]=ln[be]=ln[ie]=ln[xn]=ln[dn]=ln[Cn]=ln[Hn]=ln[an]=ln[_n]=ln[kn]=ln[mt]=!1;var on={};on[le]=on[xe]=on[yt]=on[Je]=on[se]=on[be]=on[Hi]=on[Ki]=on[Zi]=on[Vi]=on[Yi]=on[dn]=on[Cn]=on[Hn]=on[an]=on[_n]=on[kn]=on[Qt]=on[Qi]=on[Xi]=on[Ji]=on[ji]=!0,on[ie]=on[xn]=on[mt]=!1;var Ep={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Pp={"&":"&","<":"<",">":">",'"':""","'":"'"},Cp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Lp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qp=parseFloat,Mp=parseInt,pa=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,Fp=typeof self=="object"&&self&&self.Object===Object&&self,Sn=pa||Fp||Function("return this")(),fu=l&&!l.nodeType&&l,We=fu&&!0&&f&&!f.nodeType&&f,ga=We&&We.exports===fu,ou=ga&&pa.process,Kn=function(){try{var p=We&&We.require&&We.require("util").types;return p||ou&&ou.binding&&ou.binding("util")}catch{}}(),va=Kn&&Kn.isArrayBuffer,da=Kn&&Kn.isDate,_a=Kn&&Kn.isMap,ma=Kn&&Kn.isRegExp,ya=Kn&&Kn.isSet,wa=Kn&&Kn.isTypedArray;function Dn(p,S,x){switch(x.length){case 0:return p.call(S);case 1:return p.call(S,x[0]);case 2:return p.call(S,x[0],x[1]);case 3:return p.call(S,x[0],x[1],x[2])}return p.apply(S,x)}function Np(p,S,x,$){for(var K=-1,nn=p==null?0:p.length;++K-1}function au(p,S,x){for(var $=-1,K=p==null?0:p.length;++$-1;);return x}function Ra(p,S){for(var x=p.length;x--&&ke(S,p[x],0)>-1;);return x}function Kp(p,S){for(var x=p.length,$=0;x--;)p[x]===S&&++$;return $}var Zp=hu(Ep),Vp=hu(Pp);function Yp(p){return"\\"+Lp[p]}function Qp(p,S){return p==null?i:p[S]}function nt(p){return Op.test(p)}function Xp(p){return Tp.test(p)}function Jp(p){for(var S,x=[];!(S=p.next()).done;)x.push(S.value);return x}function du(p){var S=-1,x=Array(p.size);return p.forEach(function($,K){x[++S]=[K,$]}),x}function Ea(p,S){return function(x){return p(S(x))}}function Ie(p,S){for(var x=-1,$=p.length,K=0,nn=[];++x<$;){var mn=p[x];(mn===S||mn===b)&&(p[x]=b,nn[K++]=x)}return nn}function er(p){var S=-1,x=Array(p.size);return p.forEach(function($){x[++S]=$}),x}function jp(p){var S=-1,x=Array(p.size);return p.forEach(function($){x[++S]=[$,$]}),x}function kp(p,S,x){for(var $=x-1,K=p.length;++$-1}function Dg(n,e){var t=this.__data__,r=dr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ce.prototype.clear=Mg,ce.prototype.delete=Fg,ce.prototype.get=Ng,ce.prototype.has=$g,ce.prototype.set=Dg;function he(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Qn(n,e,t,r,u,a){var s,c=e&q,v=e&F,O=e&C;if(t&&(s=u?t(n,r,u,a):t(n)),s!==i)return s;if(!hn(n))return n;var T=Z(n);if(T){if(s=Gv(n),!c)return Ln(n,s)}else{var R=Tn(n),N=R==xn||R==Se;if(qe(n))return cl(n,c);if(R==Hn||R==le||N&&!u){if(s=v||N?{}:Pl(n),!c)return v?Cv(n,nv(s,n)):Pv(n,Ua(s,n))}else{if(!on[R])return u?n:{};s=zv(n,R,c)}}a||(a=new ee);var B=a.get(n);if(B)return B;a.set(n,s),us(n)?n.forEach(function(H){s.add(Qn(H,e,t,H,n,a))}):rs(n)&&n.forEach(function(H,X){s.set(X,Qn(H,e,t,X,n,a))});var z=O?v?Gu:Uu:v?Mn:bn,Y=T?i:z(n);return Zn(Y||n,function(H,X){Y&&(X=H,H=n[X]),Tt(s,X,Qn(H,e,t,X,n,a))}),s}function ev(n){var e=bn(n);return function(t){return Ga(t,n,e)}}function Ga(n,e,t){var r=t.length;if(n==null)return!r;for(n=fn(n);r--;){var u=t[r],a=e[u],s=n[u];if(s===i&&!(u in n)||!a(s))return!1}return!0}function za(n,e,t){if(typeof n!="function")throw new Vn(g);return qt(function(){n.apply(i,t)},e)}function It(n,e,t,r){var u=-1,a=kt,s=!0,c=n.length,v=[],O=e.length;if(!c)return v;t&&(e=sn(e,Wn(t))),r?(a=au,s=!1):e.length>=m&&(a=wt,s=!1,e=new Ge(e));n:for(;++uu?0:u+t),r=r===i||r>u?u:V(r),r<0&&(r+=u),r=t>r?0:os(r);t0&&t(c)?e>1?An(c,e-1,t,r,u):Te(u,c):r||(u[u.length]=c)}return u}var Su=_l(),Za=_l(!0);function ue(n,e){return n&&Su(n,e,bn)}function Au(n,e){return n&&Za(n,e,bn)}function mr(n,e){return Oe(e,function(t){return _e(n[t])})}function He(n,e){e=Ce(e,n);for(var t=0,r=e.length;n!=null&&te}function iv(n,e){return n!=null&&tn.call(n,e)}function uv(n,e){return n!=null&&e in fn(n)}function fv(n,e,t){return n>=On(e,t)&&n=120&&T.length>=120)?new Ge(s&&T):i}T=n[0];var R=-1,N=c[0];n:for(;++R-1;)c!==n&&lr.call(c,v,1),lr.call(n,v,1);return n}function rl(n,e){for(var t=n?e.length:0,r=t-1;t--;){var u=e[t];if(t==r||u!==a){var a=u;de(u)?lr.call(n,u,1):Mu(n,u)}}return n}function Cu(n,e){return n+hr($a()*(e-n+1))}function yv(n,e,t,r){for(var u=-1,a=yn(cr((e-n)/(t||1)),0),s=x(a);a--;)s[r?a:++u]=n,n+=t;return s}function Lu(n,e){var t="";if(!n||e<1||e>wn)return t;do e%2&&(t+=n),e=hr(e/2),e&&(n+=n);while(e);return t}function Q(n,e){return Qu(ql(n,e,Fn),n+"")}function wv(n){return Ba(ct(n))}function xv(n,e){var t=ct(n);return Er(t,ze(e,0,t.length))}function Pt(n,e,t,r){if(!hn(n))return n;e=Ce(e,n);for(var u=-1,a=e.length,s=a-1,c=n;c!=null&&++uu?0:u+e),t=t>u?u:t,t<0&&(t+=u),u=e>t?0:t-e>>>0,e>>>=0;for(var a=x(u);++r>>1,s=n[a];s!==null&&!Un(s)&&(t?s<=e:s=m){var O=e?null:Fv(n);if(O)return er(O);s=!1,u=wt,v=new Ge}else v=e?[]:c;n:for(;++r=r?n:Xn(n,e,t)}var sl=hg||function(n){return Sn.clearTimeout(n)};function cl(n,e){if(e)return n.slice();var t=n.length,r=La?La(t):new n.constructor(t);return n.copy(r),r}function Du(n){var e=new n.constructor(n.byteLength);return new or(e).set(new or(n)),e}function Tv(n,e){var t=e?Du(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Iv(n){var e=new n.constructor(n.source,Yo.exec(n));return e.lastIndex=n.lastIndex,e}function Rv(n){return Ot?fn(Ot.call(n)):{}}function hl(n,e){var t=e?Du(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function pl(n,e){if(n!==e){var t=n!==i,r=n===null,u=n===n,a=Un(n),s=e!==i,c=e===null,v=e===e,O=Un(e);if(!c&&!O&&!a&&n>e||a&&s&&v&&!c&&!O||r&&s&&v||!t&&v||!u)return 1;if(!r&&!a&&!O&&n=c)return v;var O=t[r];return v*(O=="desc"?-1:1)}}return n.index-e.index}function gl(n,e,t,r){for(var u=-1,a=n.length,s=t.length,c=-1,v=e.length,O=yn(a-s,0),T=x(v+O),R=!r;++c1?t[u-1]:i,s=u>2?t[2]:i;for(a=n.length>3&&typeof a=="function"?(u--,a):i,s&&Rn(t[0],t[1],s)&&(a=u<3?i:a,u=1),e=fn(e);++r-1?u[a?e[s]:s]:i}}function wl(n){return ve(function(e){var t=e.length,r=t,u=Yn.prototype.thru;for(n&&e.reverse();r--;){var a=e[r];if(typeof a!="function")throw new Vn(g);if(u&&!s&&Ir(a)=="wrapper")var s=new Yn([],!0)}for(r=s?r:t;++r1&&k.reverse(),T&&vc))return!1;var O=a.get(n),T=a.get(e);if(O&&T)return O==e&&T==n;var R=-1,N=!0,B=t&M?new Ge:i;for(a.set(n,e),a.set(e,n);++R1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Zh,`{ -/* [wrapped with `+e+`] */ -`)}function Kv(n){return Z(n)||Ve(n)||!!(Fa&&n&&n[Fa])}function de(n,e){var t=typeof n;return e=e??wn,!!e&&(t=="number"||t!="symbol"&&rp.test(n))&&n>-1&&n%1==0&&n0){if(++e>=Bi)return arguments[0]}else e=0;return n.apply(i,arguments)}}function Er(n,e){var t=-1,r=n.length,u=r-1;for(e=e===i?r:e;++t1?n[e-1]:i;return t=typeof t=="function"?(n.pop(),t):i,Kl(n,t)});function Zl(n){var e=o(n);return e.__chain__=!0,e}function t_(n,e){return e(n),n}function Pr(n,e){return e(n)}var r_=ve(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,u=function(a){return bu(a,n)};return e>1||this.__actions__.length||!(r instanceof j)||!de(t)?this.thru(u):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:Pr,args:[u],thisArg:i}),new Yn(r,this.__chain__).thru(function(a){return e&&!a.length&&a.push(i),a}))});function i_(){return Zl(this)}function u_(){return new Yn(this.value(),this.__chain__)}function f_(){this.__values__===i&&(this.__values__=fs(this.value()));var n=this.__index__>=this.__values__.length,e=n?i:this.__values__[this.__index__++];return{done:n,value:e}}function o_(){return this}function a_(n){for(var e,t=this;t instanceof vr;){var r=Wl(t);r.__index__=0,r.__values__=i,e?u.__wrapped__=r:e=r;var u=r;t=t.__wrapped__}return u.__wrapped__=n,e}function l_(){var n=this.__wrapped__;if(n instanceof j){var e=n;return this.__actions__.length&&(e=new j(this)),e=e.reverse(),e.__actions__.push({func:Pr,args:[Xu],thisArg:i}),new Yn(e,this.__chain__)}return this.thru(Xu)}function s_(){return al(this.__wrapped__,this.__actions__)}var c_=br(function(n,e,t){tn.call(n,t)?++n[t]:pe(n,t,1)});function h_(n,e,t){var r=Z(n)?xa:tv;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}function p_(n,e){var t=Z(n)?Oe:Ka;return t(n,G(e,3))}var g_=yl(Bl),v_=yl(Ul);function d_(n,e){return An(Cr(n,e),1)}function __(n,e){return An(Cr(n,e),Nn)}function m_(n,e,t){return t=t===i?1:V(t),An(Cr(n,e),t)}function Vl(n,e){var t=Z(n)?Zn:Ee;return t(n,G(e,3))}function Yl(n,e){var t=Z(n)?$p:Ha;return t(n,G(e,3))}var y_=br(function(n,e,t){tn.call(n,t)?n[t].push(e):pe(n,t,[e])});function w_(n,e,t,r){n=qn(n)?n:ct(n),t=t&&!r?V(t):0;var u=n.length;return t<0&&(t=yn(u+t,0)),Nr(n)?t<=u&&n.indexOf(e,t)>-1:!!u&&ke(n,e,t)>-1}var x_=Q(function(n,e,t){var r=-1,u=typeof e=="function",a=qn(n)?x(n.length):[];return Ee(n,function(s){a[++r]=u?Dn(e,s,t):Rt(s,e,t)}),a}),b_=br(function(n,e,t){pe(n,t,e)});function Cr(n,e){var t=Z(n)?sn:Ja;return t(n,G(e,3))}function S_(n,e,t,r){return n==null?[]:(Z(e)||(e=e==null?[]:[e]),t=r?i:t,Z(t)||(t=t==null?[]:[t]),el(n,e,t))}var A_=br(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function O_(n,e,t){var r=Z(n)?lu:Oa,u=arguments.length<3;return r(n,G(e,4),t,u,Ee)}function T_(n,e,t){var r=Z(n)?Dp:Oa,u=arguments.length<3;return r(n,G(e,4),t,u,Ha)}function I_(n,e){var t=Z(n)?Oe:Ka;return t(n,Mr(G(e,3)))}function R_(n){var e=Z(n)?Ba:wv;return e(n)}function E_(n,e,t){(t?Rn(n,e,t):e===i)?e=1:e=V(e);var r=Z(n)?Jg:xv;return r(n,e)}function P_(n){var e=Z(n)?jg:Sv;return e(n)}function C_(n){if(n==null)return 0;if(qn(n))return Nr(n)?et(n):n.length;var e=Tn(n);return e==dn||e==_n?n.size:Ru(n).length}function L_(n,e,t){var r=Z(n)?su:Av;return t&&Rn(n,e,t)&&(e=i),r(n,G(e,3))}var q_=Q(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Rn(n,e[0],e[1])?e=[]:t>2&&Rn(e[0],e[1],e[2])&&(e=[e[0]]),el(n,An(e,1),[])}),Lr=pg||function(){return Sn.Date.now()};function M_(n,e){if(typeof e!="function")throw new Vn(g);return n=V(n),function(){if(--n<1)return e.apply(this,arguments)}}function Ql(n,e,t){return e=t?i:e,e=n&&e==null?n.length:e,ge(n,J,i,i,i,i,e)}function Xl(n,e){var t;if(typeof e!="function")throw new Vn(g);return n=V(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=i),t}}var ju=Q(function(n,e,t){var r=I;if(t.length){var u=Ie(t,lt(ju));r|=W}return ge(n,r,e,t,u)}),Jl=Q(function(n,e,t){var r=I|P;if(t.length){var u=Ie(t,lt(Jl));r|=W}return ge(e,r,n,t,u)});function jl(n,e,t){e=t?i:e;var r=ge(n,A,i,i,i,i,i,e);return r.placeholder=jl.placeholder,r}function kl(n,e,t){e=t?i:e;var r=ge(n,E,i,i,i,i,i,e);return r.placeholder=kl.placeholder,r}function ns(n,e,t){var r,u,a,s,c,v,O=0,T=!1,R=!1,N=!0;if(typeof n!="function")throw new Vn(g);e=jn(e)||0,hn(t)&&(T=!!t.leading,R="maxWait"in t,a=R?yn(jn(t.maxWait)||0,e):a,N="trailing"in t?!!t.trailing:N);function B(vn){var re=r,ye=u;return r=u=i,O=vn,s=n.apply(ye,re),s}function z(vn){return O=vn,c=qt(X,e),T?B(vn):s}function Y(vn){var re=vn-v,ye=vn-O,ys=e-re;return R?On(ys,a-ye):ys}function H(vn){var re=vn-v,ye=vn-O;return v===i||re>=e||re<0||R&&ye>=a}function X(){var vn=Lr();if(H(vn))return k(vn);c=qt(X,Y(vn))}function k(vn){return c=i,N&&r?B(vn):(r=u=i,s)}function Gn(){c!==i&&sl(c),O=0,r=v=u=c=i}function En(){return c===i?s:k(Lr())}function zn(){var vn=Lr(),re=H(vn);if(r=arguments,u=this,v=vn,re){if(c===i)return z(v);if(R)return sl(c),c=qt(X,e),B(v)}return c===i&&(c=qt(X,e)),s}return zn.cancel=Gn,zn.flush=En,zn}var F_=Q(function(n,e){return za(n,1,e)}),N_=Q(function(n,e,t){return za(n,jn(e)||0,t)});function $_(n){return ge(n,Pn)}function qr(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Vn(g);var t=function(){var r=arguments,u=e?e.apply(this,r):r[0],a=t.cache;if(a.has(u))return a.get(u);var s=n.apply(this,r);return t.cache=a.set(u,s)||a,s};return t.cache=new(qr.Cache||he),t}qr.Cache=he;function Mr(n){if(typeof n!="function")throw new Vn(g);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function D_(n){return Xl(2,n)}var W_=Ov(function(n,e){e=e.length==1&&Z(e[0])?sn(e[0],Wn(G())):sn(An(e,1),Wn(G()));var t=e.length;return Q(function(r){for(var u=-1,a=On(r.length,t);++u=e}),Ve=Ya(function(){return arguments}())?Ya:function(n){return pn(n)&&tn.call(n,"callee")&&!Ma.call(n,"callee")},Z=x.isArray,n0=va?Wn(va):av;function qn(n){return n!=null&&Fr(n.length)&&!_e(n)}function gn(n){return pn(n)&&qn(n)}function e0(n){return n===!0||n===!1||pn(n)&&In(n)==se}var qe=vg||cf,t0=da?Wn(da):lv;function r0(n){return pn(n)&&n.nodeType===1&&!Mt(n)}function i0(n){if(n==null)return!0;if(qn(n)&&(Z(n)||typeof n=="string"||typeof n.splice=="function"||qe(n)||st(n)||Ve(n)))return!n.length;var e=Tn(n);if(e==dn||e==_n)return!n.size;if(Lt(n))return!Ru(n).length;for(var t in n)if(tn.call(n,t))return!1;return!0}function u0(n,e){return Et(n,e)}function f0(n,e,t){t=typeof t=="function"?t:i;var r=t?t(n,e):i;return r===i?Et(n,e,i,t):!!r}function nf(n){if(!pn(n))return!1;var e=In(n);return e==ie||e==un||typeof n.message=="string"&&typeof n.name=="string"&&!Mt(n)}function o0(n){return typeof n=="number"&&Na(n)}function _e(n){if(!hn(n))return!1;var e=In(n);return e==xn||e==Se||e==dt||e==Yt}function ts(n){return typeof n=="number"&&n==V(n)}function Fr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=wn}function hn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function pn(n){return n!=null&&typeof n=="object"}var rs=_a?Wn(_a):cv;function a0(n,e){return n===e||Iu(n,e,Hu(e))}function l0(n,e,t){return t=typeof t=="function"?t:i,Iu(n,e,Hu(e),t)}function s0(n){return is(n)&&n!=+n}function c0(n){if(Yv(n))throw new K(d);return Qa(n)}function h0(n){return n===null}function p0(n){return n==null}function is(n){return typeof n=="number"||pn(n)&&In(n)==Cn}function Mt(n){if(!pn(n)||In(n)!=Hn)return!1;var e=ar(n);if(e===null)return!0;var t=tn.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&ir.call(t)==lg}var ef=ma?Wn(ma):hv;function g0(n){return ts(n)&&n>=-wn&&n<=wn}var us=ya?Wn(ya):pv;function Nr(n){return typeof n=="string"||!Z(n)&&pn(n)&&In(n)==kn}function Un(n){return typeof n=="symbol"||pn(n)&&In(n)==Qt}var st=wa?Wn(wa):gv;function v0(n){return n===i}function d0(n){return pn(n)&&Tn(n)==mt}function _0(n){return pn(n)&&In(n)==qh}var m0=Tr(Eu),y0=Tr(function(n,e){return n<=e});function fs(n){if(!n)return[];if(qn(n))return Nr(n)?ne(n):Ln(n);if(xt&&n[xt])return Jp(n[xt]());var e=Tn(n),t=e==dn?du:e==_n?er:ct;return t(n)}function me(n){if(!n)return n===0?n:0;if(n=jn(n),n===Nn||n===-Nn){var e=n<0?-1:1;return e*De}return n===n?n:0}function V(n){var e=me(n),t=e%1;return e===e?t?e-t:e:0}function os(n){return n?ze(V(n),0,$n):0}function jn(n){if(typeof n=="number")return n;if(Un(n))return ae;if(hn(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=hn(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Ta(n);var t=np.test(n);return t||tp.test(n)?Mp(n.slice(2),t?2:8):kh.test(n)?ae:+n}function as(n){return fe(n,Mn(n))}function w0(n){return n?ze(V(n),-wn,wn):n===0?n:0}function en(n){return n==null?"":Bn(n)}var x0=ot(function(n,e){if(Lt(e)||qn(e)){fe(e,bn(e),n);return}for(var t in e)tn.call(e,t)&&Tt(n,t,e[t])}),ls=ot(function(n,e){fe(e,Mn(e),n)}),$r=ot(function(n,e,t,r){fe(e,Mn(e),n,r)}),b0=ot(function(n,e,t,r){fe(e,bn(e),n,r)}),S0=ve(bu);function A0(n,e){var t=ft(n);return e==null?t:Ua(t,e)}var O0=Q(function(n,e){n=fn(n);var t=-1,r=e.length,u=r>2?e[2]:i;for(u&&Rn(e[0],e[1],u)&&(r=1);++t1),a}),fe(n,Gu(n),t),r&&(t=Qn(t,q|F|C,Nv));for(var u=e.length;u--;)Mu(t,e[u]);return t});function z0(n,e){return cs(n,Mr(G(e)))}var H0=ve(function(n,e){return n==null?{}:_v(n,e)});function cs(n,e){if(n==null)return{};var t=sn(Gu(n),function(r){return[r]});return e=G(e),tl(n,t,function(r,u){return e(r,u[0])})}function K0(n,e,t){e=Ce(e,n);var r=-1,u=e.length;for(u||(u=1,n=i);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var u=$a();return On(n+u*(e-n+qp("1e-"+((u+"").length-1))),e)}return Cu(n,e)}var t1=at(function(n,e,t){return e=e.toLowerCase(),n+(t?gs(e):e)});function gs(n){return uf(en(n).toLowerCase())}function vs(n){return n=en(n),n&&n.replace(ip,Zp).replace(Sp,"")}function r1(n,e,t){n=en(n),e=Bn(e);var r=n.length;t=t===i?r:ze(V(t),0,r);var u=t;return t-=e.length,t>=0&&n.slice(t,u)==e}function i1(n){return n=en(n),n&&Dh.test(n)?n.replace(Zo,Vp):n}function u1(n){return n=en(n),n&&Hh.test(n)?n.replace(ki,"\\$&"):n}var f1=at(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),o1=at(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),a1=ml("toLowerCase");function l1(n,e,t){n=en(n),e=V(e);var r=e?et(n):0;if(!e||r>=e)return n;var u=(e-r)/2;return Or(hr(u),t)+n+Or(cr(u),t)}function s1(n,e,t){n=en(n),e=V(e);var r=e?et(n):0;return e&&r>>0,t?(n=en(n),n&&(typeof e=="string"||e!=null&&!ef(e))&&(e=Bn(e),!e&&nt(n))?Le(ne(n),0,t):n.split(e,t)):[]}var _1=at(function(n,e,t){return n+(t?" ":"")+uf(e)});function m1(n,e,t){return n=en(n),t=t==null?0:ze(V(t),0,n.length),e=Bn(e),n.slice(t,t+e.length)==e}function y1(n,e,t){var r=o.templateSettings;t&&Rn(n,e,t)&&(e=i),n=en(n),e=$r({},e,r,Ol);var u=$r({},e.imports,r.imports,Ol),a=bn(u),s=vu(u,a),c,v,O=0,T=e.interpolate||Xt,R="__p += '",N=_u((e.escape||Xt).source+"|"+T.source+"|"+(T===Vo?jh:Xt).source+"|"+(e.evaluate||Xt).source+"|$","g"),B="//# sourceURL="+(tn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rp+"]")+` -`;n.replace(N,function(H,X,k,Gn,En,zn){return k||(k=Gn),R+=n.slice(O,zn).replace(up,Yp),X&&(c=!0,R+=`' + -__e(`+X+`) + -'`),En&&(v=!0,R+=`'; -`+En+`; -__p += '`),k&&(R+=`' + -((__t = (`+k+`)) == null ? '' : __t) + -'`),O=zn+H.length,H}),R+=`'; -`;var z=tn.call(e,"variable")&&e.variable;if(!z)R=`with (obj) { -`+R+` -} -`;else if(Xh.test(z))throw new K(y);R=(v?R.replace(Mh,""):R).replace(Fh,"$1").replace(Nh,"$1;"),R="function("+(z||"obj")+`) { -`+(z?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+R+`return __p -}`;var Y=_s(function(){return nn(a,B+"return "+R).apply(i,s)});if(Y.source=R,nf(Y))throw Y;return Y}function w1(n){return en(n).toLowerCase()}function x1(n){return en(n).toUpperCase()}function b1(n,e,t){if(n=en(n),n&&(t||e===i))return Ta(n);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=ne(e),a=Ia(r,u),s=Ra(r,u)+1;return Le(r,a,s).join("")}function S1(n,e,t){if(n=en(n),n&&(t||e===i))return n.slice(0,Pa(n)+1);if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ra(r,ne(e))+1;return Le(r,0,u).join("")}function A1(n,e,t){if(n=en(n),n&&(t||e===i))return n.replace(nu,"");if(!n||!(e=Bn(e)))return n;var r=ne(n),u=Ia(r,ne(e));return Le(r,u).join("")}function O1(n,e){var t=gt,r=Ht;if(hn(e)){var u="separator"in e?e.separator:u;t="length"in e?V(e.length):t,r="omission"in e?Bn(e.omission):r}n=en(n);var a=n.length;if(nt(n)){var s=ne(n);a=s.length}if(t>=a)return n;var c=t-et(r);if(c<1)return r;var v=s?Le(s,0,c).join(""):n.slice(0,c);if(u===i)return v+r;if(s&&(c+=v.length-c),ef(u)){if(n.slice(c).search(u)){var O,T=v;for(u.global||(u=_u(u.source,en(Yo.exec(u))+"g")),u.lastIndex=0;O=u.exec(T);)var R=O.index;v=v.slice(0,R===i?c:R)}}else if(n.indexOf(Bn(u),c)!=c){var N=v.lastIndexOf(u);N>-1&&(v=v.slice(0,N))}return v+r}function T1(n){return n=en(n),n&&$h.test(n)?n.replace(Ko,eg):n}var I1=at(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),uf=ml("toUpperCase");function ds(n,e,t){return n=en(n),e=t?i:e,e===i?Xp(n)?ig(n):Up(n):n.match(e)||[]}var _s=Q(function(n,e){try{return Dn(n,i,e)}catch(t){return nf(t)?t:new K(t)}}),R1=ve(function(n,e){return Zn(e,function(t){t=oe(t),pe(n,t,ju(n[t],n))}),n});function E1(n){var e=n==null?0:n.length,t=G();return n=e?sn(n,function(r){if(typeof r[1]!="function")throw new Vn(g);return[t(r[0]),r[1]]}):[],Q(function(r){for(var u=-1;++uwn)return[];var t=$n,r=On(n,$n);e=G(e),n-=$n;for(var u=gu(r,e);++t0||e<0)?new j(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==i&&(e=V(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},j.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},j.prototype.toArray=function(){return this.take($n)},ue(j.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),u=o[r?"take"+(e=="last"?"Right":""):e],a=r||/^find/.test(e);u&&(o.prototype[e]=function(){var s=this.__wrapped__,c=r?[1]:arguments,v=s instanceof j,O=c[0],T=v||Z(s),R=function(X){var k=u.apply(o,Te([X],c));return r&&N?k[0]:k};T&&t&&typeof O=="function"&&O.length!=1&&(v=T=!1);var N=this.__chain__,B=!!this.__actions__.length,z=a&&!N,Y=v&&!B;if(!a&&T){s=Y?s:new j(this);var H=n.apply(s,c);return H.__actions__.push({func:Pr,args:[R],thisArg:i}),new Yn(H,N)}return z&&Y?n.apply(this,c):(H=this.thru(R),z?r?H.value()[0]:H.value():H)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(n){var e=tr[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);o.prototype[n]=function(){var u=arguments;if(r&&!this.__chain__){var a=this.value();return e.apply(Z(a)?a:[],u)}return this[t](function(s){return e.apply(Z(s)?s:[],u)})}}),ue(j.prototype,function(n,e){var t=o[e];if(t){var r=t.name+"";tn.call(ut,r)||(ut[r]=[]),ut[r].push({name:e,func:t})}}),ut[Sr(i,P).name]=[{name:"wrapper",func:i}],j.prototype.clone=Tg,j.prototype.reverse=Ig,j.prototype.value=Rg,o.prototype.at=r_,o.prototype.chain=i_,o.prototype.commit=u_,o.prototype.next=f_,o.prototype.plant=a_,o.prototype.reverse=l_,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=s_,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=o_),o},tt=ug();We?((We.exports=tt)._=tt,fu._=tt):Sn._=tt}).call(Ye)}(Ft,Ft.exports);var cn=Ft.exports;function Dr(f={},l){const i={};for(const h of Object.keys(f))i[h]=h==="$"?f[h]:l(f[h],h,f);return Object.setPrototypeOf(i,f)}var xs=function(){},bs=xs(),Me=function(f){return f!==bs&&f!==null},Ss=Me,As=Array.prototype.forEach,Os=Object.create,Ts=function(f,l){var i;for(i in f)l[i]=f[i]},hf=function(f){var l=Os(null);return As.call(arguments,function(i){Ss(i)&&Ts(Object(i),l)}),l},Is=function(){var f=Math.sign;return typeof f!="function"?!1:f(10)===1&&f(-20)===-1},Wr,pf;function Rs(){return pf||(pf=1,Wr=function(f){return f=Number(f),isNaN(f)||f===0?f:f>0?1:-1}),Wr}var Es=Is()?Math.sign:Rs(),Ps=Es,Cs=Math.abs,Ls=Math.floor,qs=function(f){return isNaN(f)?0:(f=Number(f),f===0||!isFinite(f)?f:Ps(f)*Ls(Cs(f)))},Ms=qs,Fs=Math.max,Fe=function(f){return Fs(0,Ms(f))},Ns=Fe,gf=function(f,l,i){var h;return isNaN(f)?(h=l,h>=0?i&&h?h-1:h:1):f===!1?!1:Ns(f)},we=function(f){if(typeof f!="function")throw new TypeError(f+" is not a function");return f},$s=Me,Qe=function(f){if(!$s(f))throw new TypeError("Cannot use null or undefined");return f},Ds=we,Ws=Qe,Bs=Function.prototype.bind,vf=Function.prototype.call,Us=Object.keys,Gs=Object.prototype.propertyIsEnumerable,zs=function(f,l){return function(i,h){var m,d=arguments[2],g=arguments[3];return i=Object(Ws(i)),Ds(h),m=Us(i),g&&m.sort(typeof g=="function"?Bs.call(g,i):void 0),typeof f!="function"&&(f=m[f]),vf.call(f,m,function(y,w){return Gs.call(i,y)?vf.call(h,d,i[y],y,i,w):l})}},Nt=zs("forEach"),Ne={},df={exports:{}},Hs=function(){var f=Object.assign,l;return typeof f!="function"?!1:(l={foo:"raz"},f(l,{bar:"dwa"},{trzy:"trzy"}),l.foo+l.bar+l.trzy==="razdwatrzy")},Br,_f;function Ks(){return _f||(_f=1,Br=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Br}var Ur,mf;function Zs(){if(mf)return Ur;mf=1;var f=Me,l=Object.keys;return Ur=function(i){return l(f(i)?Object(i):i)},Ur}var Gr,yf;function Vs(){return yf||(yf=1,Gr=Ks()()?Object.keys:Zs()),Gr}var zr,wf;function Ys(){if(wf)return zr;wf=1;var f=Vs(),l=Qe,i=Math.max;return zr=function(h,m){var d,g,y=i(arguments.length,2),w;for(h=Object(l(h)),w=function(_){try{h[_]=m[_]}catch(b){d||(d=b)}},g=1;g-1},Yr}var pc=cc()?String.prototype.contains:hc(),$t=Cf,qf=sc,Mf=xf,Ff=hf,ht=pc,gc=Pf.exports=function(f,l){var i,h,m,d,g;return arguments.length<2||typeof f!="string"?(d=l,l=f,f=null):d=arguments[2],$t(f)?(i=ht.call(f,"c"),h=ht.call(f,"e"),m=ht.call(f,"w")):(i=m=!0,h=!1),g={value:l,configurable:i,enumerable:h,writable:m},d?Mf(Ff(d),g):g};gc.gs=function(f,l,i){var h,m,d,g;return typeof f!="string"?(d=i,i=l,l=f,f=null):d=arguments[3],$t(l)?qf(l)?$t(i)?qf(i)||(d=i,i=void 0):i=void 0:(d=l,l=i=void 0):l=void 0,$t(f)?(h=ht.call(f,"c"),m=ht.call(f,"e")):(h=!0,m=!1),g={get:l,set:i,configurable:h,enumerable:m},d?Mf(Ff(d),g):g};var $e=Pf.exports,Qr={exports:{}};(function(f,l){var i=$e,h=we,m=Function.prototype.apply,d=Function.prototype.call,g=Object.create,y=Object.defineProperty,w=Object.defineProperties,_=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0},q,F,C,D,M,I,P;q=function(L,A){var E;return h(A),_.call(this,"__ee__")?E=this.__ee__:(E=b.value=g(null),y(this,"__ee__",b),b.value=null),E[L]?typeof E[L]=="object"?E[L].push(A):E[L]=[E[L],A]:E[L]=A,this},F=function(L,A){var E,W;return h(A),W=this,q.call(this,L,E=function(){C.call(W,L,E),m.call(A,this,arguments)}),E.__eeOnceListener__=A,this},C=function(L,A){var E,W,U,J;if(h(A),!_.call(this,"__ee__"))return this;if(E=this.__ee__,!E[L])return this;if(W=E[L],typeof W=="object")for(J=0;U=W[J];++J)(U===A||U.__eeOnceListener__===A)&&(W.length===2?E[L]=W[J?0:1]:W.splice(J,1));else(W===A||W.__eeOnceListener__===A)&&delete E[L];return this},D=function(L){var A,E,W,U,J;if(_.call(this,"__ee__")&&(U=this.__ee__[L],!!U))if(typeof U=="object"){for(E=arguments.length,J=new Array(E-1),A=1;A=55296&&E<=56319&&(rn+=F[++I])),rn=C?_.call(C,D,rn,P):rn,M?(b.value=rn,q(L,P,b)):L[P]=rn,++P;A=P}}if(A===void 0)for(A=h(F.length),M&&(L=new M(A)),I=0;I=0?b=g(b):b=l(this.length)-g(d(b)),w=b;w<_;++w)if(m.call(this,w)&&(q=this[w],f(q)))return w;return-1},xi}var Si,so;function eh(){if(so)return Si;so=1;var f=bi(),l=Object.create;return Si=function(){var i=0,h=[],m=l(null);return{get:function(d){var g=0,y=h,w,_=d.length;if(_===0)return y[_]||null;if(y=y[_]){for(;g<_-1;){if(w=f.call(y[0],d[g]),w===-1)return null;y=y[1][w],++g}return w=f.call(y[0],d[g]),w===-1?null:y[1][w]||null}return null},set:function(d){var g=0,y=h,w,_=d.length;if(_===0)y[_]=++i;else{for(y[_]||(y[_]=[[],[]]),y=y[_];g<_-1;)w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1,y[1].push([[],[]])),y=y[1][w],++g;w=f.call(y[0],d[g]),w===-1&&(w=y[0].push(d[g])-1),y[1][w]=++i}return m[i]=d,i},delete:function(d){var g=0,y=h,w,_=m[d],b=_.length,q=[];if(b===0)delete y[b];else if(y=y[b]){for(;g"}},qi}var Mi,To;function lh(){if(To)return Mi;To=1;var f=ah(),l=/[\n\r\u2028\u2029]/g;return Mi=function(i){var h=f(i);return h.length>100&&(h=h.slice(0,99)+"…"),h=h.replace(l,function(m){return JSON.stringify(m).slice(1,-1)}),h},Mi}var Gt={exports:{}},Io;function Ro(){if(Io)return Gt.exports;Io=1,Gt.exports=f,Gt.exports.default=f;function f(l){return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"}return Gt.exports}var Eo;function sh(){if(Eo)return yo;Eo=1;var f=vo(),l=uh(),i=oh(),h=lh(),m=Ro(),d=Ri(),g=Object.create,y=l("then","then:finally","done","done:finally");return Ne.promise=function(w,_){var b=g(null),q=g(null),F=g(null);if(w===!0)w=null;else if(w=i(w),!y[w])throw new TypeError("'"+h(w)+"' is not valid promise mode");_.on("set",function(C,D,M){var I=!1;if(!m(M)){q[C]=M,_.emit("setasync",C,1);return}b[C]=1,F[C]=M;var P=function(W){var U=b[C];if(I)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) -Consider to rely on 'then' or 'done' mode instead.`);U&&(delete b[C],q[C]=W,_.emit("setasync",C,U))},L=function(){I=!0,b[C]&&(delete b[C],delete F[C],_.delete(C))},A=w;if(A||(A="then"),A==="then"){var E=function(){d(L)};M=M.then(function(W){d(P.bind(this,W))},E),typeof M.finally=="function"&&M.finally(E)}else if(A==="done"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");M.done(P,L)}else if(A==="done:finally"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof M.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");M.done(P),M.finally(L)}}),_.on("get",function(C,D,M){var I;if(b[C]){++b[C];return}I=F[C];var P=function(){_.emit("getasync",C,D,M)};m(I)?typeof I.done=="function"?I.done(P):I.then(function(){d(P)}):P()}),_.on("delete",function(C){if(delete F[C],b[C]){delete b[C];return}if(hasOwnProperty.call(q,C)){var D=q[C];delete q[C],_.emit("deleteasync",C,[D])}}),_.on("clear",function(){var C=q;q=g(null),b=g(null),F=g(null),_.emit("clearasync",f(C,function(D){return[D]}))})},yo}var Po={},Co;function ch(){if(Co)return Po;Co=1;var f=we,l=Nt,i=Ne,h=Function.prototype.apply;return i.dispose=function(m,d,g){var y;if(f(m),g.async&&i.async||g.promise&&i.promise){d.on("deleteasync",y=function(w,_){h.call(m,null,_)}),d.on("clearasync",function(w){l(w,function(_,b){y(b,_)})});return}d.on("delete",y=function(w,_){m(_)}),d.on("clear",function(w){l(w,function(_,b){y(b,_)})})},Po}var Lo={},Fi,qo;function hh(){return qo||(qo=1,Fi=2147483647),Fi}var Ni,Mo;function ph(){if(Mo)return Ni;Mo=1;var f=Fe,l=hh();return Ni=function(i){if(i=f(i),i>l)throw new TypeError(i+" exceeds maximum possible timeout");return i},Ni}var Fo;function gh(){if(Fo)return Lo;Fo=1;var f=pi(),l=Nt,i=Ri(),h=Ro(),m=ph(),d=Ne,g=Function.prototype,y=Math.max,w=Math.min,_=Object.create;return d.maxAge=function(b,q,F){var C,D,M,I;b=m(b),b&&(C=_(null),D=F.async&&d.async||F.promise&&d.promise?"async":"",q.on("set"+D,function(P){C[P]=setTimeout(function(){q.delete(P)},b),typeof C[P].unref=="function"&&C[P].unref(),I&&(I[P]&&I[P]!=="nextTick"&&clearTimeout(I[P]),I[P]=setTimeout(function(){delete I[P]},M),typeof I[P].unref=="function"&&I[P].unref())}),q.on("delete"+D,function(P){clearTimeout(C[P]),delete C[P],I&&(I[P]!=="nextTick"&&clearTimeout(I[P]),delete I[P])}),F.preFetch&&(F.preFetch===!0||isNaN(F.preFetch)?M=.333:M=y(w(Number(F.preFetch),1),0),M&&(I={},M=(1-M)*b,q.on("get"+D,function(P,L,A){I[P]||(I[P]="nextTick",i(function(){var E;I[P]==="nextTick"&&(delete I[P],q.delete(P),F.async&&(L=f(L),L.push(g)),E=q.memoized.apply(A,L),F.promise&&h(E)&&(typeof E.done=="function"?E.done(g,g):E.then(g,g)))}))}))),q.on("clear"+D,function(){l(C,function(P){clearTimeout(P)}),C={},I&&(l(I,function(P){P!=="nextTick"&&clearTimeout(P)}),I={})}))},Lo}var No={},$i,$o;function vh(){if($o)return $i;$o=1;var f=Fe,l=Object.create,i=Object.prototype.hasOwnProperty;return $i=function(h){var m=0,d=1,g=l(null),y=l(null),w=0,_;return h=f(h),{hit:function(b){var q=y[b],F=++w;if(g[F]=b,y[b]=F,!q)return++m,m<=h?void 0:(b=g[d],_(b),b);if(delete g[q],d===q)for(;!i.call(g,++d););},delete:_=function(b){var q=y[b];if(q&&(delete g[q],delete y[b],--m,d===q)){if(!m){w=0,d=1;return}for(;!i.call(g,++d););}},clear:function(){m=0,d=1,g=l(null),y=l(null),w=0}}},$i}var Do;function dh(){if(Do)return No;Do=1;var f=Fe,l=vh(),i=Ne;return i.max=function(h,m,d){var g,y,w;h=f(h),h&&(y=l(h),g=d.async&&i.async||d.promise&&i.promise?"async":"",m.on("set"+g,w=function(_){_=y.hit(_),_!==void 0&&m.delete(_)}),m.on("get"+g,w),m.on("delete"+g,y.delete),m.on("clear"+g,y.clear))},No}var Wo={},Bo;function _h(){if(Bo)return Wo;Bo=1;var f=$e,l=Ne,i=Object.create,h=Object.defineProperties;return l.refCounter=function(m,d,g){var y,w;y=i(null),w=g.async&&l.async||g.promise&&l.promise?"async":"",d.on("set"+w,function(_,b){y[_]=b||1}),d.on("get"+w,function(_){++y[_]}),d.on("delete"+w,function(_){delete y[_]}),d.on("clear"+w,function(){y={}}),h(d.memoized,{deleteRef:f(function(){var _=d.get(arguments);return _===null||!y[_]?null:--y[_]?!1:(d.delete(_),!0)}),getRefCount:f(function(){var _=d.get(arguments);return _===null||!y[_]?0:y[_]})})},Wo}var mh=hf,yh=gf,wh=Qc,xh=function(f){var l=mh(arguments[1]),i;return l.normalizer||(i=l.length=yh(l.length,f.length,l.async),i!==0&&(l.primitive?i===!1?l.normalizer=Xc():i>1&&(l.normalizer=Jc()(i)):i===!1?l.normalizer=eh()():i===1?l.normalizer=th()():l.normalizer=rh()(i))),l.async&&ih(),l.promise&&sh(),l.dispose&&ch(),l.maxAge&&gh(),l.max&&dh(),l.refCounter&&_h(),wh(f,l)},bh=ws(xh),Uo={exports:{}};(function(f,l){(function(i,h){f.exports=h()})(Ye,function(){return function(i){function h(d){if(m[d])return m[d].exports;var g=m[d]={i:d,l:!1,exports:{}};return i[d].call(g.exports,g,g.exports,h),g.l=!0,g.exports}var m={};return h.m=i,h.c=m,h.d=function(d,g,y){h.o(d,g)||Object.defineProperty(d,g,{configurable:!1,enumerable:!0,get:y})},h.n=function(d){var g=d&&d.__esModule?function(){return d.default}:function(){return d};return h.d(g,"a",g),g},h.o=function(d,g){return Object.prototype.hasOwnProperty.call(d,g)},h.p="",h(h.s=1)}([function(i,h,m){function d(y){var w=y===void 0?{}:y,_=w.ESCAPE,b=_===void 0?/^\\/:_,q=w.VARIABLE_START,F=q===void 0?/^\${\s*/:q,C=w.VARIABLE_END,D=C===void 0?/^\s*}/:C,M=w.PIPE_START,I=M===void 0?/^\s*\|\s*/:M,P=w.PIPE_PARAMETER_START,L=P===void 0?/^\s*:\s*/:P,A=w.QUOTED_STRING,E=A===void 0?h.DEFAULT_QUOTED_STRING_REGEX:A,W=w.QUOTED_STRING_TEST,U=W===void 0?null:W,J=w.QUOTED_STRING_GET_AND_ADVANCE,rn=J===void 0?null:J,Pn=w.QUOTED_STRING_IN_PARAMETER_TEST,gt=Pn===void 0?null:Pn,Ht=w.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,Bi=Ht===void 0?null:Ht,Kt=U||function(Nn){return E.test(Nn)},vt=rn||g(E),Ui=gt||function(Nn){return E.test(Nn)},Gi=Bi||g(E);return function(Nn){function wn(an){an===void 0&&(an=1),un=un.substr(an)}function De(an){an===void 0&&(an=/^/),wn(un.match(an)[0].length)}function ae(){var an;return De(b),an=un.length>0?un[0]:"",wn(),an}function $n(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;dn={name:"",pipes:[]},Hn=!kn}function zi(){ie.variables.push(dn),$n({isNull:!0})}function Zt(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Cn={name:"",parameters:[]},_t=!kn}function Vt(){dn.pipes.push(Cn),Zt({isNull:!0})}function le(an){var _n=(an===void 0?{}:an).isNull,kn=_n!==void 0&&_n;Ae="",Yt=!kn}function xe(){Cn.parameters.push(Ae),le({isNull:!0})}function dt(){return!!D.test(un)&&(De(D),xn>=3&&xe(),xn>=2&&Vt(),xn>=1&&zi(),xn=0,!0)}function se(){return!!I.test(un)&&(De(I),xn>=3&&xe(),xn>=2&&Vt(),xn>=1&&Zt(),xn=2,!0)}function be(){return!!L.test(un)&&(De(L),xn>=3&&xe(),xn>=2&&le(),xn=3,!0)}for(var un=Nn,ie={literals:[],variables:[]},xn=0,Se="",dn={name:"",pipes:[]},Cn={name:"",parameters:[]},Ae="",Hn=!1,_t=!1,Yt=!1;un&&un.length>0;)switch(xn){case 0:if(b.test(un)){Se+=ae();continue}if(F.test(un)){xn=1,$n(),ie.literals.push(Se),Se="",De(F);continue}Se+=un[0],wn();break;case 1:if(b.test(un)){dn.name+=ae();continue}if(dt()||se())continue;if(Kt(un)){dn.name+=vt(un,wn);continue}dn.name+=un[0],wn();break;case 2:if(b.test(un)){Cn.name+=ae();continue}if(dt()||be()||se())continue;if(Kt(un)){Cn.name+=vt(un,wn);continue}Cn.name+=un[0],wn();break;case 3:if(b.test(un)){Ae+=ae();continue}if(dt()||be()||se())continue;if(Ui(un)){Ae+=Gi(un,wn);continue}Ae+=un[0],wn()}return Yt&&Cn.parameters.push(Ae),_t&&dn.pipes.push(Cn),Hn&&ie.variables.push(dn),ie.literals.push(Se),ie}}function g(y){return function(w,_){var b=w.match(y);return _(b[0].length),b.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(h,"__esModule",{value:!0}),h.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,h.parseStringTemplateGenerator=d,h.parseStringTemplate=d(),h.getQuotedStringAndAdvanceForRegex=g},function(i,h,m){i.exports=m(2)},function(i,h,m){function d(g){for(var y in g)h.hasOwnProperty(y)||(h[y]=g[y])}Object.defineProperty(h,"__esModule",{value:!0}),d(m(0)),d(m(3))},function(i,h,m){function d(b){return function(q){return b.hasOwnProperty(q)?b[q]:q.split(".").reduce(function(F,C){return F.hasOwnProperty(C)?F[C]:""},b)}}function g(b,q,F,C){C===void 0&&(C=d(q));var D=C(b.name);return b.pipes.reduce(function(M,I){return F.hasOwnProperty(I.name)?F[I.name](M,I.parameters):M},D??"")}function y(b,q,F,C){return C===void 0&&(C=d(q)),b.literals.length===0?"":b.literals.slice(1).reduce(function(D,M,I){return""+D+g(b.variables[I],q,F,C)+M},b.literals[0])}function w(b,q,F){return y(_.parseStringTemplate(b),q,F)}Object.defineProperty(h,"__esModule",{value:!0});var _=m(0);h.evaluateParsedString=y,h.evaluateStringTemplate=w}])})})(Uo);var Go=Uo.exports;const zo=f=>{const l=Function("$",`return ${f};`);return i=>l(new Proxy(zt(i),{get(h,m){return typeof(h==null?void 0:h[m])=="function"?h[m]({}):h==null?void 0:h[m]}}))},Sh=/^\{\{\s*/,Ah=/^\s*\}\}/,Di=/\b\B/,Oh=Go.parseStringTemplateGenerator({VARIABLE_START:Sh,VARIABLE_END:Ah,PIPE_START:Di,PIPE_PARAMETER_START:Di,QUOTED_STRING:Di}),Th=bh(f=>{const l=Oh(f);return cn.join(l.literals,"")?i=>Go.evaluateParsedString(l,{},{},h=>zo(h)(i)):zo(l.variables[0].name)},{primitive:!0});function Xe(f){switch(f==null?void 0:f.constructor){case Array:{const l=cn.map(f,Xe);return i=>cn.map(l,h=>h(i))}case Object:{const l=cn.mapValues(f,Xe);return i=>cn.mapValues(l,h=>h(i))}case String:return Th(f);default:return()=>f}}function zt(f={}){return Dr(f,l=>cn.isFunction(l)?l:Xe(l))}function Ih(f={}){return new Proxy(f,{get:(l,i)=>typeof l[i]=="function"?l[i]:()=>l[i]})}function Wi(f,l){return Object.setPrototypeOf(Dr(l,i=>h=>i(f)),f)}function Rh(f){const{$for:l,...i}=f;if(l){const{$let:h="i",$from:m=0,$to:d=1,$step:g=1}=l,y=Xe(m),w=Xe(d),_=Xe(g);return(b={})=>cn.range(y(b),w(b),_(b)).map(q=>{const F=Wi(b,zt({[h]:q}));return Wi(F,zt(i))})}else return(h={})=>[Wi(h,zt(i))]}function Eh(f,l){const i=d=>{const{$:g}=d,y=Rh(d);return g in l?w=>cn.flatMap(y(w),_=>cn.flatMap(h[g],b=>b(_))):w=>cn.map(y(w),_=>Object.setPrototypeOf(Dr(_,b=>b(_)),null))},h=cn.mapValues(l,d=>cn.map(d,i)),m=cn.flatMap(f,i);return d=>cn.flatMap(m,g=>g(d))}const Ph=f=>f==null,Ho=f=>f.display!=="transient";function Ch({trace:f,context:l,view:i="main",from:h=0,to:m=(d=>(d=f==null?void 0:f.events)==null?void 0:d.length)()??0}){var q,F,C,D;const g=Eh(((C=(F=(q=f==null?void 0:f.render)==null?void 0:q.views)==null?void 0:F[i])==null?void 0:C.components)??[],((D=f==null?void 0:f.render)==null?void 0:D.components)??{}),y=M=>M&&Object.hasOwn(M,"alpha")?M.alpha>0:!0,w=M=>I=>({component:I,meta:{source:"trace",step:M,info:I.$info}}),_=cn.chain(f==null?void 0:f.events).map((M,I)=>({step:I,id:M.id,data:M,pId:M.pId})).groupBy("id").value(),b=cn.chain(cn.range(h,m)).map(M=>{var W;const I=f.events[M],P=f.events,L=g(Ih({alpha:1,...l,step:M,parent:Ph(I.pId)?void 0:P[((W=cn.findLast(_[I.pId],U=>U.step<=M))==null?void 0:W.step)??0],event:I,events:P})),A=L.filter(Ho),E=L.filter(cn.negate(Ho));return{persistent:A,transient:E}}).map(M=>cn.mapValues(M,I=>I.filter(y))).map((M,I)=>cn.mapValues(M,P=>P.map(w(I)))).value();return{stepsPersistent:cn.map(b,M=>M.persistent),stepsTransient:cn.map(b,M=>M.transient)}}onmessage=({data:f})=>{postMessage(Ch(f))}})(); diff --git a/index.html b/index.html index 3696cf25..745e2855 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ - + diff --git a/manifest.json b/manifest.json index beabe13a..6a5cc34e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,9 +1,9 @@ { "short_name": "Visualiser", "name": "Visualiser", - "version": "1.1.11-1", + "version": "1.1.11-2", "description": "Visualise pathfinding search and more", - "version_name": "1.1.11-1; late February 2024", + "version_name": "1.1.11-2; late February 2024", "repository": "https://github.com/path-visualiser/app", "docs": "https://github.com/path-visualiser/app/blob/master/docs", "homepage": "https://path-visualiser.github.io/",