nanobot-voice-interface/frontend/node_modules/preact/dist/preact.min.module.js

3 lines
11 KiB
JavaScript
Raw Normal View History

2026-03-06 22:51:19 -05:00
var n,l,t,u,i,e,r,o,f,c,s,a,h,p,v={},y=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function m(n,l){for(var t in l)n[t]=l[t];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function g(l,t,u){var i,e,r,o={};for(r in t)"key"==r?i=t[r]:"ref"==r?e=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?n.call(arguments,2):u),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===o[r]&&(o[r]=l.defaultProps[r]);return b(l,o,i,e,null)}function b(n,u,i,e,r){var o={type:n,props:u,key:i,ref:e,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++t:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(o),o}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var t;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e)return t.__e;return"function"==typeof n.type?C(n):null}function S(n){if(n.__P&&n.__d){var t=n.__v,u=t.__e,i=[],e=[],r=m({},t);r.__v=t.__v+1,l.vnode&&l.vnode(r),j(n.__P,r,t,n.__n,n.__P.namespaceURI,32&t.__u?[u]:null,i,null==u?C(t):u,!!(32&t.__u),e),r.__v=t.__v,r.__.__k[r.__i]=r,V(i,r,e),t.__e=t.__=null,r.__e!=u&&M(r)}}function M(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),M(n)}function $(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!A.__r++||e!=l.debounceRendering)&&((e=l.debounceRendering)||r)(A)}function A(){for(var n,l=1;i.length;)i.length>l&&i.sort(o),n=i.shift(),l=i.length,S(n);A.__r=0}function I(n,l,t,u,i,e,r,o,f,c,s){var a,h,p,d,w,m,_,g=u&&u.__k||y,b=l.length;for(f=P(t,l,g,f,b),a=0;a<b;a++)null!=(p=t.__k[a])&&(h=-1!=p.__i&&g[p.__i]||v,p.__i=a,m=j(n,p,h,i,e,r,o,f,c,s),d=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&R(h.ref,null,p),s.push(p.ref,p.__c||d,p)),null==w&&null!=d&&(w=d),(_=!!(4&p.__u))||h.__k===p.__k?f=E(p,f,n,_):"function"==typeof p.type&&void 0!==m?f=m:d&&(f=d.nextSibling),p.__u&=-7);return t.__e=w,f}function P(n,l,t,u,i){var e,r,o,f,c,s=t.length,a=s,h=0;for(n.__k=new Array(i),e=0;e<i;e++)null!=(r=l[e])&&"boolean"!=typeof r&&"function"!=typeof r?("string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?r=n.__k[e]=b(null,r,null,null,null):w(r)?r=n.__k[e]=b(k,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?r=n.__k[e]=b(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):n.__k[e]=r,f=e+h,r.__=n,r.__b=n.__b+1,o=null,-1!=(c=r.__i=F(r,t,f,a))&&(a--,(o=t[c])&&(o.__u|=2)),null==o||null==o.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof r.type&&(r.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,r.__u|=4))):n.__k[e]=null;if(a)for(e=0;e<s;e++)null!=(o=t[e])&&0==(2&o.__u)&&(o.__e==u&&(u=C(o)),q(o,o));return u}function E(n,l,t,u){var i,e;if("function"==typeof n.type){for(i=n.__k,e=0;i&&e<i.length;e++)i[e]&&(i[e].__=n,l=E(i[e],l,t,u));return l}n.__e!=l&&(u&&(l&&n.type&&!l.parentNode&&(l=C(n)),t.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function F(n,l,t,u){var i,e,r,o=n.key,f=n.type,c=l[t],s=null!=c&&0==(2&c.__u);if(null===c&&null==o||s&&o==c.key&&f==c.type)return t;if(u>(s?1:0))for(i=t-1,e=t+1;i>=0||e<l.length;)if(null!=(c=l[r=i>=0?i--:e++])&&0==(2&c.__u)&&o==c.key&&f==c.type)return r;return-1}function H(n,l,t){"-"==l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||d.test(l)?t:t+"px"}function L(n,l,t,u,i){var e,r;n:if("style"==l)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof u&&(n.style.cssText=u=""),u)for(l in u)t&&l in t||H(n.style,l,"");if(t)for(l in t)u&&t[l]==u[l]||H(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])e=l!=(l=l.replace(f,"$1")),r=l.toLowerCase(),l=r in n||"onFocusOut"==l||"onFocusIn"==l?r.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+e]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,e?a:s,e)):n.removeEventListener(l,e?a:s,e);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"downloa
//# sourceMappingURL=preact.min.module.js.map