@bootcamp-project/svelte-components
Version:
A browser extension for the entrance to your Entropedia-Space
3 lines (2 loc) • 21.7 kB
JavaScript
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 l(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}let i,s=!1;function a(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function u(t,e){if(s){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 r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const l=e[t].claim_order,c=(o>0&&e[n[o]].claim_order<=l?o+1:a(1,o,(t=>e[n[t]].claim_order),l))-1;r[t]=n[c]+1;const i=c+1;n[i]=t,o=Math.max(i,o)}const l=[],c=[];let i=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(l.push(e[t-1]);i>=t;i--)c.push(e[i]);i--}for(;i>=0;i--)c.push(e[i]);l.reverse(),c.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<c.length;e++){for(;n<l.length&&c[e].claim_order>=l[n].claim_order;)n++;const r=n<l.length?l[n]:null;t.insertBefore(c[e],r)}}(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 f(t,e,n){s&&!n?u(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function h(t){t.parentNode.removeChild(t)}function d(t){return document.createElement(t)}function p(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function m(t){return document.createTextNode(t)}function v(){return m(" ")}function g(){return m("")}function $(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 _(t){return Array.from(t.childNodes)}function w(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const l=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const l=t[r];if(e(l)){const e=n(l);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),l}}for(let r=t.claim_info.last_index-1;r>=0;r--){const l=t[r];if(e(l)){const e=n(l);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,l}}return r()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function b(t,e,n,r){return w(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function E(t,e,n){return b(t,e,n,d)}function y(t,e,n){return b(t,e,n,p)}function S(t,e){return w(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}),(()=>m(e)),!0)}function k(t){return S(t," ")}function M(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function A(t){i=t}function N(t){(function(){if(!i)throw new Error("Function called outside component initialization");return i})().$$.on_mount.push(t)}const C=[],I=[],V=[],P=[],H=Promise.resolve();let z=!1;function B(t){V.push(t)}let T=!1;const j=new Set;function L(){if(!T){T=!0;do{for(let t=0;t<C.length;t+=1){const e=C[t];A(e),O(e.$$)}for(A(null),C.length=0;I.length;)I.pop()();for(let t=0;t<V.length;t+=1){const e=V[t];j.has(e)||(j.add(e),e())}V.length=0}while(C.length);for(;P.length;)P.pop()();z=!1,T=!1,j.clear()}}function O(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(B)}}const D=new Set;function U(t,e){t&&t.i&&(D.delete(t),t.i(e))}function F(t,e,n,r){if(t&&t.o){if(D.has(t))return;D.add(t),undefined.c.push((()=>{D.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function q(t,e){t.d(1),e.delete(t.key)}function R(t,e,n,r,o,l,c,i,s,a,u,f){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=f(o,l,p),i=n(t);let s=c.get(i);s?r&&s.p(t,e):(s=a(i,t),s.c()),g.set(i,v[p]=s),i in m&&$.set(i,Math.abs(p-m[i]))}const x=new Set,_=new Set;function w(t){U(t,1),t.m(i,u),c.set(t.key,t),u=t.first,d--}for(;h&&d;){const e=v[d-1],n=t[h-1],r=e.key,o=n.key;e===n?(u=e.first,h--,d--):g.has(o)?!c.has(r)||x.has(r)?w(e):_.has(o)?h--:$.get(r)>$.get(o)?(_.add(r),w(e)):(x.add(o),h--):(s(n,c),h--)}for(;h--;){const e=t[h];g.has(e.key)||s(e,c)}for(;d;)w(v[d-1]);return v}function W(t){t&&t.c()}function G(t,e){t&&t.l(e)}function J(t,n,l,c){const{fragment:i,on_mount:s,on_destroy:a,after_update:u}=t.$$;i&&i.m(n,l),c||B((()=>{const n=s.map(e).filter(o);a?a.push(...n):r(n),t.$$.on_mount=[]})),u.forEach(B)}function K(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 Q(t,e){-1===t.$$.dirty[0]&&(C.push(t),z||(z=!0,H.then(L)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function X(e,o,l,c,a,u,f,d=[-1]){const p=i;A(e);const m=e.$$={fragment:null,ctx:null,props:u,update:t,not_equal:a,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(o.context||(p?p.$$.context:[])),callbacks:n(),dirty:d,skip_bound:!1,root:o.target||p.$$.root};f&&f(m.root);let v=!1;if(m.ctx=l?l(e,o.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return m.ctx&&a(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),v&&Q(e,t)),n})):[],m.update(),v=!0,r(m.before_update),m.fragment=!!c&&c(m.ctx),o.target){if(o.hydrate){s=!0;const t=_(o.target);m.fragment&&m.fragment.l(t),t.forEach(h)}else m.fragment&&m.fragment.c();o.intro&&U(e.$$.fragment),J(e,o.target,o.anchor,o.customElement),s=!1,L()}A(p)}class Y{$destroy(){K(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)}}function Z(e){let n,r;return{c(){n=d("a"),r=m("download CSV"),this.h()},l(t){n=E(t,"A",{target:!0,download:!0,href:!0});var e=_(n);r=S(e,"download CSV"),e.forEach(h),this.h()},h(){x(n,"target","_blank"),x(n,"download","output.csv"),x(n,"href",e[0])},m(t,e){f(t,n,e),u(n,r)},p(t,[e]){1&e&&x(n,"href",t[0])},i:t,o:t,d(t){t&&h(n)}}}function tt(t,e,n){let{data:r=[]}=e,o="";return t.$$set=t=>{"data"in t&&n(1,r=t.data)},t.$$.update=()=>{if(2&t.$$.dirty&&r.length>0){const[t,...e]=r;n(0,o="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")))}},[o,r]}class et extends Y{constructor(t){super(),X(this,t,tt,Z,l,{data:1})}}function nt(e){let n,r,o,l,c,i,s,a,p=e[0][0].message+"";return{c(){n=d("div"),r=d("p"),o=d("i"),l=v(),c=d("span"),i=m(p),this.h()},l(t){n=E(t,"DIV",{class:!0});var e=_(n);r=E(e,"P",{"v-if":!0,class:!0});var s=_(r);o=E(s,"I",{class:!0,style:!0}),_(o).forEach(h),l=k(s),c=E(s,"SPAN",{});var a=_(c);i=S(a,p),a.forEach(h),s.forEach(h),e.forEach(h),this.h()},h(){var t,e,l;x(o,"class","fas fa-lg fa-exclamation-triangle fill-current text-orange-500 mr-2"),t="line-height",e="1",o.style.setProperty(t,e,l?"important":""),x(r,"v-if","notifications[0]"),x(r,"class","bg-white p-3 rounded-md shadow-lg mb-2 cursor-pointer flex max-w-sm"),x(n,"class","absolute bottom-0 left-0 flex-col p-3")},m(t,h){f(t,n,h),u(n,r),u(r,o),u(r,l),u(r,c),u(c,i),s||(a=$(r,"click",e[1]),s=!0)},p(t,[e]){1&e&&p!==(p=t[0][0].message+"")&&M(i,p)},i:t,o:t,d(t){t&&h(n),s=!1,a()}}}function rt(t,e,n){let{notifications:r=[]}=e;return t.$$set=t=>{"notifications"in t&&n(0,r=t.notifications)},[r,()=>r.shift()]}class ot extends Y{constructor(t){super(),X(this,t,rt,nt,l,{notifications:0})}}function lt(t){let e,n;return{c(){e=p("svg"),n=p("path"),this.h()},l(t){e=y(t,"svg",{"aria-hidden":!0,focusable:!0,"data-prefix":!0,"data-icon":!0,class:!0,role:!0,xmlns:!0,viewBox:!0});var r=_(e);n=y(r,"path",{fill:!0,d:!0}),_(n).forEach(h),r.forEach(h),this.h()},h(){x(n,"fill","currentColor"),x(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"),x(e,"aria-hidden","true"),x(e,"focusable","false"),x(e,"data-prefix","far"),x(e,"data-icon","sun"),x(e,"class","svg-inline--fa fa-sun fa-w-16"),x(e,"role","img"),x(e,"xmlns","http://www.w3.org/2000/svg"),x(e,"viewBox","0 0 512 512")},m(t,r){f(t,e,r),u(e,n)},d(t){t&&h(e)}}}function ct(t){let e,n;return{c(){e=p("svg"),n=p("path"),this.h()},l(t){e=y(t,"svg",{"aria-hidden":!0,focusable:!0,"data-prefix":!0,"data-icon":!0,class:!0,role:!0,xmlns:!0,viewBox:!0});var r=_(e);n=y(r,"path",{fill:!0,d:!0}),_(n).forEach(h),r.forEach(h),this.h()},h(){x(n,"fill","currentColor"),x(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"),x(e,"aria-hidden","true"),x(e,"focusable","false"),x(e,"data-prefix","far"),x(e,"data-icon","moon"),x(e,"class","svg-inline--fa fa-moon fa-w-16"),x(e,"role","img"),x(e,"xmlns","http://www.w3.org/2000/svg"),x(e,"viewBox","0 0 512 512")},m(t,r){f(t,e,r),u(e,n)},d(t){t&&h(e)}}}function it(e){let n,r,o;function l(t,e){return t[0]?ct:lt}let c=l(e),i=c(e);return{c(){n=d("div"),i.c(),this.h()},l(t){n=E(t,"DIV",{class:!0});var e=_(n);i.l(e),e.forEach(h),this.h()},h(){x(n,"class","absolute top-0 right-0 w-8 h-8 p-2")},m(t,l){f(t,n,l),i.m(n,null),r||(o=$(n,"click",e[1]),r=!0)},p(t,[e]){c!==(c=l(t))&&(i.d(1),i=c(t),i&&(i.c(),i.m(n,null)))},i:t,o:t,d(t){t&&h(n),i.d(),r=!1,o()}}}function st(t,e,n){let r=!1;function o(t){n(0,r=t),document.documentElement.classList.toggle("dark",r)}return N((()=>{const t=window.localStorage.getItem("themePreference");("dark"===t||null==t&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&o(!0)})),[r,function(){o(!r),window.localStorage.setItem("themePreference",r?"dark":"light")}]}class at extends Y{constructor(t){super(),X(this,t,st,it,l,{})}}function ut(e){let n,r;return{c(){n=d("button"),r=m("Click Me")},l(t){n=E(t,"BUTTON",{});var e=_(n);r=S(e,"Click Me"),e.forEach(h)},m(t,e){f(t,n,e),u(n,r)},p:t,i:t,o:t,d(t){t&&h(n)}}}class ft extends Y{constructor(t){super(),X(this,t,null,ut,l,{})}}function ht(t,e,n){const r=t.slice();return r[2]=e[n].label,r[3]=e[n].onclick,r}function dt(t,e,n){const r=t.slice();return r[2]=e[n].label,r[3]=e[n].onclick,r}function pt(t,e){let n,r,l,c,i,s,a=e[2]+"";return{key:t,first:null,c(){n=d("span"),r=d("button"),l=m(a),c=v(),this.h()},l(t){n=E(t,"SPAN",{class:!0});var e=_(n);r=E(e,"BUTTON",{class:!0});var o=_(r);l=S(o,a),o.forEach(h),c=k(e),e.forEach(h),this.h()},h(){x(r,"class","minor-button"),x(n,"class","px-1"),this.first=n},m(t,a){f(t,n,a),u(n,r),u(r,l),u(n,c),i||(s=$(r,"click",(function(){o(e[3])&&e[3].apply(this,arguments)})),i=!0)},p(t,n){e=t,1&n&&a!==(a=e[2]+"")&&M(l,a)},d(t){t&&h(n),i=!1,s()}}}function mt(t,e){let n,r,l,c,i,s,a=e[2]+"";return{key:t,first:null,c(){n=d("span"),r=d("button"),l=m(a),c=v(),this.h()},l(t){n=E(t,"SPAN",{class:!0});var e=_(n);r=E(e,"BUTTON",{class:!0});var o=_(r);l=S(o,a),o.forEach(h),c=k(e),e.forEach(h),this.h()},h(){x(r,"class","minor-button"),x(n,"class","px-1"),this.first=n},m(t,a){f(t,n,a),u(n,r),u(r,l),u(n,c),i||(s=$(r,"click",(function(){o(e[3])&&e[3].apply(this,arguments)})),i=!0)},p(t,n){e=t,2&n&&a!==(a=e[2]+"")&&M(l,a)},d(t){t&&h(n),i=!1,s()}}}function vt(e){let n,r,o,l,c=[],i=new Map,s=[],a=new Map,p=e[0];const m=t=>t[2];for(let t=0;t<p.length;t+=1){let n=dt(e,p,t),r=m(n);i.set(r,c[t]=pt(r,n))}let g=e[1];const $=t=>t[2];for(let t=0;t<g.length;t+=1){let n=ht(e,g,t),r=$(n);a.set(r,s[t]=mt(r,n))}return{c(){n=d("nav"),r=d("div");for(let t=0;t<c.length;t+=1)c[t].c();o=v(),l=d("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){n=E(t,"NAV",{class:!0});var e=_(n);r=E(e,"DIV",{class:!0});var i=_(r);for(let t=0;t<c.length;t+=1)c[t].l(i);i.forEach(h),o=k(e),l=E(e,"DIV",{});var a=_(l);for(let t=0;t<s.length;t+=1)s[t].l(a);a.forEach(h),e.forEach(h),this.h()},h(){x(r,"class","flex-1"),x(n,"class","flex -mx-1 mb-2")},m(t,e){f(t,n,e),u(n,r);for(let t=0;t<c.length;t+=1)c[t].m(r,null);u(n,o),u(n,l);for(let t=0;t<s.length;t+=1)s[t].m(l,null)},p(t,[e]){1&e&&(p=t[0],c=R(c,e,m,1,t,p,i,r,q,pt,null,dt)),2&e&&(g=t[1],s=R(s,e,$,1,t,g,a,l,q,mt,null,ht))},i:t,o:t,d(t){t&&h(n);for(let t=0;t<c.length;t+=1)c[t].d();for(let t=0;t<s.length;t+=1)s[t].d()}}}function gt(t,e,n){let{start:r=[]}=e,{end:o=[]}=e;return t.$$set=t=>{"start"in t&&n(0,r=t.start),"end"in t&&n(1,o=t.end)},[r,o]}class $t extends Y{constructor(t){super(),X(this,t,gt,vt,l,{start:0,end:1})}}function xt(t){let e,n,r,o,l,c,i;return{c(){e=d("aside"),n=d("h1"),r=m("Favorites"),o=v(),l=d("ul"),c=d("li"),i=m("item"),this.h()},l(t){e=E(t,"ASIDE",{id:!0,class:!0});var s=_(e);n=E(s,"H1",{class:!0});var a=_(n);r=S(a,"Favorites"),a.forEach(h),o=k(s),l=E(s,"UL",{id:!0,class:!0});var u=_(l);c=E(u,"LI",{"v-for":!0,class:!0});var f=_(c);i=S(f,"item"),f.forEach(h),u.forEach(h),s.forEach(h),this.h()},h(){x(n,"class","pl-3 w-full font-semibold"),x(c,"v-for","(fav, i) in favorites"),x(c,"class","hover:bg-white hover:shadow-sm rounded-md mb-2 p-3 cursor-pointer focus:outline-none focus:shadow-outline group"),x(l,"id","favorites"),x(l,"class","font-sm flex w-full flex-col-reverse mb-3"),x(e,"id","sidebar"),x(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){f(t,e,s),u(e,n),u(n,r),u(e,o),u(e,l),u(l,c),u(c,i)},d(t){t&&h(e)}}}function _t(e){let n,r=!e[0]&&xt();return{c(){r&&r.c(),n=g()},l(t){r&&r.l(t),n=g()},m(t,e){r&&r.m(t,e),f(t,n,e)},p(t,[e]){t[0]?r&&(r.d(1),r=null):r||(r=xt(),r.c(),r.m(n.parentNode,n))},i:t,o:t,d(t){r&&r.d(t),t&&h(n)}}}function wt(t,e,n){let{hidden:r=!1}=e;return t.$$set=t=>{"hidden"in t&&n(0,r=t.hidden)},[r]}class bt extends Y{constructor(t){super(),X(this,t,wt,_t,l,{hidden:0})}}function Et(t){let e,n,r;const o=t[2].default,l=function(t,e,n,r){if(t){const o=c(t,e,n,r);return t[0](o)}}(o,t,t[1],null);return{c(){e=d("div"),l&&l.c(),this.h()},l(t){e=E(t,"DIV",{class:!0});var n=_(e);l&&l.l(n),n.forEach(h),this.h()},h(){x(e,"class",n="flex "+(t[0]?"flex-col-reverse":"flex-col"))},m(t,n){f(t,e,n),l&&l.m(e,null),r=!0},p(t,[i]){l&&l.p&&(!r||2&i)&&function(t,e,n,r,o,l){if(o){const i=c(e,n,r,l);t.p(i,o)}}(l,o,t,t[1],r?function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}(o,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),(!r||1&i&&n!==(n="flex "+(t[0]?"flex-col-reverse":"flex-col")))&&x(e,"class",n)},i(t){r||(U(l,t),r=!0)},o(t){F(l,t),r=!1},d(t){t&&h(e),l&&l.d(t)}}}function yt(t,e,n){let{$$slots:r={},$$scope:o}=e,{reverse:l=!1}=e;return t.$$set=t=>{"reverse"in t&&n(0,l=t.reverse),"$$scope"in t&&n(1,o=t.$$scope)},[l,o,r]}class St extends Y{constructor(t){super(),X(this,t,yt,Et,l,{reverse:0})}}function kt(t){let e,n,r,o,l,c,i,s;return{c(){e=d("p"),n=m("Slot 1"),r=v(),o=d("p"),l=m("Slot 2"),c=v(),i=d("p"),s=m("Slot 3")},l(t){e=E(t,"P",{});var a=_(e);n=S(a,"Slot 1"),a.forEach(h),r=k(t),o=E(t,"P",{});var u=_(o);l=S(u,"Slot 2"),u.forEach(h),c=k(t),i=E(t,"P",{});var f=_(i);s=S(f,"Slot 3"),f.forEach(h)},m(t,a){f(t,e,a),u(e,n),f(t,r,a),f(t,o,a),u(o,l),f(t,c,a),f(t,i,a),u(i,s)},d(t){t&&h(e),t&&h(r),t&&h(o),t&&h(c),t&&h(i)}}}function Mt(t){let e,n;return e=new St({props:{reverse:t[0],$$slots:{default:[kt]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},l(t){G(e.$$.fragment,t)},m(t,r){J(e,t,r),n=!0},p(t,[n]){const r={};1&n&&(r.reverse=t[0]),2&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(U(e.$$.fragment,t),n=!0)},o(t){F(e.$$.fragment,t),n=!1},d(t){K(e,t)}}}function At(t,e,n){let{reverse:r=!0}=e;return t.$$set=t=>{"reverse"in t&&n(0,r=t.reverse)},[r]}class Nt extends Y{constructor(t){super(),X(this,t,At,Mt,l,{reverse:0})}}function Ct(e){let n,r,o,l,c,i,s,a,p,g,$;return{c(){n=d("main"),r=d("h1"),o=m("Hello "),l=m(It),c=m("!"),i=v(),s=d("p"),a=m("Visit the "),p=d("a"),g=m("Svelte tutorial"),$=m(" to learn how to build Svelte apps."),this.h()},l(t){n=E(t,"MAIN",{});var e=_(n);r=E(e,"H1",{});var u=_(r);o=S(u,"Hello "),l=S(u,It),c=S(u,"!"),u.forEach(h),i=k(e),s=E(e,"P",{});var f=_(s);a=S(f,"Visit the "),p=E(f,"A",{href:!0});var d=_(p);g=S(d,"Svelte tutorial"),d.forEach(h),$=S(f," to learn how to build Svelte apps."),f.forEach(h),e.forEach(h),this.h()},h(){x(p,"href","https://svelte.dev/tutorial")},m(t,e){f(t,n,e),u(n,r),u(r,o),u(r,l),u(r,c),u(n,i),u(n,s),u(s,a),u(s,p),u(p,g),u(s,$)},p:t,i:t,o:t,d(t){t&&h(n)}}}let It="world";function Vt(t){return[]}class Pt extends Y{constructor(t){super(),X(this,t,Vt,Ct,l,{})}}function Ht(e){let n,r,o,l,c,i,s,a,p,g,$,w,b,y;return b=new ft({}),{c(){n=d("main"),r=d("h1"),o=m("Hello "),l=m(zt),c=m("!"),i=v(),s=d("p"),a=m("Visit the "),p=d("a"),g=m("Svelte tutorial"),$=m(" to learn how to build Svelte apps."),w=v(),W(b.$$.fragment),this.h()},l(t){n=E(t,"MAIN",{});var e=_(n);r=E(e,"H1",{});var u=_(r);o=S(u,"Hello "),l=S(u,zt),c=S(u,"!"),u.forEach(h),i=k(e),s=E(e,"P",{});var f=_(s);a=S(f,"Visit the "),p=E(f,"A",{href:!0});var d=_(p);g=S(d,"Svelte tutorial"),d.forEach(h),$=S(f," to learn how to build Svelte apps."),f.forEach(h),w=k(e),G(b.$$.fragment,e),e.forEach(h),this.h()},h(){x(p,"href","https://svelte.dev/tutorial")},m(t,e){f(t,n,e),u(n,r),u(r,o),u(r,l),u(r,c),u(n,i),u(n,s),u(s,a),u(s,p),u(p,g),u(s,$),u(n,w),J(b,n,null),y=!0},p:t,i(t){y||(U(b.$$.fragment,t),y=!0)},o(t){F(b.$$.fragment,t),y=!1},d(t){t&&h(n),K(b)}}}let zt="world";class Bt extends Y{constructor(t){super(),X(this,t,null,Ht,l,{})}}function Tt(e){let n,r,o,l,c,i,s,a,p,g,$;return{c(){n=d("main"),r=d("h1"),o=m("Hello "),l=m(jt),c=m("!"),i=v(),s=d("p"),a=m("Visit the "),p=d("a"),g=m("Svelte tutorial"),$=m(" to learn how to build Svelte apps."),this.h()},l(t){n=E(t,"MAIN",{});var e=_(n);r=E(e,"H1",{});var u=_(r);o=S(u,"Hello "),l=S(u,jt),c=S(u,"!"),u.forEach(h),i=k(e),s=E(e,"P",{});var f=_(s);a=S(f,"Visit the "),p=E(f,"A",{href:!0});var d=_(p);g=S(d,"Svelte tutorial"),d.forEach(h),$=S(f," to learn how to build Svelte apps."),f.forEach(h),e.forEach(h),this.h()},h(){x(p,"href","https://svelte.dev/tutorial")},m(t,e){f(t,n,e),u(n,r),u(r,o),u(r,l),u(r,c),u(n,i),u(n,s),u(s,a),u(s,p),u(p,g),u(s,$)},p:t,i:t,o:t,d(t){t&&h(n)}}}let jt="world";function Lt(t){return[]}class Ot extends Y{constructor(t){super(),X(this,t,Lt,Tt,l,{})}}function Dt(e){let n,r,o,l,c,i,s,a,p,g,$;return{c(){n=d("main"),r=d("h1"),o=m("Hello "),l=m(Ut),c=m("!"),i=v(),s=d("p"),a=m("Visit the "),p=d("a"),g=m("Svelte tutorial"),$=m(" to learn how to build Svelte apps."),this.h()},l(t){n=E(t,"MAIN",{});var e=_(n);r=E(e,"H1",{});var u=_(r);o=S(u,"Hello "),l=S(u,Ut),c=S(u,"!"),u.forEach(h),i=k(e),s=E(e,"P",{});var f=_(s);a=S(f,"Visit the "),p=E(f,"A",{href:!0});var d=_(p);g=S(d,"Svelte tutorial"),d.forEach(h),$=S(f," to learn how to build Svelte apps."),f.forEach(h),e.forEach(h),this.h()},h(){x(p,"href","https://svelte.dev/tutorial")},m(t,e){f(t,n,e),u(n,r),u(r,o),u(r,l),u(r,c),u(n,i),u(n,s),u(s,a),u(s,p),u(p,g),u(s,$)},p:t,i:t,o:t,d(t){t&&h(n)}}}let Ut="world";function Ft(t){return[]}class qt extends Y{constructor(t){super(),X(this,t,Ft,Dt,l,{})}}export{ft as Button,et as CSVExport,Pt as Devtools,at as ModeSwitcher,$t as Navbar,Bt as NewTab,ot as Notification,Ot as Options,qt as Popup,bt as Sidebar,St as Stack,Nt as StackView};
//# sourceMappingURL=index.mjs.map