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.0 to 7.5.1

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=M.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=x(this);y.get(this).observe(e,d),m.get(this).length>0&&L(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&&L(t)},window.CSSStyleSheet=R,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=j(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&&(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 M(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 x(e){var t=f.get(e);return t instanceof Document?t.body:t}function L(e){var t=document.createDocumentFragment(),n=m.get(e),o=y.get(e),r=x(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 M(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)&&L(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}}}const p=[];function d(e,t,o){let r,s,i,l=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},i=arguments.length;i-- >2;)p.push(arguments[i]);for(null!=t.children&&(p.length||p.push(...t.children),delete t.children);p.length;)if((r=p.pop())&&void 0!==r.pop)for(i=r.length;i--;)p.push(r[i]);else"boolean"==typeof r&&(r=null),(s="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(s=!1)),s&&c?l[l.length-1]+=r:0===l.length?l=[r]:l.push(r),c=s;if(e===n)return l;if("function"==typeof e){if(!e.tagName)return e(t);e=e.tagName}return{nodeName:e,children:l,attributes:t,key:t.key}}function h(t,n,...o){return d(t.nodeName,e({},t.attributes,n),o.length>0?o:t.children)}d.f=n;const f={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},m=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,y={};function v(e,t){y["o-"+e]=t}function g(e){let t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,r,s){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(()=>{var n;null==(n=y[t])||n.call(y,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||w(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||w(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=(f[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 w(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||m.test(t)?n.toString():n+"px"}let E=0,C=!1,N=!1,P=!1;function O(e,t,n,o,s){if(!e&&!t)return null;let i;var l;return E++||(C=null!=n&&void 0!==n.ownerSVGElement,P=!1),r(t)?n?(j(n,t,P,o,s),i=n.childNodes):(i=[],t.forEach((t,n)=>{let r=R(0===n?e:null,t,o,s);i.push(r)})):(r(e)||e instanceof NodeList?e.forEach((e,n)=>{0===n?i=R(e,t,o,s):T(e,!1)}):i=R(e,t,o,s),n&&(null==(l=i)?void 0:l.parentNode)!==n&&n.appendChild(i)),--E||(P=!1),i}function R(e,n,o,r){e&&n&&e.props&&(e.props.children=n.children);let s=e,i=C,c=N;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)),T(e,!0))),s&&(s.prevProps={}),s;let a=n.nodeName;var p;if(N="foreignObject"===a,C="svg"===a||!N&&C,a=String(a),(!e||!l(e,a))&&(s=function(e,t){let n=N||C?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)),T(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!P&&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||j(s,m,P||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]||(b(e,i,o[i],o[i]=void 0,N||C),c&&delete e.props[i]);for(i in n)if(c&&"object"==typeof n[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&b(e,i,o[i],o[i]=n[i],N||C);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(b(e,i,o[i],n[i],N||C),-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),C=i,N=c,s}function j(e,t,n,o,r){let s,i,c,u,a,p=e.childNodes,d=[],h={},f=0,m=0,y=p.length,v=0,b=t?t.length:0;if(0!==y)for(let e=0;e<y;e++){var S;let t=p[e],o=t.prevProps,r=b&&o?o.key:null;null!=r?(f++,h[r]=t):(o||(void 0!==t.splitText?!n||(null==(S=t.nodeValue)?void 0:S.trim()):n))&&(d[v++]=t)}if(0!==b)for(let n=0;n<b;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<v)for(s=m;s<v;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===v-1&&v--,s===m&&m++;break}}a=R(a,u,o,r),c=p[n],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?g(c):e.insertBefore(a,c))}var w,E;if(f)for(let e in h)void 0!==h[e]&&T(h[e],!1);for(;m<=v;)void 0!==(a=d[v--])&&T(a,!1)}function T(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||g(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){let t=e.previousSibling;T(e,!0),e=t}}(e)}let k=null,x=[],L=null;function M(e){L=e}function A(){return L}function I(e){let t=e;const n=new Set,o=new Set;return new Proxy({},{get(e,r){if("value"===r){k&&n.add(k);const e=A();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 _(e){const t=I(e());return F(()=>{t.value=e()}),t}function F(e){const t=new Set;let n=!1;const o=()=>{n||(n=!0,k=o,e(),k=null,n=!1)};return o(),()=>{t.clear()}}function W(e){x.push(e),1===x.length&&Promise.resolve().then(H)}function H(){for(;x.length;){const e=x.shift();e&&e()}}function D(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]=I(n),e),{})}const U={mixin:{}};function V(e){Object.assign(U.mixin,e)}function $(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 q(e){return function(t){$(e,t)}}let B=0;const J=new WeakMap;class Q extends HTMLElement{static define(e){$(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=B++,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&&!U.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 U.mixin)Object.defineProperty(this,e,{get:()=>U.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||J.has(this.constructor))this.renderRoot.adoptedStyleSheets=J.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,J.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(),M(this),this.beforeRender(),this.fire("beforeRender",this);const e=this.render(this.props,this.store);var t;this.appendStyleVNode(e),this.rendered(e),M(null),this.rootElement=O(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(),M(this),this.beforeRender(),this.fire("beforeRender",this);const t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),M(null),this.rootElement=O(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 z(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),O(null,e,t,null,!1)}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;const G={}.hasOwnProperty;function Z(...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=Z(...o);e&&t.push(e)}else if("object"===r)for(const e in o)G.call(o,e)&&o[e]&&t.push(e)}return t.join(" ")}function K(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:Z(...t)}}class X{constructor(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=I(e)}get value(){return this._signal.value}set value(e){this._signal.value=e}peek(){return this._signal.peek()}computed(e){return _(e)}effect(e){return F(e)}batch(e){return W(e)}setActiveComponent(e){return M(e)}getActiveComponent(){return A()}update(e){e&&e(this._value),this.value=this.value}}let Y={};function ee(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]||"")}),Y[n])return Y[n];{const e=new CSSStyleSheet;return e.replaceSync(n),Y[n]=e,e}}const te="7.5.0";export{Q as Component,X as Signal,Q as WeElement,W as batch,a as bind,Z as classNames,h as cloneElement,_ as computed,d as createElement,c as createRef,ee as css,$ as define,$ as defineElement,F as effect,K as extractClass,A as getActiveComponent,d as h,V as mixin,v as registerDirective,z as render,M as setActiveComponent,I as signal,D as signalObject,q as tag,te 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=M.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=x(this);y.get(this).observe(e,d),m.get(this).length>0&&L(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&&L(t)},window.CSSStyleSheet=R,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=j(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&&(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 M(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 x(e){var t=f.get(e);return t instanceof Document?t.body:t}function L(e){var t=document.createDocumentFragment(),n=m.get(e),o=y.get(e),r=x(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 M(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)&&L(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}}}const p=[];function d(e,t,o){let r,s,i,l=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},i=arguments.length;i-- >2;)p.push(arguments[i]);for(null!=t.children&&(p.length||p.push(...t.children),delete t.children);p.length;)if((r=p.pop())&&void 0!==r.pop)for(i=r.length;i--;)p.push(r[i]);else"boolean"==typeof r&&(r=null),(s="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(s=!1)),s&&c?l[l.length-1]+=r:0===l.length?l=[r]:l.push(r),c=s;if(e===n)return l;if("function"==typeof e){if(!e.tagName)return e(t,l);e=e.tagName}return{nodeName:e,children:l,attributes:t,key:t.key}}function h(t,n,...o){return d(t.nodeName,e({},t.attributes,n),o.length>0?o:t.children)}d.f=n;const f={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},m=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,y={};function v(e,t){y["o-"+e]=t}function g(e){let t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,r,s){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(()=>{var n;null==(n=y[t])||n.call(y,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||w(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||w(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=(f[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 w(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||m.test(t)?n.toString():n+"px"}let E=0,C=!1,N=!1,P=!1;function O(e,t,n,o,s){if(!e&&!t)return null;let i;var l;return E++||(C=null!=n&&void 0!==n.ownerSVGElement,P=!1),r(t)?n?(j(n,t,P,o,s),i=n.childNodes):(i=[],t.forEach((t,n)=>{let r=R(0===n?e:null,t,o,s);i.push(r)})):(r(e)||e instanceof NodeList?e.forEach((e,n)=>{0===n?i=R(e,t,o,s):T(e,!1)}):i=R(e,t,o,s),n&&(null==(l=i)?void 0:l.parentNode)!==n&&n.appendChild(i)),--E||(P=!1),i}function R(e,n,o,r){e&&n&&e.props&&(e.props.children=n.children);let s=e,i=C,c=N;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)),T(e,!0))),s&&(s.prevProps={}),s;let a=n.nodeName;var p;if(N="foreignObject"===a,C="svg"===a||!N&&C,a=String(a),(!e||!l(e,a))&&(s=function(e,t){let n=N||C?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)),T(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!P&&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||j(s,m,P||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]||(b(e,i,o[i],o[i]=void 0,N||C),c&&delete e.props[i]);for(i in n)if(c&&"object"==typeof n[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&b(e,i,o[i],o[i]=n[i],N||C);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(b(e,i,o[i],n[i],N||C),-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),C=i,N=c,s}function j(e,t,n,o,r){let s,i,c,u,a,p=e.childNodes,d=[],h={},f=0,m=0,y=p.length,v=0,b=t?t.length:0;if(0!==y)for(let e=0;e<y;e++){var S;let t=p[e],o=t.prevProps,r=b&&o?o.key:null;null!=r?(f++,h[r]=t):(o||(void 0!==t.splitText?!n||(null==(S=t.nodeValue)?void 0:S.trim()):n))&&(d[v++]=t)}if(0!==b)for(let n=0;n<b;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<v)for(s=m;s<v;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===v-1&&v--,s===m&&m++;break}}a=R(a,u,o,r),c=p[n],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?g(c):e.insertBefore(a,c))}var w,E;if(f)for(let e in h)void 0!==h[e]&&T(h[e],!1);for(;m<=v;)void 0!==(a=d[v--])&&T(a,!1)}function T(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||g(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){let t=e.previousSibling;T(e,!0),e=t}}(e)}let k=null,x=[],L=null;function M(e){L=e}function A(){return L}function I(e){let t=e;const n=new Set,o=new Set;return new Proxy({},{get(e,r){if("value"===r){k&&n.add(k);const e=A();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 _(e){const t=I(e());return F(()=>{t.value=e()}),t}function F(e){const t=new Set;let n=!1;const o=()=>{n||(n=!0,k=o,e(),k=null,n=!1)};return o(),()=>{t.clear()}}function W(e){x.push(e),1===x.length&&Promise.resolve().then(H)}function H(){for(;x.length;){const e=x.shift();e&&e()}}function D(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]=I(n),e),{})}const U={mixin:{}};function V(e){Object.assign(U.mixin,e)}function $(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 q(e){return function(t){$(e,t)}}let B=0;const J=new WeakMap;class Q extends HTMLElement{static define(e){$(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=B++,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&&!U.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 U.mixin)Object.defineProperty(this,e,{get:()=>U.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||J.has(this.constructor))this.renderRoot.adoptedStyleSheets=J.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,J.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(),M(this),this.beforeRender(),this.fire("beforeRender",this);const e=this.render(this.props,this.store);var t;this.appendStyleVNode(e),this.rendered(e),M(null),this.rootElement=O(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(),M(this),this.beforeRender(),this.fire("beforeRender",this);const t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),M(null),this.rootElement=O(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 z(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),O(null,e,t,null,!1)}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;const G={}.hasOwnProperty;function Z(...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=Z(...o);e&&t.push(e)}else if("object"===r)for(const e in o)G.call(o,e)&&o[e]&&t.push(e)}return t.join(" ")}function K(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:Z(...t)}}class X{constructor(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=I(e)}get value(){return this._signal.value}set value(e){this._signal.value=e}peek(){return this._signal.peek()}computed(e){return _(e)}effect(e){return F(e)}batch(e){return W(e)}setActiveComponent(e){return M(e)}getActiveComponent(){return A()}update(e){e&&e(this._value),this.value=this.value}}let Y={};function ee(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]||"")}),Y[n])return Y[n];{const e=new CSSStyleSheet;return e.replaceSync(n),Y[n]=e,e}}const te="7.5.1";export{Q as Component,X as Signal,Q as WeElement,W as batch,a as bind,Z as classNames,h as cloneElement,_ as computed,d as createElement,c as createRef,ee as css,$ as define,$ as defineElement,F as effect,K as extractClass,A as getActiveComponent,d as h,V as mixin,v as registerDirective,z as render,M as setActiveComponent,I as signal,D as signalObject,q as tag,te 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){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function u(e){return e.children}function l(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function a(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,l=new WeakMap,a=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),l.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=l.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=L.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=x(this);y.get(this).observe(e,p),v.get(this).length>0&&M(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){a.get(e).delete(t),l.set(e,l.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&M(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 a.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),l.set(e,[]),a.set(e,new WeakMap)}function R(e){var t=d.get(e);return t||(t=new L(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 x(e){var t=h.get(e);return t instanceof Document?t.body:t}function M(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=x(e);r.disconnect(),n.forEach(function(n){t.appendChild(P(n,e)||function(e,t){var n=document.createElement("style");return a.get(e).set(t,n),l.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 L(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)&&M(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 f=/\B([A-Z])/g;function p(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function d(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function h(){return{}}function v(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function y(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}}}var m=[];function g(e,t,n){var r,o,i,s=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},i=arguments.length;i-- >2;)m.push(arguments[i]);for(null!=t.children&&(m.length||m.push.apply(m,t.children),delete t.children);m.length;)if((r=m.pop())&&void 0!==r.pop)for(i=r.length;i--;)m.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&c?s[s.length-1]+=r:0===s.length?s=[r]:s.push(r),c=o;if(e===u)return s;if("function"==typeof e){if(!e.tagName)return e(t);e=e.tagName}return{nodeName:e,children:s,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:e.children)}g.f=u;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,x=!1;function M(e,t,n,r,o){return e||t?(R++||(T=null!=n&&void 0!==n.ownerSVGElement,x=!1),a(t)?n?(A(n,t,x,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=L(0===n?e:null,t,r,o);i.push(s)})):(a(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=L(e,t,r,o):_(e,!1)}):i=L(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--R||(x=!1),i):null;var i,s}function L(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=T,u=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 l,a,f,p=t.nodeName;if(k="foreignObject"===p,T="svg"===p||!k&&T,p=String(p),(!e||!d(e,p))&&(a=p,(f=k||T?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,"Component"===(null==(l=(i=f).constructor)?void 0:l.is)&&Object.assign(i.props,t.attributes),e)){for(var h;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(h=e.parentNode)||h.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!x&&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||A(i,m,x||null!=y.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,u=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),u&&delete e.props[i]);for(i in t)if(u&&"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 l=c(i);e.props[l]=n[l]=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 a=c(i);e.props[a]=n[a]=t[i]}else n[i]=t[i];u&&!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=u,i}function A(e,t,n,r,o){var i,s,c,u,l,a,f,p=e.childNodes,h=[],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))&&(h[b++]=C)}if(0!==S)for(var j=0;j<S;j++){if(l=null,u=t[j]){var R=u.key;if(null!=R)y&&void 0!==v[R]&&(l=v[R],v[R]=void 0,y--);else if(m<b)for(i=m;i<b;i++)if(void 0!==h[i]&&(a=s=h[i],"string"==typeof(f=u)||"number"==typeof f?void 0!==a.splitText:d(a,f.nodeName))){l=s,h[i]=void 0,i===b-1&&b--,i===m&&m++;break}}l=L(l,u,r,o),c=p[j],l&&l!==e&&l!==c&&(null==c?e.appendChild(l):l===c.nextSibling?P(c):e.insertBefore(l,c))}if(y)for(var T in v)void 0!==v[T]&&_(v[T],!1);for(;m<=b;)void 0!==(l=h[b--])&&_(l,!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 D(){return W}function U(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=D();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&&(v(t)&&v(i)&&t===i||(t=i,n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})),!0)}})}function V(e){var t=U(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(J)}function J(){for(;F.length;){var e=F.shift();e&&e()}}function Q(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=U(t[1]),e},{})}var $={mixin:{}};function z(e){Object.assign($.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&&!$.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 $.mixin[t]}})};for(var o in $.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?[p(t)]:a(t)?t.map(function(e){return"string"==typeof e?p(e):e.default&&"string"==typeof e.default?p(e.default):e}):t.default&&"string"==typeof t.default?[p(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=M(null,n,null,this,!1),a(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=M(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=a(t[n])?t[n]:[t[n]],o=e.getAttribute(n.replace(f,"-$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),M(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=U(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 D()},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.0";export{Y as Component,oe as Signal,Y as WeElement,B as batch,y as bind,ne as classNames,b as cloneElement,V as computed,g as createElement,h as createRef,se as css,G as define,G as defineElement,q as effect,re as extractClass,D as getActiveComponent,g as h,z as mixin,C as registerDirective,ee as render,H as setActiveComponent,U as signal,Q 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){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function u(e){return e.children}function l(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function a(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,l=new WeakMap,a=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),l.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=l.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=L.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=x(this);y.get(this).observe(e,p),v.get(this).length>0&&M(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){a.get(e).delete(t),l.set(e,l.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&M(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 a.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),l.set(e,[]),a.set(e,new WeakMap)}function R(e){var t=d.get(e);return t||(t=new L(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 x(e){var t=h.get(e);return t instanceof Document?t.body:t}function M(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=x(e);r.disconnect(),n.forEach(function(n){t.appendChild(P(n,e)||function(e,t){var n=document.createElement("style");return a.get(e).set(t,n),l.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 L(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)&&M(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 f=/\B([A-Z])/g;function p(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function d(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function h(){return{}}function v(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function y(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}}}var m=[];function g(e,t,n){var r,o,i,s=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},i=arguments.length;i-- >2;)m.push(arguments[i]);for(null!=t.children&&(m.length||m.push.apply(m,t.children),delete t.children);m.length;)if((r=m.pop())&&void 0!==r.pop)for(i=r.length;i--;)m.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&c?s[s.length-1]+=r:0===s.length?s=[r]:s.push(r),c=o;if(e===u)return s;if("function"==typeof e){if(!e.tagName)return e(t,s);e=e.tagName}return{nodeName:e,children:s,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:e.children)}g.f=u;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,x=!1;function M(e,t,n,r,o){return e||t?(R++||(T=null!=n&&void 0!==n.ownerSVGElement,x=!1),a(t)?n?(A(n,t,x,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=L(0===n?e:null,t,r,o);i.push(s)})):(a(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=L(e,t,r,o):_(e,!1)}):i=L(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--R||(x=!1),i):null;var i,s}function L(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=T,u=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 l,a,f,p=t.nodeName;if(k="foreignObject"===p,T="svg"===p||!k&&T,p=String(p),(!e||!d(e,p))&&(a=p,(f=k||T?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,"Component"===(null==(l=(i=f).constructor)?void 0:l.is)&&Object.assign(i.props,t.attributes),e)){for(var h;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(h=e.parentNode)||h.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!x&&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||A(i,m,x||null!=y.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,u=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),u&&delete e.props[i]);for(i in t)if(u&&"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 l=c(i);e.props[l]=n[l]=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 a=c(i);e.props[a]=n[a]=t[i]}else n[i]=t[i];u&&!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=u,i}function A(e,t,n,r,o){var i,s,c,u,l,a,f,p=e.childNodes,h=[],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))&&(h[b++]=C)}if(0!==S)for(var j=0;j<S;j++){if(l=null,u=t[j]){var R=u.key;if(null!=R)y&&void 0!==v[R]&&(l=v[R],v[R]=void 0,y--);else if(m<b)for(i=m;i<b;i++)if(void 0!==h[i]&&(a=s=h[i],"string"==typeof(f=u)||"number"==typeof f?void 0!==a.splitText:d(a,f.nodeName))){l=s,h[i]=void 0,i===b-1&&b--,i===m&&m++;break}}l=L(l,u,r,o),c=p[j],l&&l!==e&&l!==c&&(null==c?e.appendChild(l):l===c.nextSibling?P(c):e.insertBefore(l,c))}if(y)for(var T in v)void 0!==v[T]&&_(v[T],!1);for(;m<=b;)void 0!==(l=h[b--])&&_(l,!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 D(){return W}function U(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=D();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&&(v(t)&&v(i)&&t===i||(t=i,n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})),!0)}})}function V(e){var t=U(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(J)}function J(){for(;F.length;){var e=F.shift();e&&e()}}function Q(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=U(t[1]),e},{})}var $={mixin:{}};function z(e){Object.assign($.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&&!$.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 $.mixin[t]}})};for(var o in $.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?[p(t)]:a(t)?t.map(function(e){return"string"==typeof e?p(e):e.default&&"string"==typeof e.default?p(e.default):e}):t.default&&"string"==typeof t.default?[p(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=M(null,n,null,this,!1),a(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=M(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=a(t[n])?t[n]:[t[n]],o=e.getAttribute(n.replace(f,"-$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),M(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=U(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 D()},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.1";export{Y as Component,oe as Signal,Y as WeElement,B as batch,y as bind,ne as classNames,b as cloneElement,V as computed,g as createElement,h as createRef,se as css,G as define,G as defineElement,q as effect,re as extractClass,D as getActiveComponent,g as h,z as mixin,C as registerDirective,ee as render,H as setActiveComponent,U as signal,Q 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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,"symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key))?r:String(r),o)}var r}function n(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(){return o=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},o.apply(this,arguments)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(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 o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&i(r,n.prototype),r},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,r(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){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function l(e){return e.children}function a(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,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,i=Array.prototype.forEach,s=/@import.+?;?$/gm,c=CSSStyleSheet.prototype;c.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},c.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var u=new WeakMap,l=new WeakMap,a=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),l.get(t).forEach(function(e){e.isConnected()&&O(t,P(t,e))})}},r(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,o=u.get(t),r=l.get(t),i=o[e].apply(o,n);return r.forEach(function(o){if(o.isConnected()){var r=P(t,o).sheet;r[e].apply(r,n)}}),i}}),r(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=A.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=x(this);y.get(this).observe(e,p),v.get(this).length>0&&M(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 o,r,i=v.get(t),s=(o=e).filter(function(e,t){return o.indexOf(e)===t});(r=s,i.filter(function(e){return-1===r.indexOf(e)})).forEach(function(e){var n;(n=P(e,t)).parentNode.removeChild(n),function(e,t){a.get(e).delete(t),l.set(e,l.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&M(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 a.get(e).get(t)}function O(e,t){requestAnimationFrame(function(){var n,o;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=u.get(e),o=t.sheet,i.call(n.cssRules,function(e,t){o.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),l.set(e,[]),a.set(e,new WeakMap)}function R(e){var t=d.get(e);return t||(t=new A(e),d.set(e,t)),t}function T(e){r(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),o=void 0;o=n.nextNode();)t(w(o))}function x(e){var t=h.get(e);return t instanceof Document?t.body:t}function M(e){var t=document.createDocumentFragment(),n=v.get(e),o=y.get(e),r=x(e);o.disconnect(),n.forEach(function(n){t.appendChild(P(n,e)||function(e,t){var n=document.createElement("style");return a.get(e).set(t,n),l.get(e).push(t),n}(n,e))}),r.insertBefore(t,null),o.observe(r,p),n.forEach(function(t){O(t,P(t,e))})}function A(t){var n=this;n.sheets=[],h.set(n,t),v.set(n,[]),y.set(n,new MutationObserver(function(t,o){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)&&M(n),e||k(t,function(e){R(e).disconnect()}))})}):o.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(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}var y=[];function m(e,t,n){var o,r,i,s=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},i=arguments.length;i-- >2;)y.push(arguments[i]);for(null!=t.children&&(y.length||y.push.apply(y,t.children),delete t.children);y.length;)if((o=y.pop())&&void 0!==o.pop)for(i=o.length;i--;)y.push(o[i]);else"boolean"==typeof o&&(o=null),(r="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(r=!1)),r&&c?s[s.length-1]+=o:0===s.length?s=[o]:s.push(o),c=r;if(e===l)return s;if("function"==typeof e){if(!e.tagName)return e(t);e=e.tagName}return{nodeName:e,children:s,attributes:t,key:t.key}}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,o,r){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=S[t])||n.call(S,e,o)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)a(n,null),a(o,e);else if("class"!==t||r)if("style"===t)if("string"==typeof o)e.style.cssText=o;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||P(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||P(e.style,t,o[t])}else if("unsafeHTML"===t)o&&(e.innerHTML=o.html||o||"");else if("o"==t[0]&&"n"==t[1])!function(e,t,n,o){var r=t!==(t=t.replace(/Capture$/,"")),i=t.toLowerCase();t=(g[i]||i in e?i:t).slice(2),n?o||e.addEventListener(t,C,r):e.removeEventListener(t,C,r),(e._listeners||(e._listeners={}))[t]=n}(e,t,o,n);else if("INPUT"===e.nodeName&&"value"===t)e.value=null==o?"":o;else if("list"!==t&&"type"!==t&&"css"!==t&&!r&&t in e){try{e[t]=null==o?"":o}catch(e){}null!=o&&!1!==o||"spellcheck"==t||e.removeAttribute(t)}else{var i=r&&t!==(t=t.replace(/^xlink:?/,""));if(null==o||!1===o)i?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t);else if("function"!=typeof o)if(i)e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o);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(o):o)}else e.setAttribute(t,o)}else e.className=o||""}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,o,r){return e||t?(O++||(N=null!=n&&void 0!==n.ownerSVGElement,R=!1),f(t)?n?(x(n,t,R,o,r),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=k(0===n?e:null,t,o,r);i.push(s)})):(f(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=k(e,t,o,r):M(e,!1)}):i=k(e,t,o,r),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--O||(R=!1),i):null;var i,s}function k(e,t,n,o){e&&t&&e.props&&(e.props.children=t.children);var r,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==(r=e.parentNode)||r.replaceChild(i,e)),M(e,!0))),i&&(i.prevProps={}),i;var l,a,f,p=t.nodeName;if(j="foreignObject"===p,N="svg"===p||!j&&N,p=String(p),(!e||!h(e,p))&&(a=p,(f=j||N?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,"Component"===(null==(l=(i=f).constructor)?void 0:l.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)),M(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!R&&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||x(i,m,R||null!=y.unsafeHTML,n,o)),function(e,t,n,o,r){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 l=u(i);e.props[l]=n[l]=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 a=u(i);e.props[a]=n[a]=t[i]}else n[i]=t[i];c&&!r&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,y,0,o),i.props&&(i.props.children=t.children),N=s,j=c,i}function x(e,t,n,o,r){var i,s,c,u,l,a,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 E=0;E<g;E++){var C,P=p[E],O=P.prevProps,N=S&&O?O.key:null;null!=N?(y++,v[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(l=null,u=t[j]){var R=u.key;if(null!=R)y&&void 0!==v[R]&&(l=v[R],v[R]=void 0,y--);else if(m<b)for(i=m;i<b;i++)if(void 0!==d[i]&&(a=s=d[i],"string"==typeof(f=u)||"number"==typeof f?void 0!==a.splitText:h(a,f.nodeName))){l=s,d[i]=void 0,i===b-1&&b--,i===m&&m++;break}}l=k(l,u,o,r),c=p[j],l&&l!==e&&l!==c&&(null==c?e.appendChild(l):l===c.nextSibling?w(c):e.insertBefore(l,c))}if(y)for(var T in v)void 0!==v[T]&&M(v[T],!1);for(;m<=b;)void 0!==(l=d[b--])&&M(l,!1)}function M(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;M(e,!0),e=n}}(e)}var A=null,L=[],_=null;function I(e){_=e}function F(){return _}function W(e){var t=e,n=new Set,o=new Set;return new Proxy({},{get:function(e,r){if("value"===r){A&&n.add(A);var i=F();return i&&o.add(i),t}return"peek"===r?function(){return t}:"update"===r?function(){n.forEach(function(e){return e()}),o.forEach(function(e){return e.queuedUpdate()})}:void 0},set:function(e,r,i){return"value"===r&&(v(t)&&v(i)&&t===i||(t=i,n.forEach(function(e){return e()}),o.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,A=t,e(),A=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 J=0,Q=new WeakMap,$=/*#__PURE__*/function(e){var t,o;function r(){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 o=t.constructor.props[n];t.constructor.defaultProps[n]=o.default,t.constructor.propTypes[n]=o.type,t.constructor.reflectProps[n]=o.reflect}return t.props=Object.assign({},t.constructor.defaultProps,t.props),t.elementId=J++,t.isInstalled=!1,t.rootElement=null,t}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,i(t,o),r.define=function(e){B(e,this)};var s=r.prototype;return s.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var o=this.constructor.props[e];o.changed&&o.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 o=function(t){Object.defineProperty(e,t,{get:function(){return q.mixin[t]}})};for(var r in q.mixin)o(r)},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||Q.has(this.constructor))this.renderRoot.adoptedStyleSheets=Q.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,Q.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),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(),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 o=f(t[n])?t[n]:[t[n]],r=e.getAttribute(n.replace(p,"-$1").toLowerCase());if(null!==r)for(var i=0;i<o.length;i++){var s=!1;switch(o[i]){case String:e.props[n]=r,s=!0;break;case Number:e.props[n]=Number(r),s=!0;break;case Boolean:e.props[n]="false"!==r&&"0"!==r,s=!0;break;case Array:case Object:try{e.props[n]=JSON.parse(r)}catch(e){console.warn("The "+n+" object prop does not comply with the JSON specification, the incorrect string is ["+r+"].")}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(r,null,[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}]),r}(/*#__PURE__*/c(HTMLElement));$.is="Component",$.defaultProps=void 0,$.reflectProps=void 0,$.propTypes=void 0,$.css=void 0,$.isLightDOM=void 0,$.noSlot=void 0;var z={}.hasOwnProperty;function G(){for(var e=[].slice.call(arguments),t=[],n=0;n<e.length;n++){var o=e[n];if(o){var r=typeof o;if("string"===r||"number"===r)t.push(o);else if(Array.isArray(o)&&o.length){var i=G.apply(void 0,o);i&&t.push(i)}else if("object"===r)for(var s in o)z.call(o,s)&&o[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=$,e.Signal=Z,e.WeElement=$,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,o({},e.attributes,t),n.length>0?n: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,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]||"")}),K[n])return K[n];var o=new CSSStyleSheet;return o.replaceSync(n),K[n]=o,o},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.0"});
!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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,"symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key))?r:String(r),o)}var r}function n(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(){return o=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},o.apply(this,arguments)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(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 o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&i(r,n.prototype),r},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,r(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){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function l(e){return e.children}function a(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,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,i=Array.prototype.forEach,s=/@import.+?;?$/gm,c=CSSStyleSheet.prototype;c.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},c.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var u=new WeakMap,l=new WeakMap,a=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),l.get(t).forEach(function(e){e.isConnected()&&O(t,P(t,e))})}},r(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,o=u.get(t),r=l.get(t),i=o[e].apply(o,n);return r.forEach(function(o){if(o.isConnected()){var r=P(t,o).sheet;r[e].apply(r,n)}}),i}}),r(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=A.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=x(this);y.get(this).observe(e,p),v.get(this).length>0&&M(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 o,r,i=v.get(t),s=(o=e).filter(function(e,t){return o.indexOf(e)===t});(r=s,i.filter(function(e){return-1===r.indexOf(e)})).forEach(function(e){var n;(n=P(e,t)).parentNode.removeChild(n),function(e,t){a.get(e).delete(t),l.set(e,l.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&M(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 a.get(e).get(t)}function O(e,t){requestAnimationFrame(function(){var n,o;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=u.get(e),o=t.sheet,i.call(n.cssRules,function(e,t){o.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),l.set(e,[]),a.set(e,new WeakMap)}function R(e){var t=d.get(e);return t||(t=new A(e),d.set(e,t)),t}function T(e){r(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),o=void 0;o=n.nextNode();)t(w(o))}function x(e){var t=h.get(e);return t instanceof Document?t.body:t}function M(e){var t=document.createDocumentFragment(),n=v.get(e),o=y.get(e),r=x(e);o.disconnect(),n.forEach(function(n){t.appendChild(P(n,e)||function(e,t){var n=document.createElement("style");return a.get(e).set(t,n),l.get(e).push(t),n}(n,e))}),r.insertBefore(t,null),o.observe(r,p),n.forEach(function(t){O(t,P(t,e))})}function A(t){var n=this;n.sheets=[],h.set(n,t),v.set(n,[]),y.set(n,new MutationObserver(function(t,o){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)&&M(n),e||k(t,function(e){R(e).disconnect()}))})}):o.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(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}var y=[];function m(e,t,n){var o,r,i,s=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},i=arguments.length;i-- >2;)y.push(arguments[i]);for(null!=t.children&&(y.length||y.push.apply(y,t.children),delete t.children);y.length;)if((o=y.pop())&&void 0!==o.pop)for(i=o.length;i--;)y.push(o[i]);else"boolean"==typeof o&&(o=null),(r="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(r=!1)),r&&c?s[s.length-1]+=o:0===s.length?s=[o]:s.push(o),c=r;if(e===l)return s;if("function"==typeof e){if(!e.tagName)return e(t,s);e=e.tagName}return{nodeName:e,children:s,attributes:t,key:t.key}}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,o,r){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=S[t])||n.call(S,e,o)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)a(n,null),a(o,e);else if("class"!==t||r)if("style"===t)if("string"==typeof o)e.style.cssText=o;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||P(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||P(e.style,t,o[t])}else if("unsafeHTML"===t)o&&(e.innerHTML=o.html||o||"");else if("o"==t[0]&&"n"==t[1])!function(e,t,n,o){var r=t!==(t=t.replace(/Capture$/,"")),i=t.toLowerCase();t=(g[i]||i in e?i:t).slice(2),n?o||e.addEventListener(t,C,r):e.removeEventListener(t,C,r),(e._listeners||(e._listeners={}))[t]=n}(e,t,o,n);else if("INPUT"===e.nodeName&&"value"===t)e.value=null==o?"":o;else if("list"!==t&&"type"!==t&&"css"!==t&&!r&&t in e){try{e[t]=null==o?"":o}catch(e){}null!=o&&!1!==o||"spellcheck"==t||e.removeAttribute(t)}else{var i=r&&t!==(t=t.replace(/^xlink:?/,""));if(null==o||!1===o)i?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t);else if("function"!=typeof o)if(i)e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o);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(o):o)}else e.setAttribute(t,o)}else e.className=o||""}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,o,r){return e||t?(O++||(N=null!=n&&void 0!==n.ownerSVGElement,R=!1),f(t)?n?(x(n,t,R,o,r),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=k(0===n?e:null,t,o,r);i.push(s)})):(f(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=k(e,t,o,r):M(e,!1)}):i=k(e,t,o,r),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--O||(R=!1),i):null;var i,s}function k(e,t,n,o){e&&t&&e.props&&(e.props.children=t.children);var r,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==(r=e.parentNode)||r.replaceChild(i,e)),M(e,!0))),i&&(i.prevProps={}),i;var l,a,f,p=t.nodeName;if(j="foreignObject"===p,N="svg"===p||!j&&N,p=String(p),(!e||!h(e,p))&&(a=p,(f=j||N?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,"Component"===(null==(l=(i=f).constructor)?void 0:l.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)),M(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!R&&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||x(i,m,R||null!=y.unsafeHTML,n,o)),function(e,t,n,o,r){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 l=u(i);e.props[l]=n[l]=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 a=u(i);e.props[a]=n[a]=t[i]}else n[i]=t[i];c&&!r&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,y,0,o),i.props&&(i.props.children=t.children),N=s,j=c,i}function x(e,t,n,o,r){var i,s,c,u,l,a,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 E=0;E<g;E++){var C,P=p[E],O=P.prevProps,N=S&&O?O.key:null;null!=N?(y++,v[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(l=null,u=t[j]){var R=u.key;if(null!=R)y&&void 0!==v[R]&&(l=v[R],v[R]=void 0,y--);else if(m<b)for(i=m;i<b;i++)if(void 0!==d[i]&&(a=s=d[i],"string"==typeof(f=u)||"number"==typeof f?void 0!==a.splitText:h(a,f.nodeName))){l=s,d[i]=void 0,i===b-1&&b--,i===m&&m++;break}}l=k(l,u,o,r),c=p[j],l&&l!==e&&l!==c&&(null==c?e.appendChild(l):l===c.nextSibling?w(c):e.insertBefore(l,c))}if(y)for(var T in v)void 0!==v[T]&&M(v[T],!1);for(;m<=b;)void 0!==(l=d[b--])&&M(l,!1)}function M(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;M(e,!0),e=n}}(e)}var A=null,L=[],_=null;function I(e){_=e}function F(){return _}function W(e){var t=e,n=new Set,o=new Set;return new Proxy({},{get:function(e,r){if("value"===r){A&&n.add(A);var i=F();return i&&o.add(i),t}return"peek"===r?function(){return t}:"update"===r?function(){n.forEach(function(e){return e()}),o.forEach(function(e){return e.queuedUpdate()})}:void 0},set:function(e,r,i){return"value"===r&&(v(t)&&v(i)&&t===i||(t=i,n.forEach(function(e){return e()}),o.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,A=t,e(),A=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 J=0,Q=new WeakMap,$=/*#__PURE__*/function(e){var t,o;function r(){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 o=t.constructor.props[n];t.constructor.defaultProps[n]=o.default,t.constructor.propTypes[n]=o.type,t.constructor.reflectProps[n]=o.reflect}return t.props=Object.assign({},t.constructor.defaultProps,t.props),t.elementId=J++,t.isInstalled=!1,t.rootElement=null,t}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,i(t,o),r.define=function(e){B(e,this)};var s=r.prototype;return s.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var o=this.constructor.props[e];o.changed&&o.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 o=function(t){Object.defineProperty(e,t,{get:function(){return q.mixin[t]}})};for(var r in q.mixin)o(r)},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||Q.has(this.constructor))this.renderRoot.adoptedStyleSheets=Q.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,Q.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),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(),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 o=f(t[n])?t[n]:[t[n]],r=e.getAttribute(n.replace(p,"-$1").toLowerCase());if(null!==r)for(var i=0;i<o.length;i++){var s=!1;switch(o[i]){case String:e.props[n]=r,s=!0;break;case Number:e.props[n]=Number(r),s=!0;break;case Boolean:e.props[n]="false"!==r&&"0"!==r,s=!0;break;case Array:case Object:try{e.props[n]=JSON.parse(r)}catch(e){console.warn("The "+n+" object prop does not comply with the JSON specification, the incorrect string is ["+r+"].")}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(r,null,[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}]),r}(/*#__PURE__*/c(HTMLElement));$.is="Component",$.defaultProps=void 0,$.reflectProps=void 0,$.propTypes=void 0,$.css=void 0,$.isLightDOM=void 0,$.noSlot=void 0;var z={}.hasOwnProperty;function G(){for(var e=[].slice.call(arguments),t=[],n=0;n<e.length;n++){var o=e[n];if(o){var r=typeof o;if("string"===r||"number"===r)t.push(o);else if(Array.isArray(o)&&o.length){var i=G.apply(void 0,o);i&&t.push(i)}else if("object"===r)for(var s in o)z.call(o,s)&&o[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=$,e.Signal=Z,e.WeElement=$,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,o({},e.attributes,t),n.length>0?n: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,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]||"")}),K[n])return K[n];var o=new CSSStyleSheet;return o.replaceSync(n),K[n]=o,o},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.1"});
if(typeof window!=='undefined'){window.omi=window.Omi};
//# sourceMappingURL=omi.umd.js.map
{
"name": "omi",
"version": "7.5.0",
"version": "7.5.1",
"scripts": {

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

@@ -5,6 +5,6 @@ <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/)
- 🎉 [OMIU Preview](https://omi.cdn-go.cn/omiu/latest/) in progress & [OMIU Source Code](https://github.com/Tencent/omi/tree/master/packages/omiu)
- 🐲 [OMI Form](https://omi.cdn-go.cn/form/latest/docs/) & [OMI Form Playground](https://omi.cdn-go.cn/form/latest/play/)
- ⚡ **Tiny** size, **Fast** performance
- 🌐 Everything you need: **Web Components**, **JSX**, Router, Suspense, Directive, Tailwindcss...
- 🌐 Everything you need: **Web Components**, **JSX**, Function Components, Router, Suspense, Directive, Tailwindcss...
- 💯 Both **object** oriented programming(OOP) and **data** oriented programming(DOP) are supported

@@ -11,0 +11,0 @@ - 💒 Harness **Constructable Stylesheets** to easily manage and share styles

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