@atom.io/template-preact-svg-editor 0.0.44 → 0.0.45

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,5 +1,5 @@
1
1
 
2
- > @atom.io/template-preact-svg-editor@0.0.44 build /home/runner/work/wayforge/wayforge/templates/preact-svg-editor
2
+ > @atom.io/template-preact-svg-editor@0.0.45 build /home/runner/work/wayforge/wayforge/templates/preact-svg-editor
3
3
  > vite build
4
4
 
5
5
  vite v7.3.1 building client environment for production...
@@ -9,5 +9,5 @@ rendering chunks...
9
9
  computing gzip size...
10
10
  dist/index.html  0.52 kB │ gzip: 0.33 kB
11
11
  dist/assets/index-jy4_OpZh.css  1.60 kB │ gzip: 0.72 kB
12
- dist/assets/index-kIpB1JKY.js 81.69 kB │ gzip: 25.92 kB
13
- ✓ built in 720ms
12
+ dist/assets/index-CgEpLhrl.js 81.70 kB │ gzip: 25.92 kB
13
+ ✓ built in 905ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atom.io/template-preact-svg-editor
2
2
 
3
+ ## 0.0.45
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [db9547a]
8
+ - atom.io@0.46.24
9
+
3
10
  ## 0.0.44
4
11
 
5
12
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();var Ie,m,dn,Q,jt,yn,pn,hn,ft,Qe,et,mn,_e={},gn=[],co=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,we=Array.isArray;function J(e,t){for(var n in t)e[n]=t[n];return e}function _t(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function tt(e,t,n){var o,s,r,i={};for(r in t)r=="key"?o=t[r]:r=="ref"?s=t[r]:i[r]=t[r];if(arguments.length>2&&(i.children=arguments.length>3?Ie.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)i[r]===void 0&&(i[r]=e.defaultProps[r]);return Ce(e,i,o,s,null)}function Ce(e,t,n,o,s){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++dn,__i:-1,__u:0};return s==null&&m.vnode!=null&&m.vnode(r),r}function P(e){return e.children}function H(e,t){this.props=e,this.context=t}function ie(e,t){if(t==null)return e.__?ie(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ie(e):null}function bn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return bn(e)}}function nt(e){(!e.__d&&(e.__d=!0)&&Q.push(e)&&!Ae.__r++||jt!=m.debounceRendering)&&((jt=m.debounceRendering)||yn)(Ae)}function Ae(){for(var e,t,n,o,s,r,i,a=1;Q.length;)Q.length>a&&Q.sort(pn),e=Q.shift(),a=Q.length,e.__d&&(n=void 0,o=void 0,s=(o=(t=e).__v).__e,r=[],i=[],t.__P&&((n=J({},o)).__v=o.__v+1,m.vnode&&m.vnode(n),dt(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[s]:null,r,s??ie(o),!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,vn(r,n,i),o.__e=o.__=null,n.__e!=s&&bn(n)));Ae.__r=0}function kn(e,t,n,o,s,r,i,a,u,f,c){var l,d,_,y,p,k,g,h=o&&o.__k||gn,v=t.length;for(u=uo(n,t,h,u,v),l=0;l<v;l++)(_=n.__k[l])!=null&&(d=_.__i==-1?_e:h[_.__i]||_e,_.__i=l,k=dt(e,_,d,s,r,i,a,u,f,c),y=_.__e,_.ref&&d.ref!=_.ref&&(d.ref&&yt(d.ref,null,_),c.push(_.ref,_.__c||y,_)),p==null&&y!=null&&(p=y),(g=!!(4&_.__u))||d.__k===_.__k?u=wn(_,u,e,g):typeof _.type=="function"&&k!==void 0?u=k:y&&(u=y.nextSibling),_.__u&=-7);return n.__e=p,u}function uo(e,t,n,o,s){var r,i,a,u,f,c=n.length,l=c,d=0;for(e.__k=new Array(s),r=0;r<s;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=e.__k[r]=Ce(null,i,null,null,null):we(i)?i=e.__k[r]=Ce(P,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?i=e.__k[r]=Ce(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[r]=i,u=r+d,i.__=e,i.__b=e.__b+1,a=null,(f=i.__i=fo(i,n,u,l))!=-1&&(l--,(a=n[f])&&(a.__u|=2)),a==null||a.__v==null?(f==-1&&(s>c?d--:s<c&&d++),typeof i.type!="function"&&(i.__u|=4)):f!=u&&(f==u-1?d--:f==u+1?d++:(f>u?d--:d++,i.__u|=4))):e.__k[r]=null;if(l)for(r=0;r<c;r++)(a=n[r])!=null&&(2&a.__u)==0&&(a.__e==o&&(o=ie(a)),$n(a,a));return o}function wn(e,t,n,o){var s,r;if(typeof e.type=="function"){for(s=e.__k,r=0;s&&r<s.length;r++)s[r]&&(s[r].__=e,t=wn(s[r],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=ie(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function je(e,t){return t=t||[],e==null||typeof e=="boolean"||(we(e)?e.some(function(n){je(n,t)}):t.push(e)),t}function fo(e,t,n,o){var s,r,i,a=e.key,u=e.type,f=t[n],c=f!=null&&(2&f.__u)==0;if(f===null&&a==null||c&&a==f.key&&u==f.type)return n;if(o>(c?1:0)){for(s=n-1,r=n+1;s>=0||r<t.length;)if((f=t[i=s>=0?s--:r++])!=null&&(2&f.__u)==0&&a==f.key&&u==f.type)return i}return-1}function Pt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||co.test(t)?n:n+"px"}function Re(e,t,n,o,s){var r,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Pt(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||Pt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")r=t!=(t=t.replace(hn,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o?n.u=o.u:(n.u=ft,e.addEventListener(t,r?et:Qe,r)):e.removeEventListener(t,r?et:Qe,r);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Nt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ft++;else if(t.t<n.u)return;return n(m.event?m.event(t):t)}}}function dt(e,t,n,o,s,r,i,a,u,f){var c,l,d,_,y,p,k,g,h,v,x,O,A,W,E,z,X,I=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),r=[a=t.__e=n.__e]),(c=m.__b)&&c(t);e:if(typeof I=="function")try{if(g=t.props,h="prototype"in I&&I.prototype.render,v=(c=I.contextType)&&o[c.__c],x=c?v?v.props.value:c.__:o,n.__c?k=(l=t.__c=n.__c).__=l.__E:(h?t.__c=l=new I(g,x):(t.__c=l=new H(g,x),l.constructor=I,l.render=yo),v&&v.sub(l),l.state||(l.state={}),l.__n=o,d=l.__d=!0,l.__h=[],l._sb=[]),h&&l.__s==null&&(l.__s=l.state),h&&I.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=J({},l.__s)),J(l.__s,I.getDerivedStateFromProps(g,l.__s))),_=l.props,y=l.state,l.__v=t,d)h&&I.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),h&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(h&&I.getDerivedStateFromProps==null&&g!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,x),t.__v==n.__v||!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,x)===!1){for(t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ne){ne&&(ne.__=t)}),O=0;O<l._sb.length;O++)l.__h.push(l._sb[O]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,x),h&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,y,p)})}if(l.context=x,l.props=g,l.__P=e,l.__e=!1,A=m.__r,W=0,h){for(l.state=l.__s,l.__d=!1,A&&A(t),c=l.render(l.props,l.state,l.context),E=0;E<l._sb.length;E++)l.__h.push(l._sb[E]);l._sb=[]}else do l.__d=!1,A&&A(t),c=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++W<25);l.state=l.__s,l.getChildContext!=null&&(o=J(J({},o),l.getChildContext())),h&&!d&&l.getSnapshotBeforeUpdate!=null&&(p=l.getSnapshotBeforeUpdate(_,y)),z=c,c!=null&&c.type===P&&c.key==null&&(z=Sn(c.props.children)),a=kn(e,we(z)?z:[z],t,n,o,s,r,i,a,u,f),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),k&&(l.__E=l.__=null)}catch(ne){if(t.__v=null,u||r!=null)if(ne.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;r[r.indexOf(a)]=null,t.__e=a}else{for(X=r.length;X--;)_t(r[X]);ot(t)}else t.__e=n.__e,t.__k=n.__k,ne.then||ot(t);m.__e(ne,t,n)}else r==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=_o(n.__e,t,n,o,s,r,i,u,f);return(c=m.diffed)&&c(t),128&t.__u?void 0:a}function ot(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(ot)}function vn(e,t,n){for(var o=0;o<n.length;o++)yt(n[o],n[++o],n[++o]);m.__c&&m.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(r){r.call(s)})}catch(r){m.__e(r,s.__v)}})}function Sn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:we(e)?e.map(Sn):J({},e)}function _o(e,t,n,o,s,r,i,a,u){var f,c,l,d,_,y,p,k=n.props||_e,g=t.props,h=t.type;if(h=="svg"?s="http://www.w3.org/2000/svg":h=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),r!=null){for(f=0;f<r.length;f++)if((_=r[f])&&"setAttribute"in _==!!h&&(h?_.localName==h:_.nodeType==3)){e=_,r[f]=null;break}}if(e==null){if(h==null)return document.createTextNode(g);e=document.createElementNS(s,h,g.is&&g),a&&(m.__m&&m.__m(t,r),a=!1),r=null}if(h==null)k===g||a&&e.data==g||(e.data=g);else{if(r=r&&Ie.call(e.childNodes),!a&&r!=null)for(k={},f=0;f<e.attributes.length;f++)k[(_=e.attributes[f]).name]=_.value;for(f in k)if(_=k[f],f!="children"){if(f=="dangerouslySetInnerHTML")l=_;else if(!(f in g)){if(f=="value"&&"defaultValue"in g||f=="checked"&&"defaultChecked"in g)continue;Re(e,f,null,_,s)}}for(f in g)_=g[f],f=="children"?d=_:f=="dangerouslySetInnerHTML"?c=_:f=="value"?y=_:f=="checked"?p=_:a&&typeof _!="function"||k[f]===_||Re(e,f,_,k[f],s);if(c)a||l&&(c.__html==l.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(l&&(e.innerHTML=""),kn(t.type=="template"?e.content:e,we(d)?d:[d],t,n,o,h=="foreignObject"?"http://www.w3.org/1999/xhtml":s,r,i,r?r[0]:n.__k&&ie(n,0),a,u),r!=null)for(f=r.length;f--;)_t(r[f]);a||(f="value",h=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[f]||h=="progress"&&!y||h=="option"&&y!=k[f])&&Re(e,f,y,k[f],s),f="checked",p!=null&&p!=e[f]&&Re(e,f,p,k[f],s))}return e}function yt(e,t,n){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(s){m.__e(s,n)}}function $n(e,t,n){var o,s;if(m.unmount&&m.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||yt(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){m.__e(r,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&$n(o[s],t,n||typeof e.type!="function");n||_t(e.__e),e.__c=e.__=e.__e=void 0}function yo(e,t,n){return this.constructor(e,n)}function po(e,t,n){var o,s,r,i;t==document&&(t=document.documentElement),m.__&&m.__(e,t),s=(o=!1)?null:t.__k,r=[],i=[],dt(t,e=t.__k=tt(P,null,[e]),s||_e,_e,t.namespaceURI,s?null:t.firstChild?Ie.call(t.childNodes):null,r,s?s.__e:t.firstChild,o,i),vn(r,e,i)}function ho(e){function t(n){var o,s;return this.getChildContext||(o=new Set,(s={})[t.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(r){this.props.value!=r.value&&o.forEach(function(i){i.__e=!0,nt(i)})},this.sub=function(r){o.add(r);var i=r.componentWillUnmount;r.componentWillUnmount=function(){o&&o.delete(r),i&&i.call(r)}}),n.children}return t.__c="__cC"+mn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}Ie=gn.slice,m={__e:function(e,t,n,o){for(var s,r,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((r=s.constructor)&&r.getDerivedStateFromError!=null&&(s.setState(r.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},dn=0,H.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=J({},this.state),typeof e=="function"&&(e=e(J({},n),this.props)),e&&J(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),nt(this))},H.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nt(this))},H.prototype.render=P,Q=[],yn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pn=function(e,t){return e.__v.__b-t.__v.__b},Ae.__r=0,hn=/(PointerCapture)$|Capture$/i,ft=0,Qe=Nt(!1),et=Nt(!0),mn=0;var mo=0;function b(e,t,n,o,s,r){t||(t={});var i,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?i=t[a]:u[a]=t[a];var f={type:e,props:u,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--mo,__i:-1,__u:0,__source:s,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)u[a]===void 0&&(u[a]=i[a]);return m.vnode&&m.vnode(f),f}const Kn="",Rn="",Tn="",xn="",Ft=e=>{if(e===null)return Rn;switch(typeof e){case"string":return Tn+e;case"number":return xn+e;case"boolean":return Kn+ +e;case"object":return JSON.stringify(e)}},Dt=e=>{switch(e[0]){case Tn:return e.slice(1);case xn:return+e.slice(1);case Kn:return e.slice(1)==="1";case Rn:return null;case"[":return JSON.parse(e)}};function go(e){const t={};let n=0;for(const o of e)t[o]=n,t[n]=o,++n;return t}function ee(e){return JSON.parse(e)}const T=e=>JSON.stringify(e),It=go(["add","delete","clear"]);var bo=class fe extends Set{mode="record";subject=new S;constructor(t){super(t)}READONLY_VIEW=this;toJSON(){return[...this]}static fromJSON(t){return new fe(t)}add(t){const n=super.add(t);return this.mode==="record"&&this.emit({type:"add",value:t}),n}clear(){const t=this.mode==="record"?[...this]:null;super.clear(),t&&this.emit({type:"clear",values:t})}delete(t){const n=super.delete(t);return this.mode==="record"&&this.emit({type:"delete",value:t}),n}subscribe(t,n){return this.subject.subscribe(t,n)}emit(t){this.subject.next(fe.packUpdate(t))}do(t){this.mode="playback";const n=fe.unpackUpdate(t);switch(n.type){case"add":this.add(n.value);break;case"delete":this.delete(n.value);break;case"clear":this.clear()}return this.mode="record",null}undo(t){const n=fe.unpackUpdate(t);switch(this.mode="playback",n.type){case"add":this.delete(n.value);break;case"delete":this.add(n.value);break;case"clear":{const o=n.values;for(const s of o)this.add(s)}}return this.mode="record",null}static packUpdate(t){const n=It[t.type]+"";return t.type==="clear"?n+t.values.map(Ft).join(""):n+Ft(t.value)}static unpackUpdate(t){const[n,o]=t.split(""),s=It[n];return s==="clear"?{type:"clear",values:o.split("").map(Dt)}:{type:s,value:Dt(o)}}};function Cn(e=Math.random){return e().toString(36).slice(2)}function w(e){for(;e.child!==null;)e=e.child;return e}function pt(e){for(;e.parent!==null;)e=e.parent;return e}const ko=/^\[object (?:Async|Generator|AsyncGenerator)?Function\]$/;function G(e){const t=Object.prototype.toString.call(e);return ko.test(t)}function Vt(e,t){return G(e)?e(t):e}var st=class extends Promise{fate;resolve;reject;done=!1;constructor(e){let t,n;super((o,s)=>{t=o,n=s}),this.resolve=t,this.reject=n,this.use(e instanceof Promise?e:new Promise(e))}pass(e,t){e===this.fate&&(this.resolve(t),this.done=!0)}fail(e,t){e===this.fate&&(this.reject(t),this.done=!0)}use(e){if(this!==e)if(e instanceof Promise){const t=e;this.fate=t,t.then(n=>{this.pass(t,n)},n=>{this.fail(t,n)})}else this.resolve(e),this.fate=void 0}},S=class{Subscriber;subscribers=new Map;subscribe(e,t){return this.subscribers.set(e,t),()=>{this.unsubscribe(e)}}unsubscribe(e){this.subscribers.delete(e)}next(e){const t=this.subscribers.values();for(const n of t)n(e)}},wo=class extends S{state;constructor(e){super(),this.state=e}next(e){this.state=e,super.next(e)}},vo=class Mn{_buffer;_index=0;constructor(t){let n;typeof t=="number"?n=t:n=t.length,this._buffer=Array.from({length:n})}get buffer(){return this._buffer}get index(){return this._index}add(t){this._buffer[this._index]=t,this._index=(this._index+1)%this._buffer.length}copy(){const t=new Mn([...this._buffer]);return t._index=this._index,t}};function Y(e){const t={key:e.key,type:e.type};return"family"in e&&(t.family=e.family),t}var N=class extends Map{deleted=new Set;changed=new Set;source;constructor(e){super(),this.source=e}get(e){if(super.has(e))return super.get(e);if(!this.deleted.has(e)&&this.source.has(e))return this.source.get(e)}set(e,t){return this.deleted.delete(e),this.source.has(e)&&this.changed.add(e),super.set(e,t)}hasOwn(e){return super.has(e)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.source.has(e)&&(this.deleted.add(e),this.changed.delete(e)),super.delete(e)}clear(){this.deleted=new Set(this.source.keys()),this.changed.clear(),super.clear()}*[Symbol.iterator](){yield*super[Symbol.iterator]();for(const[e,t]of this.source)!this.deleted.has(e)&&!this.changed.has(e)&&(yield[e,t])}*entries(){yield*this[Symbol.iterator]()}*keys(){yield*super.keys();for(const e of this.source.keys())!this.deleted.has(e)&&!this.changed.has(e)&&(yield e)}*values(){for(const[,e]of this[Symbol.iterator]())yield e}forEach(e){for(const[t,n]of this[Symbol.iterator]())e(n,t,this)}get size(){return super.size+this.source.size-this.changed.size-this.deleted.size}},En=class extends Set{deleted=new Set;source;constructor(e){super(),this.source=e}add(e){return this.source.has(e)?(this.deleted.delete(e),this):super.add(e)}hasOwn(e){return super.has(e)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.source.has(e)?(this.deleted.add(e),!0):super.delete(e)}clear(){this.deleted=new Set(this.source),super.clear()}*[Symbol.iterator](){yield*super[Symbol.iterator]();for(const e of this.source)this.deleted.has(e)||(yield e)}*iterateOwn(){yield*super[Symbol.iterator]()}get size(){return super.size+this.source.size-this.deleted.size}},So=class extends Map{deleted=new Set;source;constructor(e){super(),this.source=e}get(e){if(super.has(e))return super.get(e);if(!this.deleted.has(e)&&this.source.has(e)){const t=new En(this.source.get(e));return super.set(e,t),t}}set(e,t){return this.deleted.delete(e),super.set(e,t)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.deleted.add(e),super.delete(e)}},B=class On{a;b;cardinality;relations=new Map;contents=new Map;isAType;isBType;isContent;makeContentKey=(t,n)=>`${t}:${n}`;warn;getRelatedKeys(t){return this.relations.get(t)}addRelation(t,n){let o=this.relations.get(t),s=this.relations.get(n);o?o.add(n):(o=new Set([n]),this.relations.set(t,o)),s?s.add(t):(s=new Set([t]),this.relations.set(n,s))}deleteRelation(t,n){const o=this.relations.get(t);if(o){o.delete(n),o.size===0&&this.relations.delete(t);const s=this.relations.get(n);s&&(s.delete(t),s.size===0&&this.relations.delete(n))}}replaceRelationsUnsafely(t,n){this.relations.set(t,new Set(n));for(const o of n){const s=new Set().add(t);this.relations.set(o,s)}}replaceRelationsSafely(t,n){const o=this.relations.get(t);let s=this.isAType?.(t)?t:void 0,r=s===void 0?t:void 0;if(o)for(const i of o){s??=i,r??=i;const a=this.relations.get(i);a&&(a.size===1?this.relations.delete(i):a.delete(t),this.contents.delete(this.makeContentKey(s,r)))}this.relations.set(t,new Set(n));for(const i of n){let a=this.relations.get(i);a?a.add(t):(a=new Set().add(t),this.relations.set(i,a))}}getContentInternal(t){return this.contents.get(t)}setContent(t,n){this.contents.set(t,n)}deleteContent(t){this.contents.delete(t)}constructor(t,n){if(this.a=t.between[0],this.b=t.between[1],this.cardinality=t.cardinality,this.isAType=n?.isAType??null,this.isBType=n?.isBType??null,this.isContent=n?.isContent??null,n?.makeContentKey&&(this.makeContentKey=n.makeContentKey),!n?.externalStore){const o=n?.source;o===void 0&&(this.relations=new Map(t.relations?.map(([s,r])=>[s,new Set(r)])),this.contents=new Map(t.contents)),o&&(this.relations=new So(o.relations),this.contents=new N(o.contents))}if(n?.externalStore){const o=n.externalStore;this.has=(s,r)=>o.has(s,r),this.addRelation=(s,r)=>{o.addRelation(s,r)},this.deleteRelation=(s,r)=>{o.deleteRelation(s,r)},this.replaceRelationsSafely=(s,r)=>{o.replaceRelationsSafely(s,r)},this.replaceRelationsUnsafely=(s,r)=>{o.replaceRelationsUnsafely(s,r)},this.getRelatedKeys=(s=>o.getRelatedKeys(s)),o.getContent&&(this.getContentInternal=s=>o.getContent(s),this.setContent=(s,r)=>{o.setContent(s,r)},this.deleteContent=s=>{o.deleteContent(s)});for(const[s,r]of t.relations??[]){let i=this.isAType?.(s)?s:void 0,a=i===void 0?s:void 0;for(const u of r)i??=u,a??=u,this.addRelation(i,a)}for(const[s,r]of t.contents??[])this.setContent(s,r)}n?.warn&&(this.warn=n.warn)}toJSON(){return{between:[this.a,this.b],cardinality:this.cardinality,relations:[...this.relations.entries()].map(([t,n])=>[t,[...n]]),contents:[...this.contents.entries()]}}set(...t){let n,o,s;switch(t.length){case 1:{const r=t[0];n=r[this.a],o=r[this.b],s=void 0;break}case 2:{const r=t[0];typeof r=="string"?[n,o]=t:(n=r[this.a],o=r[this.b],s=t[1]);break}default:n=t[0],o=t[1],s=t[2];break}switch(this.cardinality){case"1:1":{const r=this.getRelatedKey(n);r&&r!==o&&this.delete(n,r)}case"1:n":{const r=this.getRelatedKey(o);r&&r!==n&&this.delete(r,o)}break}if(s){const r=this.makeContentKey(n,o);this.setContent(r,s)}return this.addRelation(n,o),this}delete(t,n){n=typeof n=="string"?n:t[this.b];const o=typeof t=="string"?t:t[this.a];if(o===void 0&&typeof n=="string"){const s=this.getRelatedKeys(n);if(s)for(const r of s)this.delete(r,n)}else if(typeof o=="string"&&n===void 0){const s=this.getRelatedKeys(o);if(s)for(const r of s)this.delete(o,r)}else if(typeof o=="string"&&typeof n=="string"){this.deleteRelation(o,n);const s=this.makeContentKey(o,n);this.deleteContent(s)}return this}getRelatedKey(t){const n=this.getRelatedKeys(t);if(n){n.size>1&&this.warn?.(`${n.size} related keys were found for key "${t}": (${[...n].map(s=>`"${s}"`).join(", ")}). Only one related key was expected.`);let o;for(const s of n){o=s;break}return o}}replaceRelations(t,n,o){const s=!Array.isArray(n),r=s?Object.keys(n):n;if(o?.reckless?this.replaceRelationsUnsafely(t,r):this.replaceRelationsSafely(t,r),s)for(const i of r){const a=this.makeContentKey(t,i),u=n[i];this.setContent(a,u)}return this}getContent(t,n){const o=this.makeContentKey(t,n);return this.getContentInternal(o)}getRelationEntries(t){const n=t[this.a],o=t[this.b];if(n!==void 0&&o===void 0){const s=this.getRelatedKeys(n);if(s)return[...s].map(r=>[r,this.getContent(n,r)])}if(n===void 0&&o!==void 0){const s=this.getRelatedKeys(o);if(s)return[...s].map(r=>[r,this.getContent(r,o)])}return[]}has(t,n){return n?this.getRelatedKeys(t)?.has(n)??!1:this.relations.has(t)}overlay(){const t={source:this,makeContentKey:this.makeContentKey};return this.isAType&&(t.isAType=this.isAType),this.isBType&&(t.isBType=this.isBType),this.isContent&&(t.isContent=this.isContent),this.warn&&(t.warn=this.warn),new On({between:[this.a,this.b],cardinality:this.cardinality},t)}incorporate(t){const{relations:n,contents:o}=t;for(const[s,r]of n)if(r instanceof En){const{source:i}=r;for(const a of r.iterateOwn())i.add(a)}else this.relations.set(s,r);for(const s of n.deleted)this.relations.delete(s);for(const[s,r]of o)this.contents.set(s,r);for(const s of o.deleted)this.contents.delete(s)}};function $o(e){return e.startsWith("🔍 ")}const Ko=e=>{e.logger.info("🪂","transaction",e.transactionMeta.update.token.key,"Aborting transaction"),e.parent.child=null};function An(e,t,n){return(...o)=>R(e,t).run(o,n)}function Ro(e,t,n){const{token:o,update:{newValue:s,oldValue:r}}=t;D(e,o,s)}function To(e){const{stack:t}=e;return t?`
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();var Ie,m,dn,Q,jt,yn,pn,hn,ft,Qe,et,mn,_e={},gn=[],co=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,we=Array.isArray;function J(e,t){for(var n in t)e[n]=t[n];return e}function _t(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function tt(e,t,n){var o,s,r,i={};for(r in t)r=="key"?o=t[r]:r=="ref"?s=t[r]:i[r]=t[r];if(arguments.length>2&&(i.children=arguments.length>3?Ie.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)i[r]===void 0&&(i[r]=e.defaultProps[r]);return Ce(e,i,o,s,null)}function Ce(e,t,n,o,s){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++dn,__i:-1,__u:0};return s==null&&m.vnode!=null&&m.vnode(r),r}function P(e){return e.children}function H(e,t){this.props=e,this.context=t}function ie(e,t){if(t==null)return e.__?ie(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ie(e):null}function bn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return bn(e)}}function nt(e){(!e.__d&&(e.__d=!0)&&Q.push(e)&&!Ae.__r++||jt!=m.debounceRendering)&&((jt=m.debounceRendering)||yn)(Ae)}function Ae(){for(var e,t,n,o,s,r,i,a=1;Q.length;)Q.length>a&&Q.sort(pn),e=Q.shift(),a=Q.length,e.__d&&(n=void 0,o=void 0,s=(o=(t=e).__v).__e,r=[],i=[],t.__P&&((n=J({},o)).__v=o.__v+1,m.vnode&&m.vnode(n),dt(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[s]:null,r,s??ie(o),!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,vn(r,n,i),o.__e=o.__=null,n.__e!=s&&bn(n)));Ae.__r=0}function kn(e,t,n,o,s,r,i,a,u,f,c){var l,d,_,y,p,k,g,h=o&&o.__k||gn,v=t.length;for(u=uo(n,t,h,u,v),l=0;l<v;l++)(_=n.__k[l])!=null&&(d=_.__i==-1?_e:h[_.__i]||_e,_.__i=l,k=dt(e,_,d,s,r,i,a,u,f,c),y=_.__e,_.ref&&d.ref!=_.ref&&(d.ref&&yt(d.ref,null,_),c.push(_.ref,_.__c||y,_)),p==null&&y!=null&&(p=y),(g=!!(4&_.__u))||d.__k===_.__k?u=wn(_,u,e,g):typeof _.type=="function"&&k!==void 0?u=k:y&&(u=y.nextSibling),_.__u&=-7);return n.__e=p,u}function uo(e,t,n,o,s){var r,i,a,u,f,c=n.length,l=c,d=0;for(e.__k=new Array(s),r=0;r<s;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=e.__k[r]=Ce(null,i,null,null,null):we(i)?i=e.__k[r]=Ce(P,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?i=e.__k[r]=Ce(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[r]=i,u=r+d,i.__=e,i.__b=e.__b+1,a=null,(f=i.__i=fo(i,n,u,l))!=-1&&(l--,(a=n[f])&&(a.__u|=2)),a==null||a.__v==null?(f==-1&&(s>c?d--:s<c&&d++),typeof i.type!="function"&&(i.__u|=4)):f!=u&&(f==u-1?d--:f==u+1?d++:(f>u?d--:d++,i.__u|=4))):e.__k[r]=null;if(l)for(r=0;r<c;r++)(a=n[r])!=null&&(2&a.__u)==0&&(a.__e==o&&(o=ie(a)),$n(a,a));return o}function wn(e,t,n,o){var s,r;if(typeof e.type=="function"){for(s=e.__k,r=0;s&&r<s.length;r++)s[r]&&(s[r].__=e,t=wn(s[r],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=ie(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function je(e,t){return t=t||[],e==null||typeof e=="boolean"||(we(e)?e.some(function(n){je(n,t)}):t.push(e)),t}function fo(e,t,n,o){var s,r,i,a=e.key,u=e.type,f=t[n],c=f!=null&&(2&f.__u)==0;if(f===null&&a==null||c&&a==f.key&&u==f.type)return n;if(o>(c?1:0)){for(s=n-1,r=n+1;s>=0||r<t.length;)if((f=t[i=s>=0?s--:r++])!=null&&(2&f.__u)==0&&a==f.key&&u==f.type)return i}return-1}function Pt(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||co.test(t)?n:n+"px"}function Re(e,t,n,o,s){var r,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||Pt(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||Pt(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")r=t!=(t=t.replace(hn,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o?n.u=o.u:(n.u=ft,e.addEventListener(t,r?et:Qe,r)):e.removeEventListener(t,r?et:Qe,r);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Nt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ft++;else if(t.t<n.u)return;return n(m.event?m.event(t):t)}}}function dt(e,t,n,o,s,r,i,a,u,f){var c,l,d,_,y,p,k,g,h,v,x,O,A,W,E,z,X,I=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),r=[a=t.__e=n.__e]),(c=m.__b)&&c(t);e:if(typeof I=="function")try{if(g=t.props,h="prototype"in I&&I.prototype.render,v=(c=I.contextType)&&o[c.__c],x=c?v?v.props.value:c.__:o,n.__c?k=(l=t.__c=n.__c).__=l.__E:(h?t.__c=l=new I(g,x):(t.__c=l=new H(g,x),l.constructor=I,l.render=yo),v&&v.sub(l),l.state||(l.state={}),l.__n=o,d=l.__d=!0,l.__h=[],l._sb=[]),h&&l.__s==null&&(l.__s=l.state),h&&I.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=J({},l.__s)),J(l.__s,I.getDerivedStateFromProps(g,l.__s))),_=l.props,y=l.state,l.__v=t,d)h&&I.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),h&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(h&&I.getDerivedStateFromProps==null&&g!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,x),t.__v==n.__v||!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,x)===!1){for(t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ne){ne&&(ne.__=t)}),O=0;O<l._sb.length;O++)l.__h.push(l._sb[O]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,x),h&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,y,p)})}if(l.context=x,l.props=g,l.__P=e,l.__e=!1,A=m.__r,W=0,h){for(l.state=l.__s,l.__d=!1,A&&A(t),c=l.render(l.props,l.state,l.context),E=0;E<l._sb.length;E++)l.__h.push(l._sb[E]);l._sb=[]}else do l.__d=!1,A&&A(t),c=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++W<25);l.state=l.__s,l.getChildContext!=null&&(o=J(J({},o),l.getChildContext())),h&&!d&&l.getSnapshotBeforeUpdate!=null&&(p=l.getSnapshotBeforeUpdate(_,y)),z=c,c!=null&&c.type===P&&c.key==null&&(z=Sn(c.props.children)),a=kn(e,we(z)?z:[z],t,n,o,s,r,i,a,u,f),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),k&&(l.__E=l.__=null)}catch(ne){if(t.__v=null,u||r!=null)if(ne.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;r[r.indexOf(a)]=null,t.__e=a}else{for(X=r.length;X--;)_t(r[X]);ot(t)}else t.__e=n.__e,t.__k=n.__k,ne.then||ot(t);m.__e(ne,t,n)}else r==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=_o(n.__e,t,n,o,s,r,i,u,f);return(c=m.diffed)&&c(t),128&t.__u?void 0:a}function ot(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(ot)}function vn(e,t,n){for(var o=0;o<n.length;o++)yt(n[o],n[++o],n[++o]);m.__c&&m.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(r){r.call(s)})}catch(r){m.__e(r,s.__v)}})}function Sn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:we(e)?e.map(Sn):J({},e)}function _o(e,t,n,o,s,r,i,a,u){var f,c,l,d,_,y,p,k=n.props||_e,g=t.props,h=t.type;if(h=="svg"?s="http://www.w3.org/2000/svg":h=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),r!=null){for(f=0;f<r.length;f++)if((_=r[f])&&"setAttribute"in _==!!h&&(h?_.localName==h:_.nodeType==3)){e=_,r[f]=null;break}}if(e==null){if(h==null)return document.createTextNode(g);e=document.createElementNS(s,h,g.is&&g),a&&(m.__m&&m.__m(t,r),a=!1),r=null}if(h==null)k===g||a&&e.data==g||(e.data=g);else{if(r=r&&Ie.call(e.childNodes),!a&&r!=null)for(k={},f=0;f<e.attributes.length;f++)k[(_=e.attributes[f]).name]=_.value;for(f in k)if(_=k[f],f!="children"){if(f=="dangerouslySetInnerHTML")l=_;else if(!(f in g)){if(f=="value"&&"defaultValue"in g||f=="checked"&&"defaultChecked"in g)continue;Re(e,f,null,_,s)}}for(f in g)_=g[f],f=="children"?d=_:f=="dangerouslySetInnerHTML"?c=_:f=="value"?y=_:f=="checked"?p=_:a&&typeof _!="function"||k[f]===_||Re(e,f,_,k[f],s);if(c)a||l&&(c.__html==l.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(l&&(e.innerHTML=""),kn(t.type=="template"?e.content:e,we(d)?d:[d],t,n,o,h=="foreignObject"?"http://www.w3.org/1999/xhtml":s,r,i,r?r[0]:n.__k&&ie(n,0),a,u),r!=null)for(f=r.length;f--;)_t(r[f]);a||(f="value",h=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[f]||h=="progress"&&!y||h=="option"&&y!=k[f])&&Re(e,f,y,k[f],s),f="checked",p!=null&&p!=e[f]&&Re(e,f,p,k[f],s))}return e}function yt(e,t,n){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(s){m.__e(s,n)}}function $n(e,t,n){var o,s;if(m.unmount&&m.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||yt(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){m.__e(r,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&$n(o[s],t,n||typeof e.type!="function");n||_t(e.__e),e.__c=e.__=e.__e=void 0}function yo(e,t,n){return this.constructor(e,n)}function po(e,t,n){var o,s,r,i;t==document&&(t=document.documentElement),m.__&&m.__(e,t),s=(o=!1)?null:t.__k,r=[],i=[],dt(t,e=t.__k=tt(P,null,[e]),s||_e,_e,t.namespaceURI,s?null:t.firstChild?Ie.call(t.childNodes):null,r,s?s.__e:t.firstChild,o,i),vn(r,e,i)}function ho(e){function t(n){var o,s;return this.getChildContext||(o=new Set,(s={})[t.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(r){this.props.value!=r.value&&o.forEach(function(i){i.__e=!0,nt(i)})},this.sub=function(r){o.add(r);var i=r.componentWillUnmount;r.componentWillUnmount=function(){o&&o.delete(r),i&&i.call(r)}}),n.children}return t.__c="__cC"+mn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,o){return n.children(o)}).contextType=t,t}Ie=gn.slice,m={__e:function(e,t,n,o){for(var s,r,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((r=s.constructor)&&r.getDerivedStateFromError!=null&&(s.setState(r.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},dn=0,H.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=J({},this.state),typeof e=="function"&&(e=e(J({},n),this.props)),e&&J(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),nt(this))},H.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nt(this))},H.prototype.render=P,Q=[],yn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pn=function(e,t){return e.__v.__b-t.__v.__b},Ae.__r=0,hn=/(PointerCapture)$|Capture$/i,ft=0,Qe=Nt(!1),et=Nt(!0),mn=0;var mo=0;function b(e,t,n,o,s,r){t||(t={});var i,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?i=t[a]:u[a]=t[a];var f={type:e,props:u,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--mo,__i:-1,__u:0,__source:s,__self:r};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)u[a]===void 0&&(u[a]=i[a]);return m.vnode&&m.vnode(f),f}const Kn="",Rn="",Tn="",xn="",Ft=e=>{if(e===null)return Rn;switch(typeof e){case"string":return Tn+e;case"number":return xn+e;case"boolean":return Kn+ +e;case"object":return JSON.stringify(e)}},Dt=e=>{switch(e[0]){case Tn:return e.slice(1);case xn:return+e.slice(1);case Kn:return e.slice(1)==="1";case Rn:return null;case"[":return JSON.parse(e)}};function go(e){const t={};let n=0;for(const o of e)t[o]=n,t[n]=o,++n;return t}function ee(e){return JSON.parse(e)}const T=e=>JSON.stringify(e),It=go(["add","delete","clear"]);var bo=class fe extends Set{mode="record";subject=new S;constructor(t){super(t)}READONLY_VIEW=this;toJSON(){return[...this]}static fromJSON(t){return new fe(t)}add(t){const n=super.add(t);return this.mode==="record"&&this.emit({type:"add",value:t}),n}clear(){const t=this.mode==="record"?[...this]:null;super.clear(),t&&this.emit({type:"clear",values:t})}delete(t){const n=super.delete(t);return this.mode==="record"&&this.emit({type:"delete",value:t}),n}subscribe(t,n){return this.subject.subscribe(t,n)}emit(t){this.subject.next(fe.packUpdate(t))}do(t){this.mode="playback";const n=fe.unpackUpdate(t);switch(n.type){case"add":this.add(n.value);break;case"delete":this.delete(n.value);break;case"clear":this.clear()}return this.mode="record",null}undo(t){const n=fe.unpackUpdate(t);switch(this.mode="playback",n.type){case"add":this.delete(n.value);break;case"delete":this.add(n.value);break;case"clear":{const o=n.values;for(const s of o)this.add(s)}}return this.mode="record",null}static packUpdate(t){const n=It[t.type]+"";return t.type==="clear"?n+t.values.map(Ft).join(""):n+Ft(t.value)}static unpackUpdate(t){const[n,o]=t.split(""),s=It[n];return s==="clear"?{type:"clear",values:o.split("").map(Dt)}:{type:s,value:Dt(o)}}};function Cn(e=Math.random){return e().toString(36).slice(2)}function w(e){let t=e;for(;t.child!==null;)t=t.child;return t}function pt(e){let t=e;for(;t.parent!==null;)t=t.parent;return t}const ko=/^\[object (?:Async|Generator|AsyncGenerator)?Function\]$/;function G(e){const t=Object.prototype.toString.call(e);return ko.test(t)}function Vt(e,t){return G(e)?e(t):e}var st=class extends Promise{fate;resolve;reject;done=!1;constructor(e){let t,n;super((o,s)=>{t=o,n=s}),this.resolve=t,this.reject=n,this.use(e instanceof Promise?e:new Promise(e))}pass(e,t){e===this.fate&&(this.resolve(t),this.done=!0)}fail(e,t){e===this.fate&&(this.reject(t),this.done=!0)}use(e){if(this!==e)if(e instanceof Promise){const t=e;this.fate=t,t.then(n=>{this.pass(t,n)},n=>{this.fail(t,n)})}else this.resolve(e),this.fate=void 0}},S=class{Subscriber;subscribers=new Map;subscribe(e,t){return this.subscribers.set(e,t),()=>{this.unsubscribe(e)}}unsubscribe(e){this.subscribers.delete(e)}next(e){const t=this.subscribers.values();for(const n of t)n(e)}},wo=class extends S{state;constructor(e){super(),this.state=e}next(e){this.state=e,super.next(e)}},vo=class Mn{_buffer;_index=0;constructor(t){let n;typeof t=="number"?n=t:n=t.length,this._buffer=Array.from({length:n})}get buffer(){return this._buffer}get index(){return this._index}add(t){this._buffer[this._index]=t,this._index=(this._index+1)%this._buffer.length}copy(){const t=new Mn([...this._buffer]);return t._index=this._index,t}};function Y(e){const t={key:e.key,type:e.type};return"family"in e&&(t.family=e.family),t}var N=class extends Map{deleted=new Set;changed=new Set;source;constructor(e){super(),this.source=e}get(e){if(super.has(e))return super.get(e);if(!this.deleted.has(e)&&this.source.has(e))return this.source.get(e)}set(e,t){return this.deleted.delete(e),this.source.has(e)&&this.changed.add(e),super.set(e,t)}hasOwn(e){return super.has(e)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.source.has(e)&&(this.deleted.add(e),this.changed.delete(e)),super.delete(e)}clear(){this.deleted=new Set(this.source.keys()),this.changed.clear(),super.clear()}*[Symbol.iterator](){yield*super[Symbol.iterator]();for(const[e,t]of this.source)!this.deleted.has(e)&&!this.changed.has(e)&&(yield[e,t])}*entries(){yield*this[Symbol.iterator]()}*keys(){yield*super.keys();for(const e of this.source.keys())!this.deleted.has(e)&&!this.changed.has(e)&&(yield e)}*values(){for(const[,e]of this[Symbol.iterator]())yield e}forEach(e){for(const[t,n]of this[Symbol.iterator]())e(n,t,this)}get size(){return super.size+this.source.size-this.changed.size-this.deleted.size}},En=class extends Set{deleted=new Set;source;constructor(e){super(),this.source=e}add(e){return this.source.has(e)?(this.deleted.delete(e),this):super.add(e)}hasOwn(e){return super.has(e)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.source.has(e)?(this.deleted.add(e),!0):super.delete(e)}clear(){this.deleted=new Set(this.source),super.clear()}*[Symbol.iterator](){yield*super[Symbol.iterator]();for(const e of this.source)this.deleted.has(e)||(yield e)}*iterateOwn(){yield*super[Symbol.iterator]()}get size(){return super.size+this.source.size-this.deleted.size}},So=class extends Map{deleted=new Set;source;constructor(e){super(),this.source=e}get(e){if(super.has(e))return super.get(e);if(!this.deleted.has(e)&&this.source.has(e)){const t=new En(this.source.get(e));return super.set(e,t),t}}set(e,t){return this.deleted.delete(e),super.set(e,t)}has(e){return!this.deleted.has(e)&&(super.has(e)||this.source.has(e))}delete(e){return this.deleted.add(e),super.delete(e)}},B=class On{a;b;cardinality;relations=new Map;contents=new Map;isAType;isBType;isContent;makeContentKey=(t,n)=>`${t}:${n}`;warn;getRelatedKeys(t){return this.relations.get(t)}addRelation(t,n){let o=this.relations.get(t),s=this.relations.get(n);o?o.add(n):(o=new Set([n]),this.relations.set(t,o)),s?s.add(t):(s=new Set([t]),this.relations.set(n,s))}deleteRelation(t,n){const o=this.relations.get(t);if(o){o.delete(n),o.size===0&&this.relations.delete(t);const s=this.relations.get(n);s&&(s.delete(t),s.size===0&&this.relations.delete(n))}}replaceRelationsUnsafely(t,n){this.relations.set(t,new Set(n));for(const o of n){const s=new Set().add(t);this.relations.set(o,s)}}replaceRelationsSafely(t,n){const o=this.relations.get(t);let s=this.isAType?.(t)?t:void 0,r=s===void 0?t:void 0;if(o)for(const i of o){s??=i,r??=i;const a=this.relations.get(i);a&&(a.size===1?this.relations.delete(i):a.delete(t),this.contents.delete(this.makeContentKey(s,r)))}this.relations.set(t,new Set(n));for(const i of n){let a=this.relations.get(i);a?a.add(t):(a=new Set().add(t),this.relations.set(i,a))}}getContentInternal(t){return this.contents.get(t)}setContent(t,n){this.contents.set(t,n)}deleteContent(t){this.contents.delete(t)}constructor(t,n){if(this.a=t.between[0],this.b=t.between[1],this.cardinality=t.cardinality,this.isAType=n?.isAType??null,this.isBType=n?.isBType??null,this.isContent=n?.isContent??null,n?.makeContentKey&&(this.makeContentKey=n.makeContentKey),!n?.externalStore){const o=n?.source;o===void 0&&(this.relations=new Map(t.relations?.map(([s,r])=>[s,new Set(r)])),this.contents=new Map(t.contents)),o&&(this.relations=new So(o.relations),this.contents=new N(o.contents))}if(n?.externalStore){const o=n.externalStore;this.has=(s,r)=>o.has(s,r),this.addRelation=(s,r)=>{o.addRelation(s,r)},this.deleteRelation=(s,r)=>{o.deleteRelation(s,r)},this.replaceRelationsSafely=(s,r)=>{o.replaceRelationsSafely(s,r)},this.replaceRelationsUnsafely=(s,r)=>{o.replaceRelationsUnsafely(s,r)},this.getRelatedKeys=(s=>o.getRelatedKeys(s)),o.getContent&&(this.getContentInternal=s=>o.getContent(s),this.setContent=(s,r)=>{o.setContent(s,r)},this.deleteContent=s=>{o.deleteContent(s)});for(const[s,r]of t.relations??[]){let i=this.isAType?.(s)?s:void 0,a=i===void 0?s:void 0;for(const u of r)i??=u,a??=u,this.addRelation(i,a)}for(const[s,r]of t.contents??[])this.setContent(s,r)}n?.warn&&(this.warn=n.warn)}toJSON(){return{between:[this.a,this.b],cardinality:this.cardinality,relations:[...this.relations.entries()].map(([t,n])=>[t,[...n]]),contents:[...this.contents.entries()]}}set(...t){let n,o,s;switch(t.length){case 1:{const r=t[0];n=r[this.a],o=r[this.b],s=void 0;break}case 2:{const r=t[0];typeof r=="string"?[n,o]=t:(n=r[this.a],o=r[this.b],s=t[1]);break}default:n=t[0],o=t[1],s=t[2];break}switch(this.cardinality){case"1:1":{const r=this.getRelatedKey(n);r&&r!==o&&this.delete(n,r)}case"1:n":{const r=this.getRelatedKey(o);r&&r!==n&&this.delete(r,o)}break}if(s){const r=this.makeContentKey(n,o);this.setContent(r,s)}return this.addRelation(n,o),this}delete(t,n){n=typeof n=="string"?n:t[this.b];const o=typeof t=="string"?t:t[this.a];if(o===void 0&&typeof n=="string"){const s=this.getRelatedKeys(n);if(s)for(const r of s)this.delete(r,n)}else if(typeof o=="string"&&n===void 0){const s=this.getRelatedKeys(o);if(s)for(const r of s)this.delete(o,r)}else if(typeof o=="string"&&typeof n=="string"){this.deleteRelation(o,n);const s=this.makeContentKey(o,n);this.deleteContent(s)}return this}getRelatedKey(t){const n=this.getRelatedKeys(t);if(n){n.size>1&&this.warn?.(`${n.size} related keys were found for key "${t}": (${[...n].map(s=>`"${s}"`).join(", ")}). Only one related key was expected.`);let o;for(const s of n){o=s;break}return o}}replaceRelations(t,n,o){const s=!Array.isArray(n),r=s?Object.keys(n):n;if(o?.reckless?this.replaceRelationsUnsafely(t,r):this.replaceRelationsSafely(t,r),s)for(const i of r){const a=this.makeContentKey(t,i),u=n[i];this.setContent(a,u)}return this}getContent(t,n){const o=this.makeContentKey(t,n);return this.getContentInternal(o)}getRelationEntries(t){const n=t[this.a],o=t[this.b];if(n!==void 0&&o===void 0){const s=this.getRelatedKeys(n);if(s)return[...s].map(r=>[r,this.getContent(n,r)])}if(n===void 0&&o!==void 0){const s=this.getRelatedKeys(o);if(s)return[...s].map(r=>[r,this.getContent(r,o)])}return[]}has(t,n){return n?this.getRelatedKeys(t)?.has(n)??!1:this.relations.has(t)}overlay(){const t={source:this,makeContentKey:this.makeContentKey};return this.isAType&&(t.isAType=this.isAType),this.isBType&&(t.isBType=this.isBType),this.isContent&&(t.isContent=this.isContent),this.warn&&(t.warn=this.warn),new On({between:[this.a,this.b],cardinality:this.cardinality},t)}incorporate(t){const{relations:n,contents:o}=t;for(const[s,r]of n)if(r instanceof En){const{source:i}=r;for(const a of r.iterateOwn())i.add(a)}else this.relations.set(s,r);for(const s of n.deleted)this.relations.delete(s);for(const[s,r]of o)this.contents.set(s,r);for(const s of o.deleted)this.contents.delete(s)}};function $o(e){return e.startsWith("🔍 ")}const Ko=e=>{e.logger.info("🪂","transaction",e.transactionMeta.update.token.key,"Aborting transaction"),e.parent.child=null};function An(e,t,n){return(...o)=>R(e,t).run(o,n)}function Ro(e,t,n){const{token:o,update:{newValue:s,oldValue:r}}=t;D(e,o,s)}function To(e){const{stack:t}=e;return t?`
2
2
  `+t.split(`
3
3
  `)?.slice(1)?.join(`
4
4
  `):""}function jn(e,t,n,o="any"){const s=t,r=T(n),i=[],a=w(e);if(Array.isArray(s))for(const c of s){const l=T(c);a.molecules.get(l)?e.moleculeGraph.set(l,r,{source:l}):i.push(l)}else{const c=T(s);a.molecules.get(c)?e.moleculeGraph.set(c,r,{source:c}):i.push(c)}const u=new S;i.length===0&&a.molecules.set(r,{key:n,stringKey:r,dependsOn:o,subject:u});const f={type:"molecule_creation",key:n,provenance:s,timestamp:Date.now()};M(a)&&a.transactionMeta.phase==="building"?a.transactionMeta.update.subEvents.push(f):a.on.moleculeCreation.next(f);for(const c of i){const l=e.disposalTraces.buffer.find(d=>d?.key===c);e.logger.error("❌","key",n,"allocation failed:",`Could not allocate to ${c} in store "${e.config.name}".`,l?`
package/dist/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <meta name="color-scheme" content="light dark" />
8
8
  <title>Vite + Preact + Atom.io</title>
9
- <script type="module" crossorigin src="/assets/index-kIpB1JKY.js"></script>
9
+ <script type="module" crossorigin src="/assets/index-CgEpLhrl.js"></script>
10
10
  <link rel="stylesheet" crossorigin href="/assets/index-jy4_OpZh.css">
11
11
  </head>
12
12
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom.io/template-preact-svg-editor",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -14,12 +14,12 @@
14
14
  "preact": "10.28.3",
15
15
  "react": "npm:@preact/compat@18.3.1",
16
16
  "react-dom": "npm:@preact/compat@18.3.1",
17
- "atom.io": "0.46.23"
17
+ "atom.io": "0.46.24"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@preact/preset-vite": "2.10.3",
21
- "@typescript-eslint/eslint-plugin": "8.54.0",
22
- "@typescript-eslint/parser": "8.54.0",
21
+ "@typescript-eslint/eslint-plugin": "8.55.0",
22
+ "@typescript-eslint/parser": "8.55.0",
23
23
  "eslint-config-preact": "2.0.0",
24
24
  "eslint-plugin-import-x": "4.16.1",
25
25
  "eslint-plugin-simple-import-sort": "12.1.1",