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.4.4 to 7.4.5

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,i=Array.prototype.forEach,s=/@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(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),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),i=o[e].apply(o,n);return r.forEach(function(o){if(o.isConnected()){var r=N(t,o).sheet;r[e].apply(r,n)}}),i}}),r(R,Symbol.hasInstance,{configurable:!0,value:E});var d={childList:!0,subtree:!0},f=new WeakMap,h=new WeakMap,m=new WeakMap,y=new WeakMap,v=M.prototype;if(v.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)},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=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=m.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=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,s),t.isConnected()&&s.length>0&&L(t)},window.CSSStyleSheet=R,T(Document),"ShadowRoot"in window){T(ShadowRoot);var g=Element.prototype,S=g.attachShadow;g.attachShadow=function(e){var t=S.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var b=j(document);b.isConnected()?b.connect():document.addEventListener("DOMContentLoaded",b.connect.bind(b))}function w(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(p.isPrototypeOf(e)||l.isPrototypeOf(e))}function C(e){return"object"==typeof e&&l.isPrototypeOf(e)}function N(e,t){return a.get(e).get(t)}function P(e,t){requestAnimationFrame(function(){var n,o;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=c.get(e),o=t.sheet,i.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=f.get(e);return t||(t=new M(e),f.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=h.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=[],h.set(n,t),m.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){j(e).connect()})}),i.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 i=/\B([A-Z])/g;function s(e){const t=new CSSStyleSheet;return t.replaceSync(e),t}function l(e,t){if("string"==typeof t||"number"==typeof t)return void 0!==e.splitText;const n=t.nodeName;return c(e,"string"!=typeof n?n.tagName:n)}function c(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function u(){return{}}function a(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function p(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 d=[];function f(e,t,o){let r,i,s,l=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},s=arguments.length;s-- >2;)d.push(arguments[s]);for(null!=t.children&&(d.length||d.push(...t.children),delete t.children);d.length;)if((r=d.pop())&&void 0!==r.pop)for(s=r.length;s--;)d.push(r[s]);else"boolean"==typeof r&&(r=null),(i="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(i=!1)),i&&c?l[l.length-1]+=r:0===l.length?l=[r]:l.push(r),c=i;return e===n?l:{nodeName:e,children:l,attributes:t,key:t.key}}function h(t,n,...o){return f(t.nodeName,e({},t.attributes,n),o.length>0?o:t.children)}f.f=n;const m={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},y=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,v={};function g(e,t){v["o-"+e]=t}function S(e){let t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,r,i){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(()=>{var n;null==(n=v[t])||n.call(v,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)o(n,null),o(r,e);else if("class"!==t||i)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||E(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||E(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$/,"")),i=t.toLowerCase();t=(m[i]||i in e?i:t).slice(2),n?o||e.addEventListener(t,w,r):e.removeEventListener(t,w,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&&!i&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{let n=i&&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 s;const n=null==(s=e.constructor.reflectProps)?void 0:s[t];n&&e.setAttribute(t,"function"==typeof n?n(r):r)}else e.setAttribute(t,r)}else e.className=r||""}function w(e){return this._listeners[e.type](e)}function E(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||y.test(t)?n.toString():n+"px"}let C=0,N=!1,P=!1,O=!1;function R(e,t,n,o,i){if(!e&&!t)return null;let s;var l;return C++||(N=null!=n&&void 0!==n.ownerSVGElement,O=!1),r(t)?n?(T(n,t,O,o,i),s=n.childNodes):(s=[],t.forEach((t,n)=>{let r=j(0===n?e:null,t,o,i);s.push(r)})):(r(e)||e instanceof NodeList?e.forEach((e,n)=>{0===n?s=j(e,t,o,i):k(e,!1)}):s=j(e,t,o,i),n&&(null==(l=s)?void 0:l.parentNode)!==n&&n.appendChild(s)),--C||(O=!1),s}function j(e,n,o,r){e&&n&&e.props&&(e.props.children=n.children);let i=e,s=N,l=P;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)):(i=document.createTextNode(String(n)),e&&(e.parentNode&&(null==(u=e.parentNode)||u.replaceChild(i,e)),k(e,!0))),i&&(i.prevProps={}),i;let a=n.nodeName;var p;if("string"!=typeof a&&(a=a.tagName),P="foreignObject"===a,N="svg"===a||!P&&N,a=String(a),(!e||!c(e,a))&&(i=function(e,t){let n=P||N?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a),"Component"===(null==(p=i.constructor)?void 0:p.is)&&Object.assign(i.props,n.attributes),e)){for(var d;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(i,e)),k(e,!0)}let f=i.firstChild,h=i.prevProps,m=n.children;if(null==h){h=i.prevProps={};for(let e=i.attributes,t=e.length;t--;)h[e[t].name]=e[t].value}return!O&&m&&1===m.length&&"string"==typeof m[0]&&null!=f&&void 0!==f.splitText&&null==f.nextSibling?f.nodeValue!=m[0]&&(f.nodeValue=m[0]):(m&&m.length||null!=f)&&("Component"==i.constructor.is&&i.constructor.noSlot||T(i,m,O||null!=h.unsafeHTML,o,r)),function(e,n,o,r,i){let s,l,c=e.update;for(s in e.receiveProps&&(l=Object.assign({},o)),o)n&&null!=n[s]||null==o[s]||(b(e,s,o[s],o[s]=void 0,P||N),c&&delete e.props[s]);for(s in n)if(c&&"object"==typeof n[s]&&"ref"!==s){("style"===s||"o"===s[0]&&"-"===s[1])&&b(e,s,o[s],o[s]=n[s],P||N);let r=t(s);e.props[r]=o[r]=n[s]}else if("children"!==s&&(!(s in o)||n[s]!==("value"===s||"checked"===s?e[s]:o[s])))if(b(e,s,o[s],n[s],P||N),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};let r=t(s);e.props[r]=o[r]=n[s]}else o[s]=n[s];c&&!i&&e.parentNode&&!1!==e.receiveProps(e.props,l)&&e.queuedUpdate()}(i,n.attributes,h,0,r),i.props&&(i.props.children=n.children),N=s,P=l,i}function T(e,t,n,o,r){let i,s,c,u,a,p=e.childNodes,d=[],f={},h=0,m=0,y=p.length,v=0,g=t?t.length:0;if(0!==y)for(let e=0;e<y;e++){var b;let t=p[e],o=t.prevProps,r=g&&o?o.key:null;null!=r?(h++,f[r]=t):(o||(void 0!==t.splitText?!n||(null==(b=t.nodeValue)?void 0:b.trim()):n))&&(d[v++]=t)}if(0!==g)for(let n=0;n<g;n++){if(u=t[n],a=null,u){let e=u.key;if(null!=e)h&&void 0!==f[e]&&(a=f[e],f[e]=void 0,h--);else if(m<v)for(i=m;i<v;i++)if(void 0!==d[i]&&l(s=d[i],u)){a=s,d[i]=void 0,i===v-1&&v--,i===m&&m++;break}}a=j(a,u,o,r),c=p[n],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?S(c):e.insertBefore(a,c))}if(h)for(let e in f)void 0!==f[e]&&k(f[e],!1);for(;m<=v;)void 0!==(a=d[v--])&&k(a,!1)}function k(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||S(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){let t=e.previousSibling;k(e,!0),e=t}}(e)}let x=null,L=[],M=null;function A(e){M=e}function I(){return M}function _(e){let t=e;const n=new Set,o=new Set;return new Proxy({},{get(e,r){if("value"===r){x&&n.add(x);const e=I();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,i)=>"value"===r&&(a(t)&&a(i)&&t===i||(t=i,n.forEach(e=>e()),o.forEach(e=>e.queuedUpdate())),!0)})}function F(e){const t=_(e());return W(()=>{t.value=e()}),t}function W(e){const t=new Set;let n=!1;const o=()=>{n||(n=!0,x=o,e(),x=null,n=!1)};return o(),()=>{t.clear()}}function H(e){L.push(e),1===L.length&&Promise.resolve().then(D)}function D(){for(;L.length;){const e=L.shift();e&&e()}}function U(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]=_(n),e),{})}const V={mixin:{}};function $(e){Object.assign(V.mixin,e)}function q(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 B(e){return function(t){q(e,t)}}let J=0;const Q=new WeakMap;class z extends HTMLElement{static define(e){q(e,this)}constructor(){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.props=Object.assign({},this.constructor.defaultProps,this.props),this.elementId=J++,this.isInstalled=!1,this.rootElement=null}injectObject(){let e=this.parentNode;for(;e&&!this.store&&!V.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 V.mixin)Object.defineProperty(this,e,{get:()=>V.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||Q.has(this.constructor))this.renderRoot.adoptedStyleSheets=Q.get(this.constructor);else{const e=this.constructor.css;if(e){let t=[];t="string"==typeof e?[s(e)]:r(e)?e.map(e=>"string"==typeof e?s(e):e.default&&"string"==typeof e.default?s(e.default):e):e.default&&"string"==typeof e.default?[s(e.default)]:[e],this.renderRoot.adoptedStyleSheets=t,Q.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(),A(this),this.beforeRender(),this.fire("beforeRender",this);const e=this.render(this.props,this.store);var t;this.appendStyleVNode(e),this.rendered(e),A(null),this.rootElement=R(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(),A(this),this.beforeRender(),this.fire("beforeRender",this);const t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),A(null),this.rootElement=R(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]],s=e.getAttribute(n.replace(i,"-$1").toLowerCase());if(null!==s)for(let t=0;t<o.length;t++){let r=!1;switch(o[t]){case String:e.props[n]=s,r=!0;break;case Number:e.props[n]=Number(s),r=!0;break;case Boolean:e.props[n]="false"!==s&&"0"!==s,r=!0;break;case Array:case Object:try{e.props[n]=JSON.parse(s)}catch(e){console.warn(`The ${n} object prop does not comply with the JSON specification, the incorrect string is [${s}].`)}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 G(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),R(null,e,t,null,!1)}z.is="Component",z.defaultProps=void 0,z.reflectProps=void 0,z.propTypes=void 0,z.css=void 0,z.isLightDOM=void 0,z.noSlot=void 0;const Z={}.hasOwnProperty;function K(...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=K(...o);e&&t.push(e)}else if("object"===r)for(const e in o)Z.call(o,e)&&o[e]&&t.push(e)}return t.join(" ")}function X(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:K(...t)}}class Y{constructor(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=_(e)}get value(){return this._signal.value}set value(e){this._signal.value=e}peek(){return this._signal.peek()}computed(e){return F(e)}effect(e){return W(e)}batch(e){return H(e)}setActiveComponent(e){return A(e)}getActiveComponent(){return I()}update(e){e&&e(this._value),this.value=this.value}}let ee={};function te(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]||"")}),ee[n])return ee[n];{const e=new CSSStyleSheet;return e.replaceSync(n),ee[n]=e,e}}const ne="7.4.4";export{z as Component,Y as Signal,z as WeElement,H as batch,p as bind,K as classNames,h as cloneElement,F as computed,f as createElement,u as createRef,te as css,q as define,q as defineElement,W as effect,X as extractClass,I as getActiveComponent,f as h,$ as mixin,g as registerDirective,G as render,A as setActiveComponent,_ as signal,U as signalObject,B as tag,ne 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){if("string"==typeof t||"number"==typeof t)return void 0!==e.splitText;const n=t.nodeName;return c(e,"string"!=typeof n?n.tagName:n)}function c(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function u(){return{}}function a(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function p(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 d=[];function h(e,t,o){let r,s,i,l=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},i=arguments.length;i-- >2;)d.push(arguments[i]);for(null!=t.children&&(d.length||d.push(...t.children),delete t.children);d.length;)if((r=d.pop())&&void 0!==r.pop)for(i=r.length;i--;)d.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;return e===n?l:{nodeName:e,children:l,attributes:t,key:t.key}}function f(t,n,...o){return h(t.nodeName,e({},t.attributes,n),o.length>0?o:t.children)}h.f=n;const m={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},y=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,v={};function g(e,t){v["o-"+e]=t}function b(e){let t=e.parentNode;t&&t.removeChild(e)}function S(e,t,n,r,s){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(()=>{var n;null==(n=v[t])||n.call(v,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||E(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||E(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=(m[s]||s in e?s:t).slice(2),n?o||e.addEventListener(t,w,r):e.removeEventListener(t,w,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 w(e){return this._listeners[e.type](e)}function E(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||y.test(t)?n.toString():n+"px"}let C=0,N=!1,P=!1,O=!1;function R(e,t,n,o,s){if(!e&&!t)return null;let i;var l;return C++||(N=null!=n&&void 0!==n.ownerSVGElement,O=!1),r(t)?n?(T(n,t,O,o,s),i=n.childNodes):(i=[],t.forEach((t,n)=>{let r=j(0===n?e:null,t,o,s);i.push(r)})):(r(e)||e instanceof NodeList?e.forEach((e,n)=>{0===n?i=j(e,t,o,s):k(e,!1)}):i=j(e,t,o,s),n&&(null==(l=i)?void 0:l.parentNode)!==n&&n.appendChild(i)),--C||(O=!1),i}function j(e,n,o,r){e&&n&&e.props&&(e.props.children=n.children);let s=e,i=N,l=P;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)),k(e,!0))),s&&(s.prevProps={}),s;let a=n.nodeName;var p;if("string"!=typeof a&&(a=a.tagName),P="foreignObject"===a,N="svg"===a||!P&&N,a=String(a),(!e||!c(e,a))&&(s=function(e,t){let n=P||N?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)),k(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!O&&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||T(s,m,O||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]||(S(e,i,o[i],o[i]=void 0,P||N),c&&delete e.props[i]);for(i in n)if(c&&"object"==typeof n[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&S(e,i,o[i],o[i]=n[i],P||N);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(S(e,i,o[i],n[i],P||N),-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),N=i,P=l,s}function T(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,g=t?t.length:0;if(0!==y)for(let e=0;e<y;e++){var S;let t=p[e],o=t.prevProps,r=g&&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!==g)for(let n=0;n<g;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]&&l(i=d[s],u)){a=i,d[s]=void 0,s===v-1&&v--,s===m&&m++;break}}a=j(a,u,o,r),c=p[n],a&&a!==e&&a!==c&&(null==c?e.appendChild(a):a===c.nextSibling?b(c):e.insertBefore(a,c))}if(f)for(let e in h)void 0!==h[e]&&k(h[e],!1);for(;m<=v;)void 0!==(a=d[v--])&&k(a,!1)}function k(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||b(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){let t=e.previousSibling;k(e,!0),e=t}}(e)}let x=null,L=[],M=null;function A(e){M=e}function I(){return M}function _(e){let t=e;const n=new Set,o=new Set;return new Proxy({},{get(e,r){if("value"===r){x&&n.add(x);const e=I();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&&(a(t)&&a(s)&&t===s||(t=s,n.forEach(e=>e()),o.forEach(e=>e.queuedUpdate())),!0)})}function F(e){const t=_(e());return W(()=>{t.value=e()}),t}function W(e){const t=new Set;let n=!1;const o=()=>{n||(n=!0,x=o,e(),x=null,n=!1)};return o(),()=>{t.clear()}}function H(e){L.push(e),1===L.length&&Promise.resolve().then(D)}function D(){for(;L.length;){const e=L.shift();e&&e()}}function U(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]=_(n),e),{})}const V={mixin:{}};function $(e){Object.assign(V.mixin,e)}function q(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 B(e){return function(t){q(e,t)}}let J=0;const Q=new WeakMap;class z extends HTMLElement{static define(e){q(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=J++,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&&!V.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 V.mixin)Object.defineProperty(this,e,{get:()=>V.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||Q.has(this.constructor))this.renderRoot.adoptedStyleSheets=Q.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,Q.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(),A(this),this.beforeRender(),this.fire("beforeRender",this);const e=this.render(this.props,this.store);var t;this.appendStyleVNode(e),this.rendered(e),A(null),this.rootElement=R(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(),A(this),this.beforeRender(),this.fire("beforeRender",this);const t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),A(null),this.rootElement=R(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 G(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),R(null,e,t,null,!1)}z.is="Component",z.defaultProps=void 0,z.reflectProps=void 0,z.propTypes=void 0,z.css=void 0,z.isLightDOM=void 0,z.noSlot=void 0;const Z={}.hasOwnProperty;function K(...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=K(...o);e&&t.push(e)}else if("object"===r)for(const e in o)Z.call(o,e)&&o[e]&&t.push(e)}return t.join(" ")}function X(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:K(...t)}}class Y{constructor(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=_(e)}get value(){return this._signal.value}set value(e){this._signal.value=e}peek(){return this._signal.peek()}computed(e){return F(e)}effect(e){return W(e)}batch(e){return H(e)}setActiveComponent(e){return A(e)}getActiveComponent(){return I()}update(e){e&&e(this._value),this.value=this.value}}let ee={};function te(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]||"")}),ee[n])return ee[n];{const e=new CSSStyleSheet;return e.replaceSync(n),ee[n]=e,e}}const ne="7.4.5";export{z as Component,Y as Signal,z as WeElement,H as batch,p as bind,K as classNames,f as cloneElement,F as computed,h as createElement,u as createRef,te as css,q as define,q as defineElement,W as effect,X as extractClass,I as getActiveComponent,h,$ as mixin,g as registerDirective,G as render,A as setActiveComponent,_ as signal,U as signalObject,B as tag,ne as version};
//# sourceMappingURL=omi.modern.js.map

@@ -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 t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},t(e)}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function o(e,t,r){return o=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,o){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return o&&n(i,o.prototype),i},o.apply(null,arguments)}function r(e){var i="function"==typeof Map?new Map:void 0;return r=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!==i){if(i.has(e))return i.get(e);i.set(e,r)}function r(){return o(e,arguments,t(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n(r,e)},r(e)}function i(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function s(e){return e.children}function u(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function c(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,u=CSSStyleSheet.prototype;u.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},u.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=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(O(this),"string"==typeof e){var t=this,n=c.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),c.set(t,n.sheet),l.get(t).forEach(function(e){e.isConnected()&&N(t,P(t,e))})}},r(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return O(this),c.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;O(t);var n=arguments,o=c.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=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 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)||u.isPrototypeOf(e))}function C(e){return"object"==typeof e&&u.isPrototypeOf(e)}function P(e,t){return a.get(e).get(t)}function N(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,i.call(n.cssRules,function(e,t){o.insertRule(e.cssText,t)})})}function O(e){if(!c.has(e))throw new TypeError("Illegal invocation")}function j(){var e=this,n=document.createElement("style");t.body.appendChild(n),c.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){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){N(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,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 l=/\B([A-Z])/g;function a(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function f(e,t){if("string"==typeof t||"number"==typeof t)return void 0!==e.splitText;var n=t.nodeName;return p(e,"string"!=typeof n?n.tagName:n)}function p(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function d(){return{}}function h(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function v(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 y=[];function m(e,t,n){var o,r,i,u=[],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?u[u.length-1]+=o:0===u.length?u=[o]:u.push(o),c=r;return e===s?u:{nodeName:e,children:u,attributes:t,key:t.key}}function g(t,n){var o=[].slice.call(arguments,2);return m(t.nodeName,e({},t.attributes,n),o.length>0?o:t.children)}m.f=s;var b={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},S=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,w={};function E(e,t){w["o-"+e]=t}function C(e){var t=e.parentNode;t&&t.removeChild(e)}function P(e,t,n,o,r){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=w[t])||n.call(w,e,o)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)u(n,null),u(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||O(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||O(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=(b[i]||i in e?i:t).slice(2),n?o||e.addEventListener(t,N,r):e.removeEventListener(t,N,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 N(e){return this._listeners[e.type](e)}function O(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||S.test(t)?n.toString():n+"px"}var j=0,R=!1,T=!1,k=!1;function x(e,t,n,o,r){return e||t?(j++||(R=null!=n&&void 0!==n.ownerSVGElement,k=!1),c(t)?n?(L(n,t,k,o,r),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=M(0===n?e:null,t,o,r);i.push(s)})):(c(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=M(e,t,o,r):A(e,!1)}):i=M(e,t,o,r),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--j||(k=!1),i):null;var i,s}function M(e,t,n,o){e&&t&&e.props&&(e.props.children=t.children);var r,s=e,u=R,c=T;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)):(s=document.createTextNode(String(t)),e&&(e.parentNode&&(null==(r=e.parentNode)||r.replaceChild(s,e)),A(e,!0))),s&&(s.prevProps={}),s;var l,a,f,d=t.nodeName;if("string"!=typeof d&&(d=d.tagName),T="foreignObject"===d,R="svg"===d||!T&&R,d=String(d),(!e||!p(e,d))&&(a=d,(f=T||R?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,"Component"===(null==(l=(s=f).constructor)?void 0:l.is)&&Object.assign(s.props,t.attributes),e)){for(var h;e.firstChild;)s.appendChild(e.firstChild);e.parentNode&&(null==(h=e.parentNode)||h.replaceChild(s,e)),A(e,!0)}var v=s.firstChild,y=s.prevProps,m=t.children;if(null==y){y=s.prevProps={};for(var g=s.attributes,b=g.length;b--;)y[g[b].name]=g[b].value}return!k&&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"==s.constructor.is&&s.constructor.noSlot||L(s,m,k||null!=y.unsafeHTML,n,o)),function(e,t,n,o,r){var s,u,c=e.update;for(s in e.receiveProps&&(u=Object.assign({},n)),n)t&&null!=t[s]||null==n[s]||(P(e,s,n[s],n[s]=void 0,T||R),c&&delete e.props[s]);for(s in t)if(c&&"object"==typeof t[s]&&"ref"!==s){("style"===s||"o"===s[0]&&"-"===s[1])&&P(e,s,n[s],n[s]=t[s],T||R);var l=i(s);e.props[l]=n[l]=t[s]}else if("children"!==s&&(!(s in n)||t[s]!==("value"===s||"checked"===s?e[s]:n[s])))if(P(e,s,n[s],t[s],T||R),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var a=i(s);e.props[a]=n[a]=t[s]}else n[s]=t[s];c&&!r&&e.parentNode&&!1!==e.receiveProps(e.props,u)&&e.queuedUpdate()}(s,t.attributes,y,0,o),s.props&&(s.props.children=t.children),R=u,T=c,s}function L(e,t,n,o,r){var i,s,u,c,l,a=e.childNodes,p=[],d={},h=0,v=0,y=a.length,m=0,g=t?t.length:0;if(0!==y)for(var b=0;b<y;b++){var S,w=a[b],E=w.prevProps,P=g&&E?E.key:null;null!=P?(h++,d[P]=w):(E||(void 0!==w.splitText?!n||(null==(S=w.nodeValue)?void 0:S.trim()):n))&&(p[m++]=w)}if(0!==g)for(var N=0;N<g;N++){if(l=null,c=t[N]){var O=c.key;if(null!=O)h&&void 0!==d[O]&&(l=d[O],d[O]=void 0,h--);else if(v<m)for(i=v;i<m;i++)if(void 0!==p[i]&&f(s=p[i],c)){l=s,p[i]=void 0,i===m-1&&m--,i===v&&v++;break}}l=M(l,c,o,r),u=a[N],l&&l!==e&&l!==u&&(null==u?e.appendChild(l):l===u.nextSibling?C(u):e.insertBefore(l,u))}if(h)for(var j in d)void 0!==d[j]&&A(d[j],!1);for(;v<=m;)void 0!==(l=p[m--])&&A(l,!1)}function A(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||C(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;A(e,!0),e=n}}(e)}var _=null,I=[],F=null;function W(e){F=e}function H(){return F}function D(e){var t=e,n=new Set,o=new Set;return new Proxy({},{get:function(e,r){if("value"===r){_&&n.add(_);var i=H();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&&(h(t)&&h(i)&&t===i||(t=i,n.forEach(function(e){return e()}),o.forEach(function(e){return e.queuedUpdate()})),!0)}})}function U(e){var t=D(e());return V(function(){t.value=e()}),t}function V(e){var t=new Set,n=!1;return function t(){n||(n=!0,_=t,e(),_=null,n=!1)}(),function(){t.clear()}}function q(e){I.push(e),1===I.length&&Promise.resolve().then(B)}function B(){for(;I.length;){var e=I.shift();e&&e()}}function J(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=D(t[1]),e},{})}var Q={mixin:{}};function $(e){Object.assign(Q.mixin,e)}function z(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 G(e){return function(t){z(e,t)}}var Z=0,K=new WeakMap,X=/*#__PURE__*/function(e){var t,o;function r(){var t;return(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.props=Object.assign({},t.constructor.defaultProps,t.props),t.elementId=Z++,t.isInstalled=!1,t.rootElement=null,t}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,n(t,o),r.define=function(e){z(e,this)};var i=r.prototype;return i.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)},i.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"})},i.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||K.has(this.constructor))this.renderRoot.adoptedStyleSheets=K.get(this.constructor);else{var e,t=this.constructor.css;t&&(e="string"==typeof t?[a(t)]:c(t)?t.map(function(e){return"string"==typeof e?a(e):e.default&&"string"==typeof e.default?a(e.default):e}):t.default&&"string"==typeof t.default?[a(t.default)]:[t],this.renderRoot.adoptedStyleSheets=e,K.set(this.constructor,e))}},i.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)}},i.connectedCallback=function(){var e=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),W(this),this.beforeRender(),this.fire("beforeRender",this);var t,n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),W(null),this.rootElement=x(null,n,null,this,!1),c(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},i.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1},i.update=function(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),W(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),W(null),this.rootElement=x(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)},i.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},i.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()},i.updateSelf=function(){this.update(!0)},i.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},i.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},i.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=c(t[n])?t[n]:[t[n]],r=e.getAttribute(n.replace(l,"-$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})}},i.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}))},i.install=function(){},i.installed=function(){},i.uninstall=function(){},i.beforeUpdate=function(){},i.updated=function(){},i.beforeRender=function(){},i.rendered=function(e){},i.receiveProps=function(){},r}(/*#__PURE__*/r(HTMLElement));function Y(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),x(null,e,t,null,!1)}X.is="Component",X.defaultProps=void 0,X.reflectProps=void 0,X.propTypes=void 0,X.css=void 0,X.isLightDOM=void 0,X.noSlot=void 0;var ee={}.hasOwnProperty;function te(){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=te.apply(void 0,o);i&&t.push(i)}else if("object"===r)for(var s in o)ee.call(o,s)&&o[s]&&t.push(s)}}return t.join(" ")}function ne(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:te.apply(void 0,t)}}var oe=/*#__PURE__*/function(){function e(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=D(e)}var t,n,o=e.prototype;return o.peek=function(){return this._signal.peek()},o.computed=function(e){return U(e)},o.effect=function(e){return V(e)},o.batch=function(e){return q(e)},o.setActiveComponent=function(e){return W(e)},o.getActiveComponent=function(){return H()},o.update=function(e){e&&e(this._value),this.value=this.value},t=e,(n=[{key:"value",get:function(){return this._signal.value},set:function(e){this._signal.value=e}}])&&function(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}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),re={};function ie(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]||"")}),re[n])return re[n];var o=new CSSStyleSheet;return o.replaceSync(n),re[n]=o,o}var se="7.4.4";export{X as Component,oe as Signal,X as WeElement,q as batch,v as bind,te as classNames,g as cloneElement,U as computed,m as createElement,d as createRef,ie as css,z as define,z as defineElement,V as effect,ne as extractClass,H as getActiveComponent,m as h,$ as mixin,E as registerDirective,Y as render,W as setActiveComponent,D as signal,J as signalObject,G as tag,se 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){if("string"==typeof t||"number"==typeof t)return void 0!==e.splitText;var n=t.nodeName;return h(e,"string"!=typeof n?n.tagName:n)}function h(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(){return{}}function y(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}function m(e,t,n){return{configurable:!0,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}var g=[];function b(e,t,n){var r,o,i,s=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},i=arguments.length;i-- >2;)g.push(arguments[i]);for(null!=t.children&&(g.length||g.push.apply(g,t.children),delete t.children);g.length;)if((r=g.pop())&&void 0!==r.pop)for(i=r.length;i--;)g.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;return e===u?s:{nodeName:e,children:s,attributes:t,key:t.key}}function S(e,t){var r=[].slice.call(arguments,2);return b(e.nodeName,n({},e.attributes,t),r.length>0?r:e.children)}b.f=u;var w={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},E=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,C={};function P(e,t){C["o-"+e]=t}function O(e){var t=e.parentNode;t&&t.removeChild(e)}function N(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=C[t])||n.call(C,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||R(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||R(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=(w[i]||i in e?i:t).slice(2),n?r||e.addEventListener(t,j,o):e.removeEventListener(t,j,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 j(e){return this._listeners[e.type](e)}function R(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||E.test(t)?n.toString():n+"px"}var T=0,k=!1,x=!1,M=!1;function L(e,t,n,r,o){return e||t?(T++||(k=null!=n&&void 0!==n.ownerSVGElement,M=!1),a(t)?n?(_(n,t,M,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=A(0===n?e:null,t,r,o);i.push(s)})):(a(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=A(e,t,r,o):I(e,!1)}):i=A(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--T||(M=!1),i):null;var i,s}function A(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=k,u=x;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)),I(e,!0))),i&&(i.prevProps={}),i;var l,a,f,p=t.nodeName;if("string"!=typeof p&&(p=p.tagName),x="foreignObject"===p,k="svg"===p||!x&&k,p=String(p),(!e||!h(e,p))&&(a=p,(f=x||k?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)),I(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!M&&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||_(i,m,M||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]||(N(e,i,n[i],n[i]=void 0,x||k),u&&delete e.props[i]);for(i in t)if(u&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&N(e,i,n[i],n[i]=t[i],x||k);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(N(e,i,n[i],t[i],x||k),-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),k=s,x=u,i}function _(e,t,n,r,o){var i,s,c,u,l,a=e.childNodes,f=[],p={},h=0,v=0,y=a.length,m=0,g=t?t.length:0;if(0!==y)for(var b=0;b<y;b++){var S,w=a[b],E=w.prevProps,C=g&&E?E.key:null;null!=C?(h++,p[C]=w):(E||(void 0!==w.splitText?!n||(null==(S=w.nodeValue)?void 0:S.trim()):n))&&(f[m++]=w)}if(0!==g)for(var P=0;P<g;P++){if(l=null,u=t[P]){var N=u.key;if(null!=N)h&&void 0!==p[N]&&(l=p[N],p[N]=void 0,h--);else if(v<m)for(i=v;i<m;i++)if(void 0!==f[i]&&d(s=f[i],u)){l=s,f[i]=void 0,i===m-1&&m--,i===v&&v++;break}}l=A(l,u,r,o),c=a[P],l&&l!==e&&l!==c&&(null==c?e.appendChild(l):l===c.nextSibling?O(c):e.insertBefore(l,c))}if(h)for(var j in p)void 0!==p[j]&&I(p[j],!1);for(;v<=m;)void 0!==(l=f[m--])&&I(l,!1)}function I(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||O(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;I(e,!0),e=n}}(e)}var F=null,W=[],H=null;function D(e){H=e}function U(){return H}function V(e){var t=e,n=new Set,r=new Set;return new Proxy({},{get:function(e,o){if("value"===o){F&&n.add(F);var i=U();return i&&r.add(i),t}return"peek"===o?function(){return t}:"update"===o?function(){n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})}:void 0},set:function(e,o,i){return"value"===o&&(y(t)&&y(i)&&t===i||(t=i,n.forEach(function(e){return e()}),r.forEach(function(e){return e.queuedUpdate()})),!0)}})}function q(e){var t=V(e());return B(function(){t.value=e()}),t}function B(e){var t=new Set,n=!1;return function t(){n||(n=!0,F=t,e(),F=null,n=!1)}(),function(){t.clear()}}function J(e){W.push(e),1===W.length&&Promise.resolve().then(Q)}function Q(){for(;W.length;){var e=W.shift();e&&e()}}function $(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=V(t[1]),e},{})}var z={mixin:{}};function G(e){Object.assign(z.mixin,e)}function Z(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 K(e){return function(t){Z(e,t)}}var X=0,Y=new WeakMap,ee=/*#__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=X++,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){Z(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&&!z.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 z.mixin[t]}})};for(var o in z.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||Y.has(this.constructor))this.renderRoot.adoptedStyleSheets=Y.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,Y.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(),D(this),this.beforeRender(),this.fire("beforeRender",this);var t,n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),D(null),this.rootElement=L(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(),D(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),D(null),this.rootElement=L(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 te(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),L(null,e,t,null,!1)}ee.is="Component",ee.defaultProps=void 0,ee.reflectProps=void 0,ee.propTypes=void 0,ee.css=void 0,ee.isLightDOM=void 0,ee.noSlot=void 0;var ne={}.hasOwnProperty;function re(){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=re.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)ne.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}function oe(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:re.apply(void 0,t)}}var ie=/*#__PURE__*/function(){function e(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=V(e)}var n=e.prototype;return n.peek=function(){return this._signal.peek()},n.computed=function(e){return q(e)},n.effect=function(e){return B(e)},n.batch=function(e){return J(e)},n.setActiveComponent=function(e){return D(e)},n.getActiveComponent=function(){return U()},n.update=function(e){e&&e(this._value),this.value=this.value},t(e,[{key:"value",get:function(){return this._signal.value},set:function(e){this._signal.value=e}}]),e}(),se={};function ce(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]||"")}),se[n])return se[n];var r=new CSSStyleSheet;return r.replaceSync(n),se[n]=r,r}var ue="7.4.5";export{ee as Component,ie as Signal,ee as WeElement,J as batch,m as bind,re as classNames,S as cloneElement,q as computed,b as createElement,v as createRef,ce as css,Z as define,Z as defineElement,B as effect,oe as extractClass,U as getActiveComponent,b as h,G as mixin,P as registerDirective,te as render,D as setActiveComponent,V as signal,$ as signalObject,K as tag,ue 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(){return t=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},t.apply(this,arguments)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function r(e,t,n){return r=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},r.apply(null,arguments)}function i(e){var t="function"==typeof Map?new Map:void 0;return i=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,i)}function i(){return r(e,arguments,n(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o(i,e)},i(e)}function s(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function u(e){return e.children}function c(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function l(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,u=CSSStyleSheet.prototype;u.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},u.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=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=c.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),c.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),c.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=c.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=k(this);y.get(this).observe(e,p),v.get(this).length>0&&M(this),x(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)||u.isPrototypeOf(e))}function C(e){return"object"==typeof e&&u.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=c.get(e),o=t.sheet,i.call(n.cssRules,function(e,t){o.insertRule(e.cssText,t)})})}function N(e){if(!c.has(e))throw new TypeError("Illegal invocation")}function j(){var e=this,n=document.createElement("style");t.body.appendChild(n),c.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 x(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 k(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=k(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&&x(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||x(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 a=/\B([A-Z])/g;function f(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function p(e,t){if("string"==typeof t||"number"==typeof t)return void 0!==e.splitText;var n=t.nodeName;return d(e,"string"!=typeof n?n.tagName:n)}function d(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function h(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}var v=[];function y(e,t,n){var o,r,i,s=[],c=!1;for(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},i=arguments.length;i-- >2;)v.push(arguments[i]);for(null!=t.children&&(v.length||v.push.apply(v,t.children),delete t.children);v.length;)if((o=v.pop())&&void 0!==o.pop)for(i=o.length;i--;)v.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;return e===u?s:{nodeName:e,children:s,attributes:t,key:t.key}}y.f=u;var m={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},g=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,b={};function S(e){var t=e.parentNode;t&&t.removeChild(e)}function w(e,t,n,o,r){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=b[t])||n.call(b,e,o)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)c(n,null),c(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||C(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||C(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=(m[i]||i in e?i:t).slice(2),n?o||e.addEventListener(t,E,r):e.removeEventListener(t,E,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,u=null==(s=e.constructor.reflectProps)?void 0:s[t];u&&e.setAttribute(t,"function"==typeof u?u(o):o)}else e.setAttribute(t,o)}else e.className=o||""}function E(e){return this._listeners[e.type](e)}function C(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n.toString():n+"px"}var P=0,O=!1,N=!1,j=!1;function R(e,t,n,o,r){return e||t?(P++||(O=null!=n&&void 0!==n.ownerSVGElement,j=!1),l(t)?n?(x(n,t,j,o,r),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=T(0===n?e:null,t,o,r);i.push(s)})):(l(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=T(e,t,o,r):k(e,!1)}):i=T(e,t,o,r),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--P||(j=!1),i):null;var i,s}function T(e,t,n,o){e&&t&&e.props&&(e.props.children=t.children);var r,i=e,u=O,c=N;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)),k(e,!0))),i&&(i.prevProps={}),i;var l,a,f,p=t.nodeName;if("string"!=typeof p&&(p=p.tagName),N="foreignObject"===p,O="svg"===p||!N&&O,p=String(p),(!e||!d(e,p))&&(a=p,(f=N||O?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)),k(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!j&&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,j||null!=y.unsafeHTML,n,o)),function(e,t,n,o,r){var i,u,c=e.update;for(i in e.receiveProps&&(u=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(w(e,i,n[i],n[i]=void 0,N||O),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&w(e,i,n[i],n[i]=t[i],N||O);var l=s(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(w(e,i,n[i],t[i],N||O),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var a=s(i);e.props[a]=n[a]=t[i]}else n[i]=t[i];c&&!r&&e.parentNode&&!1!==e.receiveProps(e.props,u)&&e.queuedUpdate()}(i,t.attributes,y,0,o),i.props&&(i.props.children=t.children),O=u,N=c,i}function x(e,t,n,o,r){var i,s,u,c,l,a=e.childNodes,f=[],d={},h=0,v=0,y=a.length,m=0,g=t?t.length:0;if(0!==y)for(var b=0;b<y;b++){var w,E=a[b],C=E.prevProps,P=g&&C?C.key:null;null!=P?(h++,d[P]=E):(C||(void 0!==E.splitText?!n||(null==(w=E.nodeValue)?void 0:w.trim()):n))&&(f[m++]=E)}if(0!==g)for(var O=0;O<g;O++){if(l=null,c=t[O]){var N=c.key;if(null!=N)h&&void 0!==d[N]&&(l=d[N],d[N]=void 0,h--);else if(v<m)for(i=v;i<m;i++)if(void 0!==f[i]&&p(s=f[i],c)){l=s,f[i]=void 0,i===m-1&&m--,i===v&&v++;break}}l=T(l,c,o,r),u=a[O],l&&l!==e&&l!==u&&(null==u?e.appendChild(l):l===u.nextSibling?S(u):e.insertBefore(l,u))}if(h)for(var j in d)void 0!==d[j]&&k(d[j],!1);for(;v<=m;)void 0!==(l=f[m--])&&k(l,!1)}function k(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||S(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;k(e,!0),e=n}}(e)}var M=null,A=[],L=null;function _(e){L=e}function I(){return L}function F(e){var t=e,n=new Set,o=new Set;return new Proxy({},{get:function(e,r){if("value"===r){M&&n.add(M);var i=I();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&&(h(t)&&h(i)&&t===i||(t=i,n.forEach(function(e){return e()}),o.forEach(function(e){return e.queuedUpdate()})),!0)}})}function W(e){var t=F(e());return D(function(){t.value=e()}),t}function D(e){var t=new Set,n=!1;return function t(){n||(n=!0,M=t,e(),M=null,n=!1)}(),function(){t.clear()}}function H(e){A.push(e),1===A.length&&Promise.resolve().then(U)}function U(){for(;A.length;){var e=A.shift();e&&e()}}var V={mixin:{}};function q(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 B=0,J=new WeakMap,Q=/*#__PURE__*/function(e){var t,n;function r(){var t;return(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.props=Object.assign({},t.constructor.defaultProps,t.props),t.elementId=B++,t.isInstalled=!1,t.rootElement=null,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),r.define=function(e){q(e,this)};var i=r.prototype;return i.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!V.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 V.mixin[t]}})};for(var r in V.mixin)o(r)},i.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"})},i.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||J.has(this.constructor))this.renderRoot.adoptedStyleSheets=J.get(this.constructor);else{var e,t=this.constructor.css;t&&(e="string"==typeof t?[f(t)]:l(t)?t.map(function(e){return"string"==typeof e?f(e):e.default&&"string"==typeof e.default?f(e.default):e}):t.default&&"string"==typeof t.default?[f(t.default)]:[t],this.renderRoot.adoptedStyleSheets=e,J.set(this.constructor,e))}},i.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)}},i.connectedCallback=function(){var e=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),_(this),this.beforeRender(),this.fire("beforeRender",this);var t,n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),_(null),this.rootElement=R(null,n,null,this,!1),l(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},i.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1},i.update=function(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),_(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),_(null),this.rootElement=R(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)},i.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},i.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()},i.updateSelf=function(){this.update(!0)},i.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},i.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},i.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=l(t[n])?t[n]:[t[n]],r=e.getAttribute(n.replace(a,"-$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})}},i.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}))},i.install=function(){},i.installed=function(){},i.uninstall=function(){},i.beforeUpdate=function(){},i.updated=function(){},i.beforeRender=function(){},i.rendered=function(e){},i.receiveProps=function(){},r}(/*#__PURE__*/i(HTMLElement));Q.is="Component",Q.defaultProps=void 0,Q.reflectProps=void 0,Q.propTypes=void 0,Q.css=void 0,Q.isLightDOM=void 0,Q.noSlot=void 0;var $={}.hasOwnProperty;function z(){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=z.apply(void 0,o);i&&t.push(i)}else if("object"===r)for(var s in o)$.call(o,s)&&o[s]&&t.push(s)}}return t.join(" ")}var G=/*#__PURE__*/function(){function e(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=F(e)}var t,n,o=e.prototype;return o.peek=function(){return this._signal.peek()},o.computed=function(e){return W(e)},o.effect=function(e){return D(e)},o.batch=function(e){return H(e)},o.setActiveComponent=function(e){return _(e)},o.getActiveComponent=function(){return I()},o.update=function(e){e&&e(this._value),this.value=this.value},t=e,(n=[{key:"value",get:function(){return this._signal.value},set:function(e){this._signal.value=e}}])&&function(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}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Z={};e.Component=Q,e.Signal=G,e.WeElement=Q,e.batch=H,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=z,e.cloneElement=function(e,n){var o=[].slice.call(arguments,2);return y(e.nodeName,t({},e.attributes,n),o.length>0?o:e.children)},e.computed=W,e.createElement=y,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]||"")}),Z[n])return Z[n];var o=new CSSStyleSheet;return o.replaceSync(n),Z[n]=o,o},e.define=q,e.defineElement=q,e.effect=D,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:z.apply(void 0,t)}},e.getActiveComponent=I,e.h=y,e.mixin=function(e){Object.assign(V.mixin,e)},e.registerDirective=function(e,t){b["o-"+e]=t},e.render=function(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),R(null,e,t,null,!1)},e.setActiveComponent=_,e.signal=F,e.signalObject=function(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=F(t[1]),e},{})},e.tag=function(e){return function(t){q(e,t)}},e.version="7.4.4"});
!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){if("string"==typeof t||"number"==typeof t)return void 0!==e.splitText;var n=t.nodeName;return v(e,"string"!=typeof n?n.tagName:n)}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function y(e){return void 0===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e}var m=[];function g(e,t,n){var o,r,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((o=m.pop())&&void 0!==o.pop)for(i=o.length;i--;)m.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;return e===l?s:{nodeName:e,children:s,attributes:t,key:t.key}}g.f=l;var b={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},S=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,w={};function E(e){var t=e.parentNode;t&&t.removeChild(e)}function C(e,t,n,o,r){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=w[t])||n.call(w,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||O(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||O(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=(b[i]||i in e?i:t).slice(2),n?o||e.addEventListener(t,P,r):e.removeEventListener(t,P,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 P(e){return this._listeners[e.type](e)}function O(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||S.test(t)?n.toString():n+"px"}var N=0,j=!1,R=!1,T=!1;function k(e,t,n,o,r){return e||t?(N++||(j=null!=n&&void 0!==n.ownerSVGElement,T=!1),f(t)?n?(M(n,t,T,o,r),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=x(0===n?e:null,t,o,r);i.push(s)})):(f(e)||e instanceof NodeList?e.forEach(function(e,n){0===n?i=x(e,t,o,r):A(e,!1)}):i=x(e,t,o,r),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--N||(T=!1),i):null;var i,s}function x(e,t,n,o){e&&t&&e.props&&(e.props.children=t.children);var r,i=e,s=j,c=R;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)),A(e,!0))),i&&(i.prevProps={}),i;var l,a,f,p=t.nodeName;if("string"!=typeof p&&(p=p.tagName),R="foreignObject"===p,j="svg"===p||!R&&j,p=String(p),(!e||!v(e,p))&&(a=p,(f=R||j?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)),A(e,!0)}var h=i.firstChild,y=i.prevProps,m=t.children;if(null==y){y=i.prevProps={};for(var g=i.attributes,b=g.length;b--;)y[g[b].name]=g[b].value}return!T&&m&&1===m.length&&"string"==typeof m[0]&&null!=h&&void 0!==h.splitText&&null==h.nextSibling?h.nodeValue!=m[0]&&(h.nodeValue=m[0]):(m&&m.length||null!=h)&&("Component"==i.constructor.is&&i.constructor.noSlot||M(i,m,T||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]||(C(e,i,n[i],n[i]=void 0,R||j),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&C(e,i,n[i],n[i]=t[i],R||j);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(C(e,i,n[i],t[i],R||j),-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),j=s,R=c,i}function M(e,t,n,o,r){var i,s,c,u,l,a=e.childNodes,f=[],p={},d=0,v=0,y=a.length,m=0,g=t?t.length:0;if(0!==y)for(var b=0;b<y;b++){var S,w=a[b],C=w.prevProps,P=g&&C?C.key:null;null!=P?(d++,p[P]=w):(C||(void 0!==w.splitText?!n||(null==(S=w.nodeValue)?void 0:S.trim()):n))&&(f[m++]=w)}if(0!==g)for(var O=0;O<g;O++){if(l=null,u=t[O]){var N=u.key;if(null!=N)d&&void 0!==p[N]&&(l=p[N],p[N]=void 0,d--);else if(v<m)for(i=v;i<m;i++)if(void 0!==f[i]&&h(s=f[i],u)){l=s,f[i]=void 0,i===m-1&&m--,i===v&&v++;break}}l=x(l,u,o,r),c=a[O],l&&l!==e&&l!==c&&(null==c?e.appendChild(l):l===c.nextSibling?E(c):e.insertBefore(l,c))}if(d)for(var j in p)void 0!==p[j]&&A(p[j],!1);for(;v<=m;)void 0!==(l=f[m--])&&A(l,!1)}function A(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||E(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;A(e,!0),e=n}}(e)}var L=null,_=[],I=null;function F(e){I=e}function W(){return I}function D(e){var t=e,n=new Set,o=new Set;return new Proxy({},{get:function(e,r){if("value"===r){L&&n.add(L);var i=W();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&&(y(t)&&y(i)&&t===i||(t=i,n.forEach(function(e){return e()}),o.forEach(function(e){return e.queuedUpdate()})),!0)}})}function H(e){var t=D(e());return U(function(){t.value=e()}),t}function U(e){var t=new Set,n=!1;return function t(){n||(n=!0,L=t,e(),L=null,n=!1)}(),function(){t.clear()}}function V(e){_.push(e),1===_.length&&Promise.resolve().then(q)}function q(){for(;_.length;){var e=_.shift();e&&e()}}var B={mixin:{}};function J(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 Q=0,$=new WeakMap,z=/*#__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=Q++,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){J(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&&!B.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 B.mixin[t]}})};for(var r in B.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||$.has(this.constructor))this.renderRoot.adoptedStyleSheets=$.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,$.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(),F(this),this.beforeRender(),this.fire("beforeRender",this);var t,n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),F(null),this.rootElement=k(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(),F(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),F(null),this.rootElement=k(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));z.is="Component",z.defaultProps=void 0,z.reflectProps=void 0,z.propTypes=void 0,z.css=void 0,z.isLightDOM=void 0,z.noSlot=void 0;var G={}.hasOwnProperty;function Z(){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=Z.apply(void 0,o);i&&t.push(i)}else if("object"===r)for(var s in o)G.call(o,s)&&o[s]&&t.push(s)}}return t.join(" ")}var K=/*#__PURE__*/function(){function e(e){this._value=void 0,this._signal=void 0,this._value=e,this._signal=D(e)}var t=e.prototype;return t.peek=function(){return this._signal.peek()},t.computed=function(e){return H(e)},t.effect=function(e){return U(e)},t.batch=function(e){return V(e)},t.setActiveComponent=function(e){return F(e)},t.getActiveComponent=function(){return W()},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}(),X={};e.Component=z,e.Signal=K,e.WeElement=z,e.batch=V,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=Z,e.cloneElement=function(e,t){var n=[].slice.call(arguments,2);return g(e.nodeName,o({},e.attributes,t),n.length>0?n:e.children)},e.computed=H,e.createElement=g,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]||"")}),X[n])return X[n];var o=new CSSStyleSheet;return o.replaceSync(n),X[n]=o,o},e.define=J,e.defineElement=J,e.effect=U,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:Z.apply(void 0,t)}},e.getActiveComponent=W,e.h=g,e.mixin=function(e){Object.assign(B.mixin,e)},e.registerDirective=function(e,t){w["o-"+e]=t},e.render=function(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),k(null,e,t,null,!1)},e.setActiveComponent=F,e.signal=D,e.signalObject=function(e){return Object.entries(e).reduce(function(e,t){return e[t[0]]=D(t[1]),e},{})},e.tag=function(e){return function(t){J(e,t)}},e.version="7.4.5"});
if(typeof window!=='undefined'){window.omi=window.Omi};
//# sourceMappingURL=omi.umd.js.map

@@ -92,2 +92,4 @@ export = Omi;

type PropType = String | Number | Boolean | Array<any> | Object | Array<PropType>;
abstract class WeElement<P = {}> {

@@ -101,3 +103,11 @@ constructor();

static define(name: string): void
static props?: {
[key: string]: {
type?: PropType;
default?: any;
reflect?: boolean | ((value: any) => any);
changed?: (newValue: any, oldValue: any) => void;
}
}
props: OmiProps<P> | P

@@ -139,2 +149,10 @@ prevProps: OmiProps<P> | P

static define(name: string): void
static props?: {
[key: string]: {
type?: PropType;
default?: any;
reflect?: boolean | ((value: any) => any);
changed?: (newValue: any, oldValue: any) => void;
}
}

@@ -141,0 +159,0 @@ props: OmiProps<P> | P

{
"name": "omi",
"version": "7.4.4",
"version": "7.4.5",
"scripts": {

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

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

- 🎉 [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

@@ -356,13 +357,13 @@ - 🌐 Everything you need: **Web Components**, **JSX**, Router, Suspense, Directive, Tailwindcss...

static propTypes = {
count: Number
static props = {
count: {
type: Number,
default: 0,
changed(newValue, oldValue) {
this.state.count = newValue
this.update()
}
}
}
static observedAttributes = ['count']
attributeChangedCallback(name, oldValue, newValue) {
this.state[name] = newValue
this.update()
}
state = {

@@ -369,0 +370,0 @@ count: null

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