@e280/sly 0.2.0-0 → 0.2.0-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- var ke=Object.defineProperty;var Pe=(r,t)=>{for(var e in t)ke(r,e,{get:t[e],enumerable:!0})};var et=globalThis,rt=et.ShadowRoot&&(et.ShadyCSS===void 0||et.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kt=Symbol(),Qt=new WeakMap,F=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==kt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(rt&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Qt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Qt.set(e,t))}return t}toString(){return this.cssText}},Jt=r=>new F(typeof r=="string"?r:r+"",void 0,kt),g=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((s,o,n)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[n+1]),r[0]);return new F(e,r,kt)},st=(r,t)=>{if(rt)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=et.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},H=rt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Jt(e)})(r):r;var{is:Te,defineProperty:Oe,getOwnPropertyDescriptor:je,getOwnPropertyNames:Me,getOwnPropertySymbols:Ue,getPrototypeOf:He}=Object,ot=globalThis,Yt=ot.trustedTypes,Re=Yt?Yt.emptyScript:"",Ne=ot.reactiveElementPolyfillSupport,Z=(r,t)=>r,Pt={toAttribute(r,t){switch(t){case Boolean:r=r?Re:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Xt=(r,t)=>!Te(r,t),Gt={attribute:!0,type:String,converter:Pt,reflect:!1,useDefault:!1,hasChanged:Xt};Symbol.metadata??=Symbol("metadata"),ot.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Gt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&Oe(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:n}=je(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:o,set(i){let c=o?.call(this);n?.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Gt}static _$Ei(){if(this.hasOwnProperty(Z("elementProperties")))return;let t=He(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Z("properties"))){let e=this.properties,s=[...Me(e),...Ue(e)];for(let o of s)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,o]of e)this.elementProperties.set(s,o)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let o=this._$Eu(e,s);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let o of s)e.unshift(H(o))}else t!==void 0&&e.push(H(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return st(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:Pt).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let n=s.getPropertyOptions(o),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:Pt;this._$Em=o,this[o]=i.fromAttribute(e,n.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let o=this.constructor,n=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??Xt)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:n},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),n!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,n]of s){let{wrapped:i}=n,c=this[o];i!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,n,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[Z("elementProperties")]=new Map,A[Z("finalized")]=new Map,Ne?.({ReactiveElement:A}),(ot.reactiveElementVersions??=[]).push("2.1.0");var Ot=globalThis,nt=Ot.trustedTypes,te=nt?nt.createPolicy("lit-html",{createHTML:r=>r}):void 0,jt="$lit$",v=`lit$${Math.random().toFixed(9).slice(2)}$`,Mt="?"+v,De=`<${Mt}>`,k=document,Q=()=>k.createComment(""),J=r=>r===null||typeof r!="object"&&typeof r!="function",Ut=Array.isArray,ie=r=>Ut(r)||typeof r?.[Symbol.iterator]=="function",Tt=`[
2
- \f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ee=/-->/g,re=/>/g,C=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),se=/'/g,oe=/"/g,ae=/^(?:script|style|textarea|title)$/i,Ht=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),_=Ht(1),Dr=Ht(2),zr=Ht(3),P=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ne=new WeakMap,B=k.createTreeWalker(k,129);function ce(r,t){if(!Ut(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return te!==void 0?te.createHTML(t):t}var le=(r,t)=>{let e=r.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",i=K;for(let c=0;c<e;c++){let a=r[c],l,u,p=-1,m=0;for(;m<a.length&&(i.lastIndex=m,u=i.exec(a),u!==null);)m=i.lastIndex,i===K?u[1]==="!--"?i=ee:u[1]!==void 0?i=re:u[2]!==void 0?(ae.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=C):u[3]!==void 0&&(i=C):i===C?u[0]===">"?(i=o??K,p=-1):u[1]===void 0?p=-2:(p=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?C:u[3]==='"'?oe:se):i===oe||i===se?i=C:i===ee||i===re?i=K:(i=C,o=void 0);let b=i===C&&r[c+1].startsWith("/>")?" ":"";n+=i===K?a+De:p>=0?(s.push(l),a.slice(0,p)+jt+a.slice(p)+v+b):a+v+(p===-2?c:b)}return[ce(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Y=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,u]=le(t,e);if(this.el=r.createElement(l,s),B.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=B.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(jt)){let m=u[i++],b=o.getAttribute(p).split(v),tt=/([.?@])?(.*)/.exec(m);a.push({type:1,index:n,name:tt[2],strings:b,ctor:tt[1]==="."?at:tt[1]==="?"?ct:tt[1]==="@"?lt:O}),o.removeAttribute(p)}else p.startsWith(v)&&(a.push({type:6,index:n}),o.removeAttribute(p));if(ae.test(o.tagName)){let p=o.textContent.split(v),m=p.length-1;if(m>0){o.textContent=nt?nt.emptyScript:"";for(let b=0;b<m;b++)o.append(p[b],Q()),B.nextNode(),a.push({type:2,index:++n});o.append(p[m],Q())}}}else if(o.nodeType===8)if(o.data===Mt)a.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf(v,p+1))!==-1;)a.push({type:7,index:n}),p+=v.length-1}n++}}static createElement(t,e){let s=k.createElement("template");return s.innerHTML=t,s}};function T(r,t,e=r,s){if(t===P)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=J(t)?void 0:t._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(r),o._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=T(r,o._$AS(r,t.values),o,s)),t}var it=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??k).importNode(e,!0);B.currentNode=o;let n=B.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new R(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new ut(n,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(n=B.nextNode(),i++)}return B.currentNode=k,o}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},R=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),J(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ie(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&J(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Y.createElement(ce(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new it(o,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=ne.get(t.strings);return e===void 0&&ne.set(t.strings,e=new Y(t)),e}k(t){Ut(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let n of t)o===e.length?e.push(s=new r(this.O(Q()),this.O(Q()),this,this.options)):s=e[o],s._$AI(n),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},O=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,o){let n=this.strings,i=!1;if(n===void 0)t=T(this,t,e,0),i=!J(t)||t!==this._$AH&&t!==P,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=T(this,c[s+a],e,a),l===P&&(l=this._$AH[a]),i||=!J(l)||l!==this._$AH[a],l===d?t=d:t!==d&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},at=class extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ct=class extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},lt=class extends O{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===P)return;let s=this._$AH,o=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==d&&(s===d||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ut=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}},ue={M:jt,P:v,A:Mt,C:1,L:le,R:it,D:ie,V:T,I:R,H:O,N:ct,U:lt,B:at,F:ut},ze=Ot.litHtmlPolyfillSupport;ze?.(Y,R),(Ot.litHtmlVersions??=[]).push("3.3.0");var S=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new R(t.insertBefore(Q(),n),n,void 0,e??{})}return o._$AI(r),o};var Rt=globalThis,N=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=S(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return P}};N._$litElement$=!0,N.finalized=!0,Rt.litElementHydrateSupport?.({LitElement:N});var Ie=Rt.litElementPolyfillSupport;Ie?.({LitElement:N});(Rt.litElementVersions??=[]).push("4.2.0");function he(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function ht(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,n]of Object.entries(r)){let i=he(o),c=customElements.get(i);e&&c||(customElements.define(i,n),s&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}function E(r,t=document){let e=t.querySelector(r);if(!e)throw new Error(`$1 ${r} not found`);return e}function Le(r,t=document){return Array.from(t.querySelectorAll(r))}E.maybe=(r,t=document)=>t.querySelector(r);E.all=Le;E.render=(r,...t)=>S(t,r);E.register=ht;var x=Object.freeze({eq(r,t){if(r.length!==t.length)return!1;for(let e=0;e<=r.length;e++)if(r.at(e)!==t.at(e))return!1;return!0},random(r){return crypto.getRandomValues(new Uint8Array(r))}});var j=Object.freeze({fromBytes(r){return[...r].map(t=>t.toString(16).padStart(2,"0")).join("")},toBytes(r){if(r.length%2!==0)throw new Error("must have even number of hex characters");let t=new Uint8Array(r.length/2);for(let e=0;e<r.length;e+=2)t[e/2]=parseInt(r.slice(e,e+2),16);return t},random(r=32){return this.fromBytes(x.random(r))},string(r){return j.fromBytes(r)},bytes(r){return j.toBytes(r)}});var Nt=58,pt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Dt=Object.freeze({fromBytes(r){let t=BigInt("0x"+j.fromBytes(r)),e="";for(;t>0;){let s=t%BigInt(Nt);t=t/BigInt(Nt),e=pt[Number(s)]+e}for(let s of r)if(s===0)e=pt[0]+e;else break;return e},toBytes(r){let t=BigInt(0);for(let i of r){let c=pt.indexOf(i);if(c===-1)throw new Error(`Invalid character '${i}' in base58 string`);t=t*BigInt(Nt)+BigInt(c)}let e=t.toString(16);e.length%2!==0&&(e="0"+e);let s=j.toBytes(e),o=0;for(let i of r)if(i===pt[0])o++;else break;let n=new Uint8Array(o+s.length);return n.set(s,o),n},random(r=32){return this.fromBytes(x.random(r))},string(r){return Dt.fromBytes(r)},bytes(r){return Dt.toBytes(r)}});var pe=class{lexicon;static lexicons=Object.freeze({base2:{characters:"01"},hex:{characters:"0123456789abcdef"},base36:{characters:"0123456789abcdefghijklmnopqrstuvwxyz"},base58:{characters:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"},base62:{characters:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"},base64url:{negativePrefix:"~",characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},base64:{characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",padding:{character:"=",size:4}}});lookup;negativePrefix;constructor(t){this.lexicon=t,this.lookup=Object.fromEntries([...t.characters].map((e,s)=>[e,s])),this.negativePrefix=t.negativePrefix??"-"}toBytes(t){let e=Math.log2(this.lexicon.characters.length);if(Number.isInteger(e)){let c=0,a=0,l=[];for(let u of t){if(u===this.lexicon.padding?.character)continue;let p=this.lookup[u];if(p===void 0)throw new Error(`Invalid character: ${u}`);for(c=c<<e|p,a+=e;a>=8;)a-=8,l.push(c>>a&255)}return new Uint8Array(l)}let s=0n,o=BigInt(this.lexicon.characters.length),n=!1;t.startsWith(this.negativePrefix)&&(t=t.slice(this.negativePrefix.length),n=!0);for(let c of t){let a=this.lookup[c];if(a===void 0)throw new Error(`Invalid character: ${c}`);s=s*o+BigInt(a)}let i=[];for(;s>0n;)i.unshift(Number(s%256n)),s=s/256n;return new Uint8Array(i)}fromBytes(t){let e=Math.log2(this.lexicon.characters.length);if(Number.isInteger(e)){let i=0,c=0,a="";for(let l of t)for(i=i<<8|l,c+=8;c>=e;){c-=e;let u=i>>c&(1<<e)-1;a+=this.lexicon.characters[u]}if(c>0){let l=i<<e-c&(1<<e)-1;a+=this.lexicon.characters[l]}if(this.lexicon.padding)for(;a.length%this.lexicon.padding.size!==0;)a+=this.lexicon.padding.character;return a}let s=0n;for(let i of t)s=(s<<8n)+BigInt(i);if(s===0n)return this.lexicon.characters[0];let o=BigInt(this.lexicon.characters.length),n="";for(;s>0n;)n=this.lexicon.characters[Number(s%o)]+n,s=s/o;return n}toInteger(t){if(!t)return 0;let e=0n,s=!1,o=BigInt(this.lexicon.characters.length);t.startsWith(this.negativePrefix)&&(t=t.slice(this.negativePrefix.length),s=!0);for(let n of t){let i=this.lookup[n];if(i===void 0)throw new Error(`Invalid character: ${n}`);e=e*o+BigInt(i)}return Number(s?-e:e)}fromInteger(t){t=Math.floor(t);let e=t<0,s=BigInt(e?-t:t);if(s===0n)return this.lexicon.characters[0];let o=BigInt(this.lexicon.characters.length),n="";for(;s>0n;)n=this.lexicon.characters[Number(s%o)]+n,s=s/o;return e?`${this.negativePrefix}${n}`:n}random(t=32){return this.fromBytes(x.random(t))}};var zt=Object.freeze({fromBytes(r){return typeof btoa=="function"?btoa(String.fromCharCode(...r)):Buffer.from(r).toString("base64")},toBytes(r){return typeof atob=="function"?Uint8Array.from(atob(r),t=>t.charCodeAt(0)):Uint8Array.from(Buffer.from(r,"base64"))},random(r=32){return this.fromBytes(x.random(r))},string(r){return zt.fromBytes(r)},bytes(r){return zt.toBytes(r)}});var fe=Object.freeze({fromBytes(r){return new TextDecoder().decode(r)},toBytes(r){return new TextEncoder().encode(r)},string(r){return fe.fromBytes(r)},bytes(r){return fe.toBytes(r)}});function ft(r,t){let e,s,o=[];function n(){e=[],s&&clearTimeout(s),s=void 0,o=[]}return n(),((...i)=>{e=i,s&&clearTimeout(s);let c=new Promise((a,l)=>{o.push({resolve:a,reject:l})});return s=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:l}of o)l(a);n()}).catch(a=>{for(let{reject:l}of o)l(a);n()})},r),c})}var It=Object.freeze({happy:r=>r!=null,sad:r=>r==null,boolean:r=>typeof r=="boolean",number:r=>typeof r=="number",string:r=>typeof r=="string",bigint:r=>typeof r=="bigint",object:r=>typeof r=="object"&&r!==null,array:r=>Array.isArray(r),fn:r=>typeof r=="function",symbol:r=>typeof r=="symbol"});function G(){let r,t,e=new Promise((o,n)=>{r=o,t=n});function s(o){return o.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:s}}var D=class r extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,s){if(t.has(e))return t.get(e);{let o=s();return t.set(e,o),o}}array(){return[...this]}require(t){return r.require(this,t)}guarantee(t,e){return r.guarantee(this,t,e)}};var de=(r=0)=>new Promise(t=>setTimeout(t,r));function qe(r){return{map:t=>me(r,t),filter:t=>ye(r,t)}}qe.pipe=Object.freeze({map:r=>(t=>me(t,r)),filter:r=>(t=>ye(t,r))});var me=(r,t)=>Object.fromEntries(Object.entries(r).map(([e,s])=>[e,t(s,e)])),ye=(r,t)=>Object.fromEntries(Object.entries(r).filter(([e,s])=>t(s,e)));function ge(){let r=new Set;async function t(...a){await Promise.all([...r].map(l=>l(...a)))}function e(a){return r.add(a),()=>{r.delete(a)}}async function s(...a){return t(...a)}function o(a){return e(a)}async function n(a){let{promise:l,resolve:u}=G(),p=o(async(...m)=>{a&&await a(...m),u(m),p()});return l}function i(){r.clear()}let c={pub:s,sub:o,publish:t,subscribe:e,on:e,next:n,clear:i};return Object.assign(o,c),Object.assign(s,c),c}function dt(r){let t=ge();return r&&t.sub(r),t.sub}function Lt(r){let t=ge();return r&&t.sub(r),t.pub}function mt(r){let t,e=!1,s=()=>{e=!0,clearTimeout(t)},o=async()=>{e||(await r(s),!e&&(t=setTimeout(o,0)))};return o(),s}var be={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},gt=r=>(...t)=>({_$litDirective$:r,values:t}),yt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var qt=class{#t=[];#e=new WeakMap;#s=[];#r=new Set;notifyRead(t){this.#t.at(-1)?.add(t)}async notifyWrite(t){if(this.#r.has(t))throw new Error("circularity forbidden");let e=this.#o(t).pub();return this.#s.at(-1)?.add(e),e}observe(t){this.#t.push(new Set);let e=t();return{seen:this.#t.pop(),result:e}}subscribe(t,e){return this.#o(t)(async()=>{let s=new Set;this.#s.push(s),this.#r.add(t),s.add(e()),this.#r.delete(t),await Promise.all(s),this.#s.pop()})}#o(t){let e=this.#e.get(t);return e||(e=dt(),this.#e.set(t,e)),e}},y=globalThis[Symbol.for("e280.tracker")]??=new qt;var{I:gn}=ue;var xe=r=>r.strings===void 0;var X=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),X(s,t);return!0},bt=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},$e=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),Fe(t)}};function Ve(r){this._$AN!==void 0?(bt(this),this._$AM=r,$e(this)):this._$AM=r}function We(r,t=!1,e=0){let s=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)X(s[n],!1),bt(s[n]);else s!=null&&(X(s,!1),bt(s));else X(this,r)}var Fe=r=>{r.type==be.CHILD&&(r._$AP??=We,r._$AQ??=Ve)},xt=class extends yt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),$e(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(X(this,t),bt(this))}setValue(t){if(xe(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};function we(r,t){for(let[e,s]of Object.entries(t))s===void 0||s===null?r.removeAttribute(e):typeof s=="string"?r.setAttribute(e,s):typeof s=="number"?r.setAttribute(e,s.toString()):typeof s=="boolean"?s===!0?r.setAttribute(e,""):r.removeAttribute(e):console.warn(`invalid attribute type ${e} is ${typeof s}`)}function $t(r,t){st(r,Ze(t))}function Ze(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(H(s))}else r!==void 0&&t.push(H(r));return t}var z=class{sneak;constructor(t){this.sneak=t}get(){return y.notifyRead(this),this.sneak}get value(){return this.get()}};var I=class extends z{on=dt();dispose(){this.on.clear()}};function wt(r,t=r){let{seen:e,result:s}=y.observe(r),o=ft(0,t),n=[],i=()=>n.forEach(c=>c());for(let c of e){let a=y.subscribe(c,o);n.push(a)}return{result:s,dispose:i}}function L(r,t){return r===t}var At=class extends I{#t;constructor(t,e){let s=e?.compare??L,{result:o,dispose:n}=wt(t,async()=>{let i=t();!s(this.sneak,i)&&(this.sneak=i,await Promise.all([y.notifyWrite(this),this.on.pub(i)]))});super(o),this.#t=n}get value(){return this.get()}dispose(){super.dispose(),this.#t()}};var vt=class extends z{#t;#e;#s=!1;#r;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??L}get(){if(!this.#r){let{result:t,dispose:e}=wt(this.#t,()=>this.#s=!0);this.#r=e,this.sneak=t}if(this.#s){this.#s=!1;let t=this.#t();!this.#e(this.sneak,t)&&(this.sneak=t,y.notifyWrite(this))}return super.get()}dispose(){this.#r&&this.#r()}};var _t=class extends I{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??L}async set(t){return!this.#e(this.sneak,t)&&await this.publish(t),t}get value(){return this.get()}set value(t){this.set(t)}async publish(t=this.get()){if(this.#t)throw new Error("forbid circularity");let e=Promise.resolve();try{this.#t=!0,this.sneak=t,e=Promise.all([y.notifyWrite(this),this.on.pub(t)])}finally{this.#t=!1}return await e,t}};function Ke(r,t){return new vt(r,t)}function Qe(r,t){return new At(r,t)}function q(r,t){return new _t(r,t)}q.lazy=Ke;q.derive=Qe;var M={status:r=>r[0],value:r=>r[0]==="ready"?r[1]:void 0,error:r=>r[0]==="error"?r[1]:void 0,select:(r,t)=>{switch(r[0]){case"loading":return t.loading();case"error":return t.error(r[1]);case"ready":return t.ready(r[1]);default:throw new Error("unknown op status")}},morph:(r,t)=>M.select(r,{loading:()=>["loading"],error:e=>["error",e],ready:e=>["ready",t(e)]}),all:(...r)=>{let t=[],e=[],s=0;for(let o of r)switch(o[0]){case"loading":s++;break;case"ready":t.push(o[1]);break;case"error":e.push(o[1]);break}return e.length>0?["error",e]:s===0?["ready",t]:["loading"]}};var U=class{static loading(){return new this}static ready(t){return new this(["ready",t])}static error(t){return new this(["error",t])}static promise(t){let e=new this;return e.promise(t),e}static fn(t){return this.promise(t())}static all(...t){let e=t.map(s=>s.pod);return M.all(...e)}signal;#t=0;#e=Lt();#s=Lt();constructor(t=["loading"]){this.signal=q(t)}get wait(){return new Promise((t,e)=>{this.#e.next().then(([s])=>t(s)),this.#s.next().then(([s])=>e(s))})}get then(){return this.wait.then.bind(this.wait)}get catch(){return this.wait.catch.bind(this.wait)}get finally(){return this.wait.finally.bind(this.wait)}async setLoading(){await this.signal.set(["loading"])}async setReady(t){await this.signal.set(["ready",t]),await this.#e(t)}async setError(t){await this.signal.set(["error",t]),await this.#s(t)}async promise(t){let e=++this.#t;await this.setLoading();try{let s=await t;return e===this.#t&&await this.setReady(s),s}catch(s){e===this.#t&&await this.setError(s)}}async fn(t){return this.promise(t())}get pod(){return this.signal.get()}set pod(t){this.signal.set(t)}get status(){return this.signal.get()[0]}get value(){return M.value(this.signal.get())}get error(){return M.error(this.signal.get())}get isLoading(){return this.status==="loading"}get isReady(){return this.status==="ready"}get isError(){return this.status==="error"}require(){let t=this.signal.get();if(t[0]!=="ready")throw new Error("required value not ready");return t[1]}select(t){return M.select(this.signal.get(),t)}morph(t){return M.morph(this.pod,t)}};var St=class{#t=[];#e=[];mount(t){this.#t.push(t),this.#e.push(t())}unmountAll(){for(let t of this.#e)t();this.#e=[]}remountAll(){for(let t of this.#t)this.#e.push(t())}};var Ae=(r,t)=>new Proxy(t,{get:(e,s)=>{let o=t[s],n=r.getAttribute(s);switch(o){case String:return n??void 0;case Number:return n!==null?Number(n):void 0;case Boolean:return n!==null;default:throw new Error(`invalid attribute type for "${s}"`)}},set:(e,s,o)=>{switch(t[s]){case String:return r.setAttribute(s,o),!0;case Number:return r.setAttribute(s,o.toString()),!0;case Boolean:return o?r.setAttribute(s,""):r.removeAttribute(s),!0;default:throw new Error(`invalid attribute type for "${s}"`)}}});function ve(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var Vt=Symbol(),Wt=Symbol(),Ft=Symbol(),Et=class{element;shadow;renderNow;render;#t=0;#e=0;#s=new D;#r=G();#o=new St;[Vt](t){this.#t++,this.#e=0,this.#r=G();let e=t();return this.#r.resolve(),e}[Wt](){this.#o.unmountAll()}[Ft](){this.#o.remountAll()}constructor(t,e,s,o){this.element=t,this.shadow=e,this.renderNow=s,this.render=o}get renderCount(){return this.#t}get rendered(){return this.#r.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>$t(this.shadow,t))}css(...t){return this.styles(...t)}attrs(t){return this.mount(()=>ve(this.element,this.render)),this.once(()=>Ae(this.element,t))}once(t){return this.#s.guarantee(this.#e++,t)}mount(t){return this.once(()=>this.#o.mount(t))}life(t){let e;return this.mount(()=>{let[s,o]=t();return e=s,o}),e}wake(t){return this.life(()=>[t(),()=>{}])}op=(()=>{let t=this;function e(s){return t.once(()=>U.fn(s))}return e.fn=e,e.promise=s=>this.once(()=>U.promise(s)),e})();signal(t){return this.once(()=>q(t))}};var $=_e({mode:"open"}),Zt=class extends HTMLElement{};ht({SlyView:Zt},{soft:!0,upgrade:!0});function _e(r){function t(e){let s=c=>class extends xt{#t=c.getElement();#e=this.#t.attachShadow(r);#s=ft(0,()=>this.#i());#r=new D;#o;#n=new Et(this.#t,this.#e,()=>this.#i(),this.#s);#a=(()=>{let l=e(this.#n);return this.#t.setAttribute("view",r.name??""),r.styles&&$t(this.#e,r.styles),l})();#i(){if(!this.#o||!this.isConnected)return;let{context:l,props:u}=this.#o;this.#n[Vt](()=>{we(this.#t,l.attrs);let{result:p,seen:m}=y.observe(()=>this.#a(...u));S(p,this.#e);for(let b of m)this.#r.guarantee(b,()=>y.subscribe(b,async()=>this.#s()));c.isComponent||S(l.children,this.#t)})}render(l,u){return this.#o={context:l,props:u},this.#i(),c.isComponent?null:this.#t}disconnected(){this.#n[Wt]();for(let l of this.#r.values())l();this.#r.clear()}reconnected(){this.#n[Ft]()}},o=gt(s({getElement:()=>document.createElement(r.tag??"sly-view"),isComponent:!1})),n=()=>({attrs:{},children:[]});function i(...c){return o(n(),c)}return i.props=(...c)=>{let a=n(),l={children(...u){return a={...a,children:[...a.children,...u]},l},attrs(u){return a={...a,attrs:{...a.attrs,...u}},l},attr(u,p){return a={...a,attrs:{...a.attrs,[u]:p}},l},render(){return o(a,c)}};return l},i.component=(...c)=>class extends HTMLElement{#t=gt(s({getElement:()=>this,isComponent:!0}));constructor(){super(),this.render(...c)}render(...a){this.isConnected&&S(this.#t(n(),a),this)}},i}return t.declare=t,t.settings=e=>_e({...r,...e}),t.component=e=>t(s=>()=>e(s)).component(),t}var w=g`
1
+ var Oe=Object.defineProperty;var Te=(r,t)=>{for(var e in t)Oe(r,e,{get:t[e],enumerable:!0})};var rt=globalThis,st=rt.ShadowRoot&&(rt.ShadyCSS===void 0||rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ot=Symbol(),Yt=new WeakMap,Z=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Ot)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(st&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Yt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Yt.set(e,t))}return t}toString(){return this.cssText}},Gt=r=>new Z(typeof r=="string"?r:r+"",void 0,Ot),g=(r,...t)=>{let e=r.length===1?r[0]:t.reduce(((s,o,n)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[n+1]),r[0]);return new Z(e,r,Ot)},ot=(r,t)=>{if(st)r.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),o=rt.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,r.appendChild(s)}},N=st?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Gt(e)})(r):r;var{is:je,defineProperty:Me,getOwnPropertyDescriptor:Ue,getOwnPropertyNames:He,getOwnPropertySymbols:Re,getPrototypeOf:Ne}=Object,nt=globalThis,Xt=nt.trustedTypes,ze=Xt?Xt.emptyScript:"",De=nt.reactiveElementPolyfillSupport,K=(r,t)=>r,Tt={toAttribute(r,t){switch(t){case Boolean:r=r?ze:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ee=(r,t)=>!je(r,t),te={attribute:!0,type:String,converter:Tt,reflect:!1,useDefault:!1,hasChanged:ee};Symbol.metadata??=Symbol("metadata"),nt.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=te){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),o=this.getPropertyDescriptor(t,s,e);o!==void 0&&Me(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){let{get:o,set:n}=Ue(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:o,set(i){let c=o?.call(this);n?.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??te}static _$Ei(){if(this.hasOwnProperty(K("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(K("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(K("properties"))){let e=this.properties,s=[...He(e),...Re(e)];for(let o of s)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,o]of e)this.elementProperties.set(s,o)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let o=this._$Eu(e,s);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let o of s)e.unshift(N(o))}else t!==void 0&&e.push(N(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ot(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:Tt).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let n=s.getPropertyOptions(o),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:Tt;this._$Em=o,this[o]=i.fromAttribute(e,n.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let o=this.constructor,n=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??ee)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:n},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),n!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,n]of s){let{wrapped:i}=n,c=this[o];i!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,n,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[K("elementProperties")]=new Map,A[K("finalized")]=new Map,De?.({ReactiveElement:A}),(nt.reactiveElementVersions??=[]).push("2.1.0");var Mt=globalThis,it=Mt.trustedTypes,re=it?it.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ut="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,Ht="?"+_,Ie=`<${Ht}>`,O=document,J=()=>O.createComment(""),Y=r=>r===null||typeof r!="object"&&typeof r!="function",Rt=Array.isArray,ce=r=>Rt(r)||typeof r?.[Symbol.iterator]=="function",jt=`[
2
+ \f\r]`,Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,se=/-->/g,oe=/>/g,k=RegExp(`>|${jt}(?:([^\\s"'>=/]+)(${jt}*=${jt}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ne=/'/g,ie=/"/g,le=/^(?:script|style|textarea|title)$/i,Nt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),C=Nt(1),Dr=Nt(2),Ir=Nt(3),T=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ae=new WeakMap,P=O.createTreeWalker(O,129);function ue(r,t){if(!Rt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return re!==void 0?re.createHTML(t):t}var he=(r,t)=>{let e=r.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",i=Q;for(let c=0;c<e;c++){let a=r[c],l,u,p=-1,m=0;for(;m<a.length&&(i.lastIndex=m,u=i.exec(a),u!==null);)m=i.lastIndex,i===Q?u[1]==="!--"?i=se:u[1]!==void 0?i=oe:u[2]!==void 0?(le.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=k):u[3]!==void 0&&(i=k):i===k?u[0]===">"?(i=o??Q,p=-1):u[1]===void 0?p=-2:(p=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?k:u[3]==='"'?ie:ne):i===ie||i===ne?i=k:i===se||i===oe?i=Q:(i=k,o=void 0);let b=i===k&&r[c+1].startsWith("/>")?" ":"";n+=i===Q?a+Ie:p>=0?(s.push(l),a.slice(0,p)+Ut+a.slice(p)+_+b):a+_+(p===-2?c:b)}return[ue(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},G=class r{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,u]=he(t,e);if(this.el=r.createElement(l,s),P.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=P.nextNode())!==null&&a.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Ut)){let m=u[i++],b=o.getAttribute(p).split(_),et=/([.?@])?(.*)/.exec(m);a.push({type:1,index:n,name:et[2],strings:b,ctor:et[1]==="."?ct:et[1]==="?"?lt:et[1]==="@"?ut:M}),o.removeAttribute(p)}else p.startsWith(_)&&(a.push({type:6,index:n}),o.removeAttribute(p));if(le.test(o.tagName)){let p=o.textContent.split(_),m=p.length-1;if(m>0){o.textContent=it?it.emptyScript:"";for(let b=0;b<m;b++)o.append(p[b],J()),P.nextNode(),a.push({type:2,index:++n});o.append(p[m],J())}}}else if(o.nodeType===8)if(o.data===Ht)a.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf(_,p+1))!==-1;)a.push({type:7,index:n}),p+=_.length-1}n++}}static createElement(t,e){let s=O.createElement("template");return s.innerHTML=t,s}};function j(r,t,e=r,s){if(t===T)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=Y(t)?void 0:t._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(r),o._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=j(r,o._$AS(r,t.values),o,s)),t}var at=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??O).importNode(e,!0);P.currentNode=o;let n=P.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new z(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new ht(n,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(n=P.nextNode(),i++)}return P.currentNode=O,o}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},z=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=j(this,t,e),Y(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==T&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ce(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=G.createElement(ue(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new at(o,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=ae.get(t.strings);return e===void 0&&ae.set(t.strings,e=new G(t)),e}k(t){Rt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let n of t)o===e.length?e.push(s=new r(this.O(J()),this.O(J()),this,this.options)):s=e[o],s._$AI(n),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},M=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,o){let n=this.strings,i=!1;if(n===void 0)t=j(this,t,e,0),i=!Y(t)||t!==this._$AH&&t!==T,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=j(this,c[s+a],e,a),l===T&&(l=this._$AH[a]),i||=!Y(l)||l!==this._$AH[a],l===d?t=d:t!==d&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends M{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},lt=class extends M{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},ut=class extends M{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=j(this,t,e,0)??d)===T)return;let s=this._$AH,o=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==d&&(s===d||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ht=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){j(this,t)}},pe={M:Ut,P:_,A:Ht,C:1,L:he,R:at,D:ce,V:j,I:z,H:M,N:lt,U:ut,B:ct,F:ht},Le=Mt.litHtmlPolyfillSupport;Le?.(G,z),(Mt.litHtmlVersions??=[]).push("3.3.0");var S=(r,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new z(t.insertBefore(J(),n),n,void 0,e??{})}return o._$AI(r),o};var zt=globalThis,D=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=S(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T}};D._$litElement$=!0,D.finalized=!0,zt.litElementHydrateSupport?.({LitElement:D});var qe=zt.litElementPolyfillSupport;qe?.({LitElement:D});(zt.litElementVersions??=[]).push("4.2.0");function fe(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function pt(r,t={}){let{soft:e=!1,upgrade:s=!0}=t;for(let[o,n]of Object.entries(r)){let i=fe(o),c=customElements.get(i);e&&c||(customElements.define(i,n),s&&document.querySelectorAll(i).forEach(a=>{a.constructor===HTMLElement&&customElements.upgrade(a)}))}}var ft=class r{element;constructor(t){this.element=t}in(t){return new r(typeof t=="string"?this.require(t):t)}require(t){let e=this.element.querySelector(t);if(!e)throw new Error(`$1 ${t} not found`);return e}maybe(t){return this.element.querySelector(t)}all(t){return Array.from(this.element.querySelectorAll(t))}render(...t){return S(t,this.element)}};function E(r){return new ft(document).require(r)}var B=new ft(document);E.register=pt;E.render=(r,...t)=>S(t,r);E.in=B.in.bind(B);E.require=B.require.bind(B);E.maybe=B.maybe.bind(B);E.all=B.all.bind(B);var x=Object.freeze({eq(r,t){if(r.length!==t.length)return!1;for(let e=0;e<=r.length;e++)if(r.at(e)!==t.at(e))return!1;return!0},random(r){return crypto.getRandomValues(new Uint8Array(r))}});var U=Object.freeze({fromBytes(r){return[...r].map(t=>t.toString(16).padStart(2,"0")).join("")},toBytes(r){if(r.length%2!==0)throw new Error("must have even number of hex characters");let t=new Uint8Array(r.length/2);for(let e=0;e<r.length;e+=2)t[e/2]=parseInt(r.slice(e,e+2),16);return t},random(r=32){return this.fromBytes(x.random(r))},string(r){return U.fromBytes(r)},bytes(r){return U.toBytes(r)}});var Dt=58,dt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",It=Object.freeze({fromBytes(r){let t=BigInt("0x"+U.fromBytes(r)),e="";for(;t>0;){let s=t%BigInt(Dt);t=t/BigInt(Dt),e=dt[Number(s)]+e}for(let s of r)if(s===0)e=dt[0]+e;else break;return e},toBytes(r){let t=BigInt(0);for(let i of r){let c=dt.indexOf(i);if(c===-1)throw new Error(`Invalid character '${i}' in base58 string`);t=t*BigInt(Dt)+BigInt(c)}let e=t.toString(16);e.length%2!==0&&(e="0"+e);let s=U.toBytes(e),o=0;for(let i of r)if(i===dt[0])o++;else break;let n=new Uint8Array(o+s.length);return n.set(s,o),n},random(r=32){return this.fromBytes(x.random(r))},string(r){return It.fromBytes(r)},bytes(r){return It.toBytes(r)}});var de=class{lexicon;static lexicons=Object.freeze({base2:{characters:"01"},hex:{characters:"0123456789abcdef"},base36:{characters:"0123456789abcdefghijklmnopqrstuvwxyz"},base58:{characters:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"},base62:{characters:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"},base64url:{negativePrefix:"~",characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},base64:{characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",padding:{character:"=",size:4}}});lookup;negativePrefix;constructor(t){this.lexicon=t,this.lookup=Object.fromEntries([...t.characters].map((e,s)=>[e,s])),this.negativePrefix=t.negativePrefix??"-"}toBytes(t){let e=Math.log2(this.lexicon.characters.length);if(Number.isInteger(e)){let c=0,a=0,l=[];for(let u of t){if(u===this.lexicon.padding?.character)continue;let p=this.lookup[u];if(p===void 0)throw new Error(`Invalid character: ${u}`);for(c=c<<e|p,a+=e;a>=8;)a-=8,l.push(c>>a&255)}return new Uint8Array(l)}let s=0n,o=BigInt(this.lexicon.characters.length),n=!1;t.startsWith(this.negativePrefix)&&(t=t.slice(this.negativePrefix.length),n=!0);for(let c of t){let a=this.lookup[c];if(a===void 0)throw new Error(`Invalid character: ${c}`);s=s*o+BigInt(a)}let i=[];for(;s>0n;)i.unshift(Number(s%256n)),s=s/256n;return new Uint8Array(i)}fromBytes(t){let e=Math.log2(this.lexicon.characters.length);if(Number.isInteger(e)){let i=0,c=0,a="";for(let l of t)for(i=i<<8|l,c+=8;c>=e;){c-=e;let u=i>>c&(1<<e)-1;a+=this.lexicon.characters[u]}if(c>0){let l=i<<e-c&(1<<e)-1;a+=this.lexicon.characters[l]}if(this.lexicon.padding)for(;a.length%this.lexicon.padding.size!==0;)a+=this.lexicon.padding.character;return a}let s=0n;for(let i of t)s=(s<<8n)+BigInt(i);if(s===0n)return this.lexicon.characters[0];let o=BigInt(this.lexicon.characters.length),n="";for(;s>0n;)n=this.lexicon.characters[Number(s%o)]+n,s=s/o;return n}toInteger(t){if(!t)return 0;let e=0n,s=!1,o=BigInt(this.lexicon.characters.length);t.startsWith(this.negativePrefix)&&(t=t.slice(this.negativePrefix.length),s=!0);for(let n of t){let i=this.lookup[n];if(i===void 0)throw new Error(`Invalid character: ${n}`);e=e*o+BigInt(i)}return Number(s?-e:e)}fromInteger(t){t=Math.floor(t);let e=t<0,s=BigInt(e?-t:t);if(s===0n)return this.lexicon.characters[0];let o=BigInt(this.lexicon.characters.length),n="";for(;s>0n;)n=this.lexicon.characters[Number(s%o)]+n,s=s/o;return e?`${this.negativePrefix}${n}`:n}random(t=32){return this.fromBytes(x.random(t))}};var Lt=Object.freeze({fromBytes(r){return typeof btoa=="function"?btoa(String.fromCharCode(...r)):Buffer.from(r).toString("base64")},toBytes(r){return typeof atob=="function"?Uint8Array.from(atob(r),t=>t.charCodeAt(0)):Uint8Array.from(Buffer.from(r,"base64"))},random(r=32){return this.fromBytes(x.random(r))},string(r){return Lt.fromBytes(r)},bytes(r){return Lt.toBytes(r)}});var me=Object.freeze({fromBytes(r){return new TextDecoder().decode(r)},toBytes(r){return new TextEncoder().encode(r)},string(r){return me.fromBytes(r)},bytes(r){return me.toBytes(r)}});function mt(r,t){let e,s,o=[];function n(){e=[],s&&clearTimeout(s),s=void 0,o=[]}return n(),((...i)=>{e=i,s&&clearTimeout(s);let c=new Promise((a,l)=>{o.push({resolve:a,reject:l})});return s=setTimeout(()=>{Promise.resolve().then(()=>t(...e)).then(a=>{for(let{resolve:l}of o)l(a);n()}).catch(a=>{for(let{reject:l}of o)l(a);n()})},r),c})}var qt=Object.freeze({happy:r=>r!=null,sad:r=>r==null,boolean:r=>typeof r=="boolean",number:r=>typeof r=="number",string:r=>typeof r=="string",bigint:r=>typeof r=="bigint",object:r=>typeof r=="object"&&r!==null,array:r=>Array.isArray(r),fn:r=>typeof r=="function",symbol:r=>typeof r=="symbol"});function X(){let r,t,e=new Promise((o,n)=>{r=o,t=n});function s(o){return o.then(r).catch(t),e}return{promise:e,resolve:r,reject:t,entangle:s}}var I=class r extends Map{static require(t,e){if(t.has(e))return t.get(e);throw new Error(`required key not found: "${e}"`)}static guarantee(t,e,s){if(t.has(e))return t.get(e);{let o=s();return t.set(e,o),o}}array(){return[...this]}require(t){return r.require(this,t)}guarantee(t,e){return r.guarantee(this,t,e)}};var ye=(r=0)=>new Promise(t=>setTimeout(t,r));function Ve(r){return{map:t=>ge(r,t),filter:t=>be(r,t)}}Ve.pipe=Object.freeze({map:r=>(t=>ge(t,r)),filter:r=>(t=>be(t,r))});var ge=(r,t)=>Object.fromEntries(Object.entries(r).map(([e,s])=>[e,t(s,e)])),be=(r,t)=>Object.fromEntries(Object.entries(r).filter(([e,s])=>t(s,e)));function xe(){let r=new Set;async function t(...a){await Promise.all([...r].map(l=>l(...a)))}function e(a){return r.add(a),()=>{r.delete(a)}}async function s(...a){return t(...a)}function o(a){return e(a)}async function n(a){let{promise:l,resolve:u}=X(),p=o(async(...m)=>{a&&await a(...m),u(m),p()});return l}function i(){r.clear()}let c={pub:s,sub:o,publish:t,subscribe:e,on:e,next:n,clear:i};return Object.assign(o,c),Object.assign(s,c),c}function yt(r){let t=xe();return r&&t.sub(r),t.sub}function Vt(r){let t=xe();return r&&t.sub(r),t.pub}function gt(r){let t,e=!1,s=()=>{e=!0,clearTimeout(t)},o=async()=>{e||(await r(s),!e&&(t=setTimeout(o,0)))};return o(),s}var $e={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xt=r=>(...t)=>({_$litDirective$:r,values:t}),bt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Wt=class{#t=[];#e=new WeakMap;#s=[];#r=new Set;notifyRead(t){this.#t.at(-1)?.add(t)}async notifyWrite(t){if(this.#r.has(t))throw new Error("circularity forbidden");let e=this.#o(t).pub();return this.#s.at(-1)?.add(e),e}observe(t){this.#t.push(new Set);let e=t();return{seen:this.#t.pop(),result:e}}subscribe(t,e){return this.#o(t)(async()=>{let s=new Set;this.#s.push(s),this.#r.add(t),s.add(e()),this.#r.delete(t),await Promise.all(s),this.#s.pop()})}#o(t){let e=this.#e.get(t);return e||(e=yt(),this.#e.set(t,e)),e}},y=globalThis[Symbol.for("e280.tracker")]??=new Wt;var{I:bn}=pe;var we=r=>r.strings===void 0;var tt=(r,t)=>{let e=r._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),tt(s,t);return!0},$t=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while(e?.size===0)},ve=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),Ze(t)}};function We(r){this._$AN!==void 0?($t(this),this._$AM=r,ve(this)):this._$AM=r}function Fe(r,t=!1,e=0){let s=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)tt(s[n],!1),$t(s[n]);else s!=null&&(tt(s,!1),$t(s));else tt(this,r)}var Ze=r=>{r.type==$e.CHILD&&(r._$AP??=Fe,r._$AQ??=We)},wt=class extends bt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ve(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(tt(this,t),$t(this))}setValue(t){if(we(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};function Ae(r,t){for(let[e,s]of Object.entries(t))s===void 0||s===null?r.removeAttribute(e):typeof s=="string"?r.setAttribute(e,s):typeof s=="number"?r.setAttribute(e,s.toString()):typeof s=="boolean"?s===!0?r.setAttribute(e,""):r.removeAttribute(e):console.warn(`invalid attribute type ${e} is ${typeof s}`)}function vt(r,t){ot(r,Ke(t))}function Ke(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(N(s))}else r!==void 0&&t.push(N(r));return t}var L=class{sneak;constructor(t){this.sneak=t}get(){return y.notifyRead(this),this.sneak}get value(){return this.get()}};var q=class extends L{on=yt();dispose(){this.on.clear()}};function At(r,t=r){let{seen:e,result:s}=y.observe(r),o=mt(0,t),n=[],i=()=>n.forEach(c=>c());for(let c of e){let a=y.subscribe(c,o);n.push(a)}return{result:s,dispose:i}}function V(r,t){return r===t}var _t=class extends q{#t;constructor(t,e){let s=e?.compare??V,{result:o,dispose:n}=At(t,async()=>{let i=t();!s(this.sneak,i)&&(this.sneak=i,await Promise.all([y.notifyWrite(this),this.on.pub(i)]))});super(o),this.#t=n}dispose(){super.dispose(),this.#t()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var St=class extends L{#t;#e;#s=!1;#r;constructor(t,e){super(void 0),this.#t=t,this.#e=e?.compare??V}get(){if(!this.#r){let{result:t,dispose:e}=At(this.#t,()=>this.#s=!0);this.#r=e,this.sneak=t}if(this.#s){this.#s=!1;let t=this.#t();!this.#e(this.sneak,t)&&(this.sneak=t,y.notifyWrite(this))}return super.get()}dispose(){this.#r&&this.#r()}get core(){return this}fn(){let t=this;function e(){return t.get()}return e.core=t,e.get=t.get.bind(t),e.dispose=t.dispose.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value}),Object.defineProperty(e,"sneak",{get:()=>t.sneak}),e}};var Et=class extends q{#t=!1;#e;constructor(t,e){super(t),this.#e=e?.compare??V}async set(t){return!this.#e(this.sneak,t)&&await this.publish(t),t}get value(){return this.get()}set value(t){this.set(t)}async publish(t=this.sneak){if(this.#t)throw new Error("forbid circularity");let e=Promise.resolve();try{this.#t=!0,this.sneak=t,e=Promise.all([y.notifyWrite(this),this.on.publish(t)])}finally{this.#t=!1}return await e,t}get core(){return this}fn(){let t=this;function e(s){return arguments.length===0?t.get():t.set(arguments[0])}return e.core=t,e.get=t.get.bind(t),e.set=t.set.bind(t),e.on=t.on,e.dispose=t.dispose.bind(t),e.publish=t.publish.bind(t),e.fn=t.fn.bind(t),Object.defineProperty(e,"value",{get:()=>t.value,set:s=>t.value=s}),Object.defineProperty(e,"sneak",{get:()=>t.sneak,set:s=>t.sneak=s}),e}};function Qe(r,t){return new St(r,t).fn()}function Je(r,t){return new _t(r,t).fn()}function $(r,t){return new Et(r,t).fn()}$.lazy=Qe;$.derive=Je;var H={status:r=>r[0],value:r=>r[0]==="ready"?r[1]:void 0,error:r=>r[0]==="error"?r[1]:void 0,select:(r,t)=>{switch(r[0]){case"loading":return t.loading();case"error":return t.error(r[1]);case"ready":return t.ready(r[1]);default:throw new Error("unknown op status")}},morph:(r,t)=>H.select(r,{loading:()=>["loading"],error:e=>["error",e],ready:e=>["ready",t(e)]}),all:(...r)=>{let t=[],e=[],s=0;for(let o of r)switch(o[0]){case"loading":s++;break;case"ready":t.push(o[1]);break;case"error":e.push(o[1]);break}return e.length>0?["error",e]:s===0?["ready",t]:["loading"]}};var R=class{static loading(){return new this}static ready(t){return new this(["ready",t])}static error(t){return new this(["error",t])}static promise(t){let e=new this;return e.promise(t),e}static fn(t){return this.promise(t())}static all(...t){let e=t.map(s=>s.pod);return H.all(...e)}signal;#t=0;#e=Vt();#s=Vt();constructor(t=["loading"]){this.signal=$(t)}get wait(){return new Promise((t,e)=>{this.#e.next().then(([s])=>t(s)),this.#s.next().then(([s])=>e(s))})}get then(){return this.wait.then.bind(this.wait)}get catch(){return this.wait.catch.bind(this.wait)}get finally(){return this.wait.finally.bind(this.wait)}async setLoading(){await this.signal.set(["loading"])}async setReady(t){await this.signal.set(["ready",t]),await this.#e(t)}async setError(t){await this.signal.set(["error",t]),await this.#s(t)}async promise(t){let e=++this.#t;await this.setLoading();try{let s=await t;return e===this.#t&&await this.setReady(s),s}catch(s){e===this.#t&&await this.setError(s)}}async fn(t){return this.promise(t())}get pod(){return this.signal.get()}set pod(t){this.signal.set(t)}get status(){return this.signal.get()[0]}get value(){return H.value(this.signal.get())}get error(){return H.error(this.signal.get())}get isLoading(){return this.status==="loading"}get isReady(){return this.status==="ready"}get isError(){return this.status==="error"}require(){let t=this.signal.get();if(t[0]!=="ready")throw new Error("required value not ready");return t[1]}select(t){return H.select(this.signal.get(),t)}morph(t){return H.morph(this.pod,t)}};var Ct=class{#t=[];#e=[];mount(t){this.#t.push(t),this.#e.push(t())}unmountAll(){for(let t of this.#e)t();this.#e=[]}remountAll(){for(let t of this.#t)this.#e.push(t())}};var _e=(r,t)=>new Proxy(t,{get:(e,s)=>{let o=t[s],n=r.getAttribute(s);switch(o){case String:return n??void 0;case Number:return n!==null?Number(n):void 0;case Boolean:return n!==null;default:throw new Error(`invalid attribute type for "${s}"`)}},set:(e,s,o)=>{switch(t[s]){case String:return r.setAttribute(s,o),!0;case Number:return r.setAttribute(s,o.toString()),!0;case Boolean:return o?r.setAttribute(s,""):r.removeAttribute(s),!0;default:throw new Error(`invalid attribute type for "${s}"`)}}});function Se(r,t){let e=new MutationObserver(t);return e.observe(r,{attributes:!0}),()=>e.disconnect()}var Ft=Symbol(),Zt=Symbol(),Kt=Symbol(),Bt=class{element;shadow;renderNow;render;#t=0;#e=0;#s=new I;#r=X();#o=new Ct;[Ft](t){this.#t++,this.#e=0,this.#r=X();let e=t();return this.#r.resolve(),e}[Zt](){this.#o.unmountAll()}[Kt](){this.#o.remountAll()}constructor(t,e,s,o){this.element=t,this.shadow=e,this.renderNow=s,this.render=o}get renderCount(){return this.#t}get rendered(){return this.#r.promise}name(t){this.once(()=>this.element.setAttribute("view",t))}styles(...t){this.once(()=>vt(this.shadow,t))}css(...t){return this.styles(...t)}attrs(t){return this.mount(()=>Se(this.element,this.render)),this.once(()=>_e(this.element,t))}once(t){return this.#s.guarantee(this.#e++,t)}mount(t){return this.once(()=>this.#o.mount(t))}life(t){let e;return this.mount(()=>{let[s,o]=t();return e=s,o}),e}wake(t){return this.life(()=>[t(),()=>{}])}op=(()=>{let t=this;function e(s){return t.once(()=>R.fn(s))}return e.fn=e,e.promise=s=>this.once(()=>R.promise(s)),e})();signal=(()=>{let t=this;function e(s,o){return t.once(()=>$(s,o))}return e.derive=function(o,n){return t.once(()=>$.derive(o,n))},e.lazy=function(o,n){return t.once(()=>$.lazy(o,n))},e})();derive(t,e){return this.once(()=>$.derive(t,e))}lazy(t,e){return this.once(()=>$.lazy(t,e))}};var w=Ee({mode:"open"}),Qt=class extends HTMLElement{};pt({SlyView:Qt},{soft:!0,upgrade:!0});function Ee(r){function t(e){let s=c=>class extends wt{#t=c.getElement();#e=this.#t.attachShadow(r);#s=mt(0,()=>this.#i());#r=new I;#o;#n=new Bt(this.#t,this.#e,()=>this.#i(),this.#s);#a=(()=>{let l=e(this.#n);return this.#t.setAttribute("view",r.name??""),r.styles&&vt(this.#e,r.styles),l})();#i(){if(!this.#o||!this.isConnected)return;let{context:l,props:u}=this.#o;this.#n[Ft](()=>{Ae(this.#t,l.attrs);let{result:p,seen:m}=y.observe(()=>this.#a(...u));S(p,this.#e);for(let b of m)this.#r.guarantee(b,()=>y.subscribe(b,async()=>this.#s()));c.isComponent||S(l.children,this.#t)})}render(l,u){return this.#o={context:l,props:u},this.#i(),c.isComponent?null:this.#t}disconnected(){this.#n[Zt]();for(let l of this.#r.values())l();this.#r.clear()}reconnected(){this.#n[Kt]()}},o=xt(s({getElement:()=>document.createElement(r.tag??"sly-view"),isComponent:!1})),n=()=>({attrs:{},children:[]});function i(...c){return o(n(),c)}return i.props=(...c)=>{let a=n(),l={children(...u){return a={...a,children:[...a.children,...u]},l},attrs(u){return a={...a,attrs:{...a.attrs,...u}},l},attr(u,p){return a={...a,attrs:{...a.attrs,[u]:p}},l},render(){return o(a,c)}};return l},i.component=(...c)=>class extends HTMLElement{#t=xt(s({getElement:()=>this,isComponent:!0}));constructor(){super(),this.render(...c)}render(...a){this.isConnected&&S(this.#t(n(),a),this)}},i}return t.declare=t,t.settings=e=>Ee({...r,...e}),t.component=e=>t(s=>()=>e(s)).component(),t}var v=g`
4
4
  @layer reset {
5
5
  * {
6
6
  margin: 0;
@@ -16,16 +16,21 @@ var ke=Object.defineProperty;var Pe=(r,t)=>{for(var e in t)ke(r,e,{get:t[e],enum
16
16
  ::-webkit-scrollbar-thumb { background: #333; border-radius: 1em; }
17
17
  ::-webkit-scrollbar-thumb:hover { background: #444; }
18
18
  }
19
- `;var Ct=$(r=>t=>{r.name("counter"),r.styles(w,Je);let e=r.once(()=>Date.now()),s=r.signal(0);r.mount(()=>mt(async()=>{let i=Date.now()-e;s.set(Math.floor(i/1e3))}));let o=r.signal(t),n=()=>o.value++;return _`
19
+ `;var kt=w(r=>t=>{r.name("counter"),r.styles(v,Ye);let e=r.signal(0),s=r.once(()=>Date.now());r.mount(()=>gt(async()=>{let c=Date.now()-s;e.set(Math.floor(c/1e3))}));let o=r.signal(t),n=()=>o.value++,i=r.signal.derive(()=>o()*e());return C`
20
20
  <slot></slot>
21
21
  <div>
22
- <span>${s.get()}</span>
22
+ <span>${e.get()}</span>
23
23
  </div>
24
24
  <div>
25
25
  <span>${o.get()}</span>
26
+ </div>
27
+ <div>
28
+ <span>${i.get()}</span>
29
+ </div>
30
+ <div>
26
31
  <button @click="${n}">+</button>
27
32
  </div>
28
- `}),Je=g`
33
+ `}),Ye=g`
29
34
  :host {
30
35
  display: flex;
31
36
  justify-content: center;
@@ -35,23 +40,23 @@ var ke=Object.defineProperty;var Pe=(r,t)=>{for(var e in t)ke(r,e,{get:t[e],enum
35
40
  button {
36
41
  padding: 0.2em 0.5em;
37
42
  }
38
- `;var Bt={};Pe(Bt,{arrow:()=>tr,bar:()=>er,bar2:()=>rr,bar3:()=>sr,bar4:()=>or,bin:()=>xr,binary:()=>$r,binary2:()=>wr,block:()=>nr,block2:()=>ir,brackets:()=>hr,brackets2:()=>pr,braille:()=>Kt,bright:()=>Br,clock:()=>_r,cylon:()=>lr,dots:()=>fr,dots2:()=>dr,earth:()=>Er,fistbump:()=>Sr,kiss:()=>vr,lock:()=>Cr,moon:()=>Pr,pie:()=>cr,pulseblue:()=>Ar,runner:()=>ar,slider:()=>ur,speaker:()=>kr,spinner:()=>Xe,wave:()=>mr,wavepulse:()=>gr,wavepulse2:()=>br,wavescrub:()=>yr});function h(r,t){return()=>Ye({hz:r,frames:t})}var Ye=$(r=>({hz:t,frames:e})=>{r.name("loading"),r.styles(w,Ge);let s=r.signal(0);return r.mount(()=>mt(async()=>{await de(1e3/t);let o=s.get()+1;s.set(o>=e.length?0:o)})),e.at(s.get())}),Ge=g`
43
+ `;var Pt={};Te(Pt,{arrow:()=>er,bar:()=>rr,bar2:()=>sr,bar3:()=>or,bar4:()=>nr,bin:()=>$r,binary:()=>wr,binary2:()=>vr,block:()=>ir,block2:()=>ar,brackets:()=>pr,brackets2:()=>fr,braille:()=>Jt,bright:()=>kr,clock:()=>Sr,cylon:()=>ur,dots:()=>dr,dots2:()=>mr,earth:()=>Cr,fistbump:()=>Er,kiss:()=>_r,lock:()=>Br,moon:()=>Or,pie:()=>lr,pulseblue:()=>Ar,runner:()=>cr,slider:()=>hr,speaker:()=>Pr,spinner:()=>tr,wave:()=>yr,wavepulse:()=>br,wavepulse2:()=>xr,wavescrub:()=>gr});function h(r,t){return()=>Ge({hz:r,frames:t})}var Ge=w(r=>({hz:t,frames:e})=>{r.name("loading"),r.styles(v,Xe);let s=r.signal(0);return r.mount(()=>gt(async()=>{await ye(1e3/t);let o=s.get()+1;s.set(o>=e.length?0:o)})),e.at(s.get())}),Xe=g`
39
44
  :host {
40
45
  font-family: monospace;
41
46
  white-space: pre;
42
47
  user-select: none;
43
48
  }
44
- `;var f=20,V=10,W=4,Xe=h(f,["|","/","-","\\"]),Kt=h(f,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),tr=h(f,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),er=h(f,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),rr=h(f,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),sr=h(f,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),or=h(f,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),nr=h(f,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),ir=h(f,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),ar=h(W,["\u{1F6B6}","\u{1F3C3}"]),cr=h(V,["\u25F7","\u25F6","\u25F5","\u25F4"]),lr=h(f,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),ur=h(f,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),hr=h(V,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),pr=h(V,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),fr=h(V,[" "," ",". ",".. ","..."," .."," ."]),dr=h(f,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),mr=h(f,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),yr=h(f,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),gr=h(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),br=h(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),xr=h(f,["000","100","110","111","011","001"]),$r=h(f,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),wr=h(f,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),Ar=h(W,["\u{1F539}","\u{1F535}"]),vr=h(V,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),_r=h(f,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),Sr=h(f,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),Er=h(W,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),Cr=h(W,["\u{1F513}","\u{1F512}"]),Br=h(W,["\u{1F505}","\u{1F506}"]),kr=h(W,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),Pr=h(V,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var Se=$(r=>t=>(r.name("error"),r.styles(w,Tr),typeof t=="string"?t:t instanceof Error?_`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),Tr=g`
49
+ `;var f=20,W=10,F=4,tr=h(f,["|","/","-","\\"]),Jt=h(f,["\u2808","\u2810","\u2820","\u2880","\u2840","\u2804","\u2802","\u2801"]),er=h(f,["\u2B06\uFE0F","\u2197\uFE0F","\u27A1\uFE0F","\u2198\uFE0F","\u2B07\uFE0F","\u2199\uFE0F","\u2B05\uFE0F","\u2196\uFE0F"]),rr=h(f,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),sr=h(f,["\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B1\u25B0\u25B1\u25B1\u25B1"]),or=h(f,["\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1"]),nr=h(f,["\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B0\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B0\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B0\u25B0","\u25B1\u25B1\u25B1\u25B1\u25B0"]),ir=h(f,["\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588"]),ar=h(f,["\u2588\u2581\u2581\u2581\u2581","\u2588\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2588\u2588\u2588","\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581","\u2588\u2588\u2588\u2581\u2581","\u2588\u2588\u2581\u2581\u2581"]),cr=h(F,["\u{1F6B6}","\u{1F3C3}"]),lr=h(W,["\u25F7","\u25F6","\u25F5","\u25F4"]),ur=h(f,["=----","-=---","--=--","---=-","----=","----=","---=-","--=--","-=---","=----"]),hr=h(f,["o----","-o---","--o--","---o-","----o","----o","---o-","--o--","-o---","o----"]),pr=h(W,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]"]),fr=h(W,["[ ]","[ ]","[= ]","[== ]","[===]","[ ==]","[ =]","[ ]","[ ]","[ =]","[ ==]","[===]","[== ]","[= ]"]),dr=h(W,[" "," ",". ",".. ","..."," .."," ."]),mr=h(f,[". ",". ",".. ","..."," .."," ."," ."," ..","...",".. "]),yr=h(f,[".....",".....",":....","::...",":::..","::::.",":::::",":::::",".::::","..:::","...::","....:"]),gr=h(f,[":....",":....","::...",".::..","..::.","...::","....:","....:","...::","..::.",".::..","::..."]),br=h(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:"]),xr=h(f,[".....",".....","..:..",".:::.",".:::.",":::::",":::::","::.::",":...:",".....",".....",":...:","::.::",":::::",":::::",".:::.",".:::.","..:.."]),$r=h(f,["000","100","110","111","011","001"]),wr=h(f,["11111","01111","00111","10011","11001","01100","00110","10011","11001","11100","11110"]),vr=h(f,["11111","01111","10111","11011","11101","11110","11111","11110","11101","11011","10111","01111"]),Ar=h(F,["\u{1F539}","\u{1F535}"]),_r=h(W,["\u{1F642}","\u{1F642}","\u{1F617}","\u{1F619}","\u{1F618}","\u{1F618}","\u{1F619}"]),Sr=h(f,["\u{1F550}","\u{1F551}","\u{1F552}","\u{1F553}","\u{1F554}","\u{1F555}","\u{1F556}","\u{1F557}","\u{1F558}","\u{1F559}","\u{1F55A}","\u{1F55B}"]),Er=h(f,["\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}","\u{1F91C} \u{1F91B}"," \u{1F91C} \u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F91B} "," \u{1F91C}\u{1F4A5}\u{1F91B} ","\u{1F91C} \u{1F4A5} \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}","\u{1F91C} \u2728 \u{1F91B}"]),Cr=h(F,["\u{1F30E}","\u{1F30F}","\u{1F30D}"]),Br=h(F,["\u{1F513}","\u{1F512}"]),kr=h(F,["\u{1F505}","\u{1F506}"]),Pr=h(F,["\u{1F508}","\u{1F508}","\u{1F509}","\u{1F50A}","\u{1F50A}","\u{1F509}"]),Or=h(W,["\u{1F311}","\u{1F311}","\u{1F311}","\u{1F318}","\u{1F317}","\u{1F316}","\u{1F315}","\u{1F314}","\u{1F313}","\u{1F312}"]);var Ce=w(r=>t=>(r.name("error"),r.styles(v,Tr),typeof t=="string"?t:t instanceof Error?C`<strong>${t.name}:</strong> <span>${t.message}</span>`:"error")),Tr=g`
45
50
  :host {
46
51
  font-family: monospace;
47
52
  color: red;
48
53
  }
49
- `;function Ee(r=Kt,t=e=>Se(e)){return(e,s)=>e.select({loading:r,ready:s,error:t})}var Ce=$(r=>()=>{r.name("loaders"),r.styles(w,Or);let t=r.once(()=>U.loading());return r.once(()=>Object.entries(Bt).map(([s,o])=>({key:s,loader:Ee(o)}))).map(({key:s,loader:o})=>_`
54
+ `;function Be(r=Jt,t=e=>Ce(e)){return(e,s)=>e.select({loading:r,ready:s,error:t})}var ke=w(r=>()=>{r.name("loaders"),r.styles(v,jr);let t=r.once(()=>R.loading());return r.once(()=>Object.entries(Pt).map(([s,o])=>({key:s,loader:Be(o)}))).map(({key:s,loader:o})=>C`
50
55
  <div data-anim="${s}">
51
56
  <span>${s}</span>
52
57
  <span>${o(t,()=>null)}</span>
53
58
  </div>
54
- `)}),Or=g`
59
+ `)}),jr=g`
55
60
  :host {
56
61
  display: flex;
57
62
  flex-direction: row;
@@ -92,16 +97,16 @@ div {
92
97
  min-height: 2.5em;
93
98
  }
94
99
  }
95
- `;var Be=$(r=>()=>(r.name("demo"),r.styles(w,jr),_`
96
- ${Ct.props(2).children("view").render()}
97
- ${Ce()}
98
- `)),jr=g`
100
+ `;var Pe=w(r=>()=>(r.name("demo"),r.styles(v,Mr),C`
101
+ ${kt.props(2).children("view").render()}
102
+ ${ke()}
103
+ `)),Mr=g`
99
104
  :host {
100
105
  display: flex;
101
106
  flex-direction: column;
102
107
  gap: 1em;
103
108
  }
104
- `;E.render(E(".demo"),Be());E.register({DemoCounter:Ct.component(1)});console.log("\u{1F99D} sly");
109
+ `;E.in(".demo").render(Pe());E.register({DemoCounter:kt.component(1)});console.log("\u{1F99D} sly");
105
110
  /*! Bundled license information:
106
111
 
107
112
  @lit/reactive-element/css-tag.js: