UNPKG

@bootcamp-project/svelte-components

Version:

A browser extension for the entrance to your Entropedia-Space

3 lines (2 loc) 21.9 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Components={})}(this,(function(t){"use strict";function e(){}function n(t){return t()}function o(){return Object.create(null)}function r(t){t.forEach(n)}function l(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(t,e,n,o){return t[1]&&o?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](o(e))):n.ctx}let s,a=!1;function f(t,e,n,o){for(;t<e;){const r=t+(e-t>>1);n(r)<=o?t=r+1:e=r}return t}function u(t,e){if(a){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const o=e[n];void 0!==o.claim_order&&t.push(o)}e=t}const n=new Int32Array(e.length+1),o=new Int32Array(e.length);n[0]=-1;let r=0;for(let t=0;t<e.length;t++){const l=e[t].claim_order,i=(r>0&&e[n[r]].claim_order<=l?r+1:f(1,r,(t=>e[n[t]].claim_order),l))-1;o[t]=n[i]+1;const c=i+1;n[c]=t,r=Math.max(c,r)}const l=[],i=[];let c=e.length-1;for(let t=n[r]+1;0!=t;t=o[t-1]){for(l.push(e[t-1]);c>=t;c--)i.push(e[c]);c--}for(;c>=0;c--)i.push(e[c]);l.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<i.length;e++){for(;n<l.length&&i[e].claim_order>=l[n].claim_order;)n++;const o=n<l.length?l[n]:null;t.insertBefore(i[e],o)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function h(t,e,n){a&&!n?u(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function d(t){t.parentNode.removeChild(t)}function p(t){return document.createElement(t)}function m(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function v(t){return document.createTextNode(t)}function g(){return v(" ")}function $(){return v("")}function x(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function _(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function w(t){return Array.from(t.childNodes)}function b(t,e,n,o,r=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const l=(()=>{for(let o=t.claim_info.last_index;o<t.length;o++){const l=t[o];if(e(l)){const e=n(l);return void 0===e?t.splice(o,1):t[o]=e,r||(t.claim_info.last_index=o),l}}for(let o=t.claim_info.last_index-1;o>=0;o--){const l=t[o];if(e(l)){const e=n(l);return void 0===e?t.splice(o,1):t[o]=e,r?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=o,l}}return o()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function E(t,e,n,o){return b(t,(t=>t.nodeName===e),(t=>{const e=[];for(let o=0;o<t.attributes.length;o++){const r=t.attributes[o];n[r.name]||e.push(r.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>o(e)))}function y(t,e,n){return E(t,e,n,p)}function S(t,e,n){return E(t,e,n,m)}function k(t,e){return b(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>v(e)),!0)}function M(t){return k(t," ")}function N(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function A(t){s=t}function C(t){(function(){if(!s)throw new Error("Function called outside component initialization");return s})().$$.on_mount.push(t)}const V=[],I=[],P=[],H=[],z=Promise.resolve();let T=!1;function j(t){P.push(t)}let B=!1;const O=new Set;function D(){if(!B){B=!0;do{for(let t=0;t<V.length;t+=1){const e=V[t];A(e),L(e.$$)}for(A(null),V.length=0;I.length;)I.pop()();for(let t=0;t<P.length;t+=1){const e=P[t];O.has(e)||(O.add(e),e())}P.length=0}while(V.length);for(;H.length;)H.pop()();T=!1,B=!1,O.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(j)}}const U=new Set;function F(t,e){t&&t.i&&(U.delete(t),t.i(e))}function q(t,e,n,o){if(t&&t.o){if(U.has(t))return;U.add(t),undefined.c.push((()=>{U.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function R(t,e){t.d(1),e.delete(t.key)}function W(t,e,n,o,r,l,i,c,s,a,f,u){let h=t.length,d=l.length,p=h;const m={};for(;p--;)m[t[p].key]=p;const v=[],g=new Map,$=new Map;for(p=d;p--;){const t=u(r,l,p),c=n(t);let s=i.get(c);s?o&&s.p(t,e):(s=a(c,t),s.c()),g.set(c,v[p]=s),c in m&&$.set(c,Math.abs(p-m[c]))}const x=new Set,_=new Set;function w(t){F(t,1),t.m(c,f),i.set(t.key,t),f=t.first,d--}for(;h&&d;){const e=v[d-1],n=t[h-1],o=e.key,r=n.key;e===n?(f=e.first,h--,d--):g.has(r)?!i.has(o)||x.has(o)?w(e):_.has(r)?h--:$.get(o)>$.get(r)?(_.add(o),w(e)):(x.add(r),h--):(s(n,i),h--)}for(;h--;){const e=t[h];g.has(e.key)||s(e,i)}for(;d;)w(v[d-1]);return v}function G(t){t&&t.c()}function J(t,e){t&&t.l(e)}function K(t,e,o,i){const{fragment:c,on_mount:s,on_destroy:a,after_update:f}=t.$$;c&&c.m(e,o),i||j((()=>{const e=s.map(n).filter(l);a?a.push(...e):r(e),t.$$.on_mount=[]})),f.forEach(j)}function Q(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 X(t,e){-1===t.$$.dirty[0]&&(V.push(t),T||(T=!0,z.then(D)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,n,l,i,c,f,u,h=[-1]){const p=s;A(t);const m=t.$$={fragment:null,ctx:null,props:f,update:e,not_equal:c,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(p?p.$$.context:[])),callbacks:o(),dirty:h,skip_bound:!1,root:n.target||p.$$.root};u&&u(m.root);let v=!1;if(m.ctx=l?l(t,n.props||{},((e,n,...o)=>{const r=o.length?o[0]:n;return m.ctx&&c(m.ctx[e],m.ctx[e]=r)&&(!m.skip_bound&&m.bound[e]&&m.bound[e](r),v&&X(t,e)),n})):[],m.update(),v=!0,r(m.before_update),m.fragment=!!i&&i(m.ctx),n.target){if(n.hydrate){a=!0;const t=w(n.target);m.fragment&&m.fragment.l(t),t.forEach(d)}else m.fragment&&m.fragment.c();n.intro&&F(t.$$.fragment),K(t,n.target,n.anchor,n.customElement),a=!1,D()}A(p)}class Z{$destroy(){Q(this,1),this.$destroy=e}$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)}}function tt(t){let n,o;return{c(){n=p("a"),o=v("download CSV"),this.h()},l(t){n=y(t,"A",{target:!0,download:!0,href:!0});var e=w(n);o=k(e,"download CSV"),e.forEach(d),this.h()},h(){_(n,"target","_blank"),_(n,"download","output.csv"),_(n,"href",t[0])},m(t,e){h(t,n,e),u(n,o)},p(t,[e]){1&e&&_(n,"href",t[0])},i:e,o:e,d(t){t&&d(n)}}}function et(t,e,n){let{data:o=[]}=e,r="";return t.$$set=t=>{"data"in t&&n(1,o=t.data)},t.$$.update=()=>{if(2&t.$$.dirty&&o.length>0){const[t,...e]=o;n(0,r="data:text/csv;charset=utf-8,"+encodeURI((t.map?t:Object.keys(t)).map((t=>`"${t}"`)).join(",")+"\n"+e.map((t=>(t.map?t:Object.values(t)).map((t=>`"${t}"`)).join(","))).join("\n")))}},[r,o]}function nt(t){let n,o,r,l,i,c,s,a,f=t[0][0].message+"";return{c(){n=p("div"),o=p("p"),r=p("i"),l=g(),i=p("span"),c=v(f),this.h()},l(t){n=y(t,"DIV",{class:!0});var e=w(n);o=y(e,"P",{"v-if":!0,class:!0});var s=w(o);r=y(s,"I",{class:!0,style:!0}),w(r).forEach(d),l=M(s),i=y(s,"SPAN",{});var a=w(i);c=k(a,f),a.forEach(d),s.forEach(d),e.forEach(d),this.h()},h(){var t,e,l;_(r,"class","fas fa-lg fa-exclamation-triangle fill-current text-orange-500 mr-2"),t="line-height",e="1",r.style.setProperty(t,e,l?"important":""),_(o,"v-if","notifications[0]"),_(o,"class","bg-white p-3 rounded-md shadow-lg mb-2 cursor-pointer flex max-w-sm"),_(n,"class","absolute bottom-0 left-0 flex-col p-3")},m(e,f){h(e,n,f),u(n,o),u(o,r),u(o,l),u(o,i),u(i,c),s||(a=x(o,"click",t[1]),s=!0)},p(t,[e]){1&e&&f!==(f=t[0][0].message+"")&&N(c,f)},i:e,o:e,d(t){t&&d(n),s=!1,a()}}}function ot(t,e,n){let{notifications:o=[]}=e;return t.$$set=t=>{"notifications"in t&&n(0,o=t.notifications)},[o,()=>o.shift()]}function rt(t){let e,n;return{c(){e=m("svg"),n=m("path"),this.h()},l(t){e=S(t,"svg",{"aria-hidden":!0,focusable:!0,"data-prefix":!0,"data-icon":!0,class:!0,role:!0,xmlns:!0,viewBox:!0});var o=w(e);n=S(o,"path",{fill:!0,d:!0}),w(n).forEach(d),o.forEach(d),this.h()},h(){_(n,"fill","currentColor"),_(n,"d","M256 144C194.1 144 144 194.1 144 256c0 61.86 50.14 112 112 112s112-50.14 112-112C368 194.1 317.9 144 256 144zM256 320c-35.29 0-64-28.71-64-64c0-35.29 28.71-64 64-64s64 28.71 64 64C320 291.3 291.3 320 256 320zM256 112c13.25 0 24-10.75 24-24v-64C280 10.75 269.3 0 256 0S232 10.75 232 24v64C232 101.3 242.8 112 256 112zM256 400c-13.25 0-24 10.75-24 24v64C232 501.3 242.8 512 256 512s24-10.75 24-24v-64C280 410.8 269.3 400 256 400zM488 232h-64c-13.25 0-24 10.75-24 24s10.75 24 24 24h64C501.3 280 512 269.3 512 256S501.3 232 488 232zM112 256c0-13.25-10.75-24-24-24h-64C10.75 232 0 242.8 0 256s10.75 24 24 24h64C101.3 280 112 269.3 112 256zM391.8 357.8c-9.344-9.375-24.56-9.372-33.94 .0031s-9.375 24.56 0 33.93l45.25 45.28c4.672 4.688 10.83 7.031 16.97 7.031s12.28-2.344 16.97-7.031c9.375-9.375 9.375-24.56 0-33.94L391.8 357.8zM120.2 154.2c4.672 4.688 10.83 7.031 16.97 7.031S149.5 158.9 154.2 154.2c9.375-9.375 9.375-24.56 0-33.93L108.9 74.97c-9.344-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94L120.2 154.2zM374.8 161.2c6.141 0 12.3-2.344 16.97-7.031l45.25-45.28c9.375-9.375 9.375-24.56 0-33.94s-24.59-9.375-33.94 0l-45.25 45.28c-9.375 9.375-9.375 24.56 0 33.93C362.5 158.9 368.7 161.2 374.8 161.2zM120.2 357.8l-45.25 45.28c-9.375 9.375-9.375 24.56 0 33.94c4.688 4.688 10.83 7.031 16.97 7.031s12.3-2.344 16.97-7.031l45.25-45.28c9.375-9.375 9.375-24.56 0-33.93S129.6 348.4 120.2 357.8z"),_(e,"aria-hidden","true"),_(e,"focusable","false"),_(e,"data-prefix","far"),_(e,"data-icon","sun"),_(e,"class","svg-inline--fa fa-sun fa-w-16"),_(e,"role","img"),_(e,"xmlns","http://www.w3.org/2000/svg"),_(e,"viewBox","0 0 512 512")},m(t,o){h(t,e,o),u(e,n)},d(t){t&&d(e)}}}function lt(t){let e,n;return{c(){e=m("svg"),n=m("path"),this.h()},l(t){e=S(t,"svg",{"aria-hidden":!0,focusable:!0,"data-prefix":!0,"data-icon":!0,class:!0,role:!0,xmlns:!0,viewBox:!0});var o=w(e);n=S(o,"path",{fill:!0,d:!0}),w(n).forEach(d),o.forEach(d),this.h()},h(){_(n,"fill","currentColor"),_(n,"d","M279.135 512c78.756 0 150.982-35.804 198.844-94.775 28.27-34.831-2.558-85.722-46.249-77.401-82.348 15.683-158.272-47.268-158.272-130.792 0-48.424 26.06-92.292 67.434-115.836 38.745-22.05 28.999-80.788-15.022-88.919A257.936 257.936 0 0 0 279.135 0c-141.36 0-256 114.575-256 256 0 141.36 114.576 256 256 256zm0-464c12.985 0 25.689 1.201 38.016 3.478-54.76 31.163-91.693 90.042-91.693 157.554 0 113.848 103.641 199.2 215.252 177.944C402.574 433.964 344.366 464 279.135 464c-114.875 0-208-93.125-208-208s93.125-208 208-208z"),_(e,"aria-hidden","true"),_(e,"focusable","false"),_(e,"data-prefix","far"),_(e,"data-icon","moon"),_(e,"class","svg-inline--fa fa-moon fa-w-16"),_(e,"role","img"),_(e,"xmlns","http://www.w3.org/2000/svg"),_(e,"viewBox","0 0 512 512")},m(t,o){h(t,e,o),u(e,n)},d(t){t&&d(e)}}}function it(t){let n,o,r;function l(t,e){return t[0]?lt:rt}let i=l(t),c=i(t);return{c(){n=p("div"),c.c(),this.h()},l(t){n=y(t,"DIV",{class:!0});var e=w(n);c.l(e),e.forEach(d),this.h()},h(){_(n,"class","absolute top-0 right-0 w-8 h-8 p-2")},m(e,l){h(e,n,l),c.m(n,null),o||(r=x(n,"click",t[1]),o=!0)},p(t,[e]){i!==(i=l(t))&&(c.d(1),c=i(t),c&&(c.c(),c.m(n,null)))},i:e,o:e,d(t){t&&d(n),c.d(),o=!1,r()}}}const ct="themePreference";function st(t,e,n){let o=!1;function r(t){n(0,o=t),document.documentElement.classList.toggle("dark",o)}return C((()=>{const t=window.localStorage.getItem(ct);("dark"===t||null==t&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&r(!0)})),[o,function(){r(!o),window.localStorage.setItem(ct,o?"dark":"light")}]}function at(t){let n,o;return{c(){n=p("button"),o=v("Click Me")},l(t){n=y(t,"BUTTON",{});var e=w(n);o=k(e,"Click Me"),e.forEach(d)},m(t,e){h(t,n,e),u(n,o)},p:e,i:e,o:e,d(t){t&&d(n)}}}class ft extends Z{constructor(t){super(),Y(this,t,null,at,i,{})}}function ut(t,e,n){const o=t.slice();return o[2]=e[n].label,o[3]=e[n].onclick,o}function ht(t,e,n){const o=t.slice();return o[2]=e[n].label,o[3]=e[n].onclick,o}function dt(t,e){let n,o,r,i,c,s,a=e[2]+"";return{key:t,first:null,c(){n=p("span"),o=p("button"),r=v(a),i=g(),this.h()},l(t){n=y(t,"SPAN",{class:!0});var e=w(n);o=y(e,"BUTTON",{class:!0});var l=w(o);r=k(l,a),l.forEach(d),i=M(e),e.forEach(d),this.h()},h(){_(o,"class","minor-button"),_(n,"class","px-1"),this.first=n},m(t,a){h(t,n,a),u(n,o),u(o,r),u(n,i),c||(s=x(o,"click",(function(){l(e[3])&&e[3].apply(this,arguments)})),c=!0)},p(t,n){e=t,1&n&&a!==(a=e[2]+"")&&N(r,a)},d(t){t&&d(n),c=!1,s()}}}function pt(t,e){let n,o,r,i,c,s,a=e[2]+"";return{key:t,first:null,c(){n=p("span"),o=p("button"),r=v(a),i=g(),this.h()},l(t){n=y(t,"SPAN",{class:!0});var e=w(n);o=y(e,"BUTTON",{class:!0});var l=w(o);r=k(l,a),l.forEach(d),i=M(e),e.forEach(d),this.h()},h(){_(o,"class","minor-button"),_(n,"class","px-1"),this.first=n},m(t,a){h(t,n,a),u(n,o),u(o,r),u(n,i),c||(s=x(o,"click",(function(){l(e[3])&&e[3].apply(this,arguments)})),c=!0)},p(t,n){e=t,2&n&&a!==(a=e[2]+"")&&N(r,a)},d(t){t&&d(n),c=!1,s()}}}function mt(t){let n,o,r,l,i=[],c=new Map,s=[],a=new Map,f=t[0];const m=t=>t[2];for(let e=0;e<f.length;e+=1){let n=ht(t,f,e),o=m(n);c.set(o,i[e]=dt(o,n))}let v=t[1];const $=t=>t[2];for(let e=0;e<v.length;e+=1){let n=ut(t,v,e),o=$(n);a.set(o,s[e]=pt(o,n))}return{c(){n=p("nav"),o=p("div");for(let t=0;t<i.length;t+=1)i[t].c();r=g(),l=p("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){n=y(t,"NAV",{class:!0});var e=w(n);o=y(e,"DIV",{class:!0});var c=w(o);for(let t=0;t<i.length;t+=1)i[t].l(c);c.forEach(d),r=M(e),l=y(e,"DIV",{});var a=w(l);for(let t=0;t<s.length;t+=1)s[t].l(a);a.forEach(d),e.forEach(d),this.h()},h(){_(o,"class","flex-1"),_(n,"class","flex -mx-1 mb-2")},m(t,e){h(t,n,e),u(n,o);for(let t=0;t<i.length;t+=1)i[t].m(o,null);u(n,r),u(n,l);for(let t=0;t<s.length;t+=1)s[t].m(l,null)},p(t,[e]){1&e&&(f=t[0],i=W(i,e,m,1,t,f,c,o,R,dt,null,ht)),2&e&&(v=t[1],s=W(s,e,$,1,t,v,a,l,R,pt,null,ut))},i:e,o:e,d(t){t&&d(n);for(let t=0;t<i.length;t+=1)i[t].d();for(let t=0;t<s.length;t+=1)s[t].d()}}}function vt(t,e,n){let{start:o=[]}=e,{end:r=[]}=e;return t.$$set=t=>{"start"in t&&n(0,o=t.start),"end"in t&&n(1,r=t.end)},[o,r]}function gt(t){let e,n,o,r,l,i,c;return{c(){e=p("aside"),n=p("h1"),o=v("Favorites"),r=g(),l=p("ul"),i=p("li"),c=v("item"),this.h()},l(t){e=y(t,"ASIDE",{id:!0,class:!0});var s=w(e);n=y(s,"H1",{class:!0});var a=w(n);o=k(a,"Favorites"),a.forEach(d),r=M(s),l=y(s,"UL",{id:!0,class:!0});var f=w(l);i=y(f,"LI",{"v-for":!0,class:!0});var u=w(i);c=k(u,"item"),u.forEach(d),f.forEach(d),s.forEach(d),this.h()},h(){_(n,"class","pl-3 w-full font-semibold"),_(i,"v-for","(fav, i) in favorites"),_(i,"class","hover:bg-white hover:shadow-sm rounded-md mb-2 p-3 cursor-pointer focus:outline-none focus:shadow-outline group"),_(l,"id","favorites"),_(l,"class","font-sm flex w-full flex-col-reverse mb-3"),_(e,"id","sidebar"),_(e,"class","bg-gray-300 w-screen max-w-sm h-full flex flex-col items-center pt-3 px-3 min-h-0 overflow-auto min-w-0 border-l text-gra-900")},m(t,s){h(t,e,s),u(e,n),u(n,o),u(e,r),u(e,l),u(l,i),u(i,c)},d(t){t&&d(e)}}}function $t(t){let n,o=!t[0]&&gt();return{c(){o&&o.c(),n=$()},l(t){o&&o.l(t),n=$()},m(t,e){o&&o.m(t,e),h(t,n,e)},p(t,[e]){t[0]?o&&(o.d(1),o=null):o||(o=gt(),o.c(),o.m(n.parentNode,n))},i:e,o:e,d(t){o&&o.d(t),t&&d(n)}}}function xt(t,e,n){let{hidden:o=!1}=e;return t.$$set=t=>{"hidden"in t&&n(0,o=t.hidden)},[o]}function _t(t){let e,n,o;const r=t[2].default,l=function(t,e,n,o){if(t){const r=c(t,e,n,o);return t[0](r)}}(r,t,t[1],null);return{c(){e=p("div"),l&&l.c(),this.h()},l(t){e=y(t,"DIV",{class:!0});var n=w(e);l&&l.l(n),n.forEach(d),this.h()},h(){_(e,"class",n="flex "+(t[0]?"flex-col-reverse":"flex-col"))},m(t,n){h(t,e,n),l&&l.m(e,null),o=!0},p(t,[i]){l&&l.p&&(!o||2&i)&&function(t,e,n,o,r,l){if(r){const i=c(e,n,o,l);t.p(i,r)}}(l,r,t,t[1],o?function(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|r[o];return t}return e.dirty|r}return e.dirty}(r,t[1],i,null):function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}(t[1]),null),(!o||1&i&&n!==(n="flex "+(t[0]?"flex-col-reverse":"flex-col")))&&_(e,"class",n)},i(t){o||(F(l,t),o=!0)},o(t){q(l,t),o=!1},d(t){t&&d(e),l&&l.d(t)}}}function wt(t,e,n){let{$$slots:o={},$$scope:r}=e,{reverse:l=!1}=e;return t.$$set=t=>{"reverse"in t&&n(0,l=t.reverse),"$$scope"in t&&n(1,r=t.$$scope)},[l,r,o]}class bt extends Z{constructor(t){super(),Y(this,t,wt,_t,i,{reverse:0})}}function Et(t){let e,n,o,r,l,i,c,s;return{c(){e=p("p"),n=v("Slot 1"),o=g(),r=p("p"),l=v("Slot 2"),i=g(),c=p("p"),s=v("Slot 3")},l(t){e=y(t,"P",{});var a=w(e);n=k(a,"Slot 1"),a.forEach(d),o=M(t),r=y(t,"P",{});var f=w(r);l=k(f,"Slot 2"),f.forEach(d),i=M(t),c=y(t,"P",{});var u=w(c);s=k(u,"Slot 3"),u.forEach(d)},m(t,a){h(t,e,a),u(e,n),h(t,o,a),h(t,r,a),u(r,l),h(t,i,a),h(t,c,a),u(c,s)},d(t){t&&d(e),t&&d(o),t&&d(r),t&&d(i),t&&d(c)}}}function yt(t){let e,n;return e=new bt({props:{reverse:t[0],$$slots:{default:[Et]},$$scope:{ctx:t}}}),{c(){G(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,o){K(e,t,o),n=!0},p(t,[n]){const o={};1&n&&(o.reverse=t[0]),2&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Q(e,t)}}}function St(t,e,n){let{reverse:o=!0}=e;return t.$$set=t=>{"reverse"in t&&n(0,o=t.reverse)},[o]}function kt(t){let n,o,r,l,i,c,s,a,f,m,$;return{c(){n=p("main"),o=p("h1"),r=v("Hello "),l=v(Mt),i=v("!"),c=g(),s=p("p"),a=v("Visit the "),f=p("a"),m=v("Svelte tutorial"),$=v(" to learn how to build Svelte apps."),this.h()},l(t){n=y(t,"MAIN",{});var e=w(n);o=y(e,"H1",{});var u=w(o);r=k(u,"Hello "),l=k(u,Mt),i=k(u,"!"),u.forEach(d),c=M(e),s=y(e,"P",{});var h=w(s);a=k(h,"Visit the "),f=y(h,"A",{href:!0});var p=w(f);m=k(p,"Svelte tutorial"),p.forEach(d),$=k(h," to learn how to build Svelte apps."),h.forEach(d),e.forEach(d),this.h()},h(){_(f,"href","https://svelte.dev/tutorial")},m(t,e){h(t,n,e),u(n,o),u(o,r),u(o,l),u(o,i),u(n,c),u(n,s),u(s,a),u(s,f),u(f,m),u(s,$)},p:e,i:e,o:e,d(t){t&&d(n)}}}let Mt="world";function Nt(t){return[]}function At(t){let n,o,r,l,i,c,s,a,f,m,$,x,b,E;return b=new ft({}),{c(){n=p("main"),o=p("h1"),r=v("Hello "),l=v(Ct),i=v("!"),c=g(),s=p("p"),a=v("Visit the "),f=p("a"),m=v("Svelte tutorial"),$=v(" to learn how to build Svelte apps."),x=g(),G(b.$$.fragment),this.h()},l(t){n=y(t,"MAIN",{});var e=w(n);o=y(e,"H1",{});var u=w(o);r=k(u,"Hello "),l=k(u,Ct),i=k(u,"!"),u.forEach(d),c=M(e),s=y(e,"P",{});var h=w(s);a=k(h,"Visit the "),f=y(h,"A",{href:!0});var p=w(f);m=k(p,"Svelte tutorial"),p.forEach(d),$=k(h," to learn how to build Svelte apps."),h.forEach(d),x=M(e),J(b.$$.fragment,e),e.forEach(d),this.h()},h(){_(f,"href","https://svelte.dev/tutorial")},m(t,e){h(t,n,e),u(n,o),u(o,r),u(o,l),u(o,i),u(n,c),u(n,s),u(s,a),u(s,f),u(f,m),u(s,$),u(n,x),K(b,n,null),E=!0},p:e,i(t){E||(F(b.$$.fragment,t),E=!0)},o(t){q(b.$$.fragment,t),E=!1},d(t){t&&d(n),Q(b)}}}let Ct="world";function Vt(t){let n,o,r,l,i,c,s,a,f,m,$;return{c(){n=p("main"),o=p("h1"),r=v("Hello "),l=v(It),i=v("!"),c=g(),s=p("p"),a=v("Visit the "),f=p("a"),m=v("Svelte tutorial"),$=v(" to learn how to build Svelte apps."),this.h()},l(t){n=y(t,"MAIN",{});var e=w(n);o=y(e,"H1",{});var u=w(o);r=k(u,"Hello "),l=k(u,It),i=k(u,"!"),u.forEach(d),c=M(e),s=y(e,"P",{});var h=w(s);a=k(h,"Visit the "),f=y(h,"A",{href:!0});var p=w(f);m=k(p,"Svelte tutorial"),p.forEach(d),$=k(h," to learn how to build Svelte apps."),h.forEach(d),e.forEach(d),this.h()},h(){_(f,"href","https://svelte.dev/tutorial")},m(t,e){h(t,n,e),u(n,o),u(o,r),u(o,l),u(o,i),u(n,c),u(n,s),u(s,a),u(s,f),u(f,m),u(s,$)},p:e,i:e,o:e,d(t){t&&d(n)}}}let It="world";function Pt(t){return[]}function Ht(t){let n,o,r,l,i,c,s,a,f,m,$;return{c(){n=p("main"),o=p("h1"),r=v("Hello "),l=v(zt),i=v("!"),c=g(),s=p("p"),a=v("Visit the "),f=p("a"),m=v("Svelte tutorial"),$=v(" to learn how to build Svelte apps."),this.h()},l(t){n=y(t,"MAIN",{});var e=w(n);o=y(e,"H1",{});var u=w(o);r=k(u,"Hello "),l=k(u,zt),i=k(u,"!"),u.forEach(d),c=M(e),s=y(e,"P",{});var h=w(s);a=k(h,"Visit the "),f=y(h,"A",{href:!0});var p=w(f);m=k(p,"Svelte tutorial"),p.forEach(d),$=k(h," to learn how to build Svelte apps."),h.forEach(d),e.forEach(d),this.h()},h(){_(f,"href","https://svelte.dev/tutorial")},m(t,e){h(t,n,e),u(n,o),u(o,r),u(o,l),u(o,i),u(n,c),u(n,s),u(s,a),u(s,f),u(f,m),u(s,$)},p:e,i:e,o:e,d(t){t&&d(n)}}}let zt="world";function Tt(t){return[]}t.Button=ft,t.CSVExport=class extends Z{constructor(t){super(),Y(this,t,et,tt,i,{data:1})}},t.Devtools=class extends Z{constructor(t){super(),Y(this,t,Nt,kt,i,{})}},t.ModeSwitcher=class extends Z{constructor(t){super(),Y(this,t,st,it,i,{})}},t.Navbar=class extends Z{constructor(t){super(),Y(this,t,vt,mt,i,{start:0,end:1})}},t.NewTab=class extends Z{constructor(t){super(),Y(this,t,null,At,i,{})}},t.Notification=class extends Z{constructor(t){super(),Y(this,t,ot,nt,i,{notifications:0})}},t.Options=class extends Z{constructor(t){super(),Y(this,t,Pt,Vt,i,{})}},t.Popup=class extends Z{constructor(t){super(),Y(this,t,Tt,Ht,i,{})}},t.Sidebar=class extends Z{constructor(t){super(),Y(this,t,xt,$t,i,{hidden:0})}},t.Stack=bt,t.StackView=class extends Z{constructor(t){super(),Y(this,t,St,yt,i,{reverse:0})}},Object.defineProperty(t,"__esModule",{value:!0})})); //# sourceMappingURL=index.js.map