New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

omi

Package Overview
Dependencies
Maintainers
6
Versions
373
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omi - npm Package Compare versions

Comparing version 7.5.6 to 7.5.7

2

dist/omi.modern.js

@@ -1,2 +0,2 @@

import"weakmap-polyfill";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.apply(this,arguments)}function t(e){return e.replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function n(e){return e.children}function o(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function r(e){return"[object Array]"===Object.prototype.toString.call(e)}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument("boot"),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,s=Array.prototype.forEach,i=/@import.+?;?$/gm,l=CSSStyleSheet.prototype;l.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},l.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=new WeakMap,u=new WeakMap,a=new WeakMap,p=R.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(O(this),"string"==typeof e){var t=this,n=c.get(t).ownerNode;n.textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),c.set(t,n.sheet),u.get(t).forEach(function(e){e.isConnected()&&P(t,N(t,e))})}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return O(this),c.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){p[e]=function(){var t=this;O(t);var n=arguments,o=c.get(t),r=u.get(t),s=o[e].apply(o,n);return r.forEach(function(o){if(o.isConnected()){var r=N(t,o).sheet;r[e].apply(r,n)}}),s}}),r(R,Symbol.hasInstance,{configurable:!0,value:E});var d={childList:!0,subtree:!0},h=new WeakMap,f=new WeakMap,m=new WeakMap,y=new WeakMap,v=L.prototype;if(v.isConnected=function(){var e=f.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},v.connect=function(){var e=A(this);y.get(this).observe(e,d),m.get(this).length>0&&x(this),k(e,function(e){j(e).connect()})},v.disconnect=function(){y.get(this).disconnect()},v.update=function(e){var t=this,n=f.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,s=m.get(t),i=(o=e).filter(function(e,t){return o.indexOf(e)===t});(r=i,s.filter(function(e){return-1===r.indexOf(e)})).forEach(function(e){var n;(n=N(e,t)).parentNode.removeChild(n),function(e,t){a.get(e).delete(t),u.set(e,u.get(e).filter(function(e){return e!==t}))}(e,t)}),m.set(t,i),t.isConnected()&&i.length>0&&x(t)},window.CSSStyleSheet=R,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,S=g.attachShadow;g.attachShadow=function(e){var t=S.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var b=j(document);b.isConnected()?b.connect():document.addEventListener("DOMContentLoaded",b.connect.bind(b))}function w(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(p.isPrototypeOf(e)||l.isPrototypeOf(e))}function C(e){return"object"==typeof e&&l.isPrototypeOf(e)}function N(e,t){return a.get(e).get(t)}function P(e,t){requestAnimationFrame(function(){var n,o;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=c.get(e),o=t.sheet,s.call(n.cssRules,function(e,t){o.insertRule(e.cssText,t)})})}function O(e){if(!c.has(e))throw new TypeError("Illegal invocation")}function R(){var e=this,n=document.createElement("style");t.body.appendChild(n),c.set(e,n.sheet),u.set(e,[]),a.set(e,new WeakMap)}function j(e){var t=h.get(e);return t||(t=new L(e),h.set(e,t)),t}function T(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return j(this).sheets},set:function(e){j(this).update(e)}})}function k(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,function(e){return w(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),o=void 0;o=n.nextNode();)t(w(o))}function A(e){var t=f.get(e);return t instanceof Document?t.body:t}function x(e){var t=document.createDocumentFragment(),n=m.get(e),o=y.get(e),r=A(e);o.disconnect(),n.forEach(function(n){t.appendChild(N(n,e)||function(e,t){var n=document.createElement("style");return a.get(e).set(t,n),u.get(e).push(t),n}(n,e))}),r.insertBefore(t,null),o.observe(r,d),n.forEach(function(t){P(t,N(t,e))})}function L(t){var n=this;n.sheets=[],f.set(n,t),m.set(n,[]),y.set(n,new MutationObserver(function(t,o){document?t.forEach(function(t){e||s.call(t.addedNodes,function(e){e instanceof Element&&k(e,function(e){j(e).connect()})}),s.call(t.removedNodes,function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some(function(t){return N(t,e)})}(n,t)&&x(n),e||k(t,function(e){j(e).disconnect()}))})}):o.disconnect()}))}}(),function(){const e="undefined"!=typeof window?window:global;if(void 0===e.Reflect||void 0===e.customElements||e.customElements.hasOwnProperty("polyfillWrapFlushCallback"))return;const t=e.HTMLElement;e.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}();const s=/\B([A-Z])/g;function i(e){const t=new CSSStyleSheet;return t.replaceSync(e),t}function l(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function c(){return{}}function u(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function a(e,t,n){return{configurable:!0,get(){const e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}function p(e,t,...o){let r;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?r=o.flat():null!=t.children&&(r=t.children,delete t.children),e===n)return r;if("function"==typeof e){if(!e.tagName)return r&&(t.children=r),e(t);e=e.tagName}return{nodeName:e,children:r,attributes:t,key:t.key}}function d(t,n,...o){return p(t.nodeName,e({},t.attributes,n),o.length>0?o.flat():t.children)}Array.prototype.flat||(Array.prototype.flat=function(e=1){const t=[],n=(o,r)=>{for(const s of o)Array.isArray(s)&&r<e?n(s,r+1):t.push(s)};return n(this,0),t}),p.f=n;const h={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},f=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,m={};function y(e,t){m["o-"+e]=t}function v(e){let t=e.parentNode;t&&t.removeChild(e)}function g(e,t,n,r,s){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(()=>{var n;null==(n=m[t])||n.call(m,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)o(n,null),o(r,e);else if("class"!==t||s)if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||b(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||b(e.style,t,r[t])}else if("unsafeHTML"===t)r&&(e.innerHTML=r.html||r||"");else if("o"==t[0]&&"n"==t[1])!function(e,t,n,o){let r=t!==(t=t.replace(/Capture$/,"")),s=t.toLowerCase();t=(h[s]||s in e?s:t).slice(2),n?o||e.addEventListener(t,S,r):e.removeEventListener(t,S,r),(e._listeners||(e._listeners={}))[t]=n}(e,t,r,n);else if("INPUT"===e.nodeName&&"value"===t)e.value=null==r?"":r;else if("list"!==t&&"type"!==t&&"css"!==t&&!s&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{let n=s&&t!==(t=t.replace(/^xlink:?/,""));if(null==r||!1===r)n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t);else if("function"!=typeof r)if(n)e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r);else if("Component"===e.constructor.is){var i;const n=null==(i=e.constructor.reflectProps)?void 0:i[t];n&&e.setAttribute(t,"function"==typeof n?n(r):r)}else e.setAttribute(t,r)}else e.className=r||""}function S(e){return this._listeners[e.type](e)}function b(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n.toString():n+"px"}let w=0,E=!1,C=!1,N=!1;function P(e,t,n,o,s){if(!e&&!t)return null;let i;var l;return w++||(E=null!=n&&void 0!==n.ownerSVGElement,N=!1),r(t)?n?(R(n,t,N,o,s),i=n.childNodes):(i=[],t.forEach((t,n)=>{let r=O(0===n?e:null,t,o,s);i.push(r)})):(r(e)||e instanceof NodeList?e.forEach((e,n)=>{0===n?i=O(e,t,o,s):j(e,!1)}):i=O(e,t,o,s),n&&(null==(l=i)?void 0:l.parentNode)!==n&&n.appendChild(i)),--w||(N=!1),i}function O(e,n,o,r){e&&n&&e.props&&(e.props.children=n.children);let s=e,i=E,c=C;var u;if(null!=n&&"boolean"!=typeof n||(n=""),"string"==typeof n||"number"==typeof n)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=n&&(e.nodeValue=String(n)):(s=document.createTextNode(String(n)),e&&(e.parentNode&&(null==(u=e.parentNode)||u.replaceChild(s,e)),j(e,!0))),s&&(s.prevProps={}),s;let a=n.nodeName;var p;if(C="foreignObject"===a,E="svg"===a||!C&&E,a=String(a),(!e||!l(e,a))&&(s=function(e,t){let n=C||E?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a),"Component"===(null==(p=s.constructor)?void 0:p.is)&&Object.assign(s.props,n.attributes),e)){for(var d;e.firstChild;)s.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(s,e)),j(e,!0)}let h=s.firstChild,f=s.prevProps,m=n.children;if(null==f){f=s.prevProps={};for(let e=s.attributes,t=e.length;t--;)f[e[t].name]=e[t].value}return!N&&m&&1===m.length&&"string"==typeof m[0]&&null!=h&&void 0!==h.splitText&&null==h.nextSibling?h.nodeValue!=m[0]&&(h.nodeValue=m[0]):(m&&m.length||null!=h)&&("Component"==s.constructor.is&&s.constructor.noSlot||R(s,m,N||null!=f.unsafeHTML,o,r)),function(e,n,o,r,s){let i,l,c=e.update;for(i in e.receiveProps&&(l=Object.assign({},o)),o)n&&null!=n[i]||null==o[i]||(g(e,i,o[i],o[i]=void 0,C||E),c&&delete e.props[i]);for(i in n)if(c&&"object"==typeof n[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&g(e,i,o[i],o[i]=n[i],C||E);let r=t(i);e.props[r]=o[r]=n[i]}else if("children"!==i&&(!(i in o)||n[i]!==("value"===i||"checked"===i?e[i]:o[i])))if(g(e,i,o[i],n[i],C||E),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};let r=t(i);e.props[r]=o[r]=n[i]}else o[i]=n[i];c&&!s&&e.parentNode&&!1!==e.receiveProps(e.props,l)&&e.queuedUpdate()}(s,n.attributes,f,0,r),s.props&&(s.props.children=n.children),E=i,C=c,s}function R(e,t,n,o,r){let s,i,c,u,a,p=e.childNodes,d=[],h={},f=0,m=0,y=p.length,g=0,S=t?t.length:0;if(0!==y)for(let e=0;e<y;e++){var b;let t=p[e],o=t.prevProps,r=S&&o?o.key:null;null!=r?(f++,h[r]=t):(o||(void 0!==t.splitText?!n||(null==(b=t.nodeValue)?void 0:b.trim()):n))&&(d[g++]=t)}if(0!==S)for(let n=0;n<S;n++){if(u=t[n],a=null,u){let e=u.key;if(null!=e)f&&void 0!==h[e]&&(a=h[e],h[e]=void 0,f--);else if(m<g)for(s=m;s<g;s++)if(void 0!==d[s]&&(w=i=d[s],"string"==typeof(E=u)||"number"==typeof E?void 0!==w.splitText:l(w,E.nodeName))){a=i,d[s]=void 0,s===g-1&&g--,s===m&&m++;break}}a=O(a,u,o,r),c=p[n],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?v(c):e.insertBefore(a,c))}var w,E;if(f)for(let e in h)void 0!==h[e]&&j(h[e],!1);for(;m<=g;)void 0!==(a=d[g--])&&j(a,!1)}function j(e,t){null!=e.prevProps&&e.prevProps.ref&&("function"==typeof e.prevProps.ref?e.prevProps.ref(null):e.prevProps.ref.current&&(e.prevProps.ref.current=null)),!1!==t&&null!=e.prevProps||v(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){let t=e.previousSibling;j(e,!0),e=t}}(e)}let T=null,k=[],A=null;function x(e){A=e}function L(){return A}function M(e){let t=e;const n=new Set,o=new Set;return new Proxy({},{get(e,r){if("value"===r){T&&n.add(T);const e=L();return e&&o.add(e),t}return"peek"===r?()=>t:"update"===r?()=>{n.forEach(e=>e()),o.forEach(e=>e.queuedUpdate())}:void 0},set:(e,r,s)=>"value"===r&&(u(t)&&u(s)&&t===s||(t=s,n.forEach(e=>e()),o.forEach(e=>e.queuedUpdate())),!0)})}function I(e){const t=M(e());return _(()=>{t.value=e()}),t}function _(e){const t=new Set;let n=!1;const o=()=>{n||(n=!0,T=o,e(),T=null,n=!1)};return o(),()=>{t.clear()}}function F(e){k.push(e),1===k.length&&Promise.resolve().then(W)}function W(){for(;k.length;){const e=k.shift();e&&e()}}function H(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]=M(n),e),{})}const D={mixin:{}};function U(e){Object.assign(D.mixin,e)}function V(e,t){customElements.get(e)?console.warn(`Failed to execute 'define' on 'CustomElementRegistry': the tag name "${e}" has already been used with this registry`):(Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.define(e,t))}function $(e){return function(t){V(e,t)}}let q=0;const B=new WeakMap;class J extends HTMLElement{static define(e){V(e,this)}constructor(){if(super(),this.elementId=void 0,this.isInstalled=void 0,this.inject=void 0,this.injection=void 0,this.renderRoot=void 0,this.rootElement=void 0,this.updateQueued=!1,this.constructor.defaultProps||(this.constructor.defaultProps={}),this.constructor.propTypes||(this.constructor.propTypes={}),this.constructor.reflectProps||(this.constructor.reflectProps={}),this.constructor.props)for(const e in this.constructor.props){const t=this.constructor.props[e];this.constructor.defaultProps[e]=t.default,this.constructor.propTypes[e]=t.type,this.constructor.reflectProps[e]=t.reflect}this.props=Object.assign({},this.constructor.defaultProps,this.props),this.elementId=q++,this.isInstalled=!1,this.rootElement=null}attributeChangedCallback(e,t,n){if(this.constructor.props&&this.constructor.props[e]){const o=this.constructor.props[e];o.changed&&o.changed.call(this,n,t)}}static get observedAttributes(){return this.props?Object.keys(this.props):[]}injectObject(){let e=this.parentNode;for(;e&&!this.store&&!D.mixin.store;)this.store=e.store,e=e.parentNode||e.host;if(this.inject){let t;for(this.injection={},e=this.parentNode;e&&!t;)t=e.provide,e=e.parentNode||e.host;t&&this.inject.forEach(e=>{this.injection[e]=t[e]})}for(const e in D.mixin)Object.defineProperty(this,e,{get:()=>D.mixin[e]})}createRenderRoot(){if(this.constructor.isLightDOM)return this;if(this.shadowRoot){let e;for(;e=this.shadowRoot.firstChild;)this.shadowRoot.removeChild(e);return this.shadowRoot}return this.attachShadow({mode:"open"})}applyAdoptedStyleSheets(){if(this.constructor.isLightDOM||B.has(this.constructor))this.renderRoot.adoptedStyleSheets=B.get(this.constructor);else{const e=this.constructor.css;if(e){let t=[];t="string"==typeof e?[i(e)]:r(e)?e.map(e=>"string"==typeof e?i(e):e.default&&"string"==typeof e.default?i(e.default):e):e.default&&"string"==typeof e.default?[i(e.default)]:[e],this.renderRoot.adoptedStyleSheets=t,B.set(this.constructor,t)}}}appendStyleVNode(e){if(this.props.css&&e){const t={nodeName:"style",attributes:{},children:[this.props.css]};e.push?e.push(t):e.children.push(t)}}connectedCallback(){this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),x(this),this.beforeRender(),this.fire("beforeRender",this);const e=this.render(this.props,this.store);var t;this.appendStyleVNode(e),this.rendered(e),x(null),this.rootElement=P(null,e,null,this,!1),r(this.rootElement)?this.rootElement.forEach(e=>{var t;null==(t=this.renderRoot)||t.appendChild(e)}):this.rootElement&&(null==(t=this.renderRoot)||t.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0}disconnectedCallback(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1}update(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),x(this),this.beforeRender(),this.fire("beforeRender",this);const t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),x(null),this.rootElement=P(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)}queuedUpdate(){this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(()=>{this.update(),this.updateQueued=!1}))}updateProps(e){Object.keys(e).forEach(t=>{this.props[t]=e[t],this.prevProps&&(this.prevProps[t]=e[t])}),this.update()}updateSelf(){this.update(!0)}removeProp(e){this.removeAttribute(e),this.isInstalled&&this.update()}setProp(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()}attrsToProps(){if(this.props.ignoreAttrs)return;const e=this;e.props.css=e.getAttribute("css");const t=this.constructor.propTypes;t&&Object.keys(t).forEach(n=>{const o=r(t[n])?t[n]:[t[n]],i=e.getAttribute(n.replace(s,"-$1").toLowerCase());if(null!==i)for(let t=0;t<o.length;t++){let r=!1;switch(o[t]){case String:e.props[n]=i,r=!0;break;case Number:e.props[n]=Number(i),r=!0;break;case Boolean:e.props[n]="false"!==i&&"0"!==i,r=!0;break;case Array:case Object:try{e.props[n]=JSON.parse(i)}catch(e){console.warn(`The ${n} object prop does not comply with the JSON specification, the incorrect string is [${i}].`)}r=!0}if(r)break}else e.props[n]=e.constructor.defaultProps&&e.constructor.defaultProps.hasOwnProperty(n)?e.constructor.defaultProps[n]:null})}fire(e,t){const n=this.props[`on${function(e){return e.replace(/\-(\w)/g,(e,t)=>t.toUpperCase()).replace(/^\S/,e=>e.toUpperCase())}(e)}`];n?n(new CustomEvent(e,{detail:t})):this.dispatchEvent(new CustomEvent(e,{detail:t}))}install(){}installed(){}uninstall(){}beforeUpdate(){}updated(){}beforeRender(){}rendered(e){}receiveProps(){}}function Q(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),P(null,e,t,null,!1)}J.is="Component",J.defaultProps=void 0,J.reflectProps=void 0,J.propTypes=void 0,J.css=void 0,J.isLightDOM=void 0,J.noSlot=void 0;const z={}.hasOwnProperty;function G(...e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];if(!o)continue;const r=typeof o;if("string"===r||"number"===r)t.push(o);else if(Array.isArray(o)&&o.length){const e=G(...o);e&&t.push(e)}else if("object"===r)for(const e in o)z.call(o,e)&&o[e]&&t.push(e)}return t.join(" ")}function Z(e,...t){if(e.class?(t.unshift(e.class),delete e.class):e.className&&(t.unshift(e.className),delete e.className),t.length>0)return{class:G(...t)}}class K{constructor(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=M(e)}get value(){return this._signal.value}set value(e){this._signal.value=e}peek(){return this._signal.peek()}computed(e){return I(e)}effect(e){return _(e)}batch(e){return F(e)}setActiveComponent(e){return x(e)}getActiveComponent(){return L()}update(e){e&&e(this._value),this.value=this.value}}let X={};function Y(e,...t){let n="";if(e.forEach((e,o)=>{if(void 0!==t[o]&&"string"!=typeof t[o]&&"number"!=typeof t[o])throw new Error(`Unsupported value in CSS: ${t[o]}`);n+=e+(t[o]||"")}),X[n])return X[n];{const e=new CSSStyleSheet;return e.replaceSync(n),X[n]=e,e}}const ee="7.5.6";export{J as Component,K as Signal,J as WeElement,F as batch,a as bind,G as classNames,d as cloneElement,I as computed,p as createElement,c as createRef,Y as css,V as define,V as defineElement,_ as effect,Z as extractClass,L as getActiveComponent,p as h,U as mixin,y as registerDirective,Q as render,x as setActiveComponent,M as signal,H as signalObject,$ as tag,ee as version};
import"weakmap-polyfill";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.apply(this,arguments)}function t(e){return e.replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function n(e){return e.children}function o(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function r(e){return"[object Array]"===Object.prototype.toString.call(e)}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument("boot"),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,s=Array.prototype.forEach,i=/@import.+?;?$/gm,l=CSSStyleSheet.prototype;l.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},l.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=new WeakMap,u=new WeakMap,a=new WeakMap,p=R.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(O(this),"string"==typeof e){var t=this,n=c.get(t).ownerNode;n.textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),c.set(t,n.sheet),u.get(t).forEach(function(e){e.isConnected()&&P(t,N(t,e))})}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return O(this),c.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){p[e]=function(){var t=this;O(t);var n=arguments,o=c.get(t),r=u.get(t),s=o[e].apply(o,n);return r.forEach(function(o){if(o.isConnected()){var r=N(t,o).sheet;r[e].apply(r,n)}}),s}}),r(R,Symbol.hasInstance,{configurable:!0,value:E});var d={childList:!0,subtree:!0},h=new WeakMap,f=new WeakMap,m=new WeakMap,y=new WeakMap,v=L.prototype;if(v.isConnected=function(){var e=f.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},v.connect=function(){var e=A(this);y.get(this).observe(e,d),m.get(this).length>0&&x(this),k(e,function(e){j(e).connect()})},v.disconnect=function(){y.get(this).disconnect()},v.update=function(e){var t=this,n=f.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,s=m.get(t),i=(o=e).filter(function(e,t){return o.indexOf(e)===t});(r=i,s.filter(function(e){return-1===r.indexOf(e)})).forEach(function(e){var n;(n=N(e,t)).parentNode.removeChild(n),function(e,t){a.get(e).delete(t),u.set(e,u.get(e).filter(function(e){return e!==t}))}(e,t)}),m.set(t,i),t.isConnected()&&i.length>0&&x(t)},window.CSSStyleSheet=R,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,S=g.attachShadow;g.attachShadow=function(e){var t=S.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var b=j(document);b.isConnected()?b.connect():document.addEventListener("DOMContentLoaded",b.connect.bind(b))}function w(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(p.isPrototypeOf(e)||l.isPrototypeOf(e))}function C(e){return"object"==typeof e&&l.isPrototypeOf(e)}function N(e,t){return a.get(e).get(t)}function P(e,t){requestAnimationFrame(function(){var n,o;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=c.get(e),o=t.sheet,s.call(n.cssRules,function(e,t){o.insertRule(e.cssText,t)})})}function O(e){if(!c.has(e))throw new TypeError("Illegal invocation")}function R(){var e=this,n=document.createElement("style");t.body.appendChild(n),c.set(e,n.sheet),u.set(e,[]),a.set(e,new WeakMap)}function j(e){var t=h.get(e);return t||(t=new L(e),h.set(e,t)),t}function T(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return j(this).sheets},set:function(e){j(this).update(e)}})}function k(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,function(e){return w(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),o=void 0;o=n.nextNode();)t(w(o))}function A(e){var t=f.get(e);return t instanceof Document?t.body:t}function x(e){var t=document.createDocumentFragment(),n=m.get(e),o=y.get(e),r=A(e);o.disconnect(),n.forEach(function(n){t.appendChild(N(n,e)||function(e,t){var n=document.createElement("style");return a.get(e).set(t,n),u.get(e).push(t),n}(n,e))}),r.insertBefore(t,null),o.observe(r,d),n.forEach(function(t){P(t,N(t,e))})}function L(t){var n=this;n.sheets=[],f.set(n,t),m.set(n,[]),y.set(n,new MutationObserver(function(t,o){document?t.forEach(function(t){e||s.call(t.addedNodes,function(e){e instanceof Element&&k(e,function(e){j(e).connect()})}),s.call(t.removedNodes,function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some(function(t){return N(t,e)})}(n,t)&&x(n),e||k(t,function(e){j(e).disconnect()}))})}):o.disconnect()}))}}(),function(){const e="undefined"!=typeof window?window:global;if(void 0===e.Reflect||void 0===e.customElements||e.customElements.hasOwnProperty("polyfillWrapFlushCallback"))return;const t=e.HTMLElement;e.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}();const s=/\B([A-Z])/g;function i(e){const t=new CSSStyleSheet;return t.replaceSync(e),t}function l(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function c(){return{}}function u(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function a(e,t,n){return{configurable:!0,get(){const e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}function p(e,t,...o){let r;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?r=o.flat():null!=t.children&&(r=t.children,delete t.children),e===n)return r;if("function"==typeof e){if(!e.tagName)return r&&(t.children=r),e(t);e=e.tagName}return{nodeName:e,children:r,attributes:t,key:t.key}}function d(t,n,...o){return p(t.nodeName,e({},t.attributes,n),o.length>0?o.flat():t.children)}Array.prototype.flat||(Array.prototype.flat=function(e=1){const t=[],n=(o,r)=>{for(const s of o)Array.isArray(s)&&r<e?n(s,r+1):t.push(s)};return n(this,0),t}),p.f=n;const h={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},f=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,m={};function y(e,t){m["o-"+e]=t}function v(e){let t=e.parentNode;t&&t.removeChild(e)}function g(e,t,n,r,s){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(()=>{var n;null==(n=m[t])||n.call(m,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)o(n,null),o(r,e);else if("class"!==t||s)if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||b(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||b(e.style,t,r[t])}else if("unsafeHTML"===t)r&&(e.innerHTML=r.html||r||"");else if("o"==t[0]&&"n"==t[1])!function(e,t,n,o){let r=t!==(t=t.replace(/Capture$/,"")),s=t.toLowerCase();t=(h[s]||s in e?s:t).slice(2),n?o||e.addEventListener(t,S,r):e.removeEventListener(t,S,r),(e._listeners||(e._listeners={}))[t]=n}(e,t,r,n);else if("INPUT"===e.nodeName&&"value"===t)e.value=null==r?"":r;else if("list"!==t&&"type"!==t&&"css"!==t&&!s&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{let n=s&&t!==(t=t.replace(/^xlink:?/,""));if(null==r||!1===r)n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t);else if("function"!=typeof r)if(n)e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r);else if("Component"===e.constructor.is){var i;const n=null==(i=e.constructor.reflectProps)?void 0:i[t];n&&e.setAttribute(t,"function"==typeof n?n(r):r)}else e.setAttribute(t,r)}else e.className=r||""}function S(e){return this._listeners[e.type](e)}function b(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n.toString():n+"px"}let w=0,E=!1,C=!1,N=!1;function P(e,t,n,o,s){if(!e&&!t)return null;let i;var l;return w++||(E=null!=n&&void 0!==n.ownerSVGElement,N=!1),r(t)?n?(R(n,t,N,o,s),i=n.childNodes):(i=[],t.forEach((t,n)=>{let r=O(0===n?e:null,t,o,s);i.push(r)})):(r(e)||e instanceof NodeList?e.forEach((e,n)=>{0===n?i=O(e,t,o,s):j(e,!1)}):i=O(e,t,o,s),n&&(null==(l=i)?void 0:l.parentNode)!==n&&n.appendChild(i)),--w||(N=!1),i}function O(e,n,o,r){e&&n&&e.props&&(e.props.children=n.children);let s=e,i=E,c=C;var u;if(null!=n&&"boolean"!=typeof n||(n=""),"string"==typeof n||"number"==typeof n)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=n&&(e.nodeValue=String(n)):(s=document.createTextNode(String(n)),e&&(e.parentNode&&(null==(u=e.parentNode)||u.replaceChild(s,e)),j(e,!0))),s&&(s.prevProps={}),s;let a=n.nodeName;var p;if(C="foreignObject"===a,E="svg"===a||!C&&E,a=String(a),(!e||!l(e,a))&&(s=function(e,t){let n=C||E?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a),"Component"===(null==(p=s.constructor)?void 0:p.is)&&Object.assign(s.props,n.attributes),e)){for(var d;e.firstChild;)s.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(s,e)),j(e,!0)}let h=s.firstChild,f=s.prevProps,m=n.children;if(null==f){f=s.prevProps={};for(let e=s.attributes,t=e.length;t--;)f[e[t].name]=e[t].value}return!N&&m&&1===m.length&&"string"==typeof m[0]&&null!=h&&void 0!==h.splitText&&null==h.nextSibling?h.nodeValue!=m[0]&&(h.nodeValue=m[0]):(m&&m.length||null!=h)&&("Component"==s.constructor.is&&s.constructor.noSlot||R(s,m,N||null!=f.unsafeHTML,o,r)),function(e,n,o,r,s){let i,l,c=e.update;for(i in e.receiveProps&&(l=Object.assign({},o)),o)n&&null!=n[i]||null==o[i]||(g(e,i,o[i],o[i]=void 0,C||E),c&&delete e.props[i]);for(i in n)if(c&&"object"==typeof n[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&g(e,i,o[i],o[i]=n[i],C||E);let r=t(i);e.props[r]=o[r]=n[i]}else if("children"!==i&&(!(i in o)||n[i]!==("value"===i||"checked"===i?e[i]:o[i])))if(g(e,i,o[i],n[i],C||E),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};let r=t(i);e.props[r]=o[r]=n[i]}else o[i]=n[i];c&&!s&&e.parentNode&&!1!==e.receiveProps(e.props,l)&&e.queuedUpdate()}(s,n.attributes,f,0,r),s.props&&(s.props.children=n.children),E=i,C=c,s}function R(e,t,n,o,r){let s,i,c,u,a,p=e.childNodes,d=[],h={},f=0,m=0,y=p.length,g=0,S=t?t.length:0;if(0!==y)for(let e=0;e<y;e++){var b;let t=p[e],o=t.prevProps,r=S&&o?o.key:null;null!=r?(f++,h[r]=t):(o||(void 0!==t.splitText?!n||(null==(b=t.nodeValue)?void 0:b.trim()):n))&&(d[g++]=t)}if(0!==S)for(let n=0;n<S;n++){if(u=t[n],a=null,u){let e=u.key;if(null!=e)f&&void 0!==h[e]&&(a=h[e],h[e]=void 0,f--);else if(m<g)for(s=m;s<g;s++)if(void 0!==d[s]&&(w=i=d[s],"string"==typeof(E=u)||"number"==typeof E?void 0!==w.splitText:l(w,E.nodeName))){a=i,d[s]=void 0,s===g-1&&g--,s===m&&m++;break}}a=O(a,u,o,r),c=p[n],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?v(c):e.insertBefore(a,c))}var w,E;if(f)for(let e in h)void 0!==h[e]&&j(h[e],!1);for(;m<=g;)void 0!==(a=d[g--])&&j(a,!1)}function j(e,t){null!=e.prevProps&&e.prevProps.ref&&("function"==typeof e.prevProps.ref?e.prevProps.ref(null):e.prevProps.ref.current&&(e.prevProps.ref.current=null)),!1!==t&&null!=e.prevProps||v(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){let t=e.previousSibling;j(e,!0),e=t}}(e)}let T=null,k=[],A=null;function x(e){A=e}function L(){return A}function M(e){let t=e;const n=new Set,o=new Set;return new Proxy({},{get(e,r){if("value"===r){T&&n.add(T);const e=L();return e&&o.add(e),t}return"peek"===r?()=>t:"update"===r?()=>{n.forEach(e=>e()),o.forEach(e=>e.queuedUpdate())}:void 0},set:(e,r,s)=>"value"===r&&(u(t)&&u(s)&&t===s||(t=s,n.forEach(e=>e()),o.forEach(e=>e.queuedUpdate())),!0)})}function I(e){const t=M(e());return _(()=>{t.value=e()}),t}function _(e){const t=new Set;let n=!1;const o=()=>{n||(n=!0,T=o,e(),T=null,n=!1)};return o(),()=>{t.clear()}}function F(e){k.push(e),1===k.length&&Promise.resolve().then(W)}function W(){for(;k.length;){const e=k.shift();e&&e()}}function H(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]=M(n),e),{})}const D={mixin:{},globalCSS:[]};function U(e){Object.assign(D.mixin,e)}function V(e,t){customElements.get(e)?console.warn(`Failed to execute 'define' on 'CustomElementRegistry': the tag name "${e}" has already been used with this registry`):(Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.define(e,t))}function $(e){return function(t){V(e,t)}}let q=0;const B=new WeakMap;class J extends HTMLElement{static define(e){V(e,this)}constructor(){if(super(),this.elementId=void 0,this.isInstalled=void 0,this.inject=void 0,this.injection=void 0,this.renderRoot=void 0,this.rootElement=void 0,this.updateQueued=!1,this.constructor.defaultProps||(this.constructor.defaultProps={}),this.constructor.propTypes||(this.constructor.propTypes={}),this.constructor.reflectProps||(this.constructor.reflectProps={}),this.constructor.props)for(const e in this.constructor.props){const t=this.constructor.props[e];this.constructor.defaultProps[e]=t.default,this.constructor.propTypes[e]=t.type,this.constructor.reflectProps[e]=t.reflect}this.props=Object.assign({},this.constructor.defaultProps,this.props),this.elementId=q++,this.isInstalled=!1,this.rootElement=null}attributeChangedCallback(e,t,n){if(this.constructor.props&&this.constructor.props[e]){const o=this.constructor.props[e];o.changed&&o.changed.call(this,n,t)}}static get observedAttributes(){return this.props?Object.keys(this.props):[]}injectObject(){let e=this.parentNode;for(;e&&!this.store&&!D.mixin.store;)this.store=e.store,e=e.parentNode||e.host;if(this.inject){let t;for(this.injection={},e=this.parentNode;e&&!t;)t=e.provide,e=e.parentNode||e.host;t&&this.inject.forEach(e=>{this.injection[e]=t[e]})}for(const e in D.mixin)Object.defineProperty(this,e,{get:()=>D.mixin[e]})}createRenderRoot(){if(this.constructor.isLightDOM)return this;if(this.shadowRoot){let e;for(;e=this.shadowRoot.firstChild;)this.shadowRoot.removeChild(e);return this.shadowRoot}return this.attachShadow({mode:"open"})}applyAdoptedStyleSheets(){if(this.constructor.isLightDOM||B.has(this.constructor))this.renderRoot.adoptedStyleSheets=B.get(this.constructor);else{const e=this.constructor.css;if(e){let t=[];t="string"==typeof e?[i(e)]:r(e)?e.map(e=>"string"==typeof e?i(e):e.default&&"string"==typeof e.default?i(e.default):e):e.default&&"string"==typeof e.default?[i(e.default)]:[e],t=[...t,...D.globalCSS],this.renderRoot.adoptedStyleSheets=t,B.set(this.constructor,t)}}}appendStyleVNode(e){if(this.props.css&&e){const t={nodeName:"style",attributes:{},children:[this.props.css]};e.push?e.push(t):e.children.push(t)}}connectedCallback(){this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),x(this),this.beforeRender(),this.fire("beforeRender",this);const e=this.render(this.props,this.store);var t;this.appendStyleVNode(e),this.rendered(e),x(null),this.rootElement=P(null,e,null,this,!1),r(this.rootElement)?this.rootElement.forEach(e=>{var t;null==(t=this.renderRoot)||t.appendChild(e)}):this.rootElement&&(null==(t=this.renderRoot)||t.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0}disconnectedCallback(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1}update(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),x(this),this.beforeRender(),this.fire("beforeRender",this);const t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),x(null),this.rootElement=P(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)}queuedUpdate(){this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(()=>{this.update(),this.updateQueued=!1}))}updateProps(e){Object.keys(e).forEach(t=>{this.props[t]=e[t],this.prevProps&&(this.prevProps[t]=e[t])}),this.update()}updateSelf(){this.update(!0)}removeProp(e){this.removeAttribute(e),this.isInstalled&&this.update()}setProp(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()}attrsToProps(){if(this.props.ignoreAttrs)return;const e=this;e.props.css=e.getAttribute("css");const t=this.constructor.propTypes;t&&Object.keys(t).forEach(n=>{const o=r(t[n])?t[n]:[t[n]],i=e.getAttribute(n.replace(s,"-$1").toLowerCase());if(null!==i)for(let t=0;t<o.length;t++){let r=!1;switch(o[t]){case String:e.props[n]=i,r=!0;break;case Number:e.props[n]=Number(i),r=!0;break;case Boolean:e.props[n]="false"!==i&&"0"!==i,r=!0;break;case Array:case Object:try{e.props[n]=JSON.parse(i)}catch(e){console.warn(`The ${n} object prop does not comply with the JSON specification, the incorrect string is [${i}].`)}r=!0}if(r)break}else e.props[n]=e.constructor.defaultProps&&e.constructor.defaultProps.hasOwnProperty(n)?e.constructor.defaultProps[n]:null})}fire(e,t){const n=this.props[`on${function(e){return e.replace(/\-(\w)/g,(e,t)=>t.toUpperCase()).replace(/^\S/,e=>e.toUpperCase())}(e)}`];n?n(new CustomEvent(e,{detail:t})):this.dispatchEvent(new CustomEvent(e,{detail:t}))}install(){}installed(){}uninstall(){}beforeUpdate(){}updated(){}beforeRender(){}rendered(e){}receiveProps(){}}function Q(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),P(null,e,t,null,!1)}J.is="Component",J.defaultProps=void 0,J.reflectProps=void 0,J.propTypes=void 0,J.css=void 0,J.isLightDOM=void 0,J.noSlot=void 0;const z={}.hasOwnProperty;function G(...e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];if(!o)continue;const r=typeof o;if("string"===r||"number"===r)t.push(o);else if(Array.isArray(o)&&o.length){const e=G(...o);e&&t.push(e)}else if("object"===r)for(const e in o)z.call(o,e)&&o[e]&&t.push(e)}return t.join(" ")}function Z(e,...t){if(e.class?(t.unshift(e.class),delete e.class):e.className&&(t.unshift(e.className),delete e.className),t.length>0)return{class:G(...t)}}class K{constructor(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=M(e)}get value(){return this._signal.value}set value(e){this._signal.value=e}peek(){return this._signal.peek()}computed(e){return I(e)}effect(e){return _(e)}batch(e){return F(e)}setActiveComponent(e){return x(e)}getActiveComponent(){return L()}update(e){e&&e(this._value),this.value=this.value}}let X={};function Y(e,...t){let n="";if(e.forEach((e,o)=>{if(void 0!==t[o]&&"string"!=typeof t[o]&&"number"!=typeof t[o])throw new Error(`Unsupported value in CSS: ${t[o]}`);n+=e+(t[o]||"")}),X[n])return X[n];{const e=new CSSStyleSheet;return e.replaceSync(n),X[n]=e,e}}const ee="7.5.7";export{J as Component,K as Signal,J as WeElement,F as batch,a as bind,G as classNames,d as cloneElement,I as computed,p as createElement,c as createRef,Y as css,V as define,V as defineElement,_ as effect,Z as extractClass,L as getActiveComponent,p as h,U as mixin,y as registerDirective,Q as render,x as setActiveComponent,M as signal,H as signalObject,$ as tag,ee as version};
//# sourceMappingURL=omi.modern.js.map

@@ -1,2 +0,2 @@

import"weakmap-polyfill";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}function t(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t,n){return i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i},i.apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return i(e,arguments,r(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,e)},s(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function a(e){return e.children}function l(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function f(e){return"[object Array]"===Object.prototype.toString.call(e)}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument("boot"),n=new WeakMap,r="object"==typeof DOMException?Error:DOMException,o=Object.defineProperty,i=Array.prototype.forEach,s=/@import.+?;?$/gm,c=CSSStyleSheet.prototype;c.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},c.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var u=new WeakMap,a=new WeakMap,l=new WeakMap,f=j.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(N(this),"string"==typeof e){var t=this,n=u.get(t).ownerNode;n.textContent=function(e){var t=e.replace(s,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),u.set(t,n.sheet),a.get(t).forEach(function(e){e.isConnected()&&O(t,P(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return N(this),u.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;N(t);var n=arguments,r=u.get(t),o=a.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=P(t,r).sheet;o[e].apply(o,n)}}),i}}),o(j,Symbol.hasInstance,{configurable:!0,value:E});var p={childList:!0,subtree:!0},d=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=M.prototype;if(m.isConnected=function(){var e=h.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},m.connect=function(){var e=A(this);y.get(this).observe(e,p),v.get(this).length>0&&x(this),k(e,function(e){R(e).connect()})},m.disconnect=function(){y.get(this).disconnect()},m.update=function(e){var t=this,n=h.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var r,o,i=v.get(t),s=(r=e).filter(function(e,t){return r.indexOf(e)===t});(o=s,i.filter(function(e){return-1===o.indexOf(e)})).forEach(function(e){var n;(n=P(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),a.set(e,a.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&x(t)},window.CSSStyleSheet=j,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,b=g.attachShadow;g.attachShadow=function(e){var t=b.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var S=R(document);S.isConnected()?S.connect():document.addEventListener("DOMContentLoaded",S.connect.bind(S))}function w(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||c.isPrototypeOf(e))}function C(e){return"object"==typeof e&&c.isPrototypeOf(e)}function P(e,t){return l.get(e).get(t)}function O(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=u.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function N(e){if(!u.has(e))throw new TypeError("Illegal invocation")}function j(){var e=this,n=document.createElement("style");t.body.appendChild(n),u.set(e,n.sheet),a.set(e,[]),l.set(e,new WeakMap)}function R(e){var t=d.get(e);return t||(t=new M(e),d.set(e,t)),t}function T(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function k(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,function(e){return w(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),r=void 0;r=n.nextNode();)t(w(r))}function A(e){var t=h.get(e);return t instanceof Document?t.body:t}function x(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=A(e);r.disconnect(),n.forEach(function(n){t.appendChild(P(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),a.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){O(t,P(t,e))})}function M(t){var n=this;n.sheets=[],h.set(n,t),v.set(n,[]),y.set(n,new MutationObserver(function(t,r){document?t.forEach(function(t){e||i.call(t.addedNodes,function(e){e instanceof Element&&k(e,function(e){R(e).connect()})}),i.call(t.removedNodes,function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&v.get(e).some(function(t){return P(t,e)})}(n,t)&&x(n),e||k(t,function(e){R(e).disconnect()}))})}):r.disconnect()}))}}(),function(){var e="undefined"!=typeof window?window:global;if(void 0!==e.Reflect&&void 0!==e.customElements&&!e.customElements.hasOwnProperty("polyfillWrapFlushCallback")){var t=e.HTMLElement;e.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var p=/\B([A-Z])/g;function d(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function h(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(){return{}}function y(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function m(e,t,n){return{configurable:!0,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}function g(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===a)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}function b(e,t){var r=[].slice.call(arguments,2);return g(e.nodeName,n({},e.attributes,t),r.length>0?r.flat():e.children)}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var u=i.value;Array.isArray(u)&&o<e?n(u,o+1):t.push(u)}}(this,0),t}),g.f=a;var S={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},w=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,E={};function C(e,t){E["o-"+e]=t}function P(e){var t=e.parentNode;t&&t.removeChild(e)}function O(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=E[t])||n.call(E,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)l(n,null),l(r,e);else if("class"!==t||o)if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||j(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||j(e.style,t,r[t])}else if("unsafeHTML"===t)r&&(e.innerHTML=r.html||r||"");else if("o"==t[0]&&"n"==t[1])!function(e,t,n,r){var o=t!==(t=t.replace(/Capture$/,"")),i=t.toLowerCase();t=(S[i]||i in e?i:t).slice(2),n?r||e.addEventListener(t,N,o):e.removeEventListener(t,N,o),(e._listeners||(e._listeners={}))[t]=n}(e,t,r,n);else if("INPUT"===e.nodeName&&"value"===t)e.value=null==r?"":r;else if("list"!==t&&"type"!==t&&"css"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var i=o&&t!==(t=t.replace(/^xlink:?/,""));if(null==r||!1===r)i?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t);else if("function"!=typeof r)if(i)e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r);else if("Component"===e.constructor.is){var s,c=null==(s=e.constructor.reflectProps)?void 0:s[t];c&&e.setAttribute(t,"function"==typeof c?c(r):r)}else e.setAttribute(t,r)}else e.className=r||""}function N(e){return this._listeners[e.type](e)}function j(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||w.test(t)?n.toString():n+"px"}var R=0,T=!1,k=!1,A=!1;function x(e,t,n,r,o){return e||t?(R++||(T=null!=n&&void 0!==n.ownerSVGElement,A=!1),f(t)?n?(L(n,t,A,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=M(0===n?e:null,t,r,o);i.push(s)})):(f(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=M(e,t,r,o):_(e,!1)}):i=M(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--R||(A=!1),i):null;var i,s}function M(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=T,c=k;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||n)?e.nodeValue!=t&&(e.nodeValue=String(t)):(i=document.createTextNode(String(t)),e&&(e.parentNode&&(null==(o=e.parentNode)||o.replaceChild(i,e)),_(e,!0))),i&&(i.prevProps={}),i;var a,l,f,p=t.nodeName;if(k="foreignObject"===p,T="svg"===p||!k&&T,p=String(p),(!e||!h(e,p))&&(l=p,(f=k||T?document.createElementNS("http://www.w3.org/2000/svg",l):document.createElement(l)).normalizedNodeName=l,"Component"===(null==(a=(i=f).constructor)?void 0:a.is)&&Object.assign(i.props,t.attributes),e)){for(var d;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(i,e)),_(e,!0)}var v=i.firstChild,y=i.prevProps,m=t.children;if(null==y){y=i.prevProps={};for(var g=i.attributes,b=g.length;b--;)y[g[b].name]=g[b].value}return!A&&m&&1===m.length&&"string"==typeof m[0]&&null!=v&&void 0!==v.splitText&&null==v.nextSibling?v.nodeValue!=m[0]&&(v.nodeValue=m[0]):(m&&m.length||null!=v)&&("Component"==i.constructor.is&&i.constructor.noSlot||L(i,m,A||null!=y.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,c=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(O(e,i,n[i],n[i]=void 0,k||T),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&O(e,i,n[i],n[i]=t[i],k||T);var a=u(i);e.props[a]=n[a]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(O(e,i,n[i],t[i],k||T),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var l=u(i);e.props[l]=n[l]=t[i]}else n[i]=t[i];c&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,y,0,r),i.props&&(i.props.children=t.children),T=s,k=c,i}function L(e,t,n,r,o){var i,s,c,u,a,l,f,p=e.childNodes,d=[],v={},y=0,m=0,g=p.length,b=0,S=t?t.length:0;if(0!==g)for(var w=0;w<g;w++){var E,C=p[w],O=C.prevProps,N=S&&O?O.key:null;null!=N?(y++,v[N]=C):(O||(void 0!==C.splitText?!n||(null==(E=C.nodeValue)?void 0:E.trim()):n))&&(d[b++]=C)}if(0!==S)for(var j=0;j<S;j++){if(a=null,u=t[j]){var R=u.key;if(null!=R)y&&void 0!==v[R]&&(a=v[R],v[R]=void 0,y--);else if(m<b)for(i=m;i<b;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=u)||"number"==typeof f?void 0!==l.splitText:h(l,f.nodeName))){a=s,d[i]=void 0,i===b-1&&b--,i===m&&m++;break}}a=M(a,u,r,o),c=p[j],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?P(c):e.insertBefore(a,c))}if(y)for(var T in v)void 0!==v[T]&&_(v[T],!1);for(;m<=b;)void 0!==(a=d[b--])&&_(a,!1)}function _(e,t){null!=e.prevProps&&e.prevProps.ref&&("function"==typeof e.prevProps.ref?e.prevProps.ref(null):e.prevProps.ref.current&&(e.prevProps.ref.current=null)),!1!==t&&null!=e.prevProps||P(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;_(e,!0),e=n}}(e)}var I=null,F=[],W=null;function H(e){W=e}function U(){return W}function D(e){var t=e,n=new Set,r=new Set;return new Proxy({},{get:function(e,o){if("value"===o){I&&n.add(I);var i=U();return i&&r.add(i),t}return"peek"===o?function(){return t}:"update"===o?function(){n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})}:void 0},set:function(e,o,i){return"value"===o&&(y(t)&&y(i)&&t===i||(t=i,n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})),!0)}})}function V(e){var t=D(e());return q(function(){t.value=e()}),t}function q(e){var t=new Set,n=!1;return function t(){n||(n=!0,I=t,e(),I=null,n=!1)}(),function(){t.clear()}}function B(e){F.push(e),1===F.length&&Promise.resolve().then($)}function $(){for(;F.length;){var e=F.shift();e&&e()}}function J(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=D(t[1]),e},{})}var Q={mixin:{}};function z(e){Object.assign(Q.mixin,e)}function G(e,t){customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):(Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.define(e,t))}function Z(e){return function(t){G(e,t)}}var K=0,X=new WeakMap,Y=/*#__PURE__*/function(e){var n,r;function i(){var t;if((t=e.call(this)||this).elementId=void 0,t.isInstalled=void 0,t.inject=void 0,t.injection=void 0,t.renderRoot=void 0,t.rootElement=void 0,t.updateQueued=!1,t.constructor.defaultProps||(t.constructor.defaultProps={}),t.constructor.propTypes||(t.constructor.propTypes={}),t.constructor.reflectProps||(t.constructor.reflectProps={}),t.constructor.props)for(var n in t.constructor.props){var r=t.constructor.props[n];t.constructor.defaultProps[n]=r.default,t.constructor.propTypes[n]=r.type,t.constructor.reflectProps[n]=r.reflect}return t.props=Object.assign({},t.constructor.defaultProps,t.props),t.elementId=K++,t.isInstalled=!1,t.rootElement=null,t}r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,o(n,r),i.define=function(e){G(e,this)};var s=i.prototype;return s.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];r.changed&&r.changed.call(this,n,t)}},s.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!Q.mixin.store;)this.store=t.store,t=t.parentNode||t.host;if(this.inject){var n;for(this.injection={},t=this.parentNode;t&&!n;)n=t.provide,t=t.parentNode||t.host;n&&this.inject.forEach(function(t){e.injection[t]=n[t]})}var r=function(t){Object.defineProperty(e,t,{get:function(){return Q.mixin[t]}})};for(var o in Q.mixin)r(o)},s.createRenderRoot=function(){if(this.constructor.isLightDOM)return this;if(this.shadowRoot){for(var e;e=this.shadowRoot.firstChild;)this.shadowRoot.removeChild(e);return this.shadowRoot}return this.attachShadow({mode:"open"})},s.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||X.has(this.constructor))this.renderRoot.adoptedStyleSheets=X.get(this.constructor);else{var e,t=this.constructor.css;t&&(e="string"==typeof t?[d(t)]:f(t)?t.map(function(e){return"string"==typeof e?d(e):e.default&&"string"==typeof e.default?d(e.default):e}):t.default&&"string"==typeof t.default?[d(t.default)]:[t],this.renderRoot.adoptedStyleSheets=e,X.set(this.constructor,e))}},s.appendStyleVNode=function(e){if(this.props.css&&e){var t={nodeName:"style",attributes:{},children:[this.props.css]};e.push?e.push(t):e.children.push(t)}},s.connectedCallback=function(){var e=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),H(this),this.beforeRender(),this.fire("beforeRender",this);var t,n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),H(null),this.rootElement=x(null,n,null,this,!1),f(this.rootElement)?this.rootElement.forEach(function(t){var n;null==(n=e.renderRoot)||n.appendChild(t)}):this.rootElement&&(null==(t=this.renderRoot)||t.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0},s.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1},s.update=function(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),H(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),H(null),this.rootElement=x(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)},s.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},s.updateProps=function(e){var t=this;Object.keys(e).forEach(function(n){t.props[n]=e[n],t.prevProps&&(t.prevProps[n]=e[n])}),this.update()},s.updateSelf=function(){this.update(!0)},s.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},s.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},s.attrsToProps=function(){if(!this.props.ignoreAttrs){var e=this;e.props.css=e.getAttribute("css");var t=this.constructor.propTypes;t&&Object.keys(t).forEach(function(n){var r=f(t[n])?t[n]:[t[n]],o=e.getAttribute(n.replace(p,"-$1").toLowerCase());if(null!==o)for(var i=0;i<r.length;i++){var s=!1;switch(r[i]){case String:e.props[n]=o,s=!0;break;case Number:e.props[n]=Number(o),s=!0;break;case Boolean:e.props[n]="false"!==o&&"0"!==o,s=!0;break;case Array:case Object:try{e.props[n]=JSON.parse(o)}catch(e){console.warn("The "+n+" object prop does not comply with the JSON specification, the incorrect string is ["+o+"].")}s=!0}if(s)break}else e.props[n]=e.constructor.defaultProps&&e.constructor.defaultProps.hasOwnProperty(n)?e.constructor.defaultProps[n]:null})}},s.fire=function(e,t){var n=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];n?n(new CustomEvent(e,{detail:t})):this.dispatchEvent(new CustomEvent(e,{detail:t}))},s.install=function(){},s.installed=function(){},s.uninstall=function(){},s.beforeUpdate=function(){},s.updated=function(){},s.beforeRender=function(){},s.rendered=function(e){},s.receiveProps=function(){},t(i,null,[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}]),i}(/*#__PURE__*/s(HTMLElement));function ee(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),x(null,e,t,null,!1)}Y.is="Component",Y.defaultProps=void 0,Y.reflectProps=void 0,Y.propTypes=void 0,Y.css=void 0,Y.isLightDOM=void 0,Y.noSlot=void 0;var te={}.hasOwnProperty;function ne(){for(var e=[].slice.call(arguments),t=[],n=0;n<e.length;n++){var r=e[n];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var i=ne.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)te.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}function re(e){var t=[].slice.call(arguments,1);if(e.class?(t.unshift(e.class),delete e.class):e.className&&(t.unshift(e.className),delete e.className),t.length>0)return{class:ne.apply(void 0,t)}}var oe=/*#__PURE__*/function(){function e(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=D(e)}var n=e.prototype;return n.peek=function(){return this._signal.peek()},n.computed=function(e){return V(e)},n.effect=function(e){return q(e)},n.batch=function(e){return B(e)},n.setActiveComponent=function(e){return H(e)},n.getActiveComponent=function(){return U()},n.update=function(e){e&&e(this._value),this.value=this.value},t(e,[{key:"value",get:function(){return this._signal.value},set:function(e){this._signal.value=e}}]),e}(),ie={};function se(e){var t=[].slice.call(arguments,1),n="";if(e.forEach(function(e,r){if(void 0!==t[r]&&"string"!=typeof t[r]&&"number"!=typeof t[r])throw new Error("Unsupported value in CSS: "+t[r]);n+=e+(t[r]||"")}),ie[n])return ie[n];var r=new CSSStyleSheet;return r.replaceSync(n),ie[n]=r,r}var ce="7.5.6";export{Y as Component,oe as Signal,Y as WeElement,B as batch,m as bind,ne as classNames,b as cloneElement,V as computed,g as createElement,v as createRef,se as css,G as define,G as defineElement,q as effect,re as extractClass,U as getActiveComponent,g as h,z as mixin,C as registerDirective,ee as render,H as setActiveComponent,D as signal,J as signalObject,Z as tag,ce as version};
import"weakmap-polyfill";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}function t(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t,n){return i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i},i.apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return i(e,arguments,r(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,e)},s(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function a(e){return e.children}function l(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function f(e){return"[object Array]"===Object.prototype.toString.call(e)}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument("boot"),n=new WeakMap,r="object"==typeof DOMException?Error:DOMException,o=Object.defineProperty,i=Array.prototype.forEach,s=/@import.+?;?$/gm,c=CSSStyleSheet.prototype;c.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},c.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var u=new WeakMap,a=new WeakMap,l=new WeakMap,f=j.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(N(this),"string"==typeof e){var t=this,n=u.get(t).ownerNode;n.textContent=function(e){var t=e.replace(s,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),u.set(t,n.sheet),a.get(t).forEach(function(e){e.isConnected()&&O(t,P(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return N(this),u.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;N(t);var n=arguments,r=u.get(t),o=a.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=P(t,r).sheet;o[e].apply(o,n)}}),i}}),o(j,Symbol.hasInstance,{configurable:!0,value:E});var p={childList:!0,subtree:!0},d=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=M.prototype;if(m.isConnected=function(){var e=h.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},m.connect=function(){var e=A(this);y.get(this).observe(e,p),v.get(this).length>0&&x(this),k(e,function(e){R(e).connect()})},m.disconnect=function(){y.get(this).disconnect()},m.update=function(e){var t=this,n=h.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var r,o,i=v.get(t),s=(r=e).filter(function(e,t){return r.indexOf(e)===t});(o=s,i.filter(function(e){return-1===o.indexOf(e)})).forEach(function(e){var n;(n=P(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),a.set(e,a.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&x(t)},window.CSSStyleSheet=j,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,b=g.attachShadow;g.attachShadow=function(e){var t=b.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var S=R(document);S.isConnected()?S.connect():document.addEventListener("DOMContentLoaded",S.connect.bind(S))}function w(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||c.isPrototypeOf(e))}function C(e){return"object"==typeof e&&c.isPrototypeOf(e)}function P(e,t){return l.get(e).get(t)}function O(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=u.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function N(e){if(!u.has(e))throw new TypeError("Illegal invocation")}function j(){var e=this,n=document.createElement("style");t.body.appendChild(n),u.set(e,n.sheet),a.set(e,[]),l.set(e,new WeakMap)}function R(e){var t=d.get(e);return t||(t=new M(e),d.set(e,t)),t}function T(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function k(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,function(e){return w(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),r=void 0;r=n.nextNode();)t(w(r))}function A(e){var t=h.get(e);return t instanceof Document?t.body:t}function x(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=A(e);r.disconnect(),n.forEach(function(n){t.appendChild(P(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),a.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){O(t,P(t,e))})}function M(t){var n=this;n.sheets=[],h.set(n,t),v.set(n,[]),y.set(n,new MutationObserver(function(t,r){document?t.forEach(function(t){e||i.call(t.addedNodes,function(e){e instanceof Element&&k(e,function(e){R(e).connect()})}),i.call(t.removedNodes,function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&v.get(e).some(function(t){return P(t,e)})}(n,t)&&x(n),e||k(t,function(e){R(e).disconnect()}))})}):r.disconnect()}))}}(),function(){var e="undefined"!=typeof window?window:global;if(void 0!==e.Reflect&&void 0!==e.customElements&&!e.customElements.hasOwnProperty("polyfillWrapFlushCallback")){var t=e.HTMLElement;e.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var p=/\B([A-Z])/g;function d(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function h(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(){return{}}function y(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function m(e,t,n){return{configurable:!0,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}function g(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===a)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}function b(e,t){var r=[].slice.call(arguments,2);return g(e.nodeName,n({},e.attributes,t),r.length>0?r.flat():e.children)}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var u=i.value;Array.isArray(u)&&o<e?n(u,o+1):t.push(u)}}(this,0),t}),g.f=a;var S={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},w=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,E={};function C(e,t){E["o-"+e]=t}function P(e){var t=e.parentNode;t&&t.removeChild(e)}function O(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=E[t])||n.call(E,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)l(n,null),l(r,e);else if("class"!==t||o)if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||j(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||j(e.style,t,r[t])}else if("unsafeHTML"===t)r&&(e.innerHTML=r.html||r||"");else if("o"==t[0]&&"n"==t[1])!function(e,t,n,r){var o=t!==(t=t.replace(/Capture$/,"")),i=t.toLowerCase();t=(S[i]||i in e?i:t).slice(2),n?r||e.addEventListener(t,N,o):e.removeEventListener(t,N,o),(e._listeners||(e._listeners={}))[t]=n}(e,t,r,n);else if("INPUT"===e.nodeName&&"value"===t)e.value=null==r?"":r;else if("list"!==t&&"type"!==t&&"css"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var i=o&&t!==(t=t.replace(/^xlink:?/,""));if(null==r||!1===r)i?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t);else if("function"!=typeof r)if(i)e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r);else if("Component"===e.constructor.is){var s,c=null==(s=e.constructor.reflectProps)?void 0:s[t];c&&e.setAttribute(t,"function"==typeof c?c(r):r)}else e.setAttribute(t,r)}else e.className=r||""}function N(e){return this._listeners[e.type](e)}function j(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||w.test(t)?n.toString():n+"px"}var R=0,T=!1,k=!1,A=!1;function x(e,t,n,r,o){return e||t?(R++||(T=null!=n&&void 0!==n.ownerSVGElement,A=!1),f(t)?n?(L(n,t,A,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=M(0===n?e:null,t,r,o);i.push(s)})):(f(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=M(e,t,r,o):_(e,!1)}):i=M(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--R||(A=!1),i):null;var i,s}function M(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=T,c=k;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||n)?e.nodeValue!=t&&(e.nodeValue=String(t)):(i=document.createTextNode(String(t)),e&&(e.parentNode&&(null==(o=e.parentNode)||o.replaceChild(i,e)),_(e,!0))),i&&(i.prevProps={}),i;var a,l,f,p=t.nodeName;if(k="foreignObject"===p,T="svg"===p||!k&&T,p=String(p),(!e||!h(e,p))&&(l=p,(f=k||T?document.createElementNS("http://www.w3.org/2000/svg",l):document.createElement(l)).normalizedNodeName=l,"Component"===(null==(a=(i=f).constructor)?void 0:a.is)&&Object.assign(i.props,t.attributes),e)){for(var d;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(i,e)),_(e,!0)}var v=i.firstChild,y=i.prevProps,m=t.children;if(null==y){y=i.prevProps={};for(var g=i.attributes,b=g.length;b--;)y[g[b].name]=g[b].value}return!A&&m&&1===m.length&&"string"==typeof m[0]&&null!=v&&void 0!==v.splitText&&null==v.nextSibling?v.nodeValue!=m[0]&&(v.nodeValue=m[0]):(m&&m.length||null!=v)&&("Component"==i.constructor.is&&i.constructor.noSlot||L(i,m,A||null!=y.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,c=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(O(e,i,n[i],n[i]=void 0,k||T),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&O(e,i,n[i],n[i]=t[i],k||T);var a=u(i);e.props[a]=n[a]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(O(e,i,n[i],t[i],k||T),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var l=u(i);e.props[l]=n[l]=t[i]}else n[i]=t[i];c&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,y,0,r),i.props&&(i.props.children=t.children),T=s,k=c,i}function L(e,t,n,r,o){var i,s,c,u,a,l,f,p=e.childNodes,d=[],v={},y=0,m=0,g=p.length,b=0,S=t?t.length:0;if(0!==g)for(var w=0;w<g;w++){var E,C=p[w],O=C.prevProps,N=S&&O?O.key:null;null!=N?(y++,v[N]=C):(O||(void 0!==C.splitText?!n||(null==(E=C.nodeValue)?void 0:E.trim()):n))&&(d[b++]=C)}if(0!==S)for(var j=0;j<S;j++){if(a=null,u=t[j]){var R=u.key;if(null!=R)y&&void 0!==v[R]&&(a=v[R],v[R]=void 0,y--);else if(m<b)for(i=m;i<b;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=u)||"number"==typeof f?void 0!==l.splitText:h(l,f.nodeName))){a=s,d[i]=void 0,i===b-1&&b--,i===m&&m++;break}}a=M(a,u,r,o),c=p[j],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?P(c):e.insertBefore(a,c))}if(y)for(var T in v)void 0!==v[T]&&_(v[T],!1);for(;m<=b;)void 0!==(a=d[b--])&&_(a,!1)}function _(e,t){null!=e.prevProps&&e.prevProps.ref&&("function"==typeof e.prevProps.ref?e.prevProps.ref(null):e.prevProps.ref.current&&(e.prevProps.ref.current=null)),!1!==t&&null!=e.prevProps||P(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;_(e,!0),e=n}}(e)}var I=null,F=[],W=null;function H(e){W=e}function U(){return W}function D(e){var t=e,n=new Set,r=new Set;return new Proxy({},{get:function(e,o){if("value"===o){I&&n.add(I);var i=U();return i&&r.add(i),t}return"peek"===o?function(){return t}:"update"===o?function(){n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})}:void 0},set:function(e,o,i){return"value"===o&&(y(t)&&y(i)&&t===i||(t=i,n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})),!0)}})}function V(e){var t=D(e());return q(function(){t.value=e()}),t}function q(e){var t=new Set,n=!1;return function t(){n||(n=!0,I=t,e(),I=null,n=!1)}(),function(){t.clear()}}function B(e){F.push(e),1===F.length&&Promise.resolve().then($)}function $(){for(;F.length;){var e=F.shift();e&&e()}}function J(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=D(t[1]),e},{})}var Q={mixin:{},globalCSS:[]};function z(e){Object.assign(Q.mixin,e)}function G(e,t){customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):(Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.define(e,t))}function Z(e){return function(t){G(e,t)}}var K=0,X=new WeakMap,Y=/*#__PURE__*/function(e){var n,r;function i(){var t;if((t=e.call(this)||this).elementId=void 0,t.isInstalled=void 0,t.inject=void 0,t.injection=void 0,t.renderRoot=void 0,t.rootElement=void 0,t.updateQueued=!1,t.constructor.defaultProps||(t.constructor.defaultProps={}),t.constructor.propTypes||(t.constructor.propTypes={}),t.constructor.reflectProps||(t.constructor.reflectProps={}),t.constructor.props)for(var n in t.constructor.props){var r=t.constructor.props[n];t.constructor.defaultProps[n]=r.default,t.constructor.propTypes[n]=r.type,t.constructor.reflectProps[n]=r.reflect}return t.props=Object.assign({},t.constructor.defaultProps,t.props),t.elementId=K++,t.isInstalled=!1,t.rootElement=null,t}r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,o(n,r),i.define=function(e){G(e,this)};var s=i.prototype;return s.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];r.changed&&r.changed.call(this,n,t)}},s.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!Q.mixin.store;)this.store=t.store,t=t.parentNode||t.host;if(this.inject){var n;for(this.injection={},t=this.parentNode;t&&!n;)n=t.provide,t=t.parentNode||t.host;n&&this.inject.forEach(function(t){e.injection[t]=n[t]})}var r=function(t){Object.defineProperty(e,t,{get:function(){return Q.mixin[t]}})};for(var o in Q.mixin)r(o)},s.createRenderRoot=function(){if(this.constructor.isLightDOM)return this;if(this.shadowRoot){for(var e;e=this.shadowRoot.firstChild;)this.shadowRoot.removeChild(e);return this.shadowRoot}return this.attachShadow({mode:"open"})},s.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||X.has(this.constructor))this.renderRoot.adoptedStyleSheets=X.get(this.constructor);else{var e=this.constructor.css;if(e){var t=[];t="string"==typeof e?[d(e)]:f(e)?e.map(function(e){return"string"==typeof e?d(e):e.default&&"string"==typeof e.default?d(e.default):e}):e.default&&"string"==typeof e.default?[d(e.default)]:[e],t=[].concat(t,Q.globalCSS),this.renderRoot.adoptedStyleSheets=t,X.set(this.constructor,t)}}},s.appendStyleVNode=function(e){if(this.props.css&&e){var t={nodeName:"style",attributes:{},children:[this.props.css]};e.push?e.push(t):e.children.push(t)}},s.connectedCallback=function(){var e=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),H(this),this.beforeRender(),this.fire("beforeRender",this);var t,n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),H(null),this.rootElement=x(null,n,null,this,!1),f(this.rootElement)?this.rootElement.forEach(function(t){var n;null==(n=e.renderRoot)||n.appendChild(t)}):this.rootElement&&(null==(t=this.renderRoot)||t.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0},s.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1},s.update=function(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),H(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),H(null),this.rootElement=x(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)},s.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},s.updateProps=function(e){var t=this;Object.keys(e).forEach(function(n){t.props[n]=e[n],t.prevProps&&(t.prevProps[n]=e[n])}),this.update()},s.updateSelf=function(){this.update(!0)},s.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},s.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},s.attrsToProps=function(){if(!this.props.ignoreAttrs){var e=this;e.props.css=e.getAttribute("css");var t=this.constructor.propTypes;t&&Object.keys(t).forEach(function(n){var r=f(t[n])?t[n]:[t[n]],o=e.getAttribute(n.replace(p,"-$1").toLowerCase());if(null!==o)for(var i=0;i<r.length;i++){var s=!1;switch(r[i]){case String:e.props[n]=o,s=!0;break;case Number:e.props[n]=Number(o),s=!0;break;case Boolean:e.props[n]="false"!==o&&"0"!==o,s=!0;break;case Array:case Object:try{e.props[n]=JSON.parse(o)}catch(e){console.warn("The "+n+" object prop does not comply with the JSON specification, the incorrect string is ["+o+"].")}s=!0}if(s)break}else e.props[n]=e.constructor.defaultProps&&e.constructor.defaultProps.hasOwnProperty(n)?e.constructor.defaultProps[n]:null})}},s.fire=function(e,t){var n=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];n?n(new CustomEvent(e,{detail:t})):this.dispatchEvent(new CustomEvent(e,{detail:t}))},s.install=function(){},s.installed=function(){},s.uninstall=function(){},s.beforeUpdate=function(){},s.updated=function(){},s.beforeRender=function(){},s.rendered=function(e){},s.receiveProps=function(){},t(i,null,[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}]),i}(/*#__PURE__*/s(HTMLElement));function ee(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),x(null,e,t,null,!1)}Y.is="Component",Y.defaultProps=void 0,Y.reflectProps=void 0,Y.propTypes=void 0,Y.css=void 0,Y.isLightDOM=void 0,Y.noSlot=void 0;var te={}.hasOwnProperty;function ne(){for(var e=[].slice.call(arguments),t=[],n=0;n<e.length;n++){var r=e[n];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var i=ne.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)te.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}function re(e){var t=[].slice.call(arguments,1);if(e.class?(t.unshift(e.class),delete e.class):e.className&&(t.unshift(e.className),delete e.className),t.length>0)return{class:ne.apply(void 0,t)}}var oe=/*#__PURE__*/function(){function e(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=D(e)}var n=e.prototype;return n.peek=function(){return this._signal.peek()},n.computed=function(e){return V(e)},n.effect=function(e){return q(e)},n.batch=function(e){return B(e)},n.setActiveComponent=function(e){return H(e)},n.getActiveComponent=function(){return U()},n.update=function(e){e&&e(this._value),this.value=this.value},t(e,[{key:"value",get:function(){return this._signal.value},set:function(e){this._signal.value=e}}]),e}(),ie={};function se(e){var t=[].slice.call(arguments,1),n="";if(e.forEach(function(e,r){if(void 0!==t[r]&&"string"!=typeof t[r]&&"number"!=typeof t[r])throw new Error("Unsupported value in CSS: "+t[r]);n+=e+(t[r]||"")}),ie[n])return ie[n];var r=new CSSStyleSheet;return r.replaceSync(n),ie[n]=r,r}var ce="7.5.7";export{Y as Component,oe as Signal,Y as WeElement,B as batch,m as bind,ne as classNames,b as cloneElement,V as computed,g as createElement,v as createRef,se as css,G as define,G as defineElement,q as effect,re as extractClass,U as getActiveComponent,g as h,z as mixin,C as registerDirective,ee as render,H as setActiveComponent,D as signal,J as signalObject,Z as tag,ce as version};
//# sourceMappingURL=omi.module.js.map

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("weakmap-polyfill")):"function"==typeof define&&define.amd?define(["exports","weakmap-polyfill"],t):t((e||self).Omi={})}(this,function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function s(e,t,n){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},s.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function l(e){return e.children}function f(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function p(e){return"[object Array]"===Object.prototype.toString.call(e)}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument("boot"),n=new WeakMap,r="object"==typeof DOMException?Error:DOMException,o=Object.defineProperty,i=Array.prototype.forEach,s=/@import.+?;?$/gm,c=CSSStyleSheet.prototype;c.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},c.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var u=new WeakMap,a=new WeakMap,l=new WeakMap,f=j.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(N(this),"string"==typeof e){var t=this,n=u.get(t).ownerNode;n.textContent=function(e){var t=e.replace(s,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),u.set(t,n.sheet),a.get(t).forEach(function(e){e.isConnected()&&O(t,P(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return N(this),u.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;N(t);var n=arguments,r=u.get(t),o=a.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=P(t,r).sheet;o[e].apply(o,n)}}),i}}),o(j,Symbol.hasInstance,{configurable:!0,value:E});var p={childList:!0,subtree:!0},d=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=M.prototype;if(m.isConnected=function(){var e=h.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},m.connect=function(){var e=k(this);y.get(this).observe(e,p),v.get(this).length>0&&x(this),A(e,function(e){R(e).connect()})},m.disconnect=function(){y.get(this).disconnect()},m.update=function(e){var t=this,n=h.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var r,o,i=v.get(t),s=(r=e).filter(function(e,t){return r.indexOf(e)===t});(o=s,i.filter(function(e){return-1===o.indexOf(e)})).forEach(function(e){var n;(n=P(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),a.set(e,a.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&x(t)},window.CSSStyleSheet=j,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,b=g.attachShadow;g.attachShadow=function(e){var t=b.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var S=R(document);S.isConnected()?S.connect():document.addEventListener("DOMContentLoaded",S.connect.bind(S))}function w(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||c.isPrototypeOf(e))}function C(e){return"object"==typeof e&&c.isPrototypeOf(e)}function P(e,t){return l.get(e).get(t)}function O(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=u.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function N(e){if(!u.has(e))throw new TypeError("Illegal invocation")}function j(){var e=this,n=document.createElement("style");t.body.appendChild(n),u.set(e,n.sheet),a.set(e,[]),l.set(e,new WeakMap)}function R(e){var t=d.get(e);return t||(t=new M(e),d.set(e,t)),t}function T(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function A(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,function(e){return w(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),r=void 0;r=n.nextNode();)t(w(r))}function k(e){var t=h.get(e);return t instanceof Document?t.body:t}function x(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=k(e);r.disconnect(),n.forEach(function(n){t.appendChild(P(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),a.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){O(t,P(t,e))})}function M(t){var n=this;n.sheets=[],h.set(n,t),v.set(n,[]),y.set(n,new MutationObserver(function(t,r){document?t.forEach(function(t){e||i.call(t.addedNodes,function(e){e instanceof Element&&A(e,function(e){R(e).connect()})}),i.call(t.removedNodes,function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&v.get(e).some(function(t){return P(t,e)})}(n,t)&&x(n),e||A(t,function(e){R(e).disconnect()}))})}):r.disconnect()}))}}(),function(){var e="undefined"!=typeof window?window:global;if(void 0!==e.Reflect&&void 0!==e.customElements&&!e.customElements.hasOwnProperty("polyfillWrapFlushCallback")){var t=e.HTMLElement;e.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var d=/\B([A-Z])/g;function h(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function y(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function m(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===l)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var c=i.value;Array.isArray(c)&&o<e?n(c,o+1):t.push(c)}}(this,0),t}),m.f=l;var g={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},b=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,S={};function w(e){var t=e.parentNode;t&&t.removeChild(e)}function E(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=S[t])||n.call(S,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)f(n,null),f(r,e);else if("class"!==t||o)if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||P(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||P(e.style,t,r[t])}else if("unsafeHTML"===t)r&&(e.innerHTML=r.html||r||"");else if("o"==t[0]&&"n"==t[1])!function(e,t,n,r){var o=t!==(t=t.replace(/Capture$/,"")),i=t.toLowerCase();t=(g[i]||i in e?i:t).slice(2),n?r||e.addEventListener(t,C,o):e.removeEventListener(t,C,o),(e._listeners||(e._listeners={}))[t]=n}(e,t,r,n);else if("INPUT"===e.nodeName&&"value"===t)e.value=null==r?"":r;else if("list"!==t&&"type"!==t&&"css"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var i=o&&t!==(t=t.replace(/^xlink:?/,""));if(null==r||!1===r)i?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t);else if("function"!=typeof r)if(i)e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r);else if("Component"===e.constructor.is){var s,c=null==(s=e.constructor.reflectProps)?void 0:s[t];c&&e.setAttribute(t,"function"==typeof c?c(r):r)}else e.setAttribute(t,r)}else e.className=r||""}function C(e){return this._listeners[e.type](e)}function P(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||b.test(t)?n.toString():n+"px"}var O=0,N=!1,j=!1,R=!1;function T(e,t,n,r,o){return e||t?(O++||(N=null!=n&&void 0!==n.ownerSVGElement,R=!1),p(t)?n?(k(n,t,R,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=A(0===n?e:null,t,r,o);i.push(s)})):(p(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=A(e,t,r,o):x(e,!1)}):i=A(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--O||(R=!1),i):null;var i,s}function A(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=N,c=j;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||n)?e.nodeValue!=t&&(e.nodeValue=String(t)):(i=document.createTextNode(String(t)),e&&(e.parentNode&&(null==(o=e.parentNode)||o.replaceChild(i,e)),x(e,!0))),i&&(i.prevProps={}),i;var u,l,f,p=t.nodeName;if(j="foreignObject"===p,N="svg"===p||!j&&N,p=String(p),(!e||!v(e,p))&&(l=p,(f=j||N?document.createElementNS("http://www.w3.org/2000/svg",l):document.createElement(l)).normalizedNodeName=l,"Component"===(null==(u=(i=f).constructor)?void 0:u.is)&&Object.assign(i.props,t.attributes),e)){for(var d;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(i,e)),x(e,!0)}var h=i.firstChild,y=i.prevProps,m=t.children;if(null==y){y=i.prevProps={};for(var g=i.attributes,b=g.length;b--;)y[g[b].name]=g[b].value}return!R&&m&&1===m.length&&"string"==typeof m[0]&&null!=h&&void 0!==h.splitText&&null==h.nextSibling?h.nodeValue!=m[0]&&(h.nodeValue=m[0]):(m&&m.length||null!=h)&&("Component"==i.constructor.is&&i.constructor.noSlot||k(i,m,R||null!=y.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,c=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(E(e,i,n[i],n[i]=void 0,j||N),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&E(e,i,n[i],n[i]=t[i],j||N);var u=a(i);e.props[u]=n[u]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(E(e,i,n[i],t[i],j||N),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var l=a(i);e.props[l]=n[l]=t[i]}else n[i]=t[i];c&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,y,0,r),i.props&&(i.props.children=t.children),N=s,j=c,i}function k(e,t,n,r,o){var i,s,c,u,a,l,f,p=e.childNodes,d=[],h={},y=0,m=0,g=p.length,b=0,S=t?t.length:0;if(0!==g)for(var E=0;E<g;E++){var C,P=p[E],O=P.prevProps,N=S&&O?O.key:null;null!=N?(y++,h[N]=P):(O||(void 0!==P.splitText?!n||(null==(C=P.nodeValue)?void 0:C.trim()):n))&&(d[b++]=P)}if(0!==S)for(var j=0;j<S;j++){if(a=null,u=t[j]){var R=u.key;if(null!=R)y&&void 0!==h[R]&&(a=h[R],h[R]=void 0,y--);else if(m<b)for(i=m;i<b;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=u)||"number"==typeof f?void 0!==l.splitText:v(l,f.nodeName))){a=s,d[i]=void 0,i===b-1&&b--,i===m&&m++;break}}a=A(a,u,r,o),c=p[j],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?w(c):e.insertBefore(a,c))}if(y)for(var T in h)void 0!==h[T]&&x(h[T],!1);for(;m<=b;)void 0!==(a=d[b--])&&x(a,!1)}function x(e,t){null!=e.prevProps&&e.prevProps.ref&&("function"==typeof e.prevProps.ref?e.prevProps.ref(null):e.prevProps.ref.current&&(e.prevProps.ref.current=null)),!1!==t&&null!=e.prevProps||w(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;x(e,!0),e=n}}(e)}var M=null,L=[],_=null;function I(e){_=e}function F(){return _}function W(e){var t=e,n=new Set,r=new Set;return new Proxy({},{get:function(e,o){if("value"===o){M&&n.add(M);var i=F();return i&&r.add(i),t}return"peek"===o?function(){return t}:"update"===o?function(){n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})}:void 0},set:function(e,o,i){return"value"===o&&(y(t)&&y(i)&&t===i||(t=i,n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})),!0)}})}function D(e){var t=W(e());return H(function(){t.value=e()}),t}function H(e){var t=new Set,n=!1;return function t(){n||(n=!0,M=t,e(),M=null,n=!1)}(),function(){t.clear()}}function U(e){L.push(e),1===L.length&&Promise.resolve().then(V)}function V(){for(;L.length;){var e=L.shift();e&&e()}}var q={mixin:{}};function B(e,t){customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):(Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.define(e,t))}var $=0,J=new WeakMap,Q=/*#__PURE__*/function(e){var t,r;function o(){var t;if((t=e.call(this)||this).elementId=void 0,t.isInstalled=void 0,t.inject=void 0,t.injection=void 0,t.renderRoot=void 0,t.rootElement=void 0,t.updateQueued=!1,t.constructor.defaultProps||(t.constructor.defaultProps={}),t.constructor.propTypes||(t.constructor.propTypes={}),t.constructor.reflectProps||(t.constructor.reflectProps={}),t.constructor.props)for(var n in t.constructor.props){var r=t.constructor.props[n];t.constructor.defaultProps[n]=r.default,t.constructor.propTypes[n]=r.type,t.constructor.reflectProps[n]=r.reflect}return t.props=Object.assign({},t.constructor.defaultProps,t.props),t.elementId=$++,t.isInstalled=!1,t.rootElement=null,t}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r),o.define=function(e){B(e,this)};var s=o.prototype;return s.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];r.changed&&r.changed.call(this,n,t)}},s.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!q.mixin.store;)this.store=t.store,t=t.parentNode||t.host;if(this.inject){var n;for(this.injection={},t=this.parentNode;t&&!n;)n=t.provide,t=t.parentNode||t.host;n&&this.inject.forEach(function(t){e.injection[t]=n[t]})}var r=function(t){Object.defineProperty(e,t,{get:function(){return q.mixin[t]}})};for(var o in q.mixin)r(o)},s.createRenderRoot=function(){if(this.constructor.isLightDOM)return this;if(this.shadowRoot){for(var e;e=this.shadowRoot.firstChild;)this.shadowRoot.removeChild(e);return this.shadowRoot}return this.attachShadow({mode:"open"})},s.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||J.has(this.constructor))this.renderRoot.adoptedStyleSheets=J.get(this.constructor);else{var e,t=this.constructor.css;t&&(e="string"==typeof t?[h(t)]:p(t)?t.map(function(e){return"string"==typeof e?h(e):e.default&&"string"==typeof e.default?h(e.default):e}):t.default&&"string"==typeof t.default?[h(t.default)]:[t],this.renderRoot.adoptedStyleSheets=e,J.set(this.constructor,e))}},s.appendStyleVNode=function(e){if(this.props.css&&e){var t={nodeName:"style",attributes:{},children:[this.props.css]};e.push?e.push(t):e.children.push(t)}},s.connectedCallback=function(){var e=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),I(this),this.beforeRender(),this.fire("beforeRender",this);var t,n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),I(null),this.rootElement=T(null,n,null,this,!1),p(this.rootElement)?this.rootElement.forEach(function(t){var n;null==(n=e.renderRoot)||n.appendChild(t)}):this.rootElement&&(null==(t=this.renderRoot)||t.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0},s.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1},s.update=function(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),I(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),I(null),this.rootElement=T(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)},s.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},s.updateProps=function(e){var t=this;Object.keys(e).forEach(function(n){t.props[n]=e[n],t.prevProps&&(t.prevProps[n]=e[n])}),this.update()},s.updateSelf=function(){this.update(!0)},s.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},s.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},s.attrsToProps=function(){if(!this.props.ignoreAttrs){var e=this;e.props.css=e.getAttribute("css");var t=this.constructor.propTypes;t&&Object.keys(t).forEach(function(n){var r=p(t[n])?t[n]:[t[n]],o=e.getAttribute(n.replace(d,"-$1").toLowerCase());if(null!==o)for(var i=0;i<r.length;i++){var s=!1;switch(r[i]){case String:e.props[n]=o,s=!0;break;case Number:e.props[n]=Number(o),s=!0;break;case Boolean:e.props[n]="false"!==o&&"0"!==o,s=!0;break;case Array:case Object:try{e.props[n]=JSON.parse(o)}catch(e){console.warn("The "+n+" object prop does not comply with the JSON specification, the incorrect string is ["+o+"].")}s=!0}if(s)break}else e.props[n]=e.constructor.defaultProps&&e.constructor.defaultProps.hasOwnProperty(n)?e.constructor.defaultProps[n]:null})}},s.fire=function(e,t){var n=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];n?n(new CustomEvent(e,{detail:t})):this.dispatchEvent(new CustomEvent(e,{detail:t}))},s.install=function(){},s.installed=function(){},s.uninstall=function(){},s.beforeUpdate=function(){},s.updated=function(){},s.beforeRender=function(){},s.rendered=function(e){},s.receiveProps=function(){},n(o,null,[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}]),o}(/*#__PURE__*/c(HTMLElement));Q.is="Component",Q.defaultProps=void 0,Q.reflectProps=void 0,Q.propTypes=void 0,Q.css=void 0,Q.isLightDOM=void 0,Q.noSlot=void 0;var z={}.hasOwnProperty;function G(){for(var e=[].slice.call(arguments),t=[],n=0;n<e.length;n++){var r=e[n];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var i=G.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)z.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var Z=/*#__PURE__*/function(){function e(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=W(e)}var t=e.prototype;return t.peek=function(){return this._signal.peek()},t.computed=function(e){return D(e)},t.effect=function(e){return H(e)},t.batch=function(e){return U(e)},t.setActiveComponent=function(e){return I(e)},t.getActiveComponent=function(){return F()},t.update=function(e){e&&e(this._value),this.value=this.value},n(e,[{key:"value",get:function(){return this._signal.value},set:function(e){this._signal.value=e}}]),e}(),K={};e.Component=Q,e.Signal=Z,e.WeElement=Q,e.batch=U,e.bind=function(e,t,n){return{configurable:!0,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}},e.classNames=G,e.cloneElement=function(e,t){var n=[].slice.call(arguments,2);return m(e.nodeName,r({},e.attributes,t),n.length>0?n.flat():e.children)},e.computed=D,e.createElement=m,e.createRef=function(){return{}},e.css=function(e){var t=[].slice.call(arguments,1),n="";if(e.forEach(function(e,r){if(void 0!==t[r]&&"string"!=typeof t[r]&&"number"!=typeof t[r])throw new Error("Unsupported value in CSS: "+t[r]);n+=e+(t[r]||"")}),K[n])return K[n];var r=new CSSStyleSheet;return r.replaceSync(n),K[n]=r,r},e.define=B,e.defineElement=B,e.effect=H,e.extractClass=function(e){var t=[].slice.call(arguments,1);if(e.class?(t.unshift(e.class),delete e.class):e.className&&(t.unshift(e.className),delete e.className),t.length>0)return{class:G.apply(void 0,t)}},e.getActiveComponent=F,e.h=m,e.mixin=function(e){Object.assign(q.mixin,e)},e.registerDirective=function(e,t){S["o-"+e]=t},e.render=function(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),T(null,e,t,null,!1)},e.setActiveComponent=I,e.signal=W,e.signalObject=function(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=W(t[1]),e},{})},e.tag=function(e){return function(t){B(e,t)}},e.version="7.5.6"});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("weakmap-polyfill")):"function"==typeof define&&define.amd?define(["exports","weakmap-polyfill"],t):t((e||self).Omi={})}(this,function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function s(e,t,n){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},s.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function l(e){return e.children}function f(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function p(e){return"[object Array]"===Object.prototype.toString.call(e)}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument("boot"),n=new WeakMap,r="object"==typeof DOMException?Error:DOMException,o=Object.defineProperty,i=Array.prototype.forEach,s=/@import.+?;?$/gm,c=CSSStyleSheet.prototype;c.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},c.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var u=new WeakMap,a=new WeakMap,l=new WeakMap,f=j.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(N(this),"string"==typeof e){var t=this,n=u.get(t).ownerNode;n.textContent=function(e){var t=e.replace(s,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),u.set(t,n.sheet),a.get(t).forEach(function(e){e.isConnected()&&O(t,P(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return N(this),u.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;N(t);var n=arguments,r=u.get(t),o=a.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=P(t,r).sheet;o[e].apply(o,n)}}),i}}),o(j,Symbol.hasInstance,{configurable:!0,value:E});var p={childList:!0,subtree:!0},d=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=M.prototype;if(m.isConnected=function(){var e=h.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},m.connect=function(){var e=k(this);y.get(this).observe(e,p),v.get(this).length>0&&x(this),A(e,function(e){R(e).connect()})},m.disconnect=function(){y.get(this).disconnect()},m.update=function(e){var t=this,n=h.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var r,o,i=v.get(t),s=(r=e).filter(function(e,t){return r.indexOf(e)===t});(o=s,i.filter(function(e){return-1===o.indexOf(e)})).forEach(function(e){var n;(n=P(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),a.set(e,a.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&x(t)},window.CSSStyleSheet=j,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,b=g.attachShadow;g.attachShadow=function(e){var t=b.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var S=R(document);S.isConnected()?S.connect():document.addEventListener("DOMContentLoaded",S.connect.bind(S))}function w(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(f.isPrototypeOf(e)||c.isPrototypeOf(e))}function C(e){return"object"==typeof e&&c.isPrototypeOf(e)}function P(e,t){return l.get(e).get(t)}function O(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=u.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function N(e){if(!u.has(e))throw new TypeError("Illegal invocation")}function j(){var e=this,n=document.createElement("style");t.body.appendChild(n),u.set(e,n.sheet),a.set(e,[]),l.set(e,new WeakMap)}function R(e){var t=d.get(e);return t||(t=new M(e),d.set(e,t)),t}function T(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function A(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,function(e){return w(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),r=void 0;r=n.nextNode();)t(w(r))}function k(e){var t=h.get(e);return t instanceof Document?t.body:t}function x(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=k(e);r.disconnect(),n.forEach(function(n){t.appendChild(P(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),a.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){O(t,P(t,e))})}function M(t){var n=this;n.sheets=[],h.set(n,t),v.set(n,[]),y.set(n,new MutationObserver(function(t,r){document?t.forEach(function(t){e||i.call(t.addedNodes,function(e){e instanceof Element&&A(e,function(e){R(e).connect()})}),i.call(t.removedNodes,function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&v.get(e).some(function(t){return P(t,e)})}(n,t)&&x(n),e||A(t,function(e){R(e).disconnect()}))})}):r.disconnect()}))}}(),function(){var e="undefined"!=typeof window?window:global;if(void 0!==e.Reflect&&void 0!==e.customElements&&!e.customElements.hasOwnProperty("polyfillWrapFlushCallback")){var t=e.HTMLElement;e.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var d=/\B([A-Z])/g;function h(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function y(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function m(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===l)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var c=i.value;Array.isArray(c)&&o<e?n(c,o+1):t.push(c)}}(this,0),t}),m.f=l;var g={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},b=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,S={};function w(e){var t=e.parentNode;t&&t.removeChild(e)}function E(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=S[t])||n.call(S,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)f(n,null),f(r,e);else if("class"!==t||o)if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||P(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||P(e.style,t,r[t])}else if("unsafeHTML"===t)r&&(e.innerHTML=r.html||r||"");else if("o"==t[0]&&"n"==t[1])!function(e,t,n,r){var o=t!==(t=t.replace(/Capture$/,"")),i=t.toLowerCase();t=(g[i]||i in e?i:t).slice(2),n?r||e.addEventListener(t,C,o):e.removeEventListener(t,C,o),(e._listeners||(e._listeners={}))[t]=n}(e,t,r,n);else if("INPUT"===e.nodeName&&"value"===t)e.value=null==r?"":r;else if("list"!==t&&"type"!==t&&"css"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var i=o&&t!==(t=t.replace(/^xlink:?/,""));if(null==r||!1===r)i?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t);else if("function"!=typeof r)if(i)e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r);else if("Component"===e.constructor.is){var s,c=null==(s=e.constructor.reflectProps)?void 0:s[t];c&&e.setAttribute(t,"function"==typeof c?c(r):r)}else e.setAttribute(t,r)}else e.className=r||""}function C(e){return this._listeners[e.type](e)}function P(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||b.test(t)?n.toString():n+"px"}var O=0,N=!1,j=!1,R=!1;function T(e,t,n,r,o){return e||t?(O++||(N=null!=n&&void 0!==n.ownerSVGElement,R=!1),p(t)?n?(k(n,t,R,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=A(0===n?e:null,t,r,o);i.push(s)})):(p(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=A(e,t,r,o):x(e,!1)}):i=A(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--O||(R=!1),i):null;var i,s}function A(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=N,c=j;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||n)?e.nodeValue!=t&&(e.nodeValue=String(t)):(i=document.createTextNode(String(t)),e&&(e.parentNode&&(null==(o=e.parentNode)||o.replaceChild(i,e)),x(e,!0))),i&&(i.prevProps={}),i;var u,l,f,p=t.nodeName;if(j="foreignObject"===p,N="svg"===p||!j&&N,p=String(p),(!e||!v(e,p))&&(l=p,(f=j||N?document.createElementNS("http://www.w3.org/2000/svg",l):document.createElement(l)).normalizedNodeName=l,"Component"===(null==(u=(i=f).constructor)?void 0:u.is)&&Object.assign(i.props,t.attributes),e)){for(var d;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(i,e)),x(e,!0)}var h=i.firstChild,y=i.prevProps,m=t.children;if(null==y){y=i.prevProps={};for(var g=i.attributes,b=g.length;b--;)y[g[b].name]=g[b].value}return!R&&m&&1===m.length&&"string"==typeof m[0]&&null!=h&&void 0!==h.splitText&&null==h.nextSibling?h.nodeValue!=m[0]&&(h.nodeValue=m[0]):(m&&m.length||null!=h)&&("Component"==i.constructor.is&&i.constructor.noSlot||k(i,m,R||null!=y.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,c=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(E(e,i,n[i],n[i]=void 0,j||N),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&E(e,i,n[i],n[i]=t[i],j||N);var u=a(i);e.props[u]=n[u]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(E(e,i,n[i],t[i],j||N),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var l=a(i);e.props[l]=n[l]=t[i]}else n[i]=t[i];c&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,y,0,r),i.props&&(i.props.children=t.children),N=s,j=c,i}function k(e,t,n,r,o){var i,s,c,u,a,l,f,p=e.childNodes,d=[],h={},y=0,m=0,g=p.length,b=0,S=t?t.length:0;if(0!==g)for(var E=0;E<g;E++){var C,P=p[E],O=P.prevProps,N=S&&O?O.key:null;null!=N?(y++,h[N]=P):(O||(void 0!==P.splitText?!n||(null==(C=P.nodeValue)?void 0:C.trim()):n))&&(d[b++]=P)}if(0!==S)for(var j=0;j<S;j++){if(a=null,u=t[j]){var R=u.key;if(null!=R)y&&void 0!==h[R]&&(a=h[R],h[R]=void 0,y--);else if(m<b)for(i=m;i<b;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=u)||"number"==typeof f?void 0!==l.splitText:v(l,f.nodeName))){a=s,d[i]=void 0,i===b-1&&b--,i===m&&m++;break}}a=A(a,u,r,o),c=p[j],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?w(c):e.insertBefore(a,c))}if(y)for(var T in h)void 0!==h[T]&&x(h[T],!1);for(;m<=b;)void 0!==(a=d[b--])&&x(a,!1)}function x(e,t){null!=e.prevProps&&e.prevProps.ref&&("function"==typeof e.prevProps.ref?e.prevProps.ref(null):e.prevProps.ref.current&&(e.prevProps.ref.current=null)),!1!==t&&null!=e.prevProps||w(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;x(e,!0),e=n}}(e)}var M=null,L=[],_=null;function I(e){_=e}function F(){return _}function W(e){var t=e,n=new Set,r=new Set;return new Proxy({},{get:function(e,o){if("value"===o){M&&n.add(M);var i=F();return i&&r.add(i),t}return"peek"===o?function(){return t}:"update"===o?function(){n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})}:void 0},set:function(e,o,i){return"value"===o&&(y(t)&&y(i)&&t===i||(t=i,n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})),!0)}})}function D(e){var t=W(e());return H(function(){t.value=e()}),t}function H(e){var t=new Set,n=!1;return function t(){n||(n=!0,M=t,e(),M=null,n=!1)}(),function(){t.clear()}}function U(e){L.push(e),1===L.length&&Promise.resolve().then(V)}function V(){for(;L.length;){var e=L.shift();e&&e()}}var q={mixin:{},globalCSS:[]};function B(e,t){customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):(Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.define(e,t))}var $=0,J=new WeakMap,Q=/*#__PURE__*/function(e){var t,r;function o(){var t;if((t=e.call(this)||this).elementId=void 0,t.isInstalled=void 0,t.inject=void 0,t.injection=void 0,t.renderRoot=void 0,t.rootElement=void 0,t.updateQueued=!1,t.constructor.defaultProps||(t.constructor.defaultProps={}),t.constructor.propTypes||(t.constructor.propTypes={}),t.constructor.reflectProps||(t.constructor.reflectProps={}),t.constructor.props)for(var n in t.constructor.props){var r=t.constructor.props[n];t.constructor.defaultProps[n]=r.default,t.constructor.propTypes[n]=r.type,t.constructor.reflectProps[n]=r.reflect}return t.props=Object.assign({},t.constructor.defaultProps,t.props),t.elementId=$++,t.isInstalled=!1,t.rootElement=null,t}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r),o.define=function(e){B(e,this)};var s=o.prototype;return s.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];r.changed&&r.changed.call(this,n,t)}},s.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!q.mixin.store;)this.store=t.store,t=t.parentNode||t.host;if(this.inject){var n;for(this.injection={},t=this.parentNode;t&&!n;)n=t.provide,t=t.parentNode||t.host;n&&this.inject.forEach(function(t){e.injection[t]=n[t]})}var r=function(t){Object.defineProperty(e,t,{get:function(){return q.mixin[t]}})};for(var o in q.mixin)r(o)},s.createRenderRoot=function(){if(this.constructor.isLightDOM)return this;if(this.shadowRoot){for(var e;e=this.shadowRoot.firstChild;)this.shadowRoot.removeChild(e);return this.shadowRoot}return this.attachShadow({mode:"open"})},s.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||J.has(this.constructor))this.renderRoot.adoptedStyleSheets=J.get(this.constructor);else{var e=this.constructor.css;if(e){var t=[];t="string"==typeof e?[h(e)]:p(e)?e.map(function(e){return"string"==typeof e?h(e):e.default&&"string"==typeof e.default?h(e.default):e}):e.default&&"string"==typeof e.default?[h(e.default)]:[e],t=[].concat(t,q.globalCSS),this.renderRoot.adoptedStyleSheets=t,J.set(this.constructor,t)}}},s.appendStyleVNode=function(e){if(this.props.css&&e){var t={nodeName:"style",attributes:{},children:[this.props.css]};e.push?e.push(t):e.children.push(t)}},s.connectedCallback=function(){var e=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),I(this),this.beforeRender(),this.fire("beforeRender",this);var t,n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),I(null),this.rootElement=T(null,n,null,this,!1),p(this.rootElement)?this.rootElement.forEach(function(t){var n;null==(n=e.renderRoot)||n.appendChild(t)}):this.rootElement&&(null==(t=this.renderRoot)||t.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0},s.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1},s.update=function(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),I(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),I(null),this.rootElement=T(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)},s.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},s.updateProps=function(e){var t=this;Object.keys(e).forEach(function(n){t.props[n]=e[n],t.prevProps&&(t.prevProps[n]=e[n])}),this.update()},s.updateSelf=function(){this.update(!0)},s.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},s.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},s.attrsToProps=function(){if(!this.props.ignoreAttrs){var e=this;e.props.css=e.getAttribute("css");var t=this.constructor.propTypes;t&&Object.keys(t).forEach(function(n){var r=p(t[n])?t[n]:[t[n]],o=e.getAttribute(n.replace(d,"-$1").toLowerCase());if(null!==o)for(var i=0;i<r.length;i++){var s=!1;switch(r[i]){case String:e.props[n]=o,s=!0;break;case Number:e.props[n]=Number(o),s=!0;break;case Boolean:e.props[n]="false"!==o&&"0"!==o,s=!0;break;case Array:case Object:try{e.props[n]=JSON.parse(o)}catch(e){console.warn("The "+n+" object prop does not comply with the JSON specification, the incorrect string is ["+o+"].")}s=!0}if(s)break}else e.props[n]=e.constructor.defaultProps&&e.constructor.defaultProps.hasOwnProperty(n)?e.constructor.defaultProps[n]:null})}},s.fire=function(e,t){var n=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];n?n(new CustomEvent(e,{detail:t})):this.dispatchEvent(new CustomEvent(e,{detail:t}))},s.install=function(){},s.installed=function(){},s.uninstall=function(){},s.beforeUpdate=function(){},s.updated=function(){},s.beforeRender=function(){},s.rendered=function(e){},s.receiveProps=function(){},n(o,null,[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}]),o}(/*#__PURE__*/c(HTMLElement));Q.is="Component",Q.defaultProps=void 0,Q.reflectProps=void 0,Q.propTypes=void 0,Q.css=void 0,Q.isLightDOM=void 0,Q.noSlot=void 0;var z={}.hasOwnProperty;function G(){for(var e=[].slice.call(arguments),t=[],n=0;n<e.length;n++){var r=e[n];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var i=G.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)z.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var Z=/*#__PURE__*/function(){function e(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=W(e)}var t=e.prototype;return t.peek=function(){return this._signal.peek()},t.computed=function(e){return D(e)},t.effect=function(e){return H(e)},t.batch=function(e){return U(e)},t.setActiveComponent=function(e){return I(e)},t.getActiveComponent=function(){return F()},t.update=function(e){e&&e(this._value),this.value=this.value},n(e,[{key:"value",get:function(){return this._signal.value},set:function(e){this._signal.value=e}}]),e}(),K={};e.Component=Q,e.Signal=Z,e.WeElement=Q,e.batch=U,e.bind=function(e,t,n){return{configurable:!0,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}},e.classNames=G,e.cloneElement=function(e,t){var n=[].slice.call(arguments,2);return m(e.nodeName,r({},e.attributes,t),n.length>0?n.flat():e.children)},e.computed=D,e.createElement=m,e.createRef=function(){return{}},e.css=function(e){var t=[].slice.call(arguments,1),n="";if(e.forEach(function(e,r){if(void 0!==t[r]&&"string"!=typeof t[r]&&"number"!=typeof t[r])throw new Error("Unsupported value in CSS: "+t[r]);n+=e+(t[r]||"")}),K[n])return K[n];var r=new CSSStyleSheet;return r.replaceSync(n),K[n]=r,r},e.define=B,e.defineElement=B,e.effect=H,e.extractClass=function(e){var t=[].slice.call(arguments,1);if(e.class?(t.unshift(e.class),delete e.class):e.className&&(t.unshift(e.className),delete e.className),t.length>0)return{class:G.apply(void 0,t)}},e.getActiveComponent=F,e.h=m,e.mixin=function(e){Object.assign(q.mixin,e)},e.registerDirective=function(e,t){S["o-"+e]=t},e.render=function(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),T(null,e,t,null,!1)},e.setActiveComponent=I,e.signal=W,e.signalObject=function(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=W(t[1]),e},{})},e.tag=function(e){return function(t){B(e,t)}},e.version="7.5.7"});
if(typeof window!=='undefined'){window.omi=window.Omi};
//# sourceMappingURL=omi.umd.js.map
{
"name": "omi",
"version": "7.5.6",
"version": "7.5.7",
"scripts": {

@@ -5,0 +5,0 @@ "start": "vite",

@@ -5,3 +5,3 @@ <p align="center"><img src="https://omijs.github.io/home/assets/logo.svg" alt="omi" width="100"/></p>

- 📶 **Signal**-driven reactive programming
- 🐲 [OMI Form](https://omi.cdn-go.cn/form/latest/docs/) & [OMI Form Playground](https://omi.cdn-go.cn/form/latest/play/)
- 🐲 [OMI Form](https://omi.cdn-go.cn/form/latest/docs/) & [OMI Form Playground](https://omi.cdn-go.cn/form/latest/play/) & [Lucide Omi Icons](https://github.com/omijs/lucide-omi)
- 🎉 [OMIU Preview](https://omi.cdn-go.cn/omiu/latest/) in progress & [OMIU Source Code](https://github.com/Tencent/omi/tree/master/packages/omiu)

@@ -27,3 +27,3 @@ - ⚡ **Tiny** size, **Fast** performance

@tag('counter-demo')
class CounterDemo extends Component {
export class CounterDemo extends Component {
static css = 'span { color: red; }'

@@ -88,4 +88,5 @@

- [`omi`](https://github.com/Tencent/omi/tree/master/packages/omi) - Implementation of omi framework.
- [`omiu`](https://github.com/Tencent/omi/tree/master/packages/omiu) - Hope to create the best web components.
- [`omi-form`](https://github.com/Tencent/omi/tree/master/packages/omi-form) - Powerful, simple and cross frameworks form solution.
- [`lucide-omi`](https://github.com/omijs/lucide-omi) - Lucide icon collection for omi.
- [`omiu`](https://github.com/Tencent/omi/tree/master/packages/omiu) - Hope to create the best web components. For example, the powerful [vchart](https://visactor.io/vchart) and [vtable](https://visactor.io/vtable)
- [`omi-router`](https://github.com/Tencent/omi/tree/master/packages/omi-router) - Create SPA of omi framework.

@@ -104,3 +105,2 @@ - [`omi-cli`](https://github.com/omijs/cli) - To quickly create an Omi + Vite + TS/JS project.

- [`omi-suspense`](https://github.com/Tencent/omi/tree/master/packages/omi-suspense) - Handling asynchronous dependencies.
- [`tdesign-icons-omi`](https://github.com/omijs/tdesign-icons) - Cross framework icon collection based on tdesign.
- Directives

@@ -405,3 +405,3 @@ - [`omi-transition`](https://github.com/Tencent/omi/tree/master/packages/omi-transition) - Applying animations when an component is entering and leaving the DOM.

Using in Vue3:
### Using in Vue3

@@ -444,4 +444,54 @@ ```vue

If you `fire` the `count-change` in an Omi component:
```ts
this.fire('count-change', this.state.count)
```
To use the component and listen for events in Vue:
```html
<my-counter @count-change="change" :count="count" />
```
### Using in React
```tsx
import { useState, useRef, useEffect } from 'react'
import useEventListener from '@use-it/event-listener'
import './my-counter'
function App() {
const [count, setCount] = useState(100)
const myCounterRef = useRef(null)
useEffect(() => {
const counter = myCounterRef.current
if (counter) {
const handleChange = (evt) => {
setCount(evt.detail)
}
counter.addEventListener('change', handleChange)
return () => {
counter.removeEventListener('change', handleChange)
}
}
}, [])
return (
<>
<h1>Omi + React</h1>
<my-counter count={count} ref={myCounterRef}></my-counter>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
</div>
</>
)
}
export default App
```
## Contributors

@@ -448,0 +498,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

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