-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.mjs
5 lines (5 loc) · 16 KB
/
index.mjs
1
2
3
4
5
function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function o(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let l,i;function s(t,e){return l||(l=document.createElement("a")),l.href=e,t===l.href}function a(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function u(t){return null==t?"":t}function f(t,e){t.appendChild(e)}function d(t,e,n){const r=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;if(e&&e.host)return e;return t.ownerDocument}(t);if(!r.getElementById(e)){const t=$("style");t.id=e,t.textContent=n,function(t,e){f(t.head||t,e)}(r,t)}}function p(t,e,n){t.insertBefore(e,n||null)}function m(t){t.parentNode.removeChild(t)}function $(t){return document.createElement(t)}function g(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function h(t){return document.createTextNode(t)}function y(){return h(" ")}function v(){return h("")}function j(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function x(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function b(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function w(t){i=t}const C=[],k=[],_=[],O=[],I=Promise.resolve();let N=!1;function S(t){_.push(t)}let E=!1;const z=new Set;function T(){if(!E){E=!0;do{for(let t=0;t<C.length;t+=1){const e=C[t];w(e),L(e.$$)}for(w(null),C.length=0;k.length;)k.pop()();for(let t=0;t<_.length;t+=1){const e=_[t];z.has(e)||(z.add(e),e())}_.length=0}while(C.length);for(;O.length;)O.pop()();N=!1,E=!1,z.clear()}}function L(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(S)}}const A=new Set;let B;function X(){B={r:0,c:[],p:B}}function Y(){B.r||r(B.c),B=B.p}function q(t,e){t&&t.i&&(A.delete(t),t.i(e))}function P(t,e,n,r){if(t&&t.o){if(A.has(t))return;A.add(t),B.c.push((()=>{A.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function D(t){t&&t.c()}function M(t,n,c,l){const{fragment:i,on_mount:s,on_destroy:a,after_update:u}=t.$$;i&&i.m(n,c),l||S((()=>{const n=s.map(e).filter(o);a?a.push(...n):r(n),t.$$.on_mount=[]})),u.forEach(S)}function R(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function F(t,e){-1===t.$$.dirty[0]&&(C.push(t),N||(N=!0,I.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function V(e,o,c,l,s,a,u,f=[-1]){const d=i;w(e);const p=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:s,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(o.context||(d?d.$$.context:[])),callbacks:n(),dirty:f,skip_bound:!1,root:o.target||d.$$.root};u&&u(p.root);let $=!1;if(p.ctx=c?c(e,o.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return p.ctx&&s(p.ctx[t],p.ctx[t]=o)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](o),$&&F(e,t)),n})):[],p.update(),$=!0,r(p.before_update),p.fragment=!!l&&l(p.ctx),o.target){if(o.hydrate){const t=function(t){return Array.from(t.childNodes)}(o.target);p.fragment&&p.fragment.l(t),t.forEach(m)}else p.fragment&&p.fragment.c();o.intro&&q(e.$$.fragment),M(e,o.target,o.anchor,o.customElement),T()}w(d)}class G{$destroy(){R(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const H=[];const J=function(e,n=t){let r;const o=new Set;function l(t){if(c(e,t)&&(e=t,r)){const t=!H.length;for(const t of o)t[1](),H.push(t,e);if(t){for(let t=0;t<H.length;t+=2)H[t][0](H[t+1]);H.length=0}}}return{set:l,update:function(t){l(t(e))},subscribe:function(c,i=t){const s=[c,i];return o.add(s),1===o.size&&(r=n(l)||t),c(e),()=>{o.delete(s),0===o.size&&(r(),r=null)}}}}(null),K=parseFloat;function Q(t,e=";"){let n;if(Array.isArray(t))n=t.filter((t=>t));else{n=[];for(const e in t)t[e]&&n.push(`${e}:${t[e]}`)}return n.join(e)}function U(t){d(t,"svelte-1cj2gr0",".spin.svelte-1cj2gr0{animation:svelte-1cj2gr0-spin 2s 0s infinite linear}.pulse.svelte-1cj2gr0{animation:svelte-1cj2gr0-spin 1s infinite steps(8)}@keyframes svelte-1cj2gr0-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function W(t){let e,n,r,o,c,l,i;function s(t,e){return"string"==typeof t[7][4]?tt:Z}let a=s(t),d=a(t);return{c(){e=g("svg"),n=g("g"),r=g("g"),d.c(),x(r,"transform",t[10]),x(n,"transform",o=`translate(${t[7][0]/2} ${t[7][1]/2})`),x(n,"transform-origin",c=t[7][0]/4+" 0"),x(e,"id",t[0]),x(e,"class",l=u(t[8])+" svelte-1cj2gr0"),x(e,"style",t[9]),x(e,"viewBox",i=`0 0 ${t[7][0]} ${t[7][1]}`),x(e,"aria-hidden","true"),x(e,"role","img"),x(e,"xmlns","http://www.w3.org/2000/svg")},m(t,o){p(t,e,o),f(e,n),f(n,r),d.m(r,null)},p(t,f){a===(a=s(t))&&d?d.p(t,f):(d.d(1),d=a(t),d&&(d.c(),d.m(r,null))),1024&f&&x(r,"transform",t[10]),128&f&&o!==(o=`translate(${t[7][0]/2} ${t[7][1]/2})`)&&x(n,"transform",o),128&f&&c!==(c=t[7][0]/4+" 0")&&x(n,"transform-origin",c),1&f&&x(e,"id",t[0]),256&f&&l!==(l=u(t[8])+" svelte-1cj2gr0")&&x(e,"class",l),512&f&&x(e,"style",t[9]),128&f&&i!==(i=`0 0 ${t[7][0]} ${t[7][1]}`)&&x(e,"viewBox",i)},d(t){t&&m(e),d.d()}}}function Z(t){let e,n,r,o,c,l,i,s,a,u;return{c(){e=g("path"),l=g("path"),x(e,"d",n=t[7][4][0]),x(e,"fill",r=t[3]||t[1]||"currentColor"),x(e,"fill-opacity",o=0!=t[6]?t[4]:t[5]),x(e,"transform",c=`translate(${t[7][0]/-2} ${t[7][1]/-2})`),x(l,"d",i=t[7][4][1]),x(l,"fill",s=t[2]||t[1]||"currentColor"),x(l,"fill-opacity",a=0!=t[6]?t[5]:t[4]),x(l,"transform",u=`translate(${t[7][0]/-2} ${t[7][1]/-2})`)},m(t,n){p(t,e,n),p(t,l,n)},p(t,f){128&f&&n!==(n=t[7][4][0])&&x(e,"d",n),10&f&&r!==(r=t[3]||t[1]||"currentColor")&&x(e,"fill",r),112&f&&o!==(o=0!=t[6]?t[4]:t[5])&&x(e,"fill-opacity",o),128&f&&c!==(c=`translate(${t[7][0]/-2} ${t[7][1]/-2})`)&&x(e,"transform",c),128&f&&i!==(i=t[7][4][1])&&x(l,"d",i),6&f&&s!==(s=t[2]||t[1]||"currentColor")&&x(l,"fill",s),112&f&&a!==(a=0!=t[6]?t[5]:t[4])&&x(l,"fill-opacity",a),128&f&&u!==(u=`translate(${t[7][0]/-2} ${t[7][1]/-2})`)&&x(l,"transform",u)},d(t){t&&m(e),t&&m(l)}}}function tt(t){let e,n,r,o;return{c(){e=g("path"),x(e,"d",n=t[7][4]),x(e,"fill",r=t[1]||t[2]||"currentColor"),x(e,"transform",o=`translate(${t[7][0]/-2} ${t[7][1]/-2})`)},m(t,n){p(t,e,n)},p(t,c){128&c&&n!==(n=t[7][4])&&x(e,"d",n),6&c&&r!==(r=t[1]||t[2]||"currentColor")&&x(e,"fill",r),128&c&&o!==(o=`translate(${t[7][0]/-2} ${t[7][1]/-2})`)&&x(e,"transform",o)},d(t){t&&m(e)}}}function et(e){let n,r=e[7][4]&&W(e);return{c(){r&&r.c(),n=v()},m(t,e){r&&r.m(t,e),p(t,n,e)},p(t,[e]){t[7][4]?r?r.p(t,e):(r=W(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:t,o:t,d(t){r&&r.d(t),t&&m(n)}}}function nt(t,e,n){let r,o,c,l,{class:i=""}=e,{id:s=""}=e,{style:a=""}=e,{icon:u}=e,{size:f=""}=e,{color:d=""}=e,{fw:p=!1}=e,{pull:m=""}=e,{scale:$=1}=e,{translateX:g=0}=e,{translateY:h=0}=e,{rotate:y=""}=e,{flip:v=!1}=e,{spin:j=!1}=e,{pulse:x=!1}=e,{primaryColor:b=""}=e,{secondaryColor:w=""}=e,{primaryOpacity:C=1}=e,{secondaryOpacity:k=.4}=e,{swapOpacity:_=!1}=e;return t.$$set=t=>{"class"in t&&n(11,i=t.class),"id"in t&&n(0,s=t.id),"style"in t&&n(12,a=t.style),"icon"in t&&n(13,u=t.icon),"size"in t&&n(14,f=t.size),"color"in t&&n(1,d=t.color),"fw"in t&&n(15,p=t.fw),"pull"in t&&n(16,m=t.pull),"scale"in t&&n(17,$=t.scale),"translateX"in t&&n(18,g=t.translateX),"translateY"in t&&n(19,h=t.translateY),"rotate"in t&&n(20,y=t.rotate),"flip"in t&&n(21,v=t.flip),"spin"in t&&n(22,j=t.spin),"pulse"in t&&n(23,x=t.pulse),"primaryColor"in t&&n(2,b=t.primaryColor),"secondaryColor"in t&&n(3,w=t.secondaryColor),"primaryOpacity"in t&&n(4,C=t.primaryOpacity),"secondaryOpacity"in t&&n(5,k=t.secondaryOpacity),"swapOpacity"in t&&n(6,_=t.swapOpacity)},t.$$.update=()=>{8192&t.$$.dirty&&n(7,r=u&&u.icon||[0,0,"",[],""]),12584960&t.$$.dirty&&n(8,o=Q([i,"fa",j&&"spin",x&&"pulse"]," ")),118784&t.$$.dirty&&n(9,c=function(t,e,n,r){let o,c,l,i,s,a="-.125em";return r&&(s="center",c="1.25em"),n&&(o=n),e&&("lg"==e?(i="1.33333em",l=".75em",a="-.225em"):i="xs"==e?".75em":"sm"==e?".875em":e.replace("x","em")),Q([Q({float:o,width:c,height:"1em","line-height":l,"font-size":i,"text-align":s,"vertical-align":a,"transform-origin":"center",overflow:"visible"}),t])}(a,f,m,p)),4063232&t.$$.dirty&&n(10,l=function(t,e,n,r,o,c=1,l="",i=""){let s=1,a=1;return o&&("horizontal"==o?s=-1:"vertical"==o?a=-1:s=a=-1),Q([`translate(${K(e)*c}${l},${K(n)*c}${l})`,`scale(${s*K(t)},${a*K(t)})`,r&&`rotate(${r}${i})`]," ")}($,g,h,y,v,512))},[s,d,b,w,C,k,_,r,o,c,l,i,a,u,f,p,m,$,g,h,y,v,j,x]}class rt extends G{constructor(t){super(),V(this,t,nt,et,c,{class:11,id:0,style:12,icon:13,size:14,color:1,fw:15,pull:16,scale:17,translateX:18,translateY:19,rotate:20,flip:21,spin:22,pulse:23,primaryColor:2,secondaryColor:3,primaryOpacity:4,secondaryOpacity:5,swapOpacity:6},U)}}function ot(t,e,n){n?(e.style.transform="scale(1,0)",e.style.height="0px"):(e.style.transform="scale(1,1)",e.style.height="auto"),function(t,e){t.style.transform=e?"":"rotate(90deg)"}(t,n)}function ct(t){const e=t.currentTarget,n=e.parentNode,r=n.querySelector(".tree-child"),o=n.querySelector(".node-desc .chev-right");if(e.CTO)return e.CTO=!e.CTO,void(r&&ot(o,r,!0));e.CTO=!0,r&&ot(o,r)}
/*!
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/var lt={prefix:"fas",iconName:"chevron-right",icon:[320,512,[],"f054","M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"]};function it(t){d(t,"svelte-jtjca8",".tree-child.svelte-jtjca8.svelte-jtjca8{margin-left:8px;margin-top:4px;transform:scale(1,0);transition:0.2s;height:0px}.complete-tree-node.svelte-jtjca8.svelte-jtjca8{margin-bottom:6px;padding:2px}.node-desc.svelte-jtjca8 .chev-right.svelte-jtjca8,.node-desc.svelte-jtjca8 .secondary-icon.svelte-jtjca8{transition:0.4s ease-in-out;transform-origin:center;width:20px;margin:1px 6px 2px 2px;height:20px}.secondary-icon.svelte-jtjca8 img.svelte-jtjca8{width:20px;height:20px}.node-desc.svelte-jtjca8.svelte-jtjca8{padding:4px;display:flex;max-width:60%}.tree-node-active{background:aliceblue}.chevron-no-child.svelte-jtjca8.svelte-jtjca8{opacity:0.2}.leaf-node.svelte-jtjca8.svelte-jtjca8{cursor:pointer}")}function st(t,e,n){const r=t.slice();return r[9]=e[n],r[11]=n,r}function at(t){let e,n,o,c,l,i,s,a,u,d,g,v,w,C,k,_=t[9].desc+"";c=new rt({props:{icon:lt}});let O=t[1]&&ft(t);return g=new xt({props:{tree:t[9].child,faIcon:t[3],secondaryIcon:t[1],onSelectCallback:t[2]}}),{c(){e=$("div"),n=$("div"),o=$("div"),D(c.$$.fragment),l=y(),O&&O.c(),i=y(),s=$("div"),a=h(_),u=y(),d=$("div"),D(g.$$.fragment),v=y(),x(o,"class","chev-right svelte-jtjca8"),x(s,"class","desc"),x(n,"class","node-desc svelte-jtjca8"),x(d,"class","tree-child svelte-jtjca8"),x(e,"class","complete-tree-node svelte-jtjca8")},m(r,m){p(r,e,m),f(e,n),f(n,o),M(c,o,null),f(n,l),O&&O.m(n,null),f(n,i),f(n,s),f(s,a),f(e,u),f(e,d),M(g,d,null),f(e,v),w=!0,C||(k=[j(s,"click",vt),j(n,"click",t[7])],C=!0)},p(t,e){t[1]?O?(O.p(t,e),2&e&&q(O,1)):(O=ft(t),O.c(),q(O,1),O.m(n,i)):O&&(X(),P(O,1,1,(()=>{O=null})),Y()),(!w||1&e)&&_!==(_=t[9].desc+"")&&b(a,_);const r={};1&e&&(r.tree=t[9].child),8&e&&(r.faIcon=t[3]),2&e&&(r.secondaryIcon=t[1]),4&e&&(r.onSelectCallback=t[2]),g.$set(r)},i(t){w||(q(c.$$.fragment,t),q(O),q(g.$$.fragment,t),w=!0)},o(t){P(c.$$.fragment,t),P(O),P(g.$$.fragment,t),w=!1},d(t){t&&m(e),R(c),O&&O.d(),R(g),C=!1,r(k)}}}function ut(t){let e,n,o,c,l,i,s,a,u,d,g,v,w=t[9].desc+"";c=new rt({props:{icon:lt}});let C=t[1]&&mt(t);function k(...e){return t[5](t[9],...e)}return{c(){e=$("div"),n=$("div"),o=$("div"),D(c.$$.fragment),l=y(),C&&C.c(),i=y(),s=$("div"),a=h(w),u=y(),x(o,"class","chev-right chevron-no-child svelte-jtjca8"),x(s,"class","desc"),x(n,"class","node-desc leaf-node svelte-jtjca8"),x(e,"class","complete-tree-node svelte-jtjca8")},m(r,m){p(r,e,m),f(e,n),f(n,o),M(c,o,null),f(n,l),C&&C.m(n,null),f(n,i),f(n,s),f(s,a),f(e,u),d=!0,g||(v=[j(s,"click",k),j(n,"click",t[6])],g=!0)},p(e,r){(t=e)[1]?C?(C.p(t,r),2&r&&q(C,1)):(C=mt(t),C.c(),q(C,1),C.m(n,i)):C&&(X(),P(C,1,1,(()=>{C=null})),Y()),(!d||1&r)&&w!==(w=t[9].desc+"")&&b(a,w)},i(t){d||(q(c.$$.fragment,t),q(C),d=!0)},o(t){P(c.$$.fragment,t),P(C),d=!1},d(t){t&&m(e),R(c),C&&C.d(),g=!1,r(v)}}}function ft(t){let e,n,r,o;const c=[pt,dt],l=[];function i(t,e){return t[3]?0:1}return e=i(t),n=l[e]=c[e](t),{c(){n.c(),r=v()},m(t,n){l[e].m(t,n),p(t,r,n),o=!0},p(t,o){let s=e;e=i(t),e===s?l[e].p(t,o):(X(),P(l[s],1,1,(()=>{l[s]=null})),Y(),n=l[e],n?n.p(t,o):(n=l[e]=c[e](t),n.c()),q(n,1),n.m(r.parentNode,r))},i(t){o||(q(n),o=!0)},o(t){P(n),o=!1},d(t){l[e].d(t),t&&m(r)}}}function dt(e){let n,r,o;return{c(){n=$("div"),r=$("img"),s(r.src,o=e[1])||x(r,"src",o),x(r,"alt","secondaryIcon"),x(r,"class","svelte-jtjca8"),x(n,"class","secondary-icon svelte-jtjca8")},m(t,e){p(t,n,e),f(n,r)},p(t,e){2&e&&!s(r.src,o=t[1])&&x(r,"src",o)},i:t,o:t,d(t){t&&m(n)}}}function pt(t){let e,n,r;return n=new rt({props:{icon:t[1]}}),{c(){e=$("div"),D(n.$$.fragment),x(e,"class","secondary-icon svelte-jtjca8")},m(t,o){p(t,e,o),M(n,e,null),r=!0},p(t,e){const r={};2&e&&(r.icon=t[1]),n.$set(r)},i(t){r||(q(n.$$.fragment,t),r=!0)},o(t){P(n.$$.fragment,t),r=!1},d(t){t&&m(e),R(n)}}}function mt(t){let e,n,r,o;const c=[gt,$t],l=[];function i(t,e){return t[3]?0:1}return e=i(t),n=l[e]=c[e](t),{c(){n.c(),r=v()},m(t,n){l[e].m(t,n),p(t,r,n),o=!0},p(t,o){let s=e;e=i(t),e===s?l[e].p(t,o):(X(),P(l[s],1,1,(()=>{l[s]=null})),Y(),n=l[e],n?n.p(t,o):(n=l[e]=c[e](t),n.c()),q(n,1),n.m(r.parentNode,r))},i(t){o||(q(n),o=!0)},o(t){P(n),o=!1},d(t){l[e].d(t),t&&m(r)}}}function $t(e){let n,r,o;return{c(){n=$("div"),r=$("img"),s(r.src,o=e[1])||x(r,"src",o),x(r,"alt","secondaryIcon"),x(r,"class","svelte-jtjca8"),x(n,"class","secondary-icon svelte-jtjca8")},m(t,e){p(t,n,e),f(n,r)},p(t,e){2&e&&!s(r.src,o=t[1])&&x(r,"src",o)},i:t,o:t,d(t){t&&m(n)}}}function gt(t){let e,n,r;return n=new rt({props:{icon:t[1]}}),{c(){e=$("div"),D(n.$$.fragment),x(e,"class","secondary-icon svelte-jtjca8")},m(t,o){p(t,e,o),M(n,e,null),r=!0},p(t,e){const r={};2&e&&(r.icon=t[1]),n.$set(r)},i(t){r||(q(n.$$.fragment,t),r=!0)},o(t){P(n.$$.fragment,t),r=!1},d(t){t&&m(e),R(n)}}}function ht(t){let e,n,r,o;const c=[ut,at],l=[];function i(t,e){return t[9].child?1:0}return e=i(t),n=l[e]=c[e](t),{c(){n.c(),r=v()},m(t,n){l[e].m(t,n),p(t,r,n),o=!0},p(t,o){let s=e;e=i(t),e===s?l[e].p(t,o):(X(),P(l[s],1,1,(()=>{l[s]=null})),Y(),n=l[e],n?n.p(t,o):(n=l[e]=c[e](t),n.c()),q(n,1),n.m(r.parentNode,r))},i(t){o||(q(n),o=!0)},o(t){P(n),o=!1},d(t){l[e].d(t),t&&m(r)}}}function yt(t){let e,n,r=t[0],o=[];for(let e=0;e<r.length;e+=1)o[e]=ht(st(t,r,e));const c=t=>P(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=v()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);p(t,e,r),n=!0},p(t,[n]){if(31&n){let l;for(r=t[0],l=0;l<r.length;l+=1){const c=st(t,r,l);o[l]?(o[l].p(c,n),q(o[l],1)):(o[l]=ht(c),o[l].c(),q(o[l],1),o[l].m(e.parentNode,e))}for(X(),l=r.length;l<o.length;l+=1)c(l);Y()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)q(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)P(o[t]);n=!1},d(t){!function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(o,t),t&&m(e)}}}const vt=t=>t.stopPropagation();function jt(t,e,n){let r;a(t,J,(t=>n(8,r=t)));let{tree:o}=e,{secondaryIcon:c}=e,{onSelectCallback:l}=e,{faIcon:i}=e;function s(t,e){t.stopPropagation(),l&&l(e),r&&r.classList.remove("tree-node-active");let n=t.target;n.parentNode.classList.add("tree-node-active"),J.set(n.parentNode)}return t.$$set=t=>{"tree"in t&&n(0,o=t.tree),"secondaryIcon"in t&&n(1,c=t.secondaryIcon),"onSelectCallback"in t&&n(2,l=t.onSelectCallback),"faIcon"in t&&n(3,i=t.faIcon)},[o,c,l,i,s,(t,e)=>s(e,t.key),t=>ct(t),t=>ct(t)]}class xt extends G{constructor(t){super(),V(this,t,jt,yt,c,{tree:0,secondaryIcon:1,onSelectCallback:2,faIcon:3},it)}}export{xt as TreeViewer};