ray-template/js/preact@10.25.4--QYavupV.js

2 lines
17 KiB
JavaScript

var I,s,$e,S,ne,xe,Z,Se,X,G,J,T={},Ce=[],De=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,B=Array.isArray;function x(e,_){for(var t in _)e[t]=_[t];return e}function Y(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function K(e,_,t){var n,r,i,l={};for(i in _)i=="key"?n=_[i]:i=="ref"?r=_[i]:l[i]=_[i];if(arguments.length>2&&(l.children=arguments.length>3?I.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 D(e,l,n,r,null)}function D(e,_,t,n,r){var i={type:e,props:_,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++$e,__i:-1,__u:0};return r==null&&s.vnode!=null&&s.vnode(i),i}function r_(){return{current:null}}function C(e){return e.children}function P(e,_){this.props=e,this.context=_}function E(e,_){if(_==null)return e.__?E(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"?E(e):null}function Ee(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 Ee(e)}}function re(e){(!e.__d&&(e.__d=!0)&&S.push(e)&&!R.__r++||ne!==s.debounceRendering)&&((ne=s.debounceRendering)||xe)(R)}function R(){var e,_,t,n,r,i,l,u;for(S.sort(Z);e=S.shift();)e.__d&&(_=S.length,n=void 0,i=(r=(t=e).__v).__e,l=[],u=[],t.__P&&((n=x({},r)).__v=r.__v+1,s.vnode&&s.vnode(n),ee(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,l,i??E(r),!!(32&r.__u),u),n.__v=r.__v,n.__.__k[n.__i]=n,Ne(l,n,u),n.__e!=i&&Ee(n)),S.length>_&&S.sort(Z));R.__r=0}function He(e,_,t,n,r,i,l,u,c,f,p){var o,v,a,m,b,y,h=n&&n.__k||Ce,d=_.length;for(c=Le(t,_,h,c,d),o=0;o<d;o++)(a=t.__k[o])!=null&&(v=a.__i===-1?T:h[a.__i]||T,a.__i=o,y=ee(e,a,v,r,i,l,u,c,f,p),m=a.__e,a.ref&&v.ref!=a.ref&&(v.ref&&_e(v.ref,null,a),p.push(a.ref,a.__c||m,a)),b==null&&m!=null&&(b=m),4&a.__u||v.__k===a.__k?c=Ue(a,c,e):typeof a.type=="function"&&y!==void 0?c=y:m&&(c=m.nextSibling),a.__u&=-7);return t.__e=b,c}function Le(e,_,t,n,r){var i,l,u,c,f,p=t.length,o=p,v=0;for(e.__k=new Array(r),i=0;i<r;i++)(l=_[i])!=null&&typeof l!="boolean"&&typeof l!="function"?(c=i+v,(l=e.__k[i]=typeof l=="string"||typeof l=="number"||typeof l=="bigint"||l.constructor==String?D(null,l,null,null,null):B(l)?D(C,{children:l},null,null,null):l.constructor===void 0&&l.__b>0?D(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,u=null,(f=l.__i=Re(l,t,c,o))!==-1&&(o--,(u=t[f])&&(u.__u|=2)),u==null||u.__v===null?(f==-1&&v--,typeof l.type!="function"&&(l.__u|=4)):f!=c&&(f==c-1?v--:f==c+1?v++:(f>c?v--:v++,l.__u|=4))):e.__k[i]=null;if(o)for(i=0;i<p;i++)(u=t[i])!=null&&!(2&u.__u)&&(u.__e==n&&(n=E(u)),Te(u,u));return n}function Ue(e,_,t){var n,r;if(typeof e.type=="function"){for(n=e.__k,r=0;n&&r<n.length;r++)n[r]&&(n[r].__=e,_=Ue(n[r],_,t));return _}e.__e!=_&&(_&&e.type&&!t.contains(_)&&(_=E(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 Re(e,_,t,n){var r,i,l=e.key,u=e.type,c=_[t];if(c===null||c&&l==c.key&&u===c.type&&!(2&c.__u))return t;if(n>(c!=null&&!(2&c.__u)?1:0))for(r=t-1,i=t+1;r>=0||i<_.length;){if(r>=0){if((c=_[r])&&!(2&c.__u)&&l==c.key&&u===c.type)return r;r--}if(i<_.length){if((c=_[i])&&!(2&c.__u)&&l==c.key&&u===c.type)return i;i++}}return-1}function oe(e,_,t){_[0]=="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||De.test(_)?t:t+"px"}function M(e,_,t,n,r){var i;e: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||oe(e.style,_,"");if(t)for(_ in t)n&&t[_]===n[_]||oe(e.style,_,t[_])}else if(_[0]=="o"&&_[1]=="n")i=_!=(_=_.replace(Se,"$1")),_=_.toLowerCase()in e||_=="onFocusOut"||_=="onFocusIn"?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+i]=t,t?n?t.u=n.u:(t.u=X,e.addEventListener(_,i?J:G,i)):e.removeEventListener(_,i?J:G,i);else{if(r=="http://www.w3.org/2000/svg")_=_.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_!="width"&&_!="height"&&_!="href"&&_!="list"&&_!="form"&&_!="tabIndex"&&_!="download"&&_!="rowSpan"&&_!="colSpan"&&_!="role"&&_!="popover"&&_ in e)try{e[_]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&_[4]!="-"?e.removeAttribute(_):e.setAttribute(_,_=="popover"&&t==1?"":t))}}function ie(e){return function(_){if(this.l){var t=this.l[_.type+e];if(_.t==null)_.t=X++;else if(_.t<t.u)return;return t(s.event?s.event(_):_)}}}function ee(e,_,t,n,r,i,l,u,c,f){var p,o,v,a,m,b,y,h,d,H,$,A,U,te,F,V,j,k=_.type;if(_.constructor!==void 0)return null;128&t.__u&&(c=!!(32&t.__u),i=[u=_.__e=t.__e]),(p=s.__b)&&p(_);e:if(typeof k=="function")try{if(h=_.props,d="prototype"in k&&k.prototype.render,H=(p=k.contextType)&&n[p.__c],$=p?H?H.props.value:p.__:n,t.__c?y=(o=_.__c=t.__c).__=o.__E:(d?_.__c=o=new k(h,$):(_.__c=o=new P(h,$),o.constructor=k,o.render=Ie),H&&H.sub(o),o.props=h,o.state||(o.state={}),o.context=$,o.__n=n,v=o.__d=!0,o.__h=[],o._sb=[]),d&&o.__s==null&&(o.__s=o.state),d&&k.getDerivedStateFromProps!=null&&(o.__s==o.state&&(o.__s=x({},o.__s)),x(o.__s,k.getDerivedStateFromProps(h,o.__s))),a=o.props,m=o.state,o.__v=_,v)d&&k.getDerivedStateFromProps==null&&o.componentWillMount!=null&&o.componentWillMount(),d&&o.componentDidMount!=null&&o.__h.push(o.componentDidMount);else{if(d&&k.getDerivedStateFromProps==null&&h!==a&&o.componentWillReceiveProps!=null&&o.componentWillReceiveProps(h,$),!o.__e&&(o.shouldComponentUpdate!=null&&o.shouldComponentUpdate(h,o.__s,$)===!1||_.__v==t.__v)){for(_.__v!=t.__v&&(o.props=h,o.state=o.__s,o.__d=!1),_.__e=t.__e,_.__k=t.__k,_.__k.some(function(N){N&&(N.__=_)}),A=0;A<o._sb.length;A++)o.__h.push(o._sb[A]);o._sb=[],o.__h.length&&l.push(o);break e}o.componentWillUpdate!=null&&o.componentWillUpdate(h,o.__s,$),d&&o.componentDidUpdate!=null&&o.__h.push(function(){o.componentDidUpdate(a,m,b)})}if(o.context=$,o.props=h,o.__P=e,o.__e=!1,U=s.__r,te=0,d){for(o.state=o.__s,o.__d=!1,U&&U(_),p=o.render(o.props,o.state,o.context),F=0;F<o._sb.length;F++)o.__h.push(o._sb[F]);o._sb=[]}else do o.__d=!1,U&&U(_),p=o.render(o.props,o.state,o.context),o.state=o.__s;while(o.__d&&++te<25);o.state=o.__s,o.getChildContext!=null&&(n=x(x({},n),o.getChildContext())),d&&!v&&o.getSnapshotBeforeUpdate!=null&&(b=o.getSnapshotBeforeUpdate(a,m)),u=He(e,B(V=p!=null&&p.type===C&&p.key==null?p.props.children:p)?V:[V],_,t,n,r,i,l,u,c,f),o.base=_.__e,_.__u&=-161,o.__h.length&&l.push(o),y&&(o.__E=o.__=null)}catch(N){if(_.__v=null,c||i!=null)if(N.then){for(_.__u|=c?160:128;u&&u.nodeType==8&&u.nextSibling;)u=u.nextSibling;i[i.indexOf(u)]=null,_.__e=u}else for(j=i.length;j--;)Y(i[j]);else _.__e=t.__e,_.__k=t.__k;s.__e(N,_,t)}else i==null&&_.__v==t.__v?(_.__k=t.__k,_.__e=t.__e):u=_.__e=We(t.__e,_,t,n,r,i,l,c,f);return(p=s.diffed)&&p(_),128&_.__u?void 0:u}function Ne(e,_,t){for(var n=0;n<t.length;n++)_e(t[n],t[++n],t[++n]);s.__c&&s.__c(_,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(i){i.call(r)})}catch(i){s.__e(i,r.__v)}})}function We(e,_,t,n,r,i,l,u,c){var f,p,o,v,a,m,b,y=t.props,h=_.props,d=_.type;if(d=="svg"?r="http://www.w3.org/2000/svg":d=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),i!=null){for(f=0;f<i.length;f++)if((a=i[f])&&"setAttribute"in a==!!d&&(d?a.localName==d:a.nodeType==3)){e=a,i[f]=null;break}}if(e==null){if(d==null)return document.createTextNode(h);e=document.createElementNS(r,d,h.is&&h),u&&(s.__m&&s.__m(_,i),u=!1),i=null}if(d===null)y===h||u&&e.data===h||(e.data=h);else{if(i=i&&I.call(e.childNodes),y=t.props||T,!u&&i!=null)for(y={},f=0;f<e.attributes.length;f++)y[(a=e.attributes[f]).name]=a.value;for(f in y)if(a=y[f],f!="children"){if(f=="dangerouslySetInnerHTML")o=a;else if(!(f in h)){if(f=="value"&&"defaultValue"in h||f=="checked"&&"defaultChecked"in h)continue;M(e,f,null,a,r)}}for(f in h)a=h[f],f=="children"?v=a:f=="dangerouslySetInnerHTML"?p=a:f=="value"?m=a:f=="checked"?b=a:u&&typeof a!="function"||y[f]===a||M(e,f,a,y[f],r);if(p)u||o&&(p.__html===o.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),_.__k=[];else if(o&&(e.innerHTML=""),He(e,B(v)?v:[v],_,t,n,d=="foreignObject"?"http://www.w3.org/1999/xhtml":r,i,l,i?i[0]:t.__k&&E(t,0),u,c),i!=null)for(f=i.length;f--;)Y(i[f]);u||(f="value",d=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[f]||d=="progress"&&!m||d=="option"&&m!==y[f])&&M(e,f,m,y[f],r),f="checked",b!==void 0&&b!==e[f]&&M(e,f,b,y[f],r))}return e}function _e(e,_,t){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&_==null||(e.__u=e(_))}else e.current=_}catch(r){s.__e(r,t)}}function Te(e,_,t){var n,r;if(s.unmount&&s.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||_e(n,null,_)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){s.__e(i,_)}n.base=n.__P=null}if(n=e.__k)for(r=0;r<n.length;r++)n[r]&&Te(n[r],_,t||typeof e.type!="function");t||Y(e.__e),e.__c=e.__=e.__e=void 0}function Ie(e,_,t){return this.constructor(e,t)}function Be(e,_,t){var n,r,i,l;_==document&&(_=document.documentElement),s.__&&s.__(e,_),r=(n=!1)?null:_.__k,i=[],l=[],ee(_,e=_.__k=K(C,null,[e]),r||T,T,_.namespaceURI,r?null:_.firstChild?I.call(_.childNodes):null,i,r?r.__e:_.firstChild,n,l),Ne(i,e,l)}I=Ce.slice,s={__e:function(e,_,t,n){for(var r,i,l;_=_.__;)if((r=_.__c)&&!r.__)try{if((i=r.constructor)&&i.getDerivedStateFromError!=null&&(r.setState(i.getDerivedStateFromError(e)),l=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(e,n||{}),l=r.__d),l)return r.__E=r}catch(u){e=u}throw e}},$e=0,P.prototype.setState=function(e,_){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=x({},this.state),typeof e=="function"&&(e=e(x({},t),this.props)),e&&x(t,e),e!=null&&this.__v&&(_&&this._sb.push(_),re(this))},P.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),re(this))},P.prototype.render=C,S=[],xe=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Z=function(e,_){return e.__v.__b-_.__v.__b},R.__r=0,Se=/(PointerCapture)$|Capture$/i,X=0,G=ie(!1),J=ie(!0);var w,q,le,Ae=[],g=s,ue=g.__b,fe=g.__r,ce=g.diffed,ae=g.__c,se=g.unmount,pe=g.__;function Ve(){for(var e;e=Ae.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(L),e.__H.__h.forEach(Q),e.__H.__h=[]}catch(_){e.__H.__h=[],g.__e(_,e.__v)}}g.__b=function(e){w=null,ue&&ue(e)},g.__=function(e,_){e&&_.__k&&_.__k.__m&&(e.__m=_.__k.__m),pe&&pe(e,_)},g.__r=function(e){fe&&fe(e);var _=(w=e.__c).__H;_&&(q===w?(_.__h=[],w.__h=[],_.__.forEach(function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0})):(_.__h.forEach(L),_.__h.forEach(Q),_.__h=[])),q=w},g.diffed=function(e){ce&&ce(e);var _=e.__c;_&&_.__H&&(_.__H.__h.length&&(Ae.push(_)!==1&&le===g.requestAnimationFrame||((le=g.requestAnimationFrame)||je)(Ve)),_.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.i=void 0})),q=w=null},g.__c=function(e,_){_.some(function(t){try{t.__h.forEach(L),t.__h=t.__h.filter(function(n){return!n.__||Q(n)})}catch(n){_.some(function(r){r.__h&&(r.__h=[])}),_=[],g.__e(n,t.__v)}}),ae&&ae(e,_)},g.unmount=function(e){se&&se(e);var _,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{L(n)}catch(r){_=r}}),t.__H=void 0,_&&g.__e(_,t.__v))};var he=typeof requestAnimationFrame=="function";function je(e){var _,t=function(){clearTimeout(n),he&&cancelAnimationFrame(_),setTimeout(e)},n=setTimeout(t,100);he&&(_=requestAnimationFrame(t))}function L(e){var _=w,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),w=_}function Q(e){var _=w;e.__c=e.__(),w=_}function qe(e,_){for(var t in _)e[t]=_[t];return e}function de(e,_){for(var t in e)if(t!=="__source"&&!(t in _))return!0;for(var n in _)if(n!=="__source"&&e[n]!==_[n])return!0;return!1}function ve(e,_){this.props=e,this.context=_}(ve.prototype=new P).isPureReactComponent=!0,ve.prototype.shouldComponentUpdate=function(e,_){return de(this.props,e)||de(this.state,_)};var me=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),me&&me(e)};var ze=s.__e;s.__e=function(e,_,t,n){if(e.then){for(var r,i=_;i=i.__;)if((r=i.__c)&&r.__c)return _.__e==null&&(_.__e=t.__e,_.__k=t.__k),r.__c(e,_)}ze(e,_,t,n)};var ye=s.unmount;function Fe(e,_,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=qe({},e)).__c!=null&&(e.__c.__P===t&&(e.__c.__P=_),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Fe(n,_,t)})),e}function Me(e,_,t){return e&&t&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Me(n,_,t)}),e.__c&&e.__c.__P===_&&(e.__e&&t.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=t)),e}function z(){this.__u=0,this.o=null,this.__b=null}function Oe(e){var _=e.__.__c;return _&&_.__a&&_.__a(e)}function O(){this.i=null,this.l=null}s.unmount=function(e){var _=e.__c;_&&_.__R&&_.__R(),_&&32&e.__u&&(e.type=null),ye&&ye(e)},(z.prototype=new P).__c=function(e,_){var t=_.__c,n=this;n.o==null&&(n.o=[]),n.o.push(t);var r=Oe(n.__v),i=!1,l=function(){i||(i=!0,t.__R=null,r?r(u):u())};t.__R=l;var u=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Me(c,c.__c.__P,c.__c.__O)}var f;for(n.setState({__a:n.__b=null});f=n.o.pop();)f.forceUpdate()}};n.__u++||32&_.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(l,l)},z.prototype.componentWillUnmount=function(){this.o=[]},z.prototype.render=function(e,_){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Fe(this.__b,t,n.__O=n.__P)}this.__b=null}var r=_.__a&&K(C,null,e.fallback);return r&&(r.__u&=-33),[K(C,null,_.__a?null:e.children),r]};var ge=function(e,_,t){if(++t[1]===t[0]&&e.l.delete(_),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.i=t=t[2]}};(O.prototype=new P).__a=function(e){var _=this,t=Oe(_.__v),n=_.l.get(e);return n[0]++,function(r){var i=function(){_.props.revealOrder?(n.push(r),ge(_,e,n)):r()};t?t(i):i()}},O.prototype.render=function(e){this.i=null,this.l=new Map;var _=W(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&_.reverse();for(var t=_.length;t--;)this.l.set(_[t],this.i=[1,0,this.i]);return e.children},O.prototype.componentDidUpdate=O.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(_,t){ge(e,t,_)})};var Ze=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ge=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Je=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ke=/[A-Z0-9]/g,Qe=typeof document<"u",Xe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function o_(e,_,t){return _.__k==null&&(_.textContent=""),Be(e,_),typeof t=="function"&&t(),e?e.__c:null}P.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(P.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(_){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:_})}})});var be=s.event;function Ye(){}function e_(){return this.cancelBubble}function __(){return this.defaultPrevented}s.event=function(e){return be&&(e=be(e)),e.persist=Ye,e.isPropagationStopped=e_,e.isDefaultPrevented=__,e.nativeEvent=e};var t_={enumerable:!1,configurable:!0,get:function(){return this.class}},ke=s.vnode;s.vnode=function(e){typeof e.type=="string"&&function(_){var t=_.props,n=_.type,r={},i=n.indexOf("-")===-1;for(var l in t){var u=t[l];if(!(l==="value"&&"defaultValue"in t&&u==null||Qe&&l==="children"&&n==="noscript"||l==="class"||l==="className")){var c=l.toLowerCase();l==="defaultValue"&&"value"in t&&t.value==null?l="value":l==="download"&&u===!0?u="":c==="translate"&&u==="no"?u=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?l="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Xe(t.type)?c==="onfocus"?l="onfocusin":c==="onblur"?l="onfocusout":Je.test(l)&&(l=c):c=l="oninput":i&&Ge.test(l)?l=l.replace(Ke,"-$&").toLowerCase():u===null&&(u=void 0),c==="oninput"&&r[l=c]&&(l="oninputCapture"),r[l]=u}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=W(t.children).forEach(function(f){f.props.selected=r.value.indexOf(f.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=W(t.children).forEach(function(f){f.props.selected=r.multiple?r.defaultValue.indexOf(f.props.value)!=-1:r.defaultValue==f.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",t_)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),_.props=r}(e),e.$$typeof=Ze,ke&&ke(e)};var we=s.__r;s.__r=function(e){we&&we(e),e.__c};var Pe=s.diffed;s.diffed=function(e){Pe&&Pe(e);var _=e.props,t=e.__e;t!=null&&e.type==="textarea"&&"value"in _&&_.value!==t.value&&(t.value=_.value==null?"":_.value)};var n_=0;function i_(e,_,t,n,r,i){_||(_={});var l,u,c=_;if("ref"in c)for(u in c={},_)u=="ref"?l=_[u]:c[u]=_[u];var f={type:e,props:c,key:t,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--n_,__i:-1,__u:0,__source:r,__self:i};if(typeof e=="function"&&(l=e.defaultProps))for(u in l)c[u]===void 0&&(c[u]=l[u]);return s.vnode&&s.vnode(f),f}export{r_ as b,K as g,o_ as n,i_ as u,P as x};