radames's picture
static
64ae803
raw
history blame
No virus
43.8 kB
import{w as L}from"./index-f611e2e3.js";var Lt={},Vt={},yt={exports:{}},p=String,Yt=function(){return{isColorSupported:!1,reset:p,bold:p,dim:p,italic:p,underline:p,inverse:p,hidden:p,strikethrough:p,black:p,red:p,green:p,yellow:p,blue:p,magenta:p,cyan:p,white:p,gray:p,bgBlack:p,bgRed:p,bgGreen:p,bgYellow:p,bgBlue:p,bgMagenta:p,bgCyan:p,bgWhite:p}};yt.exports=Yt();yt.exports.createColors=Yt;(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,u){for(var c in u)Object.defineProperty(s,c,{enumerable:!0,get:u[c]})}e(t,{dim:()=>o,default:()=>f});const n=r(yt.exports);function r(s){return s&&s.__esModule?s:{default:s}}let i=new Set;function a(s,u,c){typeof process<"u"&&process.env.JEST_WORKER_ID||c&&i.has(c)||(c&&i.add(c),console.warn(""),u.forEach(l=>console.warn(s,"-",l)))}function o(s){return n.default.dim(s)}const f={info(s,u){a(n.default.bold(n.default.cyan("info")),...Array.isArray(s)?[s]:[u,s])},warn(s,u){a(n.default.bold(n.default.yellow("warn")),...Array.isArray(s)?[s]:[u,s])},risk(s,u){a(n.default.bold(n.default.magenta("risk")),...Array.isArray(s)?[s]:[u,s])}}})(Vt);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>i});const e=n(Vt);function n(a){return a&&a.__esModule?a:{default:a}}function r({version:a,from:o,to:f}){e.default.warn(`${o}-color-renamed`,[`As of Tailwind CSS ${a}, \`${o}\` has been renamed to \`${f}\`.`,"Update your configuration file to silence this warning."])}const i={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return r({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return r({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return r({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return r({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return r({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(Lt);let st=Lt;var ye=(st.__esModule?st:{default:st}).default;const Oi=Object.values(ye).filter(t=>typeof t=="object").map(t=>t[200]).slice(0,18),Bi=["\u{1F41D}","\u{1F40C}","\u{1F41E}","\u{1F41C}","\u{1F98B}","\u{1F41B}","\u{1F41D}","\u{1F41E}","\u{1F99F}","\u{1F997}","\u{1F577}","\u{1F982}","\u{1F422}","\u{1F40D}","\u{1F98E}","\u{1F996}","\u{1F995}","\u{1F419}","\u{1F991}","\u{1F420}","\u{1F41F}","\u{1F421}","\u{1F42C}","\u{1F988}","\u{1F433}","\u{1F40B}","\u{1F40A}","\u{1F405}","\u{1F406}","\u{1F993}","\u{1F98D}","\u{1F9A7}","\u{1F418}","\u{1F99B}","\u{1F98F}","\u{1F42A}","\u{1F42B}","\u{1F992}","\u{1F403}","\u{1F402}","\u{1F404}","\u{1F40E}","\u{1F416}","\u{1F40F}","\u{1F411}","\u{1F410}","\u{1F415}","\u{1F429}","\u{1F408}","\u{1F413}","\u{1F983}","\u{1F985}","\u{1F986}","\u{1F9A2}","\u{1F989}","\u{1F99A}","\u{1F99C}","\u{1F987}","\u{1F401}","\u{1F400}","\u{1F43F}","\u{1F407}","\u{1F43F}","\u{1F994}","\u{1F987}","\u{1F43B}","\u{1F43B}","\u{1F428}","\u{1F43C}","\u{1F435}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F412}","\u{1F409}","\u{1F432}","\u{1F995}","\u{1F996}","\u{1F40A}","\u{1F422}","\u{1F98E}","\u{1F40D}","\u{1F426}","\u{1F427}","\u{1F985}","\u{1F986}","\u{1F989}","\u{1F987}"],qi=20,Hi={width:512*6,height:512*6};var we={value:()=>{}};function Gt(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new W(n)}function W(t){this._=t}function ve(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}W.prototype=Gt.prototype={constructor:W,on:function(t,e){var n=this._,r=ve(t+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(t=r[a]).type)&&(i=xe(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<o;)if(i=(t=r[a]).type)n[i]=$t(n[i],t.name,e);else if(e==null)for(i in n)n[i]=$t(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new W(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],r=0,i=a.length;r<i;++r)a[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};function xe(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function $t(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=we,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ct="http://www.w3.org/1999/xhtml";const Et={svg:"http://www.w3.org/2000/svg",xhtml:ct,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function it(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Et.hasOwnProperty(e)?{space:Et[e],local:t}:t}function me(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ct&&e.documentElement.namespaceURI===ct?e.createElement(t):e.createElementNS(n,t)}}function be(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ut(t){var e=it(t);return(e.local?be:me)(e)}function Fe(){}function wt(t){return t==null?Fe:function(){return this.querySelector(t)}}function Ae(t){typeof t!="function"&&(t=wt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],o=a.length,f=r[i]=new Array(o),s,u,c=0;c<o;++c)(s=a[c])&&(u=t.call(s,s.__data__,c,a))&&("__data__"in s&&(u.__data__=s.__data__),f[c]=u);return new v(r,this._parents)}function Ne(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function $e(){return[]}function zt(t){return t==null?$e:function(){return this.querySelectorAll(t)}}function Ee(t){return function(){return Ne(t.apply(this,arguments))}}function Se(t){typeof t=="function"?t=Ee(t):t=zt(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o=e[a],f=o.length,s,u=0;u<f;++u)(s=o[u])&&(r.push(t.call(s,s.__data__,u,o)),i.push(s));return new v(r,i)}function Kt(t){return function(){return this.matches(t)}}function Wt(t){return function(e){return e.matches(t)}}var Ce=Array.prototype.find;function ke(t){return function(){return Ce.call(this.children,t)}}function Re(){return this.firstElementChild}function Te(t){return this.select(t==null?Re:ke(typeof t=="function"?t:Wt(t)))}var Me=Array.prototype.filter;function Ie(){return Array.from(this.children)}function Pe(t){return function(){return Me.call(this.children,t)}}function De(t){return this.selectAll(t==null?Ie:Pe(typeof t=="function"?t:Wt(t)))}function Oe(t){typeof t!="function"&&(t=Kt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],o=a.length,f=r[i]=[],s,u=0;u<o;++u)(s=a[u])&&t.call(s,s.__data__,u,a)&&f.push(s);return new v(r,this._parents)}function Jt(t){return new Array(t.length)}function Be(){return new v(this._enter||this._groups.map(Jt),this._parents)}function Q(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Q.prototype={constructor:Q,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function qe(t){return function(){return t}}function He(t,e,n,r,i,a){for(var o=0,f,s=e.length,u=a.length;o<u;++o)(f=e[o])?(f.__data__=a[o],r[o]=f):n[o]=new Q(t,a[o]);for(;o<s;++o)(f=e[o])&&(i[o]=f)}function Xe(t,e,n,r,i,a,o){var f,s,u=new Map,c=e.length,l=a.length,h=new Array(c),d;for(f=0;f<c;++f)(s=e[f])&&(h[f]=d=o.call(s,s.__data__,f,e)+"",u.has(d)?i[f]=s:u.set(d,s));for(f=0;f<l;++f)d=o.call(t,a[f],f,a)+"",(s=u.get(d))?(r[f]=s,s.__data__=a[f],u.delete(d)):n[f]=new Q(t,a[f]);for(f=0;f<c;++f)(s=e[f])&&u.get(h[f])===s&&(i[f]=s)}function Le(t){return t.__data__}function Ve(t,e){if(!arguments.length)return Array.from(this,Le);var n=e?Xe:He,r=this._parents,i=this._groups;typeof t!="function"&&(t=qe(t));for(var a=i.length,o=new Array(a),f=new Array(a),s=new Array(a),u=0;u<a;++u){var c=r[u],l=i[u],h=l.length,d=Ye(t.call(c,c&&c.__data__,u,r)),_=d.length,g=f[u]=new Array(_),$=o[u]=new Array(_),ge=s[u]=new Array(h);n(c,l,g,$,ge,d,e);for(var I=0,G=0,At,Nt;I<_;++I)if(At=g[I]){for(I>=G&&(G=I+1);!(Nt=$[G])&&++G<_;);At._next=Nt||null}}return o=new v(o,r),o._enter=f,o._exit=s,o}function Ye(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Ge(){return new v(this._exit||this._groups.map(Jt),this._parents)}function Ue(t,e,n){var r=this.enter(),i=this,a=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function ze(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),f=new Array(i),s=0;s<o;++s)for(var u=n[s],c=r[s],l=u.length,h=f[s]=new Array(l),d,_=0;_<l;++_)(d=u[_]||c[_])&&(h[_]=d);for(;s<i;++s)f[s]=n[s];return new v(f,this._parents)}function Ke(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function We(t){t||(t=Je);function e(l,h){return l&&h?t(l.__data__,h.__data__):!l-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],f=o.length,s=i[a]=new Array(f),u,c=0;c<f;++c)(u=o[c])&&(s[c]=u);s.sort(e)}return new v(i,this._parents).order()}function Je(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ze(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Qe(){return Array.from(this)}function je(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function tn(){let t=0;for(const e of this)++t;return t}function en(){return!this.node()}function nn(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],a=0,o=i.length,f;a<o;++a)(f=i[a])&&t.call(f,f.__data__,a,i);return this}function rn(t){return function(){this.removeAttribute(t)}}function an(t){return function(){this.removeAttributeNS(t.space,t.local)}}function on(t,e){return function(){this.setAttribute(t,e)}}function sn(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function fn(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function un(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function cn(t,e){var n=it(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?an:rn:typeof e=="function"?n.local?un:fn:n.local?sn:on)(n,e))}function Zt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ln(t){return function(){this.style.removeProperty(t)}}function hn(t,e,n){return function(){this.style.setProperty(t,e,n)}}function dn(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function pn(t,e,n){return arguments.length>1?this.each((e==null?ln:typeof e=="function"?dn:hn)(t,e,n==null?"":n)):T(this.node(),t)}function T(t,e){return t.style.getPropertyValue(e)||Zt(t).getComputedStyle(t,null).getPropertyValue(e)}function _n(t){return function(){delete this[t]}}function gn(t,e){return function(){this[t]=e}}function yn(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function wn(t,e){return arguments.length>1?this.each((e==null?_n:typeof e=="function"?yn:gn)(t,e)):this.node()[t]}function Qt(t){return t.trim().split(/^|\s+/)}function vt(t){return t.classList||new jt(t)}function jt(t){this._node=t,this._names=Qt(t.getAttribute("class")||"")}jt.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function te(t,e){for(var n=vt(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function ee(t,e){for(var n=vt(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function vn(t){return function(){te(this,t)}}function xn(t){return function(){ee(this,t)}}function mn(t,e){return function(){(e.apply(this,arguments)?te:ee)(this,t)}}function bn(t,e){var n=Qt(t+"");if(arguments.length<2){for(var r=vt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?mn:e?vn:xn)(n,e))}function Fn(){this.textContent=""}function An(t){return function(){this.textContent=t}}function Nn(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function $n(t){return arguments.length?this.each(t==null?Fn:(typeof t=="function"?Nn:An)(t)):this.node().textContent}function En(){this.innerHTML=""}function Sn(t){return function(){this.innerHTML=t}}function Cn(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function kn(t){return arguments.length?this.each(t==null?En:(typeof t=="function"?Cn:Sn)(t)):this.node().innerHTML}function Rn(){this.nextSibling&&this.parentNode.appendChild(this)}function Tn(){return this.each(Rn)}function Mn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function In(){return this.each(Mn)}function Pn(t){var e=typeof t=="function"?t:Ut(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Dn(){return null}function On(t,e){var n=typeof t=="function"?t:Ut(t),r=e==null?Dn:typeof e=="function"?e:wt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Bn(){var t=this.parentNode;t&&t.removeChild(this)}function qn(){return this.each(Bn)}function Hn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Xn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ln(t){return this.select(t?Xn:Hn)}function Vn(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Yn(t){return function(e){t.call(this,e,this.__data__)}}function Gn(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function Un(t){return function(){var e=this.__on;if(!!e){for(var n=0,r=-1,i=e.length,a;n<i;++n)a=e[n],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++r]=a;++r?e.length=r:delete this.__on}}}function zn(t,e,n){return function(){var r=this.__on,i,a=Yn(e);if(r){for(var o=0,f=r.length;o<f;++o)if((i=r[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=e;return}}this.addEventListener(t.type,a,n),i={type:t.type,name:t.name,value:e,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Kn(t,e,n){var r=Gn(t+""),i,a=r.length,o;if(arguments.length<2){var f=this.node().__on;if(f){for(var s=0,u=f.length,c;s<u;++s)for(i=0,c=f[s];i<a;++i)if((o=r[i]).type===c.type&&o.name===c.name)return c.value}return}for(f=e?zn:Un,i=0;i<a;++i)this.each(f(r[i],e,n));return this}function ne(t,e,n){var r=Zt(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Wn(t,e){return function(){return ne(this,t,e)}}function Jn(t,e){return function(){return ne(this,t,e.apply(this,arguments))}}function Zn(t,e){return this.each((typeof e=="function"?Jn:Wn)(t,e))}function*Qn(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var jn=[null];function v(t,e){this._groups=t,this._parents=e}function V(){return new v([[document.documentElement]],jn)}function tr(){return this}v.prototype=V.prototype={constructor:v,select:Ae,selectAll:Se,selectChild:Te,selectChildren:De,filter:Oe,data:Ve,enter:Be,exit:Ge,join:Ue,merge:ze,selection:tr,order:Ke,sort:We,call:Ze,nodes:Qe,node:je,size:tn,empty:en,each:nn,attr:cn,style:pn,property:wn,classed:bn,text:$n,html:kn,raise:Tn,lower:In,append:Pn,insert:On,remove:qn,clone:Ln,datum:Vn,on:Kn,dispatch:Zn,[Symbol.iterator]:Qn};const Xi="wss://spaces.huggingface.tech/huggingface-projects/stable-diffusion-multiplayer/gradio/queue/join",Li="https://d26smi9133w0oo.cloudfront.net/uploads",Vi="/embed/huggingface-projects/stable-diffusion-multiplayer/api";function xt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function re(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Y(){}var B=.7,j=1/B,R="\\s*([+-]?\\d+)\\s*",q="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",m="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",er=/^#([0-9a-f]{3,8})$/,nr=new RegExp(`^rgb\\(${R},${R},${R}\\)$`),rr=new RegExp(`^rgb\\(${m},${m},${m}\\)$`),ir=new RegExp(`^rgba\\(${R},${R},${R},${q}\\)$`),ar=new RegExp(`^rgba\\(${m},${m},${m},${q}\\)$`),or=new RegExp(`^hsl\\(${q},${m},${m}\\)$`),sr=new RegExp(`^hsla\\(${q},${m},${m},${q}\\)$`),St={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};xt(Y,H,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ct,formatHex:Ct,formatHex8:fr,formatHsl:ur,formatRgb:kt,toString:kt});function Ct(){return this.rgb().formatHex()}function fr(){return this.rgb().formatHex8()}function ur(){return ie(this).formatHsl()}function kt(){return this.rgb().formatRgb()}function H(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=er.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Rt(e):n===3?new y(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?U(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?U(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=nr.exec(t))?new y(e[1],e[2],e[3],1):(e=rr.exec(t))?new y(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ir.exec(t))?U(e[1],e[2],e[3],e[4]):(e=ar.exec(t))?U(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=or.exec(t))?It(e[1],e[2]/100,e[3]/100,1):(e=sr.exec(t))?It(e[1],e[2]/100,e[3]/100,e[4]):St.hasOwnProperty(t)?Rt(St[t]):t==="transparent"?new y(NaN,NaN,NaN,0):null}function Rt(t){return new y(t>>16&255,t>>8&255,t&255,1)}function U(t,e,n,r){return r<=0&&(t=e=n=NaN),new y(t,e,n,r)}function cr(t){return t instanceof Y||(t=H(t)),t?(t=t.rgb(),new y(t.r,t.g,t.b,t.opacity)):new y}function lt(t,e,n,r){return arguments.length===1?cr(t):new y(t,e,n,r==null?1:r)}function y(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}xt(y,lt,re(Y,{brighter(t){return t=t==null?j:Math.pow(j,t),new y(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?B:Math.pow(B,t),new y(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new y(S(this.r),S(this.g),S(this.b),tt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Tt,formatHex:Tt,formatHex8:lr,formatRgb:Mt,toString:Mt}));function Tt(){return`#${E(this.r)}${E(this.g)}${E(this.b)}`}function lr(){return`#${E(this.r)}${E(this.g)}${E(this.b)}${E((isNaN(this.opacity)?1:this.opacity)*255)}`}function Mt(){const t=tt(this.opacity);return`${t===1?"rgb(":"rgba("}${S(this.r)}, ${S(this.g)}, ${S(this.b)}${t===1?")":`, ${t})`}`}function tt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function S(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function E(t){return t=S(t),(t<16?"0":"")+t.toString(16)}function It(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new w(t,e,n,r)}function ie(t){if(t instanceof w)return new w(t.h,t.s,t.l,t.opacity);if(t instanceof Y||(t=H(t)),!t)return new w;if(t instanceof w)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,f=a-i,s=(a+i)/2;return f?(e===a?o=(n-r)/f+(n<r)*6:n===a?o=(r-e)/f+2:o=(e-n)/f+4,f/=s<.5?a+i:2-a-i,o*=60):f=s>0&&s<1?0:o,new w(o,f,s,t.opacity)}function hr(t,e,n,r){return arguments.length===1?ie(t):new w(t,e,n,r==null?1:r)}function w(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}xt(w,hr,re(Y,{brighter(t){return t=t==null?j:Math.pow(j,t),new w(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?B:Math.pow(B,t),new w(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new y(ft(t>=240?t-240:t+120,i,r),ft(t,i,r),ft(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new w(Pt(this.h),z(this.s),z(this.l),tt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=tt(this.opacity);return`${t===1?"hsl(":"hsla("}${Pt(this.h)}, ${z(this.s)*100}%, ${z(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Pt(t){return t=(t||0)%360,t<0?t+360:t}function z(t){return Math.max(0,Math.min(1,t||0))}function ft(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ae=t=>()=>t;function dr(t,e){return function(n){return t+n*e}}function pr(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function _r(t){return(t=+t)==1?oe:function(e,n){return n-e?pr(e,n,t):ae(isNaN(e)?n:e)}}function oe(t,e){var n=e-t;return n?dr(t,n):ae(isNaN(t)?e:t)}const Dt=function t(e){var n=_r(e);function r(i,a){var o=n((i=lt(i)).r,(a=lt(a)).r),f=n(i.g,a.g),s=n(i.b,a.b),u=oe(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=f(c),i.b=s(c),i.opacity=u(c),i+""}}return r.gamma=t,r}(1);function N(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var ht=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ut=new RegExp(ht.source,"g");function gr(t){return function(){return t}}function yr(t){return function(e){return t(e)+""}}function wr(t,e){var n=ht.lastIndex=ut.lastIndex=0,r,i,a,o=-1,f=[],s=[];for(t=t+"",e=e+"";(r=ht.exec(t))&&(i=ut.exec(e));)(a=i.index)>n&&(a=e.slice(n,a),f[o]?f[o]+=a:f[++o]=a),(r=r[0])===(i=i[0])?f[o]?f[o]+=i:f[++o]=i:(f[++o]=null,s.push({i:o,x:N(r,i)})),n=ut.lastIndex;return n<e.length&&(a=e.slice(n),f[o]?f[o]+=a:f[++o]=a),f.length<2?s[0]?yr(s[0].x):gr(e):(e=s.length,function(u){for(var c=0,l;c<e;++c)f[(l=s[c]).i]=l.x(u);return f.join("")})}var Ot=180/Math.PI,dt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function se(t,e,n,r,i,a){var o,f,s;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(f=Math.sqrt(n*n+r*r))&&(n/=f,r/=f,s/=f),t*r<e*n&&(t=-t,e=-e,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*Ot,skewX:Math.atan(s)*Ot,scaleX:o,scaleY:f}}var K;function vr(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?dt:se(e.a,e.b,e.c,e.d,e.e,e.f)}function xr(t){return t==null||(K||(K=document.createElementNS("http://www.w3.org/2000/svg","g")),K.setAttribute("transform",t),!(t=K.transform.baseVal.consolidate()))?dt:(t=t.matrix,se(t.a,t.b,t.c,t.d,t.e,t.f))}function fe(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function a(u,c,l,h,d,_){if(u!==l||c!==h){var g=d.push("translate(",null,e,null,n);_.push({i:g-4,x:N(u,l)},{i:g-2,x:N(c,h)})}else(l||h)&&d.push("translate("+l+e+h+n)}function o(u,c,l,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:l.push(i(l)+"rotate(",null,r)-2,x:N(u,c)})):c&&l.push(i(l)+"rotate("+c+r)}function f(u,c,l,h){u!==c?h.push({i:l.push(i(l)+"skewX(",null,r)-2,x:N(u,c)}):c&&l.push(i(l)+"skewX("+c+r)}function s(u,c,l,h,d,_){if(u!==l||c!==h){var g=d.push(i(d)+"scale(",null,",",null,")");_.push({i:g-4,x:N(u,l)},{i:g-2,x:N(c,h)})}else(l!==1||h!==1)&&d.push(i(d)+"scale("+l+","+h+")")}return function(u,c){var l=[],h=[];return u=t(u),c=t(c),a(u.translateX,u.translateY,c.translateX,c.translateY,l,h),o(u.rotate,c.rotate,l,h),f(u.skewX,c.skewX,l,h),s(u.scaleX,u.scaleY,c.scaleX,c.scaleY,l,h),u=c=null,function(d){for(var _=-1,g=h.length,$;++_<g;)l[($=h[_]).i]=$.x(d);return l.join("")}}}var mr=fe(vr,"px, ","px)","deg)"),br=fe(xr,", ",")",")"),M=0,D=0,P=0,ue=1e3,et,O,nt=0,C=0,at=0,X=typeof performance=="object"&&performance.now?performance:Date,ce=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function mt(){return C||(ce(Fr),C=X.now()+at)}function Fr(){C=0}function rt(){this._call=this._time=this._next=null}rt.prototype=le.prototype={constructor:rt,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?mt():+n)+(e==null?0:+e),!this._next&&O!==this&&(O?O._next=this:et=this,O=this),this._call=t,this._time=n,pt()},stop:function(){this._call&&(this._call=null,this._time=1/0,pt())}};function le(t,e,n){var r=new rt;return r.restart(t,e,n),r}function Ar(){mt(),++M;for(var t=et,e;t;)(e=C-t._time)>=0&&t._call.call(void 0,e),t=t._next;--M}function Bt(){C=(nt=X.now())+at,M=D=0;try{Ar()}finally{M=0,$r(),C=0}}function Nr(){var t=X.now(),e=t-nt;e>ue&&(at-=e,nt=t)}function $r(){for(var t,e=et,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:et=n);O=t,pt(r)}function pt(t){if(!M){D&&(D=clearTimeout(D));var e=t-C;e>24?(t<1/0&&(D=setTimeout(Bt,t-X.now()-at)),P&&(P=clearInterval(P))):(P||(nt=X.now(),P=setInterval(Nr,ue)),M=1,ce(Bt))}}function qt(t,e,n){var r=new rt;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Er=Gt("start","end","cancel","interrupt"),Sr=[],he=0,Ht=1,_t=2,J=3,Xt=4,gt=5,Z=6;function ot(t,e,n,r,i,a){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Cr(t,n,{name:e,index:r,group:i,on:Er,tween:Sr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:he})}function bt(t,e){var n=x(t,e);if(n.state>he)throw new Error("too late; already scheduled");return n}function b(t,e){var n=x(t,e);if(n.state>J)throw new Error("too late; already running");return n}function x(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Cr(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=le(a,0,n.time);function a(u){n.state=Ht,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var c,l,h,d;if(n.state!==Ht)return s();for(c in r)if(d=r[c],d.name===n.name){if(d.state===J)return qt(o);d.state===Xt?(d.state=Z,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=Z,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(qt(function(){n.state===J&&(n.state=Xt,n.timer.restart(f,n.delay,n.time),f(u))}),n.state=_t,n.on.call("start",t,t.__data__,n.index,n.group),n.state===_t){for(n.state=J,i=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++l]=d);i.length=l+1}}function f(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(s),n.state=gt,1),l=-1,h=i.length;++l<h;)i[l].call(t,c);n.state===gt&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){n.state=Z,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function kr(t,e){var n=t.__transition,r,i,a=!0,o;if(!!n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){a=!1;continue}i=r.state>_t&&r.state<gt,r.state=Z,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}a&&delete t.__transition}}function Rr(t){return this.each(function(){kr(this,t)})}function Tr(t,e){var n,r;return function(){var i=b(this,t),a=i.tween;if(a!==n){r=n=a;for(var o=0,f=r.length;o<f;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Mr(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=b(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var f={name:e,value:n},s=0,u=i.length;s<u;++s)if(i[s].name===e){i[s]=f;break}s===u&&i.push(f)}a.tween=i}}function Ir(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=x(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?Tr:Mr)(n,t,e))}function Ft(t,e,n){var r=t._id;return t.each(function(){var i=b(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return x(i,r).value[e]}}function de(t,e){var n;return(typeof e=="number"?N:e instanceof H?Dt:(n=H(e))?(e=n,Dt):wr)(t,e)}function Pr(t){return function(){this.removeAttribute(t)}}function Dr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Or(t,e,n){var r,i=n+"",a;return function(){var o=this.getAttribute(t);return o===i?null:o===r?a:a=e(r=o,n)}}function Br(t,e,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?a:a=e(r=o,n)}}function qr(t,e,n){var r,i,a;return function(){var o,f=n(this),s;return f==null?void this.removeAttribute(t):(o=this.getAttribute(t),s=f+"",o===s?null:o===r&&s===i?a:(i=s,a=e(r=o,f)))}}function Hr(t,e,n){var r,i,a;return function(){var o,f=n(this),s;return f==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),s=f+"",o===s?null:o===r&&s===i?a:(i=s,a=e(r=o,f)))}}function Xr(t,e){var n=it(t),r=n==="transform"?br:de;return this.attrTween(t,typeof e=="function"?(n.local?Hr:qr)(n,r,Ft(this,"attr."+t,e)):e==null?(n.local?Dr:Pr)(n):(n.local?Br:Or)(n,r,e))}function Lr(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Vr(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Yr(t,e){var n,r;function i(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&Vr(t,a)),n}return i._value=e,i}function Gr(t,e){var n,r;function i(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&Lr(t,a)),n}return i._value=e,i}function Ur(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=it(t);return this.tween(n,(r.local?Yr:Gr)(r,e))}function zr(t,e){return function(){bt(this,t).delay=+e.apply(this,arguments)}}function Kr(t,e){return e=+e,function(){bt(this,t).delay=e}}function Wr(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?zr:Kr)(e,t)):x(this.node(),e).delay}function Jr(t,e){return function(){b(this,t).duration=+e.apply(this,arguments)}}function Zr(t,e){return e=+e,function(){b(this,t).duration=e}}function Qr(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Jr:Zr)(e,t)):x(this.node(),e).duration}function jr(t,e){if(typeof e!="function")throw new Error;return function(){b(this,t).ease=e}}function ti(t){var e=this._id;return arguments.length?this.each(jr(e,t)):x(this.node(),e).ease}function ei(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;b(this,t).ease=n}}function ni(t){if(typeof t!="function")throw new Error;return this.each(ei(this._id,t))}function ri(t){typeof t!="function"&&(t=Kt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],o=a.length,f=r[i]=[],s,u=0;u<o;++u)(s=a[u])&&t.call(s,s.__data__,u,a)&&f.push(s);return new A(r,this._parents,this._name,this._id)}function ii(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),f=0;f<a;++f)for(var s=e[f],u=n[f],c=s.length,l=o[f]=new Array(c),h,d=0;d<c;++d)(h=s[d]||u[d])&&(l[d]=h);for(;f<r;++f)o[f]=e[f];return new A(o,this._parents,this._name,this._id)}function ai(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function oi(t,e,n){var r,i,a=ai(e)?bt:b;return function(){var o=a(this,t),f=o.on;f!==r&&(i=(r=f).copy()).on(e,n),o.on=i}}function si(t,e){var n=this._id;return arguments.length<2?x(this.node(),n).on.on(t):this.each(oi(n,t,e))}function fi(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ui(){return this.on("end.remove",fi(this._id))}function ci(t){var e=this._name,n=this._id;typeof t!="function"&&(t=wt(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var f=r[o],s=f.length,u=a[o]=new Array(s),c,l,h=0;h<s;++h)(c=f[h])&&(l=t.call(c,c.__data__,h,f))&&("__data__"in c&&(l.__data__=c.__data__),u[h]=l,ot(u[h],e,n,h,u,x(c,n)));return new A(a,this._parents,e,n)}function li(t){var e=this._name,n=this._id;typeof t!="function"&&(t=zt(t));for(var r=this._groups,i=r.length,a=[],o=[],f=0;f<i;++f)for(var s=r[f],u=s.length,c,l=0;l<u;++l)if(c=s[l]){for(var h=t.call(c,c.__data__,l,s),d,_=x(c,n),g=0,$=h.length;g<$;++g)(d=h[g])&&ot(d,e,n,g,h,_);a.push(h),o.push(c)}return new A(a,o,e,n)}var hi=V.prototype.constructor;function di(){return new hi(this._groups,this._parents)}function pi(t,e){var n,r,i;return function(){var a=T(this,t),o=(this.style.removeProperty(t),T(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}function pe(t){return function(){this.style.removeProperty(t)}}function _i(t,e,n){var r,i=n+"",a;return function(){var o=T(this,t);return o===i?null:o===r?a:a=e(r=o,n)}}function gi(t,e,n){var r,i,a;return function(){var o=T(this,t),f=n(this),s=f+"";return f==null&&(s=f=(this.style.removeProperty(t),T(this,t))),o===s?null:o===r&&s===i?a:(i=s,a=e(r=o,f))}}function yi(t,e){var n,r,i,a="style."+e,o="end."+a,f;return function(){var s=b(this,t),u=s.on,c=s.value[a]==null?f||(f=pe(e)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(o,i=c),s.on=r}}function wi(t,e,n){var r=(t+="")=="transform"?mr:de;return e==null?this.styleTween(t,pi(t,r)).on("end.style."+t,pe(t)):typeof e=="function"?this.styleTween(t,gi(t,r,Ft(this,"style."+t,e))).each(yi(this._id,t)):this.styleTween(t,_i(t,r,e),n).on("end.style."+t,null)}function vi(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function xi(t,e,n){var r,i;function a(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&vi(t,o,n)),r}return a._value=e,a}function mi(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,xi(t,e,n==null?"":n))}function bi(t){return function(){this.textContent=t}}function Fi(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Ai(t){return this.tween("text",typeof t=="function"?Fi(Ft(this,"text",t)):bi(t==null?"":t+""))}function Ni(t){return function(e){this.textContent=t.call(this,e)}}function $i(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Ni(i)),e}return r._value=t,r}function Ei(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,$i(t))}function Si(){for(var t=this._name,e=this._id,n=_e(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],f=o.length,s,u=0;u<f;++u)if(s=o[u]){var c=x(s,e);ot(s,t,n,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new A(r,this._parents,t,n)}function Ci(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var f={value:o},s={value:function(){--i===0&&a()}};n.each(function(){var u=b(this,r),c=u.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(f),e._.interrupt.push(f),e._.end.push(s)),u.on=e}),i===0&&a()})}var ki=0;function A(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function _e(){return++ki}var F=V.prototype;A.prototype={constructor:A,select:ci,selectAll:li,selectChild:F.selectChild,selectChildren:F.selectChildren,filter:ri,merge:ii,selection:di,transition:Si,call:F.call,nodes:F.nodes,node:F.node,size:F.size,empty:F.empty,each:F.each,on:si,attr:Xr,attrTween:Ur,style:wi,styleTween:mi,text:Ai,textTween:Ei,remove:ui,tween:Ir,delay:Wr,duration:Qr,ease:ti,easeVarying:ni,end:Ci,[Symbol.iterator]:F[Symbol.iterator]};function Ri(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Ti={time:null,delay:0,duration:250,ease:Ri};function Mi(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ii(t){var e,n;t instanceof A?(e=t._id,t=t._name):(e=_e(),(n=Ti).time=mt(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],f=o.length,s,u=0;u<f;++u)(s=o[u])&&ot(s,t,e,u,o,n||Mi(s,e));return new A(r,this._parents,t,e)}V.prototype.interrupt=Rr;V.prototype.transition=Ii;function k(t,e,n){this.k=t,this.x=e,this.y=n}k.prototype={constructor:k,scale:function(t){return t===1?this:new k(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new k(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Pi=new k(1,0,0);k.prototype;const Yi=L(""),Gi=L(Pi),Ui=L(),zi=L(),Ki=L();export{Hi as C,Bi as E,qi as M,Vi as P,v as S,k as T,kr as a,Gi as b,Ui as c,Gt as d,Li as e,Xi as f,Oi as g,Pi as i,Yi as l,zi as m,jn as r,Ki as s};