mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-08 07:43:08 +00:00
2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
|
|
var F,d,d_,v_,H,o_,m_,z,Y,G,J,y_,M={},g_=[],M_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,B=Array.isArray;function C(e,_){for(var t in _)e[t]=_[t];return e}function b_(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function K(e,_,t){var n,o,i,l={};for(i in _)i=="key"?n=_[i]:i=="ref"?o=_[i]:l[i]=_[i];if(arguments.length>2&&(l.children=arguments.length>3?F.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return N(e,l,n,o,null)}function N(e,_,t,n,o){var i={type:e,props:_,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++d_,__i:-1,__u:0};return o==null&&d.vnode!=null&&d.vnode(i),i}function F_(){return{current:null}}function A(e){return e.children}function D(e,_){this.props=e,this.context=_}function S(e,_){if(_==null)return e.__?S(e.__,e.__i+1):null;for(var t;_<e.__k.length;_++)if((t=e.__k[_])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?S(e):null}function k_(e){var _,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,_=0;_<e.__k.length;_++)if((t=e.__k[_])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return k_(e)}}function Q(e){(!e.__d&&(e.__d=!0)&&H.push(e)&&!j.__r++||o_!==d.debounceRendering)&&((o_=d.debounceRendering)||m_)(j)}function j(){var e,_,t,n,o,i,l,u;for(H.sort(z);e=H.shift();)e.__d&&(_=H.length,n=void 0,i=(o=(t=e).__v).__e,l=[],u=[],t.__P&&((n=C({},o)).__v=o.__v+1,d.vnode&&d.vnode(n),Z(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[i]:null,l,i??S(o),!!(32&o.__u),u),n.__v=o.__v,n.__.__k[n.__i]=n,x_(l,n,u),n.__e!=i&&k_(n)),H.length>_&&H.sort(z));j.__r=0}function $_(e,_,t,n,o,i,l,u,s,c,a){var r,h,f,g,k,b=n&&n.__k||g_,v=_.length;for(t.__d=s,A_(t,_,b),s=t.__d,r=0;r<v;r++)(f=t.__k[r])!=null&&(h=f.__i===-1?M:b[f.__i]||M,f.__i=r,Z(e,f,h,o,i,l,u,s,c,a),g=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&__(h.ref,null,f),a.push(f.ref,f.__c||g,f)),k==null&&g!=null&&(k=g),65536&f.__u||h.__k===f.__k?s=C_(f,s,e):typeof f.type=="function"&&f.__d!==void 0?s=f.__d:g&&(s=g.nextSibling),f.__d=void 0,f.__u&=-196609);t.__d=s,t.__e=k}function A_(e,_,t){var n,o,i,l,u,s=_.length,c=t.length,a=c,r=0;for(e.__k=[],n=0;n<s;n++)(o=_[n])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=n+r,(o=e.__k[n]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?N(null,o,null,null,null):B(o)?N(A,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?N(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(u=o.__i=L_(o,t,l,a))!==-1&&(a--,(i=t[u])&&(i.__u|=131072)),i==null||i.__v===null?(u==-1&&r--,typeof o.type!="function"&&(o.__u|=65536)):u!==l&&(u==l-1?r--:u==l+1?r++:(u>l?r--:r++,o.__u|=65536))):o=e.__k[n]=null;if(a)for(n=0;n<c;n++)(i=t[n])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),H_(i,i))}function C_(e,_,t){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,_=C_(n[o],_,t));return _}e.__e!=_&&(_&&e.type&&!t.contains(_)&&(_=S(e)),t.insertBefore(e.__e,_||null),_=e.__e);do _=_&&_.nextSibling;while(_!=null&&_.nodeType===8);return _}function w_(e,_){return _=_||[],e==null||typeof e=="boolean"||(B(e)?e.some(function(t){w_(t,_)}):_.push(e)),_}function L_(e,_,t,n){var o=e.key,i=e.type,l=t-1,u=t+1,s=_[t];if(s===null||s&&o==s.key&&i===s.type&&!(131072&s.__u))return t;if(n>(s!=null&&!(131072&s.__u)?1:0))for(;l>=0||u<_.length;){if(l>=0){if((s=_[l])&&!(131072&s.__u)&&o==s.key&&i===s.type)return l;l--}if(u<_.length){if((s=_[u])&&!(131072&s.__u)&&o==s.key&&i===s.type)return u;u++}}return-1}function r_(e,_,t){_[0]==="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||M_.test(_)?t:t+"px"}function O(e,_,t,n,o){var i;_:if(_==="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(_ in n)t&&_ in t||r_(e.style,_,"");if(t)for(_ in t)n&&t[_]===n[_]||r_(e.style,_,t[_])}else if(_[0]==="o"&&_[1]==="n")i=_!==(_=_.replace(/(PointerCapture)$|Capture$/i,"$1")),_=_.toLowerCase()in e||_==="onFocusOut"||_==="onFocusIn"?_.toLowerCase().slice(2):_.slice(2),e.l|
|