`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
`+o.map(Mx).join(`
-`):" "+Mx(o[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:fy};function pm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tc(null,e)}function Lx(e){return pm(e),e.headers=ki.from(e.headers),e.data=dm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),K2.getAdapter(e.adapter||Av.adapter)(e).then(function(r){return pm(e),r.data=dm.call(e,e.transformResponse,r),r.headers=ki.from(r.headers),r},function(r){return W2(r)||(pm(e),r&&r.response&&(r.response.data=dm.call(e,e.transformResponse,r.response),r.response.headers=ki.from(r.response.headers))),Promise.reject(r)})}const zx=e=>e instanceof ki?e.toJSON():e;function wa(e,t){t=t||{};const n={};function r(u,c,f){return G.isPlainObject(u)&&G.isPlainObject(c)?G.merge.call({caseless:f},u,c):G.isPlainObject(c)?G.merge({},c):G.isArray(c)?c.slice():c}function i(u,c,f){if(G.isUndefined(c)){if(!G.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!G.isUndefined(c))return r(void 0,c)}function s(u,c){if(G.isUndefined(c)){if(!G.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(zx(u),zx(c),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,p=f(e[c],t[c],c);G.isUndefined(p)&&f!==a||(n[c]=p)}),n}const G2="1.6.7",Ov={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ov[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bx={};Ov.transitional=function(t,n,r){function i(o,s){return"[Axios v"+G2+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new De(i(s," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!Bx[s]&&(Bx[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function v3(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new De("option "+o+" must be "+l,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+o,De.ERR_BAD_OPTION)}}const dy={assertOptions:v3,validators:Ov},qi=dy.validators;class Pd{constructor(t){this.defaults=t,this.interceptors={request:new Dx,response:new Dx}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
-`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&dy.assertOptions(r,{silentJSONParsing:qi.transitional(qi.boolean),forcedJSONParsing:qi.transitional(qi.boolean),clarifyTimeoutError:qi.transitional(qi.boolean)},!1),i!=null&&(G.isFunction(i)?n.paramsSerializer={serialize:i}:dy.assertOptions(i,{encode:qi.function,serialize:qi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[n.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=ki.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,p;if(!l){const h=[Lx.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),p=h.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new tc(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Pv(function(i){t=i}),cancel:t}}}const w3=Pv;function b3(e){return function(n){return e.apply(null,n)}}function x3(e){return G.isObject(e)&&e.isAxiosError===!0}const py={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(py).forEach(([e,t])=>{py[t]=e});const S3=py;function Y2(e){const t=new If(e),n=A2(If.prototype.request,t);return G.extend(n,If.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Y2(wa(e,i))},n}const Rt=Y2(Av);Rt.Axios=If;Rt.CanceledError=tc;Rt.CancelToken=w3;Rt.isCancel=W2;Rt.VERSION=G2;Rt.toFormData=Np;Rt.AxiosError=De;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=b3;Rt.isAxiosError=x3;Rt.mergeConfig=wa;Rt.AxiosHeaders=ki;Rt.formToJSON=e=>H2(G.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=K2.getAdapter;Rt.HttpStatusCode=S3;Rt.default=Rt;const $3=Rt;function k3({apiUrl:e,sessionId:t,botToken:n}){const r=$3.create({baseURL:e,headers:{"X-Session-Id":t,"X-Bot-Token":n}});return r.interceptors.request.use(i=>(i.data={...i.data,session_id:t},i)),r}function _3(e){const t=[];return e&&e.forEach(n=>{n.from_user?t.push({from:"user",content:n.message,id:n.id,timestamp:new Date(n.created_at)}):t.push({from:"bot",id:n.id,timestamp:new Date(n.created_at),type:"text",response:{text:n.message}})}),t}async function E3(e){const{data:t}=await e.get("/chat/init"),n=_3(t.history);return{...t,history:n}}const[X2,C3]=ks();function T3({children:e}){const t=wr(),{sessionId:n}=_v((t==null?void 0:t.token)||"defaultToken"),r=O.useMemo(()=>k3({botToken:t==null?void 0:t.token,sessionId:n,apiUrl:t==null?void 0:t.apiUrl}),[t,n]);return S.jsx(C3,{value:{axiosInstance:r},children:e})}var Da={};/**
+`):" "+Mx(o[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:cy};function dm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tc(null,e)}function Lx(e){return dm(e),e.headers=ki.from(e.headers),e.data=fm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),K2.getAdapter(e.adapter||Av.adapter)(e).then(function(r){return dm(e),r.data=fm.call(e,e.transformResponse,r),r.headers=ki.from(r.headers),r},function(r){return W2(r)||(dm(e),r&&r.response&&(r.response.data=fm.call(e,e.transformResponse,r.response),r.response.headers=ki.from(r.response.headers))),Promise.reject(r)})}const zx=e=>e instanceof ki?e.toJSON():e;function wa(e,t){t=t||{};const n={};function r(u,c,f){return G.isPlainObject(u)&&G.isPlainObject(c)?G.merge.call({caseless:f},u,c):G.isPlainObject(c)?G.merge({},c):G.isArray(c)?c.slice():c}function i(u,c,f){if(G.isUndefined(c)){if(!G.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!G.isUndefined(c))return r(void 0,c)}function s(u,c){if(G.isUndefined(c)){if(!G.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(zx(u),zx(c),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,p=f(e[c],t[c],c);G.isUndefined(p)&&f!==a||(n[c]=p)}),n}const G2="1.6.7",Ov={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ov[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bx={};Ov.transitional=function(t,n,r){function i(o,s){return"[Axios v"+G2+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new De(i(s," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!Bx[s]&&(Bx[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function v3(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new De("option "+o+" must be "+l,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+o,De.ERR_BAD_OPTION)}}const fy={assertOptions:v3,validators:Ov},qi=fy.validators;class Pd{constructor(t){this.defaults=t,this.interceptors={request:new Dx,response:new Dx}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
+`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&fy.assertOptions(r,{silentJSONParsing:qi.transitional(qi.boolean),forcedJSONParsing:qi.transitional(qi.boolean),clarifyTimeoutError:qi.transitional(qi.boolean)},!1),i!=null&&(G.isFunction(i)?n.paramsSerializer={serialize:i}:fy.assertOptions(i,{encode:qi.function,serialize:qi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[n.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=ki.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,p;if(!l){const h=[Lx.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),p=h.length,c=Promise.resolve(n);f
{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new tc(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Pv(function(i){t=i}),cancel:t}}}const w3=Pv;function b3(e){return function(n){return e.apply(null,n)}}function x3(e){return G.isObject(e)&&e.isAxiosError===!0}const dy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dy).forEach(([e,t])=>{dy[t]=e});const S3=dy;function Y2(e){const t=new If(e),n=A2(If.prototype.request,t);return G.extend(n,If.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Y2(wa(e,i))},n}const Rt=Y2(Av);Rt.Axios=If;Rt.CanceledError=tc;Rt.CancelToken=w3;Rt.isCancel=W2;Rt.VERSION=G2;Rt.toFormData=Rp;Rt.AxiosError=De;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=b3;Rt.isAxiosError=x3;Rt.mergeConfig=wa;Rt.AxiosHeaders=ki;Rt.formToJSON=e=>H2(G.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=K2.getAdapter;Rt.HttpStatusCode=S3;Rt.default=Rt;const $3=Rt;function k3({apiUrl:e,sessionId:t,botToken:n}){const r=$3.create({baseURL:e,headers:{"X-Session-Id":t,"X-Bot-Token":n}});return r.interceptors.request.use(i=>(i.data={...i.data,session_id:t},i)),r}function E3(e){const t=[];return e&&e.forEach(n=>{n.from_user?t.push({from:"user",content:n.message,id:n.id,timestamp:new Date(n.created_at)}):t.push({from:"bot",id:n.id,timestamp:new Date(n.created_at),type:"text",response:{text:n.message}})}),t}async function _3(e){const{data:t}=await e.get("/chat/init"),n=E3(t.history);return{...t,history:n}}const[X2,C3]=ks();function T3({children:e}){const t=wr(),{sessionId:n}=Ev((t==null?void 0:t.token)||"defaultToken"),r=O.useMemo(()=>k3({botToken:t==null?void 0:t.token,sessionId:n,apiUrl:t==null?void 0:t.apiUrl}),[t,n]);return S.jsx(C3,{value:{axiosInstance:r},children:e})}var Da={};/**
* @license React
* react-dom-server-legacy.browser.production.min.js
*
@@ -50,13 +50,13 @@ Error generating stack: `+o.message+`
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var Q2=O;function we(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n]/;function pn(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=P3.exec(e);if(t){var n="",r,i=0;for(r=t.index;r"),Ff(e,i,n),typeof n=="string"?(e.push(pn(n)),null):n}var F3=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Wx=new Map;function Kr(e){var t=Wx.get(e);if(t===void 0){if(!F3.test(e))throw Error(we(65,e));t="<"+e,Wx.set(e,t)}return t}function j3(e,t,n,r,i){switch(t){case"select":e.push(Kr("select"));var o=null,s=null;for(c in n)if(kn.call(n,c)){var a=n[c];if(a!=null)switch(c){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:jn(e,r,c,a)}}return e.push(">"),Ff(e,s,o),o;case"option":s=i.selectedValue,e.push(Kr("option"));var l=a=null,u=null,c=null;for(o in n)if(kn.call(n,o)){var f=n[o];if(f!=null)switch(o){case"children":a=f;break;case"selected":u=f;break;case"dangerouslySetInnerHTML":c=f;break;case"value":l=f;default:jn(e,r,o,f)}}if(s!=null)if(n=l!==null?""+l:D3(a),hy(s)){for(r=0;r"),Ff(e,c,a),a;case"textarea":e.push(Kr("textarea")),c=s=o=null;for(a in n)if(kn.call(n,a)&&(l=n[a],l!=null))switch(a){case"children":c=l;break;case"value":o=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(we(91));default:jn(e,r,a,l)}if(o===null&&s!==null&&(o=s),e.push(">"),c!=null){if(o!=null)throw Error(we(92));if(hy(c)&&1]/;function pn(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=P3.exec(e);if(t){var n="",r,i=0;for(r=t.index;r"),Ff(e,i,n),typeof n=="string"?(e.push(pn(n)),null):n}var F3=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Wx=new Map;function Kr(e){var t=Wx.get(e);if(t===void 0){if(!F3.test(e))throw Error(we(65,e));t="<"+e,Wx.set(e,t)}return t}function j3(e,t,n,r,i){switch(t){case"select":e.push(Kr("select"));var o=null,s=null;for(c in n)if(kn.call(n,c)){var a=n[c];if(a!=null)switch(c){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:jn(e,r,c,a)}}return e.push(">"),Ff(e,s,o),o;case"option":s=i.selectedValue,e.push(Kr("option"));var l=a=null,u=null,c=null;for(o in n)if(kn.call(n,o)){var f=n[o];if(f!=null)switch(o){case"children":a=f;break;case"selected":u=f;break;case"dangerouslySetInnerHTML":c=f;break;case"value":l=f;default:jn(e,r,o,f)}}if(s!=null)if(n=l!==null?""+l:D3(a),py(s)){for(r=0;r"),Ff(e,c,a),a;case"textarea":e.push(Kr("textarea")),c=s=o=null;for(a in n)if(kn.call(n,a)&&(l=n[a],l!=null))switch(a){case"children":c=l;break;case"value":o=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(we(91));default:jn(e,r,a,l)}if(o===null&&s!==null&&(o=s),e.push(">"),c!=null){if(o!=null)throw Error(we(92));if(py(c)&&1"),null;case"menuitem":e.push(Kr("menuitem"));for(var p in n)if(kn.call(n,p)&&(o=n[p],o!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(we(400));default:jn(e,r,p,o)}return e.push(">"),null;case"title":e.push(Kr("title")),o=null;for(f in n)if(kn.call(n,f)&&(s=n[f],s!=null))switch(f){case"children":o=s;break;case"dangerouslySetInnerHTML":throw Error(we(434));default:jn(e,r,f,s)}return e.push(">"),o;case"listing":case"pre":e.push(Kr(t)),s=o=null;for(l in n)if(kn.call(n,l)&&(a=n[l],a!=null))switch(l){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;default:jn(e,r,l,a)}if(e.push(">"),s!=null){if(o!=null)throw Error(we(60));if(typeof s!="object"||!("__html"in s))throw Error(we(61));n=s.__html,n!=null&&(typeof n=="string"&&0"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return hm(e,n,t,r);case"html":return i.insertionMode===0&&e.push(""),hm(e,n,t,r);default:if(t.indexOf("-")===-1&&typeof n.is!="string")return hm(e,n,t,r);e.push(Kr(t)),s=o=null;for(u in n)if(kn.call(n,u)&&(a=n[u],a!=null))switch(u){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":Z2(e,r,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:J2(u)&&typeof a!="function"&&typeof a!="symbol"&&e.push(" ",u,'="',pn(a),'"')}return e.push(">"),Ff(e,s,o),o}}function qx(e,t,n){if(e.push('')}function M3(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('');case 2:return e.push('