Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lume/variable

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lume/variable - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

11

.vscode/tasks.json

@@ -10,4 +10,15 @@ {

"detail": "lume dev"
},
{
"type": "npm",
"script": "typecheck:watch",
"problemMatcher": [
"$tsc-watch"
],
"group": "build",
"label": "npm: typecheck:watch",
"detail": "lume typecheckWatch",
"isBackground": true
}
]
}

36

dist/dom.d.ts

@@ -1,33 +0,3 @@

declare const render: any;
declare const renderToString: any;
declare const renderDOMToString: any;
declare const hydrate: any;
declare const template: any;
declare const effect: any;
declare const memo: any;
declare const insert: any;
declare const createComponent: any;
declare const delegateEvents: any;
declare const clearDelegatedEvents: any;
declare const spread: any;
declare const assign: any;
declare const classList: any;
declare const style: any;
declare const currentContext: any;
declare const ssr: any;
declare const ssrClassList: any;
declare const ssrStyle: any;
declare const ssrSpread: any;
declare const escape: any;
declare const getHydrationKey: any;
declare const getNextElement: any;
declare const getNextMarker: any;
declare const generateHydrationEventsScript: any;
declare const SuspenseList: any;
declare const Suspense: any;
declare const For: any;
declare const Show: any;
declare const Switch: any;
declare const Match: any;
declare const Portal: any;
export { render, renderToString, renderDOMToString, hydrate, template, effect, memo, insert, createComponent, delegateEvents, clearDelegatedEvents, spread, assign, classList, style, currentContext, ssr, ssrClassList, ssrStyle, ssrSpread, escape, getHydrationKey, getNextElement, getNextMarker, generateHydrationEventsScript, SuspenseList, Suspense, For, Show, Switch, Match, Portal, };
import * as _dom from 'solid-js/dom';
declare const dom: typeof _dom;
export { dom };

@@ -1,38 +0,7 @@

var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
import { render as _render, renderToString as _renderToString, renderDOMToString as _renderDOMToString, hydrate as _hydrate, template as _template, effect as _effect, memo as _memo, insert as _insert, createComponent as _createComponent, delegateEvents as _delegateEvents, clearDelegatedEvents as _clearDelegatedEvents, spread as _spread, assign as _assign, classList as _classList, style as _style, currentContext as _currentContext, ssr as _ssr, ssrClassList as _ssrClassList, ssrStyle as _ssrStyle, ssrSpread as _ssrSpread, escape as _escape, getHydrationKey as _getHydrationKey, getNextElement as _getNextElement, getNextMarker as _getNextMarker, generateHydrationEventsScript as _generateHydrationEventsScript, SuspenseList as _SuspenseList, Suspense as _Suspense, For as _For, Show as _Show, Switch as _Switch, Match as _Match, Portal as _Portal, } from 'solid-js/dom';
var _a;
import * as _dom from 'solid-js/dom';
import { getGlobal } from './getGlobal';
const global = getGlobal();
const render = (_a = global.solid_render) !== null && _a !== void 0 ? _a : (global.solid_render = _render);
const renderToString = (_b = global.solid_renderToString) !== null && _b !== void 0 ? _b : (global.solid_renderToString = _renderToString);
const renderDOMToString = (_c = global.solid_renderDOMToString) !== null && _c !== void 0 ? _c : (global.solid_renderDOMToString = _renderDOMToString);
const hydrate = (_d = global.solid_hydrate) !== null && _d !== void 0 ? _d : (global.solid_hydrate = _hydrate);
const template = (_e = global.solid_template) !== null && _e !== void 0 ? _e : (global.solid_template = _template);
const effect = (_f = global.solid_effect) !== null && _f !== void 0 ? _f : (global.solid_effect = _effect);
const memo = (_g = global.solid_memo) !== null && _g !== void 0 ? _g : (global.solid_memo = _memo);
const insert = (_h = global.solid_insert) !== null && _h !== void 0 ? _h : (global.solid_insert = _insert);
const createComponent = (_j = global.solid_createComponent) !== null && _j !== void 0 ? _j : (global.solid_createComponent = _createComponent);
const delegateEvents = (_k = global.solid_delegateEvents) !== null && _k !== void 0 ? _k : (global.solid_delegateEvents = _delegateEvents);
const clearDelegatedEvents = (_l = global.solid_clearDelegatedEvents) !== null && _l !== void 0 ? _l : (global.solid_clearDelegatedEvents = _clearDelegatedEvents);
const spread = (_m = global.solid_spread) !== null && _m !== void 0 ? _m : (global.solid_spread = _spread);
const assign = (_o = global.solid_assign) !== null && _o !== void 0 ? _o : (global.solid_assign = _assign);
const classList = (_p = global.solid_classList) !== null && _p !== void 0 ? _p : (global.solid_classList = _classList);
const style = (_q = global.solid_style) !== null && _q !== void 0 ? _q : (global.solid_style = _style);
const currentContext = (_r = global.solid_currentContext) !== null && _r !== void 0 ? _r : (global.solid_currentContext = _currentContext);
const ssr = (_s = global.solid_ssr) !== null && _s !== void 0 ? _s : (global.solid_ssr = _ssr);
const ssrClassList = (_t = global.solid_ssrClassList) !== null && _t !== void 0 ? _t : (global.solid_ssrClassList = _ssrClassList);
const ssrStyle = (_u = global.solid_ssrStyle) !== null && _u !== void 0 ? _u : (global.solid_ssrStyle = _ssrStyle);
const ssrSpread = (_v = global.solid_ssrSpread) !== null && _v !== void 0 ? _v : (global.solid_ssrSpread = _ssrSpread);
const escape = (_w = global.solid_escape) !== null && _w !== void 0 ? _w : (global.solid_escape = _escape);
const getHydrationKey = (_x = global.solid_getHydrationKey) !== null && _x !== void 0 ? _x : (global.solid_getHydrationKey = _getHydrationKey);
const getNextElement = (_y = global.solid_getNextElement) !== null && _y !== void 0 ? _y : (global.solid_getNextElement = _getNextElement);
const getNextMarker = (_z = global.solid_getNextMarker) !== null && _z !== void 0 ? _z : (global.solid_getNextMarker = _getNextMarker);
const generateHydrationEventsScript = (_0 = global.solid_generateHydrationEventsScript) !== null && _0 !== void 0 ? _0 : (global.solid_generateHydrationEventsScript = _generateHydrationEventsScript);
const SuspenseList = (_1 = global.solid_SuspenseList) !== null && _1 !== void 0 ? _1 : (global.solid_SuspenseList = _SuspenseList);
const Suspense = (_2 = global.solid_Suspense) !== null && _2 !== void 0 ? _2 : (global.solid_Suspense = _Suspense);
const For = (_3 = global.solid_For) !== null && _3 !== void 0 ? _3 : (global.solid_For = _For);
const Show = (_4 = global.solid_Show) !== null && _4 !== void 0 ? _4 : (global.solid_Show = _Show);
const Switch = (_5 = global.solid_Switch) !== null && _5 !== void 0 ? _5 : (global.solid_Switch = _Switch);
const Match = (_6 = global.solid_Match) !== null && _6 !== void 0 ? _6 : (global.solid_Match = _Match);
const Portal = (_7 = global.solid_Portal) !== null && _7 !== void 0 ? _7 : (global.solid_Portal = _Portal);
export { render, renderToString, renderDOMToString, hydrate, template, effect, memo, insert, createComponent, delegateEvents, clearDelegatedEvents, spread, assign, classList, style, currentContext, ssr, ssrClassList, ssrStyle, ssrSpread, escape, getHydrationKey, getNextElement, getNextMarker, generateHydrationEventsScript, SuspenseList, Suspense, For, Show, Switch, Match, Portal, };
const dom = (_a = global.SOLID_DOM) !== null && _a !== void 0 ? _a : (global.SOLID_DOM = _dom);
export { dom };
//# sourceMappingURL=dom.js.map

@@ -9,4 +9,4 @@

}
LUME=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";(function(t){function r(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:Function("return this")()}n.d(e,"a",(function(){return r}))}).call(this,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e),n.d(e,"variable",(function(){return $t})),n.d(e,"autorun",(function(){return qt})),n.d(e,"reactive",(function(){return Vt})),n.d(e,"reactify",(function(){return Ht})),n.d(e,"untrack",(function(){return Kt})),n.d(e,"version",(function(){return Nt}));var r={};n.r(r),n.d(r,"$RAW",(function(){return X})),n.d(r,"SuspenseContext",(function(){return vt})),n.d(r,"afterEffects",(function(){return E})),n.d(r,"awaitSuspense",(function(){return mt})),n.d(r,"cancelCallback",(function(){return p})),n.d(r,"cloneProps",(function(){return ht})),n.d(r,"createContext",(function(){return F})),n.d(r,"createDeferred",(function(){return L})),n.d(r,"createDependentEffect",(function(){return M})),n.d(r,"createEffect",(function(){return k})),n.d(r,"createMemo",(function(){return T})),n.d(r,"createResource",(function(){return St})),n.d(r,"createResourceState",(function(){return xt})),n.d(r,"createRoot",(function(){return P})),n.d(r,"createSignal",(function(){return j})),n.d(r,"createState",(function(){return ct})),n.d(r,"equalFn",(function(){return y})),n.d(r,"freeze",(function(){return R})),n.d(r,"getContextOwner",(function(){return q})),n.d(r,"isListening",(function(){return z})),n.d(r,"lazy",(function(){return Pt})),n.d(r,"mapArray",(function(){return at})),n.d(r,"onCleanup",(function(){return D})),n.d(r,"onError",(function(){return I})),n.d(r,"reconcile",(function(){return lt})),n.d(r,"requestCallback",(function(){return h})),n.d(r,"runtimeConfig",(function(){return pt})),n.d(r,"sample",(function(){return C})),n.d(r,"setDefaults",(function(){return dt})),n.d(r,"suspend",(function(){return kt})),n.d(r,"unwrap",(function(){return nt})),n.d(r,"useContext",(function(){return $})),n.d(r,"useTransition",(function(){return jt}));let o=1,i=!1,u=!1,s=[],c=null,l=null,f=0,a=null,d=null;function h(t,e){a||function(){if(window&&window.MessageChannel){const t=new MessageChannel,e=t.port2;a=()=>e.postMessage(null),t.port1.onmessage=()=>{if(null!==d){const t=performance.now();f=t+5;const n=!0;try{d(n,t)?e.postMessage(null):d=null}catch(t){throw e.postMessage(null),t}}}}else{let t;a=()=>{t||(t=d,setTimeout(()=>{const e=performance.now();f=e+5;const n=t(!0,e);t=null,n&&a()},0))}}if(navigator&&navigator.scheduling&&navigator.scheduling.isInputPending){const t=navigator.scheduling;l=()=>{const e=performance.now();return e>=f&&(!!t.isInputPending()||e>=300)}}else l=()=>performance.now()>=f}();let n=performance.now(),r=1073741823;e&&e.timeout&&(r=e.timeout);const c={id:o++,fn:t,startTime:n,expirationTime:n+r};return function(t,e){t.splice(function(){let n=0,r=t.length-1;for(;n<=r;){let o=r+n>>1,i=e.expirationTime-t[o].expirationTime;if(i>0)n=o+1;else{if(!(i<0))return o;r=o-1}}return n}(),0,e)}(s,c),i||u||(i=!0,d=g,a()),c}function p(t){t.fn=null}function g(t,e){i=!1,u=!0;try{return function(t,e){let n=e;c=s[0]||null;for(;null!==c&&(!(c.expirationTime>n)||t&&!l());){const t=c.fn;if(null!==t){c.fn=null;const e=c.expirationTime<=n;t(e),n=performance.now(),c===s[0]&&s.shift()}else s.shift();c=s[0]||null}return null!==c}(t,e)}finally{c=null,u=!1}}const y=(t,e)=>t===e,v=Symbol("error"),b={},w={owned:null,cleanups:null,context:null,owner:null};let _=null,m=null,S=null,A=null,O=[],x=0;function P(t,e){e&&(_=e);const n=m,r=_,o=0===t.length?w:{owned:null,cleanups:null,context:null,owner:r};let i;_=o,m=null;try{i=t(()=>K(o))}catch(t){const e=N(_,v);if(!e)throw t;e.forEach(e=>e(t))}finally{for(;O.length;)O.shift()();m=n,_=r}return i}function j(t,e){const n={value:t,observers:null,observerSlots:null,pending:b,comparator:e};return[V.bind(n),W.bind(n)]}function k(t,e){U(B(t,e))}function M(t,e,n){const r=Array.isArray(e)?(o=e,()=>{for(let t=0;t<o.length;t++)o[t]()}):e;var o;n=!!n,k(e=>{const o=m;return r(),n?n=!1:(m=null,e=t(e),m=o),e})}function T(t,e,n){const r=B(t,e);return r.pending=b,r.observers=null,r.observerSlots=null,r.comparator=n,U(r),V.bind(r)}function L(t,e){let n,r=e?e.timeoutMs:void 0;const[o,i]=j(t());return k(()=>{t(),n&&n.fn||(n=h(()=>i(t()),void 0!==r?{timeout:r}:void 0))}),o}function R(t){let e=S,n=S=[];const r=t();return S=e,H(()=>{for(let t=0;t<n.length;t+=1){const e=n[t];if(e.pending!==b){const t=e.pending;e.pending=b,W.call(e,t)}}}),r}function C(t){let e,n=m;return m=null,e=t(),m=n,e}function E(t){O.push(t)}function D(t){return null===_?console.warn("cleanups created outside a `createRoot` or `render` will never be run"):null===_.cleanups?_.cleanups=[t]:_.cleanups.push(t),t}function I(t){null===_?console.warn("error handlers created outside a `createRoot` or `render` will never be run"):null===_.context?_.context={[v]:[t]}:_.context[v]?_.context[v].push(t):_.context[v]=[t]}function z(){return null!==m}function F(t){const e=Symbol("context");return{id:e,Provider:Q(e),defaultValue:t}}function $(t){return N(_,t.id)||t.defaultValue}function q(){return _}function V(){if(this.state&&this.sources){const t=A;A=null,1===this.state?U(this):function t(e){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];r.sources&&(1===r.state?G(r):2===r.state&&t(r))}}(this),A=t}if(m){const t=this.observers?this.observers.length:0;m.sources?(m.sources.push(this),m.sourceSlots.push(t)):(m.sources=[this],m.sourceSlots=[t]),this.observers?(this.observers.push(m),this.observerSlots.push(m.sources.length-1)):(this.observers=[m],this.observerSlots=[m.sources.length-1])}return this.value}function W(t){if(!this.comparator||!this.comparator(this.value,t)){if(S)return this.pending===b&&S.push(this),void(this.pending=t);this.value=t,!this.observers||A&&!this.observers.length||H(()=>{for(let t=0;t<this.observers.length;t+=1){const e=this.observers[t];if(e.observers&&2!==e.state&&J(e),e.state=1,A.length>1e6)throw new Error("Potential Infinite Loop Detected.");A.push(e)}})}}function U(t){if(!t.fn)return;K(t);const e=_,n=m,r=x;m=_=t;const o=t.fn(t.value);(!t.updatedAt||t.updatedAt<=r)&&(t.observers&&t.observers.length?W.call(t,o):t.value=o,t.updatedAt=r),m=n,_=e}function B(t,e){const n={fn:t,state:0,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:_,context:null};return null===_?console.warn("computations created outside a `createRoot` or `render` will never be disposed"):_!==w&&(_.owned?_.owned.push(n):_.owned=[n]),n}function G(t){let e=1===t.state&&t;for(;t.fn&&(t=t.owner);)1===t.state&&(e=t);e&&U(e)}function H(t){if(A)return t();A=[],x++;try{t();for(let t=0;t<A.length;t+=1)try{G(A[t])}catch(t){const e=N(_,v);if(!e)throw t;e.forEach(e=>e(t))}}finally{for(A=null;O.length;)O.shift()()}}function J(t){for(let e=0;e<t.observers.length;e+=1){const n=t.observers[e];n.state||(n.state=2,n.observers&&J(n))}}function K(t){let e;if(t.sources){for(;t.sources.length;){const e=t.sources.pop(),n=t.sourceSlots.pop(),r=e.observers;if(r&&r.length){const t=r.pop(),o=e.observerSlots.pop();n<r.length&&(t.sourceSlots[o]=n,r[n]=t,e.observerSlots[n]=o)}}t.state=0}if(t.owned){for(e=0;e<t.owned.length;e++)K(t.owned[e]);t.owned=null}if(t.cleanups){for(e=0;e<t.cleanups.length;e++)t.cleanups[e]();t.cleanups=null}}function N(t,e){return t&&(t.context&&t.context[e]||t.owner&&N(t.owner,e))}function Q(t){return function(e){let n;return k(()=>{_.context={[t]:e.value},n=C(()=>function t(e){if("function"==typeof e)return T(()=>t(e()));if(Array.isArray(e)){const n=[];for(let r=0;r<e.length;r++){let o=t(e[r]);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}return e}(e.children))}),n}}const X=Symbol("state-raw"),Y=Symbol("state-node"),Z=Symbol("state-proxy");function tt(t,e){return t[Z]||(t[Z]=new Proxy(t,e||ot))}function et(t){return null!=t&&"object"==typeof t&&(t.__proto__===Object.prototype||Array.isArray(t))}function nt(t){let e,n,r;if(e=null!=t&&t[X])return e;if(!et(t))return t;if(Array.isArray(t)){Object.isFrozen(t)&&(t=t.slice(0));for(let e=0,o=t.length;e<o;e++)r=t[e],(n=nt(r))!==r&&(t[e]=n)}else{Object.isFrozen(t)&&(t=Object.assign({},t));let e=Object.keys(t);for(let o=0,i=e.length;o<i;o++)r=t[e[o]],(n=nt(r))!==r&&(t[e[o]]=n)}return t}function rt(t){let e=t[Y];return e||(t[Y]=e={}),e}const ot={get(t,e){if(e===X)return t;if(e===Z||e===Y)return;const n=t[e],r=et(n);if(z()&&("function"!=typeof n||t.hasOwnProperty(e))){let o,i;r&&(o=rt(n))&&(i=o._||(o._=j()),i[0]()),o=rt(t),i=o[e]||(o[e]=j()),i[0]()}return r?tt(n):n},set:()=>!0,deleteProperty:()=>!0},it={get(t,e){if(e===X)return t;const n=t[e];return et(n)?new Proxy(n,it):n},set:(t,e,n)=>(ut(t,e,nt(n)),!0),deleteProperty:(t,e)=>(ut(t,e,void 0),!0)};function ut(t,e,n,r){if(!r&&t[e]===n)return;const o=Array.isArray(t)||!(e in t);void 0===n?delete t[e]:t[e]=n;let i,u=rt(t);(i=u[e])&&i[1](),o&&(i=u._)&&i[1]()}function st(t,e,n=[]){let r,o=t;if(e.length>1){r=e.shift();const i=typeof r,u=Array.isArray(t);if(Array.isArray(r)){for(let o=0;o<r.length;o++)st(t,[r[o]].concat(e),[r[o]].concat(n));return}if(u&&"function"===i){for(let o=0;o<t.length;o++)r(t[o],o)&&st(t,[o].concat(e),[o].concat(n));return}if(u&&"object"===i){const{from:o=0,to:i=t.length-1,by:u=1}=r;for(let r=o;r<=i;r+=u)st(t,[r].concat(e),[r].concat(n));return}if(e.length>1)return void st(t[r],e,[r].concat(n));o=t[r],n=[r].concat(n)}let i=e[0];if("function"==typeof i){const t=void 0===r||et(o)?new Proxy(o,it):o;if(i=i(t,n),i===t||void 0===i)return}i=nt(i),void 0===r||et(o)&&et(i)&&!Array.isArray(i)?function(t,e,n){const r=Object.keys(e);for(let o=0;o<r.length;o+=1){const i=r[o];ut(t,i,e[i],n)}}(o,i):ut(t,r,i)}function ct(t){const e=nt(t||{});return[tt(e),function(...t){R(()=>st(e,t))}]}function lt(t,e={}){const{merge:n,key:r="id"}=e;return e=>{if(!et(e=nt(e)))return t;!function t(e,n,r,o,i){let u=n[r];if(e===u)return;if(!et(e)||!et(u)||i&&e[i]!==u[i])return void(e!==u&&ut(n,r,e));if(Array.isArray(e)){if(e.length&&u.length&&(!o||i&&null!=e[0][i])){let n,r,s,c,l,f,a,d;for(s=0,c=Math.min(u.length,e.length);s<c&&(u[s]===e[s]||i&&u[s][i]===e[s][i]);s++)t(e[s],u,s,o,i);const h=new Array(e.length),p=new Map;for(c=u.length-1,l=e.length-1;c>=s&&l>=s&&(u[c]===e[l]||i&&u[c][i]===e[l][i]);c--,l--)h[l]=u[c];if(s>l||s>c){for(r=s;r<=l;r++)ut(u,r,e[r]);for(;r<e.length;r++)ut(u,r,h[r]),t(e[r],u,r,o,i);return void(u.length>e.length&&ut(u,"length",e.length))}for(a=new Array(l+1),r=l;r>=s;r--)f=e[r],d=i?f[i]:f,n=p.get(d),a[r]=void 0===n?-1:n,p.set(d,r);for(n=s;n<=c;n++)f=u[n],d=i?f[i]:f,r=p.get(d),void 0!==r&&-1!==r&&(h[r]=u[n],r=a[r],p.set(d,r));for(r=s;r<e.length;r++)r in h?(ut(u,r,h[r]),t(e[r],u,r,o,i)):ut(u,r,e[r])}else for(let n=0,r=e.length;n<r;n++)t(e[n],u,n,o,i);return void(u.length>e.length&&ut(u,"length",e.length))}const s=Object.keys(e);for(let n=0,r=s.length;n<r;n++)t(e[s[n]],u,s[n],o,i);const c=Object.keys(u);for(let t=0,n=c.length;t<n;t++)void 0===e[c[t]]&&ut(u,c[t],void 0)}(t,{state:e},"state",n,r)}}const ft=Symbol("fallback");function at(t,e,n){return"function"!=typeof e?(n=e||{},e=t,r):(n||(n={}),r(t));function r(t){let r=[],o=[],i=[],u=0;return D(()=>{for(let t=0,e=i.length;t<e;t++)i[t]()}),()=>{let s,c,l=t()||[];return C(()=>{let t,e,a,d,h,p,g,y,v=l.length;if(0===v){if(0!==u){for(s=0;s<u;s++)i[s]();i=[],r=[],o=[],u=0}n.fallback&&(r=[ft],o[0]=P(t=>(i[0]=t,n.fallback())),u=1)}else if(0===u){for(c=0;c<v;c++)r[c]=l[c],o[c]=P(f);u=v}else{for(a=new Array(v),d=new Array(v),h=0,p=Math.min(u,v);h<p&&r[h]===l[h];h++);for(p=u-1,g=v-1;p>=h&&g>=h&&r[p]===l[g];p--,g--)a[g]=o[p],d[g]=i[p];if(h>g){for(c=p;h<=c;c--)i[c]();const t=p-h+1;return t>0&&(o.splice(h,t),i.splice(h,t)),r=l.slice(0),u=v,o}if(h>p){for(c=h;c<=g;c++)o[c]=P(f);for(;c<v;c++)o[c]=a[c],i[c]=d[c];return r=l.slice(0),u=v,o}for(t=new Map,e=new Array(g+1),c=g;c>=h;c--)y=l[c],s=t.get(y),e[c]=void 0===s?-1:s,t.set(y,c);for(s=h;s<=p;s++)y=r[s],c=t.get(y),void 0!==c&&-1!==c?(a[c]=o[s],d[c]=i[s],c=e[c],t.set(y,c)):i[s]();for(c=h;c<v;c++)c in a?(o[c]=a[c],i[c]=d[c]):o[c]=P(f);u=o.length=v,r=l.slice(0)}return o});function f(t){return i[c]=t,e(l[c],c)}}}}function dt(t,e){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=n[r];!(o in t)&&(t[o]=e[o])}}function ht(t){const e={},n=Object.getOwnPropertyDescriptors(t);return Object.defineProperties(e,n),e}const pt={};function gt(t){pt.hydrate=t}function yt(){let t=0;const[e,n]=j(!1);return[e,()=>0==t++&&n(!0),()=>--t<=0&&n(!1)]}const vt=F({}),[bt,wt,_t]=yt();function mt(t){return new Promise(e=>{const n=t();k(()=>!vt.active()&&e(n))})}function St(t){const[e,n]=j(t),[r,o]=j(),[i,u]=j(),s=new Set;let c,l=!1,f=null;function a(t){c=void 0,R(()=>{n(t),l&&(l=!1,u());for(let t of s.keys())t.decrement();s.clear()})}return[function(){const t=$(vt),n=e();if(f)throw f;return r(),c&&t.increment&&!s.has(t)&&(t.increment(),s.add(t)),n},function(t){return f=null,null!=t&&"object"==typeof t&&"then"in t?(c=t,l||(l=!0,R(()=>{u(),o()})),t.then(e=>{c===t&&a(e)},e=>{c===t&&(f=e,a(void 0))})):(c=void 0,a(t)),()=>(i(),l)}]}function At(t){const e=j(),[n,r]=St(t);return[()=>(n(),e[0]()),e[1],r]}vt.active=bt,vt.increment=wt,vt.decrement=_t;const Ot={get(t,e){if(e===X)return t;if(e===Z||e===Y)return;const n=t[e],r=et(n);if(z()&&("function"!=typeof n||t.hasOwnProperty(e))){let o,i;r&&(o=rt(n))&&(i=o._||(o._=j()),i[0]()),o=rt(t),i=o[e]||(o[e]=At(n)),i[0]()}return r?tt(n):n},set:()=>!0,deleteProperty:()=>!0};function xt(t){const e=nt(t||{}),n=tt(e,Ot),r={};function o(...t){R(()=>st(e,t))}return[n,function(t,n){const i=rt(e),u=Object.keys(t);for(let s=0;s<u.length;s++){const c=u[s],l=t[c],f=t=>(n?o(c,n(t)):ut(e,c,t),t),a=(i[c]||(i[c]=At(e[c])))[2](l&&"object"==typeof l&&"then"in l?l.then(f):f(l));!(c in r)&&Object.defineProperty(r,c,{get:()=>a()})}return r},o]}function Pt(t){return e=>{const n=pt.hydrate&&pt.hydrate.registry,r=pt.hydrate?{id:`${pt.hydrate.id}.${pt.hydrate.count++}`,count:0,registry:pt.hydrate.registry}:void 0;let o,i,u,s;return n?([o,i]=j(),t().then(t=>i(t.default))):([o,u]=St(),u(t().then(t=>t.default))),T(()=>(s=o())&&C(()=>{if(!r)return s(e);const t=pt.hydrate;gt(r);const n=s(e);return!t&&gt(),n}))}}function jt(t){const[e,n,r]=yt();return[e,e=>{const o=vt.transition;vt.transition={timeoutMs:t.timeoutMs,increment:n,decrement:r},n(),e(),r(),E(()=>vt.transition=o)}]}function kt(t){const{state:e}=$(vt);let n;return e?()=>"suspended"===e()?n:n=t():t}var Mt,Tt=n(0);const Lt=Object(Tt.a)(),Rt=null!==(Mt=Lt.SOLID)&&void 0!==Mt?Mt:Lt.SOLID=r,{createSignal:Ct,createEffect:Et,createRoot:Dt,sample:It}=Rt;function zt(){return this()}function Ft(t){return this(t)}function $t(t){const[e,n]=Ct(t),r=t=>void 0===t?e():(n(t),t);return r.get=zt.bind(r),r.set=Ft.bind(r),r}function qt(t){let e;return Dt(n=>{e=n,Et(t)}),e}function Vt(t,e,n){const r=1===arguments.length&&"kind"in t;if(r){const e=t;return"class"===e.kind?{...e,finisher:Wt}:{...e,finisher(t){var n,r;return Bt(t.prototype,e.key),null!==(r=null===(n=e.finisher)||void 0===n?void 0:n.call(e,t))&&void 0!==r?r:t}}}if(1===arguments.length&&"function"==typeof t){return Wt(t)}return Bt(t,e,n)}function Wt(t){var e;return(e=class extends t{constructor(...e){super(...e),Ht(this,t)}}).__isReactive__=!0,e}const Ut=new WeakMap;function Bt(t,e,n){let r=Ut.get(t.constructor);r||Ut.set(t.constructor,r=[]),r.push(e);const o="v_"+e;let i,u,s,c=!1;if(n&&!("initializer"in n)||(c=!0,n||(n=Object.getOwnPropertyDescriptor(t,e))),n)if(i=n.get,u=n.set,i||u){if(!i||!u)return void console.warn('The `@reactive` decorator was used on an accessor named "'+e+'" which had a getter or a setter, but not both. Reactivity on accessors works only when accessors have both get and set. In this case the decorator does not do anything.');delete n.get,delete n.set}else{if(s=n.value,!n.writable)return void console.warn("The `@reactive` decorator was used on a property named "+e+" that is not writable. Reactivity is not enabled for non-writable properties.");delete n.value,delete n.writable}if(n={...n,get:i?function(){return Gt(this,o,s)(),i.call(this)}:function(){return Gt(this,o,s)()},set:u?function(t){u.call(this,t);Gt(this,o)(t),this.__propsSetAtLeastOnce__||(this.__propsSetAtLeastOnce__=new Set),this.__propsSetAtLeastOnce__.add(e)}:function(t){Gt(this,o)(t),this.__propsSetAtLeastOnce__||(this.__propsSetAtLeastOnce__=new Set),this.__propsSetAtLeastOnce__.add(e)}},t.__reactifiedProps__||(t.__reactifiedProps__=new Set),t.__reactifiedProps__.add(e),!c)return n;Object.defineProperty(t,e,n)}function Gt(t,e,n){let r=t[e];return r||(t[e]=r=$t(n),r)}function Ht(t,e){if(function(t){return"function"==typeof t}(e)){const n=e;let r=Ut.get(n);r&&function(t,e){for(const n of e)if(t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}}(t,r),r=n.reactiveProperties,Array.isArray(r)&&Jt(t,r)}else{Jt(t,e)}return t}function Jt(t,e){var n;for(const r of e){if(null===(n=t.__reactifiedProps__)||void 0===n?void 0:n.has(r))continue;const e=t[r];Bt(t,r),t[r]=e}}const Kt=It,Nt="0.2.3"}]);
LUME=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";(function(e){function r(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:Function("return this")()}n.d(t,"a",(function(){return r}))}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"variable",(function(){return lt})),n.d(t,"autorun",(function(){return ft})),n.d(t,"reactive",(function(){return at})),n.d(t,"reactify",(function(){return yt})),n.d(t,"untrack",(function(){return vt})),n.d(t,"version",(function(){return wt}));var r={};n.r(r),n.d(r,"$RAW",(function(){return pe})),n.d(r,"ErrorBoundary",(function(){return Ge})),n.d(r,"For",(function(){return Ne})),n.d(r,"Index",(function(){return Ye})),n.d(r,"Match",(function(){return Be})),n.d(r,"Show",(function(){return qe})),n.d(r,"Suspense",(function(){return Xe})),n.d(r,"SuspenseList",(function(){return Qe})),n.d(r,"Switch",(function(){return We})),n.d(r,"assignProps",(function(){return Ee})),n.d(r,"awaitSuspense",(function(){return Ke})),n.d(r,"batch",(function(){return V})),n.d(r,"cancelCallback",(function(){return p})),n.d(r,"createComponent",(function(){return Le})),n.d(r,"createComputed",(function(){return F})),n.d(r,"createContext",(function(){return J})),n.d(r,"createDeferred",(function(){return L})),n.d(r,"createEffect",(function(){return C})),n.d(r,"createMemo",(function(){return I})),n.d(r,"createMutable",(function(){return De})),n.d(r,"createRenderEffect",(function(){return $})),n.d(r,"createResource",(function(){return X})),n.d(r,"createResourceState",(function(){return je})),n.d(r,"createRoot",(function(){return M})),n.d(r,"createSelector",(function(){return E})),n.d(r,"createSignal",(function(){return R})),n.d(r,"createState",(function(){return Ae})),n.d(r,"equalFn",(function(){return y})),n.d(r,"getContextOwner",(function(){return G})),n.d(r,"getListener",(function(){return B})),n.d(r,"indexArray",(function(){return Ie})),n.d(r,"lazy",(function(){return ze})),n.d(r,"mapArray",(function(){return Ce})),n.d(r,"on",(function(){return N})),n.d(r,"onCleanup",(function(){return q})),n.d(r,"onError",(function(){return W})),n.d(r,"onMount",(function(){return Y})),n.d(r,"produce",(function(){return Fe})),n.d(r,"reconcile",(function(){return Me})),n.d(r,"requestCallback",(function(){return h})),n.d(r,"serializeGraph",(function(){return U})),n.d(r,"splitProps",(function(){return Ve})),n.d(r,"untrack",(function(){return H})),n.d(r,"unwrap",(function(){return _e})),n.d(r,"useContext",(function(){return K})),n.d(r,"useTransition",(function(){return z}));let o=1,u=!1,i=!1,c=[],s=null,l=null,f=0,a=null,d=null;function h(e,t){a||function(){if(window&&window.MessageChannel){const e=new MessageChannel,t=e.port2;a=()=>t.postMessage(null),e.port1.onmessage=()=>{if(null!==d){const e=performance.now();f=e+5;const n=!0;try{d(n,e)?t.postMessage(null):d=null}catch(e){throw t.postMessage(null),e}}}}else{let e;a=()=>{e||(e=d,setTimeout(()=>{const t=performance.now();f=t+5;const n=e(!0,t);e=null,n&&a()},0))}}if(navigator&&navigator.scheduling&&navigator.scheduling.isInputPending){const e=navigator.scheduling;l=()=>{const t=performance.now();return t>=f&&(!!e.isInputPending()||t>=300)}}else l=()=>performance.now()>=f}();let n=performance.now(),r=1073741823;t&&t.timeout&&(r=t.timeout);const s={id:o++,fn:e,startTime:n,expirationTime:n+r};return function(e,t){e.splice(function(){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,u=t.expirationTime-e[o].expirationTime;if(u>0)n=o+1;else{if(!(u<0))return o;r=o-1}}return n}(),0,t)}(c,s),u||i||(u=!0,d=g,a()),s}function p(e){e.fn=null}function g(e,t){u=!1,i=!0;try{return function(e,t){let n=t;s=c[0]||null;for(;null!==s&&(!(s.expirationTime>n)||e&&!l());){const e=s.fn;if(null!==e){s.fn=null;const t=s.expirationTime<=n;e(t),n=performance.now(),s===c[0]&&c.shift()}else c.shift();s=c[0]||null}return null!==s}(e,t)}finally{s=null,i=!1}}const y=(e,t)=>e===t;let b=null,v=ie;const w={},_={owned:null,cleanups:null,context:null,owner:null},[m,O]=R(!1,!0);var S=null,k=null;let P,A=null,x=null,j=null,T=null,D=0;function M(e,t){t&&(S=t);const n=k,r=S,o=0===e.length?_:{owned:null,cleanups:null,context:null,owner:r,attached:!!t};let u;S=o,k=null;try{ue(()=>u=e(()=>fe(o)),!0)}finally{k=n,S=r}return u}function R(e,t,n){const r={value:e,observers:null,observerSlots:null,pending:w,comparator:t?"function"==typeof t?t:y:void 0};return[Z.bind(r),ee.bind(r)]}function F(e,t){te(re(e,t,!0))}function $(e,t){te(re(e,t,!1))}function C(e,t){if(globalThis._$HYDRATION&&globalThis._$HYDRATION.asyncSSR)return;v=ce;const n=re(e,t,!1),r=P&&de(S,P.id);r&&(n.suspense=r),n.user=!0,j&&j.push(n)}function I(e,t,n){const r=re(e,t,!0);return r.pending=w,r.observers=null,r.observerSlots=null,r.state=0,r.comparator=n?"function"==typeof n?n:y:void 0,te(r),Z.bind(r)}function L(e,t){let n,r=t?t.timeoutMs:void 0;const[o,u]=R(),i=re(()=>(n&&n.fn||(n=h(()=>u(i.value),void 0!==r?{timeout:r}:void 0)),e()),void 0,!0);return te(i),u(i.value),o}function E(e,t=y){let n=new Map;const r=re(r=>{const o=e();for(const e of n.keys())if(t(e,o)||r&&t(e,r)){const t=n.get(e);t.state=1,t.pure?x.push(t):j.push(t)}return o},void 0,!0);return te(r),e=>(k&&(n.set(e,k),q(()=>n.delete(e))),t(e,r.value))}function V(e){if(A)return e();const t=A=[],n=e();return A=null,ue(()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(n.pending!==w){const e=n.pending;n.pending=w,ee.call(n,e)}}},!1),n}function z(){return[m,e=>{P&&(T||(T={sources:new Set,effects:[],promises:new Set,disposed:new Set,running:!0}),T.running=!0),V(e)}]}function H(e){let t,n=k;return k=null,t=e(),k=n,t}function N(...e){const t=e.pop();let n,r,o=!0;return e.length<2?(n=e[0],o=!1):n=e,e=>{let u;if(o){u=[],r||(r=[]);for(let e=0;e<n.length;e++)u.push(n[e]())}else u=n();const i=H(()=>t(u,r,e));return r=u,i}}function Y(e){C(()=>H(e))}function q(e){return null===S||(null===S.cleanups?S.cleanups=[e]:S.cleanups.push(e)),e}function W(e){b||(b=Symbol("error")),null===S||(null===S.context?S.context={[b]:[e]}:S.context[b]?S.context[b].push(e):S.context[b]=[e])}function B(){return k}function G(){return S}function U(e){return{}}function J(e){const t=Symbol("context");return{id:t,Provider:he(t),defaultValue:e}}function K(e){return de(S,e.id)||e.defaultValue}function Q(){return P||(P=J({}))}function X(e,t={}){const[n,r]=R(e),[o,u]=R(!1,!0),i=new Set,c=globalThis._$HYDRATION||{};let s=null,l=null;function f(e,t,n){return l===e&&(s=n,l=null,T&&T.promises.has(e)?(T.promises.delete(e),ue(()=>{T.running=!0,T.promises.size||(j.push.apply(j,T.effects),T.effects=[]),a(t)},!1)):a(t)),t}function a(e){V(()=>{r(e),c.asyncSSR&&t.name&&(c.resources[t.name]=e),u(!1);for(let e of i.keys())e.decrement();i.clear()})}function d(){const e=P&&de(S,P.id),t=n();if(s)throw s;return k&&!k.user&&e&&(k.pure||F(()=>{n(),l&&e.resolved&&T&&T.promises.add(l)}),l&&(k.pure&&e.resolved&&T?T.promises.add(l):i.has(e)||(e.increment(),i.add(e)))),t}return Object.defineProperty(d,"loading",{get:()=>o()}),[d,function(e){let o;return s=null,c.context&&!!c.context.registry&&(c.loadResource&&!t.notStreamed?e=c.loadResource:t.name&&c.resources&&t.name in c.resources&&(e=()=>{const e=c.resources[t.name];return delete c.resources[t.name],e})),o=e(),T&&l&&T.promises.delete(l),"object"==typeof o&&"then"in o?(l=o,V(()=>{u(!0),r(H(n))}),o.then(e=>f(o,e),e=>f(o,n(),e))):(l=null,a(o),o)}]}function Z(){if(this.state&&this.sources){const e=x;x=null,1===this.state?te(this):se(this),x=e}if(k){const e=this.observers?this.observers.length:0;k.sources?(k.sources.push(this),k.sourceSlots.push(e)):(k.sources=[this],k.sourceSlots=[e]),this.observers?(this.observers.push(k),this.observerSlots.push(k.sources.length-1)):(this.observers=[k],this.observerSlots=[k.sources.length-1])}return T&&T.running&&T.sources.has(this)?this.tValue:this.value}function ee(e,t){if(this.comparator)if(T&&T.running&&T.sources.has(this)){if(this.comparator(this.tValue,e))return e}else if(this.comparator(this.value,e))return e;return A?(this.pending===w&&A.push(this),this.pending=e,e):(T?((T.running||!t&&T.sources.has(this))&&(T.sources.add(this),this.tValue=e),T.running||(this.value=e)):this.value=e,!this.observers||x&&!this.observers.length||ue(()=>{for(let e=0;e<this.observers.length;e+=1){const t=this.observers[e];T&&T.running&&T.disposed.has(t)||(t.observers&&2!==t.state&&le(t),t.state=1,t.pure?x.push(t):j.push(t))}if(x.length>1e6)throw x=[],new Error("Potential Infinite Loop Detected.")},!1),e)}function te(e){if(!e.fn)return;fe(e);const t=S,n=k,r=D;k=S=e,ne(e,e.value,r),T&&!T.running&&T.sources.has(e)&&(T.running=!0,ne(e,e.tValue,r),T.running=!1),k=n,S=t}function ne(e,t,n){let r;try{r=e.fn(t)}catch(e){ae(e)}(!e.updatedAt||e.updatedAt<=n)&&(e.observers&&e.observers.length?ee.call(e,r,!0):T&&T.running&&e.pure?(T.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function re(e,t,n){const r={fn:e,state:1,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:S,context:null,pure:n};return null===S||S!==_&&(T&&T.running&&S.pure?S.tOwned?S.tOwned.push(r):S.tOwned=[r]:S.owned?S.owned.push(r):S.owned=[r]),r}function oe(e){let t,n=1===e.state&&e;if(e.suspense&&H(e.suspense.inFallback))return e.suspense.effects.push(e);const r=T&&T.running;for(;(e.fn||r&&e.attached)&&(e=e.owner);){if(r&&T.disposed.has(e))return;2===e.state?t=e:1===e.state&&(n=e,t=void 0)}if(t){const o=x;if(x=null,se(t),x=o,!n||1!==n.state)return;if(r)for(e=n;(e.fn||e.attached)&&(e=e.owner);)if(T.disposed.has(e))return}n&&te(n)}function ue(e,t){if(x)return e();let n=!1;t||(x=[]),j?n=!0:j=[],D++;try{e()}catch(e){ae(e)}finally{if(x&&(ie(x),x=null),n)return;if(T&&T.running){if(T.running=!1,T.promises.size)return T.effects.push.apply(T.effects,j),j=null,void O(!0);T.sources.forEach(e=>{if(e.value=e.tValue,e.owned)for(let t=0,n=e.owned.length;t<n;t++)fe(e.owned[t]);e.tOwned&&(e.owned=e.tOwned),delete e.tValue,delete e.tOwned}),T=null,O(!1)}j.length?V(()=>{v(j),j=null}):j=null}}function ie(e){for(let t=0;t<e.length;t++)oe(e[t])}function ce(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:oe(r)}const r=e.length;for(t=0;t<n;t++)oe(e[t]);for(t=r;t<e.length;t++)oe(e[t])}function se(e){e.state=0;for(let t=0;t<e.sources.length;t+=1){const n=e.sources[t];n.sources&&(1===n.state?oe(n):2===n.state&&se(n))}}function le(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=2,n.observers&&le(n))}}function fe(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(T&&T.running&&e.pure){if(e.tOwned){for(t=0;t<e.tOwned.length;t++)fe(e.tOwned[t]);delete e.tOwned}!function e(t,n){n||(t.state=0,T.disposed.add(t));if(t.owned)for(let n=0;n<t.owned.length;n++)e(t.owned[n])}(e,!0)}else if(e.owned){for(t=0;t<e.owned.length;t++)fe(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function ae(e){const t=b&&de(S,b);if(!t)throw e;t.forEach(t=>t(e))}function de(e,t){return e&&(e.context&&e.context[t]||e.owner&&de(e.owner,t))}function he(e){return function(t){return I(()=>(S.context={[e]:t.value},function e(t){if("function"==typeof t)return I(()=>e(t()));if(Array.isArray(t)){const n=[];for(let r=0;r<t.length;r++){let o=e(t[r]);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}return t}(t.children)))}}const pe=Symbol("state-raw"),ge=Symbol("state-node"),ye=Symbol("state-proxy"),be=Symbol("state-name");function ve(e,t,n,r){let o=e[ye];if(!o&&(Object.defineProperty(e,ye,{value:o=new Proxy(e,r||Se)}),n)){let t=Object.keys(e),n=Object.getOwnPropertyDescriptors(e);for(let r=0,u=t.length;r<u;r++){const u=t[r];if(n[u].get){const t=I(n[u].get.bind(o));Object.defineProperty(e,u,{get:t})}if(n[u].set){const t=n[u].set,r=e=>V(()=>t.call(o,e));Object.defineProperty(e,u,{set:r})}}}return o}function we(e){return null!=e&&"object"==typeof e&&(e.__proto__===Object.prototype||Array.isArray(e))}function _e(e,t){let n,r,o,u;if(n=null!=e&&e[pe])return n;if(!we(e))return e;if(Array.isArray(e)){Object.isFrozen(e)&&(e=e.slice(0));for(let n=0,u=e.length;n<u;n++)o=e[n],(r=_e(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)&&(e=Object.assign({},e));let n=Object.keys(e),i=t&&Object.getOwnPropertyDescriptors(e);for(let c=0,s=n.length;c<s;c++)u=n[c],t&&i[u].get||(o=e[u],(r=_e(o,t))!==o&&(e[u]=r))}return e}function me(e){let t=e[ge];return t||Object.defineProperty(e,ge,{value:t={}}),t}function Oe(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||t===ye||t===ge||t===be||(delete n.value,delete n.writable,n.get=()=>e[t]),n}const Se={get(e,t,n){if(t===pe)return e;if(t===ye)return n;const r=e[t];if(t===ge||"__proto__"===t)return r;const o=we(r);if(k&&("function"!=typeof r||e.hasOwnProperty(t))){let n,u;o&&(n=me(r))&&(u=n._||(n._=R()),u[0]()),n=me(e),u=n[t]||(n[t]=R()),u[0]()}return o?ve(r):r},set:()=>!0,deleteProperty:()=>!0,getOwnPropertyDescriptor:Oe};function ke(e,t,n,r){if(!r&&e[t]===n)return;const o=Array.isArray(e)||!(t in e);void 0===n?delete e[t]:e[t]=n;let u,i=me(e);(u=i[t])&&u[1](),o&&(u=i._)&&u[1]()}function Pe(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const u=typeof r,i=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)Pe(e,[r[o]].concat(t),[r[o]].concat(n));return}if(i&&"function"===u){for(let o=0;o<e.length;o++)r(e[o],o)&&Pe(e,[o].concat(t),[o].concat(n));return}if(i&&"object"===u){const{from:o=0,to:u=e.length-1,by:i=1}=r;for(let r=o;r<=u;r+=i)Pe(e,[r].concat(t),[r].concat(n));return}if(t.length>1)return void Pe(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let u=t[0];"function"==typeof u&&(u=u(o,n),u===o)||void 0===r&&null==u||(u=_e(u),void 0===r||we(o)&&we(u)&&!Array.isArray(u)?function(e,t,n){const r=Object.keys(t);for(let o=0;o<r.length;o+=1){const u=r[o];ke(e,u,t[u],n)}}(o,u):ke(e,r,u))}function Ae(e,t){const n=_e(e||{},!0);return[ve(n,0,!0),function(...e){V(()=>Pe(n,e))}]}function xe(e,t){const n=R(),[r,o]=X(e,{name:t});return[()=>(r(),n[0]()),n[1],o,()=>r.loading]}function je(e,t={}){const n={get:(e,n)=>(e[n]||(e[n]=xe(void 0,name&&`${t.name}:${n}`)))[3](),set:()=>!0,deleteProperty:()=>!0},r={get(e,r,o){if(r===pe)return e;if(r===ye)return o;if("loading"===r)return new Proxy(me(e),n);const u=e[r];if(r===ge||"__proto__"===r)return u;const i=we(u);if(k&&("function"!=typeof u||e.hasOwnProperty(r))){let n,o;i&&(n=me(u))&&(o=n._||(n._=R()),o[0]()),n=me(e),o=n[r]||(n[r]=xe(u,`${t.name}:${r}`)),o[0]()}return i?ve(u):u},set:()=>!0,deleteProperty:()=>!0,getOwnPropertyDescriptor:Oe},o=_e(e||{},!0);function u(...e){V(()=>Pe(o,e))}return[ve(o,0,!0,r),function(e,n){const r=me(o),i=Object.keys(e);for(let c=0;c<i.length;c++){const s=i[c],l=e=>(n?u(s,n(e)):ke(o,s,e),e),f=(r[s]||(r[s]=xe(o[s],`${t.name}:${s}`)))[2](e[s]);"object"==typeof f&&"then"in f?f.then(l):l(f)}},u]}const Te={get(e,t,n){if(t===pe)return e;if(t===ye)return n;const r=e[t];if(t===ge||"__proto__"===t)return r;const o=we(r);if(k&&("function"!=typeof r||e.hasOwnProperty(t))){let n,u;o&&(n=me(r))&&(u=n._||(n._=R()),u[0]()),n=me(e),u=n[t]||(n[t]=R()),u[0]()}return o?ve(r,0,!1,Te):r},set:(e,t,n)=>(ke(e,t,_e(n)),!0),deleteProperty:(e,t)=>(ke(e,t,void 0),!0),getOwnPropertyDescriptor:Oe};function De(e,t){return ve(_e(e||{},!0),0,!0,Te)}function Me(e,t={}){const{merge:n,key:r="id"}=t,o=_e(e);return e=>we(e)?(function e(t,n,r,o,u){let i=n[r];if(t===i)return;if(!we(t)||!we(i)||u&&t[u]!==i[u])return void(t!==i&&ke(n,r,t));if(Array.isArray(t)){if(t.length&&i.length&&(!o||u&&null!=t[0][u])){let n,r,c,s,l,f,a,d;for(c=0,s=Math.min(i.length,t.length);c<s&&(i[c]===t[c]||u&&i[c][u]===t[c][u]);c++)e(t[c],i,c,o,u);const h=new Array(t.length),p=new Map;for(s=i.length-1,l=t.length-1;s>=c&&l>=c&&(i[s]===t[l]||u&&i[s][u]===t[l][u]);s--,l--)h[l]=i[s];if(c>l||c>s){for(r=c;r<=l;r++)ke(i,r,t[r]);for(;r<t.length;r++)ke(i,r,h[r]),e(t[r],i,r,o,u);return void(i.length>t.length&&ke(i,"length",t.length))}for(a=new Array(l+1),r=l;r>=c;r--)f=t[r],d=u?f[u]:f,n=p.get(d),a[r]=void 0===n?-1:n,p.set(d,r);for(n=c;n<=s;n++)f=i[n],d=u?f[u]:f,r=p.get(d),void 0!==r&&-1!==r&&(h[r]=i[n],r=a[r],p.set(d,r));for(r=c;r<t.length;r++)r in h?(ke(i,r,h[r]),e(t[r],i,r,o,u)):ke(i,r,t[r])}else for(let n=0,r=t.length;n<r;n++)e(t[n],i,n,o,u);return void(i.length>t.length&&ke(i,"length",t.length))}const c=Object.keys(t);for(let n=0,r=c.length;n<r;n++)e(t[c[n]],i,c[n],o,u);const s=Object.keys(i);for(let e=0,n=s.length;e<n;e++)void 0===t[s[e]]&&ke(i,s[e],void 0)}(o,{state:e},"state",n,r),e):o}const Re={get(e,t){if(t===pe)return e;const n=e[t];return we(n)?new Proxy(n,Re):n},set:(e,t,n)=>(ke(e,t,_e(n)),!0),deleteProperty:(e,t)=>(ke(e,t,void 0),!0)};function Fe(e){return t=>(we(t)&&e(new Proxy(t,Re)),t)}const $e=Symbol("fallback");function Ce(e,t,n={}){let r=[],o=[],u=[],i=0,c=t.length>1?[]:null,s=S;return q(()=>{for(let e=0,t=u.length;e<t;e++)u[e]()}),()=>{let l,f,a=e()||[];return H(()=>{let e,t,h,p,g,y,b,v,w,_=a.length;if(0===_){if(0!==i){for(l=0;l<i;l++)u[l]();u=[],r=[],o=[],i=0,c&&(c=[])}n.fallback&&(r=[$e],o[0]=M(e=>(u[0]=e,n.fallback()),s),i=1)}else if(0===i){for(f=0;f<_;f++)r[f]=a[f],o[f]=M(d,s);i=_}else{for(h=new Array(_),p=new Array(_),c&&(g=new Array(_)),y=0,b=Math.min(i,_);y<b&&r[y]===a[y];y++);for(b=i-1,v=_-1;b>=y&&v>=y&&r[b]===a[v];b--,v--)h[v]=o[b],p[v]=u[b],c&&(g[v]=c[b]);for(e=new Map,t=new Array(v+1),f=v;f>=y;f--)w=a[f],l=e.get(w),t[f]=void 0===l?-1:l,e.set(w,f);for(l=y;l<=b;l++)w=r[l],f=e.get(w),void 0!==f&&-1!==f?(h[f]=o[l],p[f]=u[l],c&&(g[f]=c[l]),f=t[f],e.set(w,f)):u[l]();for(f=y;f<_;f++)f in h?(o[f]=h[f],u[f]=p[f],c&&(c[f]=g[f],c[f](f))):o[f]=M(d,s);i=o.length=_,r=a.slice(0)}return o});function d(e){if(u[f]=e,c){const[e,n]=R(f,!0);return c[f]=n,t(a[f],e)}return t(a[f])}}}function Ie(e,t,n={}){let r,o=[],u=[],i=[],c=[],s=0,l=S;return q(()=>{for(let e=0,t=i.length;e<t;e++)i[e]()}),()=>{const f=e()||[];return H(()=>{if(0===f.length){if(0!==s){for(r=0;r<s;r++)i[r]();i=[],o=[],u=[],s=0,c=[]}return n.fallback&&(o=[$e],u[0]=M(e=>(i[0]=e,n.fallback()),l),s=1),u}for(o[0]===$e&&(i[0](),i=[],o=[],u=[],s=0),r=0;r<f.length;r++)r<o.length&&o[r]!==f[r]?c[r](f[r]):r>=o.length&&(u[r]=M(a,l));for(;r<o.length;r++)i[r]();return s=u.length=c.length=i.length=f.length,o=f.slice(0),u});function a(e){i[r]=e;const[n,o]=R(f[r]);return c[r]=o,t(n,r)}}}function Le(e,t){return H(()=>e(t))}function Ee(e,...t){for(let n=0;n<t.length;n++){const r=Object.getOwnPropertyDescriptors(t[n]);Object.defineProperties(e,r)}return e}function Ve(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=e=>{const t={};for(let r=0;r<e.length;r++){const o=e[r];n[o]&&(Object.defineProperty(t,o,n[o]),delete n[o])}return t};return t.map(r).concat(r(Object.keys(n)))}function ze(e){return t=>{const n=globalThis._$HYDRATION||{},r=n.context&&n.context.registry,o=function(){const e=globalThis._$HYDRATION;return e&&e.context?{id:`${e.context.id}.${e.context.count++}`,count:0,registry:e.context.registry}:void 0}(),[u,i]=X(void 0,{notStreamed:!0});let c;return r&&n.resources?e().then(e=>i(()=>e.default)):i(()=>e().then(e=>e.default)),I(()=>(c=u())&&H(()=>{if(!o)return c(t);const e=n.context;He(o);const r=c(t);return!e&&He(),r}))}}function He(e){globalThis._$HYDRATION.context=e}function Ne(e){const t="fallback"in e&&{fallback:()=>e.fallback};return I(Ce(()=>e.each,e.children,t||void 0))}function Ye(e){const t="fallback"in e&&{fallback:()=>e.fallback};return I(Ie(()=>e.each,e.children,t||void 0))}function qe(e){const t=Object.getOwnPropertyDescriptor(e,"children").value,n="function"==typeof t&&t.length,r=I(n?()=>e.when:()=>!!e.when,void 0,!0);return I(()=>{const t=r();return t?n?H(()=>e.children(t)):e.children:e.fallback})}function We(e){let t=e.children;Array.isArray(t)||(t=[t]);const n=I(()=>{for(let e=0;e<t.length;e++){const n=t[e].when;if(n)return[e,t[e].keyed?n:!!n]}return[-1]},void 0,(e,t)=>e&&e[0]===t[0]&&e[1]===t[1]);return I(()=>{const[r,o]=n();if(r<0)return e.fallback;const u=t[r].children;return"function"==typeof u&&u.length?H(()=>u(o)):u})}function Be(e){const t=Object.getOwnPropertyDescriptor(e,"children").value;return e.keyed="function"==typeof t&&!!t.length,e}function Ge(e){const[t,n]=R(),r=Object.getOwnPropertyDescriptor(e,"fallback").value,o="function"==typeof r&&!!r.length;let u;return W(n),I(()=>null!=(u=t())?o?H(()=>e.fallback(u)):e.fallback:e.children)}const Ue=J();let Je=!1;function Ke(e){const t=Q();if(!Je){let e=0;const[n,r]=R(!1);t.active=n,t.increment=()=>0==e++&&r(!0),t.decrement=()=>--e<=0&&r(!1),Je=!0}return()=>new Promise(n=>{const r=e();$(()=>!t.active()&&n(r))})}function Qe(e){let t,n,r,o=0;const u=K(Ue);if(u){const[e,o]=R(!1,!0);t=o,[n,r]=u.register(e)}const i=[],c=Le(Ue.Provider,{value:{register:e=>{const[t,n]=R(!1,!0),[r,u]=R(!1,!0);return i[o++]={inFallback:e,showContent:n,showFallback:u},[t,r]}},get children(){return e.children}});return F(()=>{const o=e.revealOrder,u=e.tail,c=!n||n(),s=!r||r(),l="backwards"===o;if("together"===o){const e=i.every(e=>!e.inFallback());return t&&t(!e),void i.forEach(t=>{t.showContent(e&&c),t.showFallback(s)})}let f=!1;for(let e=0,n=i.length;e<n;e++){const r=l?n-e-1:e,o=i[r].inFallback();if(f||o){const e=!f;e&&t&&t(!0),!u||e&&"collapsed"===u?i[r].showFallback(s):i[r].showFallback(!1),f=!0,i[r].showContent(e)}else i[r].showContent(c),i[r].showFallback(s)}!f&&t&&t(!1)}),c}function Xe(e){let t,n,r=0;const[o,u]=R(!1),i=Q(),c={increment:()=>{1==++r&&(u(!0),Je&&i.increment())},decrement:()=>{0==--r&&(u(!1),Je&&queueMicrotask(i.decrement))},inFallback:o,effects:[],resolved:!1},s=K(Ue);return s&&([t,n]=s.register(c.inFallback)),Le(i.Provider,{value:c,get children(){const r=H(()=>e.children);return()=>{const o=c.inFallback(),u=!t||t(),i=!n||n();return!o&&u?(c.resolved=!0,s=c.effects,T&&(T.running=!0),j.push.apply(j,s),s.length=0,r):i?e.fallback:void 0;var s}}})}var Ze,et=n(0);const tt=Object(et.a)(),nt=null!==(Ze=tt.SOLID)&&void 0!==Ze?Ze:tt.SOLID=r,{createSignal:rt,createEffect:ot,createRoot:ut,untrack:it}=nt;function ct(){return this()}function st(e){return this(e)}function lt(e){const[t,n]=rt(e),r=e=>void 0===e?t():(n(e),e);return r.get=ct.bind(r),r.set=st.bind(r),r}function ft(e){let t;return ut(n=>{t=n,ot(e)}),t}function at(e,t,n){const r=1===arguments.length&&"kind"in e;if(r){const t=e;return"class"===t.kind?{...t,finisher:dt}:{...t,finisher(e){var n,r;return pt(e.prototype,t.key),null!==(r=null===(n=t.finisher)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:e}}}if(1===arguments.length&&"function"==typeof e){return dt(e)}return pt(e,t,n)}function dt(e){var t;return(t=class extends e{constructor(...t){super(...t),yt(this,e)}}).__isReactive__=!0,t}const ht=new WeakMap;function pt(e,t,n){let r=ht.get(e.constructor);r||ht.set(e.constructor,r=[]),r.push(t);const o="v_"+t;let u,i,c,s=!1;if(n&&!("initializer"in n)||(s=!0,n||(n=Object.getOwnPropertyDescriptor(e,t))),n)if(u=n.get,i=n.set,u||i){if(!u||!i)return void console.warn('The `@reactive` decorator was used on an accessor named "'+t+'" which had a getter or a setter, but not both. Reactivity on accessors works only when accessors have both get and set. In this case the decorator does not do anything.');delete n.get,delete n.set}else{if(c=n.value,!n.writable)return void console.warn("The `@reactive` decorator was used on a property named "+t+" that is not writable. Reactivity is not enabled for non-writable properties.");delete n.value,delete n.writable}if(n={...n,get:u?function(){return gt(this,o,c)(),u.call(this)}:function(){return gt(this,o,c)()},set:i?function(e){i.call(this,e);gt(this,o)(e),this.__propsSetAtLeastOnce__||(this.__propsSetAtLeastOnce__=new Set),this.__propsSetAtLeastOnce__.add(t)}:function(e){gt(this,o)(e),this.__propsSetAtLeastOnce__||(this.__propsSetAtLeastOnce__=new Set),this.__propsSetAtLeastOnce__.add(t)}},e.__reactifiedProps__||(e.__reactifiedProps__=new Set),e.__reactifiedProps__.add(t),!s)return n;Object.defineProperty(e,t,n)}function gt(e,t,n){let r=e[t];return r||(e[t]=r=lt(n),r)}function yt(e,t){if(function(e){return"function"==typeof e}(t)){const n=t;let r=ht.get(n);r&&function(e,t){for(const n of t)if(e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}}(e,r),r=n.reactiveProperties,Array.isArray(r)&&bt(e,r)}else{bt(e,t)}return e}function bt(e,t){var n;for(const r of t){if(null===(n=e.__reactifiedProps__)||void 0===n?void 0:n.has(r))continue;const t=e[r];pt(e,r),e[r]=t}}const vt=it,wt="0.3.0"}]);
//# sourceMappingURL=global.js.map

@@ -17,4 +17,4 @@ import * as SOLID from 'solid-js';

export declare function reactify<C extends AnyClass>(obj: InstanceType<C>, ctor: C): typeof obj;
export declare const untrack: typeof SOLID.sample;
export declare const version = "0.2.3";
export declare const untrack: typeof SOLID.untrack;
export declare const version = "0.3.0";
export {};

@@ -6,3 +6,3 @@ var _a;

const Solid = (_a = global.SOLID) !== null && _a !== void 0 ? _a : (global.SOLID = SOLID);
const { createSignal, createEffect, createRoot, sample } = Solid;
const { createSignal, createEffect, createRoot, untrack: _untrack } = Solid;
function readVariable() {

@@ -191,4 +191,4 @@ return this();

}
export const untrack = sample;
export const version = '0.2.3';
export const untrack = _untrack;
export const version = '0.3.0';
//# sourceMappingURL=index.js.map
{
"name": "@lume/variable",
"version": "0.2.3",
"version": "0.3.0",
"description": "Create and react to reactive variables.",

@@ -38,6 +38,6 @@ "author": "Joe Pea <joe@trusktr.io>",

"lit-dom-expressions": "^0.19.10",
"solid-js": "0.18.0"
"solid-js": "0.22.8"
},
"devDependencies": {
"@lume/cli": "^0.2.0",
"@lume/cli": "^0.3.0",
"prettier": "^1.19.1"

@@ -44,0 +44,0 @@ },

@@ -1,43 +0,7 @@

// These imports should live in @lume/element, but doing that causes Solid to
// exist more than once in node_modules, which causes duplicate-module issues.
// So because we know @lume/element depends on @lume/variable, we stuck these
// imports here to avoid the duplicate-module issues.
// This import should live in @lume/element, but doing that causes Solid to exist
// more than once in node_modules, which causes duplicate-module issues. So
// because we know @lume/element depends on @lume/variable, we stuck this here
// to avoid the duplicate-module issues.
import {
// --- runtime ---
render as _render,
renderToString as _renderToString,
renderDOMToString as _renderDOMToString,
hydrate as _hydrate,
template as _template,
effect as _effect,
memo as _memo,
insert as _insert,
createComponent as _createComponent,
delegateEvents as _delegateEvents,
clearDelegatedEvents as _clearDelegatedEvents,
spread as _spread,
assign as _assign,
classList as _classList,
style as _style,
currentContext as _currentContext,
ssr as _ssr,
ssrClassList as _ssrClassList,
ssrStyle as _ssrStyle,
ssrSpread as _ssrSpread,
escape as _escape,
getHydrationKey as _getHydrationKey,
getNextElement as _getNextElement,
getNextMarker as _getNextMarker,
generateHydrationEventsScript as _generateHydrationEventsScript,
// --- Suspense ---
SuspenseList as _SuspenseList,
Suspense as _Suspense,
// --- index ---
For as _For,
Show as _Show,
Switch as _Switch,
Match as _Match,
Portal as _Portal,
} from 'solid-js/dom'
import * as _dom from 'solid-js/dom'

@@ -48,78 +12,8 @@ import {getGlobal} from './getGlobal'

// If there *do* happen to be duplicate modules for some reason, the modules are
// designed to look for the APIs on global variables, so regardless if each
// duplicate module's ES Module dependencies contain duplicates, only the APIs
// stored on the global vars will be used as the source of truth.
const render = global.solid_render ?? (global.solid_render = _render)
const renderToString = global.solid_renderToString ?? (global.solid_renderToString = _renderToString)
const renderDOMToString = global.solid_renderDOMToString ?? (global.solid_renderDOMToString = _renderDOMToString)
const hydrate = global.solid_hydrate ?? (global.solid_hydrate = _hydrate)
const template = global.solid_template ?? (global.solid_template = _template)
const effect = global.solid_effect ?? (global.solid_effect = _effect)
const memo = global.solid_memo ?? (global.solid_memo = _memo)
const insert = global.solid_insert ?? (global.solid_insert = _insert)
const createComponent = global.solid_createComponent ?? (global.solid_createComponent = _createComponent)
const delegateEvents = global.solid_delegateEvents ?? (global.solid_delegateEvents = _delegateEvents)
const clearDelegatedEvents =
global.solid_clearDelegatedEvents ?? (global.solid_clearDelegatedEvents = _clearDelegatedEvents)
const spread = global.solid_spread ?? (global.solid_spread = _spread)
const assign = global.solid_assign ?? (global.solid_assign = _assign)
const classList = global.solid_classList ?? (global.solid_classList = _classList)
const style = global.solid_style ?? (global.solid_style = _style)
const currentContext = global.solid_currentContext ?? (global.solid_currentContext = _currentContext)
const ssr = global.solid_ssr ?? (global.solid_ssr = _ssr)
const ssrClassList = global.solid_ssrClassList ?? (global.solid_ssrClassList = _ssrClassList)
const ssrStyle = global.solid_ssrStyle ?? (global.solid_ssrStyle = _ssrStyle)
const ssrSpread = global.solid_ssrSpread ?? (global.solid_ssrSpread = _ssrSpread)
const escape = global.solid_escape ?? (global.solid_escape = _escape)
const getHydrationKey = global.solid_getHydrationKey ?? (global.solid_getHydrationKey = _getHydrationKey)
const getNextElement = global.solid_getNextElement ?? (global.solid_getNextElement = _getNextElement)
const getNextMarker = global.solid_getNextMarker ?? (global.solid_getNextMarker = _getNextMarker)
const generateHydrationEventsScript =
global.solid_generateHydrationEventsScript ??
(global.solid_generateHydrationEventsScript = _generateHydrationEventsScript)
const SuspenseList = global.solid_SuspenseList ?? (global.solid_SuspenseList = _SuspenseList)
const Suspense = global.solid_Suspense ?? (global.solid_Suspense = _Suspense)
const For = global.solid_For ?? (global.solid_For = _For)
const Show = global.solid_Show ?? (global.solid_Show = _Show)
const Switch = global.solid_Switch ?? (global.solid_Switch = _Switch)
const Match = global.solid_Match ?? (global.solid_Match = _Match)
const Portal = global.solid_Portal ?? (global.solid_Portal = _Portal)
// Another strategy to avoid duplicate modules is to store the improted libs on
// a global var. If there are any duplicate modules, they will use the lib that
// is stored on the global var instead of using a lib that is encpsulated in
// (and unique to) their ES Module imports.
const dom: typeof _dom = global.SOLID_DOM ?? (global.SOLID_DOM = _dom)
export {
// --- runtime ---
render,
renderToString,
renderDOMToString,
hydrate,
template,
effect,
memo,
insert,
createComponent,
delegateEvents,
clearDelegatedEvents,
spread,
assign,
classList,
style,
currentContext,
ssr,
ssrClassList,
ssrStyle,
ssrSpread,
escape,
getHydrationKey,
getNextElement,
getNextMarker,
generateHydrationEventsScript,
// --- Suspense ---
SuspenseList,
Suspense,
// --- index ---
For,
Show,
Switch,
Match,
Portal,
}
export {dom}

@@ -6,3 +6,3 @@ import * as SOLID from 'solid-js'

const Solid: typeof SOLID = global.SOLID ?? (global.SOLID = SOLID)
const {createSignal, createEffect, createRoot, sample} = Solid
const {createSignal, createEffect, createRoot, untrack: _untrack} = Solid

@@ -342,4 +342,22 @@ /** Represents a reactive variable. The value is set or gotten depending on passing an arg or no arg. */

export const untrack = sample
/**
* When untrack() is used inside an autorun(), dependencies for code inside the
* untrack() block will not be tracked although the code still runs when the
* autorun runs. For example:
*
* ```js
* autorun(() => {
* // This autorun will re-run whenever someVar changes...
* console.log(someVar())
*
* untrack(() => {
* // ...but not when otherVar changes, although this logic still fires any
* // time the autorun re-runs.
* console.log(otherVar())
* })
* })
* ```
*/
export const untrack = _untrack
export const version = '0.2.3'
export const version = '0.3.0'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc