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

omi

Package Overview
Dependencies
Maintainers
0
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.6.17 to 7.6.18

2

dist/omi.js

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

require("weakmap-polyfill");var e=require("reactive-signal");function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}function n(){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,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function s(e,t,n){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},s.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)},c(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function l(e){return e.children}function f(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function p(e){return"[object Array]"===Object.prototype.toString.call(e)}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument("boot"),n=new WeakMap,r="object"==typeof DOMException?Error:DOMException,o=Object.defineProperty,i=Array.prototype.forEach,s=/@import.+?;?$/gm,c=CSSStyleSheet.prototype;c.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},c.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var a=new WeakMap,u=new WeakMap,l=new WeakMap,f=A.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(j(this),"string"==typeof e){var t=this,n=a.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),a.set(t,n.sheet),u.get(t).forEach(function(e){e.isConnected()&&P(t,O(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return j(this),a.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;j(t);var n=arguments,r=a.get(t),o=u.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=O(t,r).sheet;o[e].apply(o,n)}}),i}}),o(A,Symbol.hasInstance,{configurable:!0,value:C});var p={childList:!0,subtree:!0},d=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=_.prototype;if(m.isConnected=function(){var e=h.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},m.connect=function(){var e=R(this);y.get(this).observe(e,p),v.get(this).length>0&&T(this),N(e,function(e){x(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(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))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=O(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&T(t)},window.CSSStyleSheet=A,k(Document),"ShadowRoot"in window){k(ShadowRoot);var b=Element.prototype,g=b.attachShadow;b.attachShadow=function(e){var t=g.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var S=x(document);S.isConnected()?S.connect():document.addEventListener("DOMContentLoaded",S.connect.bind(S))}function w(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(f.isPrototypeOf(e)||c.isPrototypeOf(e))}function E(e){return"object"==typeof e&&c.isPrototypeOf(e)}function O(e,t){return l.get(e).get(t)}function P(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=a.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function j(e){if(!a.has(e))throw new TypeError("Illegal invocation")}function A(){var e=this,n=document.createElement("style");t.body.appendChild(n),a.set(e,n.sheet),u.set(e,[]),l.set(e,new WeakMap)}function x(e){var t=d.get(e);return t||(t=new _(e),d.set(e,t)),t}function k(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return x(this).sheets},set:function(e){x(this).update(e)}})}function N(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 R(e){var t=h.get(e);return t instanceof Document?t.body:t}function T(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=R(e);r.disconnect(),n.forEach(function(n){t.appendChild(O(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){P(t,O(t,e))})}function _(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&&N(e,function(e){x(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 O(t,e)})}(n,t)&&T(n),e||N(t,function(e){x(e).disconnect()}))})}):r.disconnect()}))}}(),function(){var e="undefined"!=typeof window?window:global;if(void 0!==e.Reflect&&void 0!==e.customElements&&!e.customElements.hasOwnProperty("polyfillWrapFlushCallback")){var t=e.HTMLElement;e.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var d=/\B([A-Z])/g;function h(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function y(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function m(e){return!!/^class\s/.test(e.toString())||!1}function b(e,t,n){var r=Object.assign({merge:"uniqueMerge",default:null},n),o=m(e)?e:e.constructor,i=o[t],s=y(i)?0:Array.isArray(i)?1:2;if("none"===r.merge||2===s)return i;for(var c=0===s?Object.assign({},r.default):r.default,a=[i];o&&(o=o.__proto__)[t];)a.push(o[t]);var u=i;return u=0===s?a.reduce(function(e,t){return y(t)?Object.assign({},c,t,e):e},{}):a.reduce(function(e,t){return Array.isArray(t)&&e.push.apply(e,t),e},[]),Array.isArray(u)&&"uniqueMerge"===r.merge&&(u=Array.from(new Set(u)),y(c)&&u.forEach(function(e,t){y(e)&&(u[t]=Object.assign({},c,e))})),u||c}function g(e,t){e.hooks||(e.hooks={}),Object.entries(t).forEach(function(t){var n=t[0],r=t[1];e.hooks[n]||(e.hooks[n]=[]),e.hooks[n].push(r)})}function S(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===l)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var c=i.value;Array.isArray(c)&&o<e?n(c,o+1):t.push(c)}}(this,0),t}),S.f=l;var w={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},C=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,E={};function O(e){var t=e.parentNode;t&&t.removeChild(e)}function P(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=E[t])||n.call(E,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)f(n,null),f(r,e);else if("class"!==t||o)if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||A(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||A(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 A(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||C.test(t)?n.toString():n+"px"}var x=0,k=!1,N=!1,R=!1;function T(e,t,n,r,o){return e||t?(r&&r.constructor.isLightDOM&&(r.innerHTML=""),x++||(k=null!=n&&void 0!==n.ownerSVGElement,R=!1),p(t)?n?(M(n,t,R,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=_(0===n?e:null,t,r,o);i.push(s)})):(p(e)||e instanceof NodeList?[].concat(e).forEach(function(e,n){0===n?i=_(e,t,r,o):L(e,!1)}):i=_(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--x||(R=!1),i):null;var i,s}function _(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=k,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==(o=e.parentNode)||o.replaceChild(i,e)),L(e,!0))),i&&(i.prevProps={}),i;var a,l,f,p=t.nodeName;if(N="foreignObject"===p,k="svg"===p||!N&&k,p=String(p),(!e||!v(e,p))&&(l=p,(f=N||k?document.createElementNS("http://www.w3.org/2000/svg",l):document.createElement(l)).normalizedNodeName=l,"Component"===(null==(a=(i=f).constructor)?void 0:a.is)&&Object.assign(i.props,t.attributes),e)){for(var d;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(i,e)),L(e,!0)}var h=i.firstChild,y=i.prevProps,m=t.children;if(null==y){y=i.prevProps={};for(var b=i.attributes,g=b.length;g--;)y[b[g].name]=b[g].value}return!R&&m&&1===m.length&&"string"==typeof m[0]&&null!=h&&void 0!==h.splitText&&null==h.nextSibling?h.nodeValue!=m[0]&&(h.nodeValue=m[0]):(m&&m.length||null!=h)&&("Component"==i.constructor.is&&i.constructor.noSlot||M(i,m,R||null!=y.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,c=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(P(e,i,n[i],n[i]=void 0,N||k),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&P(e,i,n[i],n[i]=t[i],N||k);var a=u(i);e.props[a]=n[a]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(P(e,i,n[i],t[i],N||k),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var l=u(i);e.props[l]=n[l]=t[i]}else n[i]=t[i];c&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,y,0,r),i.props&&(i.props.children=t.children),k=s,N=c,i}function M(e,t,n,r,o){var i,s,c,a,u,l,f,p=e.childNodes,d=[],h={},y=0,m=0,b=p.length,g=0,S=t?t.length:0;if(0!==b)for(var w=0;w<b;w++){var C,E=p[w],P=E.prevProps,j=S&&P?P.key:null;null!=j?(y++,h[j]=E):(P||(void 0!==E.splitText?!n||(null==(C=E.nodeValue)?void 0:C.trim()):n))&&(d[g++]=E)}if(0!==S)for(var A=0;A<S;A++){if(u=null,a=t[A]){var x=a.key;if(null!=x)y&&void 0!==h[x]&&(u=h[x],h[x]=void 0,y--);else if(m<g)for(i=m;i<g;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=a)||"number"==typeof f?void 0!==l.splitText:v(l,f.nodeName))){u=s,d[i]=void 0,i===g-1&&g--,i===m&&m++;break}}u=_(u,a,r,o),c=p[A],u&&u!==e&&u!==c&&(null==c?e.appendChild(u):u===c.nextSibling?O(c):e.insertBefore(u,c))}if(y)for(var k in h)void 0!==h[k]&&L(h[k],!1);for(;m<=g;)void 0!==(u=d[g--])&&L(u,!1)}function L(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;L(e,!0),e=n}}(e)}var F={mixin:{},globalCSS:[]},I={define:function(e){e.prototype.formAssociatedCallback=function(e){this._form=e,this._form&&this._form.addEventListener("formdata",this.handleFormData.bind(this))}},initial:function(e){e.getFieldValue||(e.getFieldValue=function(){var t,n={};return e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){n[e.name]=e.value}),n}),e.resetFieldValue||(e.resetFieldValue=function(){var t;e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){e.value=""})}),e.handleFormData||(e.handleFormData=function(t){var n=t.formData;if(n){var r=e.getFieldValue();Object.entries(r).forEach(function(e){n.append(e[0],e[1])})}}),e._internals=e.attachInternals()},connected:function(e){}};function D(e,t){Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):customElements.define(e,t)}function V(e,t){var n=Object.assign({formAssociated:!1},t).formAssociated;return function(t){n&&(n&&(g(t,I),t.formAssociated=!0),function(e,t){var n=e._hooks?e._hooks:b(e,"hooks")||{};if(m(e)||(e._hooks=n),t in n){var r=n[t];Array.isArray(r)&&r.forEach(function(n){try{n.call(e,e)}catch(n){console.warn("Error occurred while executing hook function "+(m(e)?e.constructor.name:e.name)+"/"+t+":",n)}})}}(t,"define")),D(e,t)}}var H=V,W={initial:function(e){Object.defineProperty(e,"ref",{get:function(){return e._ref||(e._ref=new Proxy({current:void 0},{set:function(t,n,r,o){return"current"===n&&e.fire("refAttached",{ref:r,target:e},{bubbles:!0,composed:!0}),Reflect.set(t,n,r,o)}})),e._ref}}),e._onRefAttached=function(t){var n=t.detail;n.target!==e&&e.props.ref&&(e.props.ref.current=n.ref)},e.addEventListener("refAttached",e._onRefAttached)},disconnected:function(e){e.removeEventListener("refAttached",e._onRefAttached)}},q=0,U=new WeakMap,B=/*#__PURE__*/function(n){function o(){var e;return(e=n.call(this)||this).elementId=void 0,e.isInstalled=void 0,e.inject=void 0,e.injection=void 0,e.renderRoot=void 0,e.rootElement=void 0,e._hooks=void 0,e._ref=null,e.state=void 0,e.updateQueued=!1,e.handleProps(),g(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),W),e.executeHooks("initial"),e.elementId=q++,e.isInstalled=!1,e.rootElement=null,e}r(o,n),o.define=function(e){D(e,this)};var i,s,c,a=o.prototype;return a.executeHooks=function(e){var t=this;if(e in this.hooks){var n=this.hooks[e];Array.isArray(n)&&n.forEach(function(n){try{n.call(t,t)}catch(n){console.warn("Error occurred while executing hook function "+t.constructor.name+"/"+e+":",n)}})}},a.handleProps=function(){this.constructor.defaultProps=b(this,"defaultProps",{default:{}})||{},this.constructor.propTypes=b(this,"propTypes",{default:{}})||{},this.constructor.reflectProps=b(this,"reflectProps",{default:{}})||{};var e=b(this,"props",{default:{},merge:"uniqueMerge"});if(this.constructor.props)for(var t in e){var n=e[t];this.constructor.defaultProps[t]=n.default,this.constructor.propTypes[t]=n.type,this.constructor.reflectProps[t]=n.reflect}this.props=Object.assign({},this.constructor.defaultProps,this.props)},a.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];if(r.changed){var o=this.getTypeValueOfProp(e,n),i=this.getTypeValueOfProp(e,t);r.changed.call(this,o,i)}}},a.setState=function(e,t){var n=this;if(void 0===t&&(t=!1),"object"!=typeof e)throw new Error("takes an object of state variables to update");Object.keys(e).forEach(function(t){return n.state[t]=e[t]}),t||this.queuedUpdate()},a.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!F.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){e.hasOwnProperty(t)||Object.defineProperty(e,t,{get:function(){return F.mixin[t]}})};for(var o in F.mixin)r(o)},a.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",delegatesFocus:!0})},a.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||U.has(this.constructor))this.renderRoot.adoptedStyleSheets=U.get(this.constructor);else{var e=this.constructor.css;if(e){var t=[];t="string"==typeof e?[h(e)]:p(e)?e.map(function(e){return"string"==typeof e?h(e):e.default&&"string"==typeof e.default?h(e.default):e}):e.default&&"string"==typeof e.default?[h(e.default)]:[e],t=[].concat(F.globalCSS,t),this.renderRoot.adoptedStyleSheets=t,U.set(this.constructor,t)}else F.globalCSS.length&&(this.renderRoot.adoptedStyleSheets=F.globalCSS)}},a.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)}},a.connectedCallback=function(){var t=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),e.setActiveComponent(this),this.beforeRender(),this.fire("beforeRender",this);var n,r=this.render(this.props,this.store);this.appendStyleVNode(r),this.rendered(r),e.clearActiveComponent(),this.rootElement=T(null,r,null,this,!1),p(this.rootElement)?this.rootElement.forEach(function(e){var n;null==(n=t.renderRoot)||n.appendChild(e)}):this.rootElement&&(null==(n=this.renderRoot)||n.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0,Promise.resolve().then(function(){t.ready(),t.fire("ready",t)}),this.executeHooks("connected")},a.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1,this.executeHooks("disconnected")},a.update=function(t){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),e.setActiveComponent(this),this.beforeRender(),this.fire("beforeRender",this);var n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),e.clearActiveComponent(null),this.rootElement=T(this.rootElement,n,this.renderRoot,this,!!t),this.updated(),this.fire("updated",this)},a.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},a.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()},a.updateSelf=function(){this.update(!0)},a.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},a.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},a.attrsToProps=function(){var e=this;if(!this.props.ignoreAttrs){var t=this;t.props.css=t.getAttribute("css");var n=this.constructor.propTypes;n&&Object.keys(n).forEach(function(n){var r=t.getAttribute(n.replace(d,"-$1").toLowerCase());t.props[n]=null!==r?e.getTypeValueOfProp(n,r):t.constructor.defaultProps&&t.constructor.defaultProps.hasOwnProperty(n)?t.constructor.defaultProps[n]:null})}},a.getTypeValueOfProp=function(e,t){for(var n=this.constructor.propTypes,r=p(n[e])?n[e]:[n[e]],o=0;o<r.length;o++)switch(r[o]){case String:return t;case Number:return Number(t);case Boolean:return Boolean("false"!==t&&"0"!==t);case Array:case Object:try{return JSON.parse(t)}catch(n){console.warn("The "+e+" object prop does not comply with the JSON specification, the incorrect string is ["+t+"].")}}},a.fire=function(e,t,n){var r=Object.assign({bubbles:!1,composed:!1},n),o=r.bubbles,i=r.composed,s=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];s?s(new CustomEvent(e,{detail:t,bubbles:o,composed:i})):this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:o,composed:i}))},a.install=function(){},a.installed=function(){},a.ready=function(){},a.uninstall=function(){},a.beforeUpdate=function(){},a.updated=function(){},a.beforeRender=function(){},a.rendered=function(e){},a.receiveProps=function(){},i=o,c=[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}],(s=[{key:"ref",get:function(){}},{key:"hooks",get:function(){return this._hooks||(this._hooks=b(this,"hooks")||{}),this._hooks}}])&&t(i.prototype,s),c&&t(i,c),Object.defineProperty(i,"prototype",{writable:!1}),o}(/*#__PURE__*/c(HTMLElement));B.is="Component",B.defaultProps=void 0,B.reflectProps=void 0,B.propTypes=void 0,B.css=void 0,B.isLightDOM=void 0,B.noSlot=void 0,B.hooks=void 0,B.props={},B.formAssociated=!0;var $=/*#__PURE__*/function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this)._form=null,t._inputs=[],t._internals=null,t}r(t,e);var n=t.prototype;return n.formAssociatedCallback=function(e){},n.handleFormData=function(e){},n.getFieldValue=function(){},n.handleField=function(e){},n.formDisabledCallback=function(){},n.formResetCallback=function(){},n.formStateRestoreCallback=function(e,t){},t}(B);$.formAssociated=!1;var J={}.hasOwnProperty;function Q(){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=Q.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)J.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var z={};Object.defineProperty(exports,"Signal",{enumerable:!0,get:function(){return e.Signal}}),Object.defineProperty(exports,"batch",{enumerable:!0,get:function(){return e.batch}}),Object.defineProperty(exports,"clearActiveComponent",{enumerable:!0,get:function(){return e.clearActiveComponent}}),Object.defineProperty(exports,"computed",{enumerable:!0,get:function(){return e.computed}}),Object.defineProperty(exports,"effect",{enumerable:!0,get:function(){return e.effect}}),Object.defineProperty(exports,"getActiveComponent",{enumerable:!0,get:function(){return e.getActiveComponent}}),Object.defineProperty(exports,"setActiveComponent",{enumerable:!0,get:function(){return e.setActiveComponent}}),Object.defineProperty(exports,"signal",{enumerable:!0,get:function(){return e.signal}}),Object.defineProperty(exports,"signalObject",{enumerable:!0,get:function(){return e.signalObject}}),exports.Component=B,exports.FormAssociatedComponent=$,exports.WeElement=B,exports.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}}},exports.classNames=Q,exports.cloneElement=function(e,t){var r=[].slice.call(arguments,2);return S(e.nodeName,n({},e.attributes,t),r.length>0?r.flat():e.children)},exports.createElement=S,exports.createRef=function(){return{}},exports.css=function(e){var t=[].slice.call(arguments,1),n="";if(e.forEach(function(e,r){if(void 0!==t[r]&&"string"!=typeof t[r]&&"number"!=typeof t[r])throw new Error("Unsupported value in CSS: "+t[r]);n+=e+(t[r]||"")}),z[n])return z[n];var r=new CSSStyleSheet;return r.replaceSync(n),z[n]=r,r},exports.define=D,exports.defineElement=D,exports.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:Q.apply(void 0,t)}},exports.globalCSS=function(e){F.globalCSS.includes(e)||F.globalCSS.push(e)},exports.h=S,exports.mixin=function(e){Object.assign(F.mixin,e)},exports.registerDirective=function(e,t){E["o-"+e]=t},exports.render=function(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),T(null,e,t,null,!1)},exports.tag=V,exports.version="7.6.17",exports.webcomponent=H;
require("weakmap-polyfill");var e=require("reactive-signal");function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}function n(){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,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function s(e,t,n){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o},s.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)},c(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function l(e){return e.children}function f(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function p(e){return"[object Array]"===Object.prototype.toString.call(e)}!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument("boot"),n=new WeakMap,r="object"==typeof DOMException?Error:DOMException,o=Object.defineProperty,i=Array.prototype.forEach,s=/@import.+?;?$/gm,c=CSSStyleSheet.prototype;c.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},c.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var a=new WeakMap,u=new WeakMap,l=new WeakMap,f=A.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(j(this),"string"==typeof e){var t=this,n=a.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),a.set(t,n.sheet),u.get(t).forEach(function(e){e.isConnected()&&P(t,O(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return j(this),a.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;j(t);var n=arguments,r=a.get(t),o=u.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=O(t,r).sheet;o[e].apply(o,n)}}),i}}),o(A,Symbol.hasInstance,{configurable:!0,value:C});var p={childList:!0,subtree:!0},d=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=_.prototype;if(m.isConnected=function(){var e=h.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},m.connect=function(){var e=R(this);y.get(this).observe(e,p),v.get(this).length>0&&T(this),N(e,function(e){x(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(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))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=O(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&T(t)},window.CSSStyleSheet=A,k(Document),"ShadowRoot"in window){k(ShadowRoot);var b=Element.prototype,g=b.attachShadow;b.attachShadow=function(e){var t=g.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var S=x(document);S.isConnected()?S.connect():document.addEventListener("DOMContentLoaded",S.connect.bind(S))}function w(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(f.isPrototypeOf(e)||c.isPrototypeOf(e))}function E(e){return"object"==typeof e&&c.isPrototypeOf(e)}function O(e,t){return l.get(e).get(t)}function P(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=a.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function j(e){if(!a.has(e))throw new TypeError("Illegal invocation")}function A(){var e=this,n=document.createElement("style");t.body.appendChild(n),a.set(e,n.sheet),u.set(e,[]),l.set(e,new WeakMap)}function x(e){var t=d.get(e);return t||(t=new _(e),d.set(e,t)),t}function k(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return x(this).sheets},set:function(e){x(this).update(e)}})}function N(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 R(e){var t=h.get(e);return t instanceof Document?t.body:t}function T(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=R(e);r.disconnect(),n.forEach(function(n){t.appendChild(O(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){P(t,O(t,e))})}function _(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&&N(e,function(e){x(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 O(t,e)})}(n,t)&&T(n),e||N(t,function(e){x(e).disconnect()}))})}):r.disconnect()}))}}(),function(){var e="undefined"!=typeof window?window:global;if(void 0!==e.Reflect&&void 0!==e.customElements&&!e.customElements.hasOwnProperty("polyfillWrapFlushCallback")){var t=e.HTMLElement;e.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var d=/\B([A-Z])/g;function h(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function y(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function m(e){return!!/^class\s/.test(e.toString())||!1}function b(e,t,n){var r=Object.assign({merge:"uniqueMerge",default:null},n),o=m(e)?e:e.constructor,i=o[t],s=y(i)?0:Array.isArray(i)?1:2;if("none"===r.merge||2===s)return i;for(var c=0===s?Object.assign({},r.default):r.default,a=[i];o&&(o=o.__proto__)[t];)a.push(o[t]);var u=i;return u=0===s?a.reduce(function(e,t){return y(t)?Object.assign({},c,t,e):e},{}):a.reduce(function(e,t){return Array.isArray(t)&&e.push.apply(e,t),e},[]),Array.isArray(u)&&"uniqueMerge"===r.merge&&(u=Array.from(new Set(u)),y(c)&&u.forEach(function(e,t){y(e)&&(u[t]=Object.assign({},c,e))})),u||c}function g(e,t){e.hooks||(e.hooks={}),Object.entries(t).forEach(function(t){var n=t[0],r=t[1];e.hooks[n]||(e.hooks[n]=[]),e.hooks[n].push(r)})}function S(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===l)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var c=i.value;Array.isArray(c)&&o<e?n(c,o+1):t.push(c)}}(this,0),t}),S.f=l;var w={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},C=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,E={};function O(e){var t=e.parentNode;t&&t.removeChild(e)}function P(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=E[t])||n.call(E,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)f(n,null),f(r,e);else if("class"!==t||o)if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||A(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||A(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 A(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||C.test(t)?n.toString():n+"px"}var x=0,k=!1,N=!1,R=!1;function T(e,t,n,r,o){return e||t?(r&&r.constructor.isLightDOM&&(r.innerHTML=""),x++||(k=null!=n&&void 0!==n.ownerSVGElement,R=!1),p(t)?n?(M(n,t,R,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=_(0===n?e:null,t,r,o);i.push(s)})):(p(e)||e instanceof NodeList?[].concat(e).forEach(function(e,n){0===n?i=_(e,t,r,o):L(e,!1)}):i=_(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--x||(R=!1),i):null;var i,s}function _(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=k,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==(o=e.parentNode)||o.replaceChild(i,e)),L(e,!0))),i&&(i.prevProps={}),i;var a,l,f,p=t.nodeName;if(N="foreignObject"===p,k="svg"===p||!N&&k,p=String(p),(!e||!v(e,p))&&(l=p,(f=N||k?document.createElementNS("http://www.w3.org/2000/svg",l):document.createElement(l)).normalizedNodeName=l,"Component"===(null==(a=(i=f).constructor)?void 0:a.is)&&Object.assign(i.props,t.attributes),e)){for(var d;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(i,e)),L(e,!0)}var h=i.firstChild,y=i.prevProps,m=t.children;if(null==y){y=i.prevProps={};for(var b=i.attributes,g=b.length;g--;)y[b[g].name]=b[g].value}return!R&&m&&1===m.length&&"string"==typeof m[0]&&null!=h&&void 0!==h.splitText&&null==h.nextSibling?h.nodeValue!=m[0]&&(h.nodeValue=m[0]):(m&&m.length||null!=h)&&("Component"==i.constructor.is&&i.constructor.noSlot||M(i,m,R||null!=y.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,c=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(P(e,i,n[i],n[i]=void 0,N||k),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&P(e,i,n[i],n[i]=t[i],N||k);var a=u(i);e.props[a]=n[a]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(P(e,i,n[i],t[i],N||k),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var l=u(i);e.props[l]=n[l]=t[i]}else n[i]=t[i];c&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,y,0,r),i.props&&(i.props.children=t.children),k=s,N=c,i}function M(e,t,n,r,o){var i,s,c,a,u,l,f,p=e.childNodes,d=[],h={},y=0,m=0,b=p.length,g=0,S=t?t.length:0;if(0!==b)for(var w=0;w<b;w++){var C,E=p[w],P=E.prevProps,j=S&&P?P.key:null;null!=j?(y++,h[j]=E):(P||(void 0!==E.splitText?!n||(null==(C=E.nodeValue)?void 0:C.trim()):n))&&(d[g++]=E)}if(0!==S)for(var A=0;A<S;A++){if(u=null,a=t[A]){var x=a.key;if(null!=x)y&&void 0!==h[x]&&(u=h[x],h[x]=void 0,y--);else if(m<g)for(i=m;i<g;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=a)||"number"==typeof f?void 0!==l.splitText:v(l,f.nodeName))){u=s,d[i]=void 0,i===g-1&&g--,i===m&&m++;break}}u=_(u,a,r,o),c=p[A],u&&u!==e&&u!==c&&(null==c?e.appendChild(u):u===c.nextSibling?O(c):e.insertBefore(u,c))}if(y)for(var k in h)void 0!==h[k]&&L(h[k],!1);for(;m<=g;)void 0!==(u=d[g--])&&L(u,!1)}function L(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;L(e,!0),e=n}}(e)}var F={mixin:{},globalCSS:[]},I={define:function(e){e.prototype.formAssociatedCallback=function(e){this._form=e,this._form&&this._form.addEventListener("formdata",this.handleFormData.bind(this))}},initial:function(e){e.getFieldValue||(e.getFieldValue=function(){var t,n={};return e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){n[e.name]=e.value}),n}),e.resetFieldValue||(e.resetFieldValue=function(){var t;e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){e.value=""})}),e.handleFormData||(e.handleFormData=function(t){var n=t.formData;if(n){var r=e.getFieldValue();Object.entries(r).forEach(function(e){n.append(e[0],e[1])})}}),e._internals=e.attachInternals()},connected:function(e){}};function D(e,t){Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):customElements.define(e,t)}function V(e,t){var n=Object.assign({formAssociated:!1},t).formAssociated;return function(t){n&&(n&&(g(t,I),t.formAssociated=!0),function(e,t){var n=e._hooks?e._hooks:b(e,"hooks")||{};if(m(e)||(e._hooks=n),t in n){var r=n[t];Array.isArray(r)&&r.forEach(function(n){try{n.call(e,e)}catch(n){console.warn("Error occurred while executing hook function "+(m(e)?e.constructor.name:e.name)+"/"+t+":",n)}})}}(t,"define")),D(e,t)}}var H=V,W={initial:function(e){Object.defineProperty(e,"ref",{get:function(){return e._ref||(e._ref=new Proxy({current:void 0},{set:function(t,n,r,o){return"current"===n&&e.fire("refAttached",{ref:r,target:e},{bubbles:!0,composed:!0}),Reflect.set(t,n,r,o)}})),e._ref}}),e._onRefAttached=function(t){var n=t.detail;n.target!==e&&e.props.ref&&(e.props.ref.current=n.ref)},e.addEventListener("refAttached",e._onRefAttached)},disconnected:function(e){e.removeEventListener("refAttached",e._onRefAttached)}},q=0,U=new WeakMap,B=/*#__PURE__*/function(n){function o(){var e;return(e=n.call(this)||this).elementId=void 0,e.isInstalled=void 0,e.inject=void 0,e.injection=void 0,e.renderRoot=void 0,e.rootElement=void 0,e._hooks=void 0,e._ref=null,e.state=void 0,e.updateQueued=!1,e.handleProps(),g(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),W),e.executeHooks("initial"),e.elementId=q++,e.isInstalled=!1,e.rootElement=null,e}r(o,n),o.define=function(e){D(e,this)};var i,s,c,a=o.prototype;return a.executeHooks=function(e){var t=this;if(e in this.hooks){var n=this.hooks[e];Array.isArray(n)&&n.forEach(function(n){try{n.call(t,t)}catch(n){console.warn("Error occurred while executing hook function "+t.constructor.name+"/"+e+":",n)}})}},a.handleProps=function(){this.constructor.defaultProps=b(this,"defaultProps",{default:{}})||{},this.constructor.propTypes=b(this,"propTypes",{default:{}})||{},this.constructor.reflectProps=b(this,"reflectProps",{default:{}})||{};var e=b(this,"props",{default:{},merge:"uniqueMerge"});if(this.constructor.props)for(var t in e){var n=e[t];this.constructor.defaultProps[t]=n.default,this.constructor.propTypes[t]=n.type,this.constructor.reflectProps[t]=n.reflect}this.props=Object.assign({},this.constructor.defaultProps,this.props)},a.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];if(r.changed){var o=this.getTypeValueOfProp(e,n),i=this.getTypeValueOfProp(e,t);r.changed.call(this,o,i)}}},a.setState=function(e,t){var n=this;if(void 0===t&&(t=!1),"object"!=typeof e)throw new Error("takes an object of state variables to update");Object.keys(e).forEach(function(t){return n.state[t]=e[t]}),t||this.queuedUpdate()},a.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!F.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){e.hasOwnProperty(t)||Object.defineProperty(e,t,{get:function(){return F.mixin[t]}})};for(var o in F.mixin)r(o)},a.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",delegatesFocus:!0})},a.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||U.has(this.constructor))this.renderRoot.adoptedStyleSheets=U.get(this.constructor);else{var e=this.constructor.css;if(e){var t=[];t="string"==typeof e?[h(e)]:p(e)?e.map(function(e){return"string"==typeof e?h(e):e.default&&"string"==typeof e.default?h(e.default):e}):e.default&&"string"==typeof e.default?[h(e.default)]:[e],t=[].concat(F.globalCSS,t),this.renderRoot.adoptedStyleSheets=t,U.set(this.constructor,t)}else F.globalCSS.length&&(this.renderRoot.adoptedStyleSheets=F.globalCSS)}},a.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)}},a.connectedCallback=function(){var t=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),e.setActiveComponent(this),this.beforeRender(),this.fire("beforeRender",this);var n,r=this.render(this.props,this.store);this.appendStyleVNode(r),this.rendered(r),e.clearActiveComponent(),this.rootElement=T(null,r,null,this,!1),p(this.rootElement)?this.rootElement.forEach(function(e){var n;null==(n=t.renderRoot)||n.appendChild(e)}):this.rootElement&&(null==(n=this.renderRoot)||n.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0,Promise.resolve().then(function(){t.ready(),t.fire("ready",t)}),this.executeHooks("connected")},a.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1,this.executeHooks("disconnected")},a.update=function(t){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),e.setActiveComponent(this),this.beforeRender(),this.fire("beforeRender",this);var n=this.render(this.props,this.store);this.appendStyleVNode(n),this.rendered(n),e.clearActiveComponent(null),this.rootElement=T(this.rootElement,n,this.renderRoot,this,!!t),this.updated(),this.fire("updated",this)},a.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},a.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()},a.updateSelf=function(){this.update(!0)},a.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},a.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},a.attrsToProps=function(){var e=this;if(!this.props.ignoreAttrs){var t=this;t.props.css=t.getAttribute("css");var n=this.constructor.propTypes;n&&Object.keys(n).forEach(function(n){var r=t.getAttribute(n.replace(d,"-$1").toLowerCase());t.props[n]=null!==r?e.getTypeValueOfProp(n,r):t.constructor.defaultProps&&t.constructor.defaultProps.hasOwnProperty(n)?t.constructor.defaultProps[n]:null})}},a.getTypeValueOfProp=function(e,t){for(var n=this.constructor.propTypes,r=p(n[e])?n[e]:[n[e]],o=0;o<r.length;o++)switch(r[o]){case String:return t;case Number:return Number(t);case Boolean:return Boolean("false"!==t&&"0"!==t);case Array:case Object:try{return JSON.parse(t)}catch(n){console.warn("The "+e+" object prop does not comply with the JSON specification, the incorrect string is ["+t+"].")}}},a.fire=function(e,t,n){var r=Object.assign({bubbles:!1,composed:!1},n),o=r.bubbles,i=r.composed,s=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];s?s(new CustomEvent(e,{detail:t,bubbles:o,composed:i})):this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:o,composed:i}))},a.install=function(){},a.installed=function(){},a.ready=function(){},a.uninstall=function(){},a.beforeUpdate=function(){},a.updated=function(){},a.beforeRender=function(){},a.rendered=function(e){},a.receiveProps=function(){},i=o,c=[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}],(s=[{key:"ref",get:function(){}},{key:"hooks",get:function(){return this._hooks||(this._hooks=b(this,"hooks")||{}),this._hooks}}])&&t(i.prototype,s),c&&t(i,c),Object.defineProperty(i,"prototype",{writable:!1}),o}(/*#__PURE__*/c(HTMLElement));B.is="Component",B.defaultProps=void 0,B.reflectProps=void 0,B.propTypes=void 0,B.css=void 0,B.isLightDOM=void 0,B.noSlot=void 0,B.hooks=void 0,B.props={},B.formAssociated=!0;var $=/*#__PURE__*/function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this)._form=null,t._inputs=[],t._internals=null,t}r(t,e);var n=t.prototype;return n.formAssociatedCallback=function(e){},n.handleFormData=function(e){},n.getFieldValue=function(){},n.handleField=function(e){},n.formDisabledCallback=function(){},n.formResetCallback=function(){},n.formStateRestoreCallback=function(e,t){},t}(B);$.formAssociated=!1;var J={}.hasOwnProperty;function Q(){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=Q.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)J.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var z={};Object.defineProperty(exports,"Signal",{enumerable:!0,get:function(){return e.Signal}}),Object.defineProperty(exports,"batch",{enumerable:!0,get:function(){return e.batch}}),Object.defineProperty(exports,"clearActiveComponent",{enumerable:!0,get:function(){return e.clearActiveComponent}}),Object.defineProperty(exports,"computed",{enumerable:!0,get:function(){return e.computed}}),Object.defineProperty(exports,"effect",{enumerable:!0,get:function(){return e.effect}}),Object.defineProperty(exports,"getActiveComponent",{enumerable:!0,get:function(){return e.getActiveComponent}}),Object.defineProperty(exports,"setActiveComponent",{enumerable:!0,get:function(){return e.setActiveComponent}}),Object.defineProperty(exports,"signal",{enumerable:!0,get:function(){return e.signal}}),Object.defineProperty(exports,"signalObject",{enumerable:!0,get:function(){return e.signalObject}}),exports.Component=B,exports.FormAssociatedComponent=$,exports.WeElement=B,exports.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}}},exports.classNames=Q,exports.cloneElement=function(e,t){var r=[].slice.call(arguments,2);return S(e.nodeName,n({},e.attributes,t),r.length>0?r.flat():e.children)},exports.createElement=S,exports.createRef=function(){return{}},exports.css=function(e){var t=[].slice.call(arguments,1),n="";if(e.forEach(function(e,r){if(void 0!==t[r]&&"string"!=typeof t[r]&&"number"!=typeof t[r])throw new Error("Unsupported value in CSS: "+t[r]);n+=e+(t[r]||"")}),z[n])return z[n];var r=new CSSStyleSheet;return r.replaceSync(n),z[n]=r,r},exports.define=D,exports.defineElement=D,exports.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:Q.apply(void 0,t)}},exports.globalCSS=function(e){F.globalCSS.includes(e)||F.globalCSS.push(e)},exports.h=S,exports.mixin=function(e){Object.assign(F.mixin,e)},exports.registerDirective=function(e,t){E["o-"+e]=t},exports.render=function(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),T(null,e,t,null,!1)},exports.tag=V,exports.version="7.6.18",exports.webcomponent=H;
//# sourceMappingURL=omi.js.map

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

import"weakmap-polyfill";import{setActiveComponent as e,clearActiveComponent as t}from"reactive-signal";export{Signal,batch,clearActiveComponent,computed,effect,getActiveComponent,setActiveComponent,signal,signalObject}from"reactive-signal";function n(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 r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function a(e,t,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o},a.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 a(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function f(e){return e.children}function p(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function d(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,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=new WeakMap,u=new WeakMap,l=new WeakMap,f=j.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(A(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,O(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return A(this),c.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;A(t);var n=arguments,r=c.get(t),o=u.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=O(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=x.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=T(this);y.get(this).observe(e,p),v.get(this).length>0&&_(this),R(e,function(e){k(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=O(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&_(t)},window.CSSStyleSheet=j,N(Document),"ShadowRoot"in window){N(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=k(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)||a.isPrototypeOf(e))}function C(e){return"object"==typeof e&&a.isPrototypeOf(e)}function O(e,t){return l.get(e).get(t)}function P(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=c.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function A(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),u.set(e,[]),l.set(e,new WeakMap)}function k(e){var t=d.get(e);return t||(t=new x(e),d.set(e,t)),t}function N(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(e){k(this).update(e)}})}function R(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 T(e){var t=h.get(e);return t instanceof Document?t.body:t}function _(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=T(e);r.disconnect(),n.forEach(function(n){t.appendChild(O(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){P(t,O(t,e))})}function x(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&&R(e,function(e){k(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 O(t,e)})}(n,t)&&_(n),e||R(t,function(e){k(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 h=/\B([A-Z])/g;function v(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function y(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function m(){return{}}function g(e,t,n){return{configurable:!0,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}function b(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function S(e){return!!/^class\s/.test(e.toString())||!1}function w(e,t,n){var r=Object.assign({merge:"uniqueMerge",default:null},n),o=S(e)?e:e.constructor,i=o[t],s=b(i)?0:Array.isArray(i)?1:2;if("none"===r.merge||2===s)return i;for(var a=0===s?Object.assign({},r.default):r.default,c=[i];o&&(o=o.__proto__)[t];)c.push(o[t]);var u=i;return u=0===s?c.reduce(function(e,t){return b(t)?Object.assign({},a,t,e):e},{}):c.reduce(function(e,t){return Array.isArray(t)&&e.push.apply(e,t),e},[]),Array.isArray(u)&&"uniqueMerge"===r.merge&&(u=Array.from(new Set(u)),b(a)&&u.forEach(function(e,t){b(e)&&(u[t]=Object.assign({},a,e))})),u||a}function E(e,t){e.hooks||(e.hooks={}),Object.entries(t).forEach(function(t){var n=t[0],r=t[1];e.hooks[n]||(e.hooks[n]=[]),e.hooks[n].push(r)})}function C(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===f)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}function O(e,t){var n=[].slice.call(arguments,2);return C(e.nodeName,r({},e.attributes,t),n.length>0?n.flat():e.children)}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var a=i.value;Array.isArray(a)&&o<e?n(a,o+1):t.push(a)}}(this,0),t}),C.f=f;var P={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},A=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,j={};function k(e,t){j["o-"+e]=t}function N(e){var t=e.parentNode;t&&t.removeChild(e)}function R(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=j[t])||n.call(j,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)p(n,null),p(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||_(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||_(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=(P[i]||i in e?i:t).slice(2),n?r||e.addEventListener(t,T,o):e.removeEventListener(t,T,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,a=null==(s=e.constructor.reflectProps)?void 0:s[t];a&&e.setAttribute(t,"function"==typeof a?a(r):r)}else e.setAttribute(t,r)}else e.className=r||""}function T(e){return this._listeners[e.type](e)}function _(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||A.test(t)?n.toString():n+"px"}var x=0,M=!1,L=!1,F=!1;function I(e,t,n,r,o){return e||t?(r&&r.constructor.isLightDOM&&(r.innerHTML=""),x++||(M=null!=n&&void 0!==n.ownerSVGElement,F=!1),d(t)?n?(V(n,t,F,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=D(0===n?e:null,t,r,o);i.push(s)})):(d(e)||e instanceof NodeList?[].concat(e).forEach(function(e,n){0===n?i=D(e,t,r,o):H(e,!1)}):i=D(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--x||(F=!1),i):null;var i,s}function D(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=M,a=L;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)),H(e,!0))),i&&(i.prevProps={}),i;var c,u,f,p=t.nodeName;if(L="foreignObject"===p,M="svg"===p||!L&&M,p=String(p),(!e||!y(e,p))&&(u=p,(f=L||M?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u)).normalizedNodeName=u,"Component"===(null==(c=(i=f).constructor)?void 0:c.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)),H(e,!0)}var h=i.firstChild,v=i.prevProps,m=t.children;if(null==v){v=i.prevProps={};for(var g=i.attributes,b=g.length;b--;)v[g[b].name]=g[b].value}return!F&&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||V(i,m,F||null!=v.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,a=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(R(e,i,n[i],n[i]=void 0,L||M),a&&delete e.props[i]);for(i in t)if(a&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&R(e,i,n[i],n[i]=t[i],L||M);var c=l(i);e.props[c]=n[c]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(R(e,i,n[i],t[i],L||M),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var u=l(i);e.props[u]=n[u]=t[i]}else n[i]=t[i];a&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,v,0,r),i.props&&(i.props.children=t.children),M=s,L=a,i}function V(e,t,n,r,o){var i,s,a,c,u,l,f,p=e.childNodes,d=[],h={},v=0,m=0,g=p.length,b=0,S=t?t.length:0;if(0!==g)for(var w=0;w<g;w++){var E,C=p[w],O=C.prevProps,P=S&&O?O.key:null;null!=P?(v++,h[P]=C):(O||(void 0!==C.splitText?!n||(null==(E=C.nodeValue)?void 0:E.trim()):n))&&(d[b++]=C)}if(0!==S)for(var A=0;A<S;A++){if(u=null,c=t[A]){var j=c.key;if(null!=j)v&&void 0!==h[j]&&(u=h[j],h[j]=void 0,v--);else if(m<b)for(i=m;i<b;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=c)||"number"==typeof f?void 0!==l.splitText:y(l,f.nodeName))){u=s,d[i]=void 0,i===b-1&&b--,i===m&&m++;break}}u=D(u,c,r,o),a=p[A],u&&u!==e&&u!==a&&(null==a?e.appendChild(u):u===a.nextSibling?N(a):e.insertBefore(u,a))}if(v)for(var k in h)void 0!==h[k]&&H(h[k],!1);for(;m<=b;)void 0!==(u=d[b--])&&H(u,!1)}function H(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||N(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;H(e,!0),e=n}}(e)}var W={mixin:{},globalCSS:[]};function U(e){Object.assign(W.mixin,e)}function q(e){W.globalCSS.includes(e)||W.globalCSS.push(e)}var B={define:function(e){e.prototype.formAssociatedCallback=function(e){this._form=e,this._form&&this._form.addEventListener("formdata",this.handleFormData.bind(this))}},initial:function(e){e.getFieldValue||(e.getFieldValue=function(){var t,n={};return e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){n[e.name]=e.value}),n}),e.resetFieldValue||(e.resetFieldValue=function(){var t;e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){e.value=""})}),e.handleFormData||(e.handleFormData=function(t){var n=t.formData;if(n){var r=e.getFieldValue();Object.entries(r).forEach(function(e){n.append(e[0],e[1])})}}),e._internals=e.attachInternals()},connected:function(e){}};function $(e,t){Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):customElements.define(e,t)}function J(e,t){var n=Object.assign({formAssociated:!1},t).formAssociated;return function(t){n&&(n&&(E(t,B),t.formAssociated=!0),function(e,t){var n=e._hooks?e._hooks:w(e,"hooks")||{};if(S(e)||(e._hooks=n),t in n){var r=n[t];Array.isArray(r)&&r.forEach(function(n){try{n.call(e,e)}catch(n){console.warn("Error occurred while executing hook function "+(S(e)?e.constructor.name:e.name)+"/"+t+":",n)}})}}(t,"define")),$(e,t)}}var Q=J,z={initial:function(e){Object.defineProperty(e,"ref",{get:function(){return e._ref||(e._ref=new Proxy({current:void 0},{set:function(t,n,r,o){return"current"===n&&e.fire("refAttached",{ref:r,target:e},{bubbles:!0,composed:!0}),Reflect.set(t,n,r,o)}})),e._ref}}),e._onRefAttached=function(t){var n=t.detail;n.target!==e&&e.props.ref&&(e.props.ref.current=n.ref)},e.addEventListener("refAttached",e._onRefAttached)},disconnected:function(e){e.removeEventListener("refAttached",e._onRefAttached)}},G=0,Z=new WeakMap,K=/*#__PURE__*/function(r){function i(){var e;return(e=r.call(this)||this).elementId=void 0,e.isInstalled=void 0,e.inject=void 0,e.injection=void 0,e.renderRoot=void 0,e.rootElement=void 0,e._hooks=void 0,e._ref=null,e.state=void 0,e.updateQueued=!1,e.handleProps(),E(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),z),e.executeHooks("initial"),e.elementId=G++,e.isInstalled=!1,e.rootElement=null,e}o(i,r),i.define=function(e){$(e,this)};var s,a,c,u=i.prototype;return u.executeHooks=function(e){var t=this;if(e in this.hooks){var n=this.hooks[e];Array.isArray(n)&&n.forEach(function(n){try{n.call(t,t)}catch(n){console.warn("Error occurred while executing hook function "+t.constructor.name+"/"+e+":",n)}})}},u.handleProps=function(){this.constructor.defaultProps=w(this,"defaultProps",{default:{}})||{},this.constructor.propTypes=w(this,"propTypes",{default:{}})||{},this.constructor.reflectProps=w(this,"reflectProps",{default:{}})||{};var e=w(this,"props",{default:{},merge:"uniqueMerge"});if(this.constructor.props)for(var t in e){var n=e[t];this.constructor.defaultProps[t]=n.default,this.constructor.propTypes[t]=n.type,this.constructor.reflectProps[t]=n.reflect}this.props=Object.assign({},this.constructor.defaultProps,this.props)},u.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];if(r.changed){var o=this.getTypeValueOfProp(e,n),i=this.getTypeValueOfProp(e,t);r.changed.call(this,o,i)}}},u.setState=function(e,t){var n=this;if(void 0===t&&(t=!1),"object"!=typeof e)throw new Error("takes an object of state variables to update");Object.keys(e).forEach(function(t){return n.state[t]=e[t]}),t||this.queuedUpdate()},u.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!W.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){e.hasOwnProperty(t)||Object.defineProperty(e,t,{get:function(){return W.mixin[t]}})};for(var o in W.mixin)r(o)},u.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",delegatesFocus:!0})},u.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||Z.has(this.constructor))this.renderRoot.adoptedStyleSheets=Z.get(this.constructor);else{var e=this.constructor.css;if(e){var t=[];t="string"==typeof e?[v(e)]:d(e)?e.map(function(e){return"string"==typeof e?v(e):e.default&&"string"==typeof e.default?v(e.default):e}):e.default&&"string"==typeof e.default?[v(e.default)]:[e],t=[].concat(W.globalCSS,t),this.renderRoot.adoptedStyleSheets=t,Z.set(this.constructor,t)}else W.globalCSS.length&&(this.renderRoot.adoptedStyleSheets=W.globalCSS)}},u.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)}},u.connectedCallback=function(){var n=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),e(this),this.beforeRender(),this.fire("beforeRender",this);var r,o=this.render(this.props,this.store);this.appendStyleVNode(o),this.rendered(o),t(),this.rootElement=I(null,o,null,this,!1),d(this.rootElement)?this.rootElement.forEach(function(e){var t;null==(t=n.renderRoot)||t.appendChild(e)}):this.rootElement&&(null==(r=this.renderRoot)||r.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0,Promise.resolve().then(function(){n.ready(),n.fire("ready",n)}),this.executeHooks("connected")},u.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1,this.executeHooks("disconnected")},u.update=function(n){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),e(this),this.beforeRender(),this.fire("beforeRender",this);var r=this.render(this.props,this.store);this.appendStyleVNode(r),this.rendered(r),t(null),this.rootElement=I(this.rootElement,r,this.renderRoot,this,!!n),this.updated(),this.fire("updated",this)},u.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},u.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()},u.updateSelf=function(){this.update(!0)},u.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},u.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},u.attrsToProps=function(){var e=this;if(!this.props.ignoreAttrs){var t=this;t.props.css=t.getAttribute("css");var n=this.constructor.propTypes;n&&Object.keys(n).forEach(function(n){var r=t.getAttribute(n.replace(h,"-$1").toLowerCase());t.props[n]=null!==r?e.getTypeValueOfProp(n,r):t.constructor.defaultProps&&t.constructor.defaultProps.hasOwnProperty(n)?t.constructor.defaultProps[n]:null})}},u.getTypeValueOfProp=function(e,t){for(var n=this.constructor.propTypes,r=d(n[e])?n[e]:[n[e]],o=0;o<r.length;o++)switch(r[o]){case String:return t;case Number:return Number(t);case Boolean:return Boolean("false"!==t&&"0"!==t);case Array:case Object:try{return JSON.parse(t)}catch(n){console.warn("The "+e+" object prop does not comply with the JSON specification, the incorrect string is ["+t+"].")}}},u.fire=function(e,t,n){var r=Object.assign({bubbles:!1,composed:!1},n),o=r.bubbles,i=r.composed,s=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];s?s(new CustomEvent(e,{detail:t,bubbles:o,composed:i})):this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:o,composed:i}))},u.install=function(){},u.installed=function(){},u.ready=function(){},u.uninstall=function(){},u.beforeUpdate=function(){},u.updated=function(){},u.beforeRender=function(){},u.rendered=function(e){},u.receiveProps=function(){},s=i,c=[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}],(a=[{key:"ref",get:function(){}},{key:"hooks",get:function(){return this._hooks||(this._hooks=w(this,"hooks")||{}),this._hooks}}])&&n(s.prototype,a),c&&n(s,c),Object.defineProperty(s,"prototype",{writable:!1}),i}(/*#__PURE__*/c(HTMLElement));K.is="Component",K.defaultProps=void 0,K.reflectProps=void 0,K.propTypes=void 0,K.css=void 0,K.isLightDOM=void 0,K.noSlot=void 0,K.hooks=void 0,K.props={},K.formAssociated=!0;var X=/*#__PURE__*/function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this)._form=null,t._inputs=[],t._internals=null,t}o(t,e);var n=t.prototype;return n.formAssociatedCallback=function(e){},n.handleFormData=function(e){},n.getFieldValue=function(){},n.handleField=function(e){},n.formDisabledCallback=function(){},n.formResetCallback=function(){},n.formStateRestoreCallback=function(e,t){},t}(K);function Y(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),I(null,e,t,null,!1)}X.formAssociated=!1;var ee={}.hasOwnProperty;function te(){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=te.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)ee.call(r,s)&&r[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 re={};function oe(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]||"")}),re[n])return re[n];var r=new CSSStyleSheet;return r.replaceSync(n),re[n]=r,r}var ie="7.6.17";export{K as Component,X as FormAssociatedComponent,K as WeElement,g as bind,te as classNames,O as cloneElement,C as createElement,m as createRef,oe as css,$ as define,$ as defineElement,ne as extractClass,q as globalCSS,C as h,U as mixin,k as registerDirective,Y as render,J as tag,ie as version,Q as webcomponent};
import"weakmap-polyfill";import{setActiveComponent as e,clearActiveComponent as t}from"reactive-signal";export{Signal,batch,clearActiveComponent,computed,effect,getActiveComponent,setActiveComponent,signal,signalObject}from"reactive-signal";function n(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 r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function a(e,t,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o},a.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 a(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function f(e){return e.children}function p(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function d(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,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=new WeakMap,u=new WeakMap,l=new WeakMap,f=j.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(A(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,O(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return A(this),c.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;A(t);var n=arguments,r=c.get(t),o=u.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=O(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=x.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=T(this);y.get(this).observe(e,p),v.get(this).length>0&&_(this),R(e,function(e){k(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=O(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&_(t)},window.CSSStyleSheet=j,N(Document),"ShadowRoot"in window){N(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=k(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)||a.isPrototypeOf(e))}function C(e){return"object"==typeof e&&a.isPrototypeOf(e)}function O(e,t){return l.get(e).get(t)}function P(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=c.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function A(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),u.set(e,[]),l.set(e,new WeakMap)}function k(e){var t=d.get(e);return t||(t=new x(e),d.set(e,t)),t}function N(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(e){k(this).update(e)}})}function R(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 T(e){var t=h.get(e);return t instanceof Document?t.body:t}function _(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=T(e);r.disconnect(),n.forEach(function(n){t.appendChild(O(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){P(t,O(t,e))})}function x(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&&R(e,function(e){k(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 O(t,e)})}(n,t)&&_(n),e||R(t,function(e){k(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 h=/\B([A-Z])/g;function v(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function y(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function m(){return{}}function g(e,t,n){return{configurable:!0,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}function b(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function S(e){return!!/^class\s/.test(e.toString())||!1}function w(e,t,n){var r=Object.assign({merge:"uniqueMerge",default:null},n),o=S(e)?e:e.constructor,i=o[t],s=b(i)?0:Array.isArray(i)?1:2;if("none"===r.merge||2===s)return i;for(var a=0===s?Object.assign({},r.default):r.default,c=[i];o&&(o=o.__proto__)[t];)c.push(o[t]);var u=i;return u=0===s?c.reduce(function(e,t){return b(t)?Object.assign({},a,t,e):e},{}):c.reduce(function(e,t){return Array.isArray(t)&&e.push.apply(e,t),e},[]),Array.isArray(u)&&"uniqueMerge"===r.merge&&(u=Array.from(new Set(u)),b(a)&&u.forEach(function(e,t){b(e)&&(u[t]=Object.assign({},a,e))})),u||a}function E(e,t){e.hooks||(e.hooks={}),Object.entries(t).forEach(function(t){var n=t[0],r=t[1];e.hooks[n]||(e.hooks[n]=[]),e.hooks[n].push(r)})}function C(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===f)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}function O(e,t){var n=[].slice.call(arguments,2);return C(e.nodeName,r({},e.attributes,t),n.length>0?n.flat():e.children)}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var a=i.value;Array.isArray(a)&&o<e?n(a,o+1):t.push(a)}}(this,0),t}),C.f=f;var P={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},A=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,j={};function k(e,t){j["o-"+e]=t}function N(e){var t=e.parentNode;t&&t.removeChild(e)}function R(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=j[t])||n.call(j,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)p(n,null),p(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||_(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||_(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=(P[i]||i in e?i:t).slice(2),n?r||e.addEventListener(t,T,o):e.removeEventListener(t,T,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,a=null==(s=e.constructor.reflectProps)?void 0:s[t];a&&e.setAttribute(t,"function"==typeof a?a(r):r)}else e.setAttribute(t,r)}else e.className=r||""}function T(e){return this._listeners[e.type](e)}function _(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||A.test(t)?n.toString():n+"px"}var x=0,M=!1,L=!1,F=!1;function I(e,t,n,r,o){return e||t?(r&&r.constructor.isLightDOM&&(r.innerHTML=""),x++||(M=null!=n&&void 0!==n.ownerSVGElement,F=!1),d(t)?n?(V(n,t,F,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=D(0===n?e:null,t,r,o);i.push(s)})):(d(e)||e instanceof NodeList?[].concat(e).forEach(function(e,n){0===n?i=D(e,t,r,o):H(e,!1)}):i=D(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--x||(F=!1),i):null;var i,s}function D(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=M,a=L;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)),H(e,!0))),i&&(i.prevProps={}),i;var c,u,f,p=t.nodeName;if(L="foreignObject"===p,M="svg"===p||!L&&M,p=String(p),(!e||!y(e,p))&&(u=p,(f=L||M?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u)).normalizedNodeName=u,"Component"===(null==(c=(i=f).constructor)?void 0:c.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)),H(e,!0)}var h=i.firstChild,v=i.prevProps,m=t.children;if(null==v){v=i.prevProps={};for(var g=i.attributes,b=g.length;b--;)v[g[b].name]=g[b].value}return!F&&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||V(i,m,F||null!=v.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,a=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(R(e,i,n[i],n[i]=void 0,L||M),a&&delete e.props[i]);for(i in t)if(a&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&R(e,i,n[i],n[i]=t[i],L||M);var c=l(i);e.props[c]=n[c]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(R(e,i,n[i],t[i],L||M),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var u=l(i);e.props[u]=n[u]=t[i]}else n[i]=t[i];a&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,v,0,r),i.props&&(i.props.children=t.children),M=s,L=a,i}function V(e,t,n,r,o){var i,s,a,c,u,l,f,p=e.childNodes,d=[],h={},v=0,m=0,g=p.length,b=0,S=t?t.length:0;if(0!==g)for(var w=0;w<g;w++){var E,C=p[w],O=C.prevProps,P=S&&O?O.key:null;null!=P?(v++,h[P]=C):(O||(void 0!==C.splitText?!n||(null==(E=C.nodeValue)?void 0:E.trim()):n))&&(d[b++]=C)}if(0!==S)for(var A=0;A<S;A++){if(u=null,c=t[A]){var j=c.key;if(null!=j)v&&void 0!==h[j]&&(u=h[j],h[j]=void 0,v--);else if(m<b)for(i=m;i<b;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=c)||"number"==typeof f?void 0!==l.splitText:y(l,f.nodeName))){u=s,d[i]=void 0,i===b-1&&b--,i===m&&m++;break}}u=D(u,c,r,o),a=p[A],u&&u!==e&&u!==a&&(null==a?e.appendChild(u):u===a.nextSibling?N(a):e.insertBefore(u,a))}if(v)for(var k in h)void 0!==h[k]&&H(h[k],!1);for(;m<=b;)void 0!==(u=d[b--])&&H(u,!1)}function H(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||N(e),function(e){var t;for(e=null==(t=e)?void 0:t.lastChild;e;){var n=e.previousSibling;H(e,!0),e=n}}(e)}var W={mixin:{},globalCSS:[]};function U(e){Object.assign(W.mixin,e)}function q(e){W.globalCSS.includes(e)||W.globalCSS.push(e)}var B={define:function(e){e.prototype.formAssociatedCallback=function(e){this._form=e,this._form&&this._form.addEventListener("formdata",this.handleFormData.bind(this))}},initial:function(e){e.getFieldValue||(e.getFieldValue=function(){var t,n={};return e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){n[e.name]=e.value}),n}),e.resetFieldValue||(e.resetFieldValue=function(){var t;e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){e.value=""})}),e.handleFormData||(e.handleFormData=function(t){var n=t.formData;if(n){var r=e.getFieldValue();Object.entries(r).forEach(function(e){n.append(e[0],e[1])})}}),e._internals=e.attachInternals()},connected:function(e){}};function $(e,t){Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):customElements.define(e,t)}function J(e,t){var n=Object.assign({formAssociated:!1},t).formAssociated;return function(t){n&&(n&&(E(t,B),t.formAssociated=!0),function(e,t){var n=e._hooks?e._hooks:w(e,"hooks")||{};if(S(e)||(e._hooks=n),t in n){var r=n[t];Array.isArray(r)&&r.forEach(function(n){try{n.call(e,e)}catch(n){console.warn("Error occurred while executing hook function "+(S(e)?e.constructor.name:e.name)+"/"+t+":",n)}})}}(t,"define")),$(e,t)}}var Q=J,z={initial:function(e){Object.defineProperty(e,"ref",{get:function(){return e._ref||(e._ref=new Proxy({current:void 0},{set:function(t,n,r,o){return"current"===n&&e.fire("refAttached",{ref:r,target:e},{bubbles:!0,composed:!0}),Reflect.set(t,n,r,o)}})),e._ref}}),e._onRefAttached=function(t){var n=t.detail;n.target!==e&&e.props.ref&&(e.props.ref.current=n.ref)},e.addEventListener("refAttached",e._onRefAttached)},disconnected:function(e){e.removeEventListener("refAttached",e._onRefAttached)}},G=0,Z=new WeakMap,K=/*#__PURE__*/function(r){function i(){var e;return(e=r.call(this)||this).elementId=void 0,e.isInstalled=void 0,e.inject=void 0,e.injection=void 0,e.renderRoot=void 0,e.rootElement=void 0,e._hooks=void 0,e._ref=null,e.state=void 0,e.updateQueued=!1,e.handleProps(),E(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),z),e.executeHooks("initial"),e.elementId=G++,e.isInstalled=!1,e.rootElement=null,e}o(i,r),i.define=function(e){$(e,this)};var s,a,c,u=i.prototype;return u.executeHooks=function(e){var t=this;if(e in this.hooks){var n=this.hooks[e];Array.isArray(n)&&n.forEach(function(n){try{n.call(t,t)}catch(n){console.warn("Error occurred while executing hook function "+t.constructor.name+"/"+e+":",n)}})}},u.handleProps=function(){this.constructor.defaultProps=w(this,"defaultProps",{default:{}})||{},this.constructor.propTypes=w(this,"propTypes",{default:{}})||{},this.constructor.reflectProps=w(this,"reflectProps",{default:{}})||{};var e=w(this,"props",{default:{},merge:"uniqueMerge"});if(this.constructor.props)for(var t in e){var n=e[t];this.constructor.defaultProps[t]=n.default,this.constructor.propTypes[t]=n.type,this.constructor.reflectProps[t]=n.reflect}this.props=Object.assign({},this.constructor.defaultProps,this.props)},u.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];if(r.changed){var o=this.getTypeValueOfProp(e,n),i=this.getTypeValueOfProp(e,t);r.changed.call(this,o,i)}}},u.setState=function(e,t){var n=this;if(void 0===t&&(t=!1),"object"!=typeof e)throw new Error("takes an object of state variables to update");Object.keys(e).forEach(function(t){return n.state[t]=e[t]}),t||this.queuedUpdate()},u.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!W.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){e.hasOwnProperty(t)||Object.defineProperty(e,t,{get:function(){return W.mixin[t]}})};for(var o in W.mixin)r(o)},u.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",delegatesFocus:!0})},u.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||Z.has(this.constructor))this.renderRoot.adoptedStyleSheets=Z.get(this.constructor);else{var e=this.constructor.css;if(e){var t=[];t="string"==typeof e?[v(e)]:d(e)?e.map(function(e){return"string"==typeof e?v(e):e.default&&"string"==typeof e.default?v(e.default):e}):e.default&&"string"==typeof e.default?[v(e.default)]:[e],t=[].concat(W.globalCSS,t),this.renderRoot.adoptedStyleSheets=t,Z.set(this.constructor,t)}else W.globalCSS.length&&(this.renderRoot.adoptedStyleSheets=W.globalCSS)}},u.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)}},u.connectedCallback=function(){var n=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),e(this),this.beforeRender(),this.fire("beforeRender",this);var r,o=this.render(this.props,this.store);this.appendStyleVNode(o),this.rendered(o),t(),this.rootElement=I(null,o,null,this,!1),d(this.rootElement)?this.rootElement.forEach(function(e){var t;null==(t=n.renderRoot)||t.appendChild(e)}):this.rootElement&&(null==(r=this.renderRoot)||r.appendChild(this.rootElement)),this.installed(),this.fire("installed",this),this.isInstalled=!0,Promise.resolve().then(function(){n.ready(),n.fire("ready",n)}),this.executeHooks("connected")},u.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1,this.executeHooks("disconnected")},u.update=function(n){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),e(this),this.beforeRender(),this.fire("beforeRender",this);var r=this.render(this.props,this.store);this.appendStyleVNode(r),this.rendered(r),t(null),this.rootElement=I(this.rootElement,r,this.renderRoot,this,!!n),this.updated(),this.fire("updated",this)},u.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},u.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()},u.updateSelf=function(){this.update(!0)},u.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},u.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},u.attrsToProps=function(){var e=this;if(!this.props.ignoreAttrs){var t=this;t.props.css=t.getAttribute("css");var n=this.constructor.propTypes;n&&Object.keys(n).forEach(function(n){var r=t.getAttribute(n.replace(h,"-$1").toLowerCase());t.props[n]=null!==r?e.getTypeValueOfProp(n,r):t.constructor.defaultProps&&t.constructor.defaultProps.hasOwnProperty(n)?t.constructor.defaultProps[n]:null})}},u.getTypeValueOfProp=function(e,t){for(var n=this.constructor.propTypes,r=d(n[e])?n[e]:[n[e]],o=0;o<r.length;o++)switch(r[o]){case String:return t;case Number:return Number(t);case Boolean:return Boolean("false"!==t&&"0"!==t);case Array:case Object:try{return JSON.parse(t)}catch(n){console.warn("The "+e+" object prop does not comply with the JSON specification, the incorrect string is ["+t+"].")}}},u.fire=function(e,t,n){var r=Object.assign({bubbles:!1,composed:!1},n),o=r.bubbles,i=r.composed,s=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];s?s(new CustomEvent(e,{detail:t,bubbles:o,composed:i})):this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:o,composed:i}))},u.install=function(){},u.installed=function(){},u.ready=function(){},u.uninstall=function(){},u.beforeUpdate=function(){},u.updated=function(){},u.beforeRender=function(){},u.rendered=function(e){},u.receiveProps=function(){},s=i,c=[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}],(a=[{key:"ref",get:function(){}},{key:"hooks",get:function(){return this._hooks||(this._hooks=w(this,"hooks")||{}),this._hooks}}])&&n(s.prototype,a),c&&n(s,c),Object.defineProperty(s,"prototype",{writable:!1}),i}(/*#__PURE__*/c(HTMLElement));K.is="Component",K.defaultProps=void 0,K.reflectProps=void 0,K.propTypes=void 0,K.css=void 0,K.isLightDOM=void 0,K.noSlot=void 0,K.hooks=void 0,K.props={},K.formAssociated=!0;var X=/*#__PURE__*/function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this)._form=null,t._inputs=[],t._internals=null,t}o(t,e);var n=t.prototype;return n.formAssociatedCallback=function(e){},n.handleFormData=function(e){},n.getFieldValue=function(){},n.handleField=function(e){},n.formDisabledCallback=function(){},n.formResetCallback=function(){},n.formStateRestoreCallback=function(e,t){},t}(K);function Y(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),I(null,e,t,null,!1)}X.formAssociated=!1;var ee={}.hasOwnProperty;function te(){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=te.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)ee.call(r,s)&&r[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 re={};function oe(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]||"")}),re[n])return re[n];var r=new CSSStyleSheet;return r.replaceSync(n),re[n]=r,r}var ie="7.6.18";export{K as Component,X as FormAssociatedComponent,K as WeElement,g as bind,te as classNames,O as cloneElement,C as createElement,m as createRef,oe as css,$ as define,$ as defineElement,ne as extractClass,q as globalCSS,C as h,U as mixin,k as registerDirective,Y as render,J as tag,ie as version,Q as webcomponent};
//# sourceMappingURL=omi.module.js.map

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("weakmap-polyfill"),require("reactive-signal")):"function"==typeof define&&define.amd?define(["exports","weakmap-polyfill","reactive-signal"],t):t((e||self).Omi={},0,e.reactiveSignal)}(this,function(e,t,n){function r(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 o(){return o=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},o.apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function a(e,t,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o},a.apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return u=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 a(e,arguments,s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},u(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function p(e){return e.children}function d(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function h(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 a=new WeakMap,u=new WeakMap,l=new WeakMap,f=A.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(j(this),"string"==typeof e){var t=this,n=a.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),a.set(t,n.sheet),u.get(t).forEach(function(e){e.isConnected()&&P(t,O(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return j(this),a.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;j(t);var n=arguments,r=a.get(t),o=u.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=O(t,r).sheet;o[e].apply(o,n)}}),i}}),o(A,Symbol.hasInstance,{configurable:!0,value:C});var p={childList:!0,subtree:!0},d=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=_.prototype;if(m.isConnected=function(){var e=h.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},m.connect=function(){var e=T(this);y.get(this).observe(e,p),v.get(this).length>0&&x(this),R(e,function(e){k(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(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))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=O(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&x(t)},window.CSSStyleSheet=A,N(Document),"ShadowRoot"in window){N(ShadowRoot);var b=Element.prototype,g=b.attachShadow;b.attachShadow=function(e){var t=g.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var S=k(document);S.isConnected()?S.connect():document.addEventListener("DOMContentLoaded",S.connect.bind(S))}function w(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(f.isPrototypeOf(e)||c.isPrototypeOf(e))}function E(e){return"object"==typeof e&&c.isPrototypeOf(e)}function O(e,t){return l.get(e).get(t)}function P(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=a.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function j(e){if(!a.has(e))throw new TypeError("Illegal invocation")}function A(){var e=this,n=document.createElement("style");t.body.appendChild(n),a.set(e,n.sheet),u.set(e,[]),l.set(e,new WeakMap)}function k(e){var t=d.get(e);return t||(t=new _(e),d.set(e,t)),t}function N(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(e){k(this).update(e)}})}function R(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 T(e){var t=h.get(e);return t instanceof Document?t.body:t}function x(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=T(e);r.disconnect(),n.forEach(function(n){t.appendChild(O(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){P(t,O(t,e))})}function _(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&&R(e,function(e){k(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 O(t,e)})}(n,t)&&x(n),e||R(t,function(e){k(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 v=/\B([A-Z])/g;function y(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function b(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function g(e){return!!/^class\s/.test(e.toString())||!1}function S(e,t,n){var r=Object.assign({merge:"uniqueMerge",default:null},n),o=g(e)?e:e.constructor,i=o[t],s=b(i)?0:Array.isArray(i)?1:2;if("none"===r.merge||2===s)return i;for(var c=0===s?Object.assign({},r.default):r.default,a=[i];o&&(o=o.__proto__)[t];)a.push(o[t]);var u=i;return u=0===s?a.reduce(function(e,t){return b(t)?Object.assign({},c,t,e):e},{}):a.reduce(function(e,t){return Array.isArray(t)&&e.push.apply(e,t),e},[]),Array.isArray(u)&&"uniqueMerge"===r.merge&&(u=Array.from(new Set(u)),b(c)&&u.forEach(function(e,t){b(e)&&(u[t]=Object.assign({},c,e))})),u||c}function w(e,t){e.hooks||(e.hooks={}),Object.entries(t).forEach(function(t){var n=t[0],r=t[1];e.hooks[n]||(e.hooks[n]=[]),e.hooks[n].push(r)})}function C(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===p)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var c=i.value;Array.isArray(c)&&o<e?n(c,o+1):t.push(c)}}(this,0),t}),C.f=p;var E={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},O=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,P={};function j(e){var t=e.parentNode;t&&t.removeChild(e)}function A(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=P[t])||n.call(P,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)d(n,null),d(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||N(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||N(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=(E[i]||i in e?i:t).slice(2),n?r||e.addEventListener(t,k,o):e.removeEventListener(t,k,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 k(e){return this._listeners[e.type](e)}function N(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||O.test(t)?n.toString():n+"px"}var R=0,T=!1,x=!1,_=!1;function M(e,t,n,r,o){return e||t?(r&&r.constructor.isLightDOM&&(r.innerHTML=""),R++||(T=null!=n&&void 0!==n.ownerSVGElement,_=!1),h(t)?n?(F(n,t,_,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=L(0===n?e:null,t,r,o);i.push(s)})):(h(e)||e instanceof NodeList?[].concat(e).forEach(function(e,n){0===n?i=L(e,t,r,o):I(e,!1)}):i=L(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--R||(_=!1),i):null;var i,s}function L(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=T,c=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 a,u,l,p=t.nodeName;if(x="foreignObject"===p,T="svg"===p||!x&&T,p=String(p),(!e||!m(e,p))&&(u=p,(l=x||T?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u)).normalizedNodeName=u,"Component"===(null==(a=(i=l).constructor)?void 0:a.is)&&Object.assign(i.props,t.attributes),e)){for(var d;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(i,e)),I(e,!0)}var h=i.firstChild,v=i.prevProps,y=t.children;if(null==v){v=i.prevProps={};for(var b=i.attributes,g=b.length;g--;)v[b[g].name]=b[g].value}return!_&&y&&1===y.length&&"string"==typeof y[0]&&null!=h&&void 0!==h.splitText&&null==h.nextSibling?h.nodeValue!=y[0]&&(h.nodeValue=y[0]):(y&&y.length||null!=h)&&("Component"==i.constructor.is&&i.constructor.noSlot||F(i,y,_||null!=v.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,c=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(A(e,i,n[i],n[i]=void 0,x||T),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&A(e,i,n[i],n[i]=t[i],x||T);var a=f(i);e.props[a]=n[a]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(A(e,i,n[i],t[i],x||T),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var u=f(i);e.props[u]=n[u]=t[i]}else n[i]=t[i];c&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,v,0,r),i.props&&(i.props.children=t.children),T=s,x=c,i}function F(e,t,n,r,o){var i,s,c,a,u,l,f,p=e.childNodes,d=[],h={},v=0,y=0,b=p.length,g=0,S=t?t.length:0;if(0!==b)for(var w=0;w<b;w++){var C,E=p[w],O=E.prevProps,P=S&&O?O.key:null;null!=P?(v++,h[P]=E):(O||(void 0!==E.splitText?!n||(null==(C=E.nodeValue)?void 0:C.trim()):n))&&(d[g++]=E)}if(0!==S)for(var A=0;A<S;A++){if(u=null,a=t[A]){var k=a.key;if(null!=k)v&&void 0!==h[k]&&(u=h[k],h[k]=void 0,v--);else if(y<g)for(i=y;i<g;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=a)||"number"==typeof f?void 0!==l.splitText:m(l,f.nodeName))){u=s,d[i]=void 0,i===g-1&&g--,i===y&&y++;break}}u=L(u,a,r,o),c=p[A],u&&u!==e&&u!==c&&(null==c?e.appendChild(u):u===c.nextSibling?j(c):e.insertBefore(u,c))}if(v)for(var N in h)void 0!==h[N]&&I(h[N],!1);for(;y<=g;)void 0!==(u=d[g--])&&I(u,!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||j(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 D={mixin:{},globalCSS:[]},V={define:function(e){e.prototype.formAssociatedCallback=function(e){this._form=e,this._form&&this._form.addEventListener("formdata",this.handleFormData.bind(this))}},initial:function(e){e.getFieldValue||(e.getFieldValue=function(){var t,n={};return e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){n[e.name]=e.value}),n}),e.resetFieldValue||(e.resetFieldValue=function(){var t;e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){e.value=""})}),e.handleFormData||(e.handleFormData=function(t){var n=t.formData;if(n){var r=e.getFieldValue();Object.entries(r).forEach(function(e){n.append(e[0],e[1])})}}),e._internals=e.attachInternals()},connected:function(e){}};function H(e,t){Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):customElements.define(e,t)}function W(e,t){var n=Object.assign({formAssociated:!1},t).formAssociated;return function(t){n&&(n&&(w(t,V),t.formAssociated=!0),function(e,t){var n=e._hooks?e._hooks:S(e,"hooks")||{};if(g(e)||(e._hooks=n),t in n){var r=n[t];Array.isArray(r)&&r.forEach(function(n){try{n.call(e,e)}catch(n){console.warn("Error occurred while executing hook function "+(g(e)?e.constructor.name:e.name)+"/"+t+":",n)}})}}(t,"define")),H(e,t)}}var q=W,U={initial:function(e){Object.defineProperty(e,"ref",{get:function(){return e._ref||(e._ref=new Proxy({current:void 0},{set:function(t,n,r,o){return"current"===n&&e.fire("refAttached",{ref:r,target:e},{bubbles:!0,composed:!0}),Reflect.set(t,n,r,o)}})),e._ref}}),e._onRefAttached=function(t){var n=t.detail;n.target!==e&&e.props.ref&&(e.props.ref.current=n.ref)},e.addEventListener("refAttached",e._onRefAttached)},disconnected:function(e){e.removeEventListener("refAttached",e._onRefAttached)}},B=0,$=new WeakMap,J=/*#__PURE__*/function(e){function t(){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._hooks=void 0,t._ref=null,t.state=void 0,t.updateQueued=!1,t.handleProps(),w(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),U),t.executeHooks("initial"),t.elementId=B++,t.isInstalled=!1,t.rootElement=null,t}i(t,e),t.define=function(e){H(e,this)};var o,s,c,a=t.prototype;return a.executeHooks=function(e){var t=this;if(e in this.hooks){var n=this.hooks[e];Array.isArray(n)&&n.forEach(function(n){try{n.call(t,t)}catch(n){console.warn("Error occurred while executing hook function "+t.constructor.name+"/"+e+":",n)}})}},a.handleProps=function(){this.constructor.defaultProps=S(this,"defaultProps",{default:{}})||{},this.constructor.propTypes=S(this,"propTypes",{default:{}})||{},this.constructor.reflectProps=S(this,"reflectProps",{default:{}})||{};var e=S(this,"props",{default:{},merge:"uniqueMerge"});if(this.constructor.props)for(var t in e){var n=e[t];this.constructor.defaultProps[t]=n.default,this.constructor.propTypes[t]=n.type,this.constructor.reflectProps[t]=n.reflect}this.props=Object.assign({},this.constructor.defaultProps,this.props)},a.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];if(r.changed){var o=this.getTypeValueOfProp(e,n),i=this.getTypeValueOfProp(e,t);r.changed.call(this,o,i)}}},a.setState=function(e,t){var n=this;if(void 0===t&&(t=!1),"object"!=typeof e)throw new Error("takes an object of state variables to update");Object.keys(e).forEach(function(t){return n.state[t]=e[t]}),t||this.queuedUpdate()},a.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!D.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){e.hasOwnProperty(t)||Object.defineProperty(e,t,{get:function(){return D.mixin[t]}})};for(var o in D.mixin)r(o)},a.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",delegatesFocus:!0})},a.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||$.has(this.constructor))this.renderRoot.adoptedStyleSheets=$.get(this.constructor);else{var e=this.constructor.css;if(e){var t=[];t="string"==typeof e?[y(e)]:h(e)?e.map(function(e){return"string"==typeof e?y(e):e.default&&"string"==typeof e.default?y(e.default):e}):e.default&&"string"==typeof e.default?[y(e.default)]:[e],t=[].concat(D.globalCSS,t),this.renderRoot.adoptedStyleSheets=t,$.set(this.constructor,t)}else D.globalCSS.length&&(this.renderRoot.adoptedStyleSheets=D.globalCSS)}},a.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)}},a.connectedCallback=function(){var e=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),n.setActiveComponent(this),this.beforeRender(),this.fire("beforeRender",this);var t,r=this.render(this.props,this.store);this.appendStyleVNode(r),this.rendered(r),n.clearActiveComponent(),this.rootElement=M(null,r,null,this,!1),h(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,Promise.resolve().then(function(){e.ready(),e.fire("ready",e)}),this.executeHooks("connected")},a.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1,this.executeHooks("disconnected")},a.update=function(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),n.setActiveComponent(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),n.clearActiveComponent(null),this.rootElement=M(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)},a.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},a.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()},a.updateSelf=function(){this.update(!0)},a.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},a.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},a.attrsToProps=function(){var e=this;if(!this.props.ignoreAttrs){var t=this;t.props.css=t.getAttribute("css");var n=this.constructor.propTypes;n&&Object.keys(n).forEach(function(n){var r=t.getAttribute(n.replace(v,"-$1").toLowerCase());t.props[n]=null!==r?e.getTypeValueOfProp(n,r):t.constructor.defaultProps&&t.constructor.defaultProps.hasOwnProperty(n)?t.constructor.defaultProps[n]:null})}},a.getTypeValueOfProp=function(e,t){for(var n=this.constructor.propTypes,r=h(n[e])?n[e]:[n[e]],o=0;o<r.length;o++)switch(r[o]){case String:return t;case Number:return Number(t);case Boolean:return Boolean("false"!==t&&"0"!==t);case Array:case Object:try{return JSON.parse(t)}catch(n){console.warn("The "+e+" object prop does not comply with the JSON specification, the incorrect string is ["+t+"].")}}},a.fire=function(e,t,n){var r=Object.assign({bubbles:!1,composed:!1},n),o=r.bubbles,i=r.composed,s=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];s?s(new CustomEvent(e,{detail:t,bubbles:o,composed:i})):this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:o,composed:i}))},a.install=function(){},a.installed=function(){},a.ready=function(){},a.uninstall=function(){},a.beforeUpdate=function(){},a.updated=function(){},a.beforeRender=function(){},a.rendered=function(e){},a.receiveProps=function(){},o=t,c=[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}],(s=[{key:"ref",get:function(){}},{key:"hooks",get:function(){return this._hooks||(this._hooks=S(this,"hooks")||{}),this._hooks}}])&&r(o.prototype,s),c&&r(o,c),Object.defineProperty(o,"prototype",{writable:!1}),t}(/*#__PURE__*/u(HTMLElement));J.is="Component",J.defaultProps=void 0,J.reflectProps=void 0,J.propTypes=void 0,J.css=void 0,J.isLightDOM=void 0,J.noSlot=void 0,J.hooks=void 0,J.props={},J.formAssociated=!0;var Q=/*#__PURE__*/function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this)._form=null,t._inputs=[],t._internals=null,t}i(t,e);var n=t.prototype;return n.formAssociatedCallback=function(e){},n.handleFormData=function(e){},n.getFieldValue=function(){},n.handleField=function(e){},n.formDisabledCallback=function(){},n.formResetCallback=function(){},n.formStateRestoreCallback=function(e,t){},t}(J);Q.formAssociated=!1;var z={}.hasOwnProperty;function G(){for(var e=[].slice.call(arguments),t=[],n=0;n<e.length;n++){var r=e[n];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var i=G.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)z.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var Z={};Object.defineProperty(e,"Signal",{enumerable:!0,get:function(){return n.Signal}}),Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return n.batch}}),Object.defineProperty(e,"clearActiveComponent",{enumerable:!0,get:function(){return n.clearActiveComponent}}),Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return n.computed}}),Object.defineProperty(e,"effect",{enumerable:!0,get:function(){return n.effect}}),Object.defineProperty(e,"getActiveComponent",{enumerable:!0,get:function(){return n.getActiveComponent}}),Object.defineProperty(e,"setActiveComponent",{enumerable:!0,get:function(){return n.setActiveComponent}}),Object.defineProperty(e,"signal",{enumerable:!0,get:function(){return n.signal}}),Object.defineProperty(e,"signalObject",{enumerable:!0,get:function(){return n.signalObject}}),e.Component=J,e.FormAssociatedComponent=Q,e.WeElement=J,e.bind=function(e,t,n){return{configurable:!0,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}},e.classNames=G,e.cloneElement=function(e,t){var n=[].slice.call(arguments,2);return C(e.nodeName,o({},e.attributes,t),n.length>0?n.flat():e.children)},e.createElement=C,e.createRef=function(){return{}},e.css=function(e){var t=[].slice.call(arguments,1),n="";if(e.forEach(function(e,r){if(void 0!==t[r]&&"string"!=typeof t[r]&&"number"!=typeof t[r])throw new Error("Unsupported value in CSS: "+t[r]);n+=e+(t[r]||"")}),Z[n])return Z[n];var r=new CSSStyleSheet;return r.replaceSync(n),Z[n]=r,r},e.define=H,e.defineElement=H,e.extractClass=function(e){var t=[].slice.call(arguments,1);if(e.class?(t.unshift(e.class),delete e.class):e.className&&(t.unshift(e.className),delete e.className),t.length>0)return{class:G.apply(void 0,t)}},e.globalCSS=function(e){D.globalCSS.includes(e)||D.globalCSS.push(e)},e.h=C,e.mixin=function(e){Object.assign(D.mixin,e)},e.registerDirective=function(e,t){P["o-"+e]=t},e.render=function(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),M(null,e,t,null,!1)},e.tag=W,e.version="7.6.17",e.webcomponent=q});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("weakmap-polyfill"),require("reactive-signal")):"function"==typeof define&&define.amd?define(["exports","weakmap-polyfill","reactive-signal"],t):t((e||self).Omi={},0,e.reactiveSignal)}(this,function(e,t,n){function r(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 o(){return o=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},o.apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function a(e,t,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o},a.apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return u=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 a(e,arguments,s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},u(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function p(e){return e.children}function d(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function h(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 a=new WeakMap,u=new WeakMap,l=new WeakMap,f=A.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(j(this),"string"==typeof e){var t=this,n=a.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),a.set(t,n.sheet),u.get(t).forEach(function(e){e.isConnected()&&P(t,O(t,e))})}},o(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return j(this),a.get(this).cssRules}}),["addImport","addPageRule","addRule","deleteRule","insertRule","removeImport","removeRule"].forEach(function(e){f[e]=function(){var t=this;j(t);var n=arguments,r=a.get(t),o=u.get(t),i=r[e].apply(r,n);return o.forEach(function(r){if(r.isConnected()){var o=O(t,r).sheet;o[e].apply(o,n)}}),i}}),o(A,Symbol.hasInstance,{configurable:!0,value:C});var p={childList:!0,subtree:!0},d=new WeakMap,h=new WeakMap,v=new WeakMap,y=new WeakMap,m=_.prototype;if(m.isConnected=function(){var e=h.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},m.connect=function(){var e=T(this);y.get(this).observe(e,p),v.get(this).length>0&&x(this),R(e,function(e){k(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(C))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))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=O(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter(function(e){return e!==t}))}(e,t)}),v.set(t,s),t.isConnected()&&s.length>0&&x(t)},window.CSSStyleSheet=A,N(Document),"ShadowRoot"in window){N(ShadowRoot);var b=Element.prototype,g=b.attachShadow;b.attachShadow=function(e){var t=g.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var S=k(document);S.isConnected()?S.connect():document.addEventListener("DOMContentLoaded",S.connect.bind(S))}function w(e){return e.shadowRoot||n.get(e)}function C(e){return"object"==typeof e&&(f.isPrototypeOf(e)||c.isPrototypeOf(e))}function E(e){return"object"==typeof e&&c.isPrototypeOf(e)}function O(e,t){return l.get(e).get(t)}function P(e,t){requestAnimationFrame(function(){var n,r;!function(e){for(var t=0;t<e.cssRules.length;t++)e.deleteRule(0)}(t.sheet),n=a.get(e),r=t.sheet,i.call(n.cssRules,function(e,t){r.insertRule(e.cssText,t)})})}function j(e){if(!a.has(e))throw new TypeError("Illegal invocation")}function A(){var e=this,n=document.createElement("style");t.body.appendChild(n),a.set(e,n.sheet),u.set(e,[]),l.set(e,new WeakMap)}function k(e){var t=d.get(e);return t||(t=new _(e),d.set(e,t)),t}function N(e){o(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return k(this).sheets},set:function(e){k(this).update(e)}})}function R(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 T(e){var t=h.get(e);return t instanceof Document?t.body:t}function x(e){var t=document.createDocumentFragment(),n=v.get(e),r=y.get(e),o=T(e);r.disconnect(),n.forEach(function(n){t.appendChild(O(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))}),o.insertBefore(t,null),r.observe(o,p),n.forEach(function(t){P(t,O(t,e))})}function _(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&&R(e,function(e){k(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 O(t,e)})}(n,t)&&x(n),e||R(t,function(e){k(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 v=/\B([A-Z])/g;function y(e){var t=new CSSStyleSheet;return t.replaceSync(e),t}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function b(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function g(e){return!!/^class\s/.test(e.toString())||!1}function S(e,t,n){var r=Object.assign({merge:"uniqueMerge",default:null},n),o=g(e)?e:e.constructor,i=o[t],s=b(i)?0:Array.isArray(i)?1:2;if("none"===r.merge||2===s)return i;for(var c=0===s?Object.assign({},r.default):r.default,a=[i];o&&(o=o.__proto__)[t];)a.push(o[t]);var u=i;return u=0===s?a.reduce(function(e,t){return b(t)?Object.assign({},c,t,e):e},{}):a.reduce(function(e,t){return Array.isArray(t)&&e.push.apply(e,t),e},[]),Array.isArray(u)&&"uniqueMerge"===r.merge&&(u=Array.from(new Set(u)),b(c)&&u.forEach(function(e,t){b(e)&&(u[t]=Object.assign({},c,e))})),u||c}function w(e,t){e.hooks||(e.hooks={}),Object.entries(t).forEach(function(t){var n=t[0],r=t[1];e.hooks[n]||(e.hooks[n]=[]),e.hooks[n].push(r)})}function C(e,t){var n;if(t?t.ignoreAttrs=!0:t={ignoreAttrs:!0},arguments.length>2?n=[].slice.call(arguments,2).flat():null!=t.children&&(n=t.children,delete t.children),e===p)return n;if("function"==typeof e){if(!e.tagName)return n&&(t.children=n),e(t);e=e.tagName}return{nodeName:e,children:n,attributes:t,key:t.key}}Array.prototype.flat||(Array.prototype.flat=function(e){void 0===e&&(e=1);var t=[];return function n(r,o){for(var i,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r);!(i=s()).done;){var c=i.value;Array.isArray(c)&&o<e?n(c,o+1):t.push(c)}}(this,0),t}),C.f=p;var E={onanimationcancel:1,oncompositionend:1,oncompositionstart:1,oncompositionupdate:1,onfocusin:1,onfocusout:1,onscrollend:1,ontouchcancel:1,ontouchend:1,ontouchmove:1,ontouchstart:1},O=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,P={};function j(e){var t=e.parentNode;t&&t.removeChild(e)}function A(e,t,n,r,o){if("className"===t&&(t="class"),"o"==t[0]&&"-"==t[1]&&Promise.resolve().then(function(){var n;null==(n=P[t])||n.call(P,e,r)}),"key"===t||"ignoreAttrs"===t);else if("ref"===t)d(n,null),d(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||N(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||N(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=(E[i]||i in e?i:t).slice(2),n?r||e.addEventListener(t,k,o):e.removeEventListener(t,k,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 k(e){return this._listeners[e.type](e)}function N(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n.toString()):e[t]=null==n?"":"number"!=typeof n||O.test(t)?n.toString():n+"px"}var R=0,T=!1,x=!1,_=!1;function M(e,t,n,r,o){return e||t?(r&&r.constructor.isLightDOM&&(r.innerHTML=""),R++||(T=null!=n&&void 0!==n.ownerSVGElement,_=!1),h(t)?n?(F(n,t,_,r,o),i=n.childNodes):(i=[],t.forEach(function(t,n){var s=L(0===n?e:null,t,r,o);i.push(s)})):(h(e)||e instanceof NodeList?[].concat(e).forEach(function(e,n){0===n?i=L(e,t,r,o):I(e,!1)}):i=L(e,t,r,o),n&&(null==(s=i)?void 0:s.parentNode)!==n&&n.appendChild(i)),--R||(_=!1),i):null;var i,s}function L(e,t,n,r){e&&t&&e.props&&(e.props.children=t.children);var o,i=e,s=T,c=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 a,u,l,p=t.nodeName;if(x="foreignObject"===p,T="svg"===p||!x&&T,p=String(p),(!e||!m(e,p))&&(u=p,(l=x||T?document.createElementNS("http://www.w3.org/2000/svg",u):document.createElement(u)).normalizedNodeName=u,"Component"===(null==(a=(i=l).constructor)?void 0:a.is)&&Object.assign(i.props,t.attributes),e)){for(var d;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&(null==(d=e.parentNode)||d.replaceChild(i,e)),I(e,!0)}var h=i.firstChild,v=i.prevProps,y=t.children;if(null==v){v=i.prevProps={};for(var b=i.attributes,g=b.length;g--;)v[b[g].name]=b[g].value}return!_&&y&&1===y.length&&"string"==typeof y[0]&&null!=h&&void 0!==h.splitText&&null==h.nextSibling?h.nodeValue!=y[0]&&(h.nodeValue=y[0]):(y&&y.length||null!=h)&&("Component"==i.constructor.is&&i.constructor.noSlot||F(i,y,_||null!=v.unsafeHTML,n,r)),function(e,t,n,r,o){var i,s,c=e.update;for(i in e.receiveProps&&(s=Object.assign({},n)),n)t&&null!=t[i]||null==n[i]||(A(e,i,n[i],n[i]=void 0,x||T),c&&delete e.props[i]);for(i in t)if(c&&"object"==typeof t[i]&&"ref"!==i){("style"===i||"o"===i[0]&&"-"===i[1])&&A(e,i,n[i],n[i]=t[i],x||T);var a=f(i);e.props[a]=n[a]=t[i]}else if("children"!==i&&(!(i in n)||t[i]!==("value"===i||"checked"===i?e[i]:n[i])))if(A(e,i,n[i],t[i],x||T),-1!==e.nodeName.indexOf("-")){e.props=e.props||{};var u=f(i);e.props[u]=n[u]=t[i]}else n[i]=t[i];c&&!o&&e.parentNode&&!1!==e.receiveProps(e.props,s)&&e.queuedUpdate()}(i,t.attributes,v,0,r),i.props&&(i.props.children=t.children),T=s,x=c,i}function F(e,t,n,r,o){var i,s,c,a,u,l,f,p=e.childNodes,d=[],h={},v=0,y=0,b=p.length,g=0,S=t?t.length:0;if(0!==b)for(var w=0;w<b;w++){var C,E=p[w],O=E.prevProps,P=S&&O?O.key:null;null!=P?(v++,h[P]=E):(O||(void 0!==E.splitText?!n||(null==(C=E.nodeValue)?void 0:C.trim()):n))&&(d[g++]=E)}if(0!==S)for(var A=0;A<S;A++){if(u=null,a=t[A]){var k=a.key;if(null!=k)v&&void 0!==h[k]&&(u=h[k],h[k]=void 0,v--);else if(y<g)for(i=y;i<g;i++)if(void 0!==d[i]&&(l=s=d[i],"string"==typeof(f=a)||"number"==typeof f?void 0!==l.splitText:m(l,f.nodeName))){u=s,d[i]=void 0,i===g-1&&g--,i===y&&y++;break}}u=L(u,a,r,o),c=p[A],u&&u!==e&&u!==c&&(null==c?e.appendChild(u):u===c.nextSibling?j(c):e.insertBefore(u,c))}if(v)for(var N in h)void 0!==h[N]&&I(h[N],!1);for(;y<=g;)void 0!==(u=d[g--])&&I(u,!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||j(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 D={mixin:{},globalCSS:[]},V={define:function(e){e.prototype.formAssociatedCallback=function(e){this._form=e,this._form&&this._form.addEventListener("formdata",this.handleFormData.bind(this))}},initial:function(e){e.getFieldValue||(e.getFieldValue=function(){var t,n={};return e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){n[e.name]=e.value}),n}),e.resetFieldValue||(e.resetFieldValue=function(){var t;e._inputs=null==(t=e.shadowRoot)?void 0:t.querySelectorAll("input"),e._inputs.forEach(function(e){e.value=""})}),e.handleFormData||(e.handleFormData=function(t){var n=t.formData;if(n){var r=e.getFieldValue();Object.entries(r).forEach(function(e){n.append(e[0],e[1])})}}),e._internals=e.attachInternals()},connected:function(e){}};function H(e,t){Object.defineProperty(t,"tagName",{value:e,writable:!1}),customElements.get(e)?console.warn("Failed to execute 'define' on 'CustomElementRegistry': the tag name \""+e+'" has already been used with this registry'):customElements.define(e,t)}function W(e,t){var n=Object.assign({formAssociated:!1},t).formAssociated;return function(t){n&&(n&&(w(t,V),t.formAssociated=!0),function(e,t){var n=e._hooks?e._hooks:S(e,"hooks")||{};if(g(e)||(e._hooks=n),t in n){var r=n[t];Array.isArray(r)&&r.forEach(function(n){try{n.call(e,e)}catch(n){console.warn("Error occurred while executing hook function "+(g(e)?e.constructor.name:e.name)+"/"+t+":",n)}})}}(t,"define")),H(e,t)}}var q=W,U={initial:function(e){Object.defineProperty(e,"ref",{get:function(){return e._ref||(e._ref=new Proxy({current:void 0},{set:function(t,n,r,o){return"current"===n&&e.fire("refAttached",{ref:r,target:e},{bubbles:!0,composed:!0}),Reflect.set(t,n,r,o)}})),e._ref}}),e._onRefAttached=function(t){var n=t.detail;n.target!==e&&e.props.ref&&(e.props.ref.current=n.ref)},e.addEventListener("refAttached",e._onRefAttached)},disconnected:function(e){e.removeEventListener("refAttached",e._onRefAttached)}},B=0,$=new WeakMap,J=/*#__PURE__*/function(e){function t(){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._hooks=void 0,t._ref=null,t.state=void 0,t.updateQueued=!1,t.handleProps(),w(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),U),t.executeHooks("initial"),t.elementId=B++,t.isInstalled=!1,t.rootElement=null,t}i(t,e),t.define=function(e){H(e,this)};var o,s,c,a=t.prototype;return a.executeHooks=function(e){var t=this;if(e in this.hooks){var n=this.hooks[e];Array.isArray(n)&&n.forEach(function(n){try{n.call(t,t)}catch(n){console.warn("Error occurred while executing hook function "+t.constructor.name+"/"+e+":",n)}})}},a.handleProps=function(){this.constructor.defaultProps=S(this,"defaultProps",{default:{}})||{},this.constructor.propTypes=S(this,"propTypes",{default:{}})||{},this.constructor.reflectProps=S(this,"reflectProps",{default:{}})||{};var e=S(this,"props",{default:{},merge:"uniqueMerge"});if(this.constructor.props)for(var t in e){var n=e[t];this.constructor.defaultProps[t]=n.default,this.constructor.propTypes[t]=n.type,this.constructor.reflectProps[t]=n.reflect}this.props=Object.assign({},this.constructor.defaultProps,this.props)},a.attributeChangedCallback=function(e,t,n){if(this.constructor.props&&this.constructor.props[e]){var r=this.constructor.props[e];if(r.changed){var o=this.getTypeValueOfProp(e,n),i=this.getTypeValueOfProp(e,t);r.changed.call(this,o,i)}}},a.setState=function(e,t){var n=this;if(void 0===t&&(t=!1),"object"!=typeof e)throw new Error("takes an object of state variables to update");Object.keys(e).forEach(function(t){return n.state[t]=e[t]}),t||this.queuedUpdate()},a.injectObject=function(){for(var e=this,t=this.parentNode;t&&!this.store&&!D.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){e.hasOwnProperty(t)||Object.defineProperty(e,t,{get:function(){return D.mixin[t]}})};for(var o in D.mixin)r(o)},a.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",delegatesFocus:!0})},a.applyAdoptedStyleSheets=function(){if(this.constructor.isLightDOM||$.has(this.constructor))this.renderRoot.adoptedStyleSheets=$.get(this.constructor);else{var e=this.constructor.css;if(e){var t=[];t="string"==typeof e?[y(e)]:h(e)?e.map(function(e){return"string"==typeof e?y(e):e.default&&"string"==typeof e.default?y(e.default):e}):e.default&&"string"==typeof e.default?[y(e.default)]:[e],t=[].concat(D.globalCSS,t),this.renderRoot.adoptedStyleSheets=t,$.set(this.constructor,t)}else D.globalCSS.length&&(this.renderRoot.adoptedStyleSheets=D.globalCSS)}},a.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)}},a.connectedCallback=function(){var e=this;this.injectObject(),this.attrsToProps(),this.install(),this.fire("install",this),this.renderRoot=this.createRenderRoot(),this.applyAdoptedStyleSheets(),n.setActiveComponent(this),this.beforeRender(),this.fire("beforeRender",this);var t,r=this.render(this.props,this.store);this.appendStyleVNode(r),this.rendered(r),n.clearActiveComponent(),this.rootElement=M(null,r,null,this,!1),h(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,Promise.resolve().then(function(){e.ready(),e.fire("ready",e)}),this.executeHooks("connected")},a.disconnectedCallback=function(){this.uninstall(),this.fire("uninstall",this),this.isInstalled=!1,this.executeHooks("disconnected")},a.update=function(e){this.beforeUpdate(),this.fire("beforeUpdate",this),this.attrsToProps(),n.setActiveComponent(this),this.beforeRender(),this.fire("beforeRender",this);var t=this.render(this.props,this.store);this.appendStyleVNode(t),this.rendered(t),n.clearActiveComponent(null),this.rootElement=M(this.rootElement,t,this.renderRoot,this,!!e),this.updated(),this.fire("updated",this)},a.queuedUpdate=function(){var e=this;this.updateQueued||(this.updateQueued=!0,Promise.resolve().then(function(){e.update(),e.updateQueued=!1}))},a.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()},a.updateSelf=function(){this.update(!0)},a.removeProp=function(e){this.removeAttribute(e),this.isInstalled&&this.update()},a.setProp=function(e,t){this.setAttribute(e,t&&"object"==typeof t?JSON.stringify(t):t),this.isInstalled&&this.update()},a.attrsToProps=function(){var e=this;if(!this.props.ignoreAttrs){var t=this;t.props.css=t.getAttribute("css");var n=this.constructor.propTypes;n&&Object.keys(n).forEach(function(n){var r=t.getAttribute(n.replace(v,"-$1").toLowerCase());t.props[n]=null!==r?e.getTypeValueOfProp(n,r):t.constructor.defaultProps&&t.constructor.defaultProps.hasOwnProperty(n)?t.constructor.defaultProps[n]:null})}},a.getTypeValueOfProp=function(e,t){for(var n=this.constructor.propTypes,r=h(n[e])?n[e]:[n[e]],o=0;o<r.length;o++)switch(r[o]){case String:return t;case Number:return Number(t);case Boolean:return Boolean("false"!==t&&"0"!==t);case Array:case Object:try{return JSON.parse(t)}catch(n){console.warn("The "+e+" object prop does not comply with the JSON specification, the incorrect string is ["+t+"].")}}},a.fire=function(e,t,n){var r=Object.assign({bubbles:!1,composed:!1},n),o=r.bubbles,i=r.composed,s=this.props["on"+function(e){return e.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}).replace(/^\S/,function(e){return e.toUpperCase()})}(e)];s?s(new CustomEvent(e,{detail:t,bubbles:o,composed:i})):this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:o,composed:i}))},a.install=function(){},a.installed=function(){},a.ready=function(){},a.uninstall=function(){},a.beforeUpdate=function(){},a.updated=function(){},a.beforeRender=function(){},a.rendered=function(e){},a.receiveProps=function(){},o=t,c=[{key:"observedAttributes",get:function(){return this.props?Object.keys(this.props):[]}}],(s=[{key:"ref",get:function(){}},{key:"hooks",get:function(){return this._hooks||(this._hooks=S(this,"hooks")||{}),this._hooks}}])&&r(o.prototype,s),c&&r(o,c),Object.defineProperty(o,"prototype",{writable:!1}),t}(/*#__PURE__*/u(HTMLElement));J.is="Component",J.defaultProps=void 0,J.reflectProps=void 0,J.propTypes=void 0,J.css=void 0,J.isLightDOM=void 0,J.noSlot=void 0,J.hooks=void 0,J.props={},J.formAssociated=!0;var Q=/*#__PURE__*/function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this)._form=null,t._inputs=[],t._internals=null,t}i(t,e);var n=t.prototype;return n.formAssociatedCallback=function(e){},n.handleFormData=function(e){},n.getFieldValue=function(){},n.handleField=function(e){},n.formDisabledCallback=function(){},n.formResetCallback=function(){},n.formStateRestoreCallback=function(e,t){},t}(J);Q.formAssociated=!1;var z={}.hasOwnProperty;function G(){for(var e=[].slice.call(arguments),t=[],n=0;n<e.length;n++){var r=e[n];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var i=G.apply(void 0,r);i&&t.push(i)}else if("object"===o)for(var s in r)z.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}var Z={};Object.defineProperty(e,"Signal",{enumerable:!0,get:function(){return n.Signal}}),Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return n.batch}}),Object.defineProperty(e,"clearActiveComponent",{enumerable:!0,get:function(){return n.clearActiveComponent}}),Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return n.computed}}),Object.defineProperty(e,"effect",{enumerable:!0,get:function(){return n.effect}}),Object.defineProperty(e,"getActiveComponent",{enumerable:!0,get:function(){return n.getActiveComponent}}),Object.defineProperty(e,"setActiveComponent",{enumerable:!0,get:function(){return n.setActiveComponent}}),Object.defineProperty(e,"signal",{enumerable:!0,get:function(){return n.signal}}),Object.defineProperty(e,"signalObject",{enumerable:!0,get:function(){return n.signalObject}}),e.Component=J,e.FormAssociatedComponent=Q,e.WeElement=J,e.bind=function(e,t,n){return{configurable:!0,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}},e.classNames=G,e.cloneElement=function(e,t){var n=[].slice.call(arguments,2);return C(e.nodeName,o({},e.attributes,t),n.length>0?n.flat():e.children)},e.createElement=C,e.createRef=function(){return{}},e.css=function(e){var t=[].slice.call(arguments,1),n="";if(e.forEach(function(e,r){if(void 0!==t[r]&&"string"!=typeof t[r]&&"number"!=typeof t[r])throw new Error("Unsupported value in CSS: "+t[r]);n+=e+(t[r]||"")}),Z[n])return Z[n];var r=new CSSStyleSheet;return r.replaceSync(n),Z[n]=r,r},e.define=H,e.defineElement=H,e.extractClass=function(e){var t=[].slice.call(arguments,1);if(e.class?(t.unshift(e.class),delete e.class):e.className&&(t.unshift(e.className),delete e.className),t.length>0)return{class:G.apply(void 0,t)}},e.globalCSS=function(e){D.globalCSS.includes(e)||D.globalCSS.push(e)},e.h=C,e.mixin=function(e){Object.assign(D.mixin,e)},e.registerDirective=function(e,t){P["o-"+e]=t},e.render=function(e,t,n){return t="string"==typeof t?document.querySelector(t):t,n&&t&&(t.store=n),M(null,e,t,null,!1)},e.tag=W,e.version="7.6.18",e.webcomponent=q});
if(typeof window!=='undefined'){window.omi=window.Omi};
//# sourceMappingURL=omi.umd.js.map
{
"name": "omi",
"version": "7.6.17",
"version": "7.6.18",
"scripts": {

@@ -56,3 +56,3 @@ "start": "vite",

"construct-style-sheets-polyfill": "3.0.1",
"reactive-signal": "^1.0.3",
"reactive-signal": "^1.0.4",
"weakmap-polyfill": "2.0.4"

@@ -59,0 +59,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc