@teiler/svelte 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @teiler/svelte
2
2
 
3
+ ## 0.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - [#9](https://github.com/nerdslabs/teiler/pull/9) [`bd16828`](https://github.com/nerdslabs/teiler/commit/bd168288b500a340ae922fa0e6d97ade3be0bdc0) Thanks [@drozdzynski](https://github.com/drozdzynski)! - Update dependencies
8
+
9
+ - Updated dependencies [[`bd16828`](https://github.com/nerdslabs/teiler/commit/bd168288b500a340ae922fa0e6d97ade3be0bdc0)]:
10
+ - @teiler/core@0.0.25
11
+
12
+ ## 0.0.24
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`46272a7`](https://github.com/nerdslabs/teiler/commit/46272a7fe16ed077053ba75c2a2a299a77d55751)]:
17
+ - @teiler/core@0.0.24
18
+
3
19
  ## 0.0.23
4
20
 
5
21
  ### Patch Changes
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("svelte/internal");require("svelte/internal/disclose-version");var t=require("svelte"),n=require("svelte/store"),s=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function l(e){const t={...e};let n=[];const s="undefined"==typeof document?function(){const e={};return{insertRule:function(t,n){return e[t]=n,Object.keys(e).length},deleteRule:function(t){delete e[t]},getRule:function(t){return e[t]||null},getAllRules:function(){return Object.values(e).join(" ")},getAllKeys:function(){return Object.keys(e)}}}():function(e){const t=function(e){const t=document.head,n=e||t,s=document.createElement("style");return s.setAttribute("data-teiler",""),n.appendChild(s),s}(e),n=new Map;return{insertRule:function(e,s){const l=document.createTextNode(s);return!1===n.has(e)&&(n.set(e,l),t.appendChild(l)),n.size},deleteRule:function(e){t.removeChild(n.get(e)),n.delete(e)},getRule:function(e){return n.get(e)?.textContent||null},getAllRules:function(){return Array.from(n.values()).reduce(((e,t)=>e+" "+t.textContent),"")},getAllKeys:function(){return Array.from(n.keys())}}}(t.container);return{insert:(e,t)=>{!1===n.includes(e)&&s.insertRule(e,t)},dump:()=>s.getAllRules(),extract:()=>({css:s.getAllRules(),ids:s.getAllKeys()}),hydrate:e=>{n=e||[]}}}function i(e){let t,n=e.length,s=n,l=0;for(;n>=4;)t=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),t^=t>>>24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),s=1540483477*(65535&s)+((1540483477*(s>>>16)&65535)<<16)^t,n-=4,++l;switch(n){case 3:s^=(255&e.charCodeAt(l+2))<<16;case 2:s^=(255&e.charCodeAt(l+1))<<8;case 1:s^=255&e.charCodeAt(l),s=1540483477*(65535&s)+((1540483477*(s>>>16)&65535)<<16)}return s^=s>>>13,s=1540483477*(65535&s)+((1540483477*(s>>>16)&65535)<<16),s^=s>>>15,(s>>>0).toString(36)}const c=e=>(t,...n)=>{if("__pattern__"in t)return(e,...n)=>{const s=[Array.from(e),n],l=[...t.styles,s],c=l.reduce(((e,[t])=>e+t.join("")),"");return{styles:l,id:"t"+i(c),tag:t.tag,__pattern__:!0}};{const s=t,l=[[Array.from(s),n]],c=l.reduce(((e,[t])=>e+t.join("")),"");return{styles:l,id:"t"+i(c),tag:e,__pattern__:!0}}},r=c("div");s.forEach((e=>{r[e]=c(e)})),r.global=c(null);var a="-ms-",u="-moz-",o="-webkit-",b="comm",f="rule",h="decl",d="@import",p="@keyframes",g="@layer",m=Math.abs,y=String.fromCharCode,$=Object.assign;function _(e){return e.trim()}function v(e,t){return(e=t.exec(e))?e[0]:e}function k(e,t,n){return e.replace(t,n)}function w(e,t,n){return e.indexOf(t,n)}function x(e,t){return 0|e.charCodeAt(t)}function j(e,t,n){return e.slice(t,n)}function A(e){return e.length}function C(e){return e.length}function D(e,t){return t.push(e),e}function R(e,t){return e.filter((function(e){return!v(e,t)}))}var E=1,q=1,O=0,S=0,z=0,T="";function N(e,t,n,s,l,i,c,r){return{value:e,root:t,parent:n,type:s,props:l,children:i,line:E,column:q,length:c,return:"",siblings:r}}function K(e,t){return $(N("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function M(e){for(;e.root;)e=K(e.root,{children:[e]});D(e,e.siblings)}function P(){return z=S<O?x(T,S++):0,q++,10===z&&(q=1,E++),z}function G(){return x(T,S)}function H(){return S}function I(e,t){return j(T,e,t)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y(e){return _(I(S-1,J(91===e?e+2:40===e?e+1:e)))}function B(e){for(;(z=G())&&z<33;)P();return L(e)>2||L(z)>3?"":" "}function F(e,t){for(;--t&&P()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return I(e,H()+(t<6&&32==G()&&32==P()))}function J(e){for(;P();)switch(z){case e:return S;case 34:case 39:34!==e&&39!==e&&J(z);break;case 40:41===e&&J(e);break;case 92:P()}return S}function Q(e,t){for(;P()&&e+z!==57&&(e+z!==84||47!==G()););return"/*"+I(t,S-1)+"*"+y(47===e?e:P())}function U(e){for(;!L(G());)P();return I(e,S)}function V(e){return function(e){return T="",e}(W("",null,null,null,[""],(E=q=1,O=A(T=e),S=0,e=[]),0,[0],e))}function W(e,t,n,s,l,i,c,r,a){for(var u=0,o=0,b=c,f=0,h=0,d=0,p=1,g=1,$=1,_=0,v="",j=l,C=i,R=s,O=v;g;)switch(d=_,_=P()){case 40:if(108!=d&&58==x(O,b-1)){-1!=w(O+=k(Y(_),"&","&\f"),"&\f",m(u?r[u-1]:0))&&($=-1);break}case 34:case 39:case 91:O+=Y(_);break;case 9:case 10:case 13:case 32:O+=B(d);break;case 92:O+=F(H()-1,7);continue;case 47:switch(G()){case 42:case 47:D(Z(Q(P(),H()),t,n,a),a);break;default:O+="/"}break;case 123*p:r[u++]=A(O)*$;case 125*p:case 59:case 0:switch(_){case 0:case 125:g=0;case 59+o:-1==$&&(O=k(O,/\f/g,"")),h>0&&A(O)-b&&D(h>32?ee(O+";",s,n,b-1,a):ee(k(O," ","")+";",s,n,b-2,a),a);break;case 59:O+=";";default:if(D(R=X(O,t,n,u,o,l,r,v,j=[],C=[],b,i),i),123===_)if(0===o)W(O,t,R,R,j,i,b,r,C);else switch(99===f&&110===x(O,3)?100:f){case 100:case 108:case 109:case 115:W(e,R,R,s&&D(X(e,R,R,0,0,l,r,v,l,j=[],b,C),C),l,C,b,r,s?j:C);break;default:W(O,R,R,R,[""],C,0,r,C)}}u=o=h=0,p=$=1,v=O="",b=c;break;case 58:b=1+A(O),h=d;default:if(p<1)if(123==_)--p;else if(125==_&&0==p++&&125==(z=S>0?x(T,--S):0,q--,10===z&&(q=1,E--),z))continue;switch(O+=y(_),_*p){case 38:$=o>0?1:(O+="\f",-1);break;case 44:r[u++]=(A(O)-1)*$,$=1;break;case 64:45===G()&&(O+=Y(P())),f=G(),o=b=A(v=O+=U(H())),_++;break;case 45:45===d&&2==A(O)&&(p=0)}}return i}function X(e,t,n,s,l,i,c,r,a,u,o,b){for(var h=l-1,d=0===l?i:[""],p=C(d),g=0,y=0,$=0;g<s;++g)for(var v=0,w=j(e,h+1,h=m(y=c[g])),x=e;v<p;++v)(x=_(y>0?d[v]+" "+w:k(w,/&\f/g,d[v])))&&(a[$++]=x);return N(e,t,n,0===l?f:r,a,u,o,b)}function Z(e,t,n,s){return N(e,t,n,b,y(z),j(e,2,-2),0,s)}function ee(e,t,n,s,l){return N(e,t,n,h,j(e,0,s),j(e,s+1,-1),s,l)}function te(e,t,n){switch(l=t,45^x(s=e,0)?(((l<<2^x(s,0))<<2^x(s,1))<<2^x(s,2))<<2^x(s,3):0){case 5103:return o+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return o+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return o+e+u+e+a+e+e;case 5936:switch(x(e,t+11)){case 114:return o+e+a+k(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return o+e+a+k(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return o+e+a+k(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return o+e+a+e+e;case 6165:return o+e+a+"flex-"+e+e;case 5187:return o+e+k(e,/(\w+).+(:[^]+)/,o+"box-$1$2"+a+"flex-$1$2")+e;case 5443:return o+e+a+"flex-item-"+k(e,/flex-|-self/g,"")+(v(e,/flex-|baseline/)?"":a+"grid-row-"+k(e,/flex-|-self/g,""))+e;case 4675:return o+e+a+"flex-line-pack"+k(e,/align-content|flex-|-self/g,"")+e;case 5548:return o+e+a+k(e,"shrink","negative")+e;case 5292:return o+e+a+k(e,"basis","preferred-size")+e;case 6060:return o+"box-"+k(e,"-grow","")+o+e+a+k(e,"grow","positive")+e;case 4554:return o+k(e,/([^-])(transform)/g,"$1"+o+"$2")+e;case 6187:return k(k(k(e,/(zoom-|grab)/,o+"$1"),/(image-set)/,o+"$1"),e,"")+e;case 5495:case 3959:return k(e,/(image-set\([^]*)/,o+"$1$`$1");case 4968:return k(k(e,/(.+:)(flex-)?(.*)/,o+"box-pack:$3"+a+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+o+e+e;case 4200:if(!v(e,/flex-|baseline/))return a+"grid-column-align"+j(e,t)+e;break;case 2592:case 3360:return a+k(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,v(e.props,/grid-\w+-end/)}))?~w(e+(n=n[t].value),"span",0)?e:a+k(e,"-start","")+e+a+"grid-row-span:"+(~w(n,"span",0)?v(n,/\d+/):+v(n,/\d+/)-+v(e,/\d+/))+";":a+k(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return v(e.props,/grid-\w+-start/)}))?e:a+k(k(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return k(e,/(.+)-inline(.+)/,o+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A(e)-1-t>6)switch(x(e,t+1)){case 109:if(45!==x(e,t+4))break;case 102:return k(e,/(.+:)(.+)-([^]+)/,"$1"+o+"$2-$3$1"+u+(108==x(e,t+3)?"$3":"$2-$3"))+e;case 115:return~w(e,"stretch",0)?te(k(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return k(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,s,l,i,c,r){return a+n+":"+s+r+(l?a+n+"-span:"+(i?c:+c-+s)+r:"")+e}));case 4949:if(121===x(e,t+6))return k(e,":",":"+o)+e;break;case 6444:switch(x(e,45===x(e,14)?18:11)){case 120:return k(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+o+(45===x(e,14)?"inline-":"")+"box$3$1"+o+"$2$3$1"+a+"$2box$3")+e;case 100:return k(e,":",":"+a)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return k(e,"scroll-","scroll-snap-")+e}var s,l;return e}function ne(e,t){for(var n="",s=0;s<e.length;s++)n+=t(e[s],s,e,t)||"";return n}function se(e,t,n,s){switch(e.type){case g:if(e.children.length)break;case d:case h:return e.return=e.return||e.value;case b:return"";case p:return e.return=e.value+"{"+ne(e.children,s)+"}";case f:if(!A(e.value=e.props.join(",")))return""}return A(n=ne(e.children,s))?e.return=e.value+"{"+n+"}":""}function le(e,t,n,s){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=te(e.value,e.length,n));case p:return ne([K(e,{value:k(e.value,"@","@"+o)})],s);case f:if(e.length)return(n=e.props).map((function(t){switch(v(t,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":M(K(e,{props:[k(t,/:(read-\w+)/,":"+u+"$1")]})),M(K(e,{props:[t]})),$(e,{props:R(n,s)});break;case"::placeholder":M(K(e,{props:[k(t,/:(plac\w+)/,":"+o+"input-$1")]})),M(K(e,{props:[k(t,/:(plac\w+)/,":"+u+"$1")]})),M(K(e,{props:[k(t,/:(plac\w+)/,a+"input-$1")]})),M(K(e,{props:[t]})),$(e,{props:R(n,s)})}return""})).join("")}}const ie=e=>null==e||!1===e||""===e;function ce(e,t){return e.reduce(((e,[n,s])=>{const l=n.reduce(((n,l,i)=>{n=[...n,l];const c=s.at(i);if(c){let s=null;if("object"!=typeof c&&"function"!=typeof c||!("styleDefinition"in c))if("function"==typeof c){const n=c(t);if("object"==typeof n&&"__css__"in n){const{css:l,definitions:i}=ce(n.styles,t);e.definitions=[...e.definitions,...i],s=l}else"string"==typeof n&&n.includes("[object Object]")&&console.error("[teiler]","If you trying to use nested component/pattern selector inside function use function `css`, sample: \n${({ someProperty }) => css`${NastedComponent} {...}`}"),s=n}else if("object"==typeof c&&"__pattern__"in c)s="."+c.id;else if("object"==typeof c){const t=c;e.definitions=[...e.definitions,t],s=t.id}else s=c;else{const t=c.styleDefinition;e.definitions=[...e.definitions,t],s="."+t.id}!1===ie(s)&&(n=[...n,s])}return n}),[]).join("");return e.css=e.css+l,e}),{css:"",definitions:[]})}function re(e){const t=[];var n,s,l;return ne(V(e),(s=[se,le,(n=e=>{t.push(e)},function(e){e.root||(e=e.return)&&n(e)})],l=C(s),function(e,t,n,i){for(var c="",r=0;r<l;r++)c+=s[r](e,t,n,i)||"";return c})),t.join(" ")}const ae=(e,t)=>({type:"component",id:"t"+i(t.reduce(((e,[t])=>e+t.join("")),"")),styles:t,tag:e});function ue(e,t,n){const{styles:s,type:l}=t,{css:c,definitions:r}=ce(s,n),a=i(c);if(r.forEach((t=>ue(e,t,n))),"component"===l){const t=re(`.teiler-${a} { ${c} }`);return e.insert(a,t),`teiler-${a}`}if("keyframes"===l){const{id:n}=t,s=re(`@keyframes ${n} { ${c} }`);e.insert(a,s)}else{const t=re(`${c}`);e.insert(a,t)}return null}let oe=null;const be="STYLE_SHEET";function fe(t){let n;const s=t[2].default,l=e.create_slot(s,t,t[1],null);return{c(){l&&l.c()},m(e,t){l&&l.m(e,t),n=!0},p(t,[i]){l&&l.p&&(!n||2&i)&&e.update_slot_base(l,s,t,t[1],n?e.get_slot_changes(s,t[1],i,null):e.get_all_dirty_from_scope(t[1]),null)},i(t){n||(e.transition_in(l,t),n=!0)},o(t){e.transition_out(l,t),n=!1},d(e){l&&l.d(e)}}}const he="THEME";function de(e,s,l){let{$$slots:i={},$$scope:c}=s,{theme:r}=s;const a=n.writable(r);return t.setContext(he,a),e.$$set=e=>{"theme"in e&&l(0,r=e.theme),"$$scope"in e&&l(1,c=e.$$scope)},e.$$.update=()=>{1&e.$$.dirty&&a.set(r)},[r,c,i]}class pe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,de,fe,e.safe_not_equal,{theme:0})}}function ge(t){let n,s,l,i;const c=t[8].default,r=e.create_slot(c,t,t[7],null);let a=[{class:t[1]},t[2]],u={};for(let t=0;t<a.length;t+=1)u=e.assign(u,a[t]);return{c(){n=e.element(t[0].tag),r&&r.c(),e.set_dynamic_element_data(t[0].tag)(n,u)},m(c,a){e.insert(c,n,a),r&&r.m(n,null),s=!0,l||(i=[e.listen(n,"copy",t[9]),e.listen(n,"cut",t[10]),e.listen(n,"paste",t[11]),e.listen(n,"compositionend",t[12]),e.listen(n,"compositionstart",t[13]),e.listen(n,"compositionupdate",t[14]),e.listen(n,"focus",t[15]),e.listen(n,"focusin",t[16]),e.listen(n,"focusout",t[17]),e.listen(n,"blur",t[18]),e.listen(n,"change",t[19]),e.listen(n,"beforeinput",t[20]),e.listen(n,"input",t[21]),e.listen(n,"reset",t[22]),e.listen(n,"submit",t[23]),e.listen(n,"invalid",t[24]),e.listen(n,"formdata",t[25]),e.listen(n,"load",t[26]),e.listen(n,"error",t[27]),e.listen(n,"beforetoggle",t[28]),e.listen(n,"toggle",t[29]),e.listen(n,"keydown",t[30]),e.listen(n,"keypress",t[31]),e.listen(n,"keyup",t[32]),e.listen(n,"abort",t[33]),e.listen(n,"canplay",t[34]),e.listen(n,"canplaythrough",t[35]),e.listen(n,"cuechange",t[36]),e.listen(n,"durationchange",t[37]),e.listen(n,"emptied",t[38]),e.listen(n,"encrypted",t[39]),e.listen(n,"ended",t[40]),e.listen(n,"loadeddata",t[41]),e.listen(n,"loadedmetadata",t[42]),e.listen(n,"loadstart",t[43]),e.listen(n,"pause",t[44]),e.listen(n,"play",t[45]),e.listen(n,"playing",t[46]),e.listen(n,"progress",t[47]),e.listen(n,"ratechange",t[48]),e.listen(n,"seeked",t[49]),e.listen(n,"seeking",t[50]),e.listen(n,"stalled",t[51]),e.listen(n,"suspend",t[52]),e.listen(n,"timeupdate",t[53]),e.listen(n,"volumechange",t[54]),e.listen(n,"waiting",t[55]),e.listen(n,"auxclick",t[56]),e.listen(n,"click",t[57]),e.listen(n,"contextmenu",t[58]),e.listen(n,"dblclick",t[59]),e.listen(n,"drag",t[60]),e.listen(n,"dragend",t[61]),e.listen(n,"dragenter",t[62]),e.listen(n,"dragexit",t[63]),e.listen(n,"dragleave",t[64]),e.listen(n,"dragover",t[65]),e.listen(n,"dragstart",t[66]),e.listen(n,"drop",t[67]),e.listen(n,"mousedown",t[68]),e.listen(n,"mouseenter",t[69]),e.listen(n,"mouseleave",t[70]),e.listen(n,"mousemove",t[71]),e.listen(n,"mouseout",t[72]),e.listen(n,"mouseover",t[73]),e.listen(n,"mouseup",t[74]),e.listen(n,"select",t[75]),e.listen(n,"selectionchange",t[76]),e.listen(n,"selectstart",t[77]),e.listen(n,"touchcancel",t[78]),e.listen(n,"touchend",t[79]),e.listen(n,"touchmove",t[80]),e.listen(n,"touchstart",t[81]),e.listen(n,"gotpointercapture",t[82]),e.listen(n,"pointercancel",t[83]),e.listen(n,"pointerdown",t[84]),e.listen(n,"pointerenter",t[85]),e.listen(n,"pointerleave",t[86]),e.listen(n,"pointermove",t[87]),e.listen(n,"pointerout",t[88]),e.listen(n,"pointerover",t[89]),e.listen(n,"pointerup",t[90]),e.listen(n,"lostpointercapture",t[91]),e.listen(n,"gamepadconnected",t[92]),e.listen(n,"gamepaddisconnected",t[93]),e.listen(n,"scroll",t[94]),e.listen(n,"scrollend",t[95]),e.listen(n,"resize",t[96]),e.listen(n,"wheel",t[97]),e.listen(n,"animationstart",t[98]),e.listen(n,"animationend",t[99]),e.listen(n,"animationiteration",t[100]),e.listen(n,"transitionstart",t[101]),e.listen(n,"transitionrun",t[102]),e.listen(n,"transitionend",t[103]),e.listen(n,"transitioncancel",t[104]),e.listen(n,"outrostart",t[105]),e.listen(n,"outroend",t[106]),e.listen(n,"introstart",t[107]),e.listen(n,"introend",t[108]),e.listen(n,"message",t[109]),e.listen(n,"messageerror",t[110]),e.listen(n,"visibilitychange",t[111]),e.listen(n,"cancel",t[112]),e.listen(n,"close",t[113]),e.listen(n,"fullscreenchange",t[114]),e.listen(n,"fullscreenerror",t[115])],l=!0)},p(t,l){r&&r.p&&(!s||128&l[0])&&e.update_slot_base(r,c,t,t[7],s?e.get_slot_changes(c,t[7],l,null):e.get_all_dirty_from_scope(t[7]),null),e.set_dynamic_element_data(t[0].tag)(n,u=e.get_spread_update(a,[(!s||2&l[0])&&{class:t[1]},4&l[0]&&t[2]]))},i(t){s||(e.transition_in(r,t),s=!0)},o(t){e.transition_out(r,t),s=!1},d(t){t&&e.detach(n),r&&r.d(t),l=!1,e.run_all(i)}}}function me(t){let n,s,l=t[0].tag,i=t[0].tag&&ge(t);return{c(){i&&i.c(),n=e.empty()},m(t,l){i&&i.m(t,l),e.insert(t,n,l),s=!0},p(t,s){t[0].tag?l?e.safe_not_equal(l,t[0].tag)?(i.d(1),i=ge(t),l=t[0].tag,i.c(),i.m(n.parentNode,n)):i.p(t,s):(i=ge(t),l=t[0].tag,i.c(),i.m(n.parentNode,n)):l&&(i.d(1),i=null,l=t[0].tag)},i(t){s||(e.transition_in(i,t),s=!0)},o(t){e.transition_out(i,t),s=!1},d(t){t&&e.detach(n),i&&i.d(t)}}}function ye(n,s,i){let c,r,a,u;const o=["styleDefinition"];let b,f=e.compute_rest_props(s,o),{$$slots:h={},$$scope:d}=s,{styleDefinition:p}=s;const g=t.getContext(be)||(null===oe&&(oe=l({})),oe),m=t.getContext(he);return e.component_subscribe(n,m,(e=>i(6,b=e))),n.$$set=t=>{s=e.assign(e.assign({},s),e.exclude_internal_props(t)),i(117,f=e.compute_rest_props(s,o)),"styleDefinition"in t&&i(0,p=t.styleDefinition),"$$scope"in t&&i(7,d=t.$$scope)},n.$$.update=()=>{i(4,c=ue(g,p,{...f,theme:b})),i(5,r=Object.entries(f).filter((([e,t])=>"_"!==e[0]&&"class"!==e))),32&n.$$.dirty[0]&&i(2,a=Object.fromEntries(r)),i(1,u=f.class?`${c} ${p.id} ${f.class}`:`${c} ${p.id}`)},[p,u,a,m,c,r,b,d,h,function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)},function(t){e.bubble.call(this,n,t)}]}class $e extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ye,me,e.safe_not_equal,{styleDefinition:0},null,[-1,-1,-1,-1])}}const _e=e=>{var t;return(t=class extends $e{constructor(t){super({...t,props:{...t.props,styleDefinition:e}})}}).styleDefinition=e,t},ve=(e,t)=>(n,...s)=>function(e,t,n,s,...l){if(Array.isArray(s)){const i=s,c=[Array.from(i),l],r=t(e,[c]);return n(r)}{const e=s;return(s,...l)=>{const i=[Array.from(s),l],c=t(e.styleDefinition.tag,[...e.styleDefinition.styles,i]);return n(c)}}}(e,t,_e,n,...s),ke=ve("div",ae);s.forEach((e=>{ke[e]=ve(e,ae)}));const we=ke,xe=ve(null,((e,t)=>({type:"global",id:"t"+i(t.reduce(((e,[t])=>e+t.join("")),"")),styles:t,tag:e})));exports.ThemeProvider=pe,exports.component=we,exports.createComponent=_e,exports.global=xe,exports.keyframes=function(e,...t){const n=[Array.from(e),t];return{type:"keyframes",id:"teiler-"+i(e.join("")),styles:[n],tag:null}};
1
+ "use strict";var t=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text"]);function e(t){const e={...t};let n=[];const c="undefined"==typeof document?function(){const t={};return{insertRule:function(e,n){return t[e]=n,Object.keys(t).length},deleteRule:function(e){delete t[e]},getRule:function(e){return t[e]||null},getAllRules:function(){return Object.values(t).join(" ")},getAllKeys:function(){return Object.keys(t)}}}():function(t){const e=function(t){const e=document.head,n=t||e,c=document.createElement("style");return c.setAttribute("data-teiler",""),n.appendChild(c),c}(t),n=new Map;return{insertRule:function(t,c){const r=document.createTextNode(c);return!1===n.has(t)&&(n.set(t,r),e.appendChild(r)),n.size},deleteRule:function(t){e.removeChild(n.get(t)),n.delete(t)},getRule:function(t){return n.get(t)?.textContent||null},getAllRules:function(){return Array.from(n.values()).reduce(((t,e)=>t+" "+e.textContent),"")},getAllKeys:function(){return Array.from(n.keys())}}}(e.container);return{insert:(t,e)=>{!1===n.includes(t)&&c.insertRule(t,e)},dump:()=>c.getAllRules(),extract:()=>({css:c.getAllRules(),ids:c.getAllKeys()}),hydrate:t=>{n=t||[]}}}function n(t){let e,n=t.length,c=n,r=0;for(;n>=4;)e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24,e=1540483477*(65535&e)+((1540483477*(e>>>16)&65535)<<16),e^=e>>>24,e=1540483477*(65535&e)+((1540483477*(e>>>16)&65535)<<16),c=1540483477*(65535&c)+((1540483477*(c>>>16)&65535)<<16)^e,n-=4,++r;switch(n){case 3:c^=(255&t.charCodeAt(r+2))<<16;case 2:c^=(255&t.charCodeAt(r+1))<<8;case 1:c^=255&t.charCodeAt(r),c=1540483477*(65535&c)+((1540483477*(c>>>16)&65535)<<16)}return c^=c>>>13,c=1540483477*(65535&c)+((1540483477*(c>>>16)&65535)<<16),c^=c>>>15,(c>>>0).toString(36)}const c=t=>(e,...c)=>{if("__pattern__"in e)return(t,...c)=>{const r=[Array.from(t),c],o=[...e.styles,r],i=o.reduce(((t,[e])=>t+e.join("")),"");return{styles:o,id:"t"+n(i),tag:e.tag,__pattern__:!0}};{const r=e,o=[[Array.from(r),c]],i=o.reduce(((t,[e])=>t+e.join("")),"");return{styles:o,id:"t"+n(i),tag:t,__pattern__:!0}}},r=c("div");t.forEach((t=>{r[t]=c(t)})),r.global=c(null);var o="-ms-",i="-moz-",s="-webkit-",a="comm",l="rule",u="decl",f="@import",d="@keyframes",h="@layer",p=Math.abs,g=String.fromCharCode,m=Object.assign;function y(t){return t.trim()}function b(t,e){return(t=e.exec(t))?t[0]:t}function $(t,e,n){return t.replace(e,n)}function v(t,e,n){return t.indexOf(e,n)}function w(t,e){return 0|t.charCodeAt(e)}function k(t,e,n){return t.slice(e,n)}function x(t){return t.length}function _(t){return t.length}function j(t,e){return e.push(t),t}function O(t,e){return t.filter((function(t){return!b(t,e)}))}var A=1,E=1,C=0,S=0,D=0,P="";function R(t,e,n,c,r,o,i,s){return{value:t,root:e,parent:n,type:c,props:r,children:o,line:A,column:E,length:i,return:"",siblings:s}}function z(t,e){return m(R("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function N(t){for(;t.root;)t=z(t.root,{children:[t]});j(t,t.siblings)}function T(){return D=S>0?w(P,--S):0,E--,10===D&&(E=1,A--),D}function M(){return D=S<C?w(P,S++):0,E++,10===D&&(E=1,A++),D}function I(){return w(P,S)}function L(){return S}function q(t,e){return k(P,t,e)}function K(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function G(t){return y(q(S-1,F(91===t?t+2:40===t?t+1:t)))}function H(t){for(;(D=I())&&D<33;)M();return K(t)>2||K(D)>3?"":" "}function B(t,e){for(;--e&&M()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return q(t,L()+(e<6&&32==I()&&32==M()))}function F(t){for(;M();)switch(D){case t:return S;case 34:case 39:34!==t&&39!==t&&F(D);break;case 40:41===t&&F(t);break;case 92:M()}return S}function U(t,e){for(;M()&&t+D!==57&&(t+D!==84||47!==I()););return"/*"+q(e,S-1)+"*"+g(47===t?t:M())}function Y(t){for(;!K(I());)M();return q(t,S)}function J(t){return function(t){return P="",t}(Q("",null,null,null,[""],t=function(t){return A=E=1,C=x(P=t),S=0,[]}(t),0,[0],t))}function Q(t,e,n,c,r,o,i,s,a){for(var l=0,u=0,f=i,d=0,h=0,m=0,y=1,b=1,k=1,_=0,O="",A=r,E=o,C=c,S=O;b;)switch(m=_,_=M()){case 40:if(108!=m&&58==w(S,f-1)){-1!=v(S+=$(G(_),"&","&\f"),"&\f",p(l?s[l-1]:0))&&(k=-1);break}case 34:case 39:case 91:S+=G(_);break;case 9:case 10:case 13:case 32:S+=H(m);break;case 92:S+=B(L()-1,7);continue;case 47:switch(I()){case 42:case 47:j(W(U(M(),L()),e,n,a),a);break;default:S+="/"}break;case 123*y:s[l++]=x(S)*k;case 125*y:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+u:-1==k&&(S=$(S,/\f/g,"")),h>0&&x(S)-f&&j(h>32?X(S+";",c,n,f-1,a):X($(S," ","")+";",c,n,f-2,a),a);break;case 59:S+=";";default:if(j(C=V(S,e,n,l,u,r,s,O,A=[],E=[],f,o),o),123===_)if(0===u)Q(S,e,C,C,A,o,f,s,E);else switch(99===d&&110===w(S,3)?100:d){case 100:case 108:case 109:case 115:Q(t,C,C,c&&j(V(t,C,C,0,0,r,s,O,r,A=[],f,E),E),r,E,f,s,c?A:E);break;default:Q(S,C,C,C,[""],E,0,s,E)}}l=u=h=0,y=k=1,O=S="",f=i;break;case 58:f=1+x(S),h=m;default:if(y<1)if(123==_)--y;else if(125==_&&0==y++&&125==T())continue;switch(S+=g(_),_*y){case 38:k=u>0?1:(S+="\f",-1);break;case 44:s[l++]=(x(S)-1)*k,k=1;break;case 64:45===I()&&(S+=G(M())),d=I(),u=f=x(O=S+=Y(L())),_++;break;case 45:45===m&&2==x(S)&&(y=0)}}return o}function V(t,e,n,c,r,o,i,s,a,u,f,d){for(var h=r-1,g=0===r?o:[""],m=_(g),b=0,v=0,w=0;b<c;++b)for(var x=0,j=k(t,h+1,h=p(v=i[b])),O=t;x<m;++x)(O=y(v>0?g[x]+" "+j:$(j,/&\f/g,g[x])))&&(a[w++]=O);return R(t,e,n,0===r?l:s,a,u,f,d)}function W(t,e,n,c){return R(t,e,n,a,g(D),k(t,2,-2),0,c)}function X(t,e,n,c,r){return R(t,e,n,u,k(t,0,c),k(t,c+1,-1),c,r)}function Z(t,e,n){switch(function(t,e){return 45^w(t,0)?(((e<<2^w(t,0))<<2^w(t,1))<<2^w(t,2))<<2^w(t,3):0}(t,e)){case 5103:return s+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return s+t+t;case 4789:return i+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return s+t+i+t+o+t+t;case 5936:switch(w(t,e+11)){case 114:return s+t+o+$(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return s+t+o+$(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return s+t+o+$(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return s+t+o+t+t;case 6165:return s+t+o+"flex-"+t+t;case 5187:return s+t+$(t,/(\w+).+(:[^]+)/,s+"box-$1$2"+o+"flex-$1$2")+t;case 5443:return s+t+o+"flex-item-"+$(t,/flex-|-self/g,"")+(b(t,/flex-|baseline/)?"":o+"grid-row-"+$(t,/flex-|-self/g,""))+t;case 4675:return s+t+o+"flex-line-pack"+$(t,/align-content|flex-|-self/g,"")+t;case 5548:return s+t+o+$(t,"shrink","negative")+t;case 5292:return s+t+o+$(t,"basis","preferred-size")+t;case 6060:return s+"box-"+$(t,"-grow","")+s+t+o+$(t,"grow","positive")+t;case 4554:return s+$(t,/([^-])(transform)/g,"$1"+s+"$2")+t;case 6187:return $($($(t,/(zoom-|grab)/,s+"$1"),/(image-set)/,s+"$1"),t,"")+t;case 5495:case 3959:return $(t,/(image-set\([^]*)/,s+"$1$`$1");case 4968:return $($(t,/(.+:)(flex-)?(.*)/,s+"box-pack:$3"+o+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+s+t+t;case 4200:if(!b(t,/flex-|baseline/))return o+"grid-column-align"+k(t,e)+t;break;case 2592:case 3360:return o+$(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,b(t.props,/grid-\w+-end/)}))?~v(t+(n=n[e].value),"span",0)?t:o+$(t,"-start","")+t+o+"grid-row-span:"+(~v(n,"span",0)?b(n,/\d+/):+b(n,/\d+/)-+b(t,/\d+/))+";":o+$(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return b(t.props,/grid-\w+-start/)}))?t:o+$($(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return $(t,/(.+)-inline(.+)/,s+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(x(t)-1-e>6)switch(w(t,e+1)){case 109:if(45!==w(t,e+4))break;case 102:return $(t,/(.+:)(.+)-([^]+)/,"$1"+s+"$2-$3$1"+i+(108==w(t,e+3)?"$3":"$2-$3"))+t;case 115:return~v(t,"stretch",0)?Z($(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return $(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,c,r,i,s,a){return o+n+":"+c+a+(r?o+n+"-span:"+(i?s:+s-+c)+a:"")+t}));case 4949:if(121===w(t,e+6))return $(t,":",":"+s)+t;break;case 6444:switch(w(t,45===w(t,14)?18:11)){case 120:return $(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+s+(45===w(t,14)?"inline-":"")+"box$3$1"+s+"$2$3$1"+o+"$2box$3")+t;case 100:return $(t,":",":"+o)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return $(t,"scroll-","scroll-snap-")+t}return t}function tt(t,e){for(var n="",c=0;c<t.length;c++)n+=e(t[c],c,t,e)||"";return n}function et(t,e,n,c){switch(t.type){case h:if(t.children.length)break;case f:case u:return t.return=t.return||t.value;case a:return"";case d:return t.return=t.value+"{"+tt(t.children,c)+"}";case l:if(!x(t.value=t.props.join(",")))return""}return x(n=tt(t.children,c))?t.return=t.value+"{"+n+"}":""}function nt(t,e,n,c){if(t.length>-1&&!t.return)switch(t.type){case u:return void(t.return=Z(t.value,t.length,n));case d:return tt([z(t,{value:$(t.value,"@","@"+s)})],c);case l:if(t.length)return function(t,e){return t.map(e).join("")}(n=t.props,(function(e){switch(b(e,c=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":N(z(t,{props:[$(e,/:(read-\w+)/,":"+i+"$1")]})),N(z(t,{props:[e]})),m(t,{props:O(n,c)});break;case"::placeholder":N(z(t,{props:[$(e,/:(plac\w+)/,":"+s+"input-$1")]})),N(z(t,{props:[$(e,/:(plac\w+)/,":"+i+"$1")]})),N(z(t,{props:[$(e,/:(plac\w+)/,o+"input-$1")]})),N(z(t,{props:[e]})),m(t,{props:O(n,c)})}return""}))}}const ct=t=>null==t||!1===t||""===t;function rt(t,e){return t.reduce(((t,[n,c])=>{const r=n.reduce(((n,r,o)=>{n=[...n,r];const i=c.at(o);if(i){let c=null;if("object"!=typeof i&&"function"!=typeof i||!("styleDefinition"in i))if("function"==typeof i){const n=i(e);if("object"==typeof n&&"__css__"in n){const{css:r,definitions:o}=rt(n.styles,e);t.definitions=[...t.definitions,...o],c=r}else"string"==typeof n&&n.includes("[object Object]")&&console.error("[teiler]","If you trying to use nested component/pattern selector inside function use function `css`, sample: \n${({ someProperty }) => css`${NastedComponent} {...}`}"),c=n}else if("object"==typeof i&&"__pattern__"in i)c="."+i.id;else if("object"==typeof i){const e=i;t.definitions=[...t.definitions,e],c=e.id}else c=i;else{const e=i.styleDefinition;t.definitions=[...t.definitions,e],c="."+e.id}!1===ct(c)&&(n=[...n,c])}return n}),[]).join("");return t.css=t.css+r,t}),{css:"",definitions:[]})}function ot(t){const e=[];var n;return tt(J(t),function(t){var e=_(t);return function(n,c,r,o){for(var i="",s=0;s<e;s++)i+=t[s](n,c,r,o)||"";return i}}([et,nt,(n=t=>{e.push(t)},function(t){t.root||(t=t.return)&&n(t)})])),e.join(" ")}const it=(t,e)=>({type:"component",id:"t"+n(e.reduce(((t,[e])=>t+e.join("")),"")),styles:e,tag:t});function st(t,e,c){const{styles:r,type:o}=e,{css:i,definitions:s}=rt(r,c),a=n(i);if(s.forEach((e=>st(t,e,c))),"component"===o){const e=ot(`.teiler-${a} { ${i} }`);return t.insert(a,e),`teiler-${a}`}if("keyframes"===o){const{id:n}=e,c=ot(`@keyframes ${n} { ${i} }`);t.insert(a,c)}else{const e=ot(`${i}`);t.insert(a,e)}return null}function at(){}function lt(t,e){for(const n in e)t[n]=e[n];return t}function ut(t){return t()}function ft(){return Object.create(null)}function dt(t){t.forEach(ut)}function ht(t){return"function"==typeof t}function pt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function gt(t,e,n){t.$$.on_destroy.push(function(t,...e){if(null==t){for(const t of e)t(void 0);return at}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,n))}function mt(t,e,n,c){if(t){const r=yt(t,e,n,c);return t[0](r)}}function yt(t,e,n,c){return t[1]&&c?lt(n.ctx.slice(),t[1](c(e))):n.ctx}function bt(t,e,n,c){if(t[2]&&c){const r=t[2](c(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let c=0;c<n;c+=1)t[c]=e.dirty[c]|r[c];return t}return e.dirty|r}return e.dirty}function $t(t,e,n,c,r,o){if(r){const i=yt(e,n,c,o);t.p(i,r)}}function vt(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}function wt(t,e){const n={};e=new Set(e);for(const c in t)e.has(c)||"$"===c[0]||(n[c]=t[c]);return n}function kt(t,e,n){t.insertBefore(e,n||null)}function xt(t){t.parentNode&&t.parentNode.removeChild(t)}function _t(){return t="",document.createTextNode(t);var t}function jt(t,e,n,c){return t.addEventListener(e,n,c),()=>t.removeEventListener(e,n,c)}function Ot(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const At=["width","height"];function Et(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const c in e)null==e[c]?t.removeAttribute(c):"style"===c?t.style.cssText=e[c]:"__value"===c?t.value=t[c]=e[c]:n[c]&&n[c].set&&-1===At.indexOf(c)?t[c]=e[c]:Ot(t,c,e[c])}function Ct(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){const c=e.toLowerCase();c in t?t[c]="boolean"==typeof t[c]&&""===n||n:e in t?t[e]="boolean"==typeof t[e]&&""===n||n:Ot(t,e,n)}(t,n,e[n])}))}function St(t){return/-/.test(t)?Ct:Et}let Dt;function Pt(t){Dt=t}function Rt(){if(!Dt)throw new Error("Function called outside component initialization");return Dt}function zt(t){return Rt().$$.context.get(t)}function Nt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Tt=[],Mt=[];let It=[];const Lt=[],qt=Promise.resolve();let Kt=!1;function Gt(t){It.push(t)}const Ht=new Set;let Bt=0;function Ft(){if(0!==Bt)return;const t=Dt;do{try{for(;Bt<Tt.length;){const t=Tt[Bt];Bt++,Pt(t),Ut(t.$$)}}catch(t){throw Tt.length=0,Bt=0,t}for(Pt(null),Tt.length=0,Bt=0;Mt.length;)Mt.pop()();for(let t=0;t<It.length;t+=1){const e=It[t];Ht.has(e)||(Ht.add(e),e())}It.length=0}while(Tt.length);for(;Lt.length;)Lt.pop()();Kt=!1,Ht.clear(),Pt(t)}function Ut(t){if(null!==t.fragment){t.update(),dt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Gt)}}const Yt=new Set;let Jt;function Qt(t,e){t&&t.i&&(Yt.delete(t),t.i(e))}function Vt(t,e,n,c){if(t&&t.o){if(Yt.has(t))return;Yt.add(t),Jt.c.push((()=>{Yt.delete(t)})),t.o(e)}}function Wt(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];It.forEach((c=>-1===t.indexOf(c)?e.push(c):n.push(c))),n.forEach((t=>t())),It=e}(n.after_update),dt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Xt(t,e){-1===t.$$.dirty[0]&&(Tt.push(t),Kt||(Kt=!0,qt.then(Ft)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Zt(t,e,n,c,r,o,i=null,s=[-1]){const a=Dt;Pt(t);const l=t.$$={fragment:null,ctx:[],props:o,update:at,not_equal:r,bound:ft(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ft(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};i&&i(l.root);let u=!1;if(l.ctx=n?n(t,e.props||{},((e,n,...c)=>{const o=c.length?c[0]:n;return l.ctx&&r(l.ctx[e],l.ctx[e]=o)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](o),u&&Xt(t,e)),n})):[],l.update(),u=!0,dt(l.before_update),l.fragment=!!c&&c(l.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);l.fragment&&l.fragment.l(t),t.forEach(xt)}else l.fragment&&l.fragment.c();e.intro&&Qt(t.$$.fragment),function(t,e,n){const{fragment:c,after_update:r}=t.$$;c&&c.m(e,n),Gt((()=>{const e=t.$$.on_mount.map(ut).filter(ht);t.$$.on_destroy?t.$$.on_destroy.push(...e):dt(e),t.$$.on_mount=[]})),r.forEach(Gt)}(t,e.target,e.anchor),Ft()}Pt(a)}class te{$$=void 0;$$set=void 0;$destroy(){Wt(this,1),this.$destroy=at}$on(t,e){if(!ht(e))return at;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)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");let ee=null;const ne="STYLE_SHEET";const ce=[];function re(t){let e;const n=t[2].default,c=mt(n,t,t[1],null);return{c(){c&&c.c()},m(t,n){c&&c.m(t,n),e=!0},p(t,[r]){c&&c.p&&(!e||2&r)&&$t(c,n,t,t[1],e?bt(n,t[1],r,null):vt(t[1]),null)},i(t){e||(Qt(c,t),e=!0)},o(t){Vt(c,t),e=!1},d(t){c&&c.d(t)}}}const oe="THEME";function ie(t,e,n){let{$$slots:c={},$$scope:r}=e,{theme:o}=e;var i=function(t,e=at){let n;const c=new Set;function r(e){if(pt(t,e)&&(t=e,n)){const e=!ce.length;for(const e of c)e[1](),ce.push(e,t);if(e){for(let t=0;t<ce.length;t+=2)ce[t][0](ce[t+1]);ce.length=0}}}function o(e){r(e(t))}return{set:r,update:o,subscribe:function(i,s=at){const a=[i,s];return c.add(a),1===c.size&&(n=e(r,o)||at),i(t),()=>{c.delete(a),0===c.size&&n&&(n(),n=null)}}}}(o);return function(t,e){Rt().$$.context.set(t,e)}(oe,i),t.$$set=t=>{"theme"in t&&n(0,o=t.theme),"$$scope"in t&&n(1,r=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&i.set(o)},[o,r,c]}function se(t){let e,n,c,r;const o=t[8].default,i=mt(o,t,t[7],null);let s=[{class:t[1]},t[2]],a={};for(let t=0;t<s.length;t+=1)a=lt(a,s[t]);return{c(){var n;n=t[0].tag,e=document.createElement(n),i&&i.c(),St(t[0].tag)(e,a)},m(o,s){kt(o,e,s),i&&i.m(e,null),n=!0,c||(r=[jt(e,"copy",t[9]),jt(e,"cut",t[10]),jt(e,"paste",t[11]),jt(e,"compositionend",t[12]),jt(e,"compositionstart",t[13]),jt(e,"compositionupdate",t[14]),jt(e,"focus",t[15]),jt(e,"focusin",t[16]),jt(e,"focusout",t[17]),jt(e,"blur",t[18]),jt(e,"change",t[19]),jt(e,"beforeinput",t[20]),jt(e,"input",t[21]),jt(e,"reset",t[22]),jt(e,"submit",t[23]),jt(e,"invalid",t[24]),jt(e,"formdata",t[25]),jt(e,"load",t[26]),jt(e,"error",t[27]),jt(e,"beforetoggle",t[28]),jt(e,"toggle",t[29]),jt(e,"keydown",t[30]),jt(e,"keypress",t[31]),jt(e,"keyup",t[32]),jt(e,"abort",t[33]),jt(e,"canplay",t[34]),jt(e,"canplaythrough",t[35]),jt(e,"cuechange",t[36]),jt(e,"durationchange",t[37]),jt(e,"emptied",t[38]),jt(e,"encrypted",t[39]),jt(e,"ended",t[40]),jt(e,"loadeddata",t[41]),jt(e,"loadedmetadata",t[42]),jt(e,"loadstart",t[43]),jt(e,"pause",t[44]),jt(e,"play",t[45]),jt(e,"playing",t[46]),jt(e,"progress",t[47]),jt(e,"ratechange",t[48]),jt(e,"seeked",t[49]),jt(e,"seeking",t[50]),jt(e,"stalled",t[51]),jt(e,"suspend",t[52]),jt(e,"timeupdate",t[53]),jt(e,"volumechange",t[54]),jt(e,"waiting",t[55]),jt(e,"auxclick",t[56]),jt(e,"click",t[57]),jt(e,"contextmenu",t[58]),jt(e,"dblclick",t[59]),jt(e,"drag",t[60]),jt(e,"dragend",t[61]),jt(e,"dragenter",t[62]),jt(e,"dragexit",t[63]),jt(e,"dragleave",t[64]),jt(e,"dragover",t[65]),jt(e,"dragstart",t[66]),jt(e,"drop",t[67]),jt(e,"mousedown",t[68]),jt(e,"mouseenter",t[69]),jt(e,"mouseleave",t[70]),jt(e,"mousemove",t[71]),jt(e,"mouseout",t[72]),jt(e,"mouseover",t[73]),jt(e,"mouseup",t[74]),jt(e,"select",t[75]),jt(e,"selectionchange",t[76]),jt(e,"selectstart",t[77]),jt(e,"touchcancel",t[78]),jt(e,"touchend",t[79]),jt(e,"touchmove",t[80]),jt(e,"touchstart",t[81]),jt(e,"gotpointercapture",t[82]),jt(e,"pointercancel",t[83]),jt(e,"pointerdown",t[84]),jt(e,"pointerenter",t[85]),jt(e,"pointerleave",t[86]),jt(e,"pointermove",t[87]),jt(e,"pointerout",t[88]),jt(e,"pointerover",t[89]),jt(e,"pointerup",t[90]),jt(e,"lostpointercapture",t[91]),jt(e,"gamepadconnected",t[92]),jt(e,"gamepaddisconnected",t[93]),jt(e,"scroll",t[94]),jt(e,"scrollend",t[95]),jt(e,"resize",t[96]),jt(e,"wheel",t[97]),jt(e,"animationstart",t[98]),jt(e,"animationend",t[99]),jt(e,"animationiteration",t[100]),jt(e,"transitionstart",t[101]),jt(e,"transitionrun",t[102]),jt(e,"transitionend",t[103]),jt(e,"transitioncancel",t[104]),jt(e,"outrostart",t[105]),jt(e,"outroend",t[106]),jt(e,"introstart",t[107]),jt(e,"introend",t[108]),jt(e,"message",t[109]),jt(e,"messageerror",t[110]),jt(e,"visibilitychange",t[111]),jt(e,"cancel",t[112]),jt(e,"close",t[113]),jt(e,"fullscreenchange",t[114]),jt(e,"fullscreenerror",t[115])],c=!0)},p(t,c){i&&i.p&&(!n||128&c[0])&&$t(i,o,t,t[7],n?bt(o,t[7],c,null):vt(t[7]),null),St(t[0].tag)(e,a=function(t,e){const n={},c={},r={$$scope:1};let o=t.length;for(;o--;){const i=t[o],s=e[o];if(s){for(const t in i)t in s||(c[t]=1);for(const t in s)r[t]||(n[t]=s[t],r[t]=1);t[o]=s}else for(const t in i)r[t]=1}for(const t in c)t in n||(n[t]=void 0);return n}(s,[(!n||2&c[0])&&{class:t[1]},4&c[0]&&t[2]]))},i(t){n||(Qt(i,t),n=!0)},o(t){Vt(i,t),n=!1},d(t){t&&xt(e),i&&i.d(t),c=!1,dt(r)}}}function ae(t){let e,n,c=t[0].tag,r=t[0].tag&&se(t);return{c(){r&&r.c(),e=_t()},m(t,c){r&&r.m(t,c),kt(t,e,c),n=!0},p(t,n){t[0].tag?c?pt(c,t[0].tag)?(r.d(1),r=se(t),c=t[0].tag,r.c(),r.m(e.parentNode,e)):r.p(t,n):(r=se(t),c=t[0].tag,r.c(),r.m(e.parentNode,e)):c&&(r.d(1),r=null,c=t[0].tag)},i(t){n||(Qt(r,t),n=!0)},o(t){Vt(r,t),n=!1},d(t){t&&xt(e),r&&r.d(t)}}}function le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,c=new Array(e);n<e;n++)c[n]=t[n];return c}function ue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fe(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);n.push.apply(n,c)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function de(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var c,r,o=[],i=!0,s=!1;try{for(n=n.call(t);!(i=(c=n.next()).done)&&(o.push(c.value),!e||o.length!==e);i=!0);}catch(t){s=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return le(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(t,n,c){let r,o,i,s;const a=["styleDefinition"];let l,u=wt(n,a),{$$slots:f={},$$scope:d}=n,{styleDefinition:h}=n;var p=zt(ne)||(null===ee&&(ee=e({})),ee),g=zt(oe);return gt(t,g,(t=>c(6,l=t))),t.$$set=t=>{n=lt(lt({},n),function(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}(t)),c(117,u=wt(n,a)),"styleDefinition"in t&&c(0,h=t.styleDefinition),"$$scope"in t&&c(7,d=t.$$scope)},t.$$.update=()=>{c(4,r=st(p,h,fe(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},c=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),c.forEach((function(e){ue(t,e,n[e])}))}return t}({},u),{theme:l}))),c(5,o=Object.entries(u).filter((function(t){var e=de(t,2),n=e[0];return e[1],"_"!==n[0]&&"class"!==n}))),32&t.$$.dirty[0]&&c(2,i=Object.fromEntries(o)),c(1,s=u.class?"".concat(r," ").concat(h.id," ").concat(u.class):"".concat(r," ").concat(h.id))},[h,s,i,g,r,o,l,d,f,function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)},function(e){Nt.call(this,t,e)}]}class pe extends te{constructor(t){super(),Zt(this,t,he,ae,pt,{styleDefinition:0},null,[-1,-1,-1,-1])}}const ge=t=>{var e;return(e=class extends pe{constructor(e){super({...e,props:{...e.props,styleDefinition:t}})}}).styleDefinition=t,e},me=(t,e)=>(n,...c)=>function(t,e,n,c,...r){if(Array.isArray(c)){const o=c,i=[Array.from(o),r],s=e(t,[i]);return n(s)}{const t=c;return(c,...r)=>{const o=[Array.from(c),r],i=e(t.styleDefinition.tag,[...t.styleDefinition.styles,o]);return n(i)}}}(t,e,ge,n,...c),ye=me("div",it);t.forEach((t=>{ye[t]=me(t,it)}));const be=ye,$e=me(null,((t,e)=>({type:"global",id:"t"+n(e.reduce(((t,[e])=>t+e.join("")),"")),styles:e,tag:t})));exports.ThemeProvider=class extends te{constructor(t){super(),Zt(this,t,ie,re,pt,{theme:0})}},exports.component=be,exports.createComponent=ge,exports.global=$e,exports.keyframes=function(t,...e){const c=[Array.from(t),e];return{type:"keyframes",id:"teiler-"+n(t.join("")),styles:[c],tag:null}};
2
2
  //# sourceMappingURL=teiler-svelte.cjs.js.map