3 lines
19 KiB
JavaScript
3 lines
19 KiB
JavaScript
"use strict";(()=>{var G,l,xt,it,P,gt,St,tt,ot,et,nt,Yt,M={},Ct=[],te=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,rt=Array.isArray;function H(e,t){for(var n in t)e[n]=t[n];return e}function Et(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ee(e,t,n){var i,o,r,f={};for(r in t)r=="key"?i=t[r]:r=="ref"?o=t[r]:f[r]=t[r];if(arguments.length>2&&(f.children=arguments.length>3?G.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)f[r]===void 0&&(f[r]=e.defaultProps[r]);return V(e,f,i,o,null)}function V(e,t,n,i,o){var r={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o==null?++xt:o,__i:-1,__u:0};return o==null&&l.vnode!=null&&l.vnode(r),r}function E(e){return e.children}function N(e,t){this.props=e,this.context=t}function $(e,t){if(t==null)return e.__?$(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?$(e):null}function Ut(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ut(e)}}function bt(e){(!e.__d&&(e.__d=!0)&&P.push(e)&&!q.__r++||gt!==l.debounceRendering)&&((gt=l.debounceRendering)||St)(q)}function q(){var e,t,n,i,o,r,f,s;for(P.sort(tt);e=P.shift();)e.__d&&(t=P.length,i=void 0,r=(o=(n=e).__v).__e,f=[],s=[],n.__P&&((i=H({},o)).__v=o.__v+1,l.vnode&&l.vnode(i),_t(n.__P,i,o,n.__n,n.__P.namespaceURI,32&o.__u?[r]:null,f,r==null?$(o):r,!!(32&o.__u),s),i.__v=o.__v,i.__.__k[i.__i]=i,Nt(f,i,s),i.__e!=r&&Ut(i)),P.length>t&&P.sort(tt));q.__r=0}function Ht(e,t,n,i,o,r,f,s,c,u,v){var _,k,a,g,S,w=i&&i.__k||Ct,h=t.length;for(n.__d=c,ne(n,t,w),c=n.__d,_=0;_<h;_++)(a=n.__k[_])!=null&&(k=a.__i===-1?M:w[a.__i]||M,a.__i=_,_t(e,a,k,o,r,f,s,c,u,v),g=a.__e,a.ref&&k.ref!=a.ref&&(k.ref&&ft(k.ref,null,a),v.push(a.ref,a.__c||g,a)),S==null&&g!=null&&(S=g),65536&a.__u||k.__k===a.__k?c=Pt(a,c,e):typeof a.type=="function"&&a.__d!==void 0?c=a.__d:g&&(c=g.nextSibling),a.__d=void 0,a.__u&=-196609);n.__d=c,n.__e=S}function ne(e,t,n){var i,o,r,f,s,c=t.length,u=n.length,v=u,_=0;for(e.__k=[],i=0;i<c;i++)(o=t[i])!=null&&typeof o!="boolean"&&typeof o!="function"?(f=i+_,(o=e.__k[i]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?V(null,o,null,null,null):rt(o)?V(E,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?V(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,r=null,(s=o.__i=ie(o,n,f,v))!==-1&&(v--,(r=n[s])&&(r.__u|=131072)),r==null||r.__v===null?(s==-1&&_--,typeof o.type!="function"&&(o.__u|=65536)):s!==f&&(s==f-1?_--:s==f+1?_++:(s>f?_--:_++,o.__u|=65536))):o=e.__k[i]=null;if(v)for(i=0;i<u;i++)(r=n[i])!=null&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=$(r)),$t(r,r))}function Pt(e,t,n){var i,o;if(typeof e.type=="function"){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=Pt(i[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=$(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ie(e,t,n,i){var o=e.key,r=e.type,f=n-1,s=n+1,c=t[n];if(c===null||c&&o==c.key&&r===c.type&&!(131072&c.__u))return n;if(i>(c!=null&&!(131072&c.__u)?1:0))for(;f>=0||s<t.length;){if(f>=0){if((c=t[f])&&!(131072&c.__u)&&o==c.key&&r===c.type)return f;f--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&r===c.type)return s;s++}}return-1}function wt(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||te.test(t)?n:n+"px"}function R(e,t,n,i,o){var r;t:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||wt(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||wt(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i?n.u=i.u:(n.u=ot,e.addEventListener(t,r?nt:et,r)):e.removeEventListener(t,r?nt:et,r);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n==null?"":n;break t}catch(f){}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function kt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ot++;else if(t.t<n.u)return;return n(l.event?l.event(t):t)}}}function _t(e,t,n,i,o,r,f,s,c,u){var v,_,k,a,g,S,w,h,d,A,U,L,j,mt,B,Y,C=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),r=[s=t.__e=n.__e]),(v=l.__b)&&v(t);t:if(typeof C=="function")try{if(h=t.props,d="prototype"in C&&C.prototype.render,A=(v=C.contextType)&&i[v.__c],U=v?A?A.props.value:v.__:i,n.__c?w=(_=t.__c=n.__c).__=_.__E:(d?t.__c=_=new C(h,U):(t.__c=_=new N(h,U),_.constructor=C,_.render=re),A&&A.sub(_),_.props=h,_.state||(_.state={}),_.context=U,_.__n=i,k=_.__d=!0,_.__h=[],_._sb=[]),d&&_.__s==null&&(_.__s=_.state),d&&C.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=H({},_.__s)),H(_.__s,C.getDerivedStateFromProps(h,_.__s))),a=_.props,g=_.state,_.__v=t,k)d&&C.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),d&&_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(d&&C.getDerivedStateFromProps==null&&h!==a&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(h,U),!_.__e&&(_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(h,_.__s,U)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(_.props=h,_.state=_.__s,_.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(O){O&&(O.__=t)}),L=0;L<_._sb.length;L++)_.__h.push(_._sb[L]);_._sb=[],_.__h.length&&f.push(_);break t}_.componentWillUpdate!=null&&_.componentWillUpdate(h,_.__s,U),d&&_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(a,g,S)})}if(_.context=U,_.props=h,_.__P=e,_.__e=!1,j=l.__r,mt=0,d){for(_.state=_.__s,_.__d=!1,j&&j(t),v=_.render(_.props,_.state,_.context),B=0;B<_._sb.length;B++)_.__h.push(_._sb[B]);_._sb=[]}else do _.__d=!1,j&&j(t),v=_.render(_.props,_.state,_.context),_.state=_.__s;while(_.__d&&++mt<25);_.state=_.__s,_.getChildContext!=null&&(i=H(H({},i),_.getChildContext())),d&&!k&&_.getSnapshotBeforeUpdate!=null&&(S=_.getSnapshotBeforeUpdate(a,g)),Ht(e,rt(Y=v!=null&&v.type===E&&v.key==null?v.props.children:v)?Y:[Y],t,n,i,o,r,f,s,c,u),_.base=t.__e,t.__u&=-161,_.__h.length&&f.push(_),w&&(_.__E=_.__=null)}catch(O){if(t.__v=null,c||r!=null){for(t.__u|=c?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;r[r.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;l.__e(O,t,n)}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=oe(n.__e,t,n,i,o,r,f,c,u);(v=l.diffed)&&v(t)}function Nt(e,t,n){t.__d=void 0;for(var i=0;i<n.length;i++)ft(n[i],n[++i],n[++i]);l.__c&&l.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(r){r.call(o)})}catch(r){l.__e(r,o.__v)}})}function oe(e,t,n,i,o,r,f,s,c){var u,v,_,k,a,g,S,w=n.props,h=t.props,d=t.type;if(d==="svg"?o="http://www.w3.org/2000/svg":d==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),r!=null){for(u=0;u<r.length;u++)if((a=r[u])&&"setAttribute"in a==!!d&&(d?a.localName===d:a.nodeType===3)){e=a,r[u]=null;break}}if(e==null){if(d===null)return document.createTextNode(h);e=document.createElementNS(o,d,h.is&&h),s&&(l.__m&&l.__m(t,r),s=!1),r=null}if(d===null)w===h||s&&e.data===h||(e.data=h);else{if(r=r&&G.call(e.childNodes),w=n.props||M,!s&&r!=null)for(w={},u=0;u<e.attributes.length;u++)w[(a=e.attributes[u]).name]=a.value;for(u in w)if(a=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")_=a;else if(!(u in h)){if(u=="value"&&"defaultValue"in h||u=="checked"&&"defaultChecked"in h)continue;R(e,u,null,a,o)}}for(u in h)a=h[u],u=="children"?k=a:u=="dangerouslySetInnerHTML"?v=a:u=="value"?g=a:u=="checked"?S=a:s&&typeof a!="function"||w[u]===a||R(e,u,a,w[u],o);if(v)s||_&&(v.__html===_.__html||v.__html===e.innerHTML)||(e.innerHTML=v.__html),t.__k=[];else if(_&&(e.innerHTML=""),Ht(e,rt(k)?k:[k],t,n,i,d==="foreignObject"?"http://www.w3.org/1999/xhtml":o,r,f,r?r[0]:n.__k&&$(n,0),s,c),r!=null)for(u=r.length;u--;)Et(r[u]);s||(u="value",d==="progress"&&g==null?e.removeAttribute("value"):g!==void 0&&(g!==e[u]||d==="progress"&&!g||d==="option"&&g!==w[u])&&R(e,u,g,w[u],o),u="checked",S!==void 0&&S!==e[u]&&R(e,u,S,w[u],o))}return e}function ft(e,t,n){try{if(typeof e=="function"){var i=typeof e.__u=="function";i&&e.__u(),i&&t==null||(e.__u=e(t))}else e.current=t}catch(o){l.__e(o,n)}}function $t(e,t,n){var i,o;if(l.unmount&&l.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||ft(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(r){l.__e(r,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&$t(i[o],t,n||typeof e.type!="function");n||Et(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function re(e,t,n){return this.constructor(e,n)}function Ft(e,t,n){var i,o,r,f;l.__&&l.__(e,t),o=(i=typeof n=="function")?null:n&&n.__k||t.__k,r=[],f=[],_t(t,e=(!i&&n||t).__k=ee(E,null,[e]),o||M,M,t.namespaceURI,!i&&n?[n]:o?null:t.firstChild?G.call(t.childNodes):null,r,!i&&n?n:o?o.__e:t.firstChild,i,f),Nt(r,e,f)}G=Ct.slice,l={__e:function(e,t,n,i){for(var o,r,f;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(e)),f=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,i||{}),f=o.__d),f)return o.__E=o}catch(s){e=s}throw e}},xt=0,it=function(e){return e!=null&&e.constructor==null},N.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=H({},this.state),typeof e=="function"&&(e=e(H({},n),this.props)),e&&H(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),bt(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),bt(this))},N.prototype.render=E,P=[],St=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tt=function(e,t){return e.__v.__b-t.__v.__b},q.__r=0,ot=0,et=kt(!1),nt=kt(!0),Yt=0;var J,x,ut,Dt,Tt=0,Ot=[],m=l,At=m.__b,jt=m.__r,Mt=m.diffed,Wt=m.__c,It=m.unmount,Lt=m.__;function Rt(e,t){m.__h&&m.__h(x,e,Tt||t),Tt=0;var n=x.__H||(x.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Z(e,t){var n=Rt(J++,3);!m.__s&&Vt(n.__H,t)&&(n.__=e,n.i=t,x.__H.__h.push(n))}function at(e,t){var n=Rt(J++,7);return Vt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function _e(){for(var e;e=Ot.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(z),e.__H.__h.forEach(st),e.__H.__h=[]}catch(t){e.__H.__h=[],m.__e(t,e.__v)}}m.__b=function(e){x=null,At&&At(e)},m.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Lt&&Lt(e,t)},m.__r=function(e){jt&&jt(e),J=0;var t=(x=e.__c).__H;t&&(ut===x?(t.__h=[],x.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(z),t.__h.forEach(st),t.__h=[],J=0)),ut=x},m.diffed=function(e){Mt&&Mt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ot.push(t)!==1&&Dt===m.requestAnimationFrame||((Dt=m.requestAnimationFrame)||fe)(_e)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ut=x=null},m.__c=function(e,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(i){return!i.__||st(i)})}catch(i){t.some(function(o){o.__h&&(o.__h=[])}),t=[],m.__e(i,n.__v)}}),Wt&&Wt(e,t)},m.unmount=function(e){It&&It(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{z(i)}catch(o){t=o}}),n.__H=void 0,t&&m.__e(t,n.__v))};var Bt=typeof requestAnimationFrame=="function";function fe(e){var t,n=function(){clearTimeout(i),Bt&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Bt&&(t=requestAnimationFrame(n))}function z(e){var t=x,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),x=t}function st(e){var t=x;e.__c=e.__(),x=t}function Vt(e,t){return!e||e.length!==t.length||t.some(function(n,i){return n!==e[i]})}var ue=Symbol.for("preact-signals");function lt(){if(F>1)F--;else{for(var e,t=!1;W!==void 0;){var n=W;for(W=void 0,ct++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Gt(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=i}}if(ct=0,F--,t)throw e}}var p=void 0;var W=void 0,F=0,ct=0,K=0;function qt(e){if(p!==void 0){var t=e.n;if(t===void 0||t.t!==p)return t={i:0,S:e,p:p.s,n:void 0,t:p,e:void 0,x:void 0,r:t},p.s!==void 0&&(p.s.n=t),p.s=t,e.n=t,32&p.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=p.s,t.n=void 0,p.s.n=t,p.s=t),t}}function b(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}b.prototype.brand=ue;b.prototype.h=function(){return!0};b.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};b.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};b.prototype.subscribe=function(e){var t=this;return Q(function(){var n=t.value,i=p;p=void 0;try{e(n)}finally{p=i}})};b.prototype.valueOf=function(){return this.value};b.prototype.toString=function(){return this.value+""};b.prototype.toJSON=function(){return this.value};b.prototype.peek=function(){var e=p;p=void 0;try{return this.value}finally{p=e}};Object.defineProperty(b.prototype,"value",{get:function(){var e=qt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ct>100)throw new Error("Cycle detected");this.v=e,this.i++,K++,F++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{lt()}}}});function vt(e){return new b(e)}function Gt(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function zt(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Jt(e){for(var t=e.s,n=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=n}function D(e){b.call(this,void 0),this.x=e,this.s=void 0,this.g=K-1,this.f=4}(D.prototype=new b).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===K))return!0;if(this.g=K,this.f|=1,this.i>0&&!Gt(this))return this.f&=-2,!0;var e=p;try{zt(this),p=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return p=e,Jt(this),this.f&=-2,!0};D.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}b.prototype.S.call(this,e)};D.prototype.U=function(e){if(this.t!==void 0&&(b.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};D.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(D.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=qt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Zt(e){return new D(e)}function Kt(e){var t=e.u;if(e.u=void 0,typeof t=="function"){F++;var n=p;p=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,pt(e),i}finally{p=n,lt()}}}function pt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Kt(e)}function se(e){if(p!==this)throw new Error("Out-of-order effect");Jt(this),p=e,this.f&=-2,8&this.f&&pt(this),lt()}function I(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}I.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};I.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Kt(this),zt(this),F++;var e=p;return p=this,se.bind(this,e)};I.prototype.N=function(){2&this.f||(this.f|=2,this.o=W,W=this)};I.prototype.d=function(){this.f|=8,1&this.f||pt(this)};function Q(e){var t=new I(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var dt,ht;function T(e,t){l[e]=t.bind(null,l[e]||function(){})}function X(e){ht&&ht(),ht=e&&e.S()}function Qt(e){var t=this,n=e.data,i=yt(n);i.value=n;var o=at(function(){for(var r=t.__v;r=r.__;)if(r.__c){r.__c.__$f|=4;break}return t.__$u.c=function(){var f;!it(o.peek())&&((f=t.base)==null?void 0:f.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},Zt(function(){var f=i.value.value;return f===0?0:f===!0?"":f||""})},[]);return o.value}Qt.displayName="_st";Object.defineProperties(b.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Qt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});T("__b",function(e,t){if(typeof t.type=="string"){var n,i=t.props;for(var o in i)if(o!=="children"){var r=i[o];r instanceof b&&(n||(t.__np=n={}),n[o]=r,i[o]=r.peek())}}e(t)});T("__r",function(e,t){X();var n,i=t.__c;i&&(i.__$f&=-2,(n=i.__$u)===void 0&&(i.__$u=n=function(o){var r;return Q(function(){r=this}),r.c=function(){i.__$f|=1,i.setState({})},r}())),dt=i,X(n),e(t)});T("__e",function(e,t,n,i){X(),dt=void 0,e(t,n,i)});T("diffed",function(e,t){X(),dt=void 0;var n;if(typeof t.type=="string"&&(n=t.__e)){var i=t.__np,o=t.props;if(i){var r=n.U;if(r)for(var f in r){var s=r[f];s!==void 0&&!(f in i)&&(s.d(),r[f]=void 0)}else n.U=r={};for(var c in i){var u=r[c],v=i[c];u===void 0?(u=ae(n,c,v,o),r[c]=u):u.o(v,o)}}}e(t)});function ae(e,t,n,i){var o=t in e&&e.ownerSVGElement===void 0,r=vt(n);return{o:function(f,s){r.value=f,i=s},d:Q(function(){var f=r.value.value;i[t]!==f&&(i[t]=f,o?e[t]=f:f?e.setAttribute(t,f):e.removeAttribute(t))})}}T("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var i=n.U;if(i){n.U=void 0;for(var o in i){var r=i[o];r&&r.d()}}}}else{var f=t.__c;if(f){var s=f.__$u;s&&(f.__$u=void 0,s.d())}}e(t)});T("__h",function(e,t,n,i){(i<3||i===9)&&(t.__$f|=2),e(t,n,i)});N.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var i in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var r in this.props)if(!(r in e))return!0;return!1};function yt(e){return at(function(){return vt(e)},[])}var ce=0,Se=Array.isArray;function y(e,t,n,i,o,r){t||(t={});var f,s,c=t;"ref"in t&&(f=t.ref,delete t.ref);var u={type:e,props:c,key:n,ref:f,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ce,__i:-1,__u:0,__source:o,__self:r};if(typeof e=="function"&&(f=e.defaultProps))for(s in f)c[s]===void 0&&(c[s]=f[s]);return l.vnode&&l.vnode(u),u}var le=e=>{let{frame:t}=e;return y(E,{children:y("div",{class:"flex flex-row gap-2",children:[y("div",{children:t.Func}),y("div",{children:t.File}),y("div",{children:t.Line})]})})};function ve(){let e=yt([]),t=async()=>{let o=await(await fetch("./raw")).json();o=o.map(r=>(r.Wait=Number(BigInt(r.Wait)/BigInt(1e6)),r)),e.value=o};return Z(()=>{t()},[]),Z(()=>{e&&console.log(e)},[e]),e?y(E,{children:y("div",{class:"flex flex-col",children:[y("div",{class:"flex flex-row gap-2",children:[y("div",{children:"length:"}),y("div",{children:e.value.length})]}),y("div",{children:e.value.map((n,i)=>y("div",{id:"id-".concat(n.ID),class:"flex flex-row gap-2",children:[y("div",{children:n.ID}),y("div",{children:n.Wait}),y("div",{children:n.Stack}),n.CreatedBy&&y("div",{children:y(le,{frame:n.CreatedBy})})]}))})]})}):y(E,{children:y("div",{children:"fetching"})})}var Xt=document.getElementById("root");Xt?Ft(y(ve,{}),Xt):console.error("no root element found");})();
|
|
//# sourceMappingURL=bundle.js.map
|