Spaces:
Running
Running
Download assets/index-iljbJvME.js from emanforhelp/model-pulse: direct link, hf CLI and curl.
- Browser
- Download file 132 kB
-
https://huggingface.co/spaces/emanforhelp/model-pulse/resolve/main/assets/index-iljbJvME.js
- Command line
-
hf download hf://spaces/emanforhelp/model-pulse/assets/index-iljbJvME.js
-
curl -L -o index-iljbJvME.js https://huggingface.co/spaces/emanforhelp/model-pulse/resolve/main/assets/index-iljbJvME.js
132 kB
| (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function l(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=l(i);fetch(i.href,o)}})();const Xa="modulepreload",ec=function(e){return"/"+e},io={},kn=function(t,l,n){let i=Promise.resolve();if(l&&l.length>0){let a=function(u){return Promise.all(u.map(w=>Promise.resolve(w).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));i=a(l.map(u=>{if(u=ec(u),u in io)return;io[u]=!0;const w=u.endsWith(".css"),_=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${_}`))return;const p=document.createElement("link");if(p.rel=w?"stylesheet":Xa,w||(p.as="script"),p.crossOrigin="",p.href=u,f&&p.setAttribute("nonce",f),document.head.appendChild(p),w)return new Promise((k,v)=>{p.addEventListener("load",k),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=a,window.dispatchEvent(d),!d.defaultPrevented)throw a}return i.then(a=>{for(const d of a||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})};var ns,De,pr,rl,oo,mr,_r,Hs,zn,_n,gr,ai,qs,Js,Gn={},Yn=[],tc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ss=Array.isArray;function Xt(e,t){for(var l in t)e[l]=t[l];return e}function ci(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function lc(e,t,l){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ns.call(arguments,2):l),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Wn(e,a,n,i,null)}function Wn(e,t,l,n,i){var o={type:e,props:t,key:l,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++pr,__i:-1,__u:0};return i==null&&De.vnode!=null&&De.vnode(o),o}function fe(e){return e.children}function In(e,t){this.props=e,this.context=t}function Tl(e,t){if(t==null)return e.__?Tl(e.__,e.__i+1):null;for(var l;t<e.__k.length;t++)if((l=e.__k[t])!=null&&l.__e!=null)return l.__e;return typeof e.type=="function"?Tl(e):null}function nc(e){if(e.__P&&e.__d){var t=e.__v,l=t.__e,n=[],i=[],o=Xt({},t);o.__v=t.__v+1,De.vnode&&De.vnode(o),di(e.__P,o,t,e.__n,e.__P.namespaceURI,32&t.__u?[l]:null,n,l??Tl(t),!!(32&t.__u),i),o.__v=t.__v,o.__.__k[o.__i]=o,br(n,o,i),t.__e=t.__=null,o.__e!=l&&wr(o)}}function wr(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),wr(e)}function ro(e){(!e.__d&&(e.__d=!0)&&rl.push(e)&&!Kn.__r++||oo!=De.debounceRendering)&&((oo=De.debounceRendering)||mr)(Kn)}function Kn(){try{for(var e,t=1;rl.length;)rl.length>t&&rl.sort(_r),e=rl.shift(),t=rl.length,nc(e)}finally{rl.length=Kn.__r=0}}function vr(e,t,l,n,i,o,a,d,f,u,w){var _,p,k,v,x,A,z=n&&n.__k||Yn,b=t.length;for(f=sc(l,t,z,f,b),_=0;_<b;_++)(k=l.__k[_])!=null&&(p=k.__i!=-1&&z[k.__i]||Gn,k.__i=_,A=di(e,k,p,i,o,a,d,f,u,w),v=k.__e,k.ref&&p.ref!=k.ref&&(p.ref&&ui(p.ref,null,k),w.push(k.ref,k.__c||v,k)),x==null&&v!=null&&(x=v),4&k.__u?(f=yr(k,f,e),p.__e&&(p.__e=null)):typeof k.type=="function"&&A!==void 0?f=A:v&&(f=v.nextSibling),k.__u&=-7);return l.__e=x,f}function sc(e,t,l,n,i){var o,a,d,f,u,w=l.length,_=w,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[o]=Wn(null,a,null,null,null):ss(a)?a=e.__k[o]=Wn(fe,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[o]=Wn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[o]=a,f=o+p,a.__=e,a.__b=e.__b+1,d=null,(u=a.__i=ic(a,l,f,_))!=-1&&(_--,(d=l[u])&&(d.__u|=2)),d==null||d.__v==null?(u==-1&&(i>w?p--:i<w&&p++),typeof a.type!="function"&&(a.__u|=4)):u!=f&&(u==f-1?p--:u==f+1?p++:(u>f?p--:p++,a.__u|=4))):e.__k[o]=null;if(_)for(o=0;o<w;o++)(d=l[o])!=null&&(2&d.__u)==0&&(d.__e==n&&(n=Tl(d)),xr(d,d));return n}function yr(e,t,l){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=yr(n[i],t,l));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=Tl(e)),t=l.insertBefore(e.__e,t||null));do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ic(e,t,l,n){var i,o,a,d=e.key,f=e.type,u=t[l],w=u!=null&&(2&u.__u)==0;if(u===null&&d==null||w&&d==u.key&&f==u.type)return l;if(n>(w?1:0)){for(i=l-1,o=l+1;i>=0||o<t.length;)if((u=t[a=i>=0?i--:o++])!=null&&(2&u.__u)==0&&d==u.key&&f==u.type)return a}return-1}function ao(e,t,l){t[0]=="-"?e.setProperty(t,l??""):e[t]=l==null?"":typeof l!="number"||tc.test(t)?l:l+"px"}function $n(e,t,l,n,i){var o,a;e:if(t=="style")if(typeof l=="string")e.style.cssText=l;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)l&&t in l||ao(e.style,t,"");if(l)for(t in l)n&&l[t]==n[t]||ao(e.style,t,l[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(gr,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=l,l?n?l[_n]=n[_n]:(l[_n]=ai,e.addEventListener(t,o?Js:qs,o)):e.removeEventListener(t,o?Js:qs,o);else{if(i=="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]=l??"";break e}catch{}typeof l=="function"||(l==null||l===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&l==1?"":l))}}function co(e){return function(t){if(this.l){var l=this.l[t.type+e];if(t[zn]==null)t[zn]=ai++;else if(t[zn]<l[_n])return;return l(De.event?De.event(t):t)}}}function di(e,t,l,n,i,o,a,d,f,u){var w,_,p,k,v,x,A,z,b,W,C,T,S,V,E,D,L=t.type;if(t.constructor!==void 0)return null;128&l.__u&&(f=!!(32&l.__u),o=[d=t.__e=l.__e]),(w=De.__b)&&w(t);e:if(typeof L=="function"){_=a.length;try{if(b=t.props,W=L.prototype&&L.prototype.render,C=(w=L.contextType)&&n[w.__c],T=w?C?C.props.value:w.__:n,l.__c?z=(p=t.__c=l.__c).__=p.__E:(W?t.__c=p=new L(b,T):(t.__c=p=new In(b,T),p.constructor=L,p.render=rc),C&&C.sub(p),p.state||(p.state={}),p.__n=n,k=p.__d=!0,p.__h=[],p._sb=[]),W&&p.__s==null&&(p.__s=p.state),W&&L.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=Xt({},p.__s)),Xt(p.__s,L.getDerivedStateFromProps(b,p.__s))),v=p.props,x=p.state,p.__v=t,k)W&&L.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),W&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(W&&L.getDerivedStateFromProps==null&&b!==v&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(b,T),t.__v==l.__v||!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(b,p.__s,T)===!1){t.__v!=l.__v&&(p.props=b,p.state=p.__s,p.__d=!1),t.__e=l.__e,t.__k=l.__k,t.__k.some(function($){$&&($.__=t)}),Yn.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&a.push(p),d=Tl(l);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(b,p.__s,T),W&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(v,x,A)})}if(p.context=T,p.props=b,p.__P=e,p.__e=!1,S=De.__r,V=0,W)p.state=p.__s,p.__d=!1,S&&S(t),w=p.render(p.props,p.state,p.context),Yn.push.apply(p.__h,p._sb),p._sb=[];else do p.__d=!1,S&&S(t),w=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++V<25);p.state=p.__s,p.getChildContext!=null&&(n=Xt(Xt({},n),p.getChildContext())),W&&!k&&p.getSnapshotBeforeUpdate!=null&&(A=p.getSnapshotBeforeUpdate(v,x)),E=w!=null&&w.type===fe&&w.key==null?Sr(w.props.children):w,d=vr(e,ss(E)?E:[E],t,l,n,i,o,a,d,f,u),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),z&&(p.__E=p.__=null)}catch($){if(a.length=_,t.__v=null,f||o!=null){if($.then){for(t.__u|=f?160:128;d&&d.nodeType==8&&d.nextSibling;)d=d.nextSibling;o!=null&&(o[o.indexOf(d)]=null),t.__e=d}else if(o!=null)for(D=o.length;D--;)ci(o[D])}else t.__e=l.__e;t.__k==null&&(t.__k=l.__k||[]),$.then||kr(t),De.__e($,t,l)}}else o==null&&t.__v==l.__v?(t.__k=l.__k,t.__e=l.__e):d=t.__e=oc(l.__e,t,l,n,i,o,a,f,u);return(w=De.diffed)&&w(t),128&t.__u?void 0:d}function kr(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(kr))}function br(e,t,l){for(var n=0;n<l.length;n++)ui(l[n],l[++n],l[++n]);De.__c&&De.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){De.__e(o,i.__v)}})}function Sr(e){return typeof e!="object"||e==null||e.__b>0?e:ss(e)?e.map(Sr):e.constructor!==void 0?null:Xt({},e)}function oc(e,t,l,n,i,o,a,d,f){var u,w,_,p,k,v,x,A=l.props||Gn,z=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((k=o[u])&&"setAttribute"in k==!!b&&(b?k.localName==b:k.nodeType==3)){e=k,o[u]=null;break}}if(e==null){if(b==null)return document.createTextNode(z);e=document.createElementNS(i,b,z.is&&z),d&&(De.__m&&De.__m(t,o),d=!1),o=null}if(b==null)A===z||d&&e.data==z||(e.data=z);else{if(o=b=="textarea"&&z.defaultValue!=null?null:o&&ns.call(e.childNodes),!d&&o!=null)for(A={},u=0;u<e.attributes.length;u++)A[(k=e.attributes[u]).name]=k.value;for(u in A)k=A[u],u=="dangerouslySetInnerHTML"?_=k:u=="children"||u in z||u=="value"&&"defaultValue"in z||u=="checked"&&"defaultChecked"in z||$n(e,u,null,k,i);for(u in z)k=z[u],u=="children"?p=k:u=="dangerouslySetInnerHTML"?w=k:u=="value"?v=k:u=="checked"?x=k:d&&typeof k!="function"||A[u]===k||$n(e,u,k,A[u],i);if(w)d||_&&(w.__html==_.__html||w.__html==e.innerHTML)||(e.innerHTML=w.__html),t.__k=[];else if(_&&(e.innerHTML=""),vr(t.type=="template"?e.content:e,ss(p)?p:[p],t,l,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:l.__k&&Tl(l,0),d,f),o!=null)for(u=o.length;u--;)ci(o[u]);d&&b!="textarea"||(u="value",b=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[u]||b=="progress"&&!v||b=="option"&&v!=A[u])&&$n(e,u,v,A[u],i),u="checked",x!=null&&x!=e[u]&&$n(e,u,x,A[u],i))}return e}function ui(e,t,l){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){De.__e(i,l)}}function xr(e,t,l){var n,i;if(De.unmount&&De.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||ui(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){De.__e(o,t)}n.base=n.__P=n.__n=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&xr(n[i],t,l||typeof e.type!="function");l||ci(e.__e),e.__c=e.__=e.__e=void 0}function rc(e,t,l){return this.constructor(e,l)}function ac(e,t,l){var n,i,o,a;t==document&&(t=document.documentElement),De.__&&De.__(e,t),i=(n=!1)?null:t.__k,o=[],a=[],di(t,e=t.__k=lc(fe,null,[e]),i||Gn,Gn,t.namespaceURI,i?null:t.firstChild?ns.call(t.childNodes):null,o,i?i.__e:t.firstChild,n,a),br(o,e,a),e.props.children=null}ns=Yn.slice,De={__e:function(e,t,l,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(d){e=d}throw e}},pr=0,In.prototype.setState=function(e,t){var l;l=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Xt({},this.state),typeof e=="function"&&(e=e(Xt({},l),this.props)),e&&Xt(l,e),e!=null&&this.__v&&(t&&this._sb.push(t),ro(this))},In.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ro(this))},In.prototype.render=fe,rl=[],mr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_r=function(e,t){return e.__v.__b-t.__v.__b},Kn.__r=0,Hs=Math.random().toString(8),zn="__d"+Hs,_n="__a"+Hs,gr=/(PointerCapture)$|Capture$/i,ai=0,qs=co(!1),Js=co(!0);var cc=0;function s(e,t,l,n,i,o){t||(t={});var a,d,f=t;if("ref"in f)for(d in f={},t)d=="ref"?a=t[d]:f[d]=t[d];var u={type:e,props:f,key:l,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--cc,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(d in a)f[d]===void 0&&(f[d]=a[d]);return De.vnode&&De.vnode(u),u}var vn,ze,Bs,uo,qn=0,Mr=[],Ve=De,ho=Ve.__b,fo=Ve.__r,po=Ve.diffed,mo=Ve.__c,_o=Ve.unmount,go=Ve.__;function hi(e,t){Ve.__h&&Ve.__h(ze,e,qn||t),qn=0;var l=ze.__H||(ze.__H={__:[],__h:[]});return e>=l.__.length&&l.__.push({}),l.__[e]}function he(e){return qn=1,dc(Dr,e)}function dc(e,t,l){var n=hi(vn++,2);if(n.t=e,!n.__c&&(n.__=[Dr(void 0,t),function(d){var f=n.__N?n.__N[0]:n.__[0],u=n.t(f,d);f!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=ze,!ze.__f)){var i=function(d,f,u){if(!n.__c.__H)return!0;var w=!1,_=n.__c.props!==d;if(n.__c.__H.__.some(function(k){if(k.__N){w=!0;var v=k.__[0];k.__=k.__N,k.__N=void 0,v!==k.__[0]&&(_=!0)}}),o){var p=o.call(this,d,f,u);return w?p||_:p}return!w||_};ze.__f=!0;var o=ze.shouldComponentUpdate,a=ze.componentWillUpdate;ze.componentWillUpdate=function(d,f,u){if(this.__e){var w=o;o=void 0,i(d,f,u),o=w}a&&a.call(this,d,f,u)},ze.shouldComponentUpdate=i}return n.__N||n.__}function Lt(e,t){var l=hi(vn++,3);!Ve.__s&&Tr(l.__H,t)&&(l.__=e,l.u=t,ze.__H.__h.push(l))}function Sl(e){return qn=5,Ot(function(){return{current:e}},[])}function Ot(e,t){var l=hi(vn++,7);return Tr(l.__H,t)&&(l.__=e(),l.__H=t,l.__h=e),l.__}function uc(){for(var e;e=Mr.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Vn),t.__h.some(Qs),t.__h=[]}catch(l){t.__h=[],Ve.__e(l,e.__v)}}}Ve.__b=function(e){ze=null,ho&&ho(e)},Ve.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),go&&go(e,t)},Ve.__r=function(e){fo&&fo(e),vn=0;var t=(ze=e.__c).__H;t&&(Bs===ze?(t.__h=[],ze.__h=[],t.__.some(function(l){l.__N&&(l.__=l.__N),l.u=l.__N=void 0})):(t.__h.some(Vn),t.__h.some(Qs),t.__h=[],vn=0)),Bs=ze},Ve.diffed=function(e){po&&po(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Mr.push(t)!==1&&uo===Ve.requestAnimationFrame||((uo=Ve.requestAnimationFrame)||hc)(uc)),t.__H.__.some(function(l){l.u&&(l.__H=l.u,l.u=void 0)})),Bs=ze=null},Ve.__c=function(e,t){t.some(function(l){try{l.__h.some(Vn),l.__h=l.__h.filter(function(n){return!n.__||Qs(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ve.__e(n,l.__v)}}),mo&&mo(e,t)},Ve.unmount=function(e){_o&&_o(e);var t,l=e.__c;l&&l.__H&&(l.__H.__.some(function(n){try{Vn(n)}catch(i){t=i}}),l.__H=void 0,t&&Ve.__e(t,l.__v))};var wo=typeof requestAnimationFrame=="function";function hc(e){var t,l=function(){clearTimeout(n),wo&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(l,35);wo&&(t=requestAnimationFrame(l))}function Vn(e){var t=ze,l=e.__c;typeof l=="function"&&(e.__c=void 0,l()),ze=t}function Qs(e){var t=ze;e.__c=e.__(),ze=t}function Tr(e,t){return!e||e.length!==t.length||t.some(function(l,n){return l!==e[n]})}function Dr(e,t){return typeof t=="function"?t(e):t}const Cr="https://modelpulse.ifsp.dev",Fn=new Map;function Ct(e){if(!Fn.has(e)){const t=fetch(Cr+e).then(async l=>{if(!l.ok){const n=await l.json().catch(()=>({}));throw Fn.delete(e),new Error(n.detail||`Request failed (${l.status})`)}return l.json()});Fn.set(e,t)}return Fn.get(e)}const Jt={model:e=>Ct(`/api/model/${e}`),author:e=>Ct(`/api/author/${encodeURIComponent(e)}`),search:e=>Ct(`/api/search?q=${encodeURIComponent(e)}`),leaderboards:()=>Ct("/api/leaderboards"),hub:()=>Ct("/api/hub"),dataset:e=>Ct(`/api/dataset/${e}`),space:e=>Ct(`/api/space/${e}`),searchAll:e=>Ct(`/api/search/all?q=${encodeURIComponent(e)}`),searchAuthors:e=>Ct(`/api/search/authors?q=${encodeURIComponent(e)}`),boards:(e,t)=>Ct(`/api/leaderboards/${e}${t?`?sdk=${t}`:""}`),newSpaces:()=>Ct("/api/spaces/new"),meta:()=>Ct("/api/meta")},fc=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}),pc=new Intl.NumberFormat("en"),ue=e=>e==null?"–":fc.format(e),X=e=>e==null?"–":pc.format(Math.round(e)),cl=e=>e==null?"–":`${e>=0?"+":"−"}${Math.abs(e*100)>=10?Math.abs(e*100).toFixed(0):Math.abs(e*100).toFixed(1)}%`,Pr=e=>e?e>=1e9?`${(e/1e9).toFixed(e>=1e10?0:1)}B params`:e>=1e6?`${(e/1e6).toFixed(0)}M params`:`${(e/1e3).toFixed(0)}K params`:null,zt=(e,t={month:"short",day:"numeric",year:"numeric"})=>new Date(typeof e=="string"?e+(e.length===10?"T00:00:00Z":""):e).toLocaleDateString("en",{timeZone:"UTC",...t}),mc=e=>{if(e==null)return"–";const t=["th","st","nd","rd"],l=e%100;return e.toLocaleString("en")+(t[(l-20)%10]||t[l]||t[0])},It=e=>e?e.replace(/-/g," "):"untagged",vo=86400,Dl=e=>Date.parse(e+"T00:00:00Z")/1e3;function Jn(e,t){const l=[],n=[];let i=null,o=null;for(let a=0;a<e.length;a++){const d=t[a];if(d==null)continue;const f=Dl(e[a]);if(i!=null&&o!=null){const u=Math.max(1,Math.round((f-i)/vo)),w=Math.max(0,d-o)/u;for(let _=1;_<=u;_++)l.push(i+_*vo),n.push(w)}i=f,o=d}return{t:l,v:n}}function Un(e,t){const l=[],n=[];for(let i=0;i<e.length;i++)t[i]!=null&&(l.push(Dl(e[i])),n.push(t[i]));return{t:l,v:n}}function fi(e,t=7){const l=[];let n=0;for(let i=0;i<e.length;i++)n+=e[i],i>=t&&(n-=e[i-t]),l.push(n/Math.min(i+1,t));return l}function _c(e){const t=e.dl_all.findIndex(o=>o!=null);if(t<0)return[];const l=e.dl_all[e.dl_all.length-1]??0,n=[];for(const[o,a]of[[1e3,"1K"],[1e4,"10K"],[1e5,"100K"],[1e6,"1M"],[1e7,"10M"],[1e8,"100M"],[1e9,"1B"]]){if((e.dl_all[t]??0)>=o){n.push({value:o,label:a,day:null,before:e.day[t]});continue}const d=e.dl_all.findIndex(f=>f!=null&&f>=o);if(d>=0)n.push({value:o,label:a,day:e.day[d],before:null});else if(n.push({value:o,label:a,day:null,before:null}),o>l*10)break}const i=n.map(o=>!!o.before).lastIndexOf(!0);return n.filter((o,a)=>!o.before||a===i)}const Qn=!/\.hf\.space$/.test(location.hostname);function yo(){var n;const e=new URLSearchParams(location.search),t={model:e.get("model")||void 0,dataset:e.get("dataset")||void 0,space:e.get("space")||void 0,author:e.get("author")||void 0,compare:(n=e.get("compare"))==null?void 0:n.split(",").filter(Boolean),view:e.get("view")||void 0,kind:e.get("kind")==="datasets"?"datasets":void 0},l=location.pathname.split("/").filter(Boolean).map(decodeURIComponent);return l[0]==="model"&&l.length>1?t.model=l.slice(1).join("/"):l[0]==="dataset"&&l.length>1?t.dataset=l.slice(1).join("/"):l[0]==="space"&&l.length>1?t.space=l.slice(1).join("/"):l[0]==="author"&&l[1]?t.author=l[1]:l[0]==="galaxy"?(t.view="galaxy",l.length>1&&(t.model=l.slice(1).join("/"))):l[0]==="wrapped"?(t.view="wrapped",l[1]&&(t.author=l[1]),l[1]&&l[2]==="datasets"&&(t.kind="datasets")):l[0]==="report"&&(t.view="report"),t}const Rn=e=>e.split("/").map(encodeURIComponent).join("/");function Ar(e){var l;let t="/";return e.view==="galaxy"?t=e.model?`/galaxy/${Rn(e.model)}`:"/galaxy":e.view==="wrapped"?t=e.author?`/wrapped/${encodeURIComponent(e.author)}${e.kind==="datasets"?"/datasets":""}`:"/wrapped":e.view==="report"?t="/report":e.model?t=`/model/${Rn(e.model)}`:e.dataset?t=`/dataset/${Rn(e.dataset)}`:e.space?t=`/space/${Rn(e.space)}`:e.author&&(t=`/author/${encodeURIComponent(e.author)}`),t+((l=e.compare)!=null&&l.length?`?compare=${e.compare.join(",")}`:"")}function Oe(e){return Qn?Ar(e):"?"+Lr(e)}function Lr(e){var l;const t=new URLSearchParams;return e.model&&t.set("model",e.model),e.dataset&&t.set("dataset",e.dataset),e.space&&t.set("space",e.space),e.author&&t.set("author",e.author),(l=e.compare)!=null&&l.length&&t.set("compare",e.compare.join(",")),e.view&&t.set("view",e.view),e.kind&&t.set("kind",e.kind),t.toString().replace(/%2F/g,"/").replace(/%2C/g,",")}const Er="https://huggingface.co/spaces/tardellirs/model-pulse",gc="https://modelpulse.ifsp.dev";function wc(e){return gc+Ar(e)}function Pe(e,t=!1){var n;const l=Qn?Oe(e):location.pathname+Oe(e).replace(/^\?$/,"");if(t?history.replaceState(null,"",l):history.pushState(null,"",l),!Qn)try{(n=window.parent)==null||n.postMessage({queryString:Lr(e),hash:""},"https://huggingface.co")}catch{}window.dispatchEvent(new Event("routechange")),t||window.scrollTo({top:0})}function ko(e){e=e.trim();const t=e.match(/(?:huggingface\.co|hf\.co)\/(?:(spaces|datasets)\/)?([^/\s?#]+\/[^/\s?#]+)/);return t?{kind:t[1]==="spaces"?"space":t[1]==="datasets"?"dataset":"model",id:t[2]}:/^[\w.-]+\/[\w.-]+$/.test(e)?{kind:"model",id:e}:null}function vc(e){e=e.trim();const t=e.match(/(?:huggingface\.co|hf\.co)\/(?!spaces\/|datasets\/)([^/\s?#]+\/[^/\s?#]+)/);return t?t[1]:/^[\w.-]+\/[\w.-]+$/.test(e)?e:null}const pi=7*86400;function $r(e,t){const l=new Map;for(let o=0;o<e.length;o++){const a=new Date(e[o]*1e3),d=e[o]-(a.getUTCDay()+6)%7*86400;l.set(d,(l.get(d)??0)+t[o])}const n=[...l.keys()].sort((o,a)=>o-a),i=e[e.length-1];return{t:n.map(o=>o+pi/2),v:n.map(o=>l.get(o)),partial:i-n[n.length-1]<6*86400}}const yc=!0,Ke="u-",kc="uplot",bc=Ke+"hz",Sc=Ke+"vt",xc=Ke+"title",Mc=Ke+"wrap",Tc=Ke+"under",Dc=Ke+"over",Cc=Ke+"axis",xl=Ke+"off",Pc=Ke+"select",Ac=Ke+"cursor-x",Lc=Ke+"cursor-y",Ec=Ke+"cursor-pt",$c=Ke+"legend",Fc=Ke+"live",Rc=Ke+"inline",Hc=Ke+"series",Bc=Ke+"marker",bo=Ke+"label",Nc=Ke+"value",fn="width",pn="height",un="top",So="bottom",Yl="left",Ns="right",mi="#000",xo=mi+"0",Os="mousemove",Mo="mousedown",zs="mouseup",To="mouseenter",Do="mouseleave",Co="dblclick",Oc="resize",zc="scroll",Po="change",Zn="dppxchange",_i="--",en=typeof window<"u",Zs=en?document:null,ql=en?window:null,Wc=en?navigator:null;let we,Hn;function Xs(){let e=devicePixelRatio;we!=e&&(we=e,Hn&&ti(Po,Hn,Xs),Hn=matchMedia(`(min-resolution: ${we-.001}dppx) and (max-resolution: ${we+.001}dppx)`),Ml(Po,Hn,Xs),ql.dispatchEvent(new CustomEvent(Zn)))}function yt(e,t){if(t!=null){let l=e.classList;!l.contains(t)&&l.add(t)}}function ei(e,t){let l=e.classList;l.contains(t)&&l.remove(t)}function $e(e,t,l){e.style[t]=l+"px"}function Ht(e,t,l,n){let i=Zs.createElement(e);return t!=null&&yt(i,t),l!=null&&l.insertBefore(i,n),i}function Pt(e,t){return Ht("div",e,t)}const Ao=new WeakMap;function qt(e,t,l,n,i){let o="translate("+t+"px,"+l+"px)",a=Ao.get(e);o!=a&&(e.style.transform=o,Ao.set(e,o),t<0||l<0||t>n||l>i?yt(e,xl):ei(e,xl))}const Lo=new WeakMap;function Eo(e,t,l){let n=t+l,i=Lo.get(e);n!=i&&(Lo.set(e,n),e.style.background=t,e.style.borderColor=l)}const $o=new WeakMap;function Fo(e,t,l,n){let i=t+""+l,o=$o.get(e);i!=o&&($o.set(e,i),e.style.height=l+"px",e.style.width=t+"px",e.style.marginLeft=n?-t/2+"px":0,e.style.marginTop=n?-l/2+"px":0)}const gi={passive:!0},Ic={...gi,capture:!0};function Ml(e,t,l,n){t.addEventListener(e,l,n?Ic:gi)}function ti(e,t,l,n){t.removeEventListener(e,l,gi)}en&&Xs();function Bt(e,t,l,n){let i;l=l||0,n=n||t.length-1;let o=n<=2147483647;for(;n-l>1;)i=o?l+n>>1:kt((l+n)/2),t[i]<e?l=i:n=i;return e-t[l]<=t[n]-e?l:n}function Fr(e){return(l,n,i)=>{let o=-1,a=-1;for(let d=n;d<=i;d++)if(e(l[d])){o=d;break}for(let d=i;d>=n;d--)if(e(l[d])){a=d;break}return[o,a]}}const Rr=e=>e!=null,Hr=e=>e!=null&&e>0,is=Fr(Rr),Vc=Fr(Hr);function Uc(e,t,l,n=0,i=!1){let o=i?Vc:is,a=i?Hr:Rr;[t,l]=o(e,t,l);let d=e[t],f=e[t];if(t>-1)if(n==1)d=e[t],f=e[l];else if(n==-1)d=e[l],f=e[t];else for(let u=t;u<=l;u++){let w=e[u];a(w)&&(w<d?d=w:w>f&&(f=w))}return[d??Me,f??-Me]}function os(e,t,l,n){let i=Bo(e),o=Bo(t);e==t&&(i==-1?(e*=l,t/=l):(e/=l,t*=l));let a=l==10?el:Br,d=i==1?kt:At,f=o==1?At:kt,u=d(a(Ye(e))),w=f(a(Ye(t))),_=Jl(l,u),p=Jl(l,w);return l==10&&(u<0&&(_=Te(_,-u)),w<0&&(p=Te(p,-w))),n||l==2?(e=_*i,t=p*o):(e=Wr(e,_),t=rs(t,p)),[e,t]}function wi(e,t,l,n){let i=os(e,t,l,n);return e==0&&(i[0]=0),t==0&&(i[1]=0),i}const vi=.1,Ro={mode:3,pad:vi},gn={pad:0,soft:null,mode:0},jc={min:gn,max:gn};function Xn(e,t,l,n){return as(l)?Ho(e,t,l):(gn.pad=l,gn.soft=n?0:null,gn.mode=n?3:0,Ho(e,t,jc))}function _e(e,t){return e??t}function Gc(e,t,l){for(t=_e(t,0),l=_e(l,e.length-1);t<=l;){if(e[t]!=null)return!0;t++}return!1}function Ho(e,t,l){let n=l.min,i=l.max,o=_e(n.pad,0),a=_e(i.pad,0),d=_e(n.hard,-Me),f=_e(i.hard,Me),u=_e(n.soft,Me),w=_e(i.soft,-Me),_=_e(n.mode,0),p=_e(i.mode,0),k=t-e,v=el(k),x=ft(Ye(e),Ye(t)),A=el(x),z=Ye(A-v);(k<1e-24||z>10)&&(k=0,(e==0||t==0)&&(k=1e-24,_==2&&u!=Me&&(o=0),p==2&&w!=-Me&&(a=0)));let b=k||x||1e3,W=el(b),C=Jl(10,kt(W)),T=b*(k==0?e==0?.1:1:o),S=Te(Wr(e-T,C/10),24),V=e>=u&&(_==1||_==3&&S<=u||_==2&&S>=u)?u:Me,E=ft(d,S<V&&e>=V?V:Wt(V,S)),D=b*(k==0?t==0?.1:1:a),L=Te(rs(t+D,C/10),24),$=t<=w&&(p==1||p==3&&L>=w||p==2&&L<=w)?w:-Me,N=Wt(f,L>$&&t<=$?$:ft($,L));return E==N&&E==0&&(N=100),[E,N]}const Yc=new Intl.NumberFormat(en?Wc.language:"en-US"),yi=e=>Yc.format(e),bt=Math,jn=bt.PI,Ye=bt.abs,kt=bt.floor,Ge=bt.round,At=bt.ceil,Wt=bt.min,ft=bt.max,Jl=bt.pow,Bo=bt.sign,el=bt.log10,Br=bt.log2,Kc=(e,t=1)=>bt.sinh(e)*t,Ws=(e,t=1)=>bt.asinh(e/t),Me=1/0;function No(e){return(el((e^e>>31)-(e>>31))|0)+1}function li(e,t,l){return Wt(ft(e,t),l)}function Nr(e){return typeof e=="function"}function de(e){return Nr(e)?e:()=>e}const qc=()=>{},Or=e=>e,zr=(e,t)=>t,Jc=e=>null,Oo=e=>!0,zo=(e,t)=>e==t,Qc=/\.\d*?(?=9{6,}|0{6,})/gm,Cl=e=>{if(Vr(e)||dl.has(e))return e;const t=`${e}`,l=t.match(Qc);if(l==null)return e;let n=l[0].length-1;if(t.indexOf("e-")!=-1){let[i,o]=t.split("e");return+`${Cl(i)}e${o}`}return Te(e,n)};function kl(e,t){return Cl(Te(Cl(e/t))*t)}function rs(e,t){return Cl(At(Cl(e/t))*t)}function Wr(e,t){return Cl(kt(Cl(e/t))*t)}function Te(e,t=0){if(Vr(e))return e;let l=10**t,n=e*l*(1+Number.EPSILON);return Ge(n)/l}const dl=new Map;function Ir(e){return((""+e).split(".")[1]||"").length}function yn(e,t,l,n){let i=[],o=n.map(Ir);for(let a=t;a<l;a++){let d=Ye(a),f=Te(Jl(e,a),d);for(let u=0;u<n.length;u++){let w=e==10?+`${n[u]}e${a}`:n[u]*f,_=(a>=0?0:d)+(a>=o[u]?0:o[u]),p=e==10?w:Te(w,_);i.push(p),dl.set(p,_)}}return i}const wn={},ki=[],Ql=[null,null],al=Array.isArray,Vr=Number.isInteger,Zc=e=>e===void 0;function Wo(e){return typeof e=="string"}function as(e){let t=!1;if(e!=null){let l=e.constructor;t=l==null||l==Object}return t}function Xc(e){return e!=null&&typeof e=="object"}const ed=Object.getPrototypeOf(Uint8Array),Ur="__proto__";function Zl(e,t=as){let l;if(al(e)){let n=e.find(i=>i!=null);if(al(n)||t(n)){l=Array(e.length);for(let i=0;i<e.length;i++)l[i]=Zl(e[i],t)}else l=e.slice()}else if(e instanceof ed)l=e.slice();else if(t(e)){l={};for(let n in e)n!=Ur&&(l[n]=Zl(e[n],t))}else l=e;return l}function Ue(e){let t=arguments;for(let l=1;l<t.length;l++){let n=t[l];for(let i in n)i!=Ur&&(as(e[i])?Ue(e[i],Zl(n[i])):e[i]=Zl(n[i]))}return e}const td=0,ld=1,nd=2;function sd(e,t,l){for(let n=0,i,o=-1;n<t.length;n++){let a=t[n];if(a>o){for(i=a-1;i>=0&&e[i]==null;)e[i--]=null;for(i=a+1;i<l&&e[i]==null;)e[o=i++]=null}}}function id(e,t){if(ad(e)){let a=e[0].slice();for(let d=1;d<e.length;d++)a.push(...e[d].slice(1));return cd(a[0])||(a=rd(a)),a}let l=new Set;for(let a=0;a<e.length;a++){let f=e[a][0],u=f.length;for(let w=0;w<u;w++)l.add(f[w])}let n=[Array.from(l).sort((a,d)=>a-d)],i=n[0].length,o=new Map;for(let a=0;a<i;a++)o.set(n[0][a],a);for(let a=0;a<e.length;a++){let d=e[a],f=d[0];for(let u=1;u<d.length;u++){let w=d[u],_=Array(i).fill(void 0),p=t?t[a][u]:ld,k=[];for(let v=0;v<w.length;v++){let x=w[v],A=o.get(f[v]);x===null?p!=td&&(_[A]=x,p==nd&&k.push(A)):_[A]=x}sd(_,k,i),n.push(_)}}return n}const od=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask;function rd(e){let t=e[0],l=t.length,n=Array(l);for(let o=0;o<n.length;o++)n[o]=o;n.sort((o,a)=>t[o]-t[a]);let i=[];for(let o=0;o<e.length;o++){let a=e[o],d=Array(l);for(let f=0;f<l;f++)d[f]=a[n[f]];i.push(d)}return i}function ad(e){let t=e[0][0],l=t.length;for(let n=1;n<e.length;n++){let i=e[n][0];if(i.length!=l)return!1;if(i!=t){for(let o=0;o<l;o++)if(i[o]!=t[o])return!1}}return!0}function cd(e,t=100){const l=e.length;if(l<=1)return!0;let n=0,i=l-1;for(;n<=i&&e[n]==null;)n++;for(;i>=n&&e[i]==null;)i--;if(i<=n)return!0;const o=ft(1,kt((i-n+1)/t));for(let a=e[n],d=n+o;d<=i;d+=o){const f=e[d];if(f!=null){if(f<=a)return!1;a=f}}return!0}const jr=["January","February","March","April","May","June","July","August","September","October","November","December"],Gr=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Yr(e){return e.slice(0,3)}const dd=Gr.map(Yr),ud=jr.map(Yr),hd={MMMM:jr,MMM:ud,WWWW:Gr,WWW:dd};function hn(e){return(e<10?"0":"")+e}function fd(e){return(e<10?"00":e<100?"0":"")+e}const pd={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>hn(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>hn(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>hn(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>hn(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>hn(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>fd(e.getMilliseconds())};function bi(e,t){t=t||hd;let l=[],n=/\{([a-z]+)\}|[^{]+/gi,i;for(;i=n.exec(e);)l.push(i[0][0]=="{"?pd[i[1]]:i[0]);return o=>{let a="";for(let d=0;d<l.length;d++)a+=typeof l[d]=="string"?l[d]:l[d](o,t);return a}}const md=new Intl.DateTimeFormat().resolvedOptions().timeZone;function _d(e,t){let l;return t=="UTC"||t=="Etc/UTC"?l=new Date(+e+e.getTimezoneOffset()*6e4):t==md?l=e:(l=new Date(e.toLocaleString("en-US",{timeZone:t})),l.setMilliseconds(e.getMilliseconds())),l}const Kr=e=>e%1==0,es=[1,2,2.5,5],gd=yn(10,-32,0,es),qr=yn(10,0,32,es),wd=qr.filter(Kr),bl=gd.concat(qr),Si=` | |
| `,Jr="{YYYY}",Io=Si+Jr,Qr="{M}/{D}",mn=Si+Qr,Bn=mn+"/{YY}",Zr="{aa}",vd="{h}:{mm}",Kl=vd+Zr,Vo=Si+Kl,Uo=":{ss}",ye=null;function Xr(e){let t=e*1e3,l=t*60,n=l*60,i=n*24,o=i*30,a=i*365,f=(e==1?yn(10,0,3,es).filter(Kr):yn(10,-3,0,es)).concat([t,t*5,t*10,t*15,t*30,l,l*5,l*10,l*15,l*30,n,n*2,n*3,n*4,n*6,n*8,n*12,i,i*2,i*3,i*4,i*5,i*6,i*7,i*8,i*9,i*10,i*15,o,o*2,o*3,o*4,o*6,a,a*2,a*5,a*10,a*25,a*50,a*100]);const u=[[a,Jr,ye,ye,ye,ye,ye,ye,1],[i*28,"{MMM}",Io,ye,ye,ye,ye,ye,1],[i,Qr,Io,ye,ye,ye,ye,ye,1],[n,"{h}"+Zr,Bn,ye,mn,ye,ye,ye,1],[l,Kl,Bn,ye,mn,ye,ye,ye,1],[t,Uo,Bn+" "+Kl,ye,mn+" "+Kl,ye,Vo,ye,1],[e,Uo+".{fff}",Bn+" "+Kl,ye,mn+" "+Kl,ye,Vo,ye,1]];function w(_){return(p,k,v,x,A,z)=>{let b=[],W=A>=a,C=A>=o&&A<a,T=_(v),S=Te(T*e,3),V=Is(T.getFullYear(),W?0:T.getMonth(),C||W?1:T.getDate()),E=Te(V*e,3);if(C||W){let D=C?A/o:0,L=W?A/a:0,$=S==E?S:Te(Is(V.getFullYear()+L,V.getMonth()+D,1)*e,3),N=new Date(Ge($/e)),O=N.getFullYear(),Q=N.getMonth();for(let Y=0;$<=x;Y++){let ne=Is(O+L*Y,Q+D*Y,1),K=ne-_(Te(ne*e,3));$=Te((+ne+K)*e,3),$<=x&&b.push($)}}else{let D=A>=i?i:A,L=kt(v)-kt(S),$=E+L+rs(S-E,D);b.push($);let N=_($),O=N.getHours()+N.getMinutes()/l+N.getSeconds()/n,Q=A/n,Y=p.axes[k]._space,ne=z/Y;for(;$=Te($+A,e==1?0:3),!($>x);)if(Q>1){let K=kt(Te(O+Q,6))%24,ae=_($).getHours()-K;ae>1&&(ae=-1),$-=ae*n,O=(O+Q)%24;let oe=b[b.length-1];Te(($-oe)/A,3)*ne>=.7&&b.push($)}else b.push($)}return b}}return[f,u,w]}const[yd,kd,bd]=Xr(1),[Sd,xd,Md]=Xr(.001);yn(2,-53,53,[1]);function jo(e,t){return e.map(l=>l.map((n,i)=>i==0||i==8||n==null?n:t(i==1||l[8]==0?n:l[1]+n)))}function Go(e,t){return(l,n,i,o,a)=>{let d=t.find(v=>a>=v[0])||t[t.length-1],f,u,w,_,p,k;return n.map(v=>{let x=e(v),A=x.getFullYear(),z=x.getMonth(),b=x.getDate(),W=x.getHours(),C=x.getMinutes(),T=x.getSeconds(),S=A!=f&&d[2]||z!=u&&d[3]||b!=w&&d[4]||W!=_&&d[5]||C!=p&&d[6]||T!=k&&d[7]||d[1];return f=A,u=z,w=b,_=W,p=C,k=T,S(x)})}}function Td(e,t){let l=bi(t);return(n,i,o,a,d)=>i.map(f=>l(e(f)))}function Is(e,t,l){return new Date(e,t,l)}function Yo(e,t){return t(e)}const Dd="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Ko(e,t){return(l,n,i,o)=>o==null?_i:t(e(n))}function Cd(e,t){let l=e.series[t];return l.width?l.stroke(e,t):l.points.width?l.points.stroke(e,t):null}function Pd(e,t){return e.series[t].fill(e,t)}const Ad={show:!0,live:!0,isolate:!1,mount:qc,markers:{show:!0,width:2,stroke:Cd,fill:Pd,dash:"solid"},idx:null,idxs:null,values:[]};function Ld(e,t){let l=e.cursor.points,n=Pt(),i=l.size(e,t);$e(n,fn,i),$e(n,pn,i);let o=i/-2;$e(n,"marginLeft",o),$e(n,"marginTop",o);let a=l.width(e,t,i);return a&&$e(n,"borderWidth",a),n}function Ed(e,t){let l=e.series[t].points;return l._fill||l._stroke}function $d(e,t){let l=e.series[t].points;return l._stroke||l._fill}function Fd(e,t){return e.series[t].points.size}const Vs=[0,0];function Rd(e,t,l){return Vs[0]=t,Vs[1]=l,Vs}function Nn(e,t,l,n=!0){return i=>{i.button==0&&(!n||i.target==t)&&l(i)}}function Us(e,t,l,n=!0){return i=>{(!n||i.target==t)&&l(i)}}const Hd={show:!0,x:!0,y:!0,lock:!1,move:Rd,points:{one:!1,show:Ld,size:Fd,width:0,stroke:$d,fill:Ed},bind:{mousedown:Nn,mouseup:Nn,click:Nn,dblclick:Nn,mousemove:Us,mouseleave:Us,mouseenter:Us},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,l,n,i)=>n-i,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},ea={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},xi=Ue({},ea,{filter:zr}),ta=Ue({},xi,{size:10}),la=Ue({},ea,{show:!1}),Mi='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',na="bold "+Mi,sa=1.5,qo={show:!0,scale:"x",stroke:mi,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:na,side:2,grid:xi,ticks:ta,border:la,font:Mi,lineGap:sa,rotate:0},Bd="Value",Nd="Time",Jo={show:!0,scale:"x",auto:!1,sorted:1,min:Me,max:-Me,idxs:[]};function Od(e,t,l,n,i){return t.map(o=>o==null?"":yi(o))}function zd(e,t,l,n,i,o,a){let d=[],f=dl.get(i)||0;l=a?l:Te(rs(l,i),f);for(let u=l;u<=n;u=Te(u+i,f))d.push(Object.is(u,-0)?0:u);return d}function ni(e,t,l,n,i,o,a){const d=[],f=e.scales[e.axes[t].scale].log,u=f==10?el:Br,w=kt(u(l));i=Jl(f,w),f==10&&(i=bl[Bt(i,bl)]);let _=l,p=i*f;f==10&&(p=bl[Bt(p,bl)]);do d.push(_),_=_+i,f==10&&!dl.has(_)&&(_=Te(_,dl.get(i))),_>=p&&(i=_,p=i*f,f==10&&(p=bl[Bt(p,bl)]));while(_<=n);return d}function Wd(e,t,l,n,i,o,a){let f=e.scales[e.axes[t].scale].asinh,u=n>f?ni(e,t,ft(f,l),n,i):[f],w=n>=0&&l<=0?[0]:[];return(l<-f?ni(e,t,ft(f,-n),-l,i):[f]).reverse().map(p=>-p).concat(w,u)}const ia=/./,Id=/[12357]/,Vd=/[125]/,Qo=/1/,si=(e,t,l,n)=>e.map((i,o)=>t==4&&i==0||o%n==0&&l.test(i.toExponential()[i<0?1:0])?i:null);function Ud(e,t,l,n,i){let o=e.axes[l],a=o.scale,d=e.scales[a],f=e.valToPos,u=o._space,w=f(10,a),_=f(9,a)-w>=u?ia:f(7,a)-w>=u?Id:f(5,a)-w>=u?Vd:Qo;if(_==Qo){let p=Ye(f(1,a)-w);if(p<u)return si(t.slice().reverse(),d.distr,_,At(u/p)).reverse()}return si(t,d.distr,_,1)}function jd(e,t,l,n,i){let o=e.axes[l],a=o.scale,d=o._space,f=e.valToPos,u=Ye(f(1,a)-f(2,a));return u<d?si(t.slice().reverse(),3,ia,At(d/u)).reverse():t}function Gd(e,t,l,n){return n==null?_i:t==null?"":yi(t)}const Zo={show:!0,scale:"y",stroke:mi,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:na,side:3,grid:xi,ticks:ta,border:la,font:Mi,lineGap:sa,rotate:0};function Yd(e,t){let l=3+(e||1)*2;return Te(l*t,3)}function Kd(e,t){let{scale:l,idxs:n}=e.series[0],i=e._data[0],o=e.valToPos(i[n[0]],l,!0),a=e.valToPos(i[n[1]],l,!0),d=Ye(a-o),f=e.series[t],u=d/(f.points.space*we);return n[1]-n[0]<=u}const Xo={scale:null,auto:!0,sorted:0,min:Me,max:-Me},oa=(e,t,l,n,i)=>i,er={show:!0,auto:!0,sorted:0,gaps:oa,alpha:1,facets:[Ue({},Xo,{scale:"x"}),Ue({},Xo,{scale:"y"})]},tr={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:oa,alpha:1,points:{show:Kd,filter:null},values:null,min:Me,max:-Me,idxs:[],path:null,clip:null};function qd(e,t,l,n,i){return l/10}const ra={time:yc,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Jd=Ue({},ra,{time:!1,ori:1}),lr={};function aa(e,t){let l=lr[e];return l||(l={key:e,plots:[],sub(n){l.plots.push(n)},unsub(n){l.plots=l.plots.filter(i=>i!=n)},pub(n,i,o,a,d,f,u){for(let w=0;w<l.plots.length;w++)l.plots[w]!=i&&l.plots[w].pub(n,i,o,a,d,f,u)}},e!=null&&(lr[e]=l)),l}const Xl=1,ii=2;function Pl(e,t,l){const n=e.mode,i=e.series[t],o=n==2?e._data[t]:e._data,a=e.scales,d=e.bbox;let f=o[0],u=n==2?o[1]:o[t],w=n==2?a[i.facets[0].scale]:a[e.series[0].scale],_=n==2?a[i.facets[1].scale]:a[i.scale],p=d.left,k=d.top,v=d.width,x=d.height,A=e.valToPosH,z=e.valToPosV;return w.ori==0?l(i,f,u,w,_,A,z,p,k,v,x,ds,tn,hs,da,ha):l(i,f,u,w,_,z,A,k,p,x,v,us,ln,Ci,ua,fa)}function Ti(e,t){let l=0,n=0,i=_e(e.bands,ki);for(let o=0;o<i.length;o++){let a=i[o];a.series[0]==t?l=a.dir:a.series[1]==t&&(a.dir==1?n|=1:n|=2)}return[l,n==1?-1:n==2?1:n==3?2:0]}function Qd(e,t,l,n,i){let o=e.mode,a=e.series[t],d=o==2?a.facets[1].scale:a.scale,f=e.scales[d];return i==-1?f.min:i==1?f.max:f.distr==3?f.dir==1?f.min:f.max:0}function tl(e,t,l,n,i,o){return Pl(e,t,(a,d,f,u,w,_,p,k,v,x,A)=>{let z=a.pxRound;const b=u.dir*(u.ori==0?1:-1),W=u.ori==0?tn:ln;let C,T;b==1?(C=l,T=n):(C=n,T=l);let S=z(_(d[C],u,x,k)),V=z(p(f[C],w,A,v)),E=z(_(d[T],u,x,k)),D=z(p(o==1?w.max:w.min,w,A,v)),L=new Path2D(i);return W(L,E,D),W(L,S,D),W(L,S,V),L})}function cs(e,t,l,n,i,o){let a=null;if(e.length>0){a=new Path2D;const d=t==0?hs:Ci;let f=l;for(let _=0;_<e.length;_++){let p=e[_];if(p[1]>p[0]){let k=p[0]-f;k>0&&d(a,f,n,k,n+o),f=p[1]}}let u=l+i-f,w=10;u>0&&d(a,f,n-w/2,u,n+o+w)}return a}function Zd(e,t,l){let n=e[e.length-1];n&&n[0]==t?n[1]=l:e.push([t,l])}function Di(e,t,l,n,i,o,a){let d=[],f=e.length;for(let u=i==1?l:n;u>=l&&u<=n;u+=i)if(t[u]===null){let _=u,p=u;if(i==1)for(;++u<=n&&t[u]===null;)p=u;else for(;--u>=l&&t[u]===null;)p=u;let k=o(e[_]),v=p==_?k:o(e[p]),x=_-i;k=a<=0&&x>=0&&x<f?o(e[x]):k;let z=p+i;v=a>=0&&z>=0&&z<f?o(e[z]):v,v>=k&&d.push([k,v])}return d}function nr(e){return e==0?Or:e==1?Ge:t=>kl(t,e)}function ca(e){let t=e==0?ds:us,l=e==0?(i,o,a,d,f,u)=>{i.arcTo(o,a,d,f,u)}:(i,o,a,d,f,u)=>{i.arcTo(a,o,f,d,u)},n=e==0?(i,o,a,d,f)=>{i.rect(o,a,d,f)}:(i,o,a,d,f)=>{i.rect(a,o,f,d)};return(i,o,a,d,f,u=0,w=0)=>{u==0&&w==0?n(i,o,a,d,f):(u=Wt(u,d/2,f/2),w=Wt(w,d/2,f/2),t(i,o+u,a),l(i,o+d,a,o+d,a+f,u),l(i,o+d,a+f,o,a+f,w),l(i,o,a+f,o,a,w),l(i,o,a,o+d,a,u),i.closePath())}}const ds=(e,t,l)=>{e.moveTo(t,l)},us=(e,t,l)=>{e.moveTo(l,t)},tn=(e,t,l)=>{e.lineTo(t,l)},ln=(e,t,l)=>{e.lineTo(l,t)},hs=ca(0),Ci=ca(1),da=(e,t,l,n,i,o)=>{e.arc(t,l,n,i,o)},ua=(e,t,l,n,i,o)=>{e.arc(l,t,n,i,o)},ha=(e,t,l,n,i,o,a)=>{e.bezierCurveTo(t,l,n,i,o,a)},fa=(e,t,l,n,i,o,a)=>{e.bezierCurveTo(l,t,i,n,a,o)};function pa(e){return(t,l,n,i,o)=>Pl(t,l,(a,d,f,u,w,_,p,k,v,x,A)=>{let{pxRound:z,points:b}=a,W,C;u.ori==0?(W=ds,C=da):(W=us,C=ua);const T=Te(b.width*we,3);let S=(b.size-b.width)/2*we,V=Te(S*2,3),E=new Path2D,D=new Path2D,{left:L,top:$,width:N,height:O}=t.bbox;hs(D,L-V,$-V,N+V*2,O+V*2);const Q=Y=>{if(f[Y]!=null){let ne=z(_(d[Y],u,x,k)),K=z(p(f[Y],w,A,v));W(E,ne+S,K),C(E,ne,K,S,0,jn*2)}};if(o)o.forEach(Q);else for(let Y=n;Y<=i;Y++)Q(Y);return{stroke:T>0?E:null,fill:E,clip:D,flags:Xl|ii}})}function ma(e){return(t,l,n,i,o,a)=>{n!=i&&(o!=n&&a!=n&&e(t,l,n),o!=i&&a!=i&&e(t,l,i),e(t,l,a))}}const Xd=ma(tn),eu=ma(ln);function _a(e){const t=_e(e==null?void 0:e.alignGaps,0);return(l,n,i,o)=>Pl(l,n,(a,d,f,u,w,_,p,k,v,x,A)=>{[i,o]=is(f,i,o);let z=a.pxRound,b=O=>z(_(O,u,x,k)),W=O=>z(p(O,w,A,v)),C,T;u.ori==0?(C=tn,T=Xd):(C=ln,T=eu);const S=u.dir*(u.ori==0?1:-1),V={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Xl},E=V.stroke;let D=!1;if(o-i>=x*4){let O=q=>l.posToVal(q,u.key,!0),Q=null,Y=null,ne,K,Se,pe=b(d[S==1?i:o]),ae=b(d[i]),oe=b(d[o]),se=O(S==1?ae+1:oe-1);for(let q=S==1?i:o;q>=i&&q<=o;q+=S){let ke=d[q],F=(S==1?ke<se:ke>se)?pe:b(ke),te=f[q];F==pe?te!=null?(K=te,Q==null?(C(E,F,W(K)),ne=Q=Y=K):K<Q?Q=K:K>Y&&(Y=K)):te===null&&(D=!0):(Q!=null&&T(E,pe,W(Q),W(Y),W(ne),W(K)),te!=null?(K=te,C(E,F,W(K)),Q=Y=ne=K):(Q=Y=null,te===null&&(D=!0)),pe=F,se=O(pe+S))}Q!=null&&Q!=Y&&Se!=pe&&T(E,pe,W(Q),W(Y),W(ne),W(K))}else for(let O=S==1?i:o;O>=i&&O<=o;O+=S){let Q=f[O];Q===null?D=!0:Q!=null&&C(E,b(d[O]),W(Q))}let[$,N]=Ti(l,n);if(a.fill!=null||$!=0){let O=V.fill=new Path2D(E),Q=a.fillTo(l,n,a.min,a.max,$),Y=W(Q),ne=b(d[i]),K=b(d[o]);S==-1&&([K,ne]=[ne,K]),C(O,K,Y),C(O,ne,Y)}if(!a.spanGaps){let O=[];D&&O.push(...Di(d,f,i,o,S,b,t)),V.gaps=O=a.gaps(l,n,i,o,O),V.clip=cs(O,u.ori,k,v,x,A)}return N!=0&&(V.band=N==2?[tl(l,n,i,o,E,-1),tl(l,n,i,o,E,1)]:tl(l,n,i,o,E,N)),V})}function tu(e){const t=_e(e.align,1),l=_e(e.ascDesc,!1),n=_e(e.alignGaps,0),i=_e(e.extend,!1);return(o,a,d,f)=>Pl(o,a,(u,w,_,p,k,v,x,A,z,b,W)=>{[d,f]=is(_,d,f);let C=u.pxRound,{left:T,width:S}=o.bbox,V=ae=>C(v(ae,p,b,A)),E=ae=>C(x(ae,k,W,z)),D=p.ori==0?tn:ln;const L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Xl},$=L.stroke,N=p.dir*(p.ori==0?1:-1);let O=E(_[N==1?d:f]),Q=V(w[N==1?d:f]),Y=Q,ne=Q;i&&t==-1&&(ne=T,D($,ne,O)),D($,Q,O);for(let ae=N==1?d:f;ae>=d&&ae<=f;ae+=N){let oe=_[ae];if(oe==null)continue;let se=V(w[ae]),q=E(oe);t==1?D($,se,O):D($,Y,q),D($,se,q),O=q,Y=se}let K=Y;i&&t==1&&(K=T+S,D($,K,O));let[Se,pe]=Ti(o,a);if(u.fill!=null||Se!=0){let ae=L.fill=new Path2D($),oe=u.fillTo(o,a,u.min,u.max,Se),se=E(oe);D(ae,K,se),D(ae,ne,se)}if(!u.spanGaps){let ae=[];ae.push(...Di(w,_,d,f,N,V,n));let oe=u.width*we/2,se=l||t==1?oe:-oe,q=l||t==-1?-oe:oe;ae.forEach(ke=>{ke[0]+=se,ke[1]+=q}),L.gaps=ae=u.gaps(o,a,d,f,ae),L.clip=cs(ae,p.ori,A,z,b,W)}return pe!=0&&(L.band=pe==2?[tl(o,a,d,f,$,-1),tl(o,a,d,f,$,1)]:tl(o,a,d,f,$,pe)),L})}function sr(e,t,l,n,i,o,a=Me){if(e.length>1){let d=null;for(let f=0,u=1/0;f<e.length;f++)if(t[f]!==void 0){if(d!=null){let w=Ye(e[f]-e[d]);w<u&&(u=w,a=Ye(l(e[f],n,i,o)-l(e[d],n,i,o)))}d=f}}return a}function lu(e){e=e||wn;const t=_e(e.size,[.6,Me,1]),l=e.align||0,n=e.gap||0;let i=e.radius;i=i==null?[0,0]:typeof i=="number"?[i,0]:i;const o=de(i),a=1-t[0],d=_e(t[1],Me),f=_e(t[2],1),u=_e(e.disp,wn),w=_e(e.each,k=>{}),{fill:_,stroke:p}=u;return(k,v,x,A)=>Pl(k,v,(z,b,W,C,T,S,V,E,D,L,$)=>{let N=z.pxRound,O=l,Q=n*we,Y=d*we,ne=f*we,K,Se;C.ori==0?[K,Se]=o(k,v):[Se,K]=o(k,v);const pe=C.dir*(C.ori==0?1:-1);let ae=C.ori==0?hs:Ci,oe=C.ori==0?w:(j,Ce,je,Ll,hl,Vt,fl)=>{w(j,Ce,je,hl,Ll,fl,Vt)},se=_e(k.bands,ki).find(j=>j.series[0]==v),q=se!=null?se.dir:0,ke=z.fillTo(k,v,z.min,z.max,q),Fe=N(V(ke,T,$,D)),F,te,H,P=L,Z=N(z.width*we),ve=!1,re=null,xe=null,qe=null,We=null;_!=null&&(Z==0||p!=null)&&(ve=!0,re=_.values(k,v,x,A),xe=new Map,new Set(re).forEach(j=>{j!=null&&xe.set(j,new Path2D)}),Z>0&&(qe=p.values(k,v,x,A),We=new Map,new Set(qe).forEach(j=>{j!=null&&We.set(j,new Path2D)})));let{x0:rt,size:st}=u;if(rt!=null&&st!=null){O=1,b=rt.values(k,v,x,A),rt.unit==2&&(b=b.map(je=>k.posToVal(E+je*L,C.key,!0)));let j=st.values(k,v,x,A);st.unit==2?te=j[0]*L:te=S(j[0],C,L,E)-S(0,C,L,E),P=sr(b,W,S,C,L,E,P),H=P-te+Q}else P=sr(b,W,S,C,L,E,P),H=P*a+Q,te=P-H;H<1&&(H=0),Z>=te/2&&(Z=0),H<5&&(N=Or);let Re=H>0,Je=P-H-(Re?Z:0);te=N(li(Je,ne,Y)),F=(O==0?te/2:O==pe?0:te)-O*pe*((O==0?Q/2:0)+(Re?Z/2:0));const ct={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Al=ve?null:new Path2D;let Qt=null;if(se!=null)Qt=k.data[se.series[1]];else{let{y0:j,y1:Ce}=u;j!=null&&Ce!=null&&(W=Ce.values(k,v,x,A),Qt=j.values(k,v,x,A))}let ul=K*te,ie=Se*te;for(let j=pe==1?x:A;j>=x&&j<=A;j+=pe){let Ce=W[j];if(Ce==null)continue;if(Qt!=null){let pt=Qt[j]??0;if(Ce-pt==0)continue;Fe=V(pt,T,$,D)}let je=C.distr!=2||u!=null?b[j]:j,Ll=S(je,C,L,E),hl=V(_e(Ce,ke),T,$,D),Vt=N(Ll-F),fl=N(ft(hl,Fe)),_t=N(Wt(hl,Fe)),St=fl-_t;if(Ce!=null){let pt=Ce<0?ie:ul,Et=Ce<0?ul:ie;ve?(Z>0&&qe[j]!=null&&ae(We.get(qe[j]),Vt,_t+kt(Z/2),te,ft(0,St-Z),pt,Et),re[j]!=null&&ae(xe.get(re[j]),Vt,_t+kt(Z/2),te,ft(0,St-Z),pt,Et)):ae(Al,Vt,_t+kt(Z/2),te,ft(0,St-Z),pt,Et),oe(k,v,j,Vt-Z/2,_t,te+Z,St)}}return Z>0?ct.stroke=ve?We:Al:ve||(ct._fill=z.width==0?z._fill:z._stroke??z._fill,ct.width=0),ct.fill=ve?xe:Al,ct})}function nu(e,t){const l=_e(t==null?void 0:t.alignGaps,0);return(n,i,o,a)=>Pl(n,i,(d,f,u,w,_,p,k,v,x,A,z)=>{[o,a]=is(u,o,a);let b=d.pxRound,W=K=>b(p(K,w,A,v)),C=K=>b(k(K,_,z,x)),T,S,V;w.ori==0?(T=ds,V=tn,S=ha):(T=us,V=ln,S=fa);const E=w.dir*(w.ori==0?1:-1);let D=W(f[E==1?o:a]),L=D,$=[],N=[];for(let K=E==1?o:a;K>=o&&K<=a;K+=E)if(u[K]!=null){let pe=f[K],ae=W(pe);$.push(L=ae),N.push(C(u[K]))}const O={stroke:e($,N,T,V,S,b),fill:null,clip:null,band:null,gaps:null,flags:Xl},Q=O.stroke;let[Y,ne]=Ti(n,i);if(d.fill!=null||Y!=0){let K=O.fill=new Path2D(Q),Se=d.fillTo(n,i,d.min,d.max,Y),pe=C(Se);V(K,L,pe),V(K,D,pe)}if(!d.spanGaps){let K=[];K.push(...Di(f,u,o,a,E,W,l)),O.gaps=K=d.gaps(n,i,o,a,K),O.clip=cs(K,w.ori,v,x,A,z)}return ne!=0&&(O.band=ne==2?[tl(n,i,o,a,Q,-1),tl(n,i,o,a,Q,1)]:tl(n,i,o,a,Q,ne)),O})}function su(e){return nu(iu,e)}function iu(e,t,l,n,i,o){const a=e.length;if(a<2)return null;const d=new Path2D;if(l(d,e[0],t[0]),a==2)n(d,e[1],t[1]);else{let f=Array(a),u=Array(a-1),w=Array(a-1),_=Array(a-1);for(let p=0;p<a-1;p++)w[p]=t[p+1]-t[p],_[p]=e[p+1]-e[p],u[p]=w[p]/_[p];f[0]=u[0];for(let p=1;p<a-1;p++)u[p]===0||u[p-1]===0||u[p-1]>0!=u[p]>0?f[p]=0:(f[p]=3*(_[p-1]+_[p])/((2*_[p]+_[p-1])/u[p-1]+(_[p]+2*_[p-1])/u[p]),isFinite(f[p])||(f[p]=0));f[a-1]=u[a-2];for(let p=0;p<a-1;p++)i(d,e[p]+_[p]/3,t[p]+f[p]*_[p]/3,e[p+1]-_[p]/3,t[p+1]-f[p+1]*_[p]/3,e[p+1],t[p+1])}return d}const oi=new Set;function ir(){for(let e of oi)e.syncRect(!0)}en&&(Ml(Oc,ql,ir),Ml(zc,ql,ir,!0),Ml(Zn,ql,()=>{nt.pxRatio=we}));const ou=_a(),ru=pa();function or(e,t,l,n){return(n?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((o,a)=>ri(o,a,t,l))}function au(e,t){return e.map((l,n)=>n==0?{}:Ue({},t,l))}function ri(e,t,l,n){return Ue({},t==0?l:n,e)}function ga(e,t,l){return t==null?Ql:[t,l]}const cu=ga;function du(e,t,l){return t==null?Ql:Xn(t,l,vi,!0)}function wa(e,t,l,n){return t==null?Ql:os(t,l,e.scales[n].log,!1)}const uu=wa;function va(e,t,l,n){return t==null?Ql:wi(t,l,e.scales[n].log,!1)}const hu=va;function fu(e,t,l,n,i){let o=ft(No(e),No(t)),a=t-e,d=Bt(i/n*a,l);do{let f=l[d],u=n*f/a;if(u>=i&&o+(f<5?dl.get(f):0)<=17)return[f,u]}while(++d<l.length);return[0,0]}function rr(e){let t,l;return e=e.replace(/(\d+)px/,(n,i)=>(t=Ge((l=+i)*we))+"px"),[e,t,l]}function pu(e){e.show&&[e.font,e.labelFont].forEach(t=>{let l=Te(t[2]*we,1);t[0]=t[0].replace(/[0-9.]+px/,l+"px"),t[1]=l})}function nt(e,t,l){const n={mode:_e(e.mode,1)},i=n.mode;function o(r,c,h,m){let g=c.valToPct(r);return m+h*(c.dir==-1?1-g:g)}function a(r,c,h,m){let g=c.valToPct(r);return m+h*(c.dir==-1?g:1-g)}function d(r,c,h,m){return c.ori==0?o(r,c,h,m):a(r,c,h,m)}n.valToPosH=o,n.valToPosV=a;let f=!1;n.status=0;const u=n.root=Pt(kc);if(e.id!=null&&(u.id=e.id),yt(u,e.class),e.title){let r=Pt(xc,u);r.textContent=e.title}const w=Ht("canvas"),_=n.ctx=w.getContext("2d"),p=Pt(Mc,u);Ml("click",p,r=>{r.target===v&&(Ae!=Il||He!=Vl)&&ot.click(n,r)},!0);const k=n.under=Pt(Tc,p);p.appendChild(w);const v=n.over=Pt(Dc,p);e=Zl(e);const x=+_e(e.pxAlign,1),A=nr(x);(e.plugins||[]).forEach(r=>{r.opts&&(e=r.opts(n,e)||e)});const z=e.ms||.001,b=n.series=i==1?or(e.series||[],Jo,tr,!1):au(e.series||[null],er),W=n.axes=or(e.axes||[],qo,Zo,!0),C=n.scales={},T=n.bands=e.bands||[];T.forEach(r=>{r.fill=de(r.fill||null),r.dir=_e(r.dir,-1)});const S=i==2?b[1].facets[0].scale:b[0].scale,V={axes:Na,series:$a},E=(e.drawOrder||["axes","series"]).map(r=>V[r]);function D(r){const c=r.distr==3?h=>el(h>0?h:r.clamp(n,h,r.min,r.max,r.key)):r.distr==4?h=>Ws(h,r.asinh):r.distr==100?h=>r.fwd(h):h=>h;return h=>{let m=c(h),{_min:g,_max:y}=r,M=y-g;return(m-g)/M}}function L(r){let c=C[r];if(c==null){let h=(e.scales||wn)[r]||wn;if(h.from!=null){L(h.from);let m=Ue({},C[h.from],h,{key:r});m.valToPct=D(m),C[r]=m}else{c=C[r]=Ue({},r==S?ra:Jd,h),c.key=r;let m=c.time,g=c.range,y=al(g);if((r!=S||i==2&&!m)&&(y&&(g[0]==null||g[1]==null)&&(g={min:g[0]==null?Ro:{mode:1,hard:g[0],soft:g[0]},max:g[1]==null?Ro:{mode:1,hard:g[1],soft:g[1]}},y=!1),!y&&as(g))){let M=g;g=(R,B,I)=>B==null?Ql:Xn(B,I,M)}c.range=de(g||(m?cu:r==S?c.distr==3?uu:c.distr==4?hu:ga:c.distr==3?wa:c.distr==4?va:du)),c.auto=de(y?!1:c.auto),c.clamp=de(c.clamp||qd),c._min=c._max=null,c.valToPct=D(c)}}}L("x"),L("y"),i==1&&b.forEach(r=>{L(r.scale)}),W.forEach(r=>{L(r.scale)});for(let r in e.scales)L(r);const $=C[S],N=$.distr;let O,Q;$.ori==0?(yt(u,bc),O=o,Q=a):(yt(u,Sc),O=a,Q=o);const Y={};for(let r in C){let c=C[r];(c.min!=null||c.max!=null)&&(Y[r]={min:c.min,max:c.max},c.min=c.max=null)}const ne=e.tzDate||(r=>new Date(Ge(r/z))),K=e.fmtDate||bi,Se=z==1?bd(ne):Md(ne),pe=Go(ne,jo(z==1?kd:xd,K)),ae=Ko(ne,Yo(Dd,K)),oe=[],se=n.legend=Ue({},Ad,e.legend),q=n.cursor=Ue({},Hd,{drag:{y:i==2}},e.cursor),ke=se.show,Fe=q.show,F=se.markers;se.idxs=oe,F.width=de(F.width),F.dash=de(F.dash),F.stroke=de(F.stroke),F.fill=de(F.fill);let te,H,P,Z=[],ve=[],re,xe=!1,qe={};if(se.live){const r=b[1]?b[1].values:null;xe=r!=null,re=xe?r(n,1,0):{_:0};for(let c in re)qe[c]=_i}if(ke)if(te=Ht("table",$c,u),P=Ht("tbody",null,te),se.mount(n,te),xe){H=Ht("thead",null,te,P);let r=Ht("tr",null,H);Ht("th",null,r);for(var We in re)Ht("th",bo,r).textContent=We}else yt(te,Rc),se.live&&yt(te,Fc);const rt={show:!0},st={show:!1};function Re(r,c){if(c==0&&(xe||!se.live||i==2))return Ql;let h=[],m=Ht("tr",Hc,P,P.childNodes[c]);yt(m,r.class),r.show||yt(m,xl);let g=Ht("th",null,m);if(F.show){let R=Pt(Bc,g);if(c>0){let B=F.width(n,c);B&&(R.style.border=B+"px "+F.dash(n,c)+" "+F.stroke(n,c)),R.style.background=F.fill(n,c)}}let y=Pt(bo,g);r.label instanceof HTMLElement?y.appendChild(r.label):y.textContent=r.label,c>0&&(F.show||(y.style.color=r.width>0?F.stroke(n,c):F.fill(n,c)),ct("click",g,R=>{if(q._lock)return;ml(R);let B=b.indexOf(r);if((R.ctrlKey||R.metaKey)!=se.isolate){let I=b.some((U,G)=>G>0&&G!=B&&U.show);b.forEach((U,G)=>{G>0&&jt(G,I?G==B?rt:st:rt,!0,Ie.setSeries)})}else jt(B,{show:!r.show},!0,Ie.setSeries)},!1),$l&&ct(To,g,R=>{q._lock||(ml(R),jt(b.indexOf(r),jl,!0,Ie.setSeries))},!1));for(var M in re){let R=Ht("td",Nc,m);R.textContent="--",h.push(R)}return[m,h]}const Je=new Map;function ct(r,c,h,m=!0){const g=Je.get(c)||{},y=q.bind[r](n,c,h,m);y&&(Ml(r,c,g[r]=y),Je.set(c,g))}function Al(r,c,h){const m=Je.get(c)||{};for(let g in m)(r==null||g==r)&&(ti(g,c,m[g]),delete m[g]);r==null&&Je.delete(c)}let Qt=0,ul=0,ie=0,j=0,Ce=0,je=0,Ll=Ce,hl=je,Vt=ie,fl=j,_t=0,St=0,pt=0,Et=0;n.bbox={};let fs=!1,xn=!1,El=!1,pl=!1,Mn=!1,xt=!1;function ps(r,c,h){(h||r!=n.width||c!=n.height)&&Pi(r,c),Nl(!1),El=!0,xn=!0,Ol()}function Pi(r,c){n.width=Qt=ie=r,n.height=ul=j=c,Ce=je=0,Ta(),Da();let h=n.bbox;_t=h.left=kl(Ce*we,.5),St=h.top=kl(je*we,.5),pt=h.width=kl(ie*we,.5),Et=h.height=kl(j*we,.5)}const Sa=3;function xa(){let r=!1,c=0;for(;!r;){c++;let h=Ha(c),m=Ba(c);r=c==Sa||h&&m,r||(Pi(n.width,n.height),xn=!0)}}function Ma({width:r,height:c}){ps(r,c)}n.setSize=Ma;function Ta(){let r=!1,c=!1,h=!1,m=!1;W.forEach((g,y)=>{if(g.show&&g._show){let{side:M,_size:R}=g,B=M%2,I=g.label!=null?g.labelSize:0,U=R+I;U>0&&(B?(ie-=U,M==3?(Ce+=U,m=!0):h=!0):(j-=U,M==0?(je+=U,r=!0):c=!0))}}),_l[0]=r,_l[1]=h,_l[2]=c,_l[3]=m,ie-=ll[1]+ll[3],Ce+=ll[3],j-=ll[2]+ll[0],je+=ll[0]}function Da(){let r=Ce+ie,c=je+j,h=Ce,m=je;function g(y,M){switch(y){case 1:return r+=M,r-M;case 2:return c+=M,c-M;case 3:return h-=M,h+M;case 0:return m-=M,m+M}}W.forEach((y,M)=>{if(y.show&&y._show){let R=y.side;y._pos=g(R,y._size),y.label!=null&&(y._lpos=g(R,y.labelSize))}})}if(q.dataIdx==null){let r=q.hover,c=r.skip=new Set(r.skip??[]);c.add(void 0);let h=r.prox=de(r.prox),m=r.bias??(r.bias=0);q.dataIdx=(g,y,M,R)=>{if(y==0)return M;let B=M,I=h(g,y,M,R)??Me,U=I>=0&&I<Me,G=$.ori==0?ie:j,le=q.left,ge=t[0],me=t[y];if(c.has(me[M])){B=null;let ce=null,ee=null,J;if(m==0||m==-1)for(J=M;ce==null&&J-- >0;)c.has(me[J])||(ce=J);if(m==0||m==1)for(J=M;ee==null&&J++<me.length;)c.has(me[J])||(ee=J);if(ce!=null||ee!=null)if(U){let Ee=ce==null?-1/0:O(ge[ce],$,G,0),Be=ee==null?1/0:O(ge[ee],$,G,0),lt=le-Ee,be=Be-le;lt<=be?lt<=I&&(B=ce):be<=I&&(B=ee)}else B=ee==null?ce:ce==null?ee:M-ce<=ee-M?ce:ee}else U&&Ye(le-O(ge[M],$,G,0))>I&&(B=null);return B}}const ml=r=>{q.event=r};q.idxs=oe,q._lock=!1;let at=q.points;at.show=de(at.show),at.size=de(at.size),at.stroke=de(at.stroke),at.width=de(at.width),at.fill=de(at.fill);const Ut=n.focus=Ue({},e.focus||{alpha:.3},q.focus),$l=Ut.prox>=0,Fl=$l&&at.one;let Mt=[],Rl=[],Hl=[];function Ai(r,c){let h=at.show(n,c);if(h instanceof HTMLElement)return yt(h,Ec),yt(h,r.class),qt(h,-10,-10,ie,j),v.insertBefore(h,Mt[c]),h}function Li(r,c){if(i==1||c>0){let h=i==1&&C[r.scale].time,m=r.value;r.value=h?Wo(m)?Ko(ne,Yo(m,K)):m||ae:m||Gd,r.label=r.label||(h?Nd:Bd)}if(Fl||c>0){r.width=r.width==null?1:r.width,r.paths=r.paths||ou||Jc,r.fillTo=de(r.fillTo||Qd),r.pxAlign=+_e(r.pxAlign,x),r.pxRound=nr(r.pxAlign),r.stroke=de(r.stroke||null),r.fill=de(r.fill||null),r._stroke=r._fill=r._paths=r._focus=null;let h=Yd(ft(1,r.width),1),m=r.points=Ue({},{size:h,width:ft(1,h*.2),stroke:r.stroke,space:h*2,paths:ru,_stroke:null,_fill:null},r.points);m.show=de(m.show),m.filter=de(m.filter),m.fill=de(m.fill),m.stroke=de(m.stroke),m.paths=de(m.paths),m.pxAlign=r.pxAlign}if(ke){let h=Re(r,c);Z.splice(c,0,h[0]),ve.splice(c,0,h[1]),se.values.push(null)}if(Fe){oe.splice(c,0,null);let h=null;Fl?c==0&&(h=Ai(r,c)):c>0&&(h=Ai(r,c)),Mt.splice(c,0,h),Rl.splice(c,0,0),Hl.splice(c,0,0)}tt("addSeries",c)}function Ca(r,c){c=c??b.length,r=i==1?ri(r,c,Jo,tr):ri(r,c,{},er),b.splice(c,0,r),Li(b[c],c)}n.addSeries=Ca;function Pa(r){if(b.splice(r,1),ke){se.values.splice(r,1),ve.splice(r,1);let c=Z.splice(r,1)[0];Al(null,c.firstChild),c.remove()}Fe&&(oe.splice(r,1),Mt.splice(r,1)[0].remove(),Rl.splice(r,1),Hl.splice(r,1)),tt("delSeries",r)}n.delSeries=Pa;const _l=[!1,!1,!1,!1];function Aa(r,c){if(r._show=r.show,r.show){let h=r.side%2,m=C[r.scale];m==null&&(r.scale=h?b[1].scale:S,m=C[r.scale]);let g=m.time;r.size=de(r.size),r.space=de(r.space),r.rotate=de(r.rotate),al(r.incrs)&&r.incrs.forEach(M=>{!dl.has(M)&&dl.set(M,Ir(M))}),r.incrs=de(r.incrs||(m.distr==2?wd:g?z==1?yd:Sd:bl)),r.splits=de(r.splits||(g&&m.distr==1?Se:m.distr==3?ni:m.distr==4?Wd:zd)),r.stroke=de(r.stroke),r.grid.stroke=de(r.grid.stroke),r.ticks.stroke=de(r.ticks.stroke),r.border.stroke=de(r.border.stroke);let y=r.values;r.values=al(y)&&!al(y[0])?de(y):g?al(y)?Go(ne,jo(y,K)):Wo(y)?Td(ne,y):y||pe:y||Od,r.filter=de(r.filter||(m.distr>=3&&m.log==10?Ud:m.distr==3&&m.log==2?jd:zr)),r.font=rr(r.font),r.labelFont=rr(r.labelFont),r._size=r.size(n,null,c,0),r._space=r._rotate=r._incrs=r._found=r._splits=r._values=null,r._size>0&&(_l[c]=!0,r._el=Pt(Cc,p))}}function nn(r,c,h,m){let[g,y,M,R]=h,B=c%2,I=0;return B==0&&(R||y)&&(I=c==0&&!g||c==2&&!M?Ge(qo.size/3):0),B==1&&(g||M)&&(I=c==1&&!y||c==3&&!R?Ge(Zo.size/2):0),I}const Ei=n.padding=(e.padding||[nn,nn,nn,nn]).map(r=>de(_e(r,nn))),ll=n._padding=Ei.map((r,c)=>r(n,c,_l,0));let it,Qe=null,Ze=null;const Tn=i==1?b[0].idxs:null;let $t=null,sn=!1;function $i(r,c){if(t=r??[],n.data=n._data=t,i==2){it=0;for(let h=1;h<b.length;h++)it+=t[h][0].length}else{t.length==0&&(n.data=n._data=t=[[]]),$t=t[0],it=$t.length;let h=t;if(N==2){h=t.slice();let m=h[0]=Array(it);for(let g=0;g<it;g++)m[g]=g}n._data=t=h}if(Nl(!0),tt("setData"),N==2&&(El=!0),c!==!1){let h=$;h.auto(n,sn)?ms():sl(S,h.min,h.max),pl=pl||q.left>=0,xt=!0,Ol()}}n.setData=$i;function ms(){sn=!0;let r,c;i==1&&(it>0?(Qe=Tn[0]=0,Ze=Tn[1]=it-1,r=t[0][Qe],c=t[0][Ze],N==2?(r=Qe,c=Ze):r==c&&(N==3?[r,c]=os(r,r,$.log,!1):N==4?[r,c]=wi(r,r,$.log,!1):$.time?c=r+Ge(86400/z):[r,c]=Xn(r,c,vi,!0))):(Qe=Tn[0]=r=null,Ze=Tn[1]=c=null)),sl(S,r,c)}let Dn,Bl,_s,gs,ws,vs,ys,ks,bs,mt;function Fi(r,c,h,m,g,y){r??(r=xo),h??(h=ki),m??(m="butt"),g??(g=xo),y??(y="round"),r!=Dn&&(_.strokeStyle=Dn=r),g!=Bl&&(_.fillStyle=Bl=g),c!=_s&&(_.lineWidth=_s=c),y!=ws&&(_.lineJoin=ws=y),m!=vs&&(_.lineCap=vs=m),h!=gs&&_.setLineDash(gs=h)}function Ri(r,c,h,m){c!=Bl&&(_.fillStyle=Bl=c),r!=ys&&(_.font=ys=r),h!=ks&&(_.textAlign=ks=h),m!=bs&&(_.textBaseline=bs=m)}function Ss(r,c,h,m,g=0){if(m.length>0&&r.auto(n,sn)&&(c==null||c.min==null)){let y=_e(Qe,0),M=_e(Ze,m.length-1),R=h.min==null?Uc(m,y,M,g,r.distr==3):[h.min,h.max];r.min=Wt(r.min,h.min=R[0]),r.max=ft(r.max,h.max=R[1])}}const Hi={min:null,max:null};function La(){for(let m in C){let g=C[m];Y[m]==null&&(g.min==null||Y[S]!=null&&g.auto(n,sn))&&(Y[m]=Hi)}for(let m in C){let g=C[m];Y[m]==null&&g.from!=null&&Y[g.from]!=null&&(Y[m]=Hi)}Y[S]!=null&&Nl(!0);let r={};for(let m in Y){let g=Y[m];if(g!=null){let y=r[m]=Zl(C[m],Xc);if(g.min!=null)Ue(y,g);else if(m!=S||i==2)if(it==0&&y.from==null){let M=y.range(n,null,null,m);y.min=M[0],y.max=M[1]}else y.min=Me,y.max=-Me}}if(it>0){b.forEach((m,g)=>{if(i==1){let y=m.scale,M=Y[y];if(M==null)return;let R=r[y];if(g==0){let B=R.range(n,R.min,R.max,y);R.min=B[0],R.max=B[1],Qe=Bt(R.min,t[0]),Ze=Bt(R.max,t[0]),Ze-Qe>1&&(t[0][Qe]<R.min&&Qe++,t[0][Ze]>R.max&&Ze--),m.min=$t[Qe],m.max=$t[Ze]}else m.show&&m.auto&&Ss(R,M,m,t[g],m.sorted);m.idxs[0]=Qe,m.idxs[1]=Ze}else if(g>0&&m.show&&m.auto){let[y,M]=m.facets,R=y.scale,B=M.scale,[I,U]=t[g],G=r[R],le=r[B];G!=null&&Ss(G,Y[R],y,I,y.sorted),le!=null&&Ss(le,Y[B],M,U,M.sorted),m.min=M.min,m.max=M.max}});for(let m in r){let g=r[m],y=Y[m];if(g.from==null&&(y==null||y.min==null)){let M=g.range(n,g.min==Me?null:g.min,g.max==-Me?null:g.max,m);g.min=M[0],g.max=M[1]}}}for(let m in r){let g=r[m];if(g.from!=null){let y=r[g.from];if(y.min==null)g.min=g.max=null;else{let M=g.range(n,y.min,y.max,m);g.min=M[0],g.max=M[1]}}}let c={},h=!1;for(let m in r){let g=r[m],y=C[m];if(y.min!=g.min||y.max!=g.max){y.min=g.min,y.max=g.max;let M=y.distr;y._min=M==3?el(y.min):M==4?Ws(y.min,y.asinh):M==100?y.fwd(y.min):y.min,y._max=M==3?el(y.max):M==4?Ws(y.max,y.asinh):M==100?y.fwd(y.max):y.max,c[m]=h=!0}}if(h){b.forEach((m,g)=>{i==2?g>0&&c.y&&(m._paths=null):c[m.scale]&&(m._paths=null)});for(let m in c)El=!0,tt("setScale",m);Fe&&q.left>=0&&(pl=xt=!0)}for(let m in Y)Y[m]=null}function Ea(r){let c=li(Qe-1,0,it-1),h=li(Ze+1,0,it-1);for(;r[c]==null&&c>0;)c--;for(;r[h]==null&&h<it-1;)h++;return[c,h]}function $a(){if(it>0){let r=b.some(c=>c._focus)&&mt!=Ut.alpha;r&&(_.globalAlpha=mt=Ut.alpha),b.forEach((c,h)=>{if(h>0&&c.show&&(Bi(h,!1),Bi(h,!0),c._paths==null)){let m=mt;mt!=c.alpha&&(_.globalAlpha=mt=c.alpha);let g=i==2?[0,t[h][0].length-1]:Ea(t[h]);c._paths=c.paths(n,h,g[0],g[1]),mt!=m&&(_.globalAlpha=mt=m)}}),b.forEach((c,h)=>{if(h>0&&c.show){let m=mt;mt!=c.alpha&&(_.globalAlpha=mt=c.alpha),c._paths!=null&&Ni(h,!1);{let g=c._paths!=null?c._paths.gaps:null,y=c.points.show(n,h,Qe,Ze,g),M=c.points.filter(n,h,y,g);(y||M)&&(c.points._paths=c.points.paths(n,h,Qe,Ze,M),Ni(h,!0))}mt!=m&&(_.globalAlpha=mt=m),tt("drawSeries",h)}}),r&&(_.globalAlpha=mt=1)}}function Bi(r,c){let h=c?b[r].points:b[r];h._stroke=h.stroke(n,r),h._fill=h.fill(n,r)}function Ni(r,c){let h=c?b[r].points:b[r],{stroke:m,fill:g,clip:y,flags:M,_stroke:R=h._stroke,_fill:B=h._fill,_width:I=h.width}=h._paths;I=Te(I*we,3);let U=null,G=I%2/2;c&&B==null&&(B=I>0?"#fff":R);let le=h.pxAlign==1&&G>0;if(le&&_.translate(G,G),!c){let ge=_t-I/2,me=St-I/2,ce=pt+I,ee=Et+I;U=new Path2D,U.rect(ge,me,ce,ee)}c?xs(R,I,h.dash,h.cap,B,m,g,M,y):Fa(r,R,I,h.dash,h.cap,B,m,g,M,U,y),le&&_.translate(-G,-G)}function Fa(r,c,h,m,g,y,M,R,B,I,U){let G=!1;B!=0&&T.forEach((le,ge)=>{if(le.series[0]==r){let me=b[le.series[1]],ce=t[le.series[1]],ee=(me._paths||wn).band;al(ee)&&(ee=le.dir==1?ee[0]:ee[1]);let J,Ee=null;me.show&&ee&&Gc(ce,Qe,Ze)?(Ee=le.fill(n,ge)||y,J=me._paths.clip):ee=null,xs(c,h,m,g,Ee,M,R,B,I,U,J,ee),G=!0}}),G||xs(c,h,m,g,y,M,R,B,I,U)}const Oi=Xl|ii;function xs(r,c,h,m,g,y,M,R,B,I,U,G){Fi(r,c,h,m,g),(B||I||G)&&(_.save(),B&&_.clip(B),I&&_.clip(I)),G?(R&Oi)==Oi?(_.clip(G),U&&_.clip(U),Pn(g,M),Cn(r,y,c)):R&ii?(Pn(g,M),_.clip(G),Cn(r,y,c)):R&Xl&&(_.save(),_.clip(G),U&&_.clip(U),Pn(g,M),_.restore(),Cn(r,y,c)):(Pn(g,M),Cn(r,y,c)),(B||I||G)&&_.restore()}function Cn(r,c,h){h>0&&(c instanceof Map?c.forEach((m,g)=>{_.strokeStyle=Dn=g,_.stroke(m)}):c!=null&&r&&_.stroke(c))}function Pn(r,c){c instanceof Map?c.forEach((h,m)=>{_.fillStyle=Bl=m,_.fill(h)}):c!=null&&r&&_.fill(c)}function Ra(r,c,h,m){let g=W[r],y;if(m<=0)y=[0,0];else{let M=g._space=g.space(n,r,c,h,m),R=g._incrs=g.incrs(n,r,c,h,m,M);y=fu(c,h,R,m,M)}return g._found=y}function Ms(r,c,h,m,g,y,M,R,B,I){let U=M%2/2;x==1&&_.translate(U,U),Fi(R,M,B,I,R),_.beginPath();let G,le,ge,me,ce=g+(m==0||m==3?-y:y);h==0?(le=g,me=ce):(G=g,ge=ce);for(let ee=0;ee<r.length;ee++)c[ee]!=null&&(h==0?G=ge=r[ee]:le=me=r[ee],_.moveTo(G,le),_.lineTo(ge,me));_.stroke(),x==1&&_.translate(-U,-U)}function Ha(r){let c=!0;return W.forEach((h,m)=>{if(!h.show)return;let g=C[h.scale];if(g.min==null){h._show&&(c=!1,h._show=!1,Nl(!1));return}else h._show||(c=!1,h._show=!0,Nl(!1));let y=h.side,M=y%2,{min:R,max:B}=g,[I,U]=Ra(m,R,B,M==0?ie:j);if(U==0)return;let G=g.distr==2,le=h._splits=h.splits(n,m,R,B,I,U,G),ge=g.distr==2?le.map(J=>$t[J]):le,me=g.distr==2?$t[le[1]]-$t[le[0]]:I,ce=h._values=h.values(n,h.filter(n,ge,m,U,me),m,U,me);h._rotate=y==2?h.rotate(n,ce,m,U):0;let ee=h._size;h._size=At(h.size(n,ce,m,r)),ee!=null&&h._size!=ee&&(c=!1)}),c}function Ba(r){let c=!0;return Ei.forEach((h,m)=>{let g=h(n,m,_l,r);g!=ll[m]&&(c=!1),ll[m]=g}),c}function Na(){for(let r=0;r<W.length;r++){let c=W[r];if(!c.show||!c._show)continue;let h=c.side,m=h%2,g,y,M=c.stroke(n,r),R=h==0||h==3?-1:1,[B,I]=c._found;if(c.label!=null){let ut=c.labelGap*R,vt=Ge((c._lpos+ut)*we);Ri(c.labelFont[0],M,"center",h==2?un:So),_.save(),m==1?(g=y=0,_.translate(vt,Ge(St+Et/2)),_.rotate((h==3?-jn:jn)/2)):(g=Ge(_t+pt/2),y=vt);let vl=Nr(c.label)?c.label(n,r,B,I):c.label;_.fillText(vl,g,y),_.restore()}if(I==0)continue;let U=C[c.scale],G=m==0?pt:Et,le=m==0?_t:St,ge=c._splits,me=U.distr==2?ge.map(ut=>$t[ut]):ge,ce=U.distr==2?$t[ge[1]]-$t[ge[0]]:B,ee=c.ticks,J=c.border,Ee=ee.show?ee.size:0,Be=Ge(Ee*we),lt=Ge((c.alignTo==2?c._size-Ee-c.gap:c.gap)*we),be=c._rotate*-jn/180,Ne=A(c._pos*we),gt=(Be+lt)*R,dt=Ne+gt;y=m==0?dt:0,g=m==1?dt:0;let Tt=c.font[0],Ft=c.align==1?Yl:c.align==2?Ns:be>0?Yl:be<0?Ns:m==0?"center":h==3?Ns:Yl,Yt=be||m==1?"middle":h==2?un:So;Ri(Tt,M,Ft,Yt);let wt=c.font[1]*c.lineGap,Dt=ge.map(ut=>A(d(ut,U,G,le))),Rt=c._values;for(let ut=0;ut<Rt.length;ut++){let vt=Rt[ut];if(vt!=null){m==0?g=Dt[ut]:y=Dt[ut],vt=""+vt;let vl=vt.indexOf(` | |
| `)==-1?[vt]:vt.split(/\n/gm);for(let ht=0;ht<vl.length;ht++){let so=vl[ht];be?(_.save(),_.translate(g,y+ht*wt),_.rotate(be),_.fillText(so,0,0),_.restore()):_.fillText(so,g,y+ht*wt)}}}ee.show&&Ms(Dt,ee.filter(n,me,r,I,ce),m,h,Ne,Be,Te(ee.width*we,3),ee.stroke(n,r),ee.dash,ee.cap);let Kt=c.grid;Kt.show&&Ms(Dt,Kt.filter(n,me,r,I,ce),m,m==0?2:1,m==0?St:_t,m==0?Et:pt,Te(Kt.width*we,3),Kt.stroke(n,r),Kt.dash,Kt.cap),J.show&&Ms([Ne],[1],m==0?1:0,m==0?1:2,m==1?St:_t,m==1?Et:pt,Te(J.width*we,3),J.stroke(n,r),J.dash,J.cap)}tt("drawAxes")}function Nl(r){b.forEach((c,h)=>{h>0&&(c._paths=null,r&&(i==1?(c.min=null,c.max=null):c.facets.forEach(m=>{m.min=null,m.max=null})))})}let An=!1,Ts=!1,on=[];function Oa(){Ts=!1;for(let r=0;r<on.length;r++)tt(...on[r]);on.length=0}function Ol(){An||(od(zi),An=!0)}function za(r,c=!1){An=!0,Ts=c,r(n),zi(),c&&on.length>0&&queueMicrotask(Oa)}n.batch=za;function zi(){if(fs&&(La(),fs=!1),El&&(xa(),El=!1),xn){if($e(k,Yl,Ce),$e(k,un,je),$e(k,fn,ie),$e(k,pn,j),$e(v,Yl,Ce),$e(v,un,je),$e(v,fn,ie),$e(v,pn,j),$e(p,fn,Qt),$e(p,pn,ul),w.width=Ge(Qt*we),w.height=Ge(ul*we),W.forEach(({_el:r,_show:c,_size:h,_pos:m,side:g})=>{if(r!=null)if(c){let y=g===3||g===0?h:0,M=g%2==1;$e(r,M?"left":"top",m-y),$e(r,M?"width":"height",h),$e(r,M?"top":"left",M?je:Ce),$e(r,M?"height":"width",M?j:ie),ei(r,xl)}else yt(r,xl)}),Dn=Bl=_s=ws=vs=ys=ks=bs=gs=null,mt=1,cn(!0),Ce!=Ll||je!=hl||ie!=Vt||j!=fl){Nl(!1);let r=ie/Vt,c=j/fl;if(Fe&&!pl&&q.left>=0){q.left*=r,q.top*=c,zl&&qt(zl,Ge(q.left),0,ie,j),Wl&&qt(Wl,0,Ge(q.top),ie,j);for(let h=0;h<Mt.length;h++){let m=Mt[h];m!=null&&(Rl[h]*=r,Hl[h]*=c,qt(m,At(Rl[h]),At(Hl[h]),ie,j))}}if(Le.show&&!Mn&&Le.left>=0&&Le.width>0){Le.left*=r,Le.width*=r,Le.top*=c,Le.height*=c;for(let h in Es)$e(Ul,h,Le[h])}Ll=Ce,hl=je,Vt=ie,fl=j}tt("setSize"),xn=!1}Qt>0&&ul>0&&(_.clearRect(0,0,w.width,w.height),tt("drawClear"),E.forEach(r=>r()),tt("draw")),Le.show&&Mn&&(Ln(Le),Mn=!1),Fe&&pl&&(wl(null,!0,!1),pl=!1),se.show&&se.live&&xt&&(As(),xt=!1),f||(f=!0,n.status=1,tt("ready")),sn=!1,An=!1}n.redraw=(r,c)=>{El=c||!1,r!==!1?sl(S,$.min,$.max):Ol()};function Ds(r,c){let h=C[r];if(h.from==null){if(it==0){let m=h.range(n,c.min,c.max,r);c.min=m[0],c.max=m[1]}if(c.min>c.max){let m=c.min;c.min=c.max,c.max=m}if(it>1&&c.min!=null&&c.max!=null&&c.max-c.min<1e-16)return;r==S&&h.distr==2&&it>0&&(c.min=Bt(c.min,t[0]),c.max=Bt(c.max,t[0]),c.min==c.max&&c.max++),Y[r]=c,fs=!0,Ol()}}n.setScale=Ds;let Cs,Ps,zl,Wl,Wi,Ii,Il,Vl,Vi,Ui,Ae,He,nl=!1;const ot=q.drag;let Xe=ot.x,et=ot.y;Fe&&(q.x&&(Cs=Pt(Ac,v)),q.y&&(Ps=Pt(Lc,v)),$.ori==0?(zl=Cs,Wl=Ps):(zl=Ps,Wl=Cs),Ae=q.left,He=q.top);const Le=n.select=Ue({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Ul=Le.show?Pt(Pc,Le.over?v:k):null;function Ln(r,c){if(Le.show){for(let h in r)Le[h]=r[h],h in Es&&$e(Ul,h,r[h]);c!==!1&&tt("setSelect")}}n.setSelect=Ln;function Wa(r){if(b[r].show)ke&&ei(Z[r],xl);else if(ke&&yt(Z[r],xl),Fe){let h=Fl?Mt[0]:Mt[r];h!=null&&qt(h,-10,-10,ie,j)}}function sl(r,c,h){Ds(r,{min:c,max:h})}function jt(r,c,h,m){c.focus!=null&&Ga(r),c.show!=null&&b.forEach((g,y)=>{y>0&&(r==y||r==null)&&(g.show=c.show,Wa(y),i==2?(sl(g.facets[0].scale,null,null),sl(g.facets[1].scale,null,null)):sl(g.scale,null,null),Ol())}),h!==!1&&tt("setSeries",r,c),m&&dn("setSeries",n,r,c)}n.setSeries=jt;function Ia(r,c){Ue(T[r],c)}function Va(r,c){r.fill=de(r.fill||null),r.dir=_e(r.dir,-1),c=c??T.length,T.splice(c,0,r)}function Ua(r){r==null?T.length=0:T.splice(r,1)}n.addBand=Va,n.setBand=Ia,n.delBand=Ua;function ja(r,c){b[r].alpha=c,Fe&&Mt[r]!=null&&(Mt[r].style.opacity=c),ke&&Z[r]&&(Z[r].style.opacity=c)}let Zt,il,gl;const jl={focus:!0};function Ga(r){if(r!=gl){let c=r==null,h=Ut.alpha!=1;b.forEach((m,g)=>{if(i==1||g>0){let y=c||g==0||g==r;m._focus=c?null:y,h&&ja(g,y?1:Ut.alpha)}}),gl=r,h&&Ol()}}ke&&$l&&ct(Do,te,r=>{q._lock||(ml(r),gl!=null&&jt(null,jl,!0,Ie.setSeries))});function Gt(r,c,h){let m=C[c];h&&(r=r/we-(m.ori==1?je:Ce));let g=ie;m.ori==1&&(g=j,r=g-r),m.dir==-1&&(r=g-r);let y=m._min,M=m._max,R=r/g,B=y+(M-y)*R,I=m.distr;return I==3?Jl(10,B):I==4?Kc(B,m.asinh):I==100?m.bwd(B):B}function Ya(r,c){let h=Gt(r,S,c);return Bt(h,t[0],Qe,Ze)}n.valToIdx=r=>Bt(r,t[0]),n.posToIdx=Ya,n.posToVal=Gt,n.valToPos=(r,c,h)=>C[c].ori==0?o(r,C[c],h?pt:ie,h?_t:0):a(r,C[c],h?Et:j,h?St:0),n.setCursor=(r,c,h)=>{Ae=r.left,He=r.top,wl(null,c,h)};function ji(r,c){$e(Ul,Yl,Le.left=r),$e(Ul,fn,Le.width=c)}function Gi(r,c){$e(Ul,un,Le.top=r),$e(Ul,pn,Le.height=c)}let rn=$.ori==0?ji:Gi,an=$.ori==1?ji:Gi;function Ka(){if(ke&&se.live)for(let r=i==2?1:0;r<b.length;r++){if(r==0&&xe)continue;let c=se.values[r],h=0;for(let m in c)ve[r][h++].firstChild.nodeValue=c[m]}}function As(r,c){if(r!=null&&(r.idxs?r.idxs.forEach((h,m)=>{oe[m]=h}):Zc(r.idx)||oe.fill(r.idx),se.idx=oe[0]),ke&&se.live){for(let h=0;h<b.length;h++)(h>0||i==1&&!xe)&&qa(h,oe[h]);Ka()}xt=!1,c!==!1&&tt("setLegend")}n.setLegend=As;function qa(r,c){let h=b[r],m=r==0&&N==2?$t:t[r],g;xe?g=h.values(n,r,c)??qe:(g=h.value(n,c==null?null:m[c],r,c),g=g==null?qe:{_:g}),se.values[r]=g}function wl(r,c,h){Vi=Ae,Ui=He,[Ae,He]=q.move(n,Ae,He),q.left=Ae,q.top=He,Fe&&(zl&&qt(zl,Ge(Ae),0,ie,j),Wl&&qt(Wl,0,Ge(He),ie,j));let m,g=Qe>Ze;Zt=Me,il=null;let y=$.ori==0?ie:j,M=$.ori==1?ie:j;if(Ae<0||it==0||g){m=q.idx=null;for(let R=0;R<b.length;R++){let B=Mt[R];B!=null&&qt(B,-10,-10,ie,j)}$l&&jt(null,jl,!0,r==null&&Ie.setSeries),se.live&&(oe.fill(m),xt=!0)}else{let R,B,I;i==1&&(R=$.ori==0?Ae:He,B=Gt(R,S),m=q.idx=Bt(B,t[0],Qe,Ze),I=O(t[0][m],$,y,0));let U=-10,G=-10,le=0,ge=0,me=!0,ce="",ee="";for(let J=i==2?1:0;J<b.length;J++){let Ee=b[J],Be=oe[J],lt=Be==null?null:i==1?t[J][Be]:t[J][1][Be],be=q.dataIdx(n,J,m,B),Ne=be==null?null:i==1?t[J][be]:t[J][1][be];if(xt=xt||Ne!=lt||be!=Be,oe[J]=be,J>0&&Ee.show){let gt=be==null?-10:be==m?I:O(i==1?t[0][be]:t[J][0][be],$,y,0),dt=Ne==null?-10:Q(Ne,i==1?C[Ee.scale]:C[Ee.facets[1].scale],M,0);if($l&&Ne!=null){let Tt=$.ori==1?Ae:He,Ft=Ye(Ut.dist(n,J,be,dt,Tt));if(Ft<Zt){let Yt=Ut.bias;if(Yt!=0){let wt=Gt(Tt,Ee.scale),Dt=Ne>=0?1:-1,Rt=wt>=0?1:-1;Rt==Dt&&(Rt==1?Yt==1?Ne>=wt:Ne<=wt:Yt==1?Ne<=wt:Ne>=wt)&&(Zt=Ft,il=J)}else Zt=Ft,il=J}}if(xt||Fl){let Tt,Ft;$.ori==0?(Tt=gt,Ft=dt):(Tt=dt,Ft=gt);let Yt,wt,Dt,Rt,Kt,ut,vt=!0,vl=at.bbox;if(vl!=null){vt=!1;let ht=vl(n,J);Dt=ht.left,Rt=ht.top,Yt=ht.width,wt=ht.height}else Dt=Tt,Rt=Ft,Yt=wt=at.size(n,J);if(ut=at.fill(n,J),Kt=at.stroke(n,J),Fl)J==il&&Zt<=Ut.prox&&(U=Dt,G=Rt,le=Yt,ge=wt,me=vt,ce=ut,ee=Kt);else{let ht=Mt[J];ht!=null&&(Rl[J]=Dt,Hl[J]=Rt,Fo(ht,Yt,wt,vt),Eo(ht,ut,Kt),qt(ht,At(Dt),At(Rt),ie,j))}}}}if(Fl){let J=Ut.prox,Ee=gl==null?Zt<=J:Zt>J||il!=gl;if(xt||Ee){let Be=Mt[0];Be!=null&&(Rl[0]=U,Hl[0]=G,Fo(Be,le,ge,me),Eo(Be,ce,ee),qt(Be,At(U),At(G),ie,j))}}}if(Le.show&&nl)if(r!=null){let[R,B]=Ie.scales,[I,U]=Ie.match,[G,le]=r.cursor.sync.scales,ge=r.cursor.drag;if(Xe=ge._x,et=ge._y,Xe||et){let{left:me,top:ce,width:ee,height:J}=r.select,Ee=r.scales[G].ori,Be=r.posToVal,lt,be,Ne,gt,dt,Tt=R!=null&&I(R,G),Ft=B!=null&&U(B,le);Tt&&Xe?(Ee==0?(lt=me,be=ee):(lt=ce,be=J),Ne=C[R],gt=O(Be(lt,G),Ne,y,0),dt=O(Be(lt+be,G),Ne,y,0),rn(Wt(gt,dt),Ye(dt-gt))):rn(0,y),Ft&&et?(Ee==1?(lt=me,be=ee):(lt=ce,be=J),Ne=C[B],gt=Q(Be(lt,le),Ne,M,0),dt=Q(Be(lt+be,le),Ne,M,0),an(Wt(gt,dt),Ye(dt-gt))):an(0,M)}else $s()}else{let R=Ye(Vi-Wi),B=Ye(Ui-Ii);if($.ori==1){let le=R;R=B,B=le}Xe=ot.x&&R>=ot.dist,et=ot.y&&B>=ot.dist;let I=ot.uni;I!=null?Xe&&et&&(Xe=R>=I,et=B>=I,!Xe&&!et&&(B>R?et=!0:Xe=!0)):ot.x&&ot.y&&(Xe||et)&&(Xe=et=!0);let U,G;Xe&&($.ori==0?(U=Il,G=Ae):(U=Vl,G=He),rn(Wt(U,G),Ye(G-U)),et||an(0,M)),et&&($.ori==1?(U=Il,G=Ae):(U=Vl,G=He),an(Wt(U,G),Ye(G-U)),Xe||rn(0,y)),!Xe&&!et&&(rn(0,0),an(0,0))}if(ot._x=Xe,ot._y=et,r==null){if(h){if(no!=null){let[R,B]=Ie.scales;Ie.values[0]=R!=null?Gt($.ori==0?Ae:He,R):null,Ie.values[1]=B!=null?Gt($.ori==1?Ae:He,B):null}dn(Os,n,Ae,He,ie,j,m)}if($l){let R=h&&Ie.setSeries,B=Ut.prox;gl==null?Zt<=B&&jt(il,jl,!0,R):Zt>B?jt(null,jl,!0,R):il!=gl&&jt(il,jl,!0,R)}}xt&&(se.idx=m,As()),c!==!1&&tt("setCursor")}let ol=null;Object.defineProperty(n,"rect",{get(){return ol==null&&cn(!1),ol}});function cn(r=!1){r?ol=null:(ol=v.getBoundingClientRect(),tt("syncRect",ol))}function Yi(r,c,h,m,g,y,M){q._lock||nl&&r!=null&&r.movementX==0&&r.movementY==0||(Ls(r,c,h,m,g,y,M,!1,r!=null),r!=null?wl(null,!0,!0):wl(c,!0,!1))}function Ls(r,c,h,m,g,y,M,R,B){if(ol==null&&cn(!1),ml(r),r!=null)h=r.clientX-ol.left,m=r.clientY-ol.top;else{if(h<0||m<0){Ae=-10,He=-10;return}let[I,U]=Ie.scales,G=c.cursor.sync,[le,ge]=G.values,[me,ce]=G.scales,[ee,J]=Ie.match,Ee=c.axes[0].side%2==1,Be=$.ori==0?ie:j,lt=$.ori==1?ie:j,be=Ee?y:g,Ne=Ee?g:y,gt=Ee?m:h,dt=Ee?h:m;if(me!=null?h=ee(I,me)?d(le,C[I],Be,0):-10:h=Be*(gt/be),ce!=null?m=J(U,ce)?d(ge,C[U],lt,0):-10:m=lt*(dt/Ne),$.ori==1){let Tt=h;h=m,m=Tt}}B&&(c==null||c.cursor.event.type==Os)&&((h<=1||h>=ie-1)&&(h=kl(h,ie)),(m<=1||m>=j-1)&&(m=kl(m,j))),R?(Wi=h,Ii=m,[Il,Vl]=q.move(n,h,m)):(Ae=h,He=m)}const Es={width:0,height:0,left:0,top:0};function $s(){Ln(Es,!1)}let Ki,qi,Ji,Qi;function Zi(r,c,h,m,g,y,M){nl=!0,Xe=et=ot._x=ot._y=!1,Ls(r,c,h,m,g,y,M,!0,!1),r!=null&&(ct(zs,Zs,Xi,!1),dn(Mo,n,Il,Vl,ie,j,null));let{left:R,top:B,width:I,height:U}=Le;Ki=R,qi=B,Ji=I,Qi=U}function Xi(r,c,h,m,g,y,M){nl=ot._x=ot._y=!1,Ls(r,c,h,m,g,y,M,!1,!0);let{left:R,top:B,width:I,height:U}=Le,G=I>0||U>0,le=Ki!=R||qi!=B||Ji!=I||Qi!=U;if(G&&le&&Ln(Le),ot.setScale&&G&&le){let ge=R,me=I,ce=B,ee=U;if($.ori==1&&(ge=B,me=U,ce=R,ee=I),Xe&&sl(S,Gt(ge,S),Gt(ge+me,S)),et)for(let J in C){let Ee=C[J];J!=S&&Ee.from==null&&Ee.min!=Me&&sl(J,Gt(ce+ee,J),Gt(ce,J))}$s()}else q.lock&&(q._lock=!q._lock,wl(c,!0,r!=null));r!=null&&(Al(zs,Zs),dn(zs,n,Ae,He,ie,j,null))}function Ja(r,c,h,m,g,y,M){if(q._lock)return;ml(r);let R=nl;if(nl){let B=!0,I=!0,U=10,G,le;$.ori==0?(G=Xe,le=et):(G=et,le=Xe),G&&le&&(B=Ae<=U||Ae>=ie-U,I=He<=U||He>=j-U),G&&B&&(Ae=Ae<Il?0:ie),le&&I&&(He=He<Vl?0:j),wl(null,!0,!0),nl=!1}Ae=-10,He=-10,oe.fill(null),wl(null,!0,!0),R&&(nl=R)}function eo(r,c,h,m,g,y,M){q._lock||(ml(r),ms(),$s(),r!=null&&dn(Co,n,Ae,He,ie,j,null))}function to(){W.forEach(pu),ps(n.width,n.height,!0)}Ml(Zn,ql,to);const Gl={};Gl.mousedown=Zi,Gl.mousemove=Yi,Gl.mouseup=Xi,Gl.dblclick=eo,Gl.setSeries=(r,c,h,m)=>{let g=Ie.match[2];h=g(n,c,h),h!=-1&&jt(h,m,!0,!1)},Fe&&(ct(Mo,v,Zi),ct(Os,v,Yi),ct(To,v,r=>{ml(r),cn(!1)}),ct(Do,v,Ja),ct(Co,v,eo),oi.add(n),n.syncRect=cn);const En=n.hooks=e.hooks||{};function tt(r,c,h){Ts?on.push([r,c,h]):r in En&&En[r].forEach(m=>{m.call(null,n,c,h)})}(e.plugins||[]).forEach(r=>{for(let c in r.hooks)En[c]=(En[c]||[]).concat(r.hooks[c])});const lo=(r,c,h)=>h,Ie=Ue({key:null,setSeries:!1,filters:{pub:Oo,sub:Oo},scales:[S,b[1]?b[1].scale:null],match:[zo,zo,lo],values:[null,null]},q.sync);Ie.match.length==2&&Ie.match.push(lo),q.sync=Ie;const no=Ie.key,Fs=aa(no);function dn(r,c,h,m,g,y,M){Ie.filters.pub(r,c,h,m,g,y,M)&&Fs.pub(r,c,h,m,g,y,M)}Fs.sub(n);function Qa(r,c,h,m,g,y,M){Ie.filters.sub(r,c,h,m,g,y,M)&&Gl[r](null,c,h,m,g,y,M)}n.pub=Qa;function Za(){Fs.unsub(n),oi.delete(n),Je.clear(),ti(Zn,ql,to),u.remove(),te==null||te.remove(),tt("destroy")}n.destroy=Za;function Rs(){tt("init",e,t),$i(t||e.data,!1),Y[S]?Ds(S,Y[S]):ms(),Mn=Le.show&&(Le.width>0||Le.height>0),pl=xt=!0,ps(e.width,e.height)}return b.forEach(Li),W.forEach(Aa),l?l instanceof HTMLElement?(l.appendChild(u),Rs()):l(n,Rs):Rs(),n}nt.assign=Ue;nt.fmtNum=yi;nt.rangeNum=Xn;nt.rangeLog=os;nt.rangeAsinh=wi;nt.orient=Pl;nt.pxRatio=we;nt.join=id;nt.fmtDate=bi,nt.tzDate=_d;nt.sync=aa;{nt.addGap=Zd,nt.clipGaps=cs;let e=nt.paths={points:pa};e.linear=_a,e.stepped=tu,e.bars=lu,e.spline=su}const yl=e=>getComputedStyle(document.documentElement).getPropertyValue(e).trim();function js(e,t){if(e.startsWith("#")){const l=parseInt(e.slice(1),16);return`rgba(${l>>16&255},${l>>8&255},${l&255},${t})`}return e}function bn({lines:e,range:t,log:l,markers:n=[],height:i=360,stacked:o,bars:a,partialLast:d,endLabel:f,onZoom:u,valueLabel:w,tipDate:_,shade:p}){const k=Sl(null),v=Sl(null),x=Sl(null),A=Sl(0),z=Sl(null),b=(C,T,S)=>{!Number.isFinite(T)||!Number.isFinite(S)||S<=T||(z.current=[T,S],C.setScale("x",{min:T,max:S}))},W=e.some(C=>C.v.filter(T=>T!=null).length>=2);return Lt(()=>{const C=k.current;if(!e.length||!W)return;const T=yl("--rule-2"),S=yl("--ink"),V=yl("--mark"),E=yl("--surface"),D=yl("--font-mono"),L=`12px ${D}`,$=yl("--ink-2"),N=devicePixelRatio,O=!!a&&e.length===1&&!o,Q=!o&&!O;let Y;e.length===1?Y=[e[0].t,e[0].v]:Y=nt.join(e.map(H=>[H.t,H.v]));const ne=Y;let K=Y;if(o){const H=Y.slice();for(let P=2;P<H.length;P++)H[P]=H[P].map((Z,ve)=>(Z??0)+(H[P-1][ve]??0));K=H}const Se=Q?[K[0],...K.slice(1).flatMap(H=>[H,H])]:K,pe=H=>Q?2+H*2:1+H,ae=e.length===1,oe=[{}];e.forEach(H=>{const P=H.width??(ae?3:2.5);if(O){oe.push({label:H.label,stroke:S,width:2,fill:H.color,paths:nt.paths.bars({size:[.74,70,3],radius:.18}),points:{show:!1}});return}if(o){oe.push({label:H.label,stroke:S,width:1,fill:js(H.color,.92),spanGaps:!0,points:{show:!1}});return}oe.push({label:"",stroke:S,width:P+3,spanGaps:!0,points:{show:!1},fill:H.fill?js(H.color,.14):void 0}),oe.push({label:H.label,stroke:H.color,width:P,dash:H.dash?[5,4]:void 0,spanGaps:!0,points:{show:!1}})});const se=H=>{const{ctx:P}=H;P.save();for(const re of n){const xe=Math.round(H.valToPos(re.t,"x",!0));if(xe<H.bbox.left||xe>H.bbox.left+H.bbox.width)continue;P.strokeStyle=S,P.globalAlpha=.55,P.lineWidth=1.5*N,P.setLineDash([4*N,4*N]),P.beginPath(),P.moveTo(xe,H.bbox.top),P.lineTo(xe,H.bbox.top+H.bbox.height),P.stroke(),P.setLineDash([]),P.globalAlpha=1,P.font=`600 ${11*N}px ${D}`;const qe=P.measureText(re.label).width+10*N,We=18*N;P.fillStyle=V,P.beginPath(),P.roundRect(xe-qe/2,H.bbox.top-We+4*N,qe,We,6*N),P.fill(),P.lineWidth=2*N,P.stroke(),P.fillStyle=S,P.textAlign="center",P.textBaseline="middle",P.fillText(re.label,xe,H.bbox.top-We/2+4*N)}const Z=H.data[0],ve=H.data[pe(0)];if(O&&d&&Z.length>1){const re=Z.length-1,xe=ve[re];if(xe!=null){const qe=H.valToPos(Z[re-1],"x",!0),We=H.valToPos(Z[re],"x",!0),rt=Math.min((We-qe)*.74,70*N),st=H.valToPos(xe,"y",!0),Re=H.valToPos(0,"y",!0);P.beginPath(),P.rect(We-rt/2,st,rt,Re-st),P.clip(),P.strokeStyle=E,P.lineWidth=3*N;for(let Je=-Re;Je<Re;Je+=8*N)P.beginPath(),P.moveTo(We-rt/2+Je,Re),P.lineTo(We-rt/2+Je+(Re-st),st),P.stroke()}}if(P.restore(),f&&ae&&!O&&!o){let re=ve.length-1;for(;re>=0&&ve[re]==null;)re--;if(re>=0&&Z[re]>=H.scales.x.min&&Z[re]<=H.scales.x.max){const xe=H.valToPos(Z[re],"x",!0),qe=H.valToPos(ve[re],"y",!0);P.save(),P.fillStyle=e[0].color,P.strokeStyle=S,P.lineWidth=2.5*N,P.beginPath(),P.arc(xe,qe,6*N,0,Math.PI*2),P.fill(),P.stroke();const We=w?w(ve[re]):ue(ve[re]);P.font=`600 ${12*N}px ${D}`;const rt=P.measureText(We).width+14*N,st=22*N,Re=Math.max(H.bbox.left,xe-rt-12*N),Je=Math.max(H.bbox.top,qe-st-10*N);P.fillStyle=E,P.beginPath(),P.roundRect(Re,Je,rt,st,7*N),P.fill(),P.lineWidth=2*N,P.stroke(),P.fillStyle=S,P.textAlign="left",P.textBaseline="middle",P.fillText(We,Re+7*N,Je+st/2+.5*N),P.restore()}}},q={width:C.clientWidth,height:i,padding:[22,10,0,0],cursor:{drag:{x:!0,y:!1,setScale:!0},y:!1,points:O||o?{show:!1}:{size:(H,P)=>Q&&P%2===1?0:12,width:2.5,stroke:(H,P)=>Q&&P%2===1?"transparent":S,fill:(H,P)=>Q&&P%2===1?"transparent":oe[P].stroke}},legend:{show:!1},scales:{x:{time:!0},y:{distr:l?3:1,range:(H,P,Z)=>[l?Math.max(1,P):0,Z*1.1||1]}},axes:[{stroke:$,font:L,grid:{show:!1},ticks:{show:!0,stroke:S,width:2,size:5},gap:6,border:{show:!0,stroke:S,width:2},values:[[86400*365,"{YYYY}",null,null,null,null,null,null,1],[86400*28,"{MMM}",` | |
| {YYYY}`,null,null,null,null,null,1],[86400,"{MMM} {D}",` | |
| {YYYY}`,null,"{D}",null,"{MMM} {D}",null,1]]},{stroke:$,font:L,size:60,gap:8,grid:{stroke:T,width:1.5,dash:[4,5]},ticks:{show:!1},values:(H,P)=>P.map(Z=>Z==null?"":ue(Z))}],series:oe,bands:o?e.slice(1).map((H,P)=>({series:[P+2,P+1]})):void 0,hooks:{drawClear:[H=>{if(!(p!=null&&p.days.length))return;const{ctx:P}=H;P.save(),P.fillStyle=js(yl("--ink")||"#1b1b1f",.09);for(const Z of p.days){const ve=H.valToPos(Z-43200,"x",!0),re=H.valToPos(Z+43200,"x",!0);re<H.bbox.left||ve>H.bbox.left+H.bbox.width||P.fillRect(ve,H.bbox.top,Math.max(re-ve,2*N),H.bbox.height)}P.restore()}],draw:[se],setCursor:[H=>{const P=v.current,Z=H.cursor.idx;if(Z==null||H.cursor.left==null||H.cursor.left<0){P.style.display="none";return}const ve=e.map((Re,Je)=>({l:Re,i:Je,v:ne[Je+1][Z]})).filter(Re=>Re.v!=null);if(!ve.length){P.style.display="none";return}const re=Se[0][Z],xe=_?_(re):zt(new Date(re*1e3),{weekday:"short",month:"short",day:"numeric",year:"numeric"}),qe=p!=null&&p.days.includes(re)?`<div class="d">${ar(p.note)}</div>`:"";P.innerHTML=`<div class="d">${xe}</div>`+qe+ve.map(Re=>`<div class="r"><span><i class="sw" style="background:${Re.l.color}"></i>${e.length>1?ar(Re.l.label):""}</span><b>${w?w(Re.v):X(Re.v)}</b></div>`).join(""),P.style.display="block";const We=H.cursor.left+H.bbox.left/N,rt=Math.min(...ve.map(Re=>H.valToPos(Se[pe(Re.i)][Z],"y")))+H.bbox.top/N,st=P.offsetWidth/2;P.style.left=Math.min(Math.max(We,st),C.clientWidth-st)+"px",P.style.top=Math.max(rt-14,P.offsetHeight)+"px"}],setScale:[(H,P)=>{if(P!=="x"||!u)return;const Z=z.current,ve=H.scales.x.min,re=H.scales.x.max;Z&&Math.abs(Z[0]-ve)<1&&Math.abs(Z[1]-re)<1||u([ve+A.current,re-A.current])}]}},ke=new nt(q,Se,C);x.current=ke,A.current=O&&Se[0].length>1?(Se[0][1]-Se[0][0])/2:0;const Fe=A.current;t?b(ke,t[0]-Fe,t[1]+Fe):Fe&&b(ke,Se[0][0]-Fe,Se[0][Se[0].length-1]+Fe);const F=new ResizeObserver(()=>ke.setSize({width:C.clientWidth,height:i}));F.observe(C);const te=()=>v.current.style.display="none";return C.addEventListener("mouseleave",te),()=>{F.disconnect(),C.removeEventListener("mouseleave",te),ke.destroy(),x.current=null}},[e,l,n,i,o,a,d,f,p]),Lt(()=>{const C=x.current;if(!C||!C.data[0].length)return;const T=C.data[0],S=A.current;t?b(C,t[0]-S,t[1]+S):b(C,T[0]-S,T[T.length-1]+S)},[t]),s("div",{class:"chart-box",children:[!W&&s("div",{class:"chart-empty",style:{height:i},children:"Not enough days yet: the chart fills in as new daily snapshots come in."}),s("div",{ref:k,onDblClick:()=>u==null?void 0:u(null)}),s("div",{ref:v,class:"tip",style:{display:"none"}})]})}function ar(e){return e.replace(/[&<>"]/g,t=>({"&":"&","<":"<",">":">",'"':"""})[t])}function ya({v:e,w:t=96,h:l=28,color:n="var(--signal)"}){if(!e||e.length<2)return s("svg",{width:t,height:l});const i=Math.max(...e)||1,o=e.map((d,f)=>`${(f/(e.length-1)*(t-6)+3).toFixed(1)},${(l-4-d/i*(l-8)).toFixed(1)}`),a=o[o.length-1].split(",");return s("svg",{width:t,height:l,viewBox:`0 0 ${t} ${l}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:[s("path",{d:`M${o.join(" L")} L${t-3},${l} L3,${l}Z`,fill:n,opacity:"0.16"}),s("path",{d:`M${o.join(" L")}`,fill:"none",stroke:"var(--ink)","stroke-width":"4","stroke-linejoin":"round","stroke-linecap":"round"}),s("path",{d:`M${o.join(" L")}`,fill:"none",stroke:n,"stroke-width":"2","stroke-linejoin":"round","stroke-linecap":"round"}),s("circle",{cx:a[0],cy:a[1],r:"3.5",fill:n,stroke:"var(--ink)","stroke-width":"2"})]})}function mu({route:e}){var x,A,z,b,W,C,T,S,V,E;const t=e.author,[l,n]=he(null),[i,o]=he(null),[a,d]=he("weekly"),[f,u]=he(30),[w,_]=he("models");Lt(()=>{n(null),o(null),Jt.author(t).then(D=>{var L;n(D),_(D.models.length?"models":(L=D.datasets)!=null&&L.length?"datasets":"spaces"),document.title=`${t} on Hugging Face: downloads and rankings · Model Pulse`}).catch(D=>o(D.message))},[t]);const p=Ot(()=>{if(!l)return[];const D=getComputedStyle(document.documentElement).getPropertyValue("--c1").trim(),L=l.series;if(a==="weekly"){const N=Jn(L.day,L.dl_all),O=$r(N.t,N.v);return[{label:t,color:D,t:O.t,v:O.v}]}if(a==="daily"){const N=Jn(L.day,L.dl_all);return[{label:t,color:D,t:N.t,v:fi(N.v,7),fill:!0}]}const $=Un(L.day,a==="month"?L.dl30:L.dl_all);return[{label:t,color:D,t:$.t,v:$.v,fill:!0}]},[l,a]);if(i)return s("div",{class:"wrap err",children:[s("h1",{children:["Nothing found for ",t]}),s("p",{class:"muted",children:i})]});if(!l)return s("div",{class:"wrap hero",children:[s("div",{class:"crumbs",style:{visibility:"hidden"},children:s("span",{class:"chip",children:"loading"})}),s("h1",{class:"model-name",children:t}),s("div",{class:"skeleton",style:{marginTop:24}})]});const k=l.model_totals,v=k?{all:k.dl_all??0,m30:k.dl30??0,w:k.dl_7d??0,likes:k.likes??0,n:k.models}:l.models.reduce((D,L)=>({...D,all:D.all+(L.dl_all??0),m30:D.m30+(L.dl30??0),w:D.w+(L.dl_7d??0),likes:D.likes+(L.likes??0)}),{all:0,m30:0,w:0,likes:0,n:l.models.length});return s(fe,{children:[s("div",{class:"wrap hero",children:[s("div",{class:"crumbs",children:[l.models.length>0&&s("span",{class:"chip",children:[X(v.n)," tracked models"]}),!!((x=l.totals)!=null&&x.datasets)&&s("span",{class:"chip",children:[X(l.totals.datasets)," datasets"]}),!!((A=l.totals)!=null&&A.spaces)&&s("span",{class:"chip",children:[X(l.totals.spaces)," Spaces"]}),s("a",{class:"chip",href:`https://huggingface.co/${t}`,target:"_blank",rel:"noopener",children:"Open on Hugging Face ↗"}),s("a",{class:"chip chip-hot",href:Oe({view:"wrapped",author:t}),onClick:D=>{D.preventDefault(),Pe({view:"wrapped",author:t})},children:["See ",t,"'s Wrapped"]})]}),s("h1",{class:"model-name",children:t}),l.models.length>0?s(fe,{children:[s("div",{class:"card stats",style:{padding:0},children:[s("div",{class:"fig fig-main",children:[s("div",{class:"num",children:X(v.all)}),s("div",{class:"label",children:"downloads all time, across all models"})]}),s("div",{class:"fig",children:[s("div",{class:"val",children:ue(v.m30)}),s("div",{class:"label",children:"last 30 days"})]}),s("div",{class:"fig",children:[s("div",{class:"val",children:ue(v.w)}),s("div",{class:"label",children:"last 7 days"})]}),s("div",{class:"fig",children:[s("div",{class:"val",children:ue(v.likes)}),s("div",{class:"label",children:"likes"})]})]}),s("div",{class:"card chart-card",children:[s("div",{class:"chart-bar",children:s("div",{class:"left",children:s("div",{class:"seg",role:"group","aria-label":"Metric",children:[s("button",{"aria-pressed":a==="weekly",onClick:()=>d("weekly"),children:"Weekly"}),s("button",{"aria-pressed":a==="daily",onClick:()=>d("daily"),children:"Daily"}),s("button",{"aria-pressed":a==="month",onClick:()=>d("month"),children:"Rolling 30 days"}),s("button",{"aria-pressed":a==="total",onClick:()=>d("total"),children:"All time"})]})})}),s(bn,{lines:p,height:340,bars:a==="weekly",endLabel:a!=="weekly",tipDate:a==="weekly"?D=>`Week of ${zt(new Date((D-pi/2)*1e3),{month:"short",day:"numeric",year:"numeric"})}`:void 0})]})]}):s("div",{class:"card stats",style:{padding:0},children:[s("div",{class:"fig fig-main",children:[s("div",{class:"num",children:X(((z=l.totals)==null?void 0:z.datasets_dl30)??0)}),s("div",{class:"label",children:"dataset downloads, last 30 days"})]}),s("div",{class:"fig",children:[s("div",{class:"val",children:X(((b=l.totals)==null?void 0:b.datasets)??0)}),s("div",{class:"label",children:"datasets"})]}),s("div",{class:"fig",children:[s("div",{class:"val",children:X(((W=l.totals)==null?void 0:W.spaces)??0)}),s("div",{class:"label",children:"Spaces"})]}),s("div",{class:"fig",children:[s("div",{class:"val",children:ue(((C=l.totals)==null?void 0:C.spaces_likes)??0)}),s("div",{class:"label",children:"Space likes"})]})]})]}),s("section",{class:"section",children:s("div",{class:"wrap",children:s("div",{class:"card",children:[s("div",{class:"seg repo-tabs",role:"tablist","aria-label":`What ${t} publishes`,children:[l.models.length>0&&s("button",{role:"tab","aria-selected":w==="models",onClick:()=>{_("models"),u(30)},children:"Models"}),!!((T=l.datasets)!=null&&T.length)&&s("button",{role:"tab","aria-selected":w==="datasets",onClick:()=>{_("datasets"),u(30)},children:["Datasets ",X((S=l.totals)==null?void 0:S.datasets)]}),!!((V=l.spaces)!=null&&V.length)&&s("button",{role:"tab","aria-selected":w==="spaces",onClick:()=>{_("spaces"),u(30)},children:["Spaces ",X((E=l.totals)==null?void 0:E.spaces)]})]}),w==="models"&&s(fe,{children:[s("div",{class:"section-head",children:s("div",{children:[s("h2",{children:["Models by ",t]}),s("p",{children:"Sorted by downloads in the last 30 days."})]})}),s("div",{class:"table-scroll",children:s("table",{class:"list",children:[s("thead",{children:s("tr",{children:[s("th",{children:"Model"}),s("th",{children:"This week"}),s("th",{children:"Change"}),s("th",{children:"30 days"}),s("th",{children:"All time"}),s("th",{children:"Likes"})]})}),s("tbody",{children:l.models.slice(0,f).map(D=>s("tr",{children:[s("td",{class:"name",children:[s("a",{href:Oe({model:D.id}),onClick:L=>{L.preventDefault(),Pe({model:D.id})},children:D.id.split("/").slice(1).join("/")}),s("span",{class:"sub",children:[It(D.pipeline_tag),Pr(D.params)].filter(Boolean).join(", ")})]}),s("td",{children:s("b",{children:ue(D.dl_7d)})}),s("td",{class:D.growth_7d==null?"muted":D.growth_7d>=0?"up":"down",children:cl(D.growth_7d)}),s("td",{children:ue(D.dl30)}),s("td",{children:ue(D.dl_all)}),s("td",{children:ue(D.likes)})]},D.id))})]})}),l.models.length>f&&s("button",{class:"btn",style:{marginTop:16},onClick:()=>u(f+30),children:"Show 30 more"})]}),w==="datasets"&&l.datasets&&s(fe,{children:[s("div",{class:"section-head",children:s("div",{children:[s("h2",{children:["Datasets by ",t]}),s("p",{children:"Sorted by downloads in the last 30 days."})]})}),s("div",{class:"table-scroll",children:s("table",{class:"list",children:[s("thead",{children:s("tr",{children:[s("th",{children:"Dataset"}),s("th",{children:"This week"}),s("th",{children:"Change"}),s("th",{children:"30 days"}),s("th",{children:"All time"}),s("th",{children:"Models trained on it"})]})}),s("tbody",{children:l.datasets.slice(0,f).map(D=>s("tr",{children:[s("td",{class:"name",children:[s("a",{href:Oe({dataset:D.id}),onClick:L=>{L.preventDefault(),Pe({dataset:D.id})},children:D.id.split("/").slice(1).join("/")}),s("span",{class:"sub",children:[D.pipeline_tag?It(D.pipeline_tag):null,D.size].filter(Boolean).join(", ")})]}),s("td",{children:s("b",{children:ue(D.dl_7d)})}),s("td",{class:D.growth_7d==null?"muted":D.growth_7d>=0?"up":"down",children:cl(D.growth_7d)}),s("td",{children:ue(D.dl30)}),s("td",{children:ue(D.dl_all)}),s("td",{children:D.used_by_models?X(D.used_by_models):"–"})]},D.id))})]})}),l.datasets.length>f&&s("button",{class:"btn",style:{marginTop:16},onClick:()=>u(f+30),children:"Show 30 more"})]}),w==="spaces"&&l.spaces&&s(fe,{children:[s("div",{class:"section-head",children:s("div",{children:[s("h2",{children:["Spaces by ",t]}),s("p",{children:"Sorted by likes. The Hub doesn't publish visits for Spaces."})]})}),s("div",{class:"table-scroll",children:s("table",{class:"list",children:[s("thead",{children:s("tr",{children:[s("th",{children:"Space"}),s("th",{children:"Likes this week"}),s("th",{children:"30 days"}),s("th",{children:"Likes"}),s("th",{children:"SDK"})]})}),s("tbody",{children:l.spaces.slice(0,f).map(D=>s("tr",{children:[s("td",{class:"name",children:[s("a",{href:Oe({space:D.id}),onClick:L=>{L.preventDefault(),Pe({space:D.id})},children:[D.emoji?`${D.emoji} `:"",D.title||D.id.split("/").slice(1).join("/")]}),s("span",{class:"sub",children:D.id})]}),s("td",{children:s("b",{children:["+",X(D.likes_7d)]})}),s("td",{children:["+",X(D.likes_30d)]}),s("td",{children:ue(D.likes)}),s("td",{class:"muted",children:D.sdk??"–"})]},D.id))})]})}),l.spaces.length>f&&s("button",{class:"btn",style:{marginTop:16},onClick:()=>u(f+30),children:"Show 30 more"})]})]})})})]})}const ka=({size:e=32})=>s("svg",{width:e,height:e,viewBox:"0 0 32 32","aria-hidden":"true",children:[s("rect",{x:"1.5",y:"1.5",width:"29",height:"29",rx:"8",fill:"#FFD21E",stroke:"#1B1B1F","stroke-width":"3"}),s("path",{d:"M5.5 17h4.5l3-8 5 15 3-7h5.5",fill:"none",stroke:"#1B1B1F","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})]}),_u=({size:e=18,fill:t="#FF8A6B"})=>s("svg",{width:e,height:e,viewBox:"0 0 32 32","aria-hidden":"true",children:[s("path",{d:"M3 4.5A3 3 0 0 1 6 1.5h14.5l8.5 8.5v15.5a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3z",fill:t,stroke:"#1B1B1F","stroke-width":"3","stroke-linejoin":"round"}),s("path",{d:"M20.5 1.5V7a3 3 0 0 0 3 3H29",fill:"none",stroke:"#1B1B1F","stroke-width":"3","stroke-linejoin":"round"}),s("path",{d:"M6.5 19h4l2.5-6.5 4 11 2.5-6h5",fill:"none",stroke:"#1B1B1F","stroke-width":"2.8","stroke-linecap":"round","stroke-linejoin":"round"})]}),gu={model:"Models",dataset:"Datasets",space:"Spaces"},wu=({size:e=16})=>s("svg",{class:"icon",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","aria-hidden":"true",children:[s("circle",{cx:"11",cy:"11",r:"7"}),s("path",{d:"m20 20-3.5-3.5"})]});function ts({onPick:e,big:t,placeholder:l,autoFocus:n,hotkey:i,exclude:o=[],all:a}){const[d,f]=he(""),[u,w]=he([]),[_,p]=he(0),[k,v]=he(!1),x=Sl(null),A=Sl(0);Lt(()=>{if(!i)return;const T=S=>{var V,E;(S.key==="k"&&(S.metaKey||S.ctrlKey)||S.key==="/"&&((V=document.activeElement)==null?void 0:V.tagName)!=="INPUT")&&(S.preventDefault(),(E=x.current)==null||E.focus())};return addEventListener("keydown",T),()=>removeEventListener("keydown",T)},[i]),Lt(()=>{const T=d.trim();if(T.length<2){w([]);return}const S=ko(T),V=S&&T.includes("huggingface.co")?S.id:T,E=++A.current,D=setTimeout(()=>{const L=$=>{E===A.current&&(w($.filter(N=>!o.includes(N.id))),p(0))};a?Jt.searchAll(V).then($=>{const N=[$.models.map(O=>({id:O.id,kind:"model",meta:`${It(O.pipeline_tag)} · ${ue(O.dl30)}/mo`})),$.datasets.map(O=>({id:O.id,kind:"dataset",meta:`${ue(O.dl30)}/mo`})),$.spaces.map(O=>({id:O.id,kind:"space",title:O.title,meta:`${O.emoji??""} ${ue(O.likes)} likes`.trim()}))];L(N.flat())}).catch(()=>{}):Jt.search(V).then($=>L($.map(N=>({id:N.id,kind:"model",meta:`${It(N.pipeline_tag)} · ${ue(N.dl30)}/mo`})))).catch(()=>{})},120);return()=>clearTimeout(D)},[d]);const z=(T,S="model")=>{var V;f(""),w([]),v(!1),(V=x.current)==null||V.blur(),e(T,S)},b=T=>{var S;if(T.key==="ArrowDown")T.preventDefault(),p(V=>Math.min(V+1,u.length-1));else if(T.key==="ArrowUp")T.preventDefault(),p(V=>Math.max(V-1,0));else if(T.key==="Escape")v(!1),(S=x.current)==null||S.blur();else if(T.key==="Enter")if(T.preventDefault(),u[_])z(u[_].id,u[_].kind);else if(a){const V=ko(d);V&&z(V.id,V.kind)}else{const V=vc(d);V&&z(V)}},W=d.trim().toLowerCase(),C=T=>{const S=T.toLowerCase().indexOf(W);return S<0||!W?T:s(fe,{children:[T.slice(0,S),s("b",{children:T.slice(S,S+W.length)}),T.slice(S+W.length)]})};return s("div",{class:`search${t?" big":""}`,children:[s(wu,{size:t?20:16}),s("input",{ref:x,value:d,autoFocus:n,placeholder:l??(a?"Search models, datasets and Spaces":"Search models"),"aria-label":a?"Search models, datasets and Spaces":"Search models",role:"combobox","aria-expanded":k&&u.length>0,"aria-controls":"search-results",autocomplete:"off",spellcheck:!1,onInput:T=>{f(T.target.value),v(!0)},onFocus:()=>v(!0),onBlur:()=>setTimeout(()=>v(!1),150),onKeyDown:b}),i&&!d&&s("kbd",{children:"⌘K"}),k&&u.length>0&&s("ul",{class:"results",id:"search-results",role:"listbox",children:u.map((T,S)=>s(fe,{children:[a&&(S===0||u[S-1].kind!==T.kind)&&s("li",{class:"rgroup",role:"presentation",children:gu[T.kind]},`g-${T.kind}`),s("li",{role:"option","aria-selected":S===_,onMouseEnter:()=>p(S),onMouseDown:V=>{V.preventDefault(),z(T.id,T.kind)},children:[s("span",{class:"rid",children:C(T.id)}),s("span",{class:"rmeta",children:T.meta})]},`${T.kind}:${T.id}`)]},`${T.kind}:${T.id}`))})]})}const ba=e=>{const t=e.currentTarget,l=t==null?void 0:t.parentElement;!t||!l||l.scrollWidth<=l.clientWidth||setTimeout(()=>{const n=t.getBoundingClientRect().left-l.getBoundingClientRect().left;l.scrollTo({left:l.scrollLeft+n-(l.clientWidth-t.offsetWidth)/2,behavior:"smooth"})},0)},Gs=[{key:"gainers_7d",label:"Most downloaded this week",note:"Downloads in the last 7 days."},{key:"growth_7d",label:"Fastest growing",note:"Downloads this week compared with the average of the three weeks before, among models with at least 1,000 weekly downloads. Models whose week came mostly from a single day are left out."},{key:"breakouts",label:"New this month",note:"Models created in the last 30 days, by downloads this week, leaving out those whose week came almost all from a single day."},{key:"likes_7d",label:"Most liked this week",note:"Likes gained in the last 7 days, among models with at least 1,000 downloads this month."},{key:"families",label:"Biggest families",note:"Base models ranked by the 30-day downloads of the model plus all its derivatives."},{key:"authors_7d",label:"Organizations",note:"Authors ranked by downloads across all their models this week.",author:!0},{key:"dl30",label:"Most downloaded this month",note:"Downloads in the last 30 days.",hidden:!0},{key:"dl_all",label:"Most downloaded of all time",note:"All-time downloads, as the Hub counts them.",hidden:!0}],vu={datasets:[{key:"gainers_7d",label:"Most downloaded this week",note:"Dataset downloads in the last 7 days."},{key:"growth_7d",label:"Fastest growing",note:"Downloads this week compared with the average of the three weeks before, among datasets with at least 1,000 weekly downloads. Datasets whose week came mostly from a single day are left out."},{key:"breakouts",label:"New this month",note:"Datasets created in the last 30 days, by downloads this week, leaving out those whose week came almost all from a single day."},{key:"used_by_models",label:"Most used for training",note:"Datasets listed as training data by the most models."},{key:"dl30",label:"Most downloaded this month",note:"Dataset downloads in the last 30 days.",hidden:!0},{key:"dl_all",label:"Most downloaded of all time",note:"All-time dataset downloads, as the Hub counts them.",hidden:!0}],spaces:[{key:"likes_7d",label:"Most liked this week",note:"Likes gained in the last 7 days. The Hub doesn't publish visits for Spaces, so likes are the measure."},{key:"likes_30d",label:"Most liked this month",note:"Likes gained in the last 30 days."},{key:"rising",label:"Rising",note:"Spaces picking up speed: likes this week against their weekly pace over the rest of the last 30 days, among Spaces with at least 20 likes this week and 10 in the weeks before."},{key:"trending",label:"Trending",note:"The Hub's own trending score, from the latest snapshot."},{key:"breakouts",label:"New this month",note:"Spaces created in the last 30 days, by likes gained this week."},{key:"most_liked",label:"Most liked",note:"All-time likes."}]},yu=[{key:"likes_7d",label:"Likes this week",title:"likes gained this week"},{key:"rising",label:"Change",title:"how much faster they gain likes than before"},{key:"likes_30d",label:"30 days",title:"likes gained in the last 30 days"},{key:"most_liked",label:"Likes",title:"all-time likes"}];function Nt({k:e,label:t,title:l,board:n,onSort:i}){return s("th",{"aria-sort":n===e?"descending":void 0,children:s("button",{class:"th-sort","aria-pressed":n===e,title:`Rank by ${l}`,onClick:()=>i(e),children:[t,n===e?" ▼":""]})})}const cr=[["","All"],["gradio","Gradio"],["docker","Docker"],["static","Static"],["streamlit","Streamlit"]],ls=e=>getComputedStyle(document.documentElement).getPropertyValue(e).trim(),ku=["--c1","--c2","--c3","--c4","--c5"];function bu(){const[e,t]=he(null),[l,n]=he(null),[i,o]=he(null),[a,d]=he(Gs[0].key),[f,u]=he("models");Lt(()=>{document.title="Model Pulse · Download history for every Hugging Face model",Jt.leaderboards().then(t),Jt.hub().then(n),Jt.meta().then(o)},[]);const w=Ot(()=>{if(!l)return[];const x=[...new Set(l.day)],A=new Map(x.map((T,S)=>[T,S])),z=l.tags.map(()=>new Array(x.length).fill(0));l.day.forEach((T,S)=>{z[l.tags.indexOf(l.tag[S])][A.get(T)]+=l.dl[S]});const b=x.map(Dl),W=[...ku.map(ls),"#9aa0bd","#c1c5d8","#7f86a8"];return l.tags.map((T,S)=>({tag:T,v:fi(z[S],7)})).map((T,S)=>({label:It(T.tag),color:T.tag==="other"?ls("--rule"):W[S],t:b,v:T.v}))},[l]),_=Ot(()=>{var x;return(x=l==null?void 0:l.low_days)!=null&&x.length?{days:l.low_days.map(Dl),note:"Low day: the Hub's counters fell behind and never caught up"}:void 0},[l]),p=(e==null?void 0:e.gainers_7d.slice(0,5).map(x=>x.id))??[],k=Gs.find(x=>x.key===a),v=(e==null?void 0:e[a])??[];return s(fe,{children:[s("div",{class:"wrap home-hero",children:[s("div",{class:"sticker","aria-hidden":"true",children:[s("svg",{viewBox:"0 0 100 100",children:s("path",{fill:"#E5484D",stroke:"#1B1B1F","stroke-width":"3",d:"M50 3l7.6 11.5 13.2-4.3 1.8 13.7 13.7 1.8-4.3 13.2L97 50l-11.5 7.6 4.3 13.2-13.7 1.8-1.8 13.7-13.2-4.3L50 97l-7.6-11.5-13.2 4.3-1.8-13.7-13.7-1.8 4.3-13.2L3 50l11.5-7.6-4.3-13.2 13.7-1.8 1.8-13.7 13.2 4.3z"})}),s("span",{children:[i?ue(i.models):"1.6M",s("br",{}),"models"]})]}),s("h1",{children:[s(ka,{size:80}),"Model ",s("span",{class:"hl",children:"Pulse"})]}),s("p",{class:"lede",children:"The daily download history of every model and dataset on the Hugging Face Hub, and likes for every Space. Search one or paste its link to see how it grew, how it compares, and who builds on it."}),s("div",{class:"meta",children:i?`${X(i.models)} models · daily since ${zt(i.first,{month:"short",year:"numeric"})} · updated ${zt(i.last)}`:" "}),s(ts,{big:!0,autoFocus:!0,all:!0,placeholder:"A model, dataset or Space, or paste its link",onPick:(x,A)=>Pe({[A]:x})}),s("div",{class:"examples",children:[p.length>0&&s("span",{class:"muted",children:"popular this week"}),p.map(x=>s("a",{class:"chip",href:Oe({model:x}),onClick:A=>{A.preventDefault(),Pe({model:x})},children:x},x))]})]}),s("div",{class:"wrap hub-chart",children:s("div",{class:"card",children:[s("h2",{children:"Daily downloads across the Hub"}),s("p",{class:"muted",style:{margin:"4px 0 14px"},children:["All public models, by task, 7-day average.",_?" Grey: days the Hub's counters fell behind and never caught up.":""]}),w.length?s(fe,{children:[s("div",{class:"legend",style:{marginBottom:10},children:w.map(x=>s("span",{class:"chip",children:[s("i",{class:"sw",style:{background:x.color,height:10}}),x.label]},x.label))}),s(bn,{lines:w,stacked:!0,height:300,valueLabel:x=>X(x),shade:_})]}):s("div",{class:"skeleton",style:{height:300}})]})}),s("section",{class:"section",children:s("div",{class:"wrap",children:s("div",{class:"card",children:[s("div",{class:"seg repo-tabs",role:"tablist","aria-label":"Rankings for",children:["models","datasets","spaces"].map(x=>s("button",{role:"tab","aria-selected":f===x,onClick:()=>u(x),children:x[0].toUpperCase()+x.slice(1)},x))}),f==="models"?s(fe,{children:[s("div",{class:"section-head",children:s("div",{children:[s("h2",{children:k.label}),s("p",{children:[k.note,e?` Week ending ${zt(e.updated)}.`:""]})]})}),s("div",{class:"seg lb-tabs",role:"tablist",children:Gs.filter(x=>!x.hidden).map(x=>s("button",{role:"tab","aria-selected":a===x.key,onClick:A=>{d(x.key),ba(A)},children:x.label},x.key))}),e?s(Su,{rows:v,kind:a,author:!!k.author,onSort:d}):s("div",{class:"skeleton"})]}):s(Mu,{kind:f},f)]})})})]})}function Su({rows:e,kind:t,author:l,onSort:n}){const[i,o]=he(25),a=f=>Pe(l?{author:f.author}:{model:f.id}),d=f=>Oe(l?{author:f.author}:{model:f.id});return s(fe,{children:[s("div",{class:"table-scroll",children:s("table",{class:"list",children:[s("thead",{children:s("tr",{children:[s("th",{children:l?"Organization":"Model"}),!l&&s("th",{children:"Last 4 weeks"}),l||t==="families"?s(fe,{children:[s("th",{children:"This week"}),s("th",{children:"Change"}),s("th",{children:t==="families"?"Family, 30 days":"30 days"}),s("th",{children:l?"Models":"All time"})]}):s(fe,{children:[t==="likes_7d"?s(Nt,{k:"likes_7d",label:"Likes this week",title:"likes gained this week",board:t,onSort:n}):s(Nt,{k:"gainers_7d",label:"This week",title:"downloads this week",board:t,onSort:n}),s(Nt,{k:"growth_7d",label:"Change",title:"growth against the three weeks before",board:t,onSort:n}),s(Nt,{k:"dl30",label:"30 days",title:"downloads in the last 30 days",board:t,onSort:n}),t==="likes_7d"?s("th",{children:"Likes"}):s(Nt,{k:"dl_all",label:"All time",title:"all-time downloads",board:t,onSort:n})]})]})}),s("tbody",{children:e.slice(0,i).map((f,u)=>s("tr",{children:[s("td",{class:"name",children:[s("span",{class:"rank",children:u+1}),s("a",{href:d(f),onClick:w=>{w.preventDefault(),a(f)},children:l?f.author:f.id}),!l&&s("span",{class:"sub",style:{paddingLeft:"2.5em"},children:[It(f.pipeline_tag),t==="families"&&f.fam_members?`, ${X(f.fam_members)} derivatives`:""]})]}),!l&&s("td",{children:s(ya,{v:f.spark??[]})}),s("td",{children:s("b",{children:t==="likes_7d"?`+${X(f.likes_7d)}`:ue(f.dl_7d)})}),s("td",{class:f.growth_7d==null?"muted":f.growth_7d>=0?"up":"down",children:cl(f.growth_7d)}),s("td",{children:ue(t==="families"?f.fam_dl30:f.dl30)}),s("td",{children:l?X(f.models):ue(t==="likes_7d"?f.likes:f.dl_all)})]},f.id??f.author))})]})}),e.length>i&&s("button",{class:"btn",style:{marginTop:16},onClick:()=>o(i+25),children:"Show 25 more"})]})}function xu(){const[e,t]=he(null);Lt(()=>{Jt.newSpaces().then(t).catch(()=>{})},[]);const l=Ot(()=>{if(!e)return[];const n=[...new Set(e.week)].filter(a=>a>="2023-01-01").sort(),i=new Map(n.map((a,d)=>[a,d])),o=["--c1","--c2","--c3","--c4","--c5"].map(ls);return e.sdks.map((a,d)=>{const f=new Array(n.length).fill(0);return e.week.forEach((u,w)=>{e.sdk[w]===a&&i.has(u)&&(f[i.get(u)]+=e.n[w])}),{label:a,color:a==="other"?ls("--rule"):o[d%o.length],t:n.slice(0,-1).map(u=>Dl(u)+3.5*86400),v:f.slice(0,-1)}})},[e]);return!e||!l.length?null:s("div",{class:"new-spaces",children:[s("h3",{children:"New Spaces per week, by SDK"}),s("div",{class:"legend",style:{marginBottom:8},children:l.map(n=>s("span",{class:"chip",children:[s("i",{class:"sw",style:{background:n.color,height:10}}),n.label]},n.label))}),s(bn,{lines:l,stacked:!0,height:220,valueLabel:n=>X(n)}),s("p",{class:"chart-note",children:"Counted from the Spaces that exist today, by the week they were created."})]})}function Mu({kind:e}){const t=vu[e],[l,n]=he(null),[i,o]=he(t[0].key),[a,d]=he(25),[f,u]=he(""),w=v=>{o(v),d(25)};Lt(()=>{Jt.boards(e,f||void 0).then(n).catch(()=>{})},[e,f]);const _=t.find(v=>v.key===i),p=(l==null?void 0:l[i])??[],k=v=>e==="datasets"?{dataset:v.id}:{space:v.id};return s(fe,{children:[e==="spaces"&&s(xu,{}),s("div",{class:"section-head",children:s("div",{children:[s("h2",{children:_.label}),s("p",{children:[_.note,l?` Week ending ${zt(l.updated)}.`:""]})]})}),s("div",{class:"seg lb-tabs",role:"tablist",children:t.filter(v=>!v.hidden).map(v=>s("button",{role:"tab","aria-selected":i===v.key,onClick:x=>{o(v.key),d(25),ba(x)},children:v.label},v.key))}),e==="spaces"&&s("div",{class:"sdk-filter",role:"group","aria-label":"SDK",children:[s("span",{children:"SDK"}),cr.map(([v,x])=>s("button",{"aria-pressed":f===v,onClick:()=>{u(v),d(25)},children:x},v))]}),l?s(fe,{children:[s("div",{class:"table-scroll",children:s("table",{class:"list",children:[s("thead",{children:e==="datasets"?s("tr",{children:[s("th",{children:"Dataset"}),s("th",{children:"Last 4 weeks"}),s(Nt,{k:"gainers_7d",label:"This week",title:"downloads this week",board:i,onSort:w}),s(Nt,{k:"growth_7d",label:"Change",title:"growth against the three weeks before",board:i,onSort:w}),s(Nt,{k:"dl30",label:"30 days",title:"downloads in the last 30 days",board:i,onSort:w}),i==="used_by_models"?s(Nt,{k:"used_by_models",label:"Models trained on it",title:"models that list it as training data",board:i,onSort:w}):s(Nt,{k:"dl_all",label:"All time",title:"all-time downloads",board:i,onSort:w})]}):s("tr",{children:[s("th",{children:"Space"}),s("th",{children:"Last 4 weeks"}),yu.map(v=>s(Nt,{k:v.key,label:v.label,title:v.title,board:i,onSort:w},v.key)),s("th",{children:"SDK"})]})}),s("tbody",{children:p.slice(0,a).map((v,x)=>s("tr",{children:[s("td",{class:"name",children:[s("span",{class:"rank",children:x+1}),s("a",{href:Oe(k(v)),onClick:A=>{A.preventDefault(),Pe(k(v))},children:[e==="spaces"&&v.emoji?`${v.emoji} `:"",e==="spaces"&&v.title?v.title:v.id]}),s("span",{class:"sub",style:{paddingLeft:"2.5em"},children:e==="spaces"?v.id:It(v.pipeline_tag)}),e==="spaces"&&v.short_description&&s("span",{class:"sub desc",style:{paddingLeft:"2.5em"},title:v.short_description,children:v.short_description})]}),s("td",{children:s(ya,{v:v.spark??[],color:e==="spaces"?"var(--c3)":void 0})}),e==="datasets"?s(fe,{children:[s("td",{children:s("b",{children:ue(v.dl_7d)})}),s("td",{class:v.growth_7d==null?"muted":v.growth_7d>=0?"up":"down",children:cl(v.growth_7d)}),s("td",{children:ue(v.dl30)}),s("td",{children:i==="used_by_models"?X(v.used_by_models):ue(v.dl_all)})]}):s(fe,{children:[s("td",{children:s("b",{children:["+",X(v.likes_7d)]})}),s("td",{class:v.growth_7d==null?"muted":v.growth_7d>=0?"up":"down",children:cl(v.growth_7d)}),s("td",{children:["+",X(v.likes_30d)]}),s("td",{children:ue(v.likes)}),s("td",{class:"muted",children:v.sdk??"–"})]})]},v.id))})]})}),!p.length&&s("p",{class:"chart-note",children:["No ",f?`${cr.find(([v])=>v===f)[1]} `:"","Spaces in this ranking this week."]}),p.length>a&&s("button",{class:"btn",style:{marginTop:16},onClick:()=>d(a+25),children:"Show 25 more"})]}):s("div",{class:"skeleton"})]})}const Tu=(()=>{try{return window.self!==window.top}catch{return!0}})(),Ys=({size:e=15,fill:t="currentColor"})=>s("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,"aria-hidden":"true",children:s("path",{d:"M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.1 5.4 3 1.8-1.9 3.3-3 5.4-3 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z"})});function Du(){return Tu?s("span",{class:"btn like-fake",tabIndex:0,"aria-describedby":"like-tip",children:[s(Ys,{fill:"#ff4d6d"}),"Like on Hugging Face",s("span",{class:"like-tip",id:"like-tip",role:"tooltip",children:["Click ",s("span",{class:"hf-like",children:[s(Ys,{size:12,fill:"#ff4d6d"})," like"]})," in the Hugging Face bar above this page, next to ",s("code",{children:"tardellirs/model-pulse"}),"."]})]}):s("a",{class:"btn",href:Er,target:"_blank",rel:"noopener",children:[s(Ys,{fill:"#ff4d6d"}),"Like on Hugging Face ↗"]})}const dr="https://modelpulse.ifsp.dev";function ur({text:e,label:t="Copy"}){const[l,n]=he(!1);return s("button",{class:"btn",onClick:async()=>{try{await navigator.clipboard.writeText(e)}catch{const i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),i.remove()}n(!0),setTimeout(()=>n(!1),1600)},children:l?"Copied":t})}async function Cu(e){await document.fonts.ready;const t=1200,l=675,n=2,i=document.createElement("canvas");i.width=t*n,i.height=l*n;const o=i.getContext("2d");o.scale(n,n);const a=w=>getComputedStyle(document.documentElement).getPropertyValue(w).trim();o.fillStyle=a("--paper"),o.fillRect(0,0,t,l),o.fillStyle=a("--ink"),o.beginPath(),o.roundRect(56,48,34,34,9),o.fill(),o.strokeStyle="#FFD43B",o.lineWidth=3,o.lineCap="round",o.lineJoin="round",o.beginPath(),o.moveTo(62,66),o.lineTo(68,66),o.lineTo(72,57),o.lineTo(78,75),o.lineTo(81,67),o.lineTo(85,67),o.stroke(),o.fillStyle=a("--ink"),o.font=`700 20px ${a("--font")}`,o.fillText("Model Pulse",102,72),o.fillStyle=a("--muted"),o.font=`400 18px ${a("--font")}`,o.textAlign="right",o.fillText("modelpulse.ifsp.dev",t-56,72),o.textAlign="left",o.fillStyle=a("--ink"),o.font=`600 36px ${a("--font")}`,o.fillText(e.id.length>48?e.id.slice(0,47)+"…":e.id,56,148),o.font=`600 88px ${a("--font-cond")}`;const d=(e.dl_all??e.dl30??0).toLocaleString("en");o.fillText(d,56,248);const f=o.measureText(d).width;o.fillStyle=a("--muted"),o.font=`400 20px ${a("--font")}`,o.fillText(e.dl_all!=null?"downloads all time":"downloads, last 30 days",60,280),e.growth_7d!=null&&(o.fillStyle=e.growth_7d>=0?a("--up"):a("--down"),o.font=`600 30px ${a("--font")}`,o.fillText(`${cl(e.growth_7d)} this week`,56+f+28,240));const u=document.querySelector(".chart-box canvas");if(u){const w=t-112,_=l-330-40,p=Math.min(w/u.width,_/u.height);o.drawImage(u,(t-u.width*p)/2,320,u.width*p,u.height*p)}return new Promise(w=>i.toBlob(_=>w(_),"image/png"))}function Pu({model:e,url:t}){const[l,n]=he("month"),i=`${dr}/badge/${e.id}.svg${l==="month"?"":`?metric=${l}`}`,o=`[](${Er}?model=${e.id})`,a=e.growth_7d!=null?` (${cl(e.growth_7d)} week over week)`:"",d=`${e.id} has ${ue(e.dl_all??e.dl30)} downloads on Hugging Face${a}. Full download history:`;return s("section",{class:"section",children:s("div",{class:"wrap",children:[s("div",{class:"section-head",children:s("div",{children:[s("h2",{children:"Share this model's numbers"}),s("p",{children:"Every link opens this page with the same chart and comparison."})]})}),s("div",{class:"share-grid",children:[s("div",{children:[s("h3",{children:"Link"}),s("p",{children:"Opens Model Pulse on Hugging Face, ready to explore."}),s("div",{class:"code",children:[s("code",{children:t}),s(ur,{text:t})]}),s("div",{style:{display:"flex",gap:8,marginTop:12,flexWrap:"wrap"},children:[s("button",{class:"btn",onClick:async()=>{const f=await Cu(e),u=document.createElement("a");u.href=URL.createObjectURL(f),u.download=`${e.id.replace("/","_")}-model-pulse.png`,u.click(),setTimeout(()=>URL.revokeObjectURL(u.href),2e3)},children:"Download image"}),s("a",{class:"btn",target:"_blank",rel:"noopener",href:`https://x.com/intent/post?text=${encodeURIComponent(d)}&url=${encodeURIComponent(t)}`,children:"Post on X"}),s("a",{class:"btn",target:"_blank",rel:"noopener",href:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(t)}`,children:"Share on LinkedIn"})]})]}),s("div",{children:[s("h3",{children:"Badge for your model card"}),s("p",{children:["Updates daily. Paste it into the README of ",e.id.split("/").pop(),"."]}),s("div",{class:"seg badge-opts",role:"group","aria-label":"Badge metric",children:[s("button",{"aria-pressed":l==="month",onClick:()=>n("month"),children:"Monthly"}),s("button",{"aria-pressed":l==="all",onClick:()=>n("all"),children:"All time"}),s("button",{"aria-pressed":l==="likes",onClick:()=>n("likes"),children:"Likes"})]}),s("div",{class:"badge-preview",children:s("img",{src:i.replace(dr,Cr),alt:"Model Pulse badge preview",height:22})}),s("div",{class:"code",children:[s("code",{children:o}),s(ur,{text:o,label:"Copy markdown"})]})]}),s("div",{class:"cta",children:[s("h3",{children:"Keep Model Pulse on model pages"}),s("p",{children:"Hugging Face lists the most-liked Spaces on each model page. A like keeps download history one click away for everyone."}),s(Du,{})]})]})]})})}const Au=e=>getComputedStyle(document.documentElement).getPropertyValue(e).trim();function Lu({title:e,data:t,by:l,note:n}){const i=Ot(()=>{let o=0;const a=[],d=[];return t.months.month.forEach((f,u)=>{o+=t.months.n[u],a.push(Dl(`${f}-15`)),d.push(o)}),a.length?[{label:e,color:Au(l==="space"?"--c3":"--c2"),t:a,v:d,fill:!0}]:[]},[t]);return t.count?s("div",{class:"card used-by",children:[s("div",{class:"ub-head",children:[s("h3",{children:e}),s("div",{class:"ub-n",children:[s("b",{children:X(t.count)})," ",l==="space"?t.count===1?"Space":"Spaces":t.count===1?"model":"models"]})]}),i.length>0&&i[0].t.length>1&&s(bn,{lines:i,height:150,endLabel:!0,valueLabel:o=>X(o)}),s("ol",{class:"ub-list",children:t.top.map(o=>{const a=l==="space"?{space:o.id}:{model:o.id};return s("li",{children:[s("a",{href:Oe(a),onClick:d=>{d.preventDefault(),Pe(a)},children:[l==="space"&&s("span",{class:"emo","aria-hidden":"true",children:o.emoji||"·"}),s("span",{class:"nm",children:l==="space"&&o.title?s(fe,{children:[o.title," ",s("small",{children:o.id})]}):o.id}),s("span",{class:"v",children:l==="space"?`${ue(o.likes)} ${o.likes===1?"like":"likes"}`:`${ue(o.dl30)}/mo`})]}),l==="model"&&o.pipeline_tag&&s("span",{class:"ub-sub",children:It(o.pipeline_tag)})]},o.id)})}),s("p",{class:"chart-note",children:n})]}):null}const hr={"1M":30,"3M":91,"6M":182,"1Y":365,All:null},fr=["--c1","--c2","--c3","--c4","--c5"],On=e=>getComputedStyle(document.documentElement).getPropertyValue(fr[e%fr.length]).trim();function Ks(e,t,l){const n=l&&e.family?e.family:e.series;if(t==="weekly"){const{t:i,v:o}=Jn(n.day,n.dl_all);return $r(i,o)}if(t==="daily"){const{t:i,v:o}=Jn(n.day,n.dl_all);return{t:i,v:fi(o,7),raw:o}}return t==="month"?Un(n.day,n.dl30):t==="total"?Un(n.day,n.dl_all):Un(e.series.day,e.series.likes)}function Eu({route:e}){var q,ke,Fe;const t=e.model,l=e.compare??[],[n,i]=he(null),[o,a]=he([]),[d,f]=he(null),[u,w]=he("weekly"),[_,p]=he("1Y"),[k,v]=he(null),x=F=>{v(null),w(F)},[A,z]=he(!1),[b,W]=he(!1),[C,T]=he(!1),[S,V]=he("left");Lt(()=>{i(null),f(null),z(!1),v(null),Jt.model(t).then(F=>{i(F),F.model.id!==t&&Pe({...e,model:F.model.id},!0),document.title=`${F.model.id} downloads: daily history and stats · Model Pulse`}).catch(F=>f(F.message))},[t]),Lt(()=>{Promise.all(l.map(F=>Jt.model(F).catch(()=>null))).then(F=>a(F.filter(Boolean)))},[l.join(",")]);const E=n==null?void 0:n.model,D=!!n&&n.series.dl_all.filter(F=>F!=null).length>7,L=(u==="daily"||u==="weekly")&&!D?"month":u,$=Ot(()=>{if(!n)return[];const F=Ks(n,L,A),te=[];return te.push({label:A?`${n.model.id} + derivatives`:n.model.id,color:On(0),t:F.t,v:F.v,fill:!o.length}),o.forEach((H,P)=>{const Z=Ks(H,L,!1);te.push({label:H.model.id,color:On(P+1),t:Z.t,v:Z.v})}),te},[n,o,L,A]),N=Ot(()=>n&&L==="weekly"?Ks(n,"weekly",A).partial:!1,[n,L,A]),O=Ot(()=>n?_c(A&&n.family?{...n.series,...n.family}:n.series):[],[n,A]),Q=Ot(()=>L==="likes"||o.length?[]:O.filter(F=>F.day).map(F=>({t:Dl(F.day),label:F.label})),[O,L,o.length]),Y=Ot(()=>{if(k)return k;const F=hr[_];if(!F||!$.length)return null;const te=Math.max(...$.map(H=>H.t[H.t.length-1]??0));return[te-F*86400,te]},[_,k,$]);if(d)return s("div",{class:"wrap err",children:[s("h1",{children:["No history for ",t]}),s("p",{class:"muted",children:d}),s("p",{children:"Check the spelling, or try one of the models below."}),s(ts,{onPick:F=>Pe({model:F}),placeholder:"Search another model",autoFocus:!0})]});if(!n||!E)return s("div",{class:"wrap hero",children:[s("div",{class:"model-name",children:t}),s("div",{class:"skeleton",style:{marginTop:40}})]});const[ne,K]=E.id.includes("/")?[E.id.split("/")[0],E.id.split("/").slice(1).join("/")]:[null,E.id],Se=Pr(E.params),pe=(q=E.base_ids)==null?void 0:q[0],ae={quantized:"Quantized from",finetune:"Fine-tuned from",adapter:"Adapter for",merge:"Merged from"},oe=A&&E.fam_all?E.fam_all:E.dl_all??E.dl30,se=F=>Pe({model:E.id,compare:F.length?F:void 0},!0);return s(fe,{children:[s("div",{class:"wrap hero",children:[s("div",{class:"crumbs",children:[E.pipeline_tag&&s("span",{class:"chip",children:It(E.pipeline_tag)}),Se&&s("span",{class:"chip",children:Se}),E.license&&s("span",{class:"chip",children:E.license}),E.likes!=null&&s("span",{class:"chip",title:E.likes_7d?`${X(E.likes_7d)} new likes in the last 7 days`:void 0,children:[s("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"#ff6b81","aria-hidden":"true",children:s("path",{d:"M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.6 4.5c2.1 0 3.6 1.1 5.4 3 1.8-1.9 3.3-3 5.4-3 3.6 0 5.7 3.7 4.2 7.2C19.5 16.4 12 21 12 21z"})}),X(E.likes)," likes",E.likes_7d?s("span",{class:"up",children:["+",X(E.likes_7d)]}):null]}),pe&&s("a",{class:"chip",href:Oe({model:pe}),onClick:F=>{F.preventDefault(),Pe({model:pe})},children:[ae[E.base_relation??""]??"Based on"," ",pe]}),(ke=n.datasets)==null?void 0:ke.slice(0,2).map(F=>s("a",{class:"chip",href:Oe({dataset:F.id}),onClick:te=>{te.preventDefault(),Pe({dataset:F.id})},children:["Trained on ",F.id]},F.id)),s("a",{class:"chip",href:`https://huggingface.co/${E.id}`,target:"_blank",rel:"noopener",children:"Open on Hugging Face ↗"})]}),s("h1",{class:"model-name",children:[ne&&s("a",{href:Oe({author:ne}),onClick:F=>{F.preventDefault(),Pe({author:ne})},class:"org",children:[ne,"/"]}),ne&&s("wbr",{}),s("span",{class:"hl",children:K})]}),s("div",{class:"card stats",style:{padding:0},children:[s("div",{class:"fig fig-main",children:[s("div",{class:"num",title:X(oe),children:X(oe)}),s("div",{class:"label",children:[E.dl_all!=null?"downloads all time":"downloads in the last 30 days",A?`, including ${X(E.fam_members)} derivatives`:""]})]}),s("div",{class:"fig",children:[s("div",{class:"val",children:ue(A?E.fam_dl30:E.dl30)}),s("div",{class:"label",children:"last 30 days"})]}),s("div",{class:"fig",children:[s("div",{class:"val",children:[ue(A?E.fam_7d:E.dl_7d),!A&&E.growth_7d!=null&&s("small",{class:E.growth_7d>=0?"up":"down",children:cl(E.growth_7d)})]}),s("div",{class:"label",children:["last 7 days",!A&&E.growth_7d!=null?", vs. 3-week average":""]})]}),s("div",{class:"fig",children:[s("div",{class:"val",children:["#",X(E.rank_dl30)]}),s("div",{class:"label",children:["on the Hub",E.rank_task&&E.pipeline_tag?`, ${mc(E.rank_task)} in ${It(E.pipeline_tag)}`:""]})]})]}),s("div",{class:"card chart-card",children:[s("div",{class:"chart-bar",children:[s("div",{class:"left",children:[s("div",{class:"seg",role:"group","aria-label":"Metric",children:[D&&s("button",{"aria-pressed":L==="weekly",onClick:()=>x("weekly"),children:"Weekly"}),D&&s("button",{"aria-pressed":L==="daily",onClick:()=>x("daily"),children:"Daily"}),s("button",{"aria-pressed":L==="month",onClick:()=>x("month"),children:"Rolling 30 days"}),D&&s("button",{"aria-pressed":L==="total",onClick:()=>x("total"),children:"All time"}),s("button",{"aria-pressed":L==="likes",onClick:()=>{x("likes"),z(!1)},children:"Likes"})]}),s("div",{class:"seg",role:"group","aria-label":"Time range",children:Object.keys(hr).map(F=>s("button",{"aria-pressed":!k&&_===F,onClick:()=>{v(null),p(F)},children:F},F))})]}),s("div",{class:"right",children:[!!n.family&&!o.length&&L!=="likes"&&s("div",{class:"seg",children:s("button",{"aria-pressed":A,onClick:()=>z(!A),children:["Include ",X(E.fam_members)," derivatives"]})}),o.length>0&&s("div",{class:"seg",children:s("button",{"aria-pressed":b,onClick:()=>W(!b),children:"Log scale"})}),s("div",{class:`add-compare align-${S}`,children:[s("button",{class:"btn",onClick:F=>{const te=F.currentTarget.getBoundingClientRect();V(te.left+440>window.innerWidth-16?"right":"left"),T(!C)},"aria-expanded":C,disabled:l.length>=4,children:[s("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round",children:s("path",{d:"M12 5v14M5 12h14"})}),"Compare"]}),C&&s(ts,{autoFocus:!0,placeholder:"Add a model to compare",exclude:[E.id,...l],onPick:F=>{T(!1),se([...l,F])}})]})]})]}),o.length>0&&s("div",{class:"legend",style:{marginBottom:8},children:[s("span",{class:"chip",children:[s("i",{class:"sw",style:{background:On(0)}}),E.id]}),o.map((F,te)=>s("span",{class:"chip",children:[s("i",{class:"sw",style:{background:On(te+1)}}),s("a",{href:Oe({model:F.model.id}),onClick:H=>{H.preventDefault(),Pe({model:F.model.id})},children:F.model.id}),s("button",{"aria-label":`Remove ${F.model.id}`,onClick:()=>se(l.filter(H=>H!==F.model.id)),children:"✕"})]},F.model.id))]}),s(bn,{lines:$,range:Y,log:b,markers:Q,onZoom:F=>v(F),height:380,bars:L==="weekly",partialLast:L==="weekly"&&!!N,endLabel:L!=="weekly",tipDate:L==="weekly"?F=>`Week of ${zt(new Date((F-pi/2)*1e3),{month:"short",day:"numeric",year:"numeric"})}`:void 0,valueLabel:L==="daily"?F=>X(F)+"/day":L==="weekly"?F=>X(F)+"/week":void 0}),s("p",{class:"chart-note",children:[L==="daily"&&"7-day average of daily downloads. ",L==="weekly"&&(o.length?"Downloads per week, Monday to Sunday. ":"Downloads per week, Monday to Sunday; the striped bar is the week in progress. "),L!=="likes"&&`Daily figures start on ${zt("2025-02-27")}, when the Hub began reporting all-time totals; the rolling 30-day view goes back to ${zt("2024-07-29")}. `,"The Hub sometimes books delayed downloads in a single day, which shows up as a short spike. Drag on the chart to zoom, double-click to reset."]})]})]}),O.length>0&&L!=="likes"&&s("section",{class:"section",children:s("div",{class:"wrap",children:[s("div",{class:"section-head",children:s("div",{children:[s("h2",{children:"Milestones"}),s("p",{children:["The day ",A?"the family":"the model"," first crossed each mark in all-time downloads."]})]})}),s("ol",{class:"timeline",children:O.map(F=>s("li",{class:F.day||F.before?"":"pending",children:[s("div",{class:"m",children:F.label}),s("div",{class:"when",children:F.day?zt(F.day):F.before?`Before ${zt(F.before,{month:"short",year:"numeric"})}`:"Not yet"})]},F.label))})]})}),(E.fam_members>0||n.children.length>0)&&s(Ru,{data:n}),!!((Fe=n.spaces)!=null&&Fe.count)&&s("section",{class:"section",children:s("div",{class:"wrap",children:[s("div",{class:"section-head",children:s("div",{children:[s("h2",{children:["Spaces using ",E.id.split("/").pop()]}),s("p",{children:"Spaces whose card lists this model, and how that number grew."})]})}),s(Lu,{title:"Spaces using it",data:n.spaces,by:"space",note:"Counted from today's Space cards, by the month each Space was created."})]})}),s(Fu,{data:n}),s(Pu,{model:E,url:wc({model:E.id,compare:l.length?l:void 0})})]})}const $u={quantized:"a quantization",finetune:"a fine-tune",adapter:"an adapter",merge:"a merge"};function Fu({data:e}){var u;const t=e.model,[l]=t.id.includes("/")?t.id.split("/"):[""],n=t.id.split("/").pop(),i=t.pipeline_tag?It(t.pipeline_tag):"",o=t.params?t.params>=1e9?`${(t.params/1e9).toFixed(1)}B`:`${Math.round(t.params/1e6)}M`:"",a=`${o?`${o}-parameter `:""}${i}`.trim(),d=(u=t.base_ids)==null?void 0:u[0],f=(w,_)=>s("a",{href:Oe(w),onClick:p=>{p.preventDefault(),Pe(w)},children:_});return s("section",{class:"section",children:s("div",{class:"wrap about",children:[s("h2",{children:["About ",n]}),s("p",{children:[s("b",{children:t.id})," is ",/^[aeio8]|^1[18]/i.test(a)?"an":"a"," ",a?`${a} model`:"model",l&&s(fe,{children:[" by ",f({author:l},l)]}),"."," ","In the last 30 days it was downloaded ",s("b",{children:X(t.dl30)})," times (",X(t.dl_7d)," in the last 7 days)",t.dl_all?s(fe,{children:[", and ",s("b",{children:X(t.dl_all)})," times in total"]}):null,".",t.rank_dl30?s(fe,{children:[" It ranks #",X(t.rank_dl30)," on the Hub by monthly downloads",t.rank_task&&t.pipeline_tag?s(fe,{children:[" and #",X(t.rank_task)," among ",i," models"]}):null,"."]}):null,t.likes!=null?s(fe,{children:[" It has ",X(t.likes)," likes",t.likes_7d?`, ${X(t.likes_7d)} of them in the last week`:"","."]}):null]}),d&&s("p",{children:["It is ",$u[t.base_relation??""]??"a derivative"," of ",f({model:d},d),"."]}),t.fam_members>0&&s("p",{children:[X(t.fam_members)," models build on ",n,": ",X(t.n_quantized)," quantized, ",X(t.n_finetune)," fine-tuned, ",X(t.n_adapter)," adapters and ",X(t.n_merge)," merges. Together with the original they were downloaded ",X(t.fam_dl30)," times in the last 30 days."," ",f({view:"galaxy",model:t.id},`See the ${n} galaxy`),"."]}),s("p",{class:"muted",children:"Figures come from daily snapshots of the Hugging Face Hub and update every day."})]})})}function Ru({data:e}){const t=e.model,l=[{k:"Quantized",n:t.n_quantized??0,c:"var(--c1)"},{k:"Fine-tuned",n:t.n_finetune??0,c:"var(--c2)"},{k:"Adapters",n:t.n_adapter??0,c:"var(--c3)"},{k:"Merges",n:t.n_merge??0,c:"var(--c4)"}],n=l.reduce((o,a)=>o+a.n,0)||1,i=t.fam_dl30&&t.dl30!=null?1-t.dl30/t.fam_dl30:null;return s("section",{class:"section",children:s("div",{class:"wrap",children:s("div",{class:"card family-top",children:[s("div",{class:"family-sum",children:[s("h2",{children:"Family"}),s("p",{children:t.fam_members>0?s(fe,{children:[X(t.fam_members)," models build on ",t.id.split("/").pop(),", directly or through other derivatives. Together with the original they were downloaded ",s("b",{children:ue(t.fam_dl30)})," times in the last 30 days",i!=null&&i>.01?s(fe,{children:[", and ",s("b",{children:[Math.round(i*100),"%"]})," of that went to derivatives"]}):null,"."]}):s(fe,{children:["Derivatives of ",t.id.split("/").pop()," on the Hub."]})}),t.fam_members>0&&s(fe,{children:[s("div",{class:"big",children:X(t.fam_all)}),s("div",{class:"muted",style:{marginBottom:18},children:"family downloads all time"}),s("div",{class:"rel","aria-hidden":"true",children:l.filter(o=>o.n).map(o=>s("span",{style:{width:`${o.n/n*100}%`,background:o.c}},o.k))}),s("div",{class:"rel-legend",children:l.map(o=>s("div",{children:[s("span",{children:[s("i",{style:{background:o.c}}),o.k]}),s("b",{children:X(o.n)})]},o.k))}),s("a",{class:"btn galaxy-btn",href:Oe({view:"galaxy",model:t.id}),onClick:o=>{o.preventDefault(),Pe({view:"galaxy",model:t.id})},children:[s("span",{class:"g-dot","aria-hidden":"true"}),"See the ",X(t.fam_members)," models as a galaxy"]})]})]}),e.children.length>0&&s("div",{children:s("div",{class:"table-scroll",children:s("table",{class:"list",children:[s("thead",{children:s("tr",{children:[s("th",{children:"Most downloaded direct derivatives"}),s("th",{children:"Type"}),s("th",{children:"30 days"}),s("th",{children:"All time"})]})}),s("tbody",{children:e.children.slice(0,12).map(o=>s("tr",{children:[s("td",{class:"name",children:s("a",{href:Oe({model:o.id}),onClick:a=>{a.preventDefault(),Pe({model:o.id})},children:o.id})}),s("td",{class:"muted",children:o.relation}),s("td",{children:ue(o.dl30)}),s("td",{children:ue(o.dl_all)})]},o.id))})]})})})]})})})}function Sn(e){let t=null,l=null;return n=>{const[,i]=he(0);return Lt(()=>{t||(l??(l=e())).then(o=>{t=o,i(a=>a+1)})},[]),t?s(t,{...n}):s("div",{class:"wrap",style:{minHeight:"70vh"}})}}const Hu=Sn(()=>kn(()=>import("./Galaxy-BGV5jbrO.js"),[]).then(e=>e.Galaxy)),Bu=Sn(()=>kn(()=>import("./Wrapped-CpoCw_9A.js"),[]).then(e=>e.Wrapped)),Nu=Sn(()=>kn(()=>import("./Report-DfZBge-R.js"),[]).then(e=>e.Report)),Ou=Sn(()=>kn(()=>import("./Repos-IBLTT3va.js"),[]).then(e=>e.DatasetPage)),zu=Sn(()=>kn(()=>import("./Repos-IBLTT3va.js"),[]).then(e=>e.SpacePage));function Wu(){var u,w;const[e,t]=he(yo());Lt(()=>{var p;const _=()=>t(yo());if(addEventListener("popstate",_),addEventListener("routechange",_),!Qn)try{(p=window.parent)==null||p.postMessage({queryString:location.search.slice(1),hash:""},"https://huggingface.co")}catch{}return()=>{removeEventListener("popstate",_),removeEventListener("routechange",_)}},[]);const l=e.view==="report",n=e.view==="wrapped",i=e.view==="galaxy",o=!e.model&&!e.dataset&&!e.space&&!e.author&&!l&&!n&&!i,a=e.author??((u=e.model)!=null&&u.includes("/")?e.model.split("/")[0]:(w=e.dataset)!=null&&w.includes("/")?e.dataset.split("/")[0]:void 0),d=e.model?{view:"galaxy",model:e.model}:{view:"galaxy"},f=a?{view:"wrapped",author:a,kind:e.dataset&&!e.author?"datasets":n?e.kind:void 0}:{view:"wrapped"};return s(fe,{children:[s("header",{class:"top",children:s("div",{class:"wrap",children:[s("a",{class:"brand","aria-label":"Model Pulse home",href:Oe({}),onClick:_=>{_.preventDefault(),Pe({})},children:[s(ka,{}),s("span",{children:"Model Pulse"})]}),!o&&s(ts,{hotkey:!0,all:!0,onPick:(_,p)=>Pe({[p]:_})}),s("nav",{children:[!o&&s("a",{class:"btn nav-btn hide-sm",href:Oe({}),onClick:_=>{_.preventDefault(),Pe({})},children:"Rankings"}),s("a",{class:"btn nav-btn","aria-current":i?"page":void 0,href:Oe(d),onClick:_=>{_.preventDefault(),Pe(d)},children:"Galaxy"}),s("a",{class:"btn nav-btn","aria-current":n?"page":void 0,href:Oe(f),onClick:_=>{_.preventDefault(),Pe(f)},children:"Wrapped"}),s("a",{class:`btn nav-btn${o||l?"":" hide-sm"}`,"aria-current":l?"page":void 0,href:Oe({view:"report"}),onClick:_=>{_.preventDefault(),Pe({view:"report"})},children:"Report"}),s("a",{class:"btn nav-btn sister",href:"https://huggingface.co/spaces/tardellirs/paper-pulse",target:"_blank",rel:"noopener",title:"Paper Pulse: the day-by-day history of every Hugging Face Daily Paper",children:[s(_u,{fill:"#FFF8F5"}),s("span",{children:"Paper Pulse"})]})]})]})}),s("main",{children:i?s(Hu,{model:e.model},e.model??"entry"):n?s(Bu,{author:e.author,kind:e.kind},e.author??"entry"):e.model?s(Eu,{route:e},e.model):e.dataset?s(Ou,{id:e.dataset},e.dataset):e.space?s(zu,{id:e.space},e.space):e.author?s(mu,{route:e},e.author):l?s(Nu,{}):s(bu,{})}),s("footer",{class:"foot",children:s("div",{class:"wrap",children:[s("span",{children:["Data from daily snapshots of ",s("a",{href:"https://huggingface.co/datasets/cfahlgren1/hub-stats",target:"_blank",rel:"noopener",children:"cfahlgren1/hub-stats"}),", refreshed every day. An independent project, not affiliated with Hugging Face."]}),s("span",{children:["Download counts follow the ",s("a",{href:"https://huggingface.co/docs/hub/models-download-stats",target:"_blank",rel:"noopener",children:"Hub's own counting rules"}),"."]}),s("span",{children:["Sister project: ",s("a",{href:"https://paperpulse.ifsp.dev",target:"_blank",rel:"noopener",children:"Paper Pulse"}),", the upvote history of every Hugging Face Daily Paper."]}),s("span",{class:"maker",children:["Made by ",s("a",{href:"https://huggingface.co/tardellirs",target:"_blank",rel:"noopener",children:"Tardelli Stekel"})," ","(",s("a",{href:"https://huggingface.co/tardellirs",target:"_blank",rel:"noopener",children:"@tardellirs"})," on Hugging Face,"," ",s("a",{href:"https://stekel.ifsp.dev/",target:"_blank",rel:"noopener",children:"stekel.ifsp.dev"}),")",s("a",{class:"gh",href:"https://github.com/tardellirs/modelpulse",target:"_blank",rel:"noopener","aria-label":"Source code on GitHub",title:"Source code on GitHub",children:s("svg",{width:"18",height:"18",viewBox:"0 0 16 16","aria-hidden":"true",children:s("path",{fill:"currentColor",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})})})]})]})})]})}ac(s(Wu,{}),document.getElementById("app"));export{Sl as A,dr as B,bn as C,Du as L,fe as S,Ot as T,Lu as U,pi as W,Oe as a,ue as b,ka as c,he as d,ts as e,X as f,Ct as g,Lt as h,Cr as i,zt as j,Jt as k,Jn as l,fi as m,Pe as n,cl as o,Un as p,mc as q,Er as r,wc as s,It as t,s as u,ur as v,$r as w}; | |