diff --git a/dist/samples/react-ui-kit-place-details-compact/dist/assets/index-DYsp_gI5.css b/dist/samples/react-ui-kit-place-details-compact/dist/assets/index-DYsp_gI5.css new file mode 100644 index 00000000..f2a1287d --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-compact/dist/assets/index-DYsp_gI5.css @@ -0,0 +1,5 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */html,body{display:flex;width:100%;height:400px;margin:0}h1{font-size:16px;text-align:center}#map-container{box-sizing:border-box;width:100%}gmp-place-details-compact{--gmp-mat-color-on-surface: light-dark(black, white);--gmp-mat-color-surface: light-dark(white, black);--gmp-mat-font-family: Google Sans Text, sans-serif;--gmp-mat-font-body-medium: normal 400 .875em/1.25em var(--gmp-mat-font-family, "Google Sans Text");width:360px;border:none;padding:0;margin:0;position:relative}gmp-place-details-compact:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);width:0;height:0;border-left:16px solid transparent;border-right:16px solid transparent;border-top:20px solid var(--gmp-mat-color-surface, light-dark(white, black))} diff --git a/dist/samples/react-ui-kit-place-details-compact/dist/assets/index-DwWFQETP.js b/dist/samples/react-ui-kit-place-details-compact/dist/assets/index-DwWFQETP.js new file mode 100644 index 00000000..0f98820c --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-compact/dist/assets/index-DwWFQETP.js @@ -0,0 +1,57 @@ +(function(){const S=document.createElement("link").relList;if(S&&S.supports&&S.supports("modulepreload"))return;for(const R of document.querySelectorAll('link[rel="modulepreload"]'))r(R);new MutationObserver(R=>{for(const H of R)if(H.type==="childList")for(const B of H.addedNodes)B.tagName==="LINK"&&B.rel==="modulepreload"&&r(B)}).observe(document,{childList:!0,subtree:!0});function O(R){const H={};return R.integrity&&(H.integrity=R.integrity),R.referrerPolicy&&(H.referrerPolicy=R.referrerPolicy),R.crossOrigin==="use-credentials"?H.credentials="include":R.crossOrigin==="anonymous"?H.credentials="omit":H.credentials="same-origin",H}function r(R){if(R.ep)return;R.ep=!0;const H=O(R);fetch(R.href,H)}})();function Zv(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var ei={exports:{}},be={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ed;function jv(){if(ed)return be;ed=1;var g=Symbol.for("react.transitional.element"),S=Symbol.for("react.fragment");function O(r,R,H){var B=null;if(H!==void 0&&(B=""+H),R.key!==void 0&&(B=""+R.key),"key"in R){H={};for(var j in R)j!=="key"&&(H[j]=R[j])}else H=R;return R=H.ref,{$$typeof:g,type:r,key:B,ref:R!==void 0?R:null,props:H}}return be.Fragment=S,be.jsx=O,be.jsxs=O,be}var nd;function Vv(){return nd||(nd=1,ei.exports=jv()),ei.exports}var Ea=Vv(),ni={exports:{}},V={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fd;function Kv(){if(fd)return V;fd=1;var g=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),B=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),K=Symbol.iterator;function J(s){return s===null||typeof s!="object"?null:(s=K&&s[K]||s["@@iterator"],typeof s=="function"?s:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,rl={};function Al(s,z,N){this.props=s,this.context=z,this.refs=rl,this.updater=N||P}Al.prototype.isReactComponent={},Al.prototype.setState=function(s,z){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,z,"setState")},Al.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function vt(){}vt.prototype=Al.prototype;function yt(s,z,N){this.props=s,this.context=z,this.refs=rl,this.updater=N||P}var zl=yt.prototype=new vt;zl.constructor=yt,G(zl,Al.prototype),zl.isPureReactComponent=!0;var wl=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},Sl=Object.prototype.hasOwnProperty;function Ol(s,z,N,p,C,tl){return N=tl.ref,{$$typeof:g,type:s,key:z,ref:N!==void 0?N:null,props:tl}}function Bl(s,z){return Ol(s.type,z,void 0,void 0,void 0,s.props)}function bt(s){return typeof s=="object"&&s!==null&&s.$$typeof===g}function Yu(s){var z={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(N){return z[N]})}var _t=/\/+/g;function Gl(s,z){return typeof s=="object"&&s!==null&&s.key!=null?Yu(""+s.key):z.toString(36)}function yu(){}function hu(s){switch(s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(yu,yu):(s.status="pending",s.then(function(z){s.status==="pending"&&(s.status="fulfilled",s.value=z)},function(z){s.status==="pending"&&(s.status="rejected",s.reason=z)})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}}throw s}function Cl(s,z,N,p,C){var tl=typeof s;(tl==="undefined"||tl==="boolean")&&(s=null);var Z=!1;if(s===null)Z=!0;else switch(tl){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(s.$$typeof){case g:case S:Z=!0;break;case U:return Z=s._init,Cl(Z(s._payload),z,N,p,C)}}if(Z)return C=C(s),Z=p===""?"."+Gl(s,0):p,wl(C)?(N="",Z!=null&&(N=Z.replace(_t,"$&/")+"/"),Cl(C,z,N,"",function(Zt){return Zt})):C!=null&&(bt(C)&&(C=Bl(C,N+(C.key==null||s&&s.key===C.key?"":(""+C.key).replace(_t,"$&/")+"/")+Z)),z.push(C)),1;Z=0;var Wl=p===""?".":p+":";if(wl(s))for(var vl=0;vl>>1,s=E[sl];if(0>>1;slR(p,X))CR(tl,p)?(E[sl]=tl,E[C]=X,sl=C):(E[sl]=p,E[N]=X,sl=N);else if(CR(tl,X))E[sl]=tl,E[C]=X,sl=C;else break l}}return D}function R(E,D){var X=E.sortIndex-D.sortIndex;return X!==0?X:E.id-D.id}if(g.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var H=performance;g.unstable_now=function(){return H.now()}}else{var B=Date,j=B.now();g.unstable_now=function(){return B.now()-j}}var _=[],A=[],U=1,K=null,J=3,P=!1,G=!1,rl=!1,Al=!1,vt=typeof setTimeout=="function"?setTimeout:null,yt=typeof clearTimeout=="function"?clearTimeout:null,zl=typeof setImmediate<"u"?setImmediate:null;function wl(E){for(var D=O(A);D!==null;){if(D.callback===null)r(A);else if(D.startTime<=E)r(A),D.sortIndex=D.expirationTime,S(_,D);else break;D=O(A)}}function $(E){if(rl=!1,wl(E),!G)if(O(_)!==null)G=!0,Sl||(Sl=!0,Gl());else{var D=O(A);D!==null&&Cl($,D.startTime-E)}}var Sl=!1,Ol=-1,Bl=5,bt=-1;function Yu(){return Al?!0:!(g.unstable_now()-btE&&Yu());){var sl=K.callback;if(typeof sl=="function"){K.callback=null,J=K.priorityLevel;var s=sl(K.expirationTime<=E);if(E=g.unstable_now(),typeof s=="function"){K.callback=s,wl(E),D=!0;break t}K===O(_)&&r(_),wl(E)}else r(_);K=O(_)}if(K!==null)D=!0;else{var z=O(A);z!==null&&Cl($,z.startTime-E),D=!1}}break l}finally{K=null,J=X,P=!1}D=void 0}}finally{D?Gl():Sl=!1}}}var Gl;if(typeof zl=="function")Gl=function(){zl(_t)};else if(typeof MessageChannel<"u"){var yu=new MessageChannel,hu=yu.port2;yu.port1.onmessage=_t,Gl=function(){hu.postMessage(null)}}else Gl=function(){vt(_t,0)};function Cl(E,D){Ol=vt(function(){E(g.unstable_now())},D)}g.unstable_IdlePriority=5,g.unstable_ImmediatePriority=1,g.unstable_LowPriority=4,g.unstable_NormalPriority=3,g.unstable_Profiling=null,g.unstable_UserBlockingPriority=2,g.unstable_cancelCallback=function(E){E.callback=null},g.unstable_forceFrameRate=function(E){0>E||125sl?(E.sortIndex=X,S(A,E),O(_)===null&&E===O(A)&&(rl?(yt(Ol),Ol=-1):rl=!0,Cl($,X-sl))):(E.sortIndex=s,S(_,E),G||P||(G=!0,Sl||(Sl=!0,Gl()))),E},g.unstable_shouldYield=Yu,g.unstable_wrapCallback=function(E){var D=J;return function(){var X=J;J=D;try{return E.apply(this,arguments)}finally{J=X}}}})(ii)),ii}var sd;function wv(){return sd||(sd=1,ci.exports=Jv()),ci.exports}var si={exports:{}},Xl={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var od;function Wv(){if(od)return Xl;od=1;var g=oi();function S(_){var A="https://react.dev/errors/"+_;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g)}catch(S){console.error(S)}}return g(),si.exports=Wv(),si.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dd;function $v(){if(dd)return Ee;dd=1;var g=wv(),S=oi(),O=gd();function r(l){var t="https://react.dev/errors/"+l;if(1s||(l.current=sl[s],sl[s]=null,s--)}function p(l,t){s++,sl[s]=l.current,l.current=t}var C=z(null),tl=z(null),Z=z(null),Wl=z(null);function vl(l,t){switch(p(Z,t),p(tl,l),p(C,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Hr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Hr(t),l=qr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}N(C),p(C,l)}function Zt(){N(C),N(tl),N(Z)}function Zn(l){l.memoizedState!==null&&p(Wl,l);var t=C.current,u=qr(t,l.type);t!==u&&(p(tl,l),p(C,u))}function Te(l){tl.current===l&&(N(C),N(tl)),Wl.current===l&&(N(Wl),ye._currentValue=X)}var jn=Object.prototype.hasOwnProperty,Vn=g.unstable_scheduleCallback,Kn=g.unstable_cancelCallback,Ed=g.unstable_shouldYield,Ad=g.unstable_requestPaint,Et=g.unstable_now,Td=g.unstable_getCurrentPriorityLevel,ri=g.unstable_ImmediatePriority,di=g.unstable_UserBlockingPriority,Me=g.unstable_NormalPriority,Md=g.unstable_LowPriority,vi=g.unstable_IdlePriority,zd=g.log,Od=g.unstable_setDisableYieldValue,Ta=null,$l=null;function jt(l){if(typeof zd=="function"&&Od(l),$l&&typeof $l.setStrictMode=="function")try{$l.setStrictMode(Ta,l)}catch{}}var kl=Math.clz32?Math.clz32:Dd,_d=Math.log,pd=Math.LN2;function Dd(l){return l>>>=0,l===0?32:31-(_d(l)/pd|0)|0}var ze=256,Oe=4194304;function mu(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function _e(l,t,u){var a=l.pendingLanes;if(a===0)return 0;var e=0,n=l.suspendedLanes,f=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?e=mu(a):(f&=c,f!==0?e=mu(f):u||(u=c&~l,u!==0&&(e=mu(u))))):(c=a&~n,c!==0?e=mu(c):f!==0?e=mu(f):u||(u=a&~l,u!==0&&(e=mu(u)))),e===0?0:t!==0&&t!==e&&(t&n)===0&&(n=e&-e,u=t&-t,n>=u||n===32&&(u&4194048)!==0)?t:e}function Ma(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Ud(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yi(){var l=ze;return ze<<=1,(ze&4194048)===0&&(ze=256),l}function hi(){var l=Oe;return Oe<<=1,(Oe&62914560)===0&&(Oe=4194304),l}function Jn(l){for(var t=[],u=0;31>u;u++)t.push(l);return t}function za(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Rd(l,t,u,a,e,n){var f=l.pendingLanes;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=u,l.entangledLanes&=u,l.errorRecoveryDisabledLanes&=u,l.shellSuspendCounter=0;var c=l.entanglements,i=l.expirationTimes,y=l.hiddenUpdates;for(u=f&~u;0)":-1e||i[a]!==y[e]){var b=` +`+i[a].replace(" at new "," at ");return l.displayName&&b.includes("")&&(b=b.replace("",l.displayName)),b}while(1<=a&&0<=e);break}}}finally{In=!1,Error.prepareStackTrace=u}return(u=l?l.displayName||l.name:"")?Xu(u):""}function Gd(l){switch(l.tag){case 26:case 27:case 5:return Xu(l.type);case 16:return Xu("Lazy");case 13:return Xu("Suspense");case 19:return Xu("SuspenseList");case 0:case 15:return Pn(l.type,!1);case 11:return Pn(l.type.render,!1);case 1:return Pn(l.type,!0);case 31:return Xu("Activity");default:return""}}function Oi(l){try{var t="";do t+=Gd(l),l=l.return;while(l);return t}catch(u){return` +Error generating stack: `+u.message+` +`+u.stack}}function et(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function _i(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cd(l){var t=_i(l)?"checked":"value",u=Object.getOwnPropertyDescriptor(l.constructor.prototype,t),a=""+l[t];if(!l.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var e=u.get,n=u.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return e.call(this)},set:function(f){a=""+f,n.call(this,f)}}),Object.defineProperty(l,t,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function Ue(l){l._valueTracker||(l._valueTracker=Cd(l))}function pi(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var u=t.getValue(),a="";return l&&(a=_i(l)?l.checked?"true":"false":l.value),l=a,l!==u?(t.setValue(l),!0):!1}function Re(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var xd=/[\n"\\]/g;function nt(l){return l.replace(xd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lf(l,t,u,a,e,n,f,c){l.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?l.type=f:l.removeAttribute("type"),t!=null?f==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+et(t)):l.value!==""+et(t)&&(l.value=""+et(t)):f!=="submit"&&f!=="reset"||l.removeAttribute("value"),t!=null?tf(l,f,et(t)):u!=null?tf(l,f,et(u)):a!=null&&l.removeAttribute("value"),e==null&&n!=null&&(l.defaultChecked=!!n),e!=null&&(l.checked=e&&typeof e!="function"&&typeof e!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+et(c):l.removeAttribute("name")}function Di(l,t,u,a,e,n,f,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||u!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;u=u!=null?""+et(u):"",t=t!=null?""+et(t):u,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??e,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(l.name=f)}function tf(l,t,u){t==="number"&&Re(l.ownerDocument)===l||l.defaultValue===""+u||(l.defaultValue=""+u)}function Qu(l,t,u,a){if(l=l.options,t){t={};for(var e=0;e"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ff=!1;if(Dt)try{var Da={};Object.defineProperty(Da,"passive",{get:function(){ff=!0}}),window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch{ff=!1}var Kt=null,cf=null,He=null;function Bi(){if(He)return He;var l,t=cf,u=t.length,a,e="value"in Kt?Kt.value:Kt.textContent,n=e.length;for(l=0;l=Na),Qi=" ",Zi=!1;function ji(l,t){switch(l){case"keyup":return d0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vi(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Ku=!1;function y0(l,t){switch(l){case"compositionend":return Vi(t);case"keypress":return t.which!==32?null:(Zi=!0,Qi);case"textInput":return l=t.data,l===Qi&&Zi?null:l;default:return null}}function h0(l,t){if(Ku)return l==="compositionend"||!vf&&ji(l,t)?(l=Bi(),He=cf=Kt=null,Ku=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:u,offset:t-l};l=a}l:{for(;u;){if(u.nextSibling){u=u.nextSibling;break l}u=u.parentNode}u=void 0}u=Ii(u)}}function ls(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?ls(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function ts(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Re(l.document);t instanceof l.HTMLIFrameElement;){try{var u=typeof t.contentWindow.location.href=="string"}catch{u=!1}if(u)l=t.contentWindow;else break;t=Re(l.document)}return t}function mf(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var M0=Dt&&"documentMode"in document&&11>=document.documentMode,Ju=null,gf=null,Ba=null,Sf=!1;function us(l,t,u){var a=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Sf||Ju==null||Ju!==Re(a)||(a=Ju,"selectionStart"in a&&mf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ba&&Ya(Ba,a)||(Ba=a,a=Mn(gf,"onSelect"),0>=f,e-=f,Rt=1<<32-kl(t)+e|u<n?n:8;var f=E.T,c={};E.T=c,ac(l,!1,t,u);try{var i=e(),y=E.S;if(y!==null&&y(c,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var b=H0(i,a);ka(l,t,b,ut(l))}else ka(l,t,a,ut(l))}catch(M){ka(l,t,{then:function(){},status:"rejected",reason:M},ut())}finally{D.p=n,E.T=f}}function C0(){}function tc(l,t,u,a){if(l.tag!==5)throw Error(r(476));var e=ao(l).queue;uo(l,e,t,X,u===null?C0:function(){return eo(l),u(a)})}function ao(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:X},next:null};var u={};return t.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:u},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function eo(l){var t=ao(l).next.queue;ka(l,t,{},ut())}function uc(){return Ll(ye)}function no(){return Ml().memoizedState}function fo(){return Ml().memoizedState}function x0(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var u=ut();l=Wt(u);var a=$t(t,l,u);a!==null&&(at(a,t,u),Va(a,t,u)),t={cache:Hf()},l.payload=t;return}t=t.return}}function L0(l,t,u){var a=ut();u={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},un(l)?io(t,u):(u=Tf(l,t,u,a),u!==null&&(at(u,l,a),so(u,t,a)))}function co(l,t,u){var a=ut();ka(l,t,u,a)}function ka(l,t,u,a){var e={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(un(l))io(t,e);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var f=t.lastRenderedState,c=n(f,u);if(e.hasEagerState=!0,e.eagerState=c,Fl(c,f))return Le(l,t,e,0),dl===null&&xe(),!1}catch{}finally{}if(u=Tf(l,t,e,a),u!==null)return at(u,l,a),so(u,t,a),!0}return!1}function ac(l,t,u,a){if(a={lane:2,revertLane:Bc(),action:a,hasEagerState:!1,eagerState:null,next:null},un(l)){if(t)throw Error(r(479))}else t=Tf(l,u,a,2),t!==null&&at(t,l,2)}function un(l){var t=l.alternate;return l===w||t!==null&&t===w}function io(l,t){ua=ke=!0;var u=l.pending;u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t}function so(l,t,u){if((u&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,u|=a,t.lanes=u,gi(l,u)}}var an={readContext:Ll,use:Ie,useCallback:bl,useContext:bl,useEffect:bl,useImperativeHandle:bl,useLayoutEffect:bl,useInsertionEffect:bl,useMemo:bl,useReducer:bl,useRef:bl,useState:bl,useDebugValue:bl,useDeferredValue:bl,useTransition:bl,useSyncExternalStore:bl,useId:bl,useHostTransitionStatus:bl,useFormState:bl,useActionState:bl,useOptimistic:bl,useMemoCache:bl,useCacheRefresh:bl},oo={readContext:Ll,use:Ie,useCallback:function(l,t){return Vl().memoizedState=[l,t===void 0?null:t],l},useContext:Ll,useEffect:ws,useImperativeHandle:function(l,t,u){u=u!=null?u.concat([l]):null,tn(4194308,4,Fs.bind(null,t,l),u)},useLayoutEffect:function(l,t){return tn(4194308,4,l,t)},useInsertionEffect:function(l,t){tn(4,2,l,t)},useMemo:function(l,t){var u=Vl();t=t===void 0?null:t;var a=l();if(Uu){jt(!0);try{l()}finally{jt(!1)}}return u.memoizedState=[a,t],a},useReducer:function(l,t,u){var a=Vl();if(u!==void 0){var e=u(t);if(Uu){jt(!0);try{u(t)}finally{jt(!1)}}}else e=t;return a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:e},a.queue=l,l=l.dispatch=L0.bind(null,w,l),[a.memoizedState,l]},useRef:function(l){var t=Vl();return l={current:l},t.memoizedState=l},useState:function(l){l=Ff(l);var t=l.queue,u=co.bind(null,w,t);return t.dispatch=u,[l.memoizedState,u]},useDebugValue:Pf,useDeferredValue:function(l,t){var u=Vl();return lc(u,l,t)},useTransition:function(){var l=Ff(!1);return l=uo.bind(null,w,l.queue,!0,!1),Vl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,u){var a=w,e=Vl();if(al){if(u===void 0)throw Error(r(407));u=u()}else{if(u=t(),dl===null)throw Error(r(349));(ll&124)!==0||Ns(a,t,u)}e.memoizedState=u;var n={value:u,getSnapshot:t};return e.queue=n,ws(qs.bind(null,a,n,l),[l]),a.flags|=2048,ea(9,ln(),Hs.bind(null,a,n,u,t),null),u},useId:function(){var l=Vl(),t=dl.identifierPrefix;if(al){var u=Nt,a=Rt;u=(a&~(1<<32-kl(a)-1)).toString(32)+u,t="«"+t+"R"+u,u=Fe++,0L?(Nl=Y,Y=null):Nl=Y.sibling;var ul=h(d,Y,v[L],T);if(ul===null){Y===null&&(Y=Nl);break}l&&Y&&ul.alternate===null&&t(d,Y),o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul,Y=Nl}if(L===v.length)return u(d,Y),al&&Mu(d,L),q;if(Y===null){for(;LL?(Nl=Y,Y=null):Nl=Y.sibling;var du=h(d,Y,ul.value,T);if(du===null){Y===null&&(Y=Nl);break}l&&Y&&du.alternate===null&&t(d,Y),o=n(du,o,L),W===null?q=du:W.sibling=du,W=du,Y=Nl}if(ul.done)return u(d,Y),al&&Mu(d,L),q;if(Y===null){for(;!ul.done;L++,ul=v.next())ul=M(d,ul.value,T),ul!==null&&(o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul);return al&&Mu(d,L),q}for(Y=a(Y);!ul.done;L++,ul=v.next())ul=m(Y,d,L,ul.value,T),ul!==null&&(l&&ul.alternate!==null&&Y.delete(ul.key===null?L:ul.key),o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul);return l&&Y.forEach(function(Qv){return t(d,Qv)}),al&&Mu(d,L),q}function il(d,o,v,T){if(typeof v=="object"&&v!==null&&v.type===G&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case J:l:{for(var q=v.key;o!==null;){if(o.key===q){if(q=v.type,q===G){if(o.tag===7){u(d,o.sibling),T=e(o,v.props.children),T.return=d,d=T;break l}}else if(o.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Bl&&vo(q)===o.type){u(d,o.sibling),T=e(o,v.props),Ia(T,v),T.return=d,d=T;break l}u(d,o);break}else t(d,o);o=o.sibling}v.type===G?(T=Au(v.props.children,d.mode,T,v.key),T.return=d,d=T):(T=Qe(v.type,v.key,v.props,null,d.mode,T),Ia(T,v),T.return=d,d=T)}return f(d);case P:l:{for(q=v.key;o!==null;){if(o.key===q)if(o.tag===4&&o.stateNode.containerInfo===v.containerInfo&&o.stateNode.implementation===v.implementation){u(d,o.sibling),T=e(o,v.children||[]),T.return=d,d=T;break l}else{u(d,o);break}else t(d,o);o=o.sibling}T=Of(v,d.mode,T),T.return=d,d=T}return f(d);case Bl:return q=v._init,v=q(v._payload),il(d,o,v,T)}if(Cl(v))return Q(d,o,v,T);if(Gl(v)){if(q=Gl(v),typeof q!="function")throw Error(r(150));return v=q.call(v),x(d,o,v,T)}if(typeof v.then=="function")return il(d,o,en(v),T);if(v.$$typeof===zl)return il(d,o,Ke(d,v),T);nn(d,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,o!==null&&o.tag===6?(u(d,o.sibling),T=e(o,v),T.return=d,d=T):(u(d,o),T=zf(v,d.mode,T),T.return=d,d=T),f(d)):u(d,o)}return function(d,o,v,T){try{Fa=0;var q=il(d,o,v,T);return na=null,q}catch(Y){if(Y===Za||Y===we)throw Y;var W=Il(29,Y,null,d.mode);return W.lanes=T,W.return=d,W}finally{}}}var fa=yo(!0),ho=yo(!1),ot=z(null),Tt=null;function Ft(l){var t=l.alternate;p(pl,pl.current&1),p(ot,l),Tt===null&&(t===null||ta.current!==null||t.memoizedState!==null)&&(Tt=l)}function mo(l){if(l.tag===22){if(p(pl,pl.current),p(ot,l),Tt===null){var t=l.alternate;t!==null&&t.memoizedState!==null&&(Tt=l)}}else It()}function It(){p(pl,pl.current),p(ot,ot.current)}function Bt(l){N(ot),Tt===l&&(Tt=null),N(pl)}var pl=z(0);function fn(l){for(var t=l;t!==null;){if(t.tag===13){var u=t.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||wc(u)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ec(l,t,u,a){t=l.memoizedState,u=u(a,t),u=u==null?t:U({},t,u),l.memoizedState=u,l.lanes===0&&(l.updateQueue.baseState=u)}var nc={enqueueSetState:function(l,t,u){l=l._reactInternals;var a=ut(),e=Wt(a);e.payload=t,u!=null&&(e.callback=u),t=$t(l,e,a),t!==null&&(at(t,l,a),Va(t,l,a))},enqueueReplaceState:function(l,t,u){l=l._reactInternals;var a=ut(),e=Wt(a);e.tag=1,e.payload=t,u!=null&&(e.callback=u),t=$t(l,e,a),t!==null&&(at(t,l,a),Va(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var u=ut(),a=Wt(u);a.tag=2,t!=null&&(a.callback=t),t=$t(l,a,u),t!==null&&(at(t,l,u),Va(t,l,u))}};function go(l,t,u,a,e,n,f){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,n,f):t.prototype&&t.prototype.isPureReactComponent?!Ya(u,a)||!Ya(e,n):!0}function So(l,t,u,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(u,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(u,a),t.state!==l&&nc.enqueueReplaceState(t,t.state,null)}function Ru(l,t){var u=t;if("ref"in t){u={};for(var a in t)a!=="ref"&&(u[a]=t[a])}if(l=l.defaultProps){u===t&&(u=U({},u));for(var e in l)u[e]===void 0&&(u[e]=l[e])}return u}var cn=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function bo(l){cn(l)}function Eo(l){console.error(l)}function Ao(l){cn(l)}function sn(l,t){try{var u=l.onUncaughtError;u(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function To(l,t,u){try{var a=l.onCaughtError;a(u.value,{componentStack:u.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function fc(l,t,u){return u=Wt(u),u.tag=3,u.payload={element:null},u.callback=function(){sn(l,t)},u}function Mo(l){return l=Wt(l),l.tag=3,l}function zo(l,t,u,a){var e=u.type.getDerivedStateFromError;if(typeof e=="function"){var n=a.value;l.payload=function(){return e(n)},l.callback=function(){To(t,u,a)}}var f=u.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(l.callback=function(){To(t,u,a),typeof e!="function"&&(eu===null?eu=new Set([this]):eu.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function Q0(l,t,u,a,e){if(u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=u.alternate,t!==null&&La(t,u,e,!0),u=ot.current,u!==null){switch(u.tag){case 13:return Tt===null?Rc():u.alternate===null&&gl===0&&(gl=3),u.flags&=-257,u.flags|=65536,u.lanes=e,a===Bf?u.flags|=16384:(t=u.updateQueue,t===null?u.updateQueue=new Set([a]):t.add(a),Hc(l,a,e)),!1;case 22:return u.flags|=65536,a===Bf?u.flags|=16384:(t=u.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},u.updateQueue=t):(u=t.retryQueue,u===null?t.retryQueue=new Set([a]):u.add(a)),Hc(l,a,e)),!1}throw Error(r(435,u.tag))}return Hc(l,a,e),Rc(),!1}if(al)return t=ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=e,a!==Df&&(l=Error(r(422),{cause:a}),xa(ft(l,u)))):(a!==Df&&(t=Error(r(423),{cause:a}),xa(ft(t,u))),l=l.current.alternate,l.flags|=65536,e&=-e,l.lanes|=e,a=ft(a,u),e=fc(l.stateNode,a,e),xf(l,e),gl!==4&&(gl=2)),!1;var n=Error(r(520),{cause:a});if(n=ft(n,u),ne===null?ne=[n]:ne.push(n),gl!==4&&(gl=2),t===null)return!0;a=ft(a,u),u=t;do{switch(u.tag){case 3:return u.flags|=65536,l=e&-e,u.lanes|=l,l=fc(u.stateNode,a,l),xf(u,l),!1;case 1:if(t=u.type,n=u.stateNode,(u.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(eu===null||!eu.has(n))))return u.flags|=65536,e&=-e,u.lanes|=e,e=Mo(e),zo(e,l,u,a),xf(u,e),!1}u=u.return}while(u!==null);return!1}var Oo=Error(r(461)),Ul=!1;function Hl(l,t,u,a){t.child=l===null?ho(t,null,u,a):fa(t,l.child,u,a)}function _o(l,t,u,a,e){u=u.render;var n=t.ref;if("ref"in a){var f={};for(var c in a)c!=="ref"&&(f[c]=a[c])}else f=a;return pu(t),a=jf(l,t,u,f,n,e),c=Vf(),l!==null&&!Ul?(Kf(l,t,e),Gt(l,t,e)):(al&&c&&_f(t),t.flags|=1,Hl(l,t,a,e),t.child)}function po(l,t,u,a,e){if(l===null){var n=u.type;return typeof n=="function"&&!Mf(n)&&n.defaultProps===void 0&&u.compare===null?(t.tag=15,t.type=n,Do(l,t,n,a,e)):(l=Qe(u.type,null,a,t,t.mode,e),l.ref=t.ref,l.return=t,t.child=l)}if(n=l.child,!yc(l,e)){var f=n.memoizedProps;if(u=u.compare,u=u!==null?u:Ya,u(f,a)&&l.ref===t.ref)return Gt(l,t,e)}return t.flags|=1,l=Ut(n,a),l.ref=t.ref,l.return=t,t.child=l}function Do(l,t,u,a,e){if(l!==null){var n=l.memoizedProps;if(Ya(n,a)&&l.ref===t.ref)if(Ul=!1,t.pendingProps=a=n,yc(l,e))(l.flags&131072)!==0&&(Ul=!0);else return t.lanes=l.lanes,Gt(l,t,e)}return cc(l,t,u,a,e)}function Uo(l,t,u){var a=t.pendingProps,e=a.children,n=l!==null?l.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=n!==null?n.baseLanes|u:u,l!==null){for(e=t.child=l.child,n=0;e!==null;)n=n|e.lanes|e.childLanes,e=e.sibling;t.childLanes=n&~a}else t.childLanes=0,t.child=null;return Ro(l,t,a,u)}if((u&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&Je(t,n!==null?n.cachePool:null),n!==null?ps(t,n):Xf(),mo(t);else return t.lanes=t.childLanes=536870912,Ro(l,t,n!==null?n.baseLanes|u:u,u)}else n!==null?(Je(t,n.cachePool),ps(t,n),It(),t.memoizedState=null):(l!==null&&Je(t,null),Xf(),It());return Hl(l,t,e,u),t.child}function Ro(l,t,u,a){var e=Yf();return e=e===null?null:{parent:_l._currentValue,pool:e},t.memoizedState={baseLanes:u,cachePool:e},l!==null&&Je(t,null),Xf(),mo(t),l!==null&&La(l,t,a,!0),null}function on(l,t){var u=t.ref;if(u===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(l===null||l.ref!==u)&&(t.flags|=4194816)}}function cc(l,t,u,a,e){return pu(t),u=jf(l,t,u,a,void 0,e),a=Vf(),l!==null&&!Ul?(Kf(l,t,e),Gt(l,t,e)):(al&&a&&_f(t),t.flags|=1,Hl(l,t,u,e),t.child)}function No(l,t,u,a,e,n){return pu(t),t.updateQueue=null,u=Us(t,a,u,e),Ds(l),a=Vf(),l!==null&&!Ul?(Kf(l,t,n),Gt(l,t,n)):(al&&a&&_f(t),t.flags|=1,Hl(l,t,u,n),t.child)}function Ho(l,t,u,a,e){if(pu(t),t.stateNode===null){var n=ku,f=u.contextType;typeof f=="object"&&f!==null&&(n=Ll(f)),n=new u(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=nc,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},Gf(t),f=u.contextType,n.context=typeof f=="object"&&f!==null?Ll(f):ku,n.state=t.memoizedState,f=u.getDerivedStateFromProps,typeof f=="function"&&(ec(t,u,f,a),n.state=t.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(f=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),f!==n.state&&nc.enqueueReplaceState(n,n.state,null),Ja(t,a,n,e),Ka(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,i=Ru(u,c);n.props=i;var y=n.context,b=u.contextType;f=ku,typeof b=="object"&&b!==null&&(f=Ll(b));var M=u.getDerivedStateFromProps;b=typeof M=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,b||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||y!==f)&&So(t,n,a,f),wt=!1;var h=t.memoizedState;n.state=h,Ja(t,a,n,e),Ka(),y=t.memoizedState,c||h!==y||wt?(typeof M=="function"&&(ec(t,u,M,a),y=t.memoizedState),(i=wt||go(t,u,i,a,h,y,f))?(b||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=y),n.props=a,n.state=y,n.context=f,a=i):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,Cf(l,t),f=t.memoizedProps,b=Ru(u,f),n.props=b,M=t.pendingProps,h=n.context,y=u.contextType,i=ku,typeof y=="object"&&y!==null&&(i=Ll(y)),c=u.getDerivedStateFromProps,(y=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(f!==M||h!==i)&&So(t,n,a,i),wt=!1,h=t.memoizedState,n.state=h,Ja(t,a,n,e),Ka();var m=t.memoizedState;f!==M||h!==m||wt||l!==null&&l.dependencies!==null&&Ve(l.dependencies)?(typeof c=="function"&&(ec(t,u,c,a),m=t.memoizedState),(b=wt||go(t,u,b,a,h,m,i)||l!==null&&l.dependencies!==null&&Ve(l.dependencies))?(y||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,m,i),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,m,i)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=m),n.props=a,n.state=m,n.context=i,a=b):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),a=!1)}return n=a,on(l,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,u=a&&typeof u.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,l!==null&&a?(t.child=fa(t,l.child,null,e),t.child=fa(t,null,u,e)):Hl(l,t,u,e),t.memoizedState=n.state,l=t.child):l=Gt(l,t,e),l}function qo(l,t,u,a){return Ca(),t.flags|=256,Hl(l,t,u,a),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(l){return{baseLanes:l,cachePool:bs()}}function oc(l,t,u){return l=l!==null?l.childLanes&~u:0,t&&(l|=rt),l}function Yo(l,t,u){var a=t.pendingProps,e=!1,n=(t.flags&128)!==0,f;if((f=n)||(f=l!==null&&l.memoizedState===null?!1:(pl.current&2)!==0),f&&(e=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,l===null){if(al){if(e?Ft(t):It(),al){var c=ml,i;if(i=c){l:{for(i=c,c=At;i.nodeType!==8;){if(!c){c=null;break l}if(i=gt(i.nextSibling),i===null){c=null;break l}}c=i}c!==null?(t.memoizedState={dehydrated:c,treeContext:Tu!==null?{id:Rt,overflow:Nt}:null,retryLane:536870912,hydrationErrors:null},i=Il(18,null,null,0),i.stateNode=c,i.return=t,t.child=i,Ql=t,ml=null,i=!0):i=!1}i||Ou(t)}if(c=t.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return wc(c)?t.lanes=32:t.lanes=536870912,null;Bt(t)}return c=a.children,a=a.fallback,e?(It(),e=t.mode,c=rn({mode:"hidden",children:c},e),a=Au(a,e,u,null),c.return=t,a.return=t,c.sibling=a,t.child=c,e=t.child,e.memoizedState=sc(u),e.childLanes=oc(l,f,u),t.memoizedState=ic,a):(Ft(t),rc(t,c))}if(i=l.memoizedState,i!==null&&(c=i.dehydrated,c!==null)){if(n)t.flags&256?(Ft(t),t.flags&=-257,t=dc(l,t,u)):t.memoizedState!==null?(It(),t.child=l.child,t.flags|=128,t=null):(It(),e=a.fallback,c=t.mode,a=rn({mode:"visible",children:a.children},c),e=Au(e,c,u,null),e.flags|=2,a.return=t,e.return=t,a.sibling=e,t.child=a,fa(t,l.child,null,u),a=t.child,a.memoizedState=sc(u),a.childLanes=oc(l,f,u),t.memoizedState=ic,t=e);else if(Ft(t),wc(c)){if(f=c.nextSibling&&c.nextSibling.dataset,f)var y=f.dgst;f=y,a=Error(r(419)),a.stack="",a.digest=f,xa({value:a,source:null,stack:null}),t=dc(l,t,u)}else if(Ul||La(l,t,u,!1),f=(u&l.childLanes)!==0,Ul||f){if(f=dl,f!==null&&(a=u&-u,a=(a&42)!==0?1:wn(a),a=(a&(f.suspendedLanes|u))!==0?0:a,a!==0&&a!==i.retryLane))throw i.retryLane=a,$u(l,a),at(f,l,a),Oo;c.data==="$?"||Rc(),t=dc(l,t,u)}else c.data==="$?"?(t.flags|=192,t.child=l.child,t=null):(l=i.treeContext,ml=gt(c.nextSibling),Ql=t,al=!0,zu=null,At=!1,l!==null&&(it[st++]=Rt,it[st++]=Nt,it[st++]=Tu,Rt=l.id,Nt=l.overflow,Tu=t),t=rc(t,a.children),t.flags|=4096);return t}return e?(It(),e=a.fallback,c=t.mode,i=l.child,y=i.sibling,a=Ut(i,{mode:"hidden",children:a.children}),a.subtreeFlags=i.subtreeFlags&65011712,y!==null?e=Ut(y,e):(e=Au(e,c,u,null),e.flags|=2),e.return=t,a.return=t,a.sibling=e,t.child=a,a=e,e=t.child,c=l.child.memoizedState,c===null?c=sc(u):(i=c.cachePool,i!==null?(y=_l._currentValue,i=i.parent!==y?{parent:y,pool:y}:i):i=bs(),c={baseLanes:c.baseLanes|u,cachePool:i}),e.memoizedState=c,e.childLanes=oc(l,f,u),t.memoizedState=ic,a):(Ft(t),u=l.child,l=u.sibling,u=Ut(u,{mode:"visible",children:a.children}),u.return=t,u.sibling=null,l!==null&&(f=t.deletions,f===null?(t.deletions=[l],t.flags|=16):f.push(l)),t.child=u,t.memoizedState=null,u)}function rc(l,t){return t=rn({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function rn(l,t){return l=Il(22,l,null,t),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function dc(l,t,u){return fa(t,l.child,null,u),l=rc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Bo(l,t,u){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Rf(l.return,t,u)}function vc(l,t,u,a,e){var n=l.memoizedState;n===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:u,tailMode:e}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=u,n.tailMode=e)}function Go(l,t,u){var a=t.pendingProps,e=a.revealOrder,n=a.tail;if(Hl(l,t,a.children,u),a=pl.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Bo(l,u,t);else if(l.tag===19)Bo(l,u,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}a&=1}switch(p(pl,a),e){case"forwards":for(u=t.child,e=null;u!==null;)l=u.alternate,l!==null&&fn(l)===null&&(e=u),u=u.sibling;u=e,u===null?(e=t.child,t.child=null):(e=u.sibling,u.sibling=null),vc(t,!1,e,u,n);break;case"backwards":for(u=null,e=t.child,t.child=null;e!==null;){if(l=e.alternate,l!==null&&fn(l)===null){t.child=e;break}l=e.sibling,e.sibling=u,u=e,e=l}vc(t,!0,u,null,n);break;case"together":vc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gt(l,t,u){if(l!==null&&(t.dependencies=l.dependencies),au|=t.lanes,(u&t.childLanes)===0)if(l!==null){if(La(l,t,u,!1),(u&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(r(153));if(t.child!==null){for(l=t.child,u=Ut(l,l.pendingProps),t.child=u,u.return=t;l.sibling!==null;)l=l.sibling,u=u.sibling=Ut(l,l.pendingProps),u.return=t;u.sibling=null}return t.child}function yc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Ve(l)))}function Z0(l,t,u){switch(t.tag){case 3:vl(t,t.stateNode.containerInfo),Jt(t,_l,l.memoizedState.cache),Ca();break;case 27:case 5:Zn(t);break;case 4:vl(t,t.stateNode.containerInfo);break;case 10:Jt(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ft(t),t.flags|=128,null):(u&t.child.childLanes)!==0?Yo(l,t,u):(Ft(t),l=Gt(l,t,u),l!==null?l.sibling:null);Ft(t);break;case 19:var e=(l.flags&128)!==0;if(a=(u&t.childLanes)!==0,a||(La(l,t,u,!1),a=(u&t.childLanes)!==0),e){if(a)return Go(l,t,u);t.flags|=128}if(e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null,e.lastEffect=null),p(pl,pl.current),a)break;return null;case 22:case 23:return t.lanes=0,Uo(l,t,u);case 24:Jt(t,_l,l.memoizedState.cache)}return Gt(l,t,u)}function Co(l,t,u){if(l!==null)if(l.memoizedProps!==t.pendingProps)Ul=!0;else{if(!yc(l,u)&&(t.flags&128)===0)return Ul=!1,Z0(l,t,u);Ul=(l.flags&131072)!==0}else Ul=!1,al&&(t.flags&1048576)!==0&&ds(t,je,t.index);switch(t.lanes=0,t.tag){case 16:l:{l=t.pendingProps;var a=t.elementType,e=a._init;if(a=e(a._payload),t.type=a,typeof a=="function")Mf(a)?(l=Ru(a,l),t.tag=1,t=Ho(null,t,a,l,u)):(t.tag=0,t=cc(null,t,a,l,u));else{if(a!=null){if(e=a.$$typeof,e===wl){t.tag=11,t=_o(null,t,a,l,u);break l}else if(e===Ol){t.tag=14,t=po(null,t,a,l,u);break l}}throw t=hu(a)||a,Error(r(306,t,""))}}return t;case 0:return cc(l,t,t.type,t.pendingProps,u);case 1:return a=t.type,e=Ru(a,t.pendingProps),Ho(l,t,a,e,u);case 3:l:{if(vl(t,t.stateNode.containerInfo),l===null)throw Error(r(387));a=t.pendingProps;var n=t.memoizedState;e=n.element,Cf(l,t),Ja(t,a,null,u);var f=t.memoizedState;if(a=f.cache,Jt(t,_l,a),a!==n.cache&&Nf(t,[_l],u,!0),Ka(),a=f.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=qo(l,t,a,u);break l}else if(a!==e){e=ft(Error(r(424)),t),xa(e),t=qo(l,t,a,u);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(ml=gt(l.firstChild),Ql=t,al=!0,zu=null,At=!0,u=ho(t,null,a,u),t.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ca(),a===e){t=Gt(l,t,u);break l}Hl(l,t,a,u)}t=t.child}return t;case 26:return on(l,t),l===null?(u=Qr(t.type,null,t.pendingProps,null))?t.memoizedState=u:al||(u=t.type,l=t.pendingProps,a=On(Z.current).createElement(u),a[xl]=t,a[Zl]=l,Yl(a,u,l),Dl(a),t.stateNode=a):t.memoizedState=Qr(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Zn(t),l===null&&al&&(a=t.stateNode=xr(t.type,t.pendingProps,Z.current),Ql=t,At=!0,e=ml,cu(t.type)?(Wc=e,ml=gt(a.firstChild)):ml=e),Hl(l,t,t.pendingProps.children,u),on(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&al&&((e=a=ml)&&(a=mv(a,t.type,t.pendingProps,At),a!==null?(t.stateNode=a,Ql=t,ml=gt(a.firstChild),At=!1,e=!0):e=!1),e||Ou(t)),Zn(t),e=t.type,n=t.pendingProps,f=l!==null?l.memoizedProps:null,a=n.children,Vc(e,n)?a=null:f!==null&&Vc(e,f)&&(t.flags|=32),t.memoizedState!==null&&(e=jf(l,t,Y0,null,null,u),ye._currentValue=e),on(l,t),Hl(l,t,a,u),t.child;case 6:return l===null&&al&&((l=u=ml)&&(u=gv(u,t.pendingProps,At),u!==null?(t.stateNode=u,Ql=t,ml=null,l=!0):l=!1),l||Ou(t)),null;case 13:return Yo(l,t,u);case 4:return vl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=fa(t,null,a,u):Hl(l,t,a,u),t.child;case 11:return _o(l,t,t.type,t.pendingProps,u);case 7:return Hl(l,t,t.pendingProps,u),t.child;case 8:return Hl(l,t,t.pendingProps.children,u),t.child;case 12:return Hl(l,t,t.pendingProps.children,u),t.child;case 10:return a=t.pendingProps,Jt(t,t.type,a.value),Hl(l,t,a.children,u),t.child;case 9:return e=t.type._context,a=t.pendingProps.children,pu(t),e=Ll(e),a=a(e),t.flags|=1,Hl(l,t,a,u),t.child;case 14:return po(l,t,t.type,t.pendingProps,u);case 15:return Do(l,t,t.type,t.pendingProps,u);case 19:return Go(l,t,u);case 31:return a=t.pendingProps,u=t.mode,a={mode:a.mode,children:a.children},l===null?(u=rn(a,u),u.ref=t.ref,t.child=u,u.return=t,t=u):(u=Ut(l.child,a),u.ref=t.ref,t.child=u,u.return=t,t=u),t;case 22:return Uo(l,t,u);case 24:return pu(t),a=Ll(_l),l===null?(e=Yf(),e===null&&(e=dl,n=Hf(),e.pooledCache=n,n.refCount++,n!==null&&(e.pooledCacheLanes|=u),e=n),t.memoizedState={parent:a,cache:e},Gf(t),Jt(t,_l,e)):((l.lanes&u)!==0&&(Cf(l,t),Ja(t,null,null,u),Ka()),e=l.memoizedState,n=t.memoizedState,e.parent!==a?(e={parent:a,cache:a},t.memoizedState=e,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=e),Jt(t,_l,a)):(a=n.cache,Jt(t,_l,a),a!==e.cache&&Nf(t,[_l],u,!0))),Hl(l,t,t.pendingProps.children,u),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ct(l){l.flags|=4}function xo(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Jr(t)){if(t=ot.current,t!==null&&((ll&4194048)===ll?Tt!==null:(ll&62914560)!==ll&&(ll&536870912)===0||t!==Tt))throw ja=Bf,Es;l.flags|=8192}}function dn(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?hi():536870912,l.lanes|=t,oa|=t)}function Pa(l,t){if(!al)switch(l.tailMode){case"hidden":t=l.tail;for(var u=null;t!==null;)t.alternate!==null&&(u=t),t=t.sibling;u===null?l.tail=null:u.sibling=null;break;case"collapsed":u=l.tail;for(var a=null;u!==null;)u.alternate!==null&&(a=u),u=u.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function hl(l){var t=l.alternate!==null&&l.alternate.child===l.child,u=0,a=0;if(t)for(var e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags&65011712,a|=e.flags&65011712,e.return=l,e=e.sibling;else for(e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags,a|=e.flags,e.return=l,e=e.sibling;return l.subtreeFlags|=a,l.childLanes=u,t}function j0(l,t,u){var a=t.pendingProps;switch(pf(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hl(t),null;case 1:return hl(t),null;case 3:return u=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),qt(_l),Zt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(l===null||l.child===null)&&(Ga(t)?Ct(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hs())),hl(t),null;case 26:return u=t.memoizedState,l===null?(Ct(t),u!==null?(hl(t),xo(t,u)):(hl(t),t.flags&=-16777217)):u?u!==l.memoizedState?(Ct(t),hl(t),xo(t,u)):(hl(t),t.flags&=-16777217):(l.memoizedProps!==a&&Ct(t),hl(t),t.flags&=-16777217),null;case 27:Te(t),u=Z.current;var e=t.type;if(l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Ct(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return hl(t),null}l=C.current,Ga(t)?vs(t):(l=xr(e,a,u),t.stateNode=l,Ct(t))}return hl(t),null;case 5:if(Te(t),u=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Ct(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return hl(t),null}if(l=C.current,Ga(t))vs(t);else{switch(e=On(Z.current),l){case 1:l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":l=e.createElement("div"),l.innerHTML=" + + + +
+ + + diff --git a/dist/samples/react-ui-kit-place-details-compact/docs/index.html b/dist/samples/react-ui-kit-place-details-compact/docs/index.html new file mode 100644 index 00000000..62864626 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-compact/docs/index.html @@ -0,0 +1,37 @@ + + + + + + + + + React - UI Kit Place Details Compact + + + + +
+ + + + diff --git a/dist/samples/react-ui-kit-place-details-compact/docs/src/app.js b/dist/samples/react-ui-kit-place-details-compact/docs/src/app.js new file mode 100644 index 00000000..6930968f --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-compact/docs/src/app.js @@ -0,0 +1,57 @@ +import { jsx as _jsx } from "react/jsx-runtime"; +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{ /* [START maps_react_ui_kit_place_details_compact] */ } +import React, { useEffect, useRef } from 'react'; +import { createRoot } from 'react-dom/client'; +import { APIProvider, useMapsLibrary } from '@vis.gl/react-google-maps'; +import './styles.css'; +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; +// Renders place details using a place ID. +const PlaceDetails = ({ placeId }) => { + const places = useMapsLibrary('places'); + const containerRef = useRef(null); + useEffect(() => { + if (!places || !containerRef.current) { + return; + } + // Create the gmp-place-details-compact element. + const placeDetails = document.createElement('gmp-place-details-compact'); + // Set the orientation. + placeDetails.setAttribute('orientation', 'horizontal'); + // Create the gmp-place-details-place-request element. + const placeRequest = document.createElement('gmp-place-details-place-request'); + // Set the place on the place request element. + placeRequest.setAttribute('place', placeId); + // Append the place request to the place details element. + placeDetails.appendChild(placeRequest); + // Create and append the content config and its children. + const contentConfig = document.createElement('gmp-place-content-config'); + contentConfig.innerHTML = ` + + + + + + + + `; + placeDetails.appendChild(contentConfig); + // Append the place details element to the container. + containerRef.current.innerHTML = ''; // Clear previous content + containerRef.current.appendChild(placeDetails); + }, [places, placeId]); + return _jsx("div", { ref: containerRef, className: "place-details-container" }); +}; +const App = () => { + return (_jsx(APIProvider, { apiKey: API_KEY, libraries: ['places'], children: _jsx("div", { className: "places-ui-kit", children: _jsx(PlaceDetails, { placeId: "ChIJ5bx0qiVu5kcRs_dMpI5ttiY" }) }) })); +}; +export default App; +export function renderToDom(container) { + const root = createRoot(container); + root.render(_jsx(React.StrictMode, { children: _jsx(App, {}) })); +} +{ /* [END maps_react_ui_kit_place_details_compact] */ } diff --git a/dist/samples/react-ui-kit-place-details-compact/docs/src/app.tsx b/dist/samples/react-ui-kit-place-details-compact/docs/src/app.tsx new file mode 100644 index 00000000..1ddcfca8 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-compact/docs/src/app.tsx @@ -0,0 +1,88 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{/* [START maps_react_ui_kit_place_details_compact] */} +import React, {useEffect, useRef} from 'react'; +import {createRoot} from 'react-dom/client'; +import {APIProvider, useMapsLibrary} from '@vis.gl/react-google-maps'; + +import './styles.css'; + +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; + +type PlaceDetailsProps = { + placeId: string; +}; + +// Renders place details using a place ID. +const PlaceDetails = ({placeId}: PlaceDetailsProps) => { + const places = useMapsLibrary('places'); + const containerRef = useRef(null); + + useEffect(() => { + if (!places || !containerRef.current) { + return; + } + // Create the gmp-place-details-compact element. + const placeDetails = document.createElement('gmp-place-details-compact'); + + // Set the orientation. + placeDetails.setAttribute('orientation', 'horizontal'); + + // Create the gmp-place-details-place-request element. + const placeRequest = document.createElement( + 'gmp-place-details-place-request', + ); + + // Set the place on the place request element. + placeRequest.setAttribute('place', placeId); + + // Append the place request to the place details element. + placeDetails.appendChild(placeRequest); + + // Create and append the content config and its children. + const contentConfig = document.createElement('gmp-place-content-config'); + contentConfig.innerHTML = ` + + + + + + + + `; + placeDetails.appendChild(contentConfig); + + // Append the place details element to the container. + containerRef.current.innerHTML = ''; // Clear previous content + containerRef.current.appendChild(placeDetails); + }, [places, placeId]); + + return
; +}; + +const App = () => { + return ( + +
+ +
+
+ ); +}; + +export default App; + +export function renderToDom(container: HTMLElement) { + const root = createRoot(container); + + root.render( + + + + ); +} +{/* [END maps_react_ui_kit_place_details_compact] */} + diff --git a/dist/samples/react-ui-kit-place-details-compact/docs/src/styles.css b/dist/samples/react-ui-kit-place-details-compact/docs/src/styles.css new file mode 100644 index 00000000..5d922b40 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-compact/docs/src/styles.css @@ -0,0 +1,50 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +/* [START maps_react_ui_kit_place_details_compact] */ +html, +body { + display: flex; + width: 100%; + height: 400px; + margin: 0; +} + +h1 { + font-size: 16px; + text-align: center; +} + +#map-container { + box-sizing: border-box; + width: 100%; +} + +gmp-place-details-compact { + --gmp-mat-color-on-surface: light-dark(black, white); + --gmp-mat-color-surface: light-dark(white, black); + --gmp-mat-font-family: Google Sans Text, sans-serif; + --gmp-mat-font-body-medium: normal 400 0.875em/1.25em var(--gmp-mat-font-family, 'Google Sans Text'); + + width: 360px; + border: none; + padding: 0; + margin: 0; + position: relative; +} + +gmp-place-details-compact::after { + content: ""; + position: absolute; + top: 100%; + left: 50%; + transform: translateX(-50%); + width: 0; + height: 0; + border-left: 16px solid transparent; + border-right: 16px solid transparent; + border-top: 20px solid var(--gmp-mat-color-surface, light-dark(white, black)); +} +/* [END maps_react_ui_kit_place_details_compact] */ diff --git a/dist/samples/react-ui-kit-place-details-latlng-compact/dist/assets/index-CWIXT402.js b/dist/samples/react-ui-kit-place-details-latlng-compact/dist/assets/index-CWIXT402.js new file mode 100644 index 00000000..1354970b --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng-compact/dist/assets/index-CWIXT402.js @@ -0,0 +1,57 @@ +(function(){const S=document.createElement("link").relList;if(S&&S.supports&&S.supports("modulepreload"))return;for(const U of document.querySelectorAll('link[rel="modulepreload"]'))r(U);new MutationObserver(U=>{for(const H of U)if(H.type==="childList")for(const Y of H.addedNodes)Y.tagName==="LINK"&&Y.rel==="modulepreload"&&r(Y)}).observe(document,{childList:!0,subtree:!0});function O(U){const H={};return U.integrity&&(H.integrity=U.integrity),U.referrerPolicy&&(H.referrerPolicy=U.referrerPolicy),U.crossOrigin==="use-credentials"?H.credentials="include":U.crossOrigin==="anonymous"?H.credentials="omit":H.credentials="same-origin",H}function r(U){if(U.ep)return;U.ep=!0;const H=O(U);fetch(U.href,H)}})();function Zv(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var ei={exports:{}},be={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ed;function jv(){if(ed)return be;ed=1;var g=Symbol.for("react.transitional.element"),S=Symbol.for("react.fragment");function O(r,U,H){var Y=null;if(H!==void 0&&(Y=""+H),U.key!==void 0&&(Y=""+U.key),"key"in U){H={};for(var j in U)j!=="key"&&(H[j]=U[j])}else H=U;return U=H.ref,{$$typeof:g,type:r,key:Y,ref:U!==void 0?U:null,props:H}}return be.Fragment=S,be.jsx=O,be.jsxs=O,be}var nd;function Vv(){return nd||(nd=1,ei.exports=jv()),ei.exports}var Ea=Vv(),ni={exports:{}},V={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fd;function Kv(){if(fd)return V;fd=1;var g=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),K=Symbol.iterator;function J(s){return s===null||typeof s!="object"?null:(s=K&&s[K]||s["@@iterator"],typeof s=="function"?s:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,rl={};function Al(s,z,N){this.props=s,this.context=z,this.refs=rl,this.updater=N||P}Al.prototype.isReactComponent={},Al.prototype.setState=function(s,z){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,z,"setState")},Al.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function vt(){}vt.prototype=Al.prototype;function yt(s,z,N){this.props=s,this.context=z,this.refs=rl,this.updater=N||P}var zl=yt.prototype=new vt;zl.constructor=yt,G(zl,Al.prototype),zl.isPureReactComponent=!0;var wl=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},Sl=Object.prototype.hasOwnProperty;function Ol(s,z,N,D,C,tl){return N=tl.ref,{$$typeof:g,type:s,key:z,ref:N!==void 0?N:null,props:tl}}function Bl(s,z){return Ol(s.type,z,void 0,void 0,void 0,s.props)}function bt(s){return typeof s=="object"&&s!==null&&s.$$typeof===g}function Yu(s){var z={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(N){return z[N]})}var _t=/\/+/g;function Gl(s,z){return typeof s=="object"&&s!==null&&s.key!=null?Yu(""+s.key):z.toString(36)}function yu(){}function hu(s){switch(s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(yu,yu):(s.status="pending",s.then(function(z){s.status==="pending"&&(s.status="fulfilled",s.value=z)},function(z){s.status==="pending"&&(s.status="rejected",s.reason=z)})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}}throw s}function Cl(s,z,N,D,C){var tl=typeof s;(tl==="undefined"||tl==="boolean")&&(s=null);var Z=!1;if(s===null)Z=!0;else switch(tl){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(s.$$typeof){case g:case S:Z=!0;break;case R:return Z=s._init,Cl(Z(s._payload),z,N,D,C)}}if(Z)return C=C(s),Z=D===""?"."+Gl(s,0):D,wl(C)?(N="",Z!=null&&(N=Z.replace(_t,"$&/")+"/"),Cl(C,z,N,"",function(Zt){return Zt})):C!=null&&(bt(C)&&(C=Bl(C,N+(C.key==null||s&&s.key===C.key?"":(""+C.key).replace(_t,"$&/")+"/")+Z)),z.push(C)),1;Z=0;var Wl=D===""?".":D+":";if(wl(s))for(var vl=0;vl>>1,s=E[sl];if(0>>1;slU(D,X))CU(tl,D)?(E[sl]=tl,E[C]=X,sl=C):(E[sl]=D,E[N]=X,sl=N);else if(CU(tl,X))E[sl]=tl,E[C]=X,sl=C;else break l}}return p}function U(E,p){var X=E.sortIndex-p.sortIndex;return X!==0?X:E.id-p.id}if(g.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var H=performance;g.unstable_now=function(){return H.now()}}else{var Y=Date,j=Y.now();g.unstable_now=function(){return Y.now()-j}}var _=[],A=[],R=1,K=null,J=3,P=!1,G=!1,rl=!1,Al=!1,vt=typeof setTimeout=="function"?setTimeout:null,yt=typeof clearTimeout=="function"?clearTimeout:null,zl=typeof setImmediate<"u"?setImmediate:null;function wl(E){for(var p=O(A);p!==null;){if(p.callback===null)r(A);else if(p.startTime<=E)r(A),p.sortIndex=p.expirationTime,S(_,p);else break;p=O(A)}}function $(E){if(rl=!1,wl(E),!G)if(O(_)!==null)G=!0,Sl||(Sl=!0,Gl());else{var p=O(A);p!==null&&Cl($,p.startTime-E)}}var Sl=!1,Ol=-1,Bl=5,bt=-1;function Yu(){return Al?!0:!(g.unstable_now()-btE&&Yu());){var sl=K.callback;if(typeof sl=="function"){K.callback=null,J=K.priorityLevel;var s=sl(K.expirationTime<=E);if(E=g.unstable_now(),typeof s=="function"){K.callback=s,wl(E),p=!0;break t}K===O(_)&&r(_),wl(E)}else r(_);K=O(_)}if(K!==null)p=!0;else{var z=O(A);z!==null&&Cl($,z.startTime-E),p=!1}}break l}finally{K=null,J=X,P=!1}p=void 0}}finally{p?Gl():Sl=!1}}}var Gl;if(typeof zl=="function")Gl=function(){zl(_t)};else if(typeof MessageChannel<"u"){var yu=new MessageChannel,hu=yu.port2;yu.port1.onmessage=_t,Gl=function(){hu.postMessage(null)}}else Gl=function(){vt(_t,0)};function Cl(E,p){Ol=vt(function(){E(g.unstable_now())},p)}g.unstable_IdlePriority=5,g.unstable_ImmediatePriority=1,g.unstable_LowPriority=4,g.unstable_NormalPriority=3,g.unstable_Profiling=null,g.unstable_UserBlockingPriority=2,g.unstable_cancelCallback=function(E){E.callback=null},g.unstable_forceFrameRate=function(E){0>E||125sl?(E.sortIndex=X,S(A,E),O(_)===null&&E===O(A)&&(rl?(yt(Ol),Ol=-1):rl=!0,Cl($,X-sl))):(E.sortIndex=s,S(_,E),G||P||(G=!0,Sl||(Sl=!0,Gl()))),E},g.unstable_shouldYield=Yu,g.unstable_wrapCallback=function(E){var p=J;return function(){var X=J;J=p;try{return E.apply(this,arguments)}finally{J=X}}}})(ii)),ii}var sd;function wv(){return sd||(sd=1,ci.exports=Jv()),ci.exports}var si={exports:{}},Xl={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var od;function Wv(){if(od)return Xl;od=1;var g=oi();function S(_){var A="https://react.dev/errors/"+_;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g)}catch(S){console.error(S)}}return g(),si.exports=Wv(),si.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dd;function $v(){if(dd)return Ee;dd=1;var g=wv(),S=oi(),O=gd();function r(l){var t="https://react.dev/errors/"+l;if(1s||(l.current=sl[s],sl[s]=null,s--)}function D(l,t){s++,sl[s]=l.current,l.current=t}var C=z(null),tl=z(null),Z=z(null),Wl=z(null);function vl(l,t){switch(D(Z,t),D(tl,l),D(C,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Hr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Hr(t),l=qr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}N(C),D(C,l)}function Zt(){N(C),N(tl),N(Z)}function Zn(l){l.memoizedState!==null&&D(Wl,l);var t=C.current,u=qr(t,l.type);t!==u&&(D(tl,l),D(C,u))}function Te(l){tl.current===l&&(N(C),N(tl)),Wl.current===l&&(N(Wl),ye._currentValue=X)}var jn=Object.prototype.hasOwnProperty,Vn=g.unstable_scheduleCallback,Kn=g.unstable_cancelCallback,Ed=g.unstable_shouldYield,Ad=g.unstable_requestPaint,Et=g.unstable_now,Td=g.unstable_getCurrentPriorityLevel,ri=g.unstable_ImmediatePriority,di=g.unstable_UserBlockingPriority,Me=g.unstable_NormalPriority,Md=g.unstable_LowPriority,vi=g.unstable_IdlePriority,zd=g.log,Od=g.unstable_setDisableYieldValue,Ta=null,$l=null;function jt(l){if(typeof zd=="function"&&Od(l),$l&&typeof $l.setStrictMode=="function")try{$l.setStrictMode(Ta,l)}catch{}}var kl=Math.clz32?Math.clz32:pd,_d=Math.log,Dd=Math.LN2;function pd(l){return l>>>=0,l===0?32:31-(_d(l)/Dd|0)|0}var ze=256,Oe=4194304;function mu(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function _e(l,t,u){var a=l.pendingLanes;if(a===0)return 0;var e=0,n=l.suspendedLanes,f=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?e=mu(a):(f&=c,f!==0?e=mu(f):u||(u=c&~l,u!==0&&(e=mu(u))))):(c=a&~n,c!==0?e=mu(c):f!==0?e=mu(f):u||(u=a&~l,u!==0&&(e=mu(u)))),e===0?0:t!==0&&t!==e&&(t&n)===0&&(n=e&-e,u=t&-t,n>=u||n===32&&(u&4194048)!==0)?t:e}function Ma(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Ud(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yi(){var l=ze;return ze<<=1,(ze&4194048)===0&&(ze=256),l}function hi(){var l=Oe;return Oe<<=1,(Oe&62914560)===0&&(Oe=4194304),l}function Jn(l){for(var t=[],u=0;31>u;u++)t.push(l);return t}function za(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Rd(l,t,u,a,e,n){var f=l.pendingLanes;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=u,l.entangledLanes&=u,l.errorRecoveryDisabledLanes&=u,l.shellSuspendCounter=0;var c=l.entanglements,i=l.expirationTimes,y=l.hiddenUpdates;for(u=f&~u;0)":-1e||i[a]!==y[e]){var b=` +`+i[a].replace(" at new "," at ");return l.displayName&&b.includes("")&&(b=b.replace("",l.displayName)),b}while(1<=a&&0<=e);break}}}finally{In=!1,Error.prepareStackTrace=u}return(u=l?l.displayName||l.name:"")?Xu(u):""}function Gd(l){switch(l.tag){case 26:case 27:case 5:return Xu(l.type);case 16:return Xu("Lazy");case 13:return Xu("Suspense");case 19:return Xu("SuspenseList");case 0:case 15:return Pn(l.type,!1);case 11:return Pn(l.type.render,!1);case 1:return Pn(l.type,!0);case 31:return Xu("Activity");default:return""}}function Oi(l){try{var t="";do t+=Gd(l),l=l.return;while(l);return t}catch(u){return` +Error generating stack: `+u.message+` +`+u.stack}}function et(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function _i(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cd(l){var t=_i(l)?"checked":"value",u=Object.getOwnPropertyDescriptor(l.constructor.prototype,t),a=""+l[t];if(!l.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var e=u.get,n=u.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return e.call(this)},set:function(f){a=""+f,n.call(this,f)}}),Object.defineProperty(l,t,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function Ue(l){l._valueTracker||(l._valueTracker=Cd(l))}function Di(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var u=t.getValue(),a="";return l&&(a=_i(l)?l.checked?"true":"false":l.value),l=a,l!==u?(t.setValue(l),!0):!1}function Re(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var xd=/[\n"\\]/g;function nt(l){return l.replace(xd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lf(l,t,u,a,e,n,f,c){l.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?l.type=f:l.removeAttribute("type"),t!=null?f==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+et(t)):l.value!==""+et(t)&&(l.value=""+et(t)):f!=="submit"&&f!=="reset"||l.removeAttribute("value"),t!=null?tf(l,f,et(t)):u!=null?tf(l,f,et(u)):a!=null&&l.removeAttribute("value"),e==null&&n!=null&&(l.defaultChecked=!!n),e!=null&&(l.checked=e&&typeof e!="function"&&typeof e!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+et(c):l.removeAttribute("name")}function pi(l,t,u,a,e,n,f,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||u!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;u=u!=null?""+et(u):"",t=t!=null?""+et(t):u,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??e,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(l.name=f)}function tf(l,t,u){t==="number"&&Re(l.ownerDocument)===l||l.defaultValue===""+u||(l.defaultValue=""+u)}function Qu(l,t,u,a){if(l=l.options,t){t={};for(var e=0;e"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ff=!1;if(pt)try{var pa={};Object.defineProperty(pa,"passive",{get:function(){ff=!0}}),window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{ff=!1}var Kt=null,cf=null,He=null;function Bi(){if(He)return He;var l,t=cf,u=t.length,a,e="value"in Kt?Kt.value:Kt.textContent,n=e.length;for(l=0;l=Na),Qi=" ",Zi=!1;function ji(l,t){switch(l){case"keyup":return d0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vi(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Ku=!1;function y0(l,t){switch(l){case"compositionend":return Vi(t);case"keypress":return t.which!==32?null:(Zi=!0,Qi);case"textInput":return l=t.data,l===Qi&&Zi?null:l;default:return null}}function h0(l,t){if(Ku)return l==="compositionend"||!vf&&ji(l,t)?(l=Bi(),He=cf=Kt=null,Ku=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:u,offset:t-l};l=a}l:{for(;u;){if(u.nextSibling){u=u.nextSibling;break l}u=u.parentNode}u=void 0}u=Ii(u)}}function ls(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?ls(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function ts(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Re(l.document);t instanceof l.HTMLIFrameElement;){try{var u=typeof t.contentWindow.location.href=="string"}catch{u=!1}if(u)l=t.contentWindow;else break;t=Re(l.document)}return t}function mf(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var M0=pt&&"documentMode"in document&&11>=document.documentMode,Ju=null,gf=null,Ba=null,Sf=!1;function us(l,t,u){var a=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Sf||Ju==null||Ju!==Re(a)||(a=Ju,"selectionStart"in a&&mf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ba&&Ya(Ba,a)||(Ba=a,a=Mn(gf,"onSelect"),0>=f,e-=f,Rt=1<<32-kl(t)+e|u<n?n:8;var f=E.T,c={};E.T=c,ac(l,!1,t,u);try{var i=e(),y=E.S;if(y!==null&&y(c,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var b=H0(i,a);ka(l,t,b,ut(l))}else ka(l,t,a,ut(l))}catch(M){ka(l,t,{then:function(){},status:"rejected",reason:M},ut())}finally{p.p=n,E.T=f}}function C0(){}function tc(l,t,u,a){if(l.tag!==5)throw Error(r(476));var e=ao(l).queue;uo(l,e,t,X,u===null?C0:function(){return eo(l),u(a)})}function ao(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:X},next:null};var u={};return t.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:u},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function eo(l){var t=ao(l).next.queue;ka(l,t,{},ut())}function uc(){return Ll(ye)}function no(){return Ml().memoizedState}function fo(){return Ml().memoizedState}function x0(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var u=ut();l=Wt(u);var a=$t(t,l,u);a!==null&&(at(a,t,u),Va(a,t,u)),t={cache:Hf()},l.payload=t;return}t=t.return}}function L0(l,t,u){var a=ut();u={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},un(l)?io(t,u):(u=Tf(l,t,u,a),u!==null&&(at(u,l,a),so(u,t,a)))}function co(l,t,u){var a=ut();ka(l,t,u,a)}function ka(l,t,u,a){var e={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(un(l))io(t,e);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var f=t.lastRenderedState,c=n(f,u);if(e.hasEagerState=!0,e.eagerState=c,Fl(c,f))return Le(l,t,e,0),dl===null&&xe(),!1}catch{}finally{}if(u=Tf(l,t,e,a),u!==null)return at(u,l,a),so(u,t,a),!0}return!1}function ac(l,t,u,a){if(a={lane:2,revertLane:Bc(),action:a,hasEagerState:!1,eagerState:null,next:null},un(l)){if(t)throw Error(r(479))}else t=Tf(l,u,a,2),t!==null&&at(t,l,2)}function un(l){var t=l.alternate;return l===w||t!==null&&t===w}function io(l,t){ua=ke=!0;var u=l.pending;u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t}function so(l,t,u){if((u&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,u|=a,t.lanes=u,gi(l,u)}}var an={readContext:Ll,use:Ie,useCallback:bl,useContext:bl,useEffect:bl,useImperativeHandle:bl,useLayoutEffect:bl,useInsertionEffect:bl,useMemo:bl,useReducer:bl,useRef:bl,useState:bl,useDebugValue:bl,useDeferredValue:bl,useTransition:bl,useSyncExternalStore:bl,useId:bl,useHostTransitionStatus:bl,useFormState:bl,useActionState:bl,useOptimistic:bl,useMemoCache:bl,useCacheRefresh:bl},oo={readContext:Ll,use:Ie,useCallback:function(l,t){return Vl().memoizedState=[l,t===void 0?null:t],l},useContext:Ll,useEffect:ws,useImperativeHandle:function(l,t,u){u=u!=null?u.concat([l]):null,tn(4194308,4,Fs.bind(null,t,l),u)},useLayoutEffect:function(l,t){return tn(4194308,4,l,t)},useInsertionEffect:function(l,t){tn(4,2,l,t)},useMemo:function(l,t){var u=Vl();t=t===void 0?null:t;var a=l();if(Uu){jt(!0);try{l()}finally{jt(!1)}}return u.memoizedState=[a,t],a},useReducer:function(l,t,u){var a=Vl();if(u!==void 0){var e=u(t);if(Uu){jt(!0);try{u(t)}finally{jt(!1)}}}else e=t;return a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:e},a.queue=l,l=l.dispatch=L0.bind(null,w,l),[a.memoizedState,l]},useRef:function(l){var t=Vl();return l={current:l},t.memoizedState=l},useState:function(l){l=Ff(l);var t=l.queue,u=co.bind(null,w,t);return t.dispatch=u,[l.memoizedState,u]},useDebugValue:Pf,useDeferredValue:function(l,t){var u=Vl();return lc(u,l,t)},useTransition:function(){var l=Ff(!1);return l=uo.bind(null,w,l.queue,!0,!1),Vl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,u){var a=w,e=Vl();if(al){if(u===void 0)throw Error(r(407));u=u()}else{if(u=t(),dl===null)throw Error(r(349));(ll&124)!==0||Ns(a,t,u)}e.memoizedState=u;var n={value:u,getSnapshot:t};return e.queue=n,ws(qs.bind(null,a,n,l),[l]),a.flags|=2048,ea(9,ln(),Hs.bind(null,a,n,u,t),null),u},useId:function(){var l=Vl(),t=dl.identifierPrefix;if(al){var u=Nt,a=Rt;u=(a&~(1<<32-kl(a)-1)).toString(32)+u,t="«"+t+"R"+u,u=Fe++,0L?(Nl=B,B=null):Nl=B.sibling;var ul=h(d,B,v[L],T);if(ul===null){B===null&&(B=Nl);break}l&&B&&ul.alternate===null&&t(d,B),o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul,B=Nl}if(L===v.length)return u(d,B),al&&Mu(d,L),q;if(B===null){for(;LL?(Nl=B,B=null):Nl=B.sibling;var du=h(d,B,ul.value,T);if(du===null){B===null&&(B=Nl);break}l&&B&&du.alternate===null&&t(d,B),o=n(du,o,L),W===null?q=du:W.sibling=du,W=du,B=Nl}if(ul.done)return u(d,B),al&&Mu(d,L),q;if(B===null){for(;!ul.done;L++,ul=v.next())ul=M(d,ul.value,T),ul!==null&&(o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul);return al&&Mu(d,L),q}for(B=a(B);!ul.done;L++,ul=v.next())ul=m(B,d,L,ul.value,T),ul!==null&&(l&&ul.alternate!==null&&B.delete(ul.key===null?L:ul.key),o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul);return l&&B.forEach(function(Qv){return t(d,Qv)}),al&&Mu(d,L),q}function il(d,o,v,T){if(typeof v=="object"&&v!==null&&v.type===G&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case J:l:{for(var q=v.key;o!==null;){if(o.key===q){if(q=v.type,q===G){if(o.tag===7){u(d,o.sibling),T=e(o,v.props.children),T.return=d,d=T;break l}}else if(o.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Bl&&vo(q)===o.type){u(d,o.sibling),T=e(o,v.props),Ia(T,v),T.return=d,d=T;break l}u(d,o);break}else t(d,o);o=o.sibling}v.type===G?(T=Au(v.props.children,d.mode,T,v.key),T.return=d,d=T):(T=Qe(v.type,v.key,v.props,null,d.mode,T),Ia(T,v),T.return=d,d=T)}return f(d);case P:l:{for(q=v.key;o!==null;){if(o.key===q)if(o.tag===4&&o.stateNode.containerInfo===v.containerInfo&&o.stateNode.implementation===v.implementation){u(d,o.sibling),T=e(o,v.children||[]),T.return=d,d=T;break l}else{u(d,o);break}else t(d,o);o=o.sibling}T=Of(v,d.mode,T),T.return=d,d=T}return f(d);case Bl:return q=v._init,v=q(v._payload),il(d,o,v,T)}if(Cl(v))return Q(d,o,v,T);if(Gl(v)){if(q=Gl(v),typeof q!="function")throw Error(r(150));return v=q.call(v),x(d,o,v,T)}if(typeof v.then=="function")return il(d,o,en(v),T);if(v.$$typeof===zl)return il(d,o,Ke(d,v),T);nn(d,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,o!==null&&o.tag===6?(u(d,o.sibling),T=e(o,v),T.return=d,d=T):(u(d,o),T=zf(v,d.mode,T),T.return=d,d=T),f(d)):u(d,o)}return function(d,o,v,T){try{Fa=0;var q=il(d,o,v,T);return na=null,q}catch(B){if(B===Za||B===we)throw B;var W=Il(29,B,null,d.mode);return W.lanes=T,W.return=d,W}finally{}}}var fa=yo(!0),ho=yo(!1),ot=z(null),Tt=null;function Ft(l){var t=l.alternate;D(Dl,Dl.current&1),D(ot,l),Tt===null&&(t===null||ta.current!==null||t.memoizedState!==null)&&(Tt=l)}function mo(l){if(l.tag===22){if(D(Dl,Dl.current),D(ot,l),Tt===null){var t=l.alternate;t!==null&&t.memoizedState!==null&&(Tt=l)}}else It()}function It(){D(Dl,Dl.current),D(ot,ot.current)}function Bt(l){N(ot),Tt===l&&(Tt=null),N(Dl)}var Dl=z(0);function fn(l){for(var t=l;t!==null;){if(t.tag===13){var u=t.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||wc(u)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ec(l,t,u,a){t=l.memoizedState,u=u(a,t),u=u==null?t:R({},t,u),l.memoizedState=u,l.lanes===0&&(l.updateQueue.baseState=u)}var nc={enqueueSetState:function(l,t,u){l=l._reactInternals;var a=ut(),e=Wt(a);e.payload=t,u!=null&&(e.callback=u),t=$t(l,e,a),t!==null&&(at(t,l,a),Va(t,l,a))},enqueueReplaceState:function(l,t,u){l=l._reactInternals;var a=ut(),e=Wt(a);e.tag=1,e.payload=t,u!=null&&(e.callback=u),t=$t(l,e,a),t!==null&&(at(t,l,a),Va(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var u=ut(),a=Wt(u);a.tag=2,t!=null&&(a.callback=t),t=$t(l,a,u),t!==null&&(at(t,l,u),Va(t,l,u))}};function go(l,t,u,a,e,n,f){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,n,f):t.prototype&&t.prototype.isPureReactComponent?!Ya(u,a)||!Ya(e,n):!0}function So(l,t,u,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(u,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(u,a),t.state!==l&&nc.enqueueReplaceState(t,t.state,null)}function Ru(l,t){var u=t;if("ref"in t){u={};for(var a in t)a!=="ref"&&(u[a]=t[a])}if(l=l.defaultProps){u===t&&(u=R({},u));for(var e in l)u[e]===void 0&&(u[e]=l[e])}return u}var cn=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function bo(l){cn(l)}function Eo(l){console.error(l)}function Ao(l){cn(l)}function sn(l,t){try{var u=l.onUncaughtError;u(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function To(l,t,u){try{var a=l.onCaughtError;a(u.value,{componentStack:u.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function fc(l,t,u){return u=Wt(u),u.tag=3,u.payload={element:null},u.callback=function(){sn(l,t)},u}function Mo(l){return l=Wt(l),l.tag=3,l}function zo(l,t,u,a){var e=u.type.getDerivedStateFromError;if(typeof e=="function"){var n=a.value;l.payload=function(){return e(n)},l.callback=function(){To(t,u,a)}}var f=u.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(l.callback=function(){To(t,u,a),typeof e!="function"&&(eu===null?eu=new Set([this]):eu.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function Q0(l,t,u,a,e){if(u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=u.alternate,t!==null&&La(t,u,e,!0),u=ot.current,u!==null){switch(u.tag){case 13:return Tt===null?Rc():u.alternate===null&&gl===0&&(gl=3),u.flags&=-257,u.flags|=65536,u.lanes=e,a===Bf?u.flags|=16384:(t=u.updateQueue,t===null?u.updateQueue=new Set([a]):t.add(a),Hc(l,a,e)),!1;case 22:return u.flags|=65536,a===Bf?u.flags|=16384:(t=u.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},u.updateQueue=t):(u=t.retryQueue,u===null?t.retryQueue=new Set([a]):u.add(a)),Hc(l,a,e)),!1}throw Error(r(435,u.tag))}return Hc(l,a,e),Rc(),!1}if(al)return t=ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=e,a!==pf&&(l=Error(r(422),{cause:a}),xa(ft(l,u)))):(a!==pf&&(t=Error(r(423),{cause:a}),xa(ft(t,u))),l=l.current.alternate,l.flags|=65536,e&=-e,l.lanes|=e,a=ft(a,u),e=fc(l.stateNode,a,e),xf(l,e),gl!==4&&(gl=2)),!1;var n=Error(r(520),{cause:a});if(n=ft(n,u),ne===null?ne=[n]:ne.push(n),gl!==4&&(gl=2),t===null)return!0;a=ft(a,u),u=t;do{switch(u.tag){case 3:return u.flags|=65536,l=e&-e,u.lanes|=l,l=fc(u.stateNode,a,l),xf(u,l),!1;case 1:if(t=u.type,n=u.stateNode,(u.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(eu===null||!eu.has(n))))return u.flags|=65536,e&=-e,u.lanes|=e,e=Mo(e),zo(e,l,u,a),xf(u,e),!1}u=u.return}while(u!==null);return!1}var Oo=Error(r(461)),Ul=!1;function Hl(l,t,u,a){t.child=l===null?ho(t,null,u,a):fa(t,l.child,u,a)}function _o(l,t,u,a,e){u=u.render;var n=t.ref;if("ref"in a){var f={};for(var c in a)c!=="ref"&&(f[c]=a[c])}else f=a;return Du(t),a=jf(l,t,u,f,n,e),c=Vf(),l!==null&&!Ul?(Kf(l,t,e),Gt(l,t,e)):(al&&c&&_f(t),t.flags|=1,Hl(l,t,a,e),t.child)}function Do(l,t,u,a,e){if(l===null){var n=u.type;return typeof n=="function"&&!Mf(n)&&n.defaultProps===void 0&&u.compare===null?(t.tag=15,t.type=n,po(l,t,n,a,e)):(l=Qe(u.type,null,a,t,t.mode,e),l.ref=t.ref,l.return=t,t.child=l)}if(n=l.child,!yc(l,e)){var f=n.memoizedProps;if(u=u.compare,u=u!==null?u:Ya,u(f,a)&&l.ref===t.ref)return Gt(l,t,e)}return t.flags|=1,l=Ut(n,a),l.ref=t.ref,l.return=t,t.child=l}function po(l,t,u,a,e){if(l!==null){var n=l.memoizedProps;if(Ya(n,a)&&l.ref===t.ref)if(Ul=!1,t.pendingProps=a=n,yc(l,e))(l.flags&131072)!==0&&(Ul=!0);else return t.lanes=l.lanes,Gt(l,t,e)}return cc(l,t,u,a,e)}function Uo(l,t,u){var a=t.pendingProps,e=a.children,n=l!==null?l.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=n!==null?n.baseLanes|u:u,l!==null){for(e=t.child=l.child,n=0;e!==null;)n=n|e.lanes|e.childLanes,e=e.sibling;t.childLanes=n&~a}else t.childLanes=0,t.child=null;return Ro(l,t,a,u)}if((u&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&Je(t,n!==null?n.cachePool:null),n!==null?Ds(t,n):Xf(),mo(t);else return t.lanes=t.childLanes=536870912,Ro(l,t,n!==null?n.baseLanes|u:u,u)}else n!==null?(Je(t,n.cachePool),Ds(t,n),It(),t.memoizedState=null):(l!==null&&Je(t,null),Xf(),It());return Hl(l,t,e,u),t.child}function Ro(l,t,u,a){var e=Yf();return e=e===null?null:{parent:_l._currentValue,pool:e},t.memoizedState={baseLanes:u,cachePool:e},l!==null&&Je(t,null),Xf(),mo(t),l!==null&&La(l,t,a,!0),null}function on(l,t){var u=t.ref;if(u===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(l===null||l.ref!==u)&&(t.flags|=4194816)}}function cc(l,t,u,a,e){return Du(t),u=jf(l,t,u,a,void 0,e),a=Vf(),l!==null&&!Ul?(Kf(l,t,e),Gt(l,t,e)):(al&&a&&_f(t),t.flags|=1,Hl(l,t,u,e),t.child)}function No(l,t,u,a,e,n){return Du(t),t.updateQueue=null,u=Us(t,a,u,e),ps(l),a=Vf(),l!==null&&!Ul?(Kf(l,t,n),Gt(l,t,n)):(al&&a&&_f(t),t.flags|=1,Hl(l,t,u,n),t.child)}function Ho(l,t,u,a,e){if(Du(t),t.stateNode===null){var n=ku,f=u.contextType;typeof f=="object"&&f!==null&&(n=Ll(f)),n=new u(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=nc,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},Gf(t),f=u.contextType,n.context=typeof f=="object"&&f!==null?Ll(f):ku,n.state=t.memoizedState,f=u.getDerivedStateFromProps,typeof f=="function"&&(ec(t,u,f,a),n.state=t.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(f=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),f!==n.state&&nc.enqueueReplaceState(n,n.state,null),Ja(t,a,n,e),Ka(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,i=Ru(u,c);n.props=i;var y=n.context,b=u.contextType;f=ku,typeof b=="object"&&b!==null&&(f=Ll(b));var M=u.getDerivedStateFromProps;b=typeof M=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,b||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||y!==f)&&So(t,n,a,f),wt=!1;var h=t.memoizedState;n.state=h,Ja(t,a,n,e),Ka(),y=t.memoizedState,c||h!==y||wt?(typeof M=="function"&&(ec(t,u,M,a),y=t.memoizedState),(i=wt||go(t,u,i,a,h,y,f))?(b||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=y),n.props=a,n.state=y,n.context=f,a=i):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,Cf(l,t),f=t.memoizedProps,b=Ru(u,f),n.props=b,M=t.pendingProps,h=n.context,y=u.contextType,i=ku,typeof y=="object"&&y!==null&&(i=Ll(y)),c=u.getDerivedStateFromProps,(y=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(f!==M||h!==i)&&So(t,n,a,i),wt=!1,h=t.memoizedState,n.state=h,Ja(t,a,n,e),Ka();var m=t.memoizedState;f!==M||h!==m||wt||l!==null&&l.dependencies!==null&&Ve(l.dependencies)?(typeof c=="function"&&(ec(t,u,c,a),m=t.memoizedState),(b=wt||go(t,u,b,a,h,m,i)||l!==null&&l.dependencies!==null&&Ve(l.dependencies))?(y||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,m,i),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,m,i)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=m),n.props=a,n.state=m,n.context=i,a=b):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),a=!1)}return n=a,on(l,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,u=a&&typeof u.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,l!==null&&a?(t.child=fa(t,l.child,null,e),t.child=fa(t,null,u,e)):Hl(l,t,u,e),t.memoizedState=n.state,l=t.child):l=Gt(l,t,e),l}function qo(l,t,u,a){return Ca(),t.flags|=256,Hl(l,t,u,a),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(l){return{baseLanes:l,cachePool:bs()}}function oc(l,t,u){return l=l!==null?l.childLanes&~u:0,t&&(l|=rt),l}function Yo(l,t,u){var a=t.pendingProps,e=!1,n=(t.flags&128)!==0,f;if((f=n)||(f=l!==null&&l.memoizedState===null?!1:(Dl.current&2)!==0),f&&(e=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,l===null){if(al){if(e?Ft(t):It(),al){var c=ml,i;if(i=c){l:{for(i=c,c=At;i.nodeType!==8;){if(!c){c=null;break l}if(i=gt(i.nextSibling),i===null){c=null;break l}}c=i}c!==null?(t.memoizedState={dehydrated:c,treeContext:Tu!==null?{id:Rt,overflow:Nt}:null,retryLane:536870912,hydrationErrors:null},i=Il(18,null,null,0),i.stateNode=c,i.return=t,t.child=i,Ql=t,ml=null,i=!0):i=!1}i||Ou(t)}if(c=t.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return wc(c)?t.lanes=32:t.lanes=536870912,null;Bt(t)}return c=a.children,a=a.fallback,e?(It(),e=t.mode,c=rn({mode:"hidden",children:c},e),a=Au(a,e,u,null),c.return=t,a.return=t,c.sibling=a,t.child=c,e=t.child,e.memoizedState=sc(u),e.childLanes=oc(l,f,u),t.memoizedState=ic,a):(Ft(t),rc(t,c))}if(i=l.memoizedState,i!==null&&(c=i.dehydrated,c!==null)){if(n)t.flags&256?(Ft(t),t.flags&=-257,t=dc(l,t,u)):t.memoizedState!==null?(It(),t.child=l.child,t.flags|=128,t=null):(It(),e=a.fallback,c=t.mode,a=rn({mode:"visible",children:a.children},c),e=Au(e,c,u,null),e.flags|=2,a.return=t,e.return=t,a.sibling=e,t.child=a,fa(t,l.child,null,u),a=t.child,a.memoizedState=sc(u),a.childLanes=oc(l,f,u),t.memoizedState=ic,t=e);else if(Ft(t),wc(c)){if(f=c.nextSibling&&c.nextSibling.dataset,f)var y=f.dgst;f=y,a=Error(r(419)),a.stack="",a.digest=f,xa({value:a,source:null,stack:null}),t=dc(l,t,u)}else if(Ul||La(l,t,u,!1),f=(u&l.childLanes)!==0,Ul||f){if(f=dl,f!==null&&(a=u&-u,a=(a&42)!==0?1:wn(a),a=(a&(f.suspendedLanes|u))!==0?0:a,a!==0&&a!==i.retryLane))throw i.retryLane=a,$u(l,a),at(f,l,a),Oo;c.data==="$?"||Rc(),t=dc(l,t,u)}else c.data==="$?"?(t.flags|=192,t.child=l.child,t=null):(l=i.treeContext,ml=gt(c.nextSibling),Ql=t,al=!0,zu=null,At=!1,l!==null&&(it[st++]=Rt,it[st++]=Nt,it[st++]=Tu,Rt=l.id,Nt=l.overflow,Tu=t),t=rc(t,a.children),t.flags|=4096);return t}return e?(It(),e=a.fallback,c=t.mode,i=l.child,y=i.sibling,a=Ut(i,{mode:"hidden",children:a.children}),a.subtreeFlags=i.subtreeFlags&65011712,y!==null?e=Ut(y,e):(e=Au(e,c,u,null),e.flags|=2),e.return=t,a.return=t,a.sibling=e,t.child=a,a=e,e=t.child,c=l.child.memoizedState,c===null?c=sc(u):(i=c.cachePool,i!==null?(y=_l._currentValue,i=i.parent!==y?{parent:y,pool:y}:i):i=bs(),c={baseLanes:c.baseLanes|u,cachePool:i}),e.memoizedState=c,e.childLanes=oc(l,f,u),t.memoizedState=ic,a):(Ft(t),u=l.child,l=u.sibling,u=Ut(u,{mode:"visible",children:a.children}),u.return=t,u.sibling=null,l!==null&&(f=t.deletions,f===null?(t.deletions=[l],t.flags|=16):f.push(l)),t.child=u,t.memoizedState=null,u)}function rc(l,t){return t=rn({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function rn(l,t){return l=Il(22,l,null,t),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function dc(l,t,u){return fa(t,l.child,null,u),l=rc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Bo(l,t,u){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Rf(l.return,t,u)}function vc(l,t,u,a,e){var n=l.memoizedState;n===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:u,tailMode:e}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=u,n.tailMode=e)}function Go(l,t,u){var a=t.pendingProps,e=a.revealOrder,n=a.tail;if(Hl(l,t,a.children,u),a=Dl.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Bo(l,u,t);else if(l.tag===19)Bo(l,u,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}a&=1}switch(D(Dl,a),e){case"forwards":for(u=t.child,e=null;u!==null;)l=u.alternate,l!==null&&fn(l)===null&&(e=u),u=u.sibling;u=e,u===null?(e=t.child,t.child=null):(e=u.sibling,u.sibling=null),vc(t,!1,e,u,n);break;case"backwards":for(u=null,e=t.child,t.child=null;e!==null;){if(l=e.alternate,l!==null&&fn(l)===null){t.child=e;break}l=e.sibling,e.sibling=u,u=e,e=l}vc(t,!0,u,null,n);break;case"together":vc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gt(l,t,u){if(l!==null&&(t.dependencies=l.dependencies),au|=t.lanes,(u&t.childLanes)===0)if(l!==null){if(La(l,t,u,!1),(u&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(r(153));if(t.child!==null){for(l=t.child,u=Ut(l,l.pendingProps),t.child=u,u.return=t;l.sibling!==null;)l=l.sibling,u=u.sibling=Ut(l,l.pendingProps),u.return=t;u.sibling=null}return t.child}function yc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Ve(l)))}function Z0(l,t,u){switch(t.tag){case 3:vl(t,t.stateNode.containerInfo),Jt(t,_l,l.memoizedState.cache),Ca();break;case 27:case 5:Zn(t);break;case 4:vl(t,t.stateNode.containerInfo);break;case 10:Jt(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ft(t),t.flags|=128,null):(u&t.child.childLanes)!==0?Yo(l,t,u):(Ft(t),l=Gt(l,t,u),l!==null?l.sibling:null);Ft(t);break;case 19:var e=(l.flags&128)!==0;if(a=(u&t.childLanes)!==0,a||(La(l,t,u,!1),a=(u&t.childLanes)!==0),e){if(a)return Go(l,t,u);t.flags|=128}if(e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null,e.lastEffect=null),D(Dl,Dl.current),a)break;return null;case 22:case 23:return t.lanes=0,Uo(l,t,u);case 24:Jt(t,_l,l.memoizedState.cache)}return Gt(l,t,u)}function Co(l,t,u){if(l!==null)if(l.memoizedProps!==t.pendingProps)Ul=!0;else{if(!yc(l,u)&&(t.flags&128)===0)return Ul=!1,Z0(l,t,u);Ul=(l.flags&131072)!==0}else Ul=!1,al&&(t.flags&1048576)!==0&&ds(t,je,t.index);switch(t.lanes=0,t.tag){case 16:l:{l=t.pendingProps;var a=t.elementType,e=a._init;if(a=e(a._payload),t.type=a,typeof a=="function")Mf(a)?(l=Ru(a,l),t.tag=1,t=Ho(null,t,a,l,u)):(t.tag=0,t=cc(null,t,a,l,u));else{if(a!=null){if(e=a.$$typeof,e===wl){t.tag=11,t=_o(null,t,a,l,u);break l}else if(e===Ol){t.tag=14,t=Do(null,t,a,l,u);break l}}throw t=hu(a)||a,Error(r(306,t,""))}}return t;case 0:return cc(l,t,t.type,t.pendingProps,u);case 1:return a=t.type,e=Ru(a,t.pendingProps),Ho(l,t,a,e,u);case 3:l:{if(vl(t,t.stateNode.containerInfo),l===null)throw Error(r(387));a=t.pendingProps;var n=t.memoizedState;e=n.element,Cf(l,t),Ja(t,a,null,u);var f=t.memoizedState;if(a=f.cache,Jt(t,_l,a),a!==n.cache&&Nf(t,[_l],u,!0),Ka(),a=f.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=qo(l,t,a,u);break l}else if(a!==e){e=ft(Error(r(424)),t),xa(e),t=qo(l,t,a,u);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(ml=gt(l.firstChild),Ql=t,al=!0,zu=null,At=!0,u=ho(t,null,a,u),t.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ca(),a===e){t=Gt(l,t,u);break l}Hl(l,t,a,u)}t=t.child}return t;case 26:return on(l,t),l===null?(u=Qr(t.type,null,t.pendingProps,null))?t.memoizedState=u:al||(u=t.type,l=t.pendingProps,a=On(Z.current).createElement(u),a[xl]=t,a[Zl]=l,Yl(a,u,l),pl(a),t.stateNode=a):t.memoizedState=Qr(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Zn(t),l===null&&al&&(a=t.stateNode=xr(t.type,t.pendingProps,Z.current),Ql=t,At=!0,e=ml,cu(t.type)?(Wc=e,ml=gt(a.firstChild)):ml=e),Hl(l,t,t.pendingProps.children,u),on(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&al&&((e=a=ml)&&(a=mv(a,t.type,t.pendingProps,At),a!==null?(t.stateNode=a,Ql=t,ml=gt(a.firstChild),At=!1,e=!0):e=!1),e||Ou(t)),Zn(t),e=t.type,n=t.pendingProps,f=l!==null?l.memoizedProps:null,a=n.children,Vc(e,n)?a=null:f!==null&&Vc(e,f)&&(t.flags|=32),t.memoizedState!==null&&(e=jf(l,t,Y0,null,null,u),ye._currentValue=e),on(l,t),Hl(l,t,a,u),t.child;case 6:return l===null&&al&&((l=u=ml)&&(u=gv(u,t.pendingProps,At),u!==null?(t.stateNode=u,Ql=t,ml=null,l=!0):l=!1),l||Ou(t)),null;case 13:return Yo(l,t,u);case 4:return vl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=fa(t,null,a,u):Hl(l,t,a,u),t.child;case 11:return _o(l,t,t.type,t.pendingProps,u);case 7:return Hl(l,t,t.pendingProps,u),t.child;case 8:return Hl(l,t,t.pendingProps.children,u),t.child;case 12:return Hl(l,t,t.pendingProps.children,u),t.child;case 10:return a=t.pendingProps,Jt(t,t.type,a.value),Hl(l,t,a.children,u),t.child;case 9:return e=t.type._context,a=t.pendingProps.children,Du(t),e=Ll(e),a=a(e),t.flags|=1,Hl(l,t,a,u),t.child;case 14:return Do(l,t,t.type,t.pendingProps,u);case 15:return po(l,t,t.type,t.pendingProps,u);case 19:return Go(l,t,u);case 31:return a=t.pendingProps,u=t.mode,a={mode:a.mode,children:a.children},l===null?(u=rn(a,u),u.ref=t.ref,t.child=u,u.return=t,t=u):(u=Ut(l.child,a),u.ref=t.ref,t.child=u,u.return=t,t=u),t;case 22:return Uo(l,t,u);case 24:return Du(t),a=Ll(_l),l===null?(e=Yf(),e===null&&(e=dl,n=Hf(),e.pooledCache=n,n.refCount++,n!==null&&(e.pooledCacheLanes|=u),e=n),t.memoizedState={parent:a,cache:e},Gf(t),Jt(t,_l,e)):((l.lanes&u)!==0&&(Cf(l,t),Ja(t,null,null,u),Ka()),e=l.memoizedState,n=t.memoizedState,e.parent!==a?(e={parent:a,cache:a},t.memoizedState=e,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=e),Jt(t,_l,a)):(a=n.cache,Jt(t,_l,a),a!==e.cache&&Nf(t,[_l],u,!0))),Hl(l,t,t.pendingProps.children,u),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ct(l){l.flags|=4}function xo(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Jr(t)){if(t=ot.current,t!==null&&((ll&4194048)===ll?Tt!==null:(ll&62914560)!==ll&&(ll&536870912)===0||t!==Tt))throw ja=Bf,Es;l.flags|=8192}}function dn(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?hi():536870912,l.lanes|=t,oa|=t)}function Pa(l,t){if(!al)switch(l.tailMode){case"hidden":t=l.tail;for(var u=null;t!==null;)t.alternate!==null&&(u=t),t=t.sibling;u===null?l.tail=null:u.sibling=null;break;case"collapsed":u=l.tail;for(var a=null;u!==null;)u.alternate!==null&&(a=u),u=u.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function hl(l){var t=l.alternate!==null&&l.alternate.child===l.child,u=0,a=0;if(t)for(var e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags&65011712,a|=e.flags&65011712,e.return=l,e=e.sibling;else for(e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags,a|=e.flags,e.return=l,e=e.sibling;return l.subtreeFlags|=a,l.childLanes=u,t}function j0(l,t,u){var a=t.pendingProps;switch(Df(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hl(t),null;case 1:return hl(t),null;case 3:return u=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),qt(_l),Zt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(l===null||l.child===null)&&(Ga(t)?Ct(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hs())),hl(t),null;case 26:return u=t.memoizedState,l===null?(Ct(t),u!==null?(hl(t),xo(t,u)):(hl(t),t.flags&=-16777217)):u?u!==l.memoizedState?(Ct(t),hl(t),xo(t,u)):(hl(t),t.flags&=-16777217):(l.memoizedProps!==a&&Ct(t),hl(t),t.flags&=-16777217),null;case 27:Te(t),u=Z.current;var e=t.type;if(l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Ct(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return hl(t),null}l=C.current,Ga(t)?vs(t):(l=xr(e,a,u),t.stateNode=l,Ct(t))}return hl(t),null;case 5:if(Te(t),u=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Ct(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return hl(t),null}if(l=C.current,Ga(t))vs(t);else{switch(e=On(Z.current),l){case 1:l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":l=e.createElement("div"),l.innerHTML=" + + + +
+ + + diff --git a/dist/samples/react-ui-kit-place-details-latlng-compact/docs/index.html b/dist/samples/react-ui-kit-place-details-latlng-compact/docs/index.html new file mode 100644 index 00000000..43ecfab4 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng-compact/docs/index.html @@ -0,0 +1,37 @@ + + + + + + + + + React - UI Kit Place Details - latitude, longitude - Compact + + + + +
+ + + + diff --git a/dist/samples/react-ui-kit-place-details-latlng-compact/docs/src/app.js b/dist/samples/react-ui-kit-place-details-latlng-compact/docs/src/app.js new file mode 100644 index 00000000..ad2fd4da --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng-compact/docs/src/app.js @@ -0,0 +1,57 @@ +import { jsx as _jsx } from "react/jsx-runtime"; +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{ /* [START maps_react_ui_kit_place_details_latlng_compact] */ } +import React, { useEffect, useRef } from 'react'; +import { createRoot } from 'react-dom/client'; +import { APIProvider, useMapsLibrary } from '@vis.gl/react-google-maps'; +import './styles.css'; +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; +// Renders place details using a latitude and longitude. +const PlaceDetails = ({ lat, lng }) => { + const places = useMapsLibrary('places'); + const containerRef = useRef(null); + useEffect(() => { + if (!places || !containerRef.current) { + return; + } + // Create the gmp-place-details-compact element. + const placeDetails = document.createElement('gmp-place-details-compact'); + // Set the orientation. + placeDetails.setAttribute('orientation', 'horizontal'); + // Create the gmp-place-details-location-request element. + const locationRequest = document.createElement('gmp-place-details-location-request'); + // Set the location on the location request element. + locationRequest.setAttribute('location', `${lat},${lng}`); + // Append the location request to the place details element. + placeDetails.appendChild(locationRequest); + // Create and append the content config and its children. + const contentConfig = document.createElement('gmp-place-content-config'); + contentConfig.innerHTML = ` + + + + + + + + `; + placeDetails.appendChild(contentConfig); + // Append the place details element to the container. + containerRef.current.innerHTML = ''; // Clear previous content + containerRef.current.appendChild(placeDetails); + }, [places, lat, lng]); + return _jsx("div", { ref: containerRef, className: "place-details-container" }); +}; +const App = () => { + return (_jsx(APIProvider, { apiKey: API_KEY, libraries: ['places'], children: _jsx("div", { className: "places-ui-kit", children: _jsx(PlaceDetails, { lat: 48.8566, lng: 2.3522 }) }) })); +}; +export default App; +export function renderToDom(container) { + const root = createRoot(container); + root.render(_jsx(React.StrictMode, { children: _jsx(App, {}) })); +} +{ /* [END maps_react_ui_kit_place_details_latlng_compact] */ } diff --git a/dist/samples/react-ui-kit-place-details-latlng-compact/docs/src/app.tsx b/dist/samples/react-ui-kit-place-details-latlng-compact/docs/src/app.tsx new file mode 100644 index 00000000..ad7f4173 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng-compact/docs/src/app.tsx @@ -0,0 +1,88 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{/* [START maps_react_ui_kit_place_details_latlng_compact] */} +import React, {useEffect, useRef} from 'react'; +import {createRoot} from 'react-dom/client'; +import {APIProvider, useMapsLibrary} from '@vis.gl/react-google-maps'; + +import './styles.css'; + +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; + +type PlaceDetailsProps = { + lat: number; + lng: number; +}; + +// Renders place details using a latitude and longitude. +const PlaceDetails = ({lat, lng}: PlaceDetailsProps) => { + const places = useMapsLibrary('places'); + const containerRef = useRef(null); + + useEffect(() => { + if (!places || !containerRef.current) { + return; + } + // Create the gmp-place-details-compact element. + const placeDetails = document.createElement('gmp-place-details-compact'); + + // Set the orientation. + placeDetails.setAttribute('orientation', 'horizontal'); + + // Create the gmp-place-details-location-request element. + const locationRequest = document.createElement( + 'gmp-place-details-location-request', + ); + + // Set the location on the location request element. + locationRequest.setAttribute('location', `${lat},${lng}`); + + // Append the location request to the place details element. + placeDetails.appendChild(locationRequest); + + // Create and append the content config and its children. + const contentConfig = document.createElement('gmp-place-content-config'); + contentConfig.innerHTML = ` + + + + + + + + `; + placeDetails.appendChild(contentConfig); + + // Append the place details element to the container. + containerRef.current.innerHTML = ''; // Clear previous content + containerRef.current.appendChild(placeDetails); + }, [places, lat, lng]); + + return
; +}; + +const App = () => { + return ( + +
+ +
+
+ ); +}; + +export default App; + +export function renderToDom(container: HTMLElement) { + const root = createRoot(container); + + root.render( + + + + ); +} +{/* [END maps_react_ui_kit_place_details_latlng_compact] */} diff --git a/dist/samples/react-ui-kit-place-details-latlng-compact/docs/src/styles.css b/dist/samples/react-ui-kit-place-details-latlng-compact/docs/src/styles.css new file mode 100644 index 00000000..c57a844f --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng-compact/docs/src/styles.css @@ -0,0 +1,50 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +/* [START maps_react_ui_kit_place_details_by_latlng_compact] */ +html, +body { + display: flex; + width: 100%; + height: 400px; + margin: 0; +} + +h1 { + font-size: 16px; + text-align: center; +} + +#map-container { + box-sizing: border-box; + width: 100%; +} + +gmp-place-details-compact { + --gmp-mat-color-on-surface: light-dark(black, white); + --gmp-mat-color-surface: light-dark(white, black); + --gmp-mat-font-family: Google Sans Text, sans-serif; + --gmp-mat-font-body-medium: normal 400 0.875em/1.25em var(--gmp-mat-font-family, 'Google Sans Text'); + + width: 360px; + border: none; + padding: 0; + margin: 0; + position: relative; + } + +gmp-place-details-compact::after { + content: ""; + position: absolute; + top: 100%; + left: 50%; + transform: translateX(-50%); + width: 0; + height: 0; + border-left: 16px solid transparent; + border-right: 16px solid transparent; + border-top: 20px solid var(--gmp-mat-color-surface, light-dark(white, black)); +} +/* [END maps_react_ui_kit_place_details_by_latlng_compact] */ diff --git a/dist/samples/react-ui-kit-place-details-latlng/dist/assets/index-C_ZQrKFV.js b/dist/samples/react-ui-kit-place-details-latlng/dist/assets/index-C_ZQrKFV.js new file mode 100644 index 00000000..62b1883c --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng/dist/assets/index-C_ZQrKFV.js @@ -0,0 +1,66 @@ +(function(){const S=document.createElement("link").relList;if(S&&S.supports&&S.supports("modulepreload"))return;for(const U of document.querySelectorAll('link[rel="modulepreload"]'))r(U);new MutationObserver(U=>{for(const H of U)if(H.type==="childList")for(const Y of H.addedNodes)Y.tagName==="LINK"&&Y.rel==="modulepreload"&&r(Y)}).observe(document,{childList:!0,subtree:!0});function z(U){const H={};return U.integrity&&(H.integrity=U.integrity),U.referrerPolicy&&(H.referrerPolicy=U.referrerPolicy),U.crossOrigin==="use-credentials"?H.credentials="include":U.crossOrigin==="anonymous"?H.credentials="omit":H.credentials="same-origin",H}function r(U){if(U.ep)return;U.ep=!0;const H=z(U);fetch(U.href,H)}})();function Zv(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var ei={exports:{}},be={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ed;function jv(){if(ed)return be;ed=1;var g=Symbol.for("react.transitional.element"),S=Symbol.for("react.fragment");function z(r,U,H){var Y=null;if(H!==void 0&&(Y=""+H),U.key!==void 0&&(Y=""+U.key),"key"in U){H={};for(var j in U)j!=="key"&&(H[j]=U[j])}else H=U;return U=H.ref,{$$typeof:g,type:r,key:Y,ref:U!==void 0?U:null,props:H}}return be.Fragment=S,be.jsx=z,be.jsxs=z,be}var nd;function Vv(){return nd||(nd=1,ei.exports=jv()),ei.exports}var Ea=Vv(),ni={exports:{}},V={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fd;function Kv(){if(fd)return V;fd=1;var g=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),K=Symbol.iterator;function J(s){return s===null||typeof s!="object"?null:(s=K&&s[K]||s["@@iterator"],typeof s=="function"?s:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,rl={};function Al(s,M,N){this.props=s,this.context=M,this.refs=rl,this.updater=N||I}Al.prototype.isReactComponent={},Al.prototype.setState=function(s,M){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,M,"setState")},Al.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function yt(){}yt.prototype=Al.prototype;function ht(s,M,N){this.props=s,this.context=M,this.refs=rl,this.updater=N||I}var Ml=ht.prototype=new yt;Ml.constructor=ht,G(Ml,Al.prototype),Ml.isPureReactComponent=!0;var wl=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},Sl=Object.prototype.hasOwnProperty;function zl(s,M,N,_,C,tl){return N=tl.ref,{$$typeof:g,type:s,key:M,ref:N!==void 0?N:null,props:tl}}function Bl(s,M){return zl(s.type,M,void 0,void 0,void 0,s.props)}function bt(s){return typeof s=="object"&&s!==null&&s.$$typeof===g}function Yu(s){var M={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(N){return M[N]})}var Ot=/\/+/g;function Gl(s,M){return typeof s=="object"&&s!==null&&s.key!=null?Yu(""+s.key):M.toString(36)}function yu(){}function hu(s){switch(s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(yu,yu):(s.status="pending",s.then(function(M){s.status==="pending"&&(s.status="fulfilled",s.value=M)},function(M){s.status==="pending"&&(s.status="rejected",s.reason=M)})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}}throw s}function Cl(s,M,N,_,C){var tl=typeof s;(tl==="undefined"||tl==="boolean")&&(s=null);var Z=!1;if(s===null)Z=!0;else switch(tl){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(s.$$typeof){case g:case S:Z=!0;break;case R:return Z=s._init,Cl(Z(s._payload),M,N,_,C)}}if(Z)return C=C(s),Z=_===""?"."+Gl(s,0):_,wl(C)?(N="",Z!=null&&(N=Z.replace(Ot,"$&/")+"/"),Cl(C,M,N,"",function(Zt){return Zt})):C!=null&&(bt(C)&&(C=Bl(C,N+(C.key==null||s&&s.key===C.key?"":(""+C.key).replace(Ot,"$&/")+"/")+Z)),M.push(C)),1;Z=0;var Wl=_===""?".":_+":";if(wl(s))for(var vl=0;vl>>1,s=E[sl];if(0>>1;slU(_,X))CU(tl,_)?(E[sl]=tl,E[C]=X,sl=C):(E[sl]=_,E[N]=X,sl=N);else if(CU(tl,X))E[sl]=tl,E[C]=X,sl=C;else break l}}return D}function U(E,D){var X=E.sortIndex-D.sortIndex;return X!==0?X:E.id-D.id}if(g.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var H=performance;g.unstable_now=function(){return H.now()}}else{var Y=Date,j=Y.now();g.unstable_now=function(){return Y.now()-j}}var O=[],A=[],R=1,K=null,J=3,I=!1,G=!1,rl=!1,Al=!1,yt=typeof setTimeout=="function"?setTimeout:null,ht=typeof clearTimeout=="function"?clearTimeout:null,Ml=typeof setImmediate<"u"?setImmediate:null;function wl(E){for(var D=z(A);D!==null;){if(D.callback===null)r(A);else if(D.startTime<=E)r(A),D.sortIndex=D.expirationTime,S(O,D);else break;D=z(A)}}function $(E){if(rl=!1,wl(E),!G)if(z(O)!==null)G=!0,Sl||(Sl=!0,Gl());else{var D=z(A);D!==null&&Cl($,D.startTime-E)}}var Sl=!1,zl=-1,Bl=5,bt=-1;function Yu(){return Al?!0:!(g.unstable_now()-btE&&Yu());){var sl=K.callback;if(typeof sl=="function"){K.callback=null,J=K.priorityLevel;var s=sl(K.expirationTime<=E);if(E=g.unstable_now(),typeof s=="function"){K.callback=s,wl(E),D=!0;break t}K===z(O)&&r(O),wl(E)}else r(O);K=z(O)}if(K!==null)D=!0;else{var M=z(A);M!==null&&Cl($,M.startTime-E),D=!1}}break l}finally{K=null,J=X,I=!1}D=void 0}}finally{D?Gl():Sl=!1}}}var Gl;if(typeof Ml=="function")Gl=function(){Ml(Ot)};else if(typeof MessageChannel<"u"){var yu=new MessageChannel,hu=yu.port2;yu.port1.onmessage=Ot,Gl=function(){hu.postMessage(null)}}else Gl=function(){yt(Ot,0)};function Cl(E,D){zl=yt(function(){E(g.unstable_now())},D)}g.unstable_IdlePriority=5,g.unstable_ImmediatePriority=1,g.unstable_LowPriority=4,g.unstable_NormalPriority=3,g.unstable_Profiling=null,g.unstable_UserBlockingPriority=2,g.unstable_cancelCallback=function(E){E.callback=null},g.unstable_forceFrameRate=function(E){0>E||125sl?(E.sortIndex=X,S(A,E),z(O)===null&&E===z(A)&&(rl?(ht(zl),zl=-1):rl=!0,Cl($,X-sl))):(E.sortIndex=s,S(O,E),G||I||(G=!0,Sl||(Sl=!0,Gl()))),E},g.unstable_shouldYield=Yu,g.unstable_wrapCallback=function(E){var D=J;return function(){var X=J;J=D;try{return E.apply(this,arguments)}finally{J=X}}}})(ii)),ii}var sd;function wv(){return sd||(sd=1,ci.exports=Jv()),ci.exports}var si={exports:{}},Xl={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var od;function Wv(){if(od)return Xl;od=1;var g=oi();function S(O){var A="https://react.dev/errors/"+O;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g)}catch(S){console.error(S)}}return g(),si.exports=Wv(),si.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dd;function $v(){if(dd)return Ee;dd=1;var g=wv(),S=oi(),z=gd();function r(l){var t="https://react.dev/errors/"+l;if(1s||(l.current=sl[s],sl[s]=null,s--)}function _(l,t){s++,sl[s]=l.current,l.current=t}var C=M(null),tl=M(null),Z=M(null),Wl=M(null);function vl(l,t){switch(_(Z,t),_(tl,l),_(C,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Hr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Hr(t),l=qr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}N(C),_(C,l)}function Zt(){N(C),N(tl),N(Z)}function Zn(l){l.memoizedState!==null&&_(Wl,l);var t=C.current,u=qr(t,l.type);t!==u&&(_(tl,l),_(C,u))}function Te(l){tl.current===l&&(N(C),N(tl)),Wl.current===l&&(N(Wl),ye._currentValue=X)}var jn=Object.prototype.hasOwnProperty,Vn=g.unstable_scheduleCallback,Kn=g.unstable_cancelCallback,Ed=g.unstable_shouldYield,Ad=g.unstable_requestPaint,Et=g.unstable_now,Td=g.unstable_getCurrentPriorityLevel,ri=g.unstable_ImmediatePriority,di=g.unstable_UserBlockingPriority,pe=g.unstable_NormalPriority,pd=g.unstable_LowPriority,vi=g.unstable_IdlePriority,Md=g.log,zd=g.unstable_setDisableYieldValue,Ta=null,$l=null;function jt(l){if(typeof Md=="function"&&zd(l),$l&&typeof $l.setStrictMode=="function")try{$l.setStrictMode(Ta,l)}catch{}}var kl=Math.clz32?Math.clz32:Dd,Od=Math.log,_d=Math.LN2;function Dd(l){return l>>>=0,l===0?32:31-(Od(l)/_d|0)|0}var Me=256,ze=4194304;function mu(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Oe(l,t,u){var a=l.pendingLanes;if(a===0)return 0;var e=0,n=l.suspendedLanes,f=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?e=mu(a):(f&=c,f!==0?e=mu(f):u||(u=c&~l,u!==0&&(e=mu(u))))):(c=a&~n,c!==0?e=mu(c):f!==0?e=mu(f):u||(u=a&~l,u!==0&&(e=mu(u)))),e===0?0:t!==0&&t!==e&&(t&n)===0&&(n=e&-e,u=t&-t,n>=u||n===32&&(u&4194048)!==0)?t:e}function pa(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Ud(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yi(){var l=Me;return Me<<=1,(Me&4194048)===0&&(Me=256),l}function hi(){var l=ze;return ze<<=1,(ze&62914560)===0&&(ze=4194304),l}function Jn(l){for(var t=[],u=0;31>u;u++)t.push(l);return t}function Ma(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Rd(l,t,u,a,e,n){var f=l.pendingLanes;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=u,l.entangledLanes&=u,l.errorRecoveryDisabledLanes&=u,l.shellSuspendCounter=0;var c=l.entanglements,i=l.expirationTimes,y=l.hiddenUpdates;for(u=f&~u;0)":-1e||i[a]!==y[e]){var b=` +`+i[a].replace(" at new "," at ");return l.displayName&&b.includes("")&&(b=b.replace("",l.displayName)),b}while(1<=a&&0<=e);break}}}finally{In=!1,Error.prepareStackTrace=u}return(u=l?l.displayName||l.name:"")?Xu(u):""}function Gd(l){switch(l.tag){case 26:case 27:case 5:return Xu(l.type);case 16:return Xu("Lazy");case 13:return Xu("Suspense");case 19:return Xu("SuspenseList");case 0:case 15:return Pn(l.type,!1);case 11:return Pn(l.type.render,!1);case 1:return Pn(l.type,!0);case 31:return Xu("Activity");default:return""}}function zi(l){try{var t="";do t+=Gd(l),l=l.return;while(l);return t}catch(u){return` +Error generating stack: `+u.message+` +`+u.stack}}function nt(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Oi(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cd(l){var t=Oi(l)?"checked":"value",u=Object.getOwnPropertyDescriptor(l.constructor.prototype,t),a=""+l[t];if(!l.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var e=u.get,n=u.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return e.call(this)},set:function(f){a=""+f,n.call(this,f)}}),Object.defineProperty(l,t,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function Ue(l){l._valueTracker||(l._valueTracker=Cd(l))}function _i(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var u=t.getValue(),a="";return l&&(a=Oi(l)?l.checked?"true":"false":l.value),l=a,l!==u?(t.setValue(l),!0):!1}function Re(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var xd=/[\n"\\]/g;function ft(l){return l.replace(xd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lf(l,t,u,a,e,n,f,c){l.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?l.type=f:l.removeAttribute("type"),t!=null?f==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+nt(t)):l.value!==""+nt(t)&&(l.value=""+nt(t)):f!=="submit"&&f!=="reset"||l.removeAttribute("value"),t!=null?tf(l,f,nt(t)):u!=null?tf(l,f,nt(u)):a!=null&&l.removeAttribute("value"),e==null&&n!=null&&(l.defaultChecked=!!n),e!=null&&(l.checked=e&&typeof e!="function"&&typeof e!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+nt(c):l.removeAttribute("name")}function Di(l,t,u,a,e,n,f,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||u!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;u=u!=null?""+nt(u):"",t=t!=null?""+nt(t):u,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??e,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(l.name=f)}function tf(l,t,u){t==="number"&&Re(l.ownerDocument)===l||l.defaultValue===""+u||(l.defaultValue=""+u)}function Qu(l,t,u,a){if(l=l.options,t){t={};for(var e=0;e"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ff=!1;if(Dt)try{var Da={};Object.defineProperty(Da,"passive",{get:function(){ff=!0}}),window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch{ff=!1}var Kt=null,cf=null,He=null;function Bi(){if(He)return He;var l,t=cf,u=t.length,a,e="value"in Kt?Kt.value:Kt.textContent,n=e.length;for(l=0;l=Na),Qi=" ",Zi=!1;function ji(l,t){switch(l){case"keyup":return d0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vi(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Ku=!1;function y0(l,t){switch(l){case"compositionend":return Vi(t);case"keypress":return t.which!==32?null:(Zi=!0,Qi);case"textInput":return l=t.data,l===Qi&&Zi?null:l;default:return null}}function h0(l,t){if(Ku)return l==="compositionend"||!vf&&ji(l,t)?(l=Bi(),He=cf=Kt=null,Ku=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:u,offset:t-l};l=a}l:{for(;u;){if(u.nextSibling){u=u.nextSibling;break l}u=u.parentNode}u=void 0}u=Ii(u)}}function ls(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?ls(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function ts(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Re(l.document);t instanceof l.HTMLIFrameElement;){try{var u=typeof t.contentWindow.location.href=="string"}catch{u=!1}if(u)l=t.contentWindow;else break;t=Re(l.document)}return t}function mf(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var p0=Dt&&"documentMode"in document&&11>=document.documentMode,Ju=null,gf=null,Ba=null,Sf=!1;function us(l,t,u){var a=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Sf||Ju==null||Ju!==Re(a)||(a=Ju,"selectionStart"in a&&mf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ba&&Ya(Ba,a)||(Ba=a,a=pn(gf,"onSelect"),0>=f,e-=f,Rt=1<<32-kl(t)+e|u<n?n:8;var f=E.T,c={};E.T=c,ac(l,!1,t,u);try{var i=e(),y=E.S;if(y!==null&&y(c,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var b=H0(i,a);ka(l,t,b,ut(l))}else ka(l,t,a,ut(l))}catch(p){ka(l,t,{then:function(){},status:"rejected",reason:p},ut())}finally{D.p=n,E.T=f}}function C0(){}function tc(l,t,u,a){if(l.tag!==5)throw Error(r(476));var e=ao(l).queue;uo(l,e,t,X,u===null?C0:function(){return eo(l),u(a)})}function ao(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:X},next:null};var u={};return t.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:u},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function eo(l){var t=ao(l).next.queue;ka(l,t,{},ut())}function uc(){return Ll(ye)}function no(){return pl().memoizedState}function fo(){return pl().memoizedState}function x0(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var u=ut();l=Wt(u);var a=$t(t,l,u);a!==null&&(at(a,t,u),Va(a,t,u)),t={cache:Hf()},l.payload=t;return}t=t.return}}function L0(l,t,u){var a=ut();u={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},un(l)?io(t,u):(u=Tf(l,t,u,a),u!==null&&(at(u,l,a),so(u,t,a)))}function co(l,t,u){var a=ut();ka(l,t,u,a)}function ka(l,t,u,a){var e={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(un(l))io(t,e);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var f=t.lastRenderedState,c=n(f,u);if(e.hasEagerState=!0,e.eagerState=c,Fl(c,f))return Le(l,t,e,0),dl===null&&xe(),!1}catch{}finally{}if(u=Tf(l,t,e,a),u!==null)return at(u,l,a),so(u,t,a),!0}return!1}function ac(l,t,u,a){if(a={lane:2,revertLane:Bc(),action:a,hasEagerState:!1,eagerState:null,next:null},un(l)){if(t)throw Error(r(479))}else t=Tf(l,u,a,2),t!==null&&at(t,l,2)}function un(l){var t=l.alternate;return l===w||t!==null&&t===w}function io(l,t){ua=ke=!0;var u=l.pending;u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t}function so(l,t,u){if((u&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,u|=a,t.lanes=u,gi(l,u)}}var an={readContext:Ll,use:Ie,useCallback:bl,useContext:bl,useEffect:bl,useImperativeHandle:bl,useLayoutEffect:bl,useInsertionEffect:bl,useMemo:bl,useReducer:bl,useRef:bl,useState:bl,useDebugValue:bl,useDeferredValue:bl,useTransition:bl,useSyncExternalStore:bl,useId:bl,useHostTransitionStatus:bl,useFormState:bl,useActionState:bl,useOptimistic:bl,useMemoCache:bl,useCacheRefresh:bl},oo={readContext:Ll,use:Ie,useCallback:function(l,t){return Vl().memoizedState=[l,t===void 0?null:t],l},useContext:Ll,useEffect:ws,useImperativeHandle:function(l,t,u){u=u!=null?u.concat([l]):null,tn(4194308,4,Fs.bind(null,t,l),u)},useLayoutEffect:function(l,t){return tn(4194308,4,l,t)},useInsertionEffect:function(l,t){tn(4,2,l,t)},useMemo:function(l,t){var u=Vl();t=t===void 0?null:t;var a=l();if(Uu){jt(!0);try{l()}finally{jt(!1)}}return u.memoizedState=[a,t],a},useReducer:function(l,t,u){var a=Vl();if(u!==void 0){var e=u(t);if(Uu){jt(!0);try{u(t)}finally{jt(!1)}}}else e=t;return a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:e},a.queue=l,l=l.dispatch=L0.bind(null,w,l),[a.memoizedState,l]},useRef:function(l){var t=Vl();return l={current:l},t.memoizedState=l},useState:function(l){l=Ff(l);var t=l.queue,u=co.bind(null,w,t);return t.dispatch=u,[l.memoizedState,u]},useDebugValue:Pf,useDeferredValue:function(l,t){var u=Vl();return lc(u,l,t)},useTransition:function(){var l=Ff(!1);return l=uo.bind(null,w,l.queue,!0,!1),Vl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,u){var a=w,e=Vl();if(al){if(u===void 0)throw Error(r(407));u=u()}else{if(u=t(),dl===null)throw Error(r(349));(P&124)!==0||Ns(a,t,u)}e.memoizedState=u;var n={value:u,getSnapshot:t};return e.queue=n,ws(qs.bind(null,a,n,l),[l]),a.flags|=2048,ea(9,ln(),Hs.bind(null,a,n,u,t),null),u},useId:function(){var l=Vl(),t=dl.identifierPrefix;if(al){var u=Nt,a=Rt;u=(a&~(1<<32-kl(a)-1)).toString(32)+u,t="«"+t+"R"+u,u=Fe++,0L?(Nl=B,B=null):Nl=B.sibling;var ul=h(d,B,v[L],T);if(ul===null){B===null&&(B=Nl);break}l&&B&&ul.alternate===null&&t(d,B),o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul,B=Nl}if(L===v.length)return u(d,B),al&&pu(d,L),q;if(B===null){for(;LL?(Nl=B,B=null):Nl=B.sibling;var du=h(d,B,ul.value,T);if(du===null){B===null&&(B=Nl);break}l&&B&&du.alternate===null&&t(d,B),o=n(du,o,L),W===null?q=du:W.sibling=du,W=du,B=Nl}if(ul.done)return u(d,B),al&&pu(d,L),q;if(B===null){for(;!ul.done;L++,ul=v.next())ul=p(d,ul.value,T),ul!==null&&(o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul);return al&&pu(d,L),q}for(B=a(B);!ul.done;L++,ul=v.next())ul=m(B,d,L,ul.value,T),ul!==null&&(l&&ul.alternate!==null&&B.delete(ul.key===null?L:ul.key),o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul);return l&&B.forEach(function(Qv){return t(d,Qv)}),al&&pu(d,L),q}function il(d,o,v,T){if(typeof v=="object"&&v!==null&&v.type===G&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case J:l:{for(var q=v.key;o!==null;){if(o.key===q){if(q=v.type,q===G){if(o.tag===7){u(d,o.sibling),T=e(o,v.props.children),T.return=d,d=T;break l}}else if(o.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Bl&&vo(q)===o.type){u(d,o.sibling),T=e(o,v.props),Ia(T,v),T.return=d,d=T;break l}u(d,o);break}else t(d,o);o=o.sibling}v.type===G?(T=Au(v.props.children,d.mode,T,v.key),T.return=d,d=T):(T=Qe(v.type,v.key,v.props,null,d.mode,T),Ia(T,v),T.return=d,d=T)}return f(d);case I:l:{for(q=v.key;o!==null;){if(o.key===q)if(o.tag===4&&o.stateNode.containerInfo===v.containerInfo&&o.stateNode.implementation===v.implementation){u(d,o.sibling),T=e(o,v.children||[]),T.return=d,d=T;break l}else{u(d,o);break}else t(d,o);o=o.sibling}T=zf(v,d.mode,T),T.return=d,d=T}return f(d);case Bl:return q=v._init,v=q(v._payload),il(d,o,v,T)}if(Cl(v))return Q(d,o,v,T);if(Gl(v)){if(q=Gl(v),typeof q!="function")throw Error(r(150));return v=q.call(v),x(d,o,v,T)}if(typeof v.then=="function")return il(d,o,en(v),T);if(v.$$typeof===Ml)return il(d,o,Ke(d,v),T);nn(d,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,o!==null&&o.tag===6?(u(d,o.sibling),T=e(o,v),T.return=d,d=T):(u(d,o),T=Mf(v,d.mode,T),T.return=d,d=T),f(d)):u(d,o)}return function(d,o,v,T){try{Fa=0;var q=il(d,o,v,T);return na=null,q}catch(B){if(B===Za||B===we)throw B;var W=Il(29,B,null,d.mode);return W.lanes=T,W.return=d,W}finally{}}}var fa=yo(!0),ho=yo(!1),rt=M(null),Tt=null;function Ft(l){var t=l.alternate;_(_l,_l.current&1),_(rt,l),Tt===null&&(t===null||ta.current!==null||t.memoizedState!==null)&&(Tt=l)}function mo(l){if(l.tag===22){if(_(_l,_l.current),_(rt,l),Tt===null){var t=l.alternate;t!==null&&t.memoizedState!==null&&(Tt=l)}}else It()}function It(){_(_l,_l.current),_(rt,rt.current)}function Bt(l){N(rt),Tt===l&&(Tt=null),N(_l)}var _l=M(0);function fn(l){for(var t=l;t!==null;){if(t.tag===13){var u=t.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||wc(u)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ec(l,t,u,a){t=l.memoizedState,u=u(a,t),u=u==null?t:R({},t,u),l.memoizedState=u,l.lanes===0&&(l.updateQueue.baseState=u)}var nc={enqueueSetState:function(l,t,u){l=l._reactInternals;var a=ut(),e=Wt(a);e.payload=t,u!=null&&(e.callback=u),t=$t(l,e,a),t!==null&&(at(t,l,a),Va(t,l,a))},enqueueReplaceState:function(l,t,u){l=l._reactInternals;var a=ut(),e=Wt(a);e.tag=1,e.payload=t,u!=null&&(e.callback=u),t=$t(l,e,a),t!==null&&(at(t,l,a),Va(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var u=ut(),a=Wt(u);a.tag=2,t!=null&&(a.callback=t),t=$t(l,a,u),t!==null&&(at(t,l,u),Va(t,l,u))}};function go(l,t,u,a,e,n,f){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,n,f):t.prototype&&t.prototype.isPureReactComponent?!Ya(u,a)||!Ya(e,n):!0}function So(l,t,u,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(u,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(u,a),t.state!==l&&nc.enqueueReplaceState(t,t.state,null)}function Ru(l,t){var u=t;if("ref"in t){u={};for(var a in t)a!=="ref"&&(u[a]=t[a])}if(l=l.defaultProps){u===t&&(u=R({},u));for(var e in l)u[e]===void 0&&(u[e]=l[e])}return u}var cn=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function bo(l){cn(l)}function Eo(l){console.error(l)}function Ao(l){cn(l)}function sn(l,t){try{var u=l.onUncaughtError;u(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function To(l,t,u){try{var a=l.onCaughtError;a(u.value,{componentStack:u.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function fc(l,t,u){return u=Wt(u),u.tag=3,u.payload={element:null},u.callback=function(){sn(l,t)},u}function po(l){return l=Wt(l),l.tag=3,l}function Mo(l,t,u,a){var e=u.type.getDerivedStateFromError;if(typeof e=="function"){var n=a.value;l.payload=function(){return e(n)},l.callback=function(){To(t,u,a)}}var f=u.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(l.callback=function(){To(t,u,a),typeof e!="function"&&(eu===null?eu=new Set([this]):eu.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function Q0(l,t,u,a,e){if(u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=u.alternate,t!==null&&La(t,u,e,!0),u=rt.current,u!==null){switch(u.tag){case 13:return Tt===null?Rc():u.alternate===null&&gl===0&&(gl=3),u.flags&=-257,u.flags|=65536,u.lanes=e,a===Bf?u.flags|=16384:(t=u.updateQueue,t===null?u.updateQueue=new Set([a]):t.add(a),Hc(l,a,e)),!1;case 22:return u.flags|=65536,a===Bf?u.flags|=16384:(t=u.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},u.updateQueue=t):(u=t.retryQueue,u===null?t.retryQueue=new Set([a]):u.add(a)),Hc(l,a,e)),!1}throw Error(r(435,u.tag))}return Hc(l,a,e),Rc(),!1}if(al)return t=rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=e,a!==Df&&(l=Error(r(422),{cause:a}),xa(ct(l,u)))):(a!==Df&&(t=Error(r(423),{cause:a}),xa(ct(t,u))),l=l.current.alternate,l.flags|=65536,e&=-e,l.lanes|=e,a=ct(a,u),e=fc(l.stateNode,a,e),xf(l,e),gl!==4&&(gl=2)),!1;var n=Error(r(520),{cause:a});if(n=ct(n,u),ne===null?ne=[n]:ne.push(n),gl!==4&&(gl=2),t===null)return!0;a=ct(a,u),u=t;do{switch(u.tag){case 3:return u.flags|=65536,l=e&-e,u.lanes|=l,l=fc(u.stateNode,a,l),xf(u,l),!1;case 1:if(t=u.type,n=u.stateNode,(u.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(eu===null||!eu.has(n))))return u.flags|=65536,e&=-e,u.lanes|=e,e=po(e),Mo(e,l,u,a),xf(u,e),!1}u=u.return}while(u!==null);return!1}var zo=Error(r(461)),Ul=!1;function Hl(l,t,u,a){t.child=l===null?ho(t,null,u,a):fa(t,l.child,u,a)}function Oo(l,t,u,a,e){u=u.render;var n=t.ref;if("ref"in a){var f={};for(var c in a)c!=="ref"&&(f[c]=a[c])}else f=a;return _u(t),a=jf(l,t,u,f,n,e),c=Vf(),l!==null&&!Ul?(Kf(l,t,e),Gt(l,t,e)):(al&&c&&Of(t),t.flags|=1,Hl(l,t,a,e),t.child)}function _o(l,t,u,a,e){if(l===null){var n=u.type;return typeof n=="function"&&!pf(n)&&n.defaultProps===void 0&&u.compare===null?(t.tag=15,t.type=n,Do(l,t,n,a,e)):(l=Qe(u.type,null,a,t,t.mode,e),l.ref=t.ref,l.return=t,t.child=l)}if(n=l.child,!yc(l,e)){var f=n.memoizedProps;if(u=u.compare,u=u!==null?u:Ya,u(f,a)&&l.ref===t.ref)return Gt(l,t,e)}return t.flags|=1,l=Ut(n,a),l.ref=t.ref,l.return=t,t.child=l}function Do(l,t,u,a,e){if(l!==null){var n=l.memoizedProps;if(Ya(n,a)&&l.ref===t.ref)if(Ul=!1,t.pendingProps=a=n,yc(l,e))(l.flags&131072)!==0&&(Ul=!0);else return t.lanes=l.lanes,Gt(l,t,e)}return cc(l,t,u,a,e)}function Uo(l,t,u){var a=t.pendingProps,e=a.children,n=l!==null?l.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=n!==null?n.baseLanes|u:u,l!==null){for(e=t.child=l.child,n=0;e!==null;)n=n|e.lanes|e.childLanes,e=e.sibling;t.childLanes=n&~a}else t.childLanes=0,t.child=null;return Ro(l,t,a,u)}if((u&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&Je(t,n!==null?n.cachePool:null),n!==null?_s(t,n):Xf(),mo(t);else return t.lanes=t.childLanes=536870912,Ro(l,t,n!==null?n.baseLanes|u:u,u)}else n!==null?(Je(t,n.cachePool),_s(t,n),It(),t.memoizedState=null):(l!==null&&Je(t,null),Xf(),It());return Hl(l,t,e,u),t.child}function Ro(l,t,u,a){var e=Yf();return e=e===null?null:{parent:Ol._currentValue,pool:e},t.memoizedState={baseLanes:u,cachePool:e},l!==null&&Je(t,null),Xf(),mo(t),l!==null&&La(l,t,a,!0),null}function on(l,t){var u=t.ref;if(u===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(l===null||l.ref!==u)&&(t.flags|=4194816)}}function cc(l,t,u,a,e){return _u(t),u=jf(l,t,u,a,void 0,e),a=Vf(),l!==null&&!Ul?(Kf(l,t,e),Gt(l,t,e)):(al&&a&&Of(t),t.flags|=1,Hl(l,t,u,e),t.child)}function No(l,t,u,a,e,n){return _u(t),t.updateQueue=null,u=Us(t,a,u,e),Ds(l),a=Vf(),l!==null&&!Ul?(Kf(l,t,n),Gt(l,t,n)):(al&&a&&Of(t),t.flags|=1,Hl(l,t,u,n),t.child)}function Ho(l,t,u,a,e){if(_u(t),t.stateNode===null){var n=ku,f=u.contextType;typeof f=="object"&&f!==null&&(n=Ll(f)),n=new u(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=nc,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},Gf(t),f=u.contextType,n.context=typeof f=="object"&&f!==null?Ll(f):ku,n.state=t.memoizedState,f=u.getDerivedStateFromProps,typeof f=="function"&&(ec(t,u,f,a),n.state=t.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(f=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),f!==n.state&&nc.enqueueReplaceState(n,n.state,null),Ja(t,a,n,e),Ka(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,i=Ru(u,c);n.props=i;var y=n.context,b=u.contextType;f=ku,typeof b=="object"&&b!==null&&(f=Ll(b));var p=u.getDerivedStateFromProps;b=typeof p=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,b||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||y!==f)&&So(t,n,a,f),wt=!1;var h=t.memoizedState;n.state=h,Ja(t,a,n,e),Ka(),y=t.memoizedState,c||h!==y||wt?(typeof p=="function"&&(ec(t,u,p,a),y=t.memoizedState),(i=wt||go(t,u,i,a,h,y,f))?(b||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=y),n.props=a,n.state=y,n.context=f,a=i):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,Cf(l,t),f=t.memoizedProps,b=Ru(u,f),n.props=b,p=t.pendingProps,h=n.context,y=u.contextType,i=ku,typeof y=="object"&&y!==null&&(i=Ll(y)),c=u.getDerivedStateFromProps,(y=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(f!==p||h!==i)&&So(t,n,a,i),wt=!1,h=t.memoizedState,n.state=h,Ja(t,a,n,e),Ka();var m=t.memoizedState;f!==p||h!==m||wt||l!==null&&l.dependencies!==null&&Ve(l.dependencies)?(typeof c=="function"&&(ec(t,u,c,a),m=t.memoizedState),(b=wt||go(t,u,b,a,h,m,i)||l!==null&&l.dependencies!==null&&Ve(l.dependencies))?(y||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,m,i),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,m,i)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=m),n.props=a,n.state=m,n.context=i,a=b):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),a=!1)}return n=a,on(l,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,u=a&&typeof u.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,l!==null&&a?(t.child=fa(t,l.child,null,e),t.child=fa(t,null,u,e)):Hl(l,t,u,e),t.memoizedState=n.state,l=t.child):l=Gt(l,t,e),l}function qo(l,t,u,a){return Ca(),t.flags|=256,Hl(l,t,u,a),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(l){return{baseLanes:l,cachePool:bs()}}function oc(l,t,u){return l=l!==null?l.childLanes&~u:0,t&&(l|=dt),l}function Yo(l,t,u){var a=t.pendingProps,e=!1,n=(t.flags&128)!==0,f;if((f=n)||(f=l!==null&&l.memoizedState===null?!1:(_l.current&2)!==0),f&&(e=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,l===null){if(al){if(e?Ft(t):It(),al){var c=ml,i;if(i=c){l:{for(i=c,c=At;i.nodeType!==8;){if(!c){c=null;break l}if(i=St(i.nextSibling),i===null){c=null;break l}}c=i}c!==null?(t.memoizedState={dehydrated:c,treeContext:Tu!==null?{id:Rt,overflow:Nt}:null,retryLane:536870912,hydrationErrors:null},i=Il(18,null,null,0),i.stateNode=c,i.return=t,t.child=i,Ql=t,ml=null,i=!0):i=!1}i||zu(t)}if(c=t.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return wc(c)?t.lanes=32:t.lanes=536870912,null;Bt(t)}return c=a.children,a=a.fallback,e?(It(),e=t.mode,c=rn({mode:"hidden",children:c},e),a=Au(a,e,u,null),c.return=t,a.return=t,c.sibling=a,t.child=c,e=t.child,e.memoizedState=sc(u),e.childLanes=oc(l,f,u),t.memoizedState=ic,a):(Ft(t),rc(t,c))}if(i=l.memoizedState,i!==null&&(c=i.dehydrated,c!==null)){if(n)t.flags&256?(Ft(t),t.flags&=-257,t=dc(l,t,u)):t.memoizedState!==null?(It(),t.child=l.child,t.flags|=128,t=null):(It(),e=a.fallback,c=t.mode,a=rn({mode:"visible",children:a.children},c),e=Au(e,c,u,null),e.flags|=2,a.return=t,e.return=t,a.sibling=e,t.child=a,fa(t,l.child,null,u),a=t.child,a.memoizedState=sc(u),a.childLanes=oc(l,f,u),t.memoizedState=ic,t=e);else if(Ft(t),wc(c)){if(f=c.nextSibling&&c.nextSibling.dataset,f)var y=f.dgst;f=y,a=Error(r(419)),a.stack="",a.digest=f,xa({value:a,source:null,stack:null}),t=dc(l,t,u)}else if(Ul||La(l,t,u,!1),f=(u&l.childLanes)!==0,Ul||f){if(f=dl,f!==null&&(a=u&-u,a=(a&42)!==0?1:wn(a),a=(a&(f.suspendedLanes|u))!==0?0:a,a!==0&&a!==i.retryLane))throw i.retryLane=a,$u(l,a),at(f,l,a),zo;c.data==="$?"||Rc(),t=dc(l,t,u)}else c.data==="$?"?(t.flags|=192,t.child=l.child,t=null):(l=i.treeContext,ml=St(c.nextSibling),Ql=t,al=!0,Mu=null,At=!1,l!==null&&(st[ot++]=Rt,st[ot++]=Nt,st[ot++]=Tu,Rt=l.id,Nt=l.overflow,Tu=t),t=rc(t,a.children),t.flags|=4096);return t}return e?(It(),e=a.fallback,c=t.mode,i=l.child,y=i.sibling,a=Ut(i,{mode:"hidden",children:a.children}),a.subtreeFlags=i.subtreeFlags&65011712,y!==null?e=Ut(y,e):(e=Au(e,c,u,null),e.flags|=2),e.return=t,a.return=t,a.sibling=e,t.child=a,a=e,e=t.child,c=l.child.memoizedState,c===null?c=sc(u):(i=c.cachePool,i!==null?(y=Ol._currentValue,i=i.parent!==y?{parent:y,pool:y}:i):i=bs(),c={baseLanes:c.baseLanes|u,cachePool:i}),e.memoizedState=c,e.childLanes=oc(l,f,u),t.memoizedState=ic,a):(Ft(t),u=l.child,l=u.sibling,u=Ut(u,{mode:"visible",children:a.children}),u.return=t,u.sibling=null,l!==null&&(f=t.deletions,f===null?(t.deletions=[l],t.flags|=16):f.push(l)),t.child=u,t.memoizedState=null,u)}function rc(l,t){return t=rn({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function rn(l,t){return l=Il(22,l,null,t),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function dc(l,t,u){return fa(t,l.child,null,u),l=rc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Bo(l,t,u){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Rf(l.return,t,u)}function vc(l,t,u,a,e){var n=l.memoizedState;n===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:u,tailMode:e}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=u,n.tailMode=e)}function Go(l,t,u){var a=t.pendingProps,e=a.revealOrder,n=a.tail;if(Hl(l,t,a.children,u),a=_l.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Bo(l,u,t);else if(l.tag===19)Bo(l,u,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}a&=1}switch(_(_l,a),e){case"forwards":for(u=t.child,e=null;u!==null;)l=u.alternate,l!==null&&fn(l)===null&&(e=u),u=u.sibling;u=e,u===null?(e=t.child,t.child=null):(e=u.sibling,u.sibling=null),vc(t,!1,e,u,n);break;case"backwards":for(u=null,e=t.child,t.child=null;e!==null;){if(l=e.alternate,l!==null&&fn(l)===null){t.child=e;break}l=e.sibling,e.sibling=u,u=e,e=l}vc(t,!0,u,null,n);break;case"together":vc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gt(l,t,u){if(l!==null&&(t.dependencies=l.dependencies),au|=t.lanes,(u&t.childLanes)===0)if(l!==null){if(La(l,t,u,!1),(u&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(r(153));if(t.child!==null){for(l=t.child,u=Ut(l,l.pendingProps),t.child=u,u.return=t;l.sibling!==null;)l=l.sibling,u=u.sibling=Ut(l,l.pendingProps),u.return=t;u.sibling=null}return t.child}function yc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Ve(l)))}function Z0(l,t,u){switch(t.tag){case 3:vl(t,t.stateNode.containerInfo),Jt(t,Ol,l.memoizedState.cache),Ca();break;case 27:case 5:Zn(t);break;case 4:vl(t,t.stateNode.containerInfo);break;case 10:Jt(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ft(t),t.flags|=128,null):(u&t.child.childLanes)!==0?Yo(l,t,u):(Ft(t),l=Gt(l,t,u),l!==null?l.sibling:null);Ft(t);break;case 19:var e=(l.flags&128)!==0;if(a=(u&t.childLanes)!==0,a||(La(l,t,u,!1),a=(u&t.childLanes)!==0),e){if(a)return Go(l,t,u);t.flags|=128}if(e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null,e.lastEffect=null),_(_l,_l.current),a)break;return null;case 22:case 23:return t.lanes=0,Uo(l,t,u);case 24:Jt(t,Ol,l.memoizedState.cache)}return Gt(l,t,u)}function Co(l,t,u){if(l!==null)if(l.memoizedProps!==t.pendingProps)Ul=!0;else{if(!yc(l,u)&&(t.flags&128)===0)return Ul=!1,Z0(l,t,u);Ul=(l.flags&131072)!==0}else Ul=!1,al&&(t.flags&1048576)!==0&&ds(t,je,t.index);switch(t.lanes=0,t.tag){case 16:l:{l=t.pendingProps;var a=t.elementType,e=a._init;if(a=e(a._payload),t.type=a,typeof a=="function")pf(a)?(l=Ru(a,l),t.tag=1,t=Ho(null,t,a,l,u)):(t.tag=0,t=cc(null,t,a,l,u));else{if(a!=null){if(e=a.$$typeof,e===wl){t.tag=11,t=Oo(null,t,a,l,u);break l}else if(e===zl){t.tag=14,t=_o(null,t,a,l,u);break l}}throw t=hu(a)||a,Error(r(306,t,""))}}return t;case 0:return cc(l,t,t.type,t.pendingProps,u);case 1:return a=t.type,e=Ru(a,t.pendingProps),Ho(l,t,a,e,u);case 3:l:{if(vl(t,t.stateNode.containerInfo),l===null)throw Error(r(387));a=t.pendingProps;var n=t.memoizedState;e=n.element,Cf(l,t),Ja(t,a,null,u);var f=t.memoizedState;if(a=f.cache,Jt(t,Ol,a),a!==n.cache&&Nf(t,[Ol],u,!0),Ka(),a=f.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=qo(l,t,a,u);break l}else if(a!==e){e=ct(Error(r(424)),t),xa(e),t=qo(l,t,a,u);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(ml=St(l.firstChild),Ql=t,al=!0,Mu=null,At=!0,u=ho(t,null,a,u),t.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ca(),a===e){t=Gt(l,t,u);break l}Hl(l,t,a,u)}t=t.child}return t;case 26:return on(l,t),l===null?(u=Qr(t.type,null,t.pendingProps,null))?t.memoizedState=u:al||(u=t.type,l=t.pendingProps,a=zn(Z.current).createElement(u),a[xl]=t,a[Zl]=l,Yl(a,u,l),Dl(a),t.stateNode=a):t.memoizedState=Qr(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Zn(t),l===null&&al&&(a=t.stateNode=xr(t.type,t.pendingProps,Z.current),Ql=t,At=!0,e=ml,cu(t.type)?(Wc=e,ml=St(a.firstChild)):ml=e),Hl(l,t,t.pendingProps.children,u),on(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&al&&((e=a=ml)&&(a=mv(a,t.type,t.pendingProps,At),a!==null?(t.stateNode=a,Ql=t,ml=St(a.firstChild),At=!1,e=!0):e=!1),e||zu(t)),Zn(t),e=t.type,n=t.pendingProps,f=l!==null?l.memoizedProps:null,a=n.children,Vc(e,n)?a=null:f!==null&&Vc(e,f)&&(t.flags|=32),t.memoizedState!==null&&(e=jf(l,t,Y0,null,null,u),ye._currentValue=e),on(l,t),Hl(l,t,a,u),t.child;case 6:return l===null&&al&&((l=u=ml)&&(u=gv(u,t.pendingProps,At),u!==null?(t.stateNode=u,Ql=t,ml=null,l=!0):l=!1),l||zu(t)),null;case 13:return Yo(l,t,u);case 4:return vl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=fa(t,null,a,u):Hl(l,t,a,u),t.child;case 11:return Oo(l,t,t.type,t.pendingProps,u);case 7:return Hl(l,t,t.pendingProps,u),t.child;case 8:return Hl(l,t,t.pendingProps.children,u),t.child;case 12:return Hl(l,t,t.pendingProps.children,u),t.child;case 10:return a=t.pendingProps,Jt(t,t.type,a.value),Hl(l,t,a.children,u),t.child;case 9:return e=t.type._context,a=t.pendingProps.children,_u(t),e=Ll(e),a=a(e),t.flags|=1,Hl(l,t,a,u),t.child;case 14:return _o(l,t,t.type,t.pendingProps,u);case 15:return Do(l,t,t.type,t.pendingProps,u);case 19:return Go(l,t,u);case 31:return a=t.pendingProps,u=t.mode,a={mode:a.mode,children:a.children},l===null?(u=rn(a,u),u.ref=t.ref,t.child=u,u.return=t,t=u):(u=Ut(l.child,a),u.ref=t.ref,t.child=u,u.return=t,t=u),t;case 22:return Uo(l,t,u);case 24:return _u(t),a=Ll(Ol),l===null?(e=Yf(),e===null&&(e=dl,n=Hf(),e.pooledCache=n,n.refCount++,n!==null&&(e.pooledCacheLanes|=u),e=n),t.memoizedState={parent:a,cache:e},Gf(t),Jt(t,Ol,e)):((l.lanes&u)!==0&&(Cf(l,t),Ja(t,null,null,u),Ka()),e=l.memoizedState,n=t.memoizedState,e.parent!==a?(e={parent:a,cache:a},t.memoizedState=e,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=e),Jt(t,Ol,a)):(a=n.cache,Jt(t,Ol,a),a!==e.cache&&Nf(t,[Ol],u,!0))),Hl(l,t,t.pendingProps.children,u),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ct(l){l.flags|=4}function xo(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Jr(t)){if(t=rt.current,t!==null&&((P&4194048)===P?Tt!==null:(P&62914560)!==P&&(P&536870912)===0||t!==Tt))throw ja=Bf,Es;l.flags|=8192}}function dn(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?hi():536870912,l.lanes|=t,oa|=t)}function Pa(l,t){if(!al)switch(l.tailMode){case"hidden":t=l.tail;for(var u=null;t!==null;)t.alternate!==null&&(u=t),t=t.sibling;u===null?l.tail=null:u.sibling=null;break;case"collapsed":u=l.tail;for(var a=null;u!==null;)u.alternate!==null&&(a=u),u=u.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function hl(l){var t=l.alternate!==null&&l.alternate.child===l.child,u=0,a=0;if(t)for(var e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags&65011712,a|=e.flags&65011712,e.return=l,e=e.sibling;else for(e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags,a|=e.flags,e.return=l,e=e.sibling;return l.subtreeFlags|=a,l.childLanes=u,t}function j0(l,t,u){var a=t.pendingProps;switch(_f(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hl(t),null;case 1:return hl(t),null;case 3:return u=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),qt(Ol),Zt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(l===null||l.child===null)&&(Ga(t)?Ct(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hs())),hl(t),null;case 26:return u=t.memoizedState,l===null?(Ct(t),u!==null?(hl(t),xo(t,u)):(hl(t),t.flags&=-16777217)):u?u!==l.memoizedState?(Ct(t),hl(t),xo(t,u)):(hl(t),t.flags&=-16777217):(l.memoizedProps!==a&&Ct(t),hl(t),t.flags&=-16777217),null;case 27:Te(t),u=Z.current;var e=t.type;if(l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Ct(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return hl(t),null}l=C.current,Ga(t)?vs(t):(l=xr(e,a,u),t.stateNode=l,Ct(t))}return hl(t),null;case 5:if(Te(t),u=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Ct(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return hl(t),null}if(l=C.current,Ga(t))vs(t);else{switch(e=zn(Z.current),l){case 1:l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":l=e.createElement("div"),l.innerHTML=" + + + +
+ + + diff --git a/dist/samples/react-ui-kit-place-details-latlng/docs/index.html b/dist/samples/react-ui-kit-place-details-latlng/docs/index.html new file mode 100644 index 00000000..84de7f70 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng/docs/index.html @@ -0,0 +1,37 @@ + + + + + + + + + React - UI Kit Place Details - latitude, longitude + + + + +
+ + + + diff --git a/dist/samples/react-ui-kit-place-details-latlng/docs/src/app.js b/dist/samples/react-ui-kit-place-details-latlng/docs/src/app.js new file mode 100644 index 00000000..bdfeae28 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng/docs/src/app.js @@ -0,0 +1,64 @@ +import { jsx as _jsx } from "react/jsx-runtime"; +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{ /* [START maps_react_ui_kit_place_details_by_latlng] */ } +import React from 'react'; +import { createRoot } from 'react-dom/client'; +import { APIProvider, useMapsLibrary } from '@vis.gl/react-google-maps'; +import './styles.css'; +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; +// Renders place details using a latitude and longitude. +const PlaceDetails = ({ lat, lng }) => { + const places = useMapsLibrary('places'); + const containerRef = React.useRef(null); + React.useEffect(() => { + if (!places || !containerRef.current) { + return; + } + // Create the gmp-place-details element. + const placeDetails = document.createElement('gmp-place-details'); + // Create the gmp-place-details-location-request element. + const locationRequest = document.createElement('gmp-place-details-location-request'); + // Set the location on the location request element. + locationRequest.setAttribute('location', `${lat},${lng}`); + // Append the location request to the place details element. + placeDetails.appendChild(locationRequest); + // Create and append the content config and its children. + const contentConfig = document.createElement('gmp-place-content-config'); + contentConfig.innerHTML = ` + + + + + + + + + + + + + + + `; + placeDetails.appendChild(contentConfig); + // Append the place details element to the container. + containerRef.current.innerHTML = ''; // Clear previous content + containerRef.current.appendChild(placeDetails); + }, [places, lat, lng]); + return _jsx("div", { ref: containerRef, className: "place-details-container" }); +}; +const App = () => { + return (_jsx(APIProvider, { apiKey: API_KEY, libraries: ['places'], children: _jsx("div", { className: "places-ui-kit", children: _jsx(PlaceDetails, { lat: 48.8566, lng: 2.3522 }) }) })); +}; +export default App; +export function renderToDom(container) { + const root = createRoot(container); + root.render(_jsx(React.StrictMode, { children: _jsx(App, {}) })); +} +{ /* [END maps_react_ui_kit_place_details_by_latlng] */ } diff --git a/dist/samples/react-ui-kit-place-details-latlng/docs/src/app.tsx b/dist/samples/react-ui-kit-place-details-latlng/docs/src/app.tsx new file mode 100644 index 00000000..60c4b225 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng/docs/src/app.tsx @@ -0,0 +1,94 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{/* [START maps_react_ui_kit_place_details_by_latlng] */} +import React from 'react'; +import {createRoot} from 'react-dom/client'; +import {APIProvider, useMapsLibrary} from '@vis.gl/react-google-maps'; + +import './styles.css'; + +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; + +type PlaceDetailsProps = { + lat: number; + lng: number; +}; + +// Renders place details using a latitude and longitude. +const PlaceDetails = ({lat, lng}: PlaceDetailsProps) => { + const places = useMapsLibrary('places'); + const containerRef = React.useRef(null); + + React.useEffect(() => { + if (!places || !containerRef.current) { + return; + } + // Create the gmp-place-details element. + const placeDetails = document.createElement('gmp-place-details'); + + // Create the gmp-place-details-location-request element. + const locationRequest = document.createElement( + 'gmp-place-details-location-request', + ); + + // Set the location on the location request element. + locationRequest.setAttribute('location', `${lat},${lng}`); + + // Append the location request to the place details element. + placeDetails.appendChild(locationRequest); + + // Create and append the content config and its children. + const contentConfig = document.createElement('gmp-place-content-config'); + contentConfig.innerHTML = ` + + + + + + + + + + + + + + + `; + placeDetails.appendChild(contentConfig); + + // Append the place details element to the container. + containerRef.current.innerHTML = ''; // Clear previous content + containerRef.current.appendChild(placeDetails); + }, [places, lat, lng]); + + return
; +}; + +const App = () => { + return ( + +
+ +
+
+ ); +}; + +export default App; + +export function renderToDom(container: HTMLElement) { + const root = createRoot(container); + + root.render( + + + + ); +} +{/* [END maps_react_ui_kit_place_details_by_latlng] */} diff --git a/dist/samples/react-ui-kit-place-details-latlng/docs/src/styles.css b/dist/samples/react-ui-kit-place-details-latlng/docs/src/styles.css new file mode 100644 index 00000000..04c24bd6 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details-latlng/docs/src/styles.css @@ -0,0 +1,31 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +/* [START maps_react_ui_kit_place_details_by_latlng] */ +#map { + height: 100%; +} + +gmp-map { + height: 100%; +} + +.widget-container { + background-color: black; + padding: 1rem; + border-radius: 0.5rem; + max-height: calc(100% - 2rem); + overflow: auto; +} + +.place-details-container { + position: relative; + width: 360px; + margin: auto; + margin-top:20px; + max-height: 760px; + overflow: auto; +} +/* [END maps_react_ui_kit_place_details_by_latlng] */ diff --git a/dist/samples/react-ui-kit-place-details/dist/assets/index-9x4ZvL3N.js b/dist/samples/react-ui-kit-place-details/dist/assets/index-9x4ZvL3N.js new file mode 100644 index 00000000..09099c8c --- /dev/null +++ b/dist/samples/react-ui-kit-place-details/dist/assets/index-9x4ZvL3N.js @@ -0,0 +1,66 @@ +(function(){const S=document.createElement("link").relList;if(S&&S.supports&&S.supports("modulepreload"))return;for(const R of document.querySelectorAll('link[rel="modulepreload"]'))r(R);new MutationObserver(R=>{for(const H of R)if(H.type==="childList")for(const B of H.addedNodes)B.tagName==="LINK"&&B.rel==="modulepreload"&&r(B)}).observe(document,{childList:!0,subtree:!0});function z(R){const H={};return R.integrity&&(H.integrity=R.integrity),R.referrerPolicy&&(H.referrerPolicy=R.referrerPolicy),R.crossOrigin==="use-credentials"?H.credentials="include":R.crossOrigin==="anonymous"?H.credentials="omit":H.credentials="same-origin",H}function r(R){if(R.ep)return;R.ep=!0;const H=z(R);fetch(R.href,H)}})();function Zv(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var ei={exports:{}},be={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ed;function jv(){if(ed)return be;ed=1;var g=Symbol.for("react.transitional.element"),S=Symbol.for("react.fragment");function z(r,R,H){var B=null;if(H!==void 0&&(B=""+H),R.key!==void 0&&(B=""+R.key),"key"in R){H={};for(var j in R)j!=="key"&&(H[j]=R[j])}else H=R;return R=H.ref,{$$typeof:g,type:r,key:B,ref:R!==void 0?R:null,props:H}}return be.Fragment=S,be.jsx=z,be.jsxs=z,be}var nd;function Vv(){return nd||(nd=1,ei.exports=jv()),ei.exports}var Ea=Vv(),ni={exports:{}},V={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fd;function Kv(){if(fd)return V;fd=1;var g=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),B=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),K=Symbol.iterator;function J(s){return s===null||typeof s!="object"?null:(s=K&&s[K]||s["@@iterator"],typeof s=="function"?s:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,rl={};function Al(s,M,N){this.props=s,this.context=M,this.refs=rl,this.updater=N||I}Al.prototype.isReactComponent={},Al.prototype.setState=function(s,M){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,M,"setState")},Al.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function yt(){}yt.prototype=Al.prototype;function ht(s,M,N){this.props=s,this.context=M,this.refs=rl,this.updater=N||I}var Ml=ht.prototype=new yt;Ml.constructor=ht,G(Ml,Al.prototype),Ml.isPureReactComponent=!0;var wl=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},Sl=Object.prototype.hasOwnProperty;function zl(s,M,N,_,C,tl){return N=tl.ref,{$$typeof:g,type:s,key:M,ref:N!==void 0?N:null,props:tl}}function Bl(s,M){return zl(s.type,M,void 0,void 0,void 0,s.props)}function bt(s){return typeof s=="object"&&s!==null&&s.$$typeof===g}function Yu(s){var M={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(N){return M[N]})}var Ot=/\/+/g;function Gl(s,M){return typeof s=="object"&&s!==null&&s.key!=null?Yu(""+s.key):M.toString(36)}function yu(){}function hu(s){switch(s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(yu,yu):(s.status="pending",s.then(function(M){s.status==="pending"&&(s.status="fulfilled",s.value=M)},function(M){s.status==="pending"&&(s.status="rejected",s.reason=M)})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}}throw s}function Cl(s,M,N,_,C){var tl=typeof s;(tl==="undefined"||tl==="boolean")&&(s=null);var Z=!1;if(s===null)Z=!0;else switch(tl){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(s.$$typeof){case g:case S:Z=!0;break;case U:return Z=s._init,Cl(Z(s._payload),M,N,_,C)}}if(Z)return C=C(s),Z=_===""?"."+Gl(s,0):_,wl(C)?(N="",Z!=null&&(N=Z.replace(Ot,"$&/")+"/"),Cl(C,M,N,"",function(Zt){return Zt})):C!=null&&(bt(C)&&(C=Bl(C,N+(C.key==null||s&&s.key===C.key?"":(""+C.key).replace(Ot,"$&/")+"/")+Z)),M.push(C)),1;Z=0;var Wl=_===""?".":_+":";if(wl(s))for(var vl=0;vl>>1,s=E[sl];if(0>>1;slR(_,X))CR(tl,_)?(E[sl]=tl,E[C]=X,sl=C):(E[sl]=_,E[N]=X,sl=N);else if(CR(tl,X))E[sl]=tl,E[C]=X,sl=C;else break l}}return D}function R(E,D){var X=E.sortIndex-D.sortIndex;return X!==0?X:E.id-D.id}if(g.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var H=performance;g.unstable_now=function(){return H.now()}}else{var B=Date,j=B.now();g.unstable_now=function(){return B.now()-j}}var O=[],A=[],U=1,K=null,J=3,I=!1,G=!1,rl=!1,Al=!1,yt=typeof setTimeout=="function"?setTimeout:null,ht=typeof clearTimeout=="function"?clearTimeout:null,Ml=typeof setImmediate<"u"?setImmediate:null;function wl(E){for(var D=z(A);D!==null;){if(D.callback===null)r(A);else if(D.startTime<=E)r(A),D.sortIndex=D.expirationTime,S(O,D);else break;D=z(A)}}function $(E){if(rl=!1,wl(E),!G)if(z(O)!==null)G=!0,Sl||(Sl=!0,Gl());else{var D=z(A);D!==null&&Cl($,D.startTime-E)}}var Sl=!1,zl=-1,Bl=5,bt=-1;function Yu(){return Al?!0:!(g.unstable_now()-btE&&Yu());){var sl=K.callback;if(typeof sl=="function"){K.callback=null,J=K.priorityLevel;var s=sl(K.expirationTime<=E);if(E=g.unstable_now(),typeof s=="function"){K.callback=s,wl(E),D=!0;break t}K===z(O)&&r(O),wl(E)}else r(O);K=z(O)}if(K!==null)D=!0;else{var M=z(A);M!==null&&Cl($,M.startTime-E),D=!1}}break l}finally{K=null,J=X,I=!1}D=void 0}}finally{D?Gl():Sl=!1}}}var Gl;if(typeof Ml=="function")Gl=function(){Ml(Ot)};else if(typeof MessageChannel<"u"){var yu=new MessageChannel,hu=yu.port2;yu.port1.onmessage=Ot,Gl=function(){hu.postMessage(null)}}else Gl=function(){yt(Ot,0)};function Cl(E,D){zl=yt(function(){E(g.unstable_now())},D)}g.unstable_IdlePriority=5,g.unstable_ImmediatePriority=1,g.unstable_LowPriority=4,g.unstable_NormalPriority=3,g.unstable_Profiling=null,g.unstable_UserBlockingPriority=2,g.unstable_cancelCallback=function(E){E.callback=null},g.unstable_forceFrameRate=function(E){0>E||125sl?(E.sortIndex=X,S(A,E),z(O)===null&&E===z(A)&&(rl?(ht(zl),zl=-1):rl=!0,Cl($,X-sl))):(E.sortIndex=s,S(O,E),G||I||(G=!0,Sl||(Sl=!0,Gl()))),E},g.unstable_shouldYield=Yu,g.unstable_wrapCallback=function(E){var D=J;return function(){var X=J;J=D;try{return E.apply(this,arguments)}finally{J=X}}}})(ii)),ii}var sd;function wv(){return sd||(sd=1,ci.exports=Jv()),ci.exports}var si={exports:{}},Xl={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var od;function Wv(){if(od)return Xl;od=1;var g=oi();function S(O){var A="https://react.dev/errors/"+O;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g)}catch(S){console.error(S)}}return g(),si.exports=Wv(),si.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dd;function $v(){if(dd)return Ee;dd=1;var g=wv(),S=oi(),z=gd();function r(l){var t="https://react.dev/errors/"+l;if(1s||(l.current=sl[s],sl[s]=null,s--)}function _(l,t){s++,sl[s]=l.current,l.current=t}var C=M(null),tl=M(null),Z=M(null),Wl=M(null);function vl(l,t){switch(_(Z,t),_(tl,l),_(C,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Hr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Hr(t),l=qr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}N(C),_(C,l)}function Zt(){N(C),N(tl),N(Z)}function Zn(l){l.memoizedState!==null&&_(Wl,l);var t=C.current,u=qr(t,l.type);t!==u&&(_(tl,l),_(C,u))}function Te(l){tl.current===l&&(N(C),N(tl)),Wl.current===l&&(N(Wl),ye._currentValue=X)}var jn=Object.prototype.hasOwnProperty,Vn=g.unstable_scheduleCallback,Kn=g.unstable_cancelCallback,Ed=g.unstable_shouldYield,Ad=g.unstable_requestPaint,Et=g.unstable_now,Td=g.unstable_getCurrentPriorityLevel,ri=g.unstable_ImmediatePriority,di=g.unstable_UserBlockingPriority,pe=g.unstable_NormalPriority,pd=g.unstable_LowPriority,vi=g.unstable_IdlePriority,Md=g.log,zd=g.unstable_setDisableYieldValue,Ta=null,$l=null;function jt(l){if(typeof Md=="function"&&zd(l),$l&&typeof $l.setStrictMode=="function")try{$l.setStrictMode(Ta,l)}catch{}}var kl=Math.clz32?Math.clz32:Dd,Od=Math.log,_d=Math.LN2;function Dd(l){return l>>>=0,l===0?32:31-(Od(l)/_d|0)|0}var Me=256,ze=4194304;function mu(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Oe(l,t,u){var a=l.pendingLanes;if(a===0)return 0;var e=0,n=l.suspendedLanes,f=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?e=mu(a):(f&=c,f!==0?e=mu(f):u||(u=c&~l,u!==0&&(e=mu(u))))):(c=a&~n,c!==0?e=mu(c):f!==0?e=mu(f):u||(u=a&~l,u!==0&&(e=mu(u)))),e===0?0:t!==0&&t!==e&&(t&n)===0&&(n=e&-e,u=t&-t,n>=u||n===32&&(u&4194048)!==0)?t:e}function pa(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Ud(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yi(){var l=Me;return Me<<=1,(Me&4194048)===0&&(Me=256),l}function hi(){var l=ze;return ze<<=1,(ze&62914560)===0&&(ze=4194304),l}function Jn(l){for(var t=[],u=0;31>u;u++)t.push(l);return t}function Ma(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Rd(l,t,u,a,e,n){var f=l.pendingLanes;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=u,l.entangledLanes&=u,l.errorRecoveryDisabledLanes&=u,l.shellSuspendCounter=0;var c=l.entanglements,i=l.expirationTimes,y=l.hiddenUpdates;for(u=f&~u;0)":-1e||i[a]!==y[e]){var b=` +`+i[a].replace(" at new "," at ");return l.displayName&&b.includes("")&&(b=b.replace("",l.displayName)),b}while(1<=a&&0<=e);break}}}finally{In=!1,Error.prepareStackTrace=u}return(u=l?l.displayName||l.name:"")?Xu(u):""}function Gd(l){switch(l.tag){case 26:case 27:case 5:return Xu(l.type);case 16:return Xu("Lazy");case 13:return Xu("Suspense");case 19:return Xu("SuspenseList");case 0:case 15:return Pn(l.type,!1);case 11:return Pn(l.type.render,!1);case 1:return Pn(l.type,!0);case 31:return Xu("Activity");default:return""}}function zi(l){try{var t="";do t+=Gd(l),l=l.return;while(l);return t}catch(u){return` +Error generating stack: `+u.message+` +`+u.stack}}function nt(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Oi(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cd(l){var t=Oi(l)?"checked":"value",u=Object.getOwnPropertyDescriptor(l.constructor.prototype,t),a=""+l[t];if(!l.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var e=u.get,n=u.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return e.call(this)},set:function(f){a=""+f,n.call(this,f)}}),Object.defineProperty(l,t,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function Ue(l){l._valueTracker||(l._valueTracker=Cd(l))}function _i(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var u=t.getValue(),a="";return l&&(a=Oi(l)?l.checked?"true":"false":l.value),l=a,l!==u?(t.setValue(l),!0):!1}function Re(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var xd=/[\n"\\]/g;function ft(l){return l.replace(xd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lf(l,t,u,a,e,n,f,c){l.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?l.type=f:l.removeAttribute("type"),t!=null?f==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+nt(t)):l.value!==""+nt(t)&&(l.value=""+nt(t)):f!=="submit"&&f!=="reset"||l.removeAttribute("value"),t!=null?tf(l,f,nt(t)):u!=null?tf(l,f,nt(u)):a!=null&&l.removeAttribute("value"),e==null&&n!=null&&(l.defaultChecked=!!n),e!=null&&(l.checked=e&&typeof e!="function"&&typeof e!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+nt(c):l.removeAttribute("name")}function Di(l,t,u,a,e,n,f,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||u!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;u=u!=null?""+nt(u):"",t=t!=null?""+nt(t):u,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??e,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(l.name=f)}function tf(l,t,u){t==="number"&&Re(l.ownerDocument)===l||l.defaultValue===""+u||(l.defaultValue=""+u)}function Qu(l,t,u,a){if(l=l.options,t){t={};for(var e=0;e"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ff=!1;if(Dt)try{var Da={};Object.defineProperty(Da,"passive",{get:function(){ff=!0}}),window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch{ff=!1}var Kt=null,cf=null,He=null;function Bi(){if(He)return He;var l,t=cf,u=t.length,a,e="value"in Kt?Kt.value:Kt.textContent,n=e.length;for(l=0;l=Na),Qi=" ",Zi=!1;function ji(l,t){switch(l){case"keyup":return d0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vi(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Ku=!1;function y0(l,t){switch(l){case"compositionend":return Vi(t);case"keypress":return t.which!==32?null:(Zi=!0,Qi);case"textInput":return l=t.data,l===Qi&&Zi?null:l;default:return null}}function h0(l,t){if(Ku)return l==="compositionend"||!vf&&ji(l,t)?(l=Bi(),He=cf=Kt=null,Ku=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:u,offset:t-l};l=a}l:{for(;u;){if(u.nextSibling){u=u.nextSibling;break l}u=u.parentNode}u=void 0}u=Ii(u)}}function ls(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?ls(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function ts(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Re(l.document);t instanceof l.HTMLIFrameElement;){try{var u=typeof t.contentWindow.location.href=="string"}catch{u=!1}if(u)l=t.contentWindow;else break;t=Re(l.document)}return t}function mf(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var p0=Dt&&"documentMode"in document&&11>=document.documentMode,Ju=null,gf=null,Ba=null,Sf=!1;function us(l,t,u){var a=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Sf||Ju==null||Ju!==Re(a)||(a=Ju,"selectionStart"in a&&mf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ba&&Ya(Ba,a)||(Ba=a,a=pn(gf,"onSelect"),0>=f,e-=f,Rt=1<<32-kl(t)+e|u<n?n:8;var f=E.T,c={};E.T=c,ac(l,!1,t,u);try{var i=e(),y=E.S;if(y!==null&&y(c,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var b=H0(i,a);ka(l,t,b,ut(l))}else ka(l,t,a,ut(l))}catch(p){ka(l,t,{then:function(){},status:"rejected",reason:p},ut())}finally{D.p=n,E.T=f}}function C0(){}function tc(l,t,u,a){if(l.tag!==5)throw Error(r(476));var e=ao(l).queue;uo(l,e,t,X,u===null?C0:function(){return eo(l),u(a)})}function ao(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:X},next:null};var u={};return t.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yt,lastRenderedState:u},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function eo(l){var t=ao(l).next.queue;ka(l,t,{},ut())}function uc(){return Ll(ye)}function no(){return pl().memoizedState}function fo(){return pl().memoizedState}function x0(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var u=ut();l=Wt(u);var a=$t(t,l,u);a!==null&&(at(a,t,u),Va(a,t,u)),t={cache:Hf()},l.payload=t;return}t=t.return}}function L0(l,t,u){var a=ut();u={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},un(l)?io(t,u):(u=Tf(l,t,u,a),u!==null&&(at(u,l,a),so(u,t,a)))}function co(l,t,u){var a=ut();ka(l,t,u,a)}function ka(l,t,u,a){var e={lane:a,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(un(l))io(t,e);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var f=t.lastRenderedState,c=n(f,u);if(e.hasEagerState=!0,e.eagerState=c,Fl(c,f))return Le(l,t,e,0),dl===null&&xe(),!1}catch{}finally{}if(u=Tf(l,t,e,a),u!==null)return at(u,l,a),so(u,t,a),!0}return!1}function ac(l,t,u,a){if(a={lane:2,revertLane:Bc(),action:a,hasEagerState:!1,eagerState:null,next:null},un(l)){if(t)throw Error(r(479))}else t=Tf(l,u,a,2),t!==null&&at(t,l,2)}function un(l){var t=l.alternate;return l===w||t!==null&&t===w}function io(l,t){ua=ke=!0;var u=l.pending;u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t}function so(l,t,u){if((u&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,u|=a,t.lanes=u,gi(l,u)}}var an={readContext:Ll,use:Ie,useCallback:bl,useContext:bl,useEffect:bl,useImperativeHandle:bl,useLayoutEffect:bl,useInsertionEffect:bl,useMemo:bl,useReducer:bl,useRef:bl,useState:bl,useDebugValue:bl,useDeferredValue:bl,useTransition:bl,useSyncExternalStore:bl,useId:bl,useHostTransitionStatus:bl,useFormState:bl,useActionState:bl,useOptimistic:bl,useMemoCache:bl,useCacheRefresh:bl},oo={readContext:Ll,use:Ie,useCallback:function(l,t){return Vl().memoizedState=[l,t===void 0?null:t],l},useContext:Ll,useEffect:ws,useImperativeHandle:function(l,t,u){u=u!=null?u.concat([l]):null,tn(4194308,4,Fs.bind(null,t,l),u)},useLayoutEffect:function(l,t){return tn(4194308,4,l,t)},useInsertionEffect:function(l,t){tn(4,2,l,t)},useMemo:function(l,t){var u=Vl();t=t===void 0?null:t;var a=l();if(Uu){jt(!0);try{l()}finally{jt(!1)}}return u.memoizedState=[a,t],a},useReducer:function(l,t,u){var a=Vl();if(u!==void 0){var e=u(t);if(Uu){jt(!0);try{u(t)}finally{jt(!1)}}}else e=t;return a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:e},a.queue=l,l=l.dispatch=L0.bind(null,w,l),[a.memoizedState,l]},useRef:function(l){var t=Vl();return l={current:l},t.memoizedState=l},useState:function(l){l=Ff(l);var t=l.queue,u=co.bind(null,w,t);return t.dispatch=u,[l.memoizedState,u]},useDebugValue:Pf,useDeferredValue:function(l,t){var u=Vl();return lc(u,l,t)},useTransition:function(){var l=Ff(!1);return l=uo.bind(null,w,l.queue,!0,!1),Vl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,u){var a=w,e=Vl();if(al){if(u===void 0)throw Error(r(407));u=u()}else{if(u=t(),dl===null)throw Error(r(349));(P&124)!==0||Ns(a,t,u)}e.memoizedState=u;var n={value:u,getSnapshot:t};return e.queue=n,ws(qs.bind(null,a,n,l),[l]),a.flags|=2048,ea(9,ln(),Hs.bind(null,a,n,u,t),null),u},useId:function(){var l=Vl(),t=dl.identifierPrefix;if(al){var u=Nt,a=Rt;u=(a&~(1<<32-kl(a)-1)).toString(32)+u,t="«"+t+"R"+u,u=Fe++,0L?(Nl=Y,Y=null):Nl=Y.sibling;var ul=h(d,Y,v[L],T);if(ul===null){Y===null&&(Y=Nl);break}l&&Y&&ul.alternate===null&&t(d,Y),o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul,Y=Nl}if(L===v.length)return u(d,Y),al&&pu(d,L),q;if(Y===null){for(;LL?(Nl=Y,Y=null):Nl=Y.sibling;var du=h(d,Y,ul.value,T);if(du===null){Y===null&&(Y=Nl);break}l&&Y&&du.alternate===null&&t(d,Y),o=n(du,o,L),W===null?q=du:W.sibling=du,W=du,Y=Nl}if(ul.done)return u(d,Y),al&&pu(d,L),q;if(Y===null){for(;!ul.done;L++,ul=v.next())ul=p(d,ul.value,T),ul!==null&&(o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul);return al&&pu(d,L),q}for(Y=a(Y);!ul.done;L++,ul=v.next())ul=m(Y,d,L,ul.value,T),ul!==null&&(l&&ul.alternate!==null&&Y.delete(ul.key===null?L:ul.key),o=n(ul,o,L),W===null?q=ul:W.sibling=ul,W=ul);return l&&Y.forEach(function(Qv){return t(d,Qv)}),al&&pu(d,L),q}function il(d,o,v,T){if(typeof v=="object"&&v!==null&&v.type===G&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case J:l:{for(var q=v.key;o!==null;){if(o.key===q){if(q=v.type,q===G){if(o.tag===7){u(d,o.sibling),T=e(o,v.props.children),T.return=d,d=T;break l}}else if(o.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Bl&&vo(q)===o.type){u(d,o.sibling),T=e(o,v.props),Ia(T,v),T.return=d,d=T;break l}u(d,o);break}else t(d,o);o=o.sibling}v.type===G?(T=Au(v.props.children,d.mode,T,v.key),T.return=d,d=T):(T=Qe(v.type,v.key,v.props,null,d.mode,T),Ia(T,v),T.return=d,d=T)}return f(d);case I:l:{for(q=v.key;o!==null;){if(o.key===q)if(o.tag===4&&o.stateNode.containerInfo===v.containerInfo&&o.stateNode.implementation===v.implementation){u(d,o.sibling),T=e(o,v.children||[]),T.return=d,d=T;break l}else{u(d,o);break}else t(d,o);o=o.sibling}T=zf(v,d.mode,T),T.return=d,d=T}return f(d);case Bl:return q=v._init,v=q(v._payload),il(d,o,v,T)}if(Cl(v))return Q(d,o,v,T);if(Gl(v)){if(q=Gl(v),typeof q!="function")throw Error(r(150));return v=q.call(v),x(d,o,v,T)}if(typeof v.then=="function")return il(d,o,en(v),T);if(v.$$typeof===Ml)return il(d,o,Ke(d,v),T);nn(d,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,o!==null&&o.tag===6?(u(d,o.sibling),T=e(o,v),T.return=d,d=T):(u(d,o),T=Mf(v,d.mode,T),T.return=d,d=T),f(d)):u(d,o)}return function(d,o,v,T){try{Fa=0;var q=il(d,o,v,T);return na=null,q}catch(Y){if(Y===Za||Y===we)throw Y;var W=Il(29,Y,null,d.mode);return W.lanes=T,W.return=d,W}finally{}}}var fa=yo(!0),ho=yo(!1),rt=M(null),Tt=null;function Ft(l){var t=l.alternate;_(_l,_l.current&1),_(rt,l),Tt===null&&(t===null||ta.current!==null||t.memoizedState!==null)&&(Tt=l)}function mo(l){if(l.tag===22){if(_(_l,_l.current),_(rt,l),Tt===null){var t=l.alternate;t!==null&&t.memoizedState!==null&&(Tt=l)}}else It()}function It(){_(_l,_l.current),_(rt,rt.current)}function Bt(l){N(rt),Tt===l&&(Tt=null),N(_l)}var _l=M(0);function fn(l){for(var t=l;t!==null;){if(t.tag===13){var u=t.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||wc(u)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ec(l,t,u,a){t=l.memoizedState,u=u(a,t),u=u==null?t:U({},t,u),l.memoizedState=u,l.lanes===0&&(l.updateQueue.baseState=u)}var nc={enqueueSetState:function(l,t,u){l=l._reactInternals;var a=ut(),e=Wt(a);e.payload=t,u!=null&&(e.callback=u),t=$t(l,e,a),t!==null&&(at(t,l,a),Va(t,l,a))},enqueueReplaceState:function(l,t,u){l=l._reactInternals;var a=ut(),e=Wt(a);e.tag=1,e.payload=t,u!=null&&(e.callback=u),t=$t(l,e,a),t!==null&&(at(t,l,a),Va(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var u=ut(),a=Wt(u);a.tag=2,t!=null&&(a.callback=t),t=$t(l,a,u),t!==null&&(at(t,l,u),Va(t,l,u))}};function go(l,t,u,a,e,n,f){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,n,f):t.prototype&&t.prototype.isPureReactComponent?!Ya(u,a)||!Ya(e,n):!0}function So(l,t,u,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(u,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(u,a),t.state!==l&&nc.enqueueReplaceState(t,t.state,null)}function Ru(l,t){var u=t;if("ref"in t){u={};for(var a in t)a!=="ref"&&(u[a]=t[a])}if(l=l.defaultProps){u===t&&(u=U({},u));for(var e in l)u[e]===void 0&&(u[e]=l[e])}return u}var cn=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function bo(l){cn(l)}function Eo(l){console.error(l)}function Ao(l){cn(l)}function sn(l,t){try{var u=l.onUncaughtError;u(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function To(l,t,u){try{var a=l.onCaughtError;a(u.value,{componentStack:u.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function fc(l,t,u){return u=Wt(u),u.tag=3,u.payload={element:null},u.callback=function(){sn(l,t)},u}function po(l){return l=Wt(l),l.tag=3,l}function Mo(l,t,u,a){var e=u.type.getDerivedStateFromError;if(typeof e=="function"){var n=a.value;l.payload=function(){return e(n)},l.callback=function(){To(t,u,a)}}var f=u.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(l.callback=function(){To(t,u,a),typeof e!="function"&&(eu===null?eu=new Set([this]):eu.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function Q0(l,t,u,a,e){if(u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=u.alternate,t!==null&&La(t,u,e,!0),u=rt.current,u!==null){switch(u.tag){case 13:return Tt===null?Rc():u.alternate===null&&gl===0&&(gl=3),u.flags&=-257,u.flags|=65536,u.lanes=e,a===Bf?u.flags|=16384:(t=u.updateQueue,t===null?u.updateQueue=new Set([a]):t.add(a),Hc(l,a,e)),!1;case 22:return u.flags|=65536,a===Bf?u.flags|=16384:(t=u.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},u.updateQueue=t):(u=t.retryQueue,u===null?t.retryQueue=new Set([a]):u.add(a)),Hc(l,a,e)),!1}throw Error(r(435,u.tag))}return Hc(l,a,e),Rc(),!1}if(al)return t=rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=e,a!==Df&&(l=Error(r(422),{cause:a}),xa(ct(l,u)))):(a!==Df&&(t=Error(r(423),{cause:a}),xa(ct(t,u))),l=l.current.alternate,l.flags|=65536,e&=-e,l.lanes|=e,a=ct(a,u),e=fc(l.stateNode,a,e),xf(l,e),gl!==4&&(gl=2)),!1;var n=Error(r(520),{cause:a});if(n=ct(n,u),ne===null?ne=[n]:ne.push(n),gl!==4&&(gl=2),t===null)return!0;a=ct(a,u),u=t;do{switch(u.tag){case 3:return u.flags|=65536,l=e&-e,u.lanes|=l,l=fc(u.stateNode,a,l),xf(u,l),!1;case 1:if(t=u.type,n=u.stateNode,(u.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(eu===null||!eu.has(n))))return u.flags|=65536,e&=-e,u.lanes|=e,e=po(e),Mo(e,l,u,a),xf(u,e),!1}u=u.return}while(u!==null);return!1}var zo=Error(r(461)),Ul=!1;function Hl(l,t,u,a){t.child=l===null?ho(t,null,u,a):fa(t,l.child,u,a)}function Oo(l,t,u,a,e){u=u.render;var n=t.ref;if("ref"in a){var f={};for(var c in a)c!=="ref"&&(f[c]=a[c])}else f=a;return _u(t),a=jf(l,t,u,f,n,e),c=Vf(),l!==null&&!Ul?(Kf(l,t,e),Gt(l,t,e)):(al&&c&&Of(t),t.flags|=1,Hl(l,t,a,e),t.child)}function _o(l,t,u,a,e){if(l===null){var n=u.type;return typeof n=="function"&&!pf(n)&&n.defaultProps===void 0&&u.compare===null?(t.tag=15,t.type=n,Do(l,t,n,a,e)):(l=Qe(u.type,null,a,t,t.mode,e),l.ref=t.ref,l.return=t,t.child=l)}if(n=l.child,!yc(l,e)){var f=n.memoizedProps;if(u=u.compare,u=u!==null?u:Ya,u(f,a)&&l.ref===t.ref)return Gt(l,t,e)}return t.flags|=1,l=Ut(n,a),l.ref=t.ref,l.return=t,t.child=l}function Do(l,t,u,a,e){if(l!==null){var n=l.memoizedProps;if(Ya(n,a)&&l.ref===t.ref)if(Ul=!1,t.pendingProps=a=n,yc(l,e))(l.flags&131072)!==0&&(Ul=!0);else return t.lanes=l.lanes,Gt(l,t,e)}return cc(l,t,u,a,e)}function Uo(l,t,u){var a=t.pendingProps,e=a.children,n=l!==null?l.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=n!==null?n.baseLanes|u:u,l!==null){for(e=t.child=l.child,n=0;e!==null;)n=n|e.lanes|e.childLanes,e=e.sibling;t.childLanes=n&~a}else t.childLanes=0,t.child=null;return Ro(l,t,a,u)}if((u&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&Je(t,n!==null?n.cachePool:null),n!==null?_s(t,n):Xf(),mo(t);else return t.lanes=t.childLanes=536870912,Ro(l,t,n!==null?n.baseLanes|u:u,u)}else n!==null?(Je(t,n.cachePool),_s(t,n),It(),t.memoizedState=null):(l!==null&&Je(t,null),Xf(),It());return Hl(l,t,e,u),t.child}function Ro(l,t,u,a){var e=Yf();return e=e===null?null:{parent:Ol._currentValue,pool:e},t.memoizedState={baseLanes:u,cachePool:e},l!==null&&Je(t,null),Xf(),mo(t),l!==null&&La(l,t,a,!0),null}function on(l,t){var u=t.ref;if(u===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(l===null||l.ref!==u)&&(t.flags|=4194816)}}function cc(l,t,u,a,e){return _u(t),u=jf(l,t,u,a,void 0,e),a=Vf(),l!==null&&!Ul?(Kf(l,t,e),Gt(l,t,e)):(al&&a&&Of(t),t.flags|=1,Hl(l,t,u,e),t.child)}function No(l,t,u,a,e,n){return _u(t),t.updateQueue=null,u=Us(t,a,u,e),Ds(l),a=Vf(),l!==null&&!Ul?(Kf(l,t,n),Gt(l,t,n)):(al&&a&&Of(t),t.flags|=1,Hl(l,t,u,n),t.child)}function Ho(l,t,u,a,e){if(_u(t),t.stateNode===null){var n=ku,f=u.contextType;typeof f=="object"&&f!==null&&(n=Ll(f)),n=new u(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=nc,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},Gf(t),f=u.contextType,n.context=typeof f=="object"&&f!==null?Ll(f):ku,n.state=t.memoizedState,f=u.getDerivedStateFromProps,typeof f=="function"&&(ec(t,u,f,a),n.state=t.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(f=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),f!==n.state&&nc.enqueueReplaceState(n,n.state,null),Ja(t,a,n,e),Ka(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,i=Ru(u,c);n.props=i;var y=n.context,b=u.contextType;f=ku,typeof b=="object"&&b!==null&&(f=Ll(b));var p=u.getDerivedStateFromProps;b=typeof p=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,b||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||y!==f)&&So(t,n,a,f),wt=!1;var h=t.memoizedState;n.state=h,Ja(t,a,n,e),Ka(),y=t.memoizedState,c||h!==y||wt?(typeof p=="function"&&(ec(t,u,p,a),y=t.memoizedState),(i=wt||go(t,u,i,a,h,y,f))?(b||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=y),n.props=a,n.state=y,n.context=f,a=i):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,Cf(l,t),f=t.memoizedProps,b=Ru(u,f),n.props=b,p=t.pendingProps,h=n.context,y=u.contextType,i=ku,typeof y=="object"&&y!==null&&(i=Ll(y)),c=u.getDerivedStateFromProps,(y=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(f!==p||h!==i)&&So(t,n,a,i),wt=!1,h=t.memoizedState,n.state=h,Ja(t,a,n,e),Ka();var m=t.memoizedState;f!==p||h!==m||wt||l!==null&&l.dependencies!==null&&Ve(l.dependencies)?(typeof c=="function"&&(ec(t,u,c,a),m=t.memoizedState),(b=wt||go(t,u,b,a,h,m,i)||l!==null&&l.dependencies!==null&&Ve(l.dependencies))?(y||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,m,i),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,m,i)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=m),n.props=a,n.state=m,n.context=i,a=b):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&h===l.memoizedState||(t.flags|=1024),a=!1)}return n=a,on(l,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,u=a&&typeof u.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,l!==null&&a?(t.child=fa(t,l.child,null,e),t.child=fa(t,null,u,e)):Hl(l,t,u,e),t.memoizedState=n.state,l=t.child):l=Gt(l,t,e),l}function qo(l,t,u,a){return Ca(),t.flags|=256,Hl(l,t,u,a),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(l){return{baseLanes:l,cachePool:bs()}}function oc(l,t,u){return l=l!==null?l.childLanes&~u:0,t&&(l|=dt),l}function Yo(l,t,u){var a=t.pendingProps,e=!1,n=(t.flags&128)!==0,f;if((f=n)||(f=l!==null&&l.memoizedState===null?!1:(_l.current&2)!==0),f&&(e=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,l===null){if(al){if(e?Ft(t):It(),al){var c=ml,i;if(i=c){l:{for(i=c,c=At;i.nodeType!==8;){if(!c){c=null;break l}if(i=St(i.nextSibling),i===null){c=null;break l}}c=i}c!==null?(t.memoizedState={dehydrated:c,treeContext:Tu!==null?{id:Rt,overflow:Nt}:null,retryLane:536870912,hydrationErrors:null},i=Il(18,null,null,0),i.stateNode=c,i.return=t,t.child=i,Ql=t,ml=null,i=!0):i=!1}i||zu(t)}if(c=t.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return wc(c)?t.lanes=32:t.lanes=536870912,null;Bt(t)}return c=a.children,a=a.fallback,e?(It(),e=t.mode,c=rn({mode:"hidden",children:c},e),a=Au(a,e,u,null),c.return=t,a.return=t,c.sibling=a,t.child=c,e=t.child,e.memoizedState=sc(u),e.childLanes=oc(l,f,u),t.memoizedState=ic,a):(Ft(t),rc(t,c))}if(i=l.memoizedState,i!==null&&(c=i.dehydrated,c!==null)){if(n)t.flags&256?(Ft(t),t.flags&=-257,t=dc(l,t,u)):t.memoizedState!==null?(It(),t.child=l.child,t.flags|=128,t=null):(It(),e=a.fallback,c=t.mode,a=rn({mode:"visible",children:a.children},c),e=Au(e,c,u,null),e.flags|=2,a.return=t,e.return=t,a.sibling=e,t.child=a,fa(t,l.child,null,u),a=t.child,a.memoizedState=sc(u),a.childLanes=oc(l,f,u),t.memoizedState=ic,t=e);else if(Ft(t),wc(c)){if(f=c.nextSibling&&c.nextSibling.dataset,f)var y=f.dgst;f=y,a=Error(r(419)),a.stack="",a.digest=f,xa({value:a,source:null,stack:null}),t=dc(l,t,u)}else if(Ul||La(l,t,u,!1),f=(u&l.childLanes)!==0,Ul||f){if(f=dl,f!==null&&(a=u&-u,a=(a&42)!==0?1:wn(a),a=(a&(f.suspendedLanes|u))!==0?0:a,a!==0&&a!==i.retryLane))throw i.retryLane=a,$u(l,a),at(f,l,a),zo;c.data==="$?"||Rc(),t=dc(l,t,u)}else c.data==="$?"?(t.flags|=192,t.child=l.child,t=null):(l=i.treeContext,ml=St(c.nextSibling),Ql=t,al=!0,Mu=null,At=!1,l!==null&&(st[ot++]=Rt,st[ot++]=Nt,st[ot++]=Tu,Rt=l.id,Nt=l.overflow,Tu=t),t=rc(t,a.children),t.flags|=4096);return t}return e?(It(),e=a.fallback,c=t.mode,i=l.child,y=i.sibling,a=Ut(i,{mode:"hidden",children:a.children}),a.subtreeFlags=i.subtreeFlags&65011712,y!==null?e=Ut(y,e):(e=Au(e,c,u,null),e.flags|=2),e.return=t,a.return=t,a.sibling=e,t.child=a,a=e,e=t.child,c=l.child.memoizedState,c===null?c=sc(u):(i=c.cachePool,i!==null?(y=Ol._currentValue,i=i.parent!==y?{parent:y,pool:y}:i):i=bs(),c={baseLanes:c.baseLanes|u,cachePool:i}),e.memoizedState=c,e.childLanes=oc(l,f,u),t.memoizedState=ic,a):(Ft(t),u=l.child,l=u.sibling,u=Ut(u,{mode:"visible",children:a.children}),u.return=t,u.sibling=null,l!==null&&(f=t.deletions,f===null?(t.deletions=[l],t.flags|=16):f.push(l)),t.child=u,t.memoizedState=null,u)}function rc(l,t){return t=rn({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function rn(l,t){return l=Il(22,l,null,t),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function dc(l,t,u){return fa(t,l.child,null,u),l=rc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Bo(l,t,u){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Rf(l.return,t,u)}function vc(l,t,u,a,e){var n=l.memoizedState;n===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:u,tailMode:e}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=u,n.tailMode=e)}function Go(l,t,u){var a=t.pendingProps,e=a.revealOrder,n=a.tail;if(Hl(l,t,a.children,u),a=_l.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Bo(l,u,t);else if(l.tag===19)Bo(l,u,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}a&=1}switch(_(_l,a),e){case"forwards":for(u=t.child,e=null;u!==null;)l=u.alternate,l!==null&&fn(l)===null&&(e=u),u=u.sibling;u=e,u===null?(e=t.child,t.child=null):(e=u.sibling,u.sibling=null),vc(t,!1,e,u,n);break;case"backwards":for(u=null,e=t.child,t.child=null;e!==null;){if(l=e.alternate,l!==null&&fn(l)===null){t.child=e;break}l=e.sibling,e.sibling=u,u=e,e=l}vc(t,!0,u,null,n);break;case"together":vc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gt(l,t,u){if(l!==null&&(t.dependencies=l.dependencies),au|=t.lanes,(u&t.childLanes)===0)if(l!==null){if(La(l,t,u,!1),(u&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(r(153));if(t.child!==null){for(l=t.child,u=Ut(l,l.pendingProps),t.child=u,u.return=t;l.sibling!==null;)l=l.sibling,u=u.sibling=Ut(l,l.pendingProps),u.return=t;u.sibling=null}return t.child}function yc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Ve(l)))}function Z0(l,t,u){switch(t.tag){case 3:vl(t,t.stateNode.containerInfo),Jt(t,Ol,l.memoizedState.cache),Ca();break;case 27:case 5:Zn(t);break;case 4:vl(t,t.stateNode.containerInfo);break;case 10:Jt(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ft(t),t.flags|=128,null):(u&t.child.childLanes)!==0?Yo(l,t,u):(Ft(t),l=Gt(l,t,u),l!==null?l.sibling:null);Ft(t);break;case 19:var e=(l.flags&128)!==0;if(a=(u&t.childLanes)!==0,a||(La(l,t,u,!1),a=(u&t.childLanes)!==0),e){if(a)return Go(l,t,u);t.flags|=128}if(e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null,e.lastEffect=null),_(_l,_l.current),a)break;return null;case 22:case 23:return t.lanes=0,Uo(l,t,u);case 24:Jt(t,Ol,l.memoizedState.cache)}return Gt(l,t,u)}function Co(l,t,u){if(l!==null)if(l.memoizedProps!==t.pendingProps)Ul=!0;else{if(!yc(l,u)&&(t.flags&128)===0)return Ul=!1,Z0(l,t,u);Ul=(l.flags&131072)!==0}else Ul=!1,al&&(t.flags&1048576)!==0&&ds(t,je,t.index);switch(t.lanes=0,t.tag){case 16:l:{l=t.pendingProps;var a=t.elementType,e=a._init;if(a=e(a._payload),t.type=a,typeof a=="function")pf(a)?(l=Ru(a,l),t.tag=1,t=Ho(null,t,a,l,u)):(t.tag=0,t=cc(null,t,a,l,u));else{if(a!=null){if(e=a.$$typeof,e===wl){t.tag=11,t=Oo(null,t,a,l,u);break l}else if(e===zl){t.tag=14,t=_o(null,t,a,l,u);break l}}throw t=hu(a)||a,Error(r(306,t,""))}}return t;case 0:return cc(l,t,t.type,t.pendingProps,u);case 1:return a=t.type,e=Ru(a,t.pendingProps),Ho(l,t,a,e,u);case 3:l:{if(vl(t,t.stateNode.containerInfo),l===null)throw Error(r(387));a=t.pendingProps;var n=t.memoizedState;e=n.element,Cf(l,t),Ja(t,a,null,u);var f=t.memoizedState;if(a=f.cache,Jt(t,Ol,a),a!==n.cache&&Nf(t,[Ol],u,!0),Ka(),a=f.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=qo(l,t,a,u);break l}else if(a!==e){e=ct(Error(r(424)),t),xa(e),t=qo(l,t,a,u);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(ml=St(l.firstChild),Ql=t,al=!0,Mu=null,At=!0,u=ho(t,null,a,u),t.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ca(),a===e){t=Gt(l,t,u);break l}Hl(l,t,a,u)}t=t.child}return t;case 26:return on(l,t),l===null?(u=Qr(t.type,null,t.pendingProps,null))?t.memoizedState=u:al||(u=t.type,l=t.pendingProps,a=zn(Z.current).createElement(u),a[xl]=t,a[Zl]=l,Yl(a,u,l),Dl(a),t.stateNode=a):t.memoizedState=Qr(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Zn(t),l===null&&al&&(a=t.stateNode=xr(t.type,t.pendingProps,Z.current),Ql=t,At=!0,e=ml,cu(t.type)?(Wc=e,ml=St(a.firstChild)):ml=e),Hl(l,t,t.pendingProps.children,u),on(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&al&&((e=a=ml)&&(a=mv(a,t.type,t.pendingProps,At),a!==null?(t.stateNode=a,Ql=t,ml=St(a.firstChild),At=!1,e=!0):e=!1),e||zu(t)),Zn(t),e=t.type,n=t.pendingProps,f=l!==null?l.memoizedProps:null,a=n.children,Vc(e,n)?a=null:f!==null&&Vc(e,f)&&(t.flags|=32),t.memoizedState!==null&&(e=jf(l,t,Y0,null,null,u),ye._currentValue=e),on(l,t),Hl(l,t,a,u),t.child;case 6:return l===null&&al&&((l=u=ml)&&(u=gv(u,t.pendingProps,At),u!==null?(t.stateNode=u,Ql=t,ml=null,l=!0):l=!1),l||zu(t)),null;case 13:return Yo(l,t,u);case 4:return vl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=fa(t,null,a,u):Hl(l,t,a,u),t.child;case 11:return Oo(l,t,t.type,t.pendingProps,u);case 7:return Hl(l,t,t.pendingProps,u),t.child;case 8:return Hl(l,t,t.pendingProps.children,u),t.child;case 12:return Hl(l,t,t.pendingProps.children,u),t.child;case 10:return a=t.pendingProps,Jt(t,t.type,a.value),Hl(l,t,a.children,u),t.child;case 9:return e=t.type._context,a=t.pendingProps.children,_u(t),e=Ll(e),a=a(e),t.flags|=1,Hl(l,t,a,u),t.child;case 14:return _o(l,t,t.type,t.pendingProps,u);case 15:return Do(l,t,t.type,t.pendingProps,u);case 19:return Go(l,t,u);case 31:return a=t.pendingProps,u=t.mode,a={mode:a.mode,children:a.children},l===null?(u=rn(a,u),u.ref=t.ref,t.child=u,u.return=t,t=u):(u=Ut(l.child,a),u.ref=t.ref,t.child=u,u.return=t,t=u),t;case 22:return Uo(l,t,u);case 24:return _u(t),a=Ll(Ol),l===null?(e=Yf(),e===null&&(e=dl,n=Hf(),e.pooledCache=n,n.refCount++,n!==null&&(e.pooledCacheLanes|=u),e=n),t.memoizedState={parent:a,cache:e},Gf(t),Jt(t,Ol,e)):((l.lanes&u)!==0&&(Cf(l,t),Ja(t,null,null,u),Ka()),e=l.memoizedState,n=t.memoizedState,e.parent!==a?(e={parent:a,cache:a},t.memoizedState=e,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=e),Jt(t,Ol,a)):(a=n.cache,Jt(t,Ol,a),a!==e.cache&&Nf(t,[Ol],u,!0))),Hl(l,t,t.pendingProps.children,u),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ct(l){l.flags|=4}function xo(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Jr(t)){if(t=rt.current,t!==null&&((P&4194048)===P?Tt!==null:(P&62914560)!==P&&(P&536870912)===0||t!==Tt))throw ja=Bf,Es;l.flags|=8192}}function dn(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?hi():536870912,l.lanes|=t,oa|=t)}function Pa(l,t){if(!al)switch(l.tailMode){case"hidden":t=l.tail;for(var u=null;t!==null;)t.alternate!==null&&(u=t),t=t.sibling;u===null?l.tail=null:u.sibling=null;break;case"collapsed":u=l.tail;for(var a=null;u!==null;)u.alternate!==null&&(a=u),u=u.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function hl(l){var t=l.alternate!==null&&l.alternate.child===l.child,u=0,a=0;if(t)for(var e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags&65011712,a|=e.flags&65011712,e.return=l,e=e.sibling;else for(e=l.child;e!==null;)u|=e.lanes|e.childLanes,a|=e.subtreeFlags,a|=e.flags,e.return=l,e=e.sibling;return l.subtreeFlags|=a,l.childLanes=u,t}function j0(l,t,u){var a=t.pendingProps;switch(_f(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hl(t),null;case 1:return hl(t),null;case 3:return u=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),qt(Ol),Zt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(l===null||l.child===null)&&(Ga(t)?Ct(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hs())),hl(t),null;case 26:return u=t.memoizedState,l===null?(Ct(t),u!==null?(hl(t),xo(t,u)):(hl(t),t.flags&=-16777217)):u?u!==l.memoizedState?(Ct(t),hl(t),xo(t,u)):(hl(t),t.flags&=-16777217):(l.memoizedProps!==a&&Ct(t),hl(t),t.flags&=-16777217),null;case 27:Te(t),u=Z.current;var e=t.type;if(l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Ct(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return hl(t),null}l=C.current,Ga(t)?vs(t):(l=xr(e,a,u),t.stateNode=l,Ct(t))}return hl(t),null;case 5:if(Te(t),u=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Ct(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return hl(t),null}if(l=C.current,Ga(t))vs(t);else{switch(e=zn(Z.current),l){case 1:l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":l=e.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":l=e.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":l=e.createElement("div"),l.innerHTML=" + + + +
+ + + diff --git a/dist/samples/react-ui-kit-place-details/docs/index.html b/dist/samples/react-ui-kit-place-details/docs/index.html new file mode 100644 index 00000000..8a893c0d --- /dev/null +++ b/dist/samples/react-ui-kit-place-details/docs/index.html @@ -0,0 +1,37 @@ + + + + + + + + + React - UI Kit Place Details Full + + + + +
+ + + + diff --git a/dist/samples/react-ui-kit-place-details/docs/src/app.js b/dist/samples/react-ui-kit-place-details/docs/src/app.js new file mode 100644 index 00000000..456ace5b --- /dev/null +++ b/dist/samples/react-ui-kit-place-details/docs/src/app.js @@ -0,0 +1,64 @@ +import { jsx as _jsx } from "react/jsx-runtime"; +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{ /* [START maps_react_ui_kit_place_details] */ } +import React from 'react'; +import { createRoot } from 'react-dom/client'; +import { APIProvider, useMapsLibrary } from '@vis.gl/react-google-maps'; +import './styles.css'; +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; +// Renders place details using a place ID. +const PlaceDetails = ({ placeId }) => { + const places = useMapsLibrary('places'); + const containerRef = React.useRef(null); + React.useEffect(() => { + if (!places || !containerRef.current) { + return; + } + // Create the gmp-place-details element. + const placeDetails = document.createElement('gmp-place-details'); + // Create the gmp-place-details-place-request element. + const placeRequest = document.createElement('gmp-place-details-place-request'); + // Set the place on the place request element. + placeRequest.setAttribute('place', placeId); + // Append the place request to the place details element. + placeDetails.appendChild(placeRequest); + // Create and append the content config and its children. + const contentConfig = document.createElement('gmp-place-content-config'); + contentConfig.innerHTML = ` + + + + + + + + + + + + + + + `; + placeDetails.appendChild(contentConfig); + // Append the place details element to the container. + containerRef.current.innerHTML = ''; // Clear previous content + containerRef.current.appendChild(placeDetails); + }, [places, placeId]); + return _jsx("div", { ref: containerRef, className: "place-details-container" }); +}; +const App = () => { + return (_jsx(APIProvider, { apiKey: API_KEY, libraries: ['places'], children: _jsx("div", { className: "places-ui-kit", children: _jsx(PlaceDetails, { placeId: "ChIJ5bx0qiVu5kcRs_dMpI5ttiY" }) }) })); +}; +export default App; +export function renderToDom(container) { + const root = createRoot(container); + root.render(_jsx(React.StrictMode, { children: _jsx(App, {}) })); +} +{ /* [END maps_react_ui_kit_place_details] */ } diff --git a/dist/samples/react-ui-kit-place-details/docs/src/app.tsx b/dist/samples/react-ui-kit-place-details/docs/src/app.tsx new file mode 100644 index 00000000..ea739454 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details/docs/src/app.tsx @@ -0,0 +1,94 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{/* [START maps_react_ui_kit_place_details] */} +import React from 'react'; +import {createRoot} from 'react-dom/client'; +import {APIProvider, useMapsLibrary} from '@vis.gl/react-google-maps'; + +import './styles.css'; + +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; + +type PlaceDetailsProps = { + placeId: string; +}; + +// Renders place details using a place ID. +const PlaceDetails = ({placeId}: PlaceDetailsProps) => { + const places = useMapsLibrary('places'); + const containerRef = React.useRef(null); + + React.useEffect(() => { + if (!places || !containerRef.current) { + return; + } + // Create the gmp-place-details element. + const placeDetails = document.createElement('gmp-place-details'); + + // Create the gmp-place-details-place-request element. + const placeRequest = document.createElement( + 'gmp-place-details-place-request', + ); + + // Set the place on the place request element. + placeRequest.setAttribute('place', placeId); + + // Append the place request to the place details element. + placeDetails.appendChild(placeRequest); + + // Create and append the content config and its children. + const contentConfig = document.createElement('gmp-place-content-config'); + contentConfig.innerHTML = ` + + + + + + + + + + + + + + + `; + placeDetails.appendChild(contentConfig); + + // Append the place details element to the container. + containerRef.current.innerHTML = ''; // Clear previous content + containerRef.current.appendChild(placeDetails); + }, [places, placeId]); + + return
; +}; + +const App = () => { + return ( + +
+ +
+
+ ); +}; + +export default App; + +export function renderToDom(container: HTMLElement) { + const root = createRoot(container); + + root.render( + + + + ); +} + +{/* [END maps_react_ui_kit_place_details] */} \ No newline at end of file diff --git a/dist/samples/react-ui-kit-place-details/docs/src/styles.css b/dist/samples/react-ui-kit-place-details/docs/src/styles.css new file mode 100644 index 00000000..6e8e9af1 --- /dev/null +++ b/dist/samples/react-ui-kit-place-details/docs/src/styles.css @@ -0,0 +1,31 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +/* [START maps_react_ui_kit_place_details] */ +#map { + height: 100%; +} + +gmp-map { + height: 100%; +} + +.widget-container { + background-color: black; + padding: 1rem; + border-radius: 0.5rem; + max-height: calc(100% - 2rem); + overflow: auto; +} + +.place-details-container { + position: relative; + width: 360px; + margin: auto; + margin-top:20px; + max-height: 720px; + overflow: auto; +} +/* [END maps_react_ui_kit_place_details] */ diff --git a/dist/samples/react-ui-kit-search-nearby/dist/assets/index-nAtspyFX.css b/dist/samples/react-ui-kit-search-nearby/dist/assets/index-nAtspyFX.css new file mode 100644 index 00000000..de013d84 --- /dev/null +++ b/dist/samples/react-ui-kit-search-nearby/dist/assets/index-nAtspyFX.css @@ -0,0 +1 @@ +html,body{height:100%;margin:0}body{display:flex;flex-direction:column;font-family:Arial,Helvetica,sans-serif}h1{font-size:large;text-align:center}#app{width:100vw;height:100vh}.places-ui-kit{position:absolute;display:flex;height:100%;width:100%}.map-container{flex-grow:1;height:100%;width:100%}.place-list-wrapper{position:absolute;top:80px;right:40px;width:400px;max-height:500px;overflow-y:auto;z-index:10}.controls{position:absolute;top:40px;right:40px}.type-select{width:400px;height:32px;border:1px solid #000;border-radius:10px;flex-grow:1;padding:0 10px}gmp-place-search{width:100%;margin:0;border-radius:10px;display:block;border:none}gmp-place-details-compact{width:350px;max-height:800px;margin-right:20px;display:none;border:none}@media (max-width: 768px){.places-ui-kit{flex-direction:column}.place-list-wrapper{position:relative;width:100%;top:0;right:0;max-height:40vh}.controls{position:relative;top:0;right:0;width:100%;padding:10px;box-sizing:border-box}.type-select{width:100%}.map-container{height:60vh}}gmp-place-details-compact:after{content:"";position:absolute;bottom:-18px;left:50%;transform:translate(-50%);width:20px;height:20px;background-color:#fff;box-shadow:2px 2px 5px #0003;z-index:1;clip-path:polygon(0% 0%,100% 0%,50% 100%);transform-origin:center center}@media (prefers-color-scheme: dark){gmp-place-details-compact:after{background-color:#131314}} diff --git a/dist/samples/react-ui-kit-search-nearby/dist/assets/index-nD6LiNuL.js b/dist/samples/react-ui-kit-search-nearby/dist/assets/index-nD6LiNuL.js new file mode 100644 index 00000000..4132df9e --- /dev/null +++ b/dist/samples/react-ui-kit-search-nearby/dist/assets/index-nD6LiNuL.js @@ -0,0 +1,49 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const M of document.querySelectorAll('link[rel="modulepreload"]'))o(M);new MutationObserver(M=>{for(const O of M)if(O.type==="childList")for(const N of O.addedNodes)N.tagName==="LINK"&&N.rel==="modulepreload"&&o(N)}).observe(document,{childList:!0,subtree:!0});function g(M){const O={};return M.integrity&&(O.integrity=M.integrity),M.referrerPolicy&&(O.referrerPolicy=M.referrerPolicy),M.crossOrigin==="use-credentials"?O.credentials="include":M.crossOrigin==="anonymous"?O.credentials="omit":O.credentials="same-origin",O}function o(M){if(M.ep)return;M.ep=!0;const O=g(M);fetch(M.href,O)}})();function pd(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var nf={exports:{}},Eu={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fd;function Iv(){if(fd)return Eu;fd=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function g(o,M,O){var N=null;if(O!==void 0&&(N=""+O),M.key!==void 0&&(N=""+M.key),"key"in M){O={};for(var R in M)R!=="key"&&(O[R]=M[R])}else O=M;return M=O.ref,{$$typeof:s,type:o,key:N,ref:M!==void 0?M:null,props:O}}return Eu.Fragment=r,Eu.jsx=g,Eu.jsxs=g,Eu}var sd;function Pv(){return sd||(sd=1,nf.exports=Iv()),nf.exports}var wl=Pv(),cf={exports:{}},W={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var od;function lm(){if(od)return W;od=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),N=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),X=Symbol.iterator;function Y(d){return d===null||typeof d!="object"?null:(d=X&&d[X]||d["@@iterator"],typeof d=="function"?d:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,F={};function nl(d,_,q){this.props=d,this.context=_,this.refs=F,this.updater=q||w}nl.prototype.isReactComponent={},nl.prototype.setState=function(d,_){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,_,"setState")},nl.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function il(){}il.prototype=nl.prototype;function Ol(d,_,q){this.props=d,this.context=_,this.refs=F,this.updater=q||w}var ml=Ol.prototype=new il;ml.constructor=Ol,B(ml,nl.prototype),ml.isPureReactComponent=!0;var pl=Array.isArray,K={H:null,A:null,T:null,S:null,V:null},cl=Object.prototype.hasOwnProperty;function fl(d,_,q,H,j,el){return q=el.ref,{$$typeof:s,type:d,key:_,ref:q!==void 0?q:null,props:el}}function Sl(d,_){return fl(d.type,_,void 0,void 0,void 0,d.props)}function zl(d){return typeof d=="object"&&d!==null&&d.$$typeof===s}function Ul(d){var _={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(q){return _[q]})}var lt=/\/+/g;function Rl(d,_){return typeof d=="object"&&d!==null&&d.key!=null?Ul(""+d.key):_.toString(36)}function ge(){}function Se(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(ge,ge):(d.status="pending",d.then(function(_){d.status==="pending"&&(d.status="fulfilled",d.value=_)},function(_){d.status==="pending"&&(d.status="rejected",d.reason=_)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function Zl(d,_,q,H,j){var el=typeof d;(el==="undefined"||el==="boolean")&&(d=null);var k=!1;if(d===null)k=!0;else switch(el){case"bigint":case"string":case"number":k=!0;break;case"object":switch(d.$$typeof){case s:case r:k=!0;break;case D:return k=d._init,Zl(k(d._payload),_,q,H,j)}}if(k)return j=j(d),k=H===""?"."+Rl(d,0):H,pl(j)?(q="",k!=null&&(q=k.replace(lt,"$&/")+"/"),Zl(j,_,q,"",function(Jt){return Jt})):j!=null&&(zl(j)&&(j=Sl(j,q+(j.key==null||d&&d.key===j.key?"":(""+j.key).replace(lt,"$&/")+"/")+k)),_.push(j)),1;k=0;var tt=H===""?".":H+":";if(pl(d))for(var bl=0;bl>>1,d=p[hl];if(0>>1;hl<_;){var q=2*(hl+1)-1,H=p[q],j=q+1,el=p[j];if(0>M(H,V))jM(el,H)?(p[hl]=el,p[j]=V,hl=j):(p[hl]=H,p[q]=V,hl=q);else if(jM(el,V))p[hl]=el,p[j]=V,hl=j;else break l}}return C}function M(p,C){var V=p.sortIndex-C.sortIndex;return V!==0?V:p.id-C.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var O=performance;s.unstable_now=function(){return O.now()}}else{var N=Date,R=N.now();s.unstable_now=function(){return N.now()-R}}var U=[],E=[],D=1,X=null,Y=3,w=!1,B=!1,F=!1,nl=!1,il=typeof setTimeout=="function"?setTimeout:null,Ol=typeof clearTimeout=="function"?clearTimeout:null,ml=typeof setImmediate<"u"?setImmediate:null;function pl(p){for(var C=g(E);C!==null;){if(C.callback===null)o(E);else if(C.startTime<=p)o(E),C.sortIndex=C.expirationTime,r(U,C);else break;C=g(E)}}function K(p){if(F=!1,pl(p),!B)if(g(U)!==null)B=!0,cl||(cl=!0,Rl());else{var C=g(E);C!==null&&Zl(K,C.startTime-p)}}var cl=!1,fl=-1,Sl=5,zl=-1;function Ul(){return nl?!0:!(s.unstable_now()-zlp&&Ul());){var hl=X.callback;if(typeof hl=="function"){X.callback=null,Y=X.priorityLevel;var d=hl(X.expirationTime<=p);if(p=s.unstable_now(),typeof d=="function"){X.callback=d,pl(p),C=!0;break t}X===g(U)&&o(U),pl(p)}else o(U);X=g(U)}if(X!==null)C=!0;else{var _=g(E);_!==null&&Zl(K,_.startTime-p),C=!1}}break l}finally{X=null,Y=V,w=!1}C=void 0}}finally{C?Rl():cl=!1}}}var Rl;if(typeof ml=="function")Rl=function(){ml(lt)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,Se=ge.port2;ge.port1.onmessage=lt,Rl=function(){Se.postMessage(null)}}else Rl=function(){il(lt,0)};function Zl(p,C){fl=il(function(){p(s.unstable_now())},C)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(p){p.callback=null},s.unstable_forceFrameRate=function(p){0>p||125hl?(p.sortIndex=V,r(E,p),g(U)===null&&p===g(E)&&(F?(Ol(fl),fl=-1):F=!0,Zl(K,V-hl))):(p.sortIndex=d,r(U,p),B||w||(B=!0,cl||(cl=!0,Rl()))),p},s.unstable_shouldYield=Ul,s.unstable_wrapCallback=function(p){var C=Y;return function(){var V=Y;Y=C;try{return p.apply(this,arguments)}finally{Y=V}}}})(of)),of}var vd;function em(){return vd||(vd=1,sf.exports=tm()),sf.exports}var rf={exports:{}},Jl={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var md;function am(){if(md)return Jl;md=1;var s=vf();function r(U){var E="https://react.dev/errors/"+U;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),rf.exports=am(),rf.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var yd;function um(){if(yd)return Tu;yd=1;var s=em(),r=vf(),g=Ad();function o(l){var t="https://react.dev/errors/"+l;if(1d||(l.current=hl[d],hl[d]=null,d--)}function H(l,t){d++,hl[d]=l.current,l.current=t}var j=_(null),el=_(null),k=_(null),tt=_(null);function bl(l,t){switch(H(k,t),H(el,l),H(j,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Yr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Yr(t),l=xr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}q(j),H(j,l)}function Jt(){q(j),q(el),q(k)}function Vn(l){l.memoizedState!==null&&H(tt,l);var t=j.current,e=xr(t,l.type);t!==e&&(H(el,l),H(j,e))}function Mu(l){el.current===l&&(q(j),q(el)),tt.current===l&&(q(tt),hu._currentValue=V)}var Kn=Object.prototype.hasOwnProperty,Jn=s.unstable_scheduleCallback,wn=s.unstable_cancelCallback,Rd=s.unstable_shouldYield,Nd=s.unstable_requestPaint,At=s.unstable_now,Hd=s.unstable_getCurrentPriorityLevel,hf=s.unstable_ImmediatePriority,yf=s.unstable_UserBlockingPriority,Ou=s.unstable_NormalPriority,Cd=s.unstable_LowPriority,gf=s.unstable_IdlePriority,qd=s.log,Bd=s.unstable_setDisableYieldValue,Aa=null,et=null;function wt(l){if(typeof qd=="function"&&Bd(l),et&&typeof et.setStrictMode=="function")try{et.setStrictMode(Aa,l)}catch{}}var at=Math.clz32?Math.clz32:Ld,Yd=Math.log,xd=Math.LN2;function Ld(l){return l>>>=0,l===0?32:31-(Yd(l)/xd|0)|0}var zu=256,_u=4194304;function be(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Du(l,t,e){var a=l.pendingLanes;if(a===0)return 0;var u=0,n=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?u=be(a):(i&=c,i!==0?u=be(i):e||(e=c&~l,e!==0&&(u=be(e))))):(c=a&~n,c!==0?u=be(c):i!==0?u=be(i):e||(e=a&~l,e!==0&&(u=be(e)))),u===0?0:t!==0&&t!==u&&(t&n)===0&&(n=u&-u,e=t&-t,n>=e||n===32&&(e&4194048)!==0)?t:u}function Ma(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Gd(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sf(){var l=zu;return zu<<=1,(zu&4194048)===0&&(zu=256),l}function bf(){var l=_u;return _u<<=1,(_u&62914560)===0&&(_u=4194304),l}function kn(l){for(var t=[],e=0;31>e;e++)t.push(l);return t}function Oa(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Xd(l,t,e,a,u,n){var i=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var c=l.entanglements,f=l.expirationTimes,y=l.hiddenUpdates;for(e=i&~e;0)":-1u||f[a]!==y[u]){var T=` +`+f[a].replace(" at new "," at ");return l.displayName&&T.includes("")&&(T=T.replace("",l.displayName)),T}while(1<=a&&0<=u);break}}}finally{li=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?Qe(e):""}function Jd(l){switch(l.tag){case 26:case 27:case 5:return Qe(l.type);case 16:return Qe("Lazy");case 13:return Qe("Suspense");case 19:return Qe("SuspenseList");case 0:case 15:return ti(l.type,!1);case 11:return ti(l.type.render,!1);case 1:return ti(l.type,!0);case 31:return Qe("Activity");default:return""}}function Uf(l){try{var t="";do t+=Jd(l),l=l.return;while(l);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}function rt(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Rf(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wd(l){var t=Rf(l)?"checked":"value",e=Object.getOwnPropertyDescriptor(l.constructor.prototype,t),a=""+l[t];if(!l.hasOwnProperty(t)&&typeof e<"u"&&typeof e.get=="function"&&typeof e.set=="function"){var u=e.get,n=e.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return u.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(l,t,{enumerable:e.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function Nu(l){l._valueTracker||(l._valueTracker=wd(l))}function Nf(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var e=t.getValue(),a="";return l&&(a=Rf(l)?l.checked?"true":"false":l.value),l=a,l!==e?(t.setValue(l),!0):!1}function Hu(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var kd=/[\n"\\]/g;function dt(l){return l.replace(kd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ei(l,t,e,a,u,n,i,c){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+rt(t)):l.value!==""+rt(t)&&(l.value=""+rt(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?ai(l,i,rt(t)):e!=null?ai(l,i,rt(e)):a!=null&&l.removeAttribute("value"),u==null&&n!=null&&(l.defaultChecked=!!n),u!=null&&(l.checked=u&&typeof u!="function"&&typeof u!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+rt(c):l.removeAttribute("name")}function Hf(l,t,e,a,u,n,i,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||e!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;e=e!=null?""+rt(e):"",t=t!=null?""+rt(t):e,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i)}function ai(l,t,e){t==="number"&&Hu(l.ownerDocument)===l||l.defaultValue===""+e||(l.defaultValue=""+e)}function Ze(l,t,e,a){if(l=l.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fi=!1;if(Nt)try{var Ua={};Object.defineProperty(Ua,"passive",{get:function(){fi=!0}}),window.addEventListener("test",Ua,Ua),window.removeEventListener("test",Ua,Ua)}catch{fi=!1}var Wt=null,si=null,qu=null;function Gf(){if(qu)return qu;var l,t=si,e=t.length,a,u="value"in Wt?Wt.value:Wt.textContent,n=u.length;for(l=0;l=Ha),Kf=" ",Jf=!1;function wf(l,t){switch(l){case"keyup":return p0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kf(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var we=!1;function M0(l,t){switch(l){case"compositionend":return kf(t);case"keypress":return t.which!==32?null:(Jf=!0,Kf);case"textInput":return l=t.data,l===Kf&&Jf?null:l;default:return null}}function O0(l,t){if(we)return l==="compositionend"||!mi&&wf(l,t)?(l=Gf(),qu=si=Wt=null,we=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:e,offset:t-l};l=a}l:{for(;e;){if(e.nextSibling){e=e.nextSibling;break l}e=e.parentNode}e=void 0}e=es(e)}}function us(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?us(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function ns(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Hu(l.document);t instanceof l.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)l=t.contentWindow;else break;t=Hu(l.document)}return t}function gi(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var C0=Nt&&"documentMode"in document&&11>=document.documentMode,ke=null,Si=null,Ya=null,bi=!1;function is(l,t,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;bi||ke==null||ke!==Hu(a)||(a=ke,"selectionStart"in a&&gi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ya&&Ba(Ya,a)||(Ya=a,a=On(Si,"onSelect"),0>=i,u-=i,Ct=1<<32-at(t)+u|e<n?n:8;var i=p.T,c={};p.T=c,uc(l,!1,t,e);try{var f=u(),y=p.S;if(y!==null&&y(c,f),f!==null&&typeof f=="object"&&typeof f.then=="function"){var T=Q0(f,a);Fa(l,t,T,st(l))}else Fa(l,t,a,st(l))}catch(z){Fa(l,t,{then:function(){},status:"rejected",reason:z},st())}finally{C.p=n,p.T=i}}function w0(){}function ec(l,t,e,a){if(l.tag!==5)throw Error(o(476));var u=co(l).queue;io(l,u,t,V,e===null?w0:function(){return fo(l),e(a)})}function co(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xt,lastRenderedState:V},next:null};var e={};return t.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xt,lastRenderedState:e},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function fo(l){var t=co(l).next.queue;Fa(l,t,{},st())}function ac(){return Kl(hu)}function so(){return Hl().memoizedState}function oo(){return Hl().memoizedState}function k0(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=st();l=It(e);var a=Pt(t,l,e);a!==null&&(ot(a,t,e),Ka(a,t,e)),t={cache:Ci()},l.payload=t;return}t=t.return}}function W0(l,t,e){var a=st();e={lane:a,revertLane:0,action:e,hasEagerState:!1,eagerState:null,next:null},un(l)?vo(t,e):(e=Ai(l,t,e,a),e!==null&&(ot(e,l,a),mo(e,t,a)))}function ro(l,t,e){var a=st();Fa(l,t,e,a)}function Fa(l,t,e,a){var u={lane:a,revertLane:0,action:e,hasEagerState:!1,eagerState:null,next:null};if(un(l))vo(t,u);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,c=n(i,e);if(u.hasEagerState=!0,u.eagerState=c,ut(c,i))return ju(l,t,u,0),gl===null&&Xu(),!1}catch{}finally{}if(e=Ai(l,t,u,a),e!==null)return ot(e,l,a),mo(e,t,a),!0}return!1}function uc(l,t,e,a){if(a={lane:2,revertLane:Yc(),action:a,hasEagerState:!1,eagerState:null,next:null},un(l)){if(t)throw Error(o(479))}else t=Ai(l,e,a,2),t!==null&&ot(t,l,2)}function un(l){var t=l.alternate;return l===$||t!==null&&t===$}function vo(l,t){ua=Iu=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function mo(l,t,e){if((e&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Tf(l,e)}}var nn={readContext:Kl,use:ln,useCallback:_l,useContext:_l,useEffect:_l,useImperativeHandle:_l,useLayoutEffect:_l,useInsertionEffect:_l,useMemo:_l,useReducer:_l,useRef:_l,useState:_l,useDebugValue:_l,useDeferredValue:_l,useTransition:_l,useSyncExternalStore:_l,useId:_l,useHostTransitionStatus:_l,useFormState:_l,useActionState:_l,useOptimistic:_l,useMemoCache:_l,useCacheRefresh:_l},ho={readContext:Kl,use:ln,useCallback:function(l,t){return Fl().memoizedState=[l,t===void 0?null:t],l},useContext:Kl,useEffect:Fs,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,an(4194308,4,to.bind(null,t,l),e)},useLayoutEffect:function(l,t){return an(4194308,4,l,t)},useInsertionEffect:function(l,t){an(4,2,l,t)},useMemo:function(l,t){var e=Fl();t=t===void 0?null:t;var a=l();if(He){wt(!0);try{l()}finally{wt(!1)}}return e.memoizedState=[a,t],a},useReducer:function(l,t,e){var a=Fl();if(e!==void 0){var u=e(t);if(He){wt(!0);try{e(t)}finally{wt(!1)}}}else u=t;return a.memoizedState=a.baseState=u,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},a.queue=l,l=l.dispatch=W0.bind(null,$,l),[a.memoizedState,l]},useRef:function(l){var t=Fl();return l={current:l},t.memoizedState=l},useState:function(l){l=Ii(l);var t=l.queue,e=ro.bind(null,$,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:lc,useDeferredValue:function(l,t){var e=Fl();return tc(e,l,t)},useTransition:function(){var l=Ii(!1);return l=io.bind(null,$,l.queue,!0,!1),Fl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var a=$,u=Fl();if(ul){if(e===void 0)throw Error(o(407));e=e()}else{if(e=t(),gl===null)throw Error(o(349));(tl&124)!==0||Bs(a,t,e)}u.memoizedState=e;var n={value:e,getSnapshot:t};return u.queue=n,Fs(xs.bind(null,a,n,l),[l]),a.flags|=2048,ia(9,en(),Ys.bind(null,a,n,e,t),null),e},useId:function(){var l=Fl(),t=gl.identifierPrefix;if(ul){var e=qt,a=Ct;e=(a&~(1<<32-at(a)-1)).toString(32)+e,t="«"+t+"R"+e,e=Pu++,0Z?(Gl=G,G=null):Gl=G.sibling;var al=S(m,G,h[Z],A);if(al===null){G===null&&(G=Gl);break}l&&G&&al.alternate===null&&t(m,G),v=n(al,v,Z),I===null?x=al:I.sibling=al,I=al,G=Gl}if(Z===h.length)return e(m,G),ul&&ze(m,Z),x;if(G===null){for(;ZZ?(Gl=G,G=null):Gl=G.sibling;var ye=S(m,G,al.value,A);if(ye===null){G===null&&(G=Gl);break}l&&G&&ye.alternate===null&&t(m,G),v=n(ye,v,Z),I===null?x=ye:I.sibling=ye,I=ye,G=Gl}if(al.done)return e(m,G),ul&&ze(m,Z),x;if(G===null){for(;!al.done;Z++,al=h.next())al=z(m,al.value,A),al!==null&&(v=n(al,v,Z),I===null?x=al:I.sibling=al,I=al);return ul&&ze(m,Z),x}for(G=a(G);!al.done;Z++,al=h.next())al=b(G,m,Z,al.value,A),al!==null&&(l&&al.alternate!==null&&G.delete(al.key===null?Z:al.key),v=n(al,v,Z),I===null?x=al:I.sibling=al,I=al);return l&&G.forEach(function(Fv){return t(m,Fv)}),ul&&ze(m,Z),x}function vl(m,v,h,A){if(typeof h=="object"&&h!==null&&h.type===B&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Y:l:{for(var x=h.key;v!==null;){if(v.key===x){if(x=h.type,x===B){if(v.tag===7){e(m,v.sibling),A=u(v,h.props.children),A.return=m,m=A;break l}}else if(v.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Sl&&go(x)===v.type){e(m,v.sibling),A=u(v,h.props),Pa(A,h),A.return=m,m=A;break l}e(m,v);break}else t(m,v);v=v.sibling}h.type===B?(A=Me(h.props.children,m.mode,A,h.key),A.return=m,m=A):(A=Zu(h.type,h.key,h.props,null,m.mode,A),Pa(A,h),A.return=m,m=A)}return i(m);case w:l:{for(x=h.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===h.containerInfo&&v.stateNode.implementation===h.implementation){e(m,v.sibling),A=u(v,h.children||[]),A.return=m,m=A;break l}else{e(m,v);break}else t(m,v);v=v.sibling}A=zi(h,m.mode,A),A.return=m,m=A}return i(m);case Sl:return x=h._init,h=x(h._payload),vl(m,v,h,A)}if(Zl(h))return J(m,v,h,A);if(Rl(h)){if(x=Rl(h),typeof x!="function")throw Error(o(150));return h=x.call(h),Q(m,v,h,A)}if(typeof h.then=="function")return vl(m,v,cn(h),A);if(h.$$typeof===ml)return vl(m,v,wu(m,h),A);fn(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint"?(h=""+h,v!==null&&v.tag===6?(e(m,v.sibling),A=u(v,h),A.return=m,m=A):(e(m,v),A=Oi(h,m.mode,A),A.return=m,m=A),i(m)):e(m,v)}return function(m,v,h,A){try{Ia=0;var x=vl(m,v,h,A);return ca=null,x}catch(G){if(G===Za||G===Wu)throw G;var I=nt(29,G,null,m.mode);return I.lanes=A,I.return=m,I}finally{}}}var fa=So(!0),bo=So(!1),gt=_(null),Ot=null;function te(l){var t=l.alternate;H(ql,ql.current&1),H(gt,l),Ot===null&&(t===null||aa.current!==null||t.memoizedState!==null)&&(Ot=l)}function Eo(l){if(l.tag===22){if(H(ql,ql.current),H(gt,l),Ot===null){var t=l.alternate;t!==null&&t.memoizedState!==null&&(Ot=l)}}else ee()}function ee(){H(ql,ql.current),H(gt,gt.current)}function Lt(l){q(gt),Ot===l&&(Ot=null),q(ql)}var ql=_(0);function sn(l){for(var t=l;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||e.data==="$?"||kc(e)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function nc(l,t,e,a){t=l.memoizedState,e=e(a,t),e=e==null?t:D({},t,e),l.memoizedState=e,l.lanes===0&&(l.updateQueue.baseState=e)}var ic={enqueueSetState:function(l,t,e){l=l._reactInternals;var a=st(),u=It(a);u.payload=t,e!=null&&(u.callback=e),t=Pt(l,u,a),t!==null&&(ot(t,l,a),Ka(t,l,a))},enqueueReplaceState:function(l,t,e){l=l._reactInternals;var a=st(),u=It(a);u.tag=1,u.payload=t,e!=null&&(u.callback=e),t=Pt(l,u,a),t!==null&&(ot(t,l,a),Ka(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var e=st(),a=It(e);a.tag=2,t!=null&&(a.callback=t),t=Pt(l,a,e),t!==null&&(ot(t,l,e),Ka(t,l,e))}};function To(l,t,e,a,u,n,i){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,n,i):t.prototype&&t.prototype.isPureReactComponent?!Ba(e,a)||!Ba(u,n):!0}function po(l,t,e,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(e,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(e,a),t.state!==l&&ic.enqueueReplaceState(t,t.state,null)}function Ce(l,t){var e=t;if("ref"in t){e={};for(var a in t)a!=="ref"&&(e[a]=t[a])}if(l=l.defaultProps){e===t&&(e=D({},e));for(var u in l)e[u]===void 0&&(e[u]=l[u])}return e}var on=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function Ao(l){on(l)}function Mo(l){console.error(l)}function Oo(l){on(l)}function rn(l,t){try{var e=l.onUncaughtError;e(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function zo(l,t,e){try{var a=l.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function cc(l,t,e){return e=It(e),e.tag=3,e.payload={element:null},e.callback=function(){rn(l,t)},e}function _o(l){return l=It(l),l.tag=3,l}function Do(l,t,e,a){var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var n=a.value;l.payload=function(){return u(n)},l.callback=function(){zo(t,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(l.callback=function(){zo(t,e,a),typeof u!="function"&&(fe===null?fe=new Set([this]):fe.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function F0(l,t,e,a,u){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=e.alternate,t!==null&&Xa(t,e,u,!0),e=gt.current,e!==null){switch(e.tag){case 13:return Ot===null?Nc():e.alternate===null&&Ml===0&&(Ml=3),e.flags&=-257,e.flags|=65536,e.lanes=u,a===Yi?e.flags|=16384:(t=e.updateQueue,t===null?e.updateQueue=new Set([a]):t.add(a),Cc(l,a,u)),!1;case 22:return e.flags|=65536,a===Yi?e.flags|=16384:(t=e.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=t):(e=t.retryQueue,e===null?t.retryQueue=new Set([a]):e.add(a)),Cc(l,a,u)),!1}throw Error(o(435,e.tag))}return Cc(l,a,u),Nc(),!1}if(ul)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Ui&&(l=Error(o(422),{cause:a}),Ga(vt(l,e)))):(a!==Ui&&(t=Error(o(423),{cause:a}),Ga(vt(t,e))),l=l.current.alternate,l.flags|=65536,u&=-u,l.lanes|=u,a=vt(a,e),u=cc(l.stateNode,a,u),Gi(l,u),Ml!==4&&(Ml=2)),!1;var n=Error(o(520),{cause:a});if(n=vt(n,e),iu===null?iu=[n]:iu.push(n),Ml!==4&&(Ml=2),t===null)return!0;a=vt(a,e),e=t;do{switch(e.tag){case 3:return e.flags|=65536,l=u&-u,e.lanes|=l,l=cc(e.stateNode,a,l),Gi(e,l),!1;case 1:if(t=e.type,n=e.stateNode,(e.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(fe===null||!fe.has(n))))return e.flags|=65536,u&=-u,e.lanes|=u,u=_o(u),Do(u,l,e,a),Gi(e,u),!1}e=e.return}while(e!==null);return!1}var Uo=Error(o(461)),xl=!1;function Xl(l,t,e,a){t.child=l===null?bo(t,null,e,a):fa(t,l.child,e,a)}function Ro(l,t,e,a,u){e=e.render;var n=t.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Re(t),a=Vi(l,t,e,i,n,u),c=Ki(),l!==null&&!xl?(Ji(l,t,u),Gt(l,t,u)):(ul&&c&&_i(t),t.flags|=1,Xl(l,t,a,u),t.child)}function No(l,t,e,a,u){if(l===null){var n=e.type;return typeof n=="function"&&!Mi(n)&&n.defaultProps===void 0&&e.compare===null?(t.tag=15,t.type=n,Ho(l,t,n,a,u)):(l=Zu(e.type,null,a,t,t.mode,u),l.ref=t.ref,l.return=t,t.child=l)}if(n=l.child,!hc(l,u)){var i=n.memoizedProps;if(e=e.compare,e=e!==null?e:Ba,e(i,a)&&l.ref===t.ref)return Gt(l,t,u)}return t.flags|=1,l=Ht(n,a),l.ref=t.ref,l.return=t,t.child=l}function Ho(l,t,e,a,u){if(l!==null){var n=l.memoizedProps;if(Ba(n,a)&&l.ref===t.ref)if(xl=!1,t.pendingProps=a=n,hc(l,u))(l.flags&131072)!==0&&(xl=!0);else return t.lanes=l.lanes,Gt(l,t,u)}return fc(l,t,e,a,u)}function Co(l,t,e){var a=t.pendingProps,u=a.children,n=l!==null?l.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=n!==null?n.baseLanes|e:e,l!==null){for(u=t.child=l.child,n=0;u!==null;)n=n|u.lanes|u.childLanes,u=u.sibling;t.childLanes=n&~a}else t.childLanes=0,t.child=null;return qo(l,t,a,e)}if((e&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&ku(t,n!==null?n.cachePool:null),n!==null?Ns(t,n):ji(),Eo(t);else return t.lanes=t.childLanes=536870912,qo(l,t,n!==null?n.baseLanes|e:e,e)}else n!==null?(ku(t,n.cachePool),Ns(t,n),ee(),t.memoizedState=null):(l!==null&&ku(t,null),ji(),ee());return Xl(l,t,u,e),t.child}function qo(l,t,e,a){var u=Bi();return u=u===null?null:{parent:Cl._currentValue,pool:u},t.memoizedState={baseLanes:e,cachePool:u},l!==null&&ku(t,null),ji(),Eo(t),l!==null&&Xa(l,t,a,!0),null}function dn(l,t){var e=t.ref;if(e===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(o(284));(l===null||l.ref!==e)&&(t.flags|=4194816)}}function fc(l,t,e,a,u){return Re(t),e=Vi(l,t,e,a,void 0,u),a=Ki(),l!==null&&!xl?(Ji(l,t,u),Gt(l,t,u)):(ul&&a&&_i(t),t.flags|=1,Xl(l,t,e,u),t.child)}function Bo(l,t,e,a,u,n){return Re(t),t.updateQueue=null,e=Cs(t,a,e,u),Hs(l),a=Ki(),l!==null&&!xl?(Ji(l,t,n),Gt(l,t,n)):(ul&&a&&_i(t),t.flags|=1,Xl(l,t,e,n),t.child)}function Yo(l,t,e,a,u){if(Re(t),t.stateNode===null){var n=Ie,i=e.contextType;typeof i=="object"&&i!==null&&(n=Kl(i)),n=new e(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=ic,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},xi(t),i=e.contextType,n.context=typeof i=="object"&&i!==null?Kl(i):Ie,n.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(nc(t,e,i,a),n.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&ic.enqueueReplaceState(n,n.state,null),wa(t,a,n,u),Ja(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,f=Ce(e,c);n.props=f;var y=n.context,T=e.contextType;i=Ie,typeof T=="object"&&T!==null&&(i=Kl(T));var z=e.getDerivedStateFromProps;T=typeof z=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,T||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||y!==i)&&po(t,n,a,i),Ft=!1;var S=t.memoizedState;n.state=S,wa(t,a,n,u),Ja(),y=t.memoizedState,c||S!==y||Ft?(typeof z=="function"&&(nc(t,e,z,a),y=t.memoizedState),(f=Ft||To(t,e,f,a,S,y,i))?(T||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=y),n.props=a,n.state=y,n.context=i,a=f):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,Li(l,t),i=t.memoizedProps,T=Ce(e,i),n.props=T,z=t.pendingProps,S=n.context,y=e.contextType,f=Ie,typeof y=="object"&&y!==null&&(f=Kl(y)),c=e.getDerivedStateFromProps,(y=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==z||S!==f)&&po(t,n,a,f),Ft=!1,S=t.memoizedState,n.state=S,wa(t,a,n,u),Ja();var b=t.memoizedState;i!==z||S!==b||Ft||l!==null&&l.dependencies!==null&&Ju(l.dependencies)?(typeof c=="function"&&(nc(t,e,c,a),b=t.memoizedState),(T=Ft||To(t,e,T,a,S,b,f)||l!==null&&l.dependencies!==null&&Ju(l.dependencies))?(y||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,b,f),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,b,f)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&S===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&S===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=b),n.props=a,n.state=b,n.context=f,a=T):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&S===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&S===l.memoizedState||(t.flags|=1024),a=!1)}return n=a,dn(l,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,l!==null&&a?(t.child=fa(t,l.child,null,u),t.child=fa(t,null,e,u)):Xl(l,t,e,u),t.memoizedState=n.state,l=t.child):l=Gt(l,t,u),l}function xo(l,t,e,a){return La(),t.flags|=256,Xl(l,t,e,a),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oc(l){return{baseLanes:l,cachePool:As()}}function rc(l,t,e){return l=l!==null?l.childLanes&~e:0,t&&(l|=St),l}function Lo(l,t,e){var a=t.pendingProps,u=!1,n=(t.flags&128)!==0,i;if((i=n)||(i=l!==null&&l.memoizedState===null?!1:(ql.current&2)!==0),i&&(u=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,l===null){if(ul){if(u?te(t):ee(),ul){var c=Al,f;if(f=c){l:{for(f=c,c=Mt;f.nodeType!==8;){if(!c){c=null;break l}if(f=pt(f.nextSibling),f===null){c=null;break l}}c=f}c!==null?(t.memoizedState={dehydrated:c,treeContext:Oe!==null?{id:Ct,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},f=nt(18,null,null,0),f.stateNode=c,f.return=t,t.child=f,kl=t,Al=null,f=!0):f=!1}f||De(t)}if(c=t.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return kc(c)?t.lanes=32:t.lanes=536870912,null;Lt(t)}return c=a.children,a=a.fallback,u?(ee(),u=t.mode,c=vn({mode:"hidden",children:c},u),a=Me(a,u,e,null),c.return=t,a.return=t,c.sibling=a,t.child=c,u=t.child,u.memoizedState=oc(e),u.childLanes=rc(l,i,e),t.memoizedState=sc,a):(te(t),dc(t,c))}if(f=l.memoizedState,f!==null&&(c=f.dehydrated,c!==null)){if(n)t.flags&256?(te(t),t.flags&=-257,t=vc(l,t,e)):t.memoizedState!==null?(ee(),t.child=l.child,t.flags|=128,t=null):(ee(),u=a.fallback,c=t.mode,a=vn({mode:"visible",children:a.children},c),u=Me(u,c,e,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,fa(t,l.child,null,e),a=t.child,a.memoizedState=oc(e),a.childLanes=rc(l,i,e),t.memoizedState=sc,t=u);else if(te(t),kc(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var y=i.dgst;i=y,a=Error(o(419)),a.stack="",a.digest=i,Ga({value:a,source:null,stack:null}),t=vc(l,t,e)}else if(xl||Xa(l,t,e,!1),i=(e&l.childLanes)!==0,xl||i){if(i=gl,i!==null&&(a=e&-e,a=(a&42)!==0?1:Wn(a),a=(a&(i.suspendedLanes|e))!==0?0:a,a!==0&&a!==f.retryLane))throw f.retryLane=a,Fe(l,a),ot(i,l,a),Uo;c.data==="$?"||Nc(),t=vc(l,t,e)}else c.data==="$?"?(t.flags|=192,t.child=l.child,t=null):(l=f.treeContext,Al=pt(c.nextSibling),kl=t,ul=!0,_e=null,Mt=!1,l!==null&&(ht[yt++]=Ct,ht[yt++]=qt,ht[yt++]=Oe,Ct=l.id,qt=l.overflow,Oe=t),t=dc(t,a.children),t.flags|=4096);return t}return u?(ee(),u=a.fallback,c=t.mode,f=l.child,y=f.sibling,a=Ht(f,{mode:"hidden",children:a.children}),a.subtreeFlags=f.subtreeFlags&65011712,y!==null?u=Ht(y,u):(u=Me(u,c,e,null),u.flags|=2),u.return=t,a.return=t,a.sibling=u,t.child=a,a=u,u=t.child,c=l.child.memoizedState,c===null?c=oc(e):(f=c.cachePool,f!==null?(y=Cl._currentValue,f=f.parent!==y?{parent:y,pool:y}:f):f=As(),c={baseLanes:c.baseLanes|e,cachePool:f}),u.memoizedState=c,u.childLanes=rc(l,i,e),t.memoizedState=sc,a):(te(t),e=l.child,l=e.sibling,e=Ht(e,{mode:"visible",children:a.children}),e.return=t,e.sibling=null,l!==null&&(i=t.deletions,i===null?(t.deletions=[l],t.flags|=16):i.push(l)),t.child=e,t.memoizedState=null,e)}function dc(l,t){return t=vn({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function vn(l,t){return l=nt(22,l,null,t),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function vc(l,t,e){return fa(t,l.child,null,e),l=dc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Go(l,t,e){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Ni(l.return,t,e)}function mc(l,t,e,a,u){var n=l.memoizedState;n===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:u}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=e,n.tailMode=u)}function Xo(l,t,e){var a=t.pendingProps,u=a.revealOrder,n=a.tail;if(Xl(l,t,a.children,e),a=ql.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Go(l,e,t);else if(l.tag===19)Go(l,e,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}a&=1}switch(H(ql,a),u){case"forwards":for(e=t.child,u=null;e!==null;)l=e.alternate,l!==null&&sn(l)===null&&(u=e),e=e.sibling;e=u,e===null?(u=t.child,t.child=null):(u=e.sibling,e.sibling=null),mc(t,!1,u,e,n);break;case"backwards":for(e=null,u=t.child,t.child=null;u!==null;){if(l=u.alternate,l!==null&&sn(l)===null){t.child=u;break}l=u.sibling,u.sibling=e,e=u,u=l}mc(t,!0,e,null,n);break;case"together":mc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gt(l,t,e){if(l!==null&&(t.dependencies=l.dependencies),ce|=t.lanes,(e&t.childLanes)===0)if(l!==null){if(Xa(l,t,e,!1),(e&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(o(153));if(t.child!==null){for(l=t.child,e=Ht(l,l.pendingProps),t.child=e,e.return=t;l.sibling!==null;)l=l.sibling,e=e.sibling=Ht(l,l.pendingProps),e.return=t;e.sibling=null}return t.child}function hc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Ju(l)))}function I0(l,t,e){switch(t.tag){case 3:bl(t,t.stateNode.containerInfo),$t(t,Cl,l.memoizedState.cache),La();break;case 27:case 5:Vn(t);break;case 4:bl(t,t.stateNode.containerInfo);break;case 10:$t(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(te(t),t.flags|=128,null):(e&t.child.childLanes)!==0?Lo(l,t,e):(te(t),l=Gt(l,t,e),l!==null?l.sibling:null);te(t);break;case 19:var u=(l.flags&128)!==0;if(a=(e&t.childLanes)!==0,a||(Xa(l,t,e,!1),a=(e&t.childLanes)!==0),u){if(a)return Xo(l,t,e);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),H(ql,ql.current),a)break;return null;case 22:case 23:return t.lanes=0,Co(l,t,e);case 24:$t(t,Cl,l.memoizedState.cache)}return Gt(l,t,e)}function jo(l,t,e){if(l!==null)if(l.memoizedProps!==t.pendingProps)xl=!0;else{if(!hc(l,e)&&(t.flags&128)===0)return xl=!1,I0(l,t,e);xl=(l.flags&131072)!==0}else xl=!1,ul&&(t.flags&1048576)!==0&&ys(t,Ku,t.index);switch(t.lanes=0,t.tag){case 16:l:{l=t.pendingProps;var a=t.elementType,u=a._init;if(a=u(a._payload),t.type=a,typeof a=="function")Mi(a)?(l=Ce(a,l),t.tag=1,t=Yo(null,t,a,l,e)):(t.tag=0,t=fc(null,t,a,l,e));else{if(a!=null){if(u=a.$$typeof,u===pl){t.tag=11,t=Ro(null,t,a,l,e);break l}else if(u===fl){t.tag=14,t=No(null,t,a,l,e);break l}}throw t=Se(a)||a,Error(o(306,t,""))}}return t;case 0:return fc(l,t,t.type,t.pendingProps,e);case 1:return a=t.type,u=Ce(a,t.pendingProps),Yo(l,t,a,u,e);case 3:l:{if(bl(t,t.stateNode.containerInfo),l===null)throw Error(o(387));a=t.pendingProps;var n=t.memoizedState;u=n.element,Li(l,t),wa(t,a,null,e);var i=t.memoizedState;if(a=i.cache,$t(t,Cl,a),a!==n.cache&&Hi(t,[Cl],e,!0),Ja(),a=i.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=xo(l,t,a,e);break l}else if(a!==u){u=vt(Error(o(424)),t),Ga(u),t=xo(l,t,a,e);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(Al=pt(l.firstChild),kl=t,ul=!0,_e=null,Mt=!0,e=bo(t,null,a,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(La(),a===u){t=Gt(l,t,e);break l}Xl(l,t,a,e)}t=t.child}return t;case 26:return dn(l,t),l===null?(e=Kr(t.type,null,t.pendingProps,null))?t.memoizedState=e:ul||(e=t.type,l=t.pendingProps,a=_n(k.current).createElement(e),a[Vl]=t,a[Wl]=l,Ql(a,e,l),Yl(a),t.stateNode=a):t.memoizedState=Kr(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Vn(t),l===null&&ul&&(a=t.stateNode=Qr(t.type,t.pendingProps,k.current),kl=t,Mt=!0,u=Al,re(t.type)?(Wc=u,Al=pt(a.firstChild)):Al=u),Xl(l,t,t.pendingProps.children,e),dn(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&ul&&((u=a=Al)&&(a=zv(a,t.type,t.pendingProps,Mt),a!==null?(t.stateNode=a,kl=t,Al=pt(a.firstChild),Mt=!1,u=!0):u=!1),u||De(t)),Vn(t),u=t.type,n=t.pendingProps,i=l!==null?l.memoizedProps:null,a=n.children,Kc(u,n)?a=null:i!==null&&Kc(u,i)&&(t.flags|=32),t.memoizedState!==null&&(u=Vi(l,t,V0,null,null,e),hu._currentValue=u),dn(l,t),Xl(l,t,a,e),t.child;case 6:return l===null&&ul&&((l=e=Al)&&(e=_v(e,t.pendingProps,Mt),e!==null?(t.stateNode=e,kl=t,Al=null,l=!0):l=!1),l||De(t)),null;case 13:return Lo(l,t,e);case 4:return bl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=fa(t,null,a,e):Xl(l,t,a,e),t.child;case 11:return Ro(l,t,t.type,t.pendingProps,e);case 7:return Xl(l,t,t.pendingProps,e),t.child;case 8:return Xl(l,t,t.pendingProps.children,e),t.child;case 12:return Xl(l,t,t.pendingProps.children,e),t.child;case 10:return a=t.pendingProps,$t(t,t.type,a.value),Xl(l,t,a.children,e),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Re(t),u=Kl(u),a=a(u),t.flags|=1,Xl(l,t,a,e),t.child;case 14:return No(l,t,t.type,t.pendingProps,e);case 15:return Ho(l,t,t.type,t.pendingProps,e);case 19:return Xo(l,t,e);case 31:return a=t.pendingProps,e=t.mode,a={mode:a.mode,children:a.children},l===null?(e=vn(a,e),e.ref=t.ref,t.child=e,e.return=t,t=e):(e=Ht(l.child,a),e.ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return Co(l,t,e);case 24:return Re(t),a=Kl(Cl),l===null?(u=Bi(),u===null&&(u=gl,n=Ci(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=e),u=n),t.memoizedState={parent:a,cache:u},xi(t),$t(t,Cl,u)):((l.lanes&e)!==0&&(Li(l,t),wa(t,null,null,e),Ja()),u=l.memoizedState,n=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),$t(t,Cl,a)):(a=n.cache,$t(t,Cl,a),a!==u.cache&&Hi(t,[Cl],e,!0))),Xl(l,t,t.pendingProps.children,e),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Xt(l){l.flags|=4}function Qo(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!$r(t)){if(t=gt.current,t!==null&&((tl&4194048)===tl?Ot!==null:(tl&62914560)!==tl&&(tl&536870912)===0||t!==Ot))throw Va=Yi,Ms;l.flags|=8192}}function mn(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?bf():536870912,l.lanes|=t,da|=t)}function lu(l,t){if(!ul)switch(l.tailMode){case"hidden":t=l.tail;for(var e=null;t!==null;)t.alternate!==null&&(e=t),t=t.sibling;e===null?l.tail=null:e.sibling=null;break;case"collapsed":e=l.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function Tl(l){var t=l.alternate!==null&&l.alternate.child===l.child,e=0,a=0;if(t)for(var u=l.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=l,u=u.sibling;else for(u=l.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=l,u=u.sibling;return l.subtreeFlags|=a,l.childLanes=e,t}function P0(l,t,e){var a=t.pendingProps;switch(Di(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tl(t),null;case 1:return Tl(t),null;case 3:return e=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Yt(Cl),Jt(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(l===null||l.child===null)&&(xa(t)?Xt(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,bs())),Tl(t),null;case 26:return e=t.memoizedState,l===null?(Xt(t),e!==null?(Tl(t),Qo(t,e)):(Tl(t),t.flags&=-16777217)):e?e!==l.memoizedState?(Xt(t),Tl(t),Qo(t,e)):(Tl(t),t.flags&=-16777217):(l.memoizedProps!==a&&Xt(t),Tl(t),t.flags&=-16777217),null;case 27:Mu(t),e=k.current;var u=t.type;if(l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Xt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Tl(t),null}l=j.current,xa(t)?gs(t):(l=Qr(u,a,e),t.stateNode=l,Xt(t))}return Tl(t),null;case 5:if(Mu(t),e=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Xt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Tl(t),null}if(l=j.current,xa(t))gs(t);else{switch(u=_n(k.current),l){case 1:l=u.createElementNS("http://www.w3.org/2000/svg",e);break;case 2:l=u.createElementNS("http://www.w3.org/1998/Math/MathML",e);break;default:switch(e){case"svg":l=u.createElementNS("http://www.w3.org/2000/svg",e);break;case"math":l=u.createElementNS("http://www.w3.org/1998/Math/MathML",e);break;case"script":l=u.createElement("div"),l.innerHTML=" + + + +
+ + \ No newline at end of file diff --git a/dist/samples/react-ui-kit-search-nearby/docs/index.html b/dist/samples/react-ui-kit-search-nearby/docs/index.html new file mode 100644 index 00000000..375a815a --- /dev/null +++ b/dist/samples/react-ui-kit-search-nearby/docs/index.html @@ -0,0 +1,16 @@ + + + + + + React - Places UI Kit Search Nearby + + + + +
+ + + \ No newline at end of file diff --git a/dist/samples/react-ui-kit-search-nearby/docs/src/app.js b/dist/samples/react-ui-kit-search-nearby/docs/src/app.js new file mode 100644 index 00000000..290dde52 --- /dev/null +++ b/dist/samples/react-ui-kit-search-nearby/docs/src/app.js @@ -0,0 +1,125 @@ +import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{ /* [START maps_react_places_ui_kit_search_nearby] */ } +import React, { useState, useEffect, useRef } from 'react'; +import { createRoot } from 'react-dom/client'; +import { APIProvider, Map, AdvancedMarker, useMap, useMapsLibrary } from '@vis.gl/react-google-maps'; +import './styles.css'; +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; +const App = () => (_jsx(APIProvider, { apiKey: API_KEY, libraries: ['maps', 'places', 'marker', 'geometry', 'core'], children: _jsx(PlacesSearchLayout, {}) })); +const PlacesSearchLayout = () => { + const [selectedType, setSelectedType] = useState(''); + const [places, setPlaces] = useState([]); + const [selectedPlace, setSelectedPlace] = useState(null); + const placeSearchRef = useRef(null); + return (_jsxs("div", { className: "places-ui-kit", children: [_jsx("div", { className: "place-list-wrapper", ref: placeSearchRef }), _jsx("div", { className: "map-container", children: _jsxs(Map, { defaultCenter: { lat: 48.8566, lng: 2.3522 }, defaultZoom: 16, mapId: "DEMO_MAP_ID", clickableIcons: false, onClick: () => setSelectedPlace(null), children: [_jsx(PlaceSearchController, { placeSearchRef: placeSearchRef, selectedType: selectedType, setPlaces: setPlaces, setSelectedPlace: setSelectedPlace, selectedPlace: selectedPlace }), places.map(place => (place.location && (_jsx(AdvancedMarker, { position: place.location, onClick: () => { + console.log('Marker clicked:', place); + setSelectedPlace(place); + } }, place.id))))] }) }), _jsx("div", { className: "controls", children: _jsxs("select", { name: "types", className: "type-select", value: selectedType, onChange: (e) => setSelectedType(e.target.value), children: [_jsx("option", { value: "", children: "Select a place type" }), _jsx("option", { value: "cafe", children: "Cafe" }), _jsx("option", { value: "restaurant", children: "Restaurant" }), _jsx("option", { value: "electric_vehicle_charging_station", children: "EV charging station" })] }) })] })); +}; +const PlaceSearchController = ({ placeSearchRef, selectedType, setPlaces, setSelectedPlace, selectedPlace }) => { + const map = useMap(); + const coreLib = useMapsLibrary('core'); + const markerLib = useMapsLibrary('marker'); + const geometryLib = useMapsLibrary('geometry'); + const placeRequestRef = useRef(null); + const popupMarkerRef = useRef(null); + const placeDetailsRef = useRef(null); + // Initialize the popup marker and place details element once + useEffect(() => { + if (!markerLib || !map) + return; + const placeDetails = document.createElement('gmp-place-details-compact'); + placeDetails.setAttribute('orientation', 'horizontal'); + placeDetailsRef.current = placeDetails; + const placeRequest = document.createElement('gmp-place-details-place-request'); + placeRequestRef.current = placeRequest; + const allContent = document.createElement('gmp-place-all-content'); + placeDetails.appendChild(placeRequest); + placeDetails.appendChild(allContent); + popupMarkerRef.current = new markerLib.AdvancedMarkerElement({ + map: null, + content: placeDetails, + zIndex: 100 + }); + }, [markerLib, map]); + // Handle place search logic + useEffect(() => { + if (!map || !coreLib || !geometryLib || !placeSearchRef.current) + return; + if (!selectedType) { + setPlaces([]); + placeSearchRef.current.innerHTML = ''; + return; + } + const placeSearch = document.createElement('gmp-place-search'); + placeSearch.setAttribute('selectable', ''); + const allContent = document.createElement('gmp-place-all-content'); + const nearbyRequest = document.createElement('gmp-place-nearby-search-request'); + placeSearch.appendChild(allContent); + placeSearch.appendChild(nearbyRequest); + placeSearchRef.current.innerHTML = ''; + placeSearchRef.current.appendChild(placeSearch); + const bounds = map.getBounds(); + const center = map.getCenter(); + if (!bounds || !center) + return; + const ne = bounds.getNorthEast(); + const sw = bounds.getSouthWest(); + const diameter = geometryLib.spherical.computeDistanceBetween(ne, sw); + const radius = Math.min((diameter / 2), 50000); + nearbyRequest.maxResultCount = 10; + nearbyRequest.locationRestriction = { center, radius }; + nearbyRequest.includedTypes = [selectedType]; + const handleLoad = () => { + const newPlaces = placeSearch.places || []; + setPlaces(newPlaces); + if (newPlaces.length > 0) { + const newBounds = new coreLib.LatLngBounds(); + newPlaces.forEach((p) => p.location && newBounds.extend(p.location)); + if (!newBounds.isEmpty()) + map.fitBounds(newBounds); + } + }; + const handleSelect = (event) => setSelectedPlace(event.place); + placeSearch.addEventListener('gmp-load', handleLoad); + placeSearch.addEventListener('gmp-select', handleSelect); + return () => { + placeSearch.removeEventListener('gmp-load', handleLoad); + placeSearch.removeEventListener('gmp-select', handleSelect); + }; + }, [map, coreLib, geometryLib, selectedType, placeSearchRef, setPlaces, setSelectedPlace]); + // Handle popup display logic, mirroring the vanilla JS example + useEffect(() => { + if (!map || !popupMarkerRef.current || !placeRequestRef.current || !placeDetailsRef.current) + return; + if (selectedPlace && selectedPlace.location) { + placeRequestRef.current.place = selectedPlace; + if (placeDetailsRef.current) + placeDetailsRef.current.style.display = 'block'; + popupMarkerRef.current.position = selectedPlace.location; + popupMarkerRef.current.map = map; + if (selectedPlace.viewport) { + map.fitBounds(selectedPlace.viewport, { top: 0, left: 400 }); + placeDetailsRef.current.addEventListener('gmp-load', () => { + if (selectedPlace.viewport) { + map.fitBounds(selectedPlace.viewport, { top: 0, right: 450 }); + } + }, { once: true }); + } + } + else { + popupMarkerRef.current.map = null; + if (placeDetailsRef.current) + placeDetailsRef.current.style.display = 'none'; + } + }, [selectedPlace, map]); + return null; +}; +const root = createRoot(document.getElementById('app')); +root.render(_jsx(React.StrictMode, { children: _jsx(App, {}) })); +{ /* [END maps_react_places_ui_kit_search_nearby] */ } diff --git a/dist/samples/react-ui-kit-search-nearby/docs/src/app.tsx b/dist/samples/react-ui-kit-search-nearby/docs/src/app.tsx new file mode 100644 index 00000000..38d3ffcd --- /dev/null +++ b/dist/samples/react-ui-kit-search-nearby/docs/src/app.tsx @@ -0,0 +1,212 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{/* [START maps_react_places_ui_kit_search_nearby] */} +import React, {useState, useEffect, useRef, type RefObject} from 'react'; +import {createRoot} from 'react-dom/client'; +import { + APIProvider, + Map, + AdvancedMarker, + useMap, + useMapsLibrary +} from '@vis.gl/react-google-maps'; + +import './styles.css'; + +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; + +const App = () => ( + + + +); + +const PlacesSearchLayout = () => { + const [selectedType, setSelectedType] = useState(''); + const [places, setPlaces] = useState([]); + const [selectedPlace, setSelectedPlace] = useState(null); + + const placeSearchRef = useRef(null); + + return ( +
+
+
+ setSelectedPlace(null)} + > + + {places.map(place => ( + place.location && ( + { + console.log('Marker clicked:', place); + setSelectedPlace(place); + }} + /> + ) + ))} + +
+
+ +
+
+ ); +}; + +interface PlaceSearchControllerProps { + placeSearchRef: RefObject; + selectedType: string; + setPlaces: (places: any[]) => void; + setSelectedPlace: (place: any | null) => void; + selectedPlace: any | null; +} + +const PlaceSearchController = ({ + placeSearchRef, + selectedType, + setPlaces, + setSelectedPlace, + selectedPlace +}: PlaceSearchControllerProps) => { + const map = useMap(); + const coreLib = useMapsLibrary('core'); + const markerLib = useMapsLibrary('marker'); + const geometryLib = useMapsLibrary('geometry'); + + const placeRequestRef = useRef(null); + const popupMarkerRef = useRef(null); + const placeDetailsRef = useRef(null); + + // Initialize the popup marker and place details element once + useEffect(() => { + if (!markerLib || !map) return; + + const placeDetails = document.createElement('gmp-place-details-compact'); + placeDetails.setAttribute('orientation', 'horizontal'); + placeDetailsRef.current = placeDetails; + + const placeRequest = document.createElement('gmp-place-details-place-request'); + placeRequestRef.current = placeRequest; + + const allContent = document.createElement('gmp-place-all-content'); + placeDetails.appendChild(placeRequest); + placeDetails.appendChild(allContent); + + popupMarkerRef.current = new markerLib.AdvancedMarkerElement({ + map: null, + content: placeDetails, + zIndex: 100 + }); + }, [markerLib, map]); + + // Handle place search logic + useEffect(() => { + if (!map || !coreLib || !geometryLib || !placeSearchRef.current) return; + + if (!selectedType) { + setPlaces([]); + placeSearchRef.current.innerHTML = ''; + return; + } + + const placeSearch = document.createElement('gmp-place-search'); + placeSearch.setAttribute('selectable', ''); + const allContent = document.createElement('gmp-place-all-content'); + const nearbyRequest = document.createElement('gmp-place-nearby-search-request'); + placeSearch.appendChild(allContent); + placeSearch.appendChild(nearbyRequest); + placeSearchRef.current.innerHTML = ''; + placeSearchRef.current.appendChild(placeSearch); + + const bounds = map.getBounds(); + const center = map.getCenter(); + if (!bounds || !center) return; + + const ne = bounds.getNorthEast(); + const sw = bounds.getSouthWest(); + const diameter = geometryLib.spherical.computeDistanceBetween(ne, sw); + const radius = Math.min((diameter / 2), 50000); + + (nearbyRequest as any).maxResultCount = 10; + (nearbyRequest as any).locationRestriction = { center, radius }; + (nearbyRequest as any).includedTypes = [selectedType]; + + const handleLoad = () => { + const newPlaces = (placeSearch as any).places || []; + setPlaces(newPlaces); + if (newPlaces.length > 0) { + const newBounds = new coreLib.LatLngBounds(); + newPlaces.forEach((p: any) => p.location && newBounds.extend(p.location)); + if (!newBounds.isEmpty()) map.fitBounds(newBounds); + } + }; + + const handleSelect = (event: any) => setSelectedPlace(event.place); + + placeSearch.addEventListener('gmp-load', handleLoad); + placeSearch.addEventListener('gmp-select', handleSelect); + + return () => { + placeSearch.removeEventListener('gmp-load', handleLoad); + placeSearch.removeEventListener('gmp-select', handleSelect); + }; + }, [map, coreLib, geometryLib, selectedType, placeSearchRef, setPlaces, setSelectedPlace]); + + // Handle popup display logic, mirroring the vanilla JS example + useEffect(() => { + if (!map || !popupMarkerRef.current || !placeRequestRef.current || !placeDetailsRef.current) return; + + if (selectedPlace && selectedPlace.location) { + (placeRequestRef.current as any).place = selectedPlace; + if (placeDetailsRef.current) placeDetailsRef.current.style.display = 'block'; + + popupMarkerRef.current.position = selectedPlace.location; + popupMarkerRef.current.map = map; + + if (selectedPlace.viewport) { + map.fitBounds(selectedPlace.viewport, {top: 0, left: 400}); + + placeDetailsRef.current.addEventListener('gmp-load',() => { + if (selectedPlace.viewport) { + map.fitBounds(selectedPlace.viewport, {top: 0, right: 450}); + } + }, { once: true }); + } + } else { + popupMarkerRef.current.map = null; + if (placeDetailsRef.current) placeDetailsRef.current.style.display = 'none'; + } + }, [selectedPlace, map]); + + return null; +}; + +const root = createRoot(document.getElementById('app') as HTMLElement); +root.render( + + + +); +{/* [END maps_react_places_ui_kit_search_nearby] */} diff --git a/dist/samples/react-ui-kit-search-nearby/docs/src/styles.css b/dist/samples/react-ui-kit-search-nearby/docs/src/styles.css new file mode 100644 index 00000000..f7da835a --- /dev/null +++ b/dist/samples/react-ui-kit-search-nearby/docs/src/styles.css @@ -0,0 +1,127 @@ +html, +body { + height: 100%; + margin: 0; +} + +body { + display: flex; + flex-direction: column; + font-family: Arial, Helvetica, sans-serif; +} + +h1 { + font-size: large; + text-align: center; +} + +#app { + width: 100vw; + height: 100vh; +} + +.places-ui-kit { + position: absolute; + display: flex; + height: 100%; + width: 100%; +} + +.map-container { + flex-grow: 1; + height: 100%; + width: 100%;} + +.place-list-wrapper { + position: absolute; + top: 80px; + right: 40px; + width: 400px; + max-height: 500px; + overflow-y: auto; + z-index: 10; +} + +.controls { + position: absolute; + top: 40px; + right: 40px; +} + +.type-select { + width: 400px; + height: 32px; + border: 1px solid #000; + border-radius: 10px; + flex-grow: 1; + padding: 0 10px; + } + +gmp-place-search { + width: 100%; + margin: 0; + border-radius: 10px; + display: block; + border: none; +} + +gmp-place-details-compact { + width: 350px; + max-height: 800px; + margin-right: 20px; + display: none; + border: none; +} + +@media (max-width: 768px) { + .places-ui-kit { + flex-direction: column; + } + + .place-list-wrapper { + position: relative; + width: 100%; + top: 0; + right: 0; + max-height: 40vh; + } + + .controls { + position: relative; + top: 0; + right: 0; + width: 100%; + padding: 10px; + box-sizing: border-box; + } + + .type-select { + width: 100%; + } + + .map-container { + height: 60vh; + } +} + +gmp-place-details-compact::after { + content: ''; + position: absolute; + bottom: -18px; + left: 50%; + transform: translateX(-50%); + width: 20px; + height: 20px; + background-color: white; + box-shadow: 2px 2px 5px 0 rgba(0,0,0,0.2); + z-index: 1; + clip-path: polygon(0% 0%, 100% 0%, 50% 100%); + transform-origin: center center; +} + +@media (prefers-color-scheme: dark) { + /* Style for Dark mode */ + gmp-place-details-compact::after { + background-color: #131314; + } +} \ No newline at end of file diff --git a/dist/samples/react-ui-kit-search-text/dist/assets/index-DLTYrh3K.css b/dist/samples/react-ui-kit-search-text/dist/assets/index-DLTYrh3K.css new file mode 100644 index 00000000..1558a298 --- /dev/null +++ b/dist/samples/react-ui-kit-search-text/dist/assets/index-DLTYrh3K.css @@ -0,0 +1,5 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */html,body{height:100%;margin:0}body{display:flex;flex-direction:column;font-family:Arial,Helvetica,sans-serif}h1{font-size:large;text-align:center}#app{height:100%;width:100%}.map-container{position:absolute;height:100%;width:100%}.controls{position:absolute;top:40px;right:40px}.search-button{background-color:#4b4b4b;color:#fff;border:1px solid #000;border-radius:10px;width:80px;height:40px;box-shadow:0 4px 8px #00000059}.query-input{border:1px solid #ccc;border-radius:10px;width:315px;height:40px;box-shadow:0 4px 8px #00000059}.place-list-wrapper{position:absolute;top:100px;right:40px;width:400px;max-height:500px;overflow-y:auto;z-index:10}gmp-place-search{width:100%;margin:0;border-radius:10px;display:block;border:none}gmp-place-details-compact{width:350px;max-height:800px;display:none;border:none;transform:translateY(-40%)}gmp-place-details-compact:after{content:"";position:absolute;bottom:-18px;left:50%;transform:translate(-50%);width:20px;height:20px;background-color:#fff;box-shadow:2px 2px 5px #0003;z-index:1;clip-path:polygon(0% 0%,100% 0%,50% 100%);transform-origin:center center}@media (max-width: 768px){.place-list-wrapper{position:absolute;width:100%;top:0;right:0;max-height:40vh;z-index:10}.controls{position:absolute;top:auto;bottom:10px;right:0;width:100%;padding:10px;box-sizing:border-box;z-index:10}.query-input,.search-button{width:100%;margin-bottom:10px}}@media (prefers-color-scheme: dark){gmp-place-details-compact:after{background-color:#131314}} diff --git a/dist/samples/react-ui-kit-search-text/dist/assets/index-KUNzUwmz.js b/dist/samples/react-ui-kit-search-text/dist/assets/index-KUNzUwmz.js new file mode 100644 index 00000000..ba0f4140 --- /dev/null +++ b/dist/samples/react-ui-kit-search-text/dist/assets/index-KUNzUwmz.js @@ -0,0 +1,49 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const O of document.querySelectorAll('link[rel="modulepreload"]'))s(O);new MutationObserver(O=>{for(const z of O)if(z.type==="childList")for(const R of z.addedNodes)R.tagName==="LINK"&&R.rel==="modulepreload"&&s(R)}).observe(document,{childList:!0,subtree:!0});function g(O){const z={};return O.integrity&&(z.integrity=O.integrity),O.referrerPolicy&&(z.referrerPolicy=O.referrerPolicy),O.crossOrigin==="use-credentials"?z.credentials="include":O.crossOrigin==="anonymous"?z.credentials="omit":z.credentials="same-origin",z}function s(O){if(O.ep)return;O.ep=!0;const z=g(O);fetch(O.href,z)}})();function Ad(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var uf={exports:{}},Eu={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var fd;function Iv(){if(fd)return Eu;fd=1;var o=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function g(s,O,z){var R=null;if(z!==void 0&&(R=""+z),O.key!==void 0&&(R=""+O.key),"key"in O){z={};for(var N in O)N!=="key"&&(z[N]=O[N])}else z=O;return O=z.ref,{$$typeof:o,type:s,key:R,ref:O!==void 0?O:null,props:z}}return Eu.Fragment=r,Eu.jsx=g,Eu.jsxs=g,Eu}var sd;function Pv(){return sd||(sd=1,uf.exports=Iv()),uf.exports}var Pt=Pv(),nf={exports:{}},W={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var od;function tm(){if(od)return W;od=1;var o=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),R=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),G=Symbol.iterator;function B(d){return d===null||typeof d!="object"?null:(d=G&&d[G]||d["@@iterator"],typeof d=="function"?d:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,I={};function it(d,_,q){this.props=d,this.context=_,this.refs=I,this.updater=q||J}it.prototype.isReactComponent={},it.prototype.setState=function(d,_){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,_,"setState")},it.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function et(){}et.prototype=it.prototype;function bt(d,_,q){this.props=d,this.context=_,this.refs=I,this.updater=q||J}var st=bt.prototype=new et;st.constructor=bt,L(st,it.prototype),st.isPureReactComponent=!0;var zt=Array.isArray,w={H:null,A:null,T:null,S:null,V:null},yt=Object.prototype.hasOwnProperty;function Et(d,_,q,H,Q,at){return q=at.ref,{$$typeof:o,type:d,key:_,ref:q!==void 0?q:null,props:at}}function _t(d,_){return Et(d.type,_,void 0,void 0,void 0,d.props)}function Bt(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function Dt(d){var _={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(q){return _[q]})}var tl=/\/+/g;function Ut(d,_){return typeof d=="object"&&d!==null&&d.key!=null?Dt(""+d.key):_.toString(36)}function ge(){}function Se(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(ge,ge):(d.status="pending",d.then(function(_){d.status==="pending"&&(d.status="fulfilled",d.value=_)},function(_){d.status==="pending"&&(d.status="rejected",d.reason=_)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function Zt(d,_,q,H,Q){var at=typeof d;(at==="undefined"||at==="boolean")&&(d=null);var k=!1;if(d===null)k=!0;else switch(at){case"bigint":case"string":case"number":k=!0;break;case"object":switch(d.$$typeof){case o:case r:k=!0;break;case D:return k=d._init,Zt(k(d._payload),_,q,H,Q)}}if(k)return Q=Q(d),k=H===""?"."+Ut(d,0):H,zt(Q)?(q="",k!=null&&(q=k.replace(tl,"$&/")+"/"),Zt(Q,_,q,"",function(Jl){return Jl})):Q!=null&&(Bt(Q)&&(Q=_t(Q,q+(Q.key==null||d&&d.key===Q.key?"":(""+Q.key).replace(tl,"$&/")+"/")+k)),_.push(Q)),1;k=0;var ll=H===""?".":H+":";if(zt(d))for(var gt=0;gt>>1,d=A[vt];if(0>>1;vt<_;){var q=2*(vt+1)-1,H=A[q],Q=q+1,at=A[Q];if(0>O(H,V))QO(at,H)?(A[vt]=at,A[Q]=V,vt=Q):(A[vt]=H,A[q]=V,vt=q);else if(QO(at,V))A[vt]=at,A[Q]=V,vt=Q;else break t}}return C}function O(A,C){var V=A.sortIndex-C.sortIndex;return V!==0?V:A.id-C.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var z=performance;o.unstable_now=function(){return z.now()}}else{var R=Date,N=R.now();o.unstable_now=function(){return R.now()-N}}var U=[],E=[],D=1,G=null,B=3,J=!1,L=!1,I=!1,it=!1,et=typeof setTimeout=="function"?setTimeout:null,bt=typeof clearTimeout=="function"?clearTimeout:null,st=typeof setImmediate<"u"?setImmediate:null;function zt(A){for(var C=g(E);C!==null;){if(C.callback===null)s(E);else if(C.startTime<=A)s(E),C.sortIndex=C.expirationTime,r(U,C);else break;C=g(E)}}function w(A){if(I=!1,zt(A),!L)if(g(U)!==null)L=!0,yt||(yt=!0,Ut());else{var C=g(E);C!==null&&Zt(w,C.startTime-A)}}var yt=!1,Et=-1,_t=5,Bt=-1;function Dt(){return it?!0:!(o.unstable_now()-Bt<_t)}function tl(){if(it=!1,yt){var A=o.unstable_now();Bt=A;var C=!0;try{t:{L=!1,I&&(I=!1,bt(Et),Et=-1),J=!0;var V=B;try{l:{for(zt(A),G=g(U);G!==null&&!(G.expirationTime>A&&Dt());){var vt=G.callback;if(typeof vt=="function"){G.callback=null,B=G.priorityLevel;var d=vt(G.expirationTime<=A);if(A=o.unstable_now(),typeof d=="function"){G.callback=d,zt(A),C=!0;break l}G===g(U)&&s(U),zt(A)}else s(U);G=g(U)}if(G!==null)C=!0;else{var _=g(E);_!==null&&Zt(w,_.startTime-A),C=!1}}break t}finally{G=null,B=V,J=!1}C=void 0}}finally{C?Ut():yt=!1}}}var Ut;if(typeof st=="function")Ut=function(){st(tl)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,Se=ge.port2;ge.port1.onmessage=tl,Ut=function(){Se.postMessage(null)}}else Ut=function(){et(tl,0)};function Zt(A,C){Et=et(function(){A(o.unstable_now())},C)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(A){A.callback=null},o.unstable_forceFrameRate=function(A){0>A||125vt?(A.sortIndex=V,r(E,A),g(U)===null&&A===g(E)&&(I?(bt(Et),Et=-1):I=!0,Zt(w,V-vt))):(A.sortIndex=d,r(U,A),L||J||(L=!0,yt||(yt=!0,Ut()))),A},o.unstable_shouldYield=Dt,o.unstable_wrapCallback=function(A){var C=B;return function(){var V=B;B=C;try{return A.apply(this,arguments)}finally{B=V}}}})(sf)),sf}var vd;function em(){return vd||(vd=1,ff.exports=lm()),ff.exports}var of={exports:{}},Jt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var md;function am(){if(md)return Jt;md=1;var o=vf();function r(U){var E="https://react.dev/errors/"+U;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(r){console.error(r)}}return o(),of.exports=am(),of.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hd;function um(){if(hd)return Tu;hd=1;var o=em(),r=vf(),g=pd();function s(t){var l="https://react.dev/errors/"+t;if(1d||(t.current=vt[d],vt[d]=null,d--)}function H(t,l){d++,vt[d]=t.current,t.current=l}var Q=_(null),at=_(null),k=_(null),ll=_(null);function gt(t,l){switch(H(k,l),H(at,t),H(Q,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?Yr(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=Yr(l),t=xr(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(Q),H(Q,t)}function Jl(){q(Q),q(at),q(k)}function Zn(t){t.memoizedState!==null&&H(ll,t);var l=Q.current,e=xr(l,t.type);l!==e&&(H(at,t),H(Q,e))}function Ou(t){at.current===t&&(q(Q),q(at)),ll.current===t&&(q(ll),yu._currentValue=V)}var Vn=Object.prototype.hasOwnProperty,Kn=o.unstable_scheduleCallback,Jn=o.unstable_cancelCallback,Rd=o.unstable_shouldYield,Nd=o.unstable_requestPaint,pl=o.unstable_now,Hd=o.unstable_getCurrentPriorityLevel,yf=o.unstable_ImmediatePriority,hf=o.unstable_UserBlockingPriority,Mu=o.unstable_NormalPriority,Cd=o.unstable_LowPriority,gf=o.unstable_IdlePriority,qd=o.log,Bd=o.unstable_setDisableYieldValue,pa=null,el=null;function wl(t){if(typeof qd=="function"&&Bd(t),el&&typeof el.setStrictMode=="function")try{el.setStrictMode(pa,t)}catch{}}var al=Math.clz32?Math.clz32:Ld,Yd=Math.log,xd=Math.LN2;function Ld(t){return t>>>=0,t===0?32:31-(Yd(t)/xd|0)|0}var zu=256,_u=4194304;function be(t){var l=t&42;if(l!==0)return l;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Du(t,l,e){var a=t.pendingLanes;if(a===0)return 0;var u=0,n=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?u=be(a):(i&=c,i!==0?u=be(i):e||(e=c&~t,e!==0&&(u=be(e))))):(c=a&~n,c!==0?u=be(c):i!==0?u=be(i):e||(e=a&~t,e!==0&&(u=be(e)))),u===0?0:l!==0&&l!==u&&(l&n)===0&&(n=u&-u,e=l&-l,n>=e||n===32&&(e&4194048)!==0)?l:u}function Oa(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function Gd(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sf(){var t=zu;return zu<<=1,(zu&4194048)===0&&(zu=256),t}function bf(){var t=_u;return _u<<=1,(_u&62914560)===0&&(_u=4194304),t}function wn(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Ma(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Xd(t,l,e,a,u,n){var i=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var c=t.entanglements,f=t.expirationTimes,h=t.hiddenUpdates;for(e=i&~e;0)":-1u||f[a]!==h[u]){var T=` +`+f[a].replace(" at new "," at ");return t.displayName&&T.includes("")&&(T=T.replace("",t.displayName)),T}while(1<=a&&0<=u);break}}}finally{Pn=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:"")?je(e):""}function Jd(t){switch(t.tag){case 26:case 27:case 5:return je(t.type);case 16:return je("Lazy");case 13:return je("Suspense");case 19:return je("SuspenseList");case 0:case 15:return ti(t.type,!1);case 11:return ti(t.type.render,!1);case 1:return ti(t.type,!0);case 31:return je("Activity");default:return""}}function Uf(t){try{var l="";do l+=Jd(t),t=t.return;while(t);return l}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}function rl(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Rf(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function wd(t){var l=Rf(t)?"checked":"value",e=Object.getOwnPropertyDescriptor(t.constructor.prototype,l),a=""+t[l];if(!t.hasOwnProperty(l)&&typeof e<"u"&&typeof e.get=="function"&&typeof e.set=="function"){var u=e.get,n=e.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return u.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(t,l,{enumerable:e.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function Nu(t){t._valueTracker||(t._valueTracker=wd(t))}function Nf(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var e=l.getValue(),a="";return t&&(a=Rf(t)?t.checked?"true":"false":t.value),t=a,t!==e?(l.setValue(t),!0):!1}function Hu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var kd=/[\n"\\]/g;function dl(t){return t.replace(kd,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function li(t,l,e,a,u,n,i,c){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),l!=null?i==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+rl(l)):t.value!==""+rl(l)&&(t.value=""+rl(l)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),l!=null?ei(t,i,rl(l)):e!=null?ei(t,i,rl(e)):a!=null&&t.removeAttribute("value"),u==null&&n!=null&&(t.defaultChecked=!!n),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.name=""+rl(c):t.removeAttribute("name")}function Hf(t,l,e,a,u,n,i,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(t.type=n),l!=null||e!=null){if(!(n!=="submit"&&n!=="reset"||l!=null))return;e=e!=null?""+rl(e):"",l=l!=null?""+rl(l):e,c||l===t.value||(t.value=l),t.defaultValue=l}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=c?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i)}function ei(t,l,e){l==="number"&&Hu(t.ownerDocument)===t||t.defaultValue===""+e||(t.defaultValue=""+e)}function Ze(t,l,e,a){if(t=t.options,l){l={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ci=!1;if(Nl)try{var Ua={};Object.defineProperty(Ua,"passive",{get:function(){ci=!0}}),window.addEventListener("test",Ua,Ua),window.removeEventListener("test",Ua,Ua)}catch{ci=!1}var Wl=null,fi=null,qu=null;function Gf(){if(qu)return qu;var t,l=fi,e=l.length,a,u="value"in Wl?Wl.value:Wl.textContent,n=u.length;for(t=0;t=Ha),Kf=" ",Jf=!1;function wf(t,l){switch(t){case"keyup":return A0.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var we=!1;function O0(t,l){switch(t){case"compositionend":return kf(l);case"keypress":return l.which!==32?null:(Jf=!0,Kf);case"textInput":return t=l.data,t===Kf&&Jf?null:t;default:return null}}function M0(t,l){if(we)return t==="compositionend"||!vi&&wf(t,l)?(t=Gf(),qu=fi=Wl=null,we=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:e,offset:l-t};t=a}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=es(e)}}function us(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?us(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function ns(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Hu(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href=="string"}catch{e=!1}if(e)t=l.contentWindow;else break;l=Hu(t.document)}return l}function hi(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var C0=Nl&&"documentMode"in document&&11>=document.documentMode,ke=null,gi=null,Ya=null,Si=!1;function is(t,l,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Si||ke==null||ke!==Hu(a)||(a=ke,"selectionStart"in a&&hi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ya&&Ba(Ya,a)||(Ya=a,a=Mn(gi,"onSelect"),0>=i,u-=i,Cl=1<<32-al(l)+u|e<n?n:8;var i=A.T,c={};A.T=c,ac(t,!1,l,e);try{var f=u(),h=A.S;if(h!==null&&h(c,f),f!==null&&typeof f=="object"&&typeof f.then=="function"){var T=j0(f,a);Fa(t,l,T,sl(t))}else Fa(t,l,a,sl(t))}catch(M){Fa(t,l,{then:function(){},status:"rejected",reason:M},sl())}finally{C.p=n,A.T=i}}function w0(){}function lc(t,l,e,a){if(t.tag!==5)throw Error(s(476));var u=co(t).queue;io(t,u,l,V,e===null?w0:function(){return fo(t),e(a)})}function co(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:V},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function fo(t){var l=co(t).next.queue;Fa(t,l,{},sl())}function ec(){return Kt(yu)}function so(){return Nt().memoizedState}function oo(){return Nt().memoizedState}function k0(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=sl();t=Il(e);var a=Pl(l,t,e);a!==null&&(ol(a,l,e),Ka(a,l,e)),l={cache:Hi()},t.payload=l;return}l=l.return}}function W0(t,l,e){var a=sl();e={lane:a,revertLane:0,action:e,hasEagerState:!1,eagerState:null,next:null},un(t)?vo(l,e):(e=Ai(t,l,e,a),e!==null&&(ol(e,t,a),mo(e,l,a)))}function ro(t,l,e){var a=sl();Fa(t,l,e,a)}function Fa(t,l,e,a){var u={lane:a,revertLane:0,action:e,hasEagerState:!1,eagerState:null,next:null};if(un(t))vo(l,u);else{var n=t.alternate;if(t.lanes===0&&(n===null||n.lanes===0)&&(n=l.lastRenderedReducer,n!==null))try{var i=l.lastRenderedState,c=n(i,e);if(u.hasEagerState=!0,u.eagerState=c,ul(c,i))return Qu(t,l,u,0),ht===null&&Xu(),!1}catch{}finally{}if(e=Ai(t,l,u,a),e!==null)return ol(e,t,a),mo(e,l,a),!0}return!1}function ac(t,l,e,a){if(a={lane:2,revertLane:Bc(),action:a,hasEagerState:!1,eagerState:null,next:null},un(t)){if(l)throw Error(s(479))}else l=Ai(t,e,a,2),l!==null&&ol(l,t,2)}function un(t){var l=t.alternate;return t===$||l!==null&&l===$}function vo(t,l){ua=Iu=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function mo(t,l,e){if((e&4194048)!==0){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,Tf(t,e)}}var nn={readContext:Kt,use:tn,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot},yo={readContext:Kt,use:tn,useCallback:function(t,l){return $t().memoizedState=[t,l===void 0?null:l],t},useContext:Kt,useEffect:Fs,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,an(4194308,4,lo.bind(null,l,t),e)},useLayoutEffect:function(t,l){return an(4194308,4,t,l)},useInsertionEffect:function(t,l){an(4,2,t,l)},useMemo:function(t,l){var e=$t();l=l===void 0?null:l;var a=t();if(He){wl(!0);try{t()}finally{wl(!1)}}return e.memoizedState=[a,l],a},useReducer:function(t,l,e){var a=$t();if(e!==void 0){var u=e(l);if(He){wl(!0);try{e(l)}finally{wl(!1)}}}else u=l;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=W0.bind(null,$,t),[a.memoizedState,t]},useRef:function(t){var l=$t();return t={current:t},l.memoizedState=t},useState:function(t){t=Fi(t);var l=t.queue,e=ro.bind(null,$,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:Pi,useDeferredValue:function(t,l){var e=$t();return tc(e,t,l)},useTransition:function(){var t=Fi(!1);return t=io.bind(null,$,t.queue,!0,!1),$t().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var a=$,u=$t();if(nt){if(e===void 0)throw Error(s(407));e=e()}else{if(e=l(),ht===null)throw Error(s(349));(lt&124)!==0||Bs(a,l,e)}u.memoizedState=e;var n={value:e,getSnapshot:l};return u.queue=n,Fs(xs.bind(null,a,n,t),[t]),a.flags|=2048,ia(9,en(),Ys.bind(null,a,n,e,l),null),e},useId:function(){var t=$t(),l=ht.identifierPrefix;if(nt){var e=ql,a=Cl;e=(a&~(1<<32-al(a)-1)).toString(32)+e,l="«"+l+"R"+e,e=Pu++,0Z?(Gt=X,X=null):Gt=X.sibling;var ut=S(m,X,y[Z],p);if(ut===null){X===null&&(X=Gt);break}t&&X&&ut.alternate===null&&l(m,X),v=n(ut,v,Z),F===null?Y=ut:F.sibling=ut,F=ut,X=Gt}if(Z===y.length)return e(m,X),nt&&ze(m,Z),Y;if(X===null){for(;ZZ?(Gt=X,X=null):Gt=X.sibling;var he=S(m,X,ut.value,p);if(he===null){X===null&&(X=Gt);break}t&&X&&he.alternate===null&&l(m,X),v=n(he,v,Z),F===null?Y=he:F.sibling=he,F=he,X=Gt}if(ut.done)return e(m,X),nt&&ze(m,Z),Y;if(X===null){for(;!ut.done;Z++,ut=y.next())ut=M(m,ut.value,p),ut!==null&&(v=n(ut,v,Z),F===null?Y=ut:F.sibling=ut,F=ut);return nt&&ze(m,Z),Y}for(X=a(X);!ut.done;Z++,ut=y.next())ut=b(X,m,Z,ut.value,p),ut!==null&&(t&&ut.alternate!==null&&X.delete(ut.key===null?Z:ut.key),v=n(ut,v,Z),F===null?Y=ut:F.sibling=ut,F=ut);return t&&X.forEach(function(Fv){return l(m,Fv)}),nt&&ze(m,Z),Y}function dt(m,v,y,p){if(typeof y=="object"&&y!==null&&y.type===L&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case B:t:{for(var Y=y.key;v!==null;){if(v.key===Y){if(Y=y.type,Y===L){if(v.tag===7){e(m,v.sibling),p=u(v,y.props.children),p.return=m,m=p;break t}}else if(v.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===_t&&go(Y)===v.type){e(m,v.sibling),p=u(v,y.props),Pa(p,y),p.return=m,m=p;break t}e(m,v);break}else l(m,v);v=v.sibling}y.type===L?(p=Oe(y.props.children,m.mode,p,y.key),p.return=m,m=p):(p=Zu(y.type,y.key,y.props,null,m.mode,p),Pa(p,y),p.return=m,m=p)}return i(m);case J:t:{for(Y=y.key;v!==null;){if(v.key===Y)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){e(m,v.sibling),p=u(v,y.children||[]),p.return=m,m=p;break t}else{e(m,v);break}else l(m,v);v=v.sibling}p=Mi(y,m.mode,p),p.return=m,m=p}return i(m);case _t:return Y=y._init,y=Y(y._payload),dt(m,v,y,p)}if(Zt(y))return K(m,v,y,p);if(Ut(y)){if(Y=Ut(y),typeof Y!="function")throw Error(s(150));return y=Y.call(y),j(m,v,y,p)}if(typeof y.then=="function")return dt(m,v,cn(y),p);if(y.$$typeof===st)return dt(m,v,wu(m,y),p);fn(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,v!==null&&v.tag===6?(e(m,v.sibling),p=u(v,y),p.return=m,m=p):(e(m,v),p=Oi(y,m.mode,p),p.return=m,m=p),i(m)):e(m,v)}return function(m,v,y,p){try{Ia=0;var Y=dt(m,v,y,p);return ca=null,Y}catch(X){if(X===Za||X===Wu)throw X;var F=nl(29,X,null,m.mode);return F.lanes=p,F.return=m,F}finally{}}}var fa=So(!0),bo=So(!1),gl=_(null),Ml=null;function le(t){var l=t.alternate;H(Ct,Ct.current&1),H(gl,t),Ml===null&&(l===null||aa.current!==null||l.memoizedState!==null)&&(Ml=t)}function Eo(t){if(t.tag===22){if(H(Ct,Ct.current),H(gl,t),Ml===null){var l=t.alternate;l!==null&&l.memoizedState!==null&&(Ml=t)}}else ee()}function ee(){H(Ct,Ct.current),H(gl,gl.current)}function Ll(t){q(gl),Ml===t&&(Ml=null),q(Ct)}var Ct=_(0);function sn(t){for(var l=t;l!==null;){if(l.tag===13){var e=l.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||e.data==="$?"||wc(e)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function uc(t,l,e,a){l=t.memoizedState,e=e(a,l),e=e==null?l:D({},l,e),t.memoizedState=e,t.lanes===0&&(t.updateQueue.baseState=e)}var nc={enqueueSetState:function(t,l,e){t=t._reactInternals;var a=sl(),u=Il(a);u.payload=l,e!=null&&(u.callback=e),l=Pl(t,u,a),l!==null&&(ol(l,t,a),Ka(l,t,a))},enqueueReplaceState:function(t,l,e){t=t._reactInternals;var a=sl(),u=Il(a);u.tag=1,u.payload=l,e!=null&&(u.callback=e),l=Pl(t,u,a),l!==null&&(ol(l,t,a),Ka(l,t,a))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var e=sl(),a=Il(e);a.tag=2,l!=null&&(a.callback=l),l=Pl(t,a,e),l!==null&&(ol(l,t,e),Ka(l,t,e))}};function To(t,l,e,a,u,n,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,n,i):l.prototype&&l.prototype.isPureReactComponent?!Ba(e,a)||!Ba(u,n):!0}function Ao(t,l,e,a){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(e,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(e,a),l.state!==t&&nc.enqueueReplaceState(l,l.state,null)}function Ce(t,l){var e=l;if("ref"in l){e={};for(var a in l)a!=="ref"&&(e[a]=l[a])}if(t=t.defaultProps){e===l&&(e=D({},e));for(var u in t)e[u]===void 0&&(e[u]=t[u])}return e}var on=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function po(t){on(t)}function Oo(t){console.error(t)}function Mo(t){on(t)}function rn(t,l){try{var e=t.onUncaughtError;e(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function zo(t,l,e){try{var a=t.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function ic(t,l,e){return e=Il(e),e.tag=3,e.payload={element:null},e.callback=function(){rn(t,l)},e}function _o(t){return t=Il(t),t.tag=3,t}function Do(t,l,e,a){var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var n=a.value;t.payload=function(){return u(n)},t.callback=function(){zo(l,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){zo(l,e,a),typeof u!="function"&&(fe===null?fe=new Set([this]):fe.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function F0(t,l,e,a,u){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=e.alternate,l!==null&&Xa(l,e,u,!0),e=gl.current,e!==null){switch(e.tag){case 13:return Ml===null?Rc():e.alternate===null&&pt===0&&(pt=3),e.flags&=-257,e.flags|=65536,e.lanes=u,a===Bi?e.flags|=16384:(l=e.updateQueue,l===null?e.updateQueue=new Set([a]):l.add(a),Hc(t,a,u)),!1;case 22:return e.flags|=65536,a===Bi?e.flags|=16384:(l=e.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=l):(e=l.retryQueue,e===null?l.retryQueue=new Set([a]):e.add(a)),Hc(t,a,u)),!1}throw Error(s(435,e.tag))}return Hc(t,a,u),Rc(),!1}if(nt)return l=gl.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=u,a!==Di&&(t=Error(s(422),{cause:a}),Ga(vl(t,e)))):(a!==Di&&(l=Error(s(423),{cause:a}),Ga(vl(l,e))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=vl(a,e),u=ic(t.stateNode,a,u),Li(t,u),pt!==4&&(pt=2)),!1;var n=Error(s(520),{cause:a});if(n=vl(n,e),iu===null?iu=[n]:iu.push(n),pt!==4&&(pt=2),l===null)return!0;a=vl(a,e),e=l;do{switch(e.tag){case 3:return e.flags|=65536,t=u&-u,e.lanes|=t,t=ic(e.stateNode,a,t),Li(e,t),!1;case 1:if(l=e.type,n=e.stateNode,(e.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(fe===null||!fe.has(n))))return e.flags|=65536,u&=-u,e.lanes|=u,u=_o(u),Do(u,t,e,a),Li(e,u),!1}e=e.return}while(e!==null);return!1}var Uo=Error(s(461)),xt=!1;function Xt(t,l,e,a){l.child=t===null?bo(l,null,e,a):fa(l,t.child,e,a)}function Ro(t,l,e,a,u){e=e.render;var n=l.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Re(l),a=Zi(t,l,e,i,n,u),c=Vi(),t!==null&&!xt?(Ki(t,l,u),Gl(t,l,u)):(nt&&c&&zi(l),l.flags|=1,Xt(t,l,a,u),l.child)}function No(t,l,e,a,u){if(t===null){var n=e.type;return typeof n=="function"&&!pi(n)&&n.defaultProps===void 0&&e.compare===null?(l.tag=15,l.type=n,Ho(t,l,n,a,u)):(t=Zu(e.type,null,a,l,l.mode,u),t.ref=l.ref,t.return=l,l.child=t)}if(n=t.child,!mc(t,u)){var i=n.memoizedProps;if(e=e.compare,e=e!==null?e:Ba,e(i,a)&&t.ref===l.ref)return Gl(t,l,u)}return l.flags|=1,t=Hl(n,a),t.ref=l.ref,t.return=l,l.child=t}function Ho(t,l,e,a,u){if(t!==null){var n=t.memoizedProps;if(Ba(n,a)&&t.ref===l.ref)if(xt=!1,l.pendingProps=a=n,mc(t,u))(t.flags&131072)!==0&&(xt=!0);else return l.lanes=t.lanes,Gl(t,l,u)}return cc(t,l,e,a,u)}function Co(t,l,e){var a=l.pendingProps,u=a.children,n=t!==null?t.memoizedState:null;if(a.mode==="hidden"){if((l.flags&128)!==0){if(a=n!==null?n.baseLanes|e:e,t!==null){for(u=l.child=t.child,n=0;u!==null;)n=n|u.lanes|u.childLanes,u=u.sibling;l.childLanes=n&~a}else l.childLanes=0,l.child=null;return qo(t,l,a,e)}if((e&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&ku(l,n!==null?n.cachePool:null),n!==null?Ns(l,n):Xi(),Eo(l);else return l.lanes=l.childLanes=536870912,qo(t,l,n!==null?n.baseLanes|e:e,e)}else n!==null?(ku(l,n.cachePool),Ns(l,n),ee(),l.memoizedState=null):(t!==null&&ku(l,null),Xi(),ee());return Xt(t,l,u,e),l.child}function qo(t,l,e,a){var u=qi();return u=u===null?null:{parent:Ht._currentValue,pool:u},l.memoizedState={baseLanes:e,cachePool:u},t!==null&&ku(l,null),Xi(),Eo(l),t!==null&&Xa(t,l,a,!0),null}function dn(t,l){var e=l.ref;if(e===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(s(284));(t===null||t.ref!==e)&&(l.flags|=4194816)}}function cc(t,l,e,a,u){return Re(l),e=Zi(t,l,e,a,void 0,u),a=Vi(),t!==null&&!xt?(Ki(t,l,u),Gl(t,l,u)):(nt&&a&&zi(l),l.flags|=1,Xt(t,l,e,u),l.child)}function Bo(t,l,e,a,u,n){return Re(l),l.updateQueue=null,e=Cs(l,a,e,u),Hs(t),a=Vi(),t!==null&&!xt?(Ki(t,l,n),Gl(t,l,n)):(nt&&a&&zi(l),l.flags|=1,Xt(t,l,e,n),l.child)}function Yo(t,l,e,a,u){if(Re(l),l.stateNode===null){var n=Ie,i=e.contextType;typeof i=="object"&&i!==null&&(n=Kt(i)),n=new e(a,n),l.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=nc,l.stateNode=n,n._reactInternals=l,n=l.stateNode,n.props=a,n.state=l.memoizedState,n.refs={},Yi(l),i=e.contextType,n.context=typeof i=="object"&&i!==null?Kt(i):Ie,n.state=l.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(uc(l,e,i,a),n.state=l.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&nc.enqueueReplaceState(n,n.state,null),wa(l,a,n,u),Ja(),n.state=l.memoizedState),typeof n.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(t===null){n=l.stateNode;var c=l.memoizedProps,f=Ce(e,c);n.props=f;var h=n.context,T=e.contextType;i=Ie,typeof T=="object"&&T!==null&&(i=Kt(T));var M=e.getDerivedStateFromProps;T=typeof M=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=l.pendingProps!==c,T||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||h!==i)&&Ao(l,n,a,i),Fl=!1;var S=l.memoizedState;n.state=S,wa(l,a,n,u),Ja(),h=l.memoizedState,c||S!==h||Fl?(typeof M=="function"&&(uc(l,e,M,a),h=l.memoizedState),(f=Fl||To(l,e,f,a,S,h,i))?(T||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(l.flags|=4194308)):(typeof n.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=h),n.props=a,n.state=h,n.context=i,a=f):(typeof n.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{n=l.stateNode,xi(t,l),i=l.memoizedProps,T=Ce(e,i),n.props=T,M=l.pendingProps,S=n.context,h=e.contextType,f=Ie,typeof h=="object"&&h!==null&&(f=Kt(h)),c=e.getDerivedStateFromProps,(h=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==M||S!==f)&&Ao(l,n,a,f),Fl=!1,S=l.memoizedState,n.state=S,wa(l,a,n,u),Ja();var b=l.memoizedState;i!==M||S!==b||Fl||t!==null&&t.dependencies!==null&&Ju(t.dependencies)?(typeof c=="function"&&(uc(l,e,c,a),b=l.memoizedState),(T=Fl||To(l,e,T,a,S,b,f)||t!==null&&t.dependencies!==null&&Ju(t.dependencies))?(h||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,b,f),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,b,f)),typeof n.componentDidUpdate=="function"&&(l.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=b),n.props=a,n.state=b,n.context=f,a=T):(typeof n.componentDidUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=1024),a=!1)}return n=a,dn(t,l),a=(l.flags&128)!==0,n||a?(n=l.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:n.render(),l.flags|=1,t!==null&&a?(l.child=fa(l,t.child,null,u),l.child=fa(l,null,e,u)):Xt(t,l,e,u),l.memoizedState=n.state,t=l.child):t=Gl(t,l,u),t}function xo(t,l,e,a){return La(),l.flags|=256,Xt(t,l,e,a),l.child}var fc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(t){return{baseLanes:t,cachePool:ps()}}function oc(t,l,e){return t=t!==null?t.childLanes&~e:0,l&&(t|=Sl),t}function Lo(t,l,e){var a=l.pendingProps,u=!1,n=(l.flags&128)!==0,i;if((i=n)||(i=t!==null&&t.memoizedState===null?!1:(Ct.current&2)!==0),i&&(u=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(nt){if(u?le(l):ee(),nt){var c=At,f;if(f=c){t:{for(f=c,c=Ol;f.nodeType!==8;){if(!c){c=null;break t}if(f=Al(f.nextSibling),f===null){c=null;break t}}c=f}c!==null?(l.memoizedState={dehydrated:c,treeContext:Me!==null?{id:Cl,overflow:ql}:null,retryLane:536870912,hydrationErrors:null},f=nl(18,null,null,0),f.stateNode=c,f.return=l,l.child=f,wt=l,At=null,f=!0):f=!1}f||De(l)}if(c=l.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return wc(c)?l.lanes=32:l.lanes=536870912,null;Ll(l)}return c=a.children,a=a.fallback,u?(ee(),u=l.mode,c=vn({mode:"hidden",children:c},u),a=Oe(a,u,e,null),c.return=l,a.return=l,c.sibling=a,l.child=c,u=l.child,u.memoizedState=sc(e),u.childLanes=oc(t,i,e),l.memoizedState=fc,a):(le(l),rc(l,c))}if(f=t.memoizedState,f!==null&&(c=f.dehydrated,c!==null)){if(n)l.flags&256?(le(l),l.flags&=-257,l=dc(t,l,e)):l.memoizedState!==null?(ee(),l.child=t.child,l.flags|=128,l=null):(ee(),u=a.fallback,c=l.mode,a=vn({mode:"visible",children:a.children},c),u=Oe(u,c,e,null),u.flags|=2,a.return=l,u.return=l,a.sibling=u,l.child=a,fa(l,t.child,null,e),a=l.child,a.memoizedState=sc(e),a.childLanes=oc(t,i,e),l.memoizedState=fc,l=u);else if(le(l),wc(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var h=i.dgst;i=h,a=Error(s(419)),a.stack="",a.digest=i,Ga({value:a,source:null,stack:null}),l=dc(t,l,e)}else if(xt||Xa(t,l,e,!1),i=(e&t.childLanes)!==0,xt||i){if(i=ht,i!==null&&(a=e&-e,a=(a&42)!==0?1:kn(a),a=(a&(i.suspendedLanes|e))!==0?0:a,a!==0&&a!==f.retryLane))throw f.retryLane=a,Fe(t,a),ol(i,t,a),Uo;c.data==="$?"||Rc(),l=dc(t,l,e)}else c.data==="$?"?(l.flags|=192,l.child=t.child,l=null):(t=f.treeContext,At=Al(c.nextSibling),wt=l,nt=!0,_e=null,Ol=!1,t!==null&&(yl[hl++]=Cl,yl[hl++]=ql,yl[hl++]=Me,Cl=t.id,ql=t.overflow,Me=l),l=rc(l,a.children),l.flags|=4096);return l}return u?(ee(),u=a.fallback,c=l.mode,f=t.child,h=f.sibling,a=Hl(f,{mode:"hidden",children:a.children}),a.subtreeFlags=f.subtreeFlags&65011712,h!==null?u=Hl(h,u):(u=Oe(u,c,e,null),u.flags|=2),u.return=l,a.return=l,a.sibling=u,l.child=a,a=u,u=l.child,c=t.child.memoizedState,c===null?c=sc(e):(f=c.cachePool,f!==null?(h=Ht._currentValue,f=f.parent!==h?{parent:h,pool:h}:f):f=ps(),c={baseLanes:c.baseLanes|e,cachePool:f}),u.memoizedState=c,u.childLanes=oc(t,i,e),l.memoizedState=fc,a):(le(l),e=t.child,t=e.sibling,e=Hl(e,{mode:"visible",children:a.children}),e.return=l,e.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=e,l.memoizedState=null,e)}function rc(t,l){return l=vn({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function vn(t,l){return t=nl(22,t,null,l),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function dc(t,l,e){return fa(l,t.child,null,e),t=rc(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function Go(t,l,e){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l),Ri(t.return,l,e)}function vc(t,l,e,a,u){var n=t.memoizedState;n===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:u}:(n.isBackwards=l,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=e,n.tailMode=u)}function Xo(t,l,e){var a=l.pendingProps,u=a.revealOrder,n=a.tail;if(Xt(t,l,a.children,e),a=Ct.current,(a&2)!==0)a=a&1|2,l.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Go(t,e,l);else if(t.tag===19)Go(t,e,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}switch(H(Ct,a),u){case"forwards":for(e=l.child,u=null;e!==null;)t=e.alternate,t!==null&&sn(t)===null&&(u=e),e=e.sibling;e=u,e===null?(u=l.child,l.child=null):(u=e.sibling,e.sibling=null),vc(l,!1,u,e,n);break;case"backwards":for(e=null,u=l.child,l.child=null;u!==null;){if(t=u.alternate,t!==null&&sn(t)===null){l.child=u;break}t=u.sibling,u.sibling=e,e=u,u=t}vc(l,!0,e,null,n);break;case"together":vc(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Gl(t,l,e){if(t!==null&&(l.dependencies=t.dependencies),ce|=l.lanes,(e&l.childLanes)===0)if(t!==null){if(Xa(t,l,e,!1),(e&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(s(153));if(l.child!==null){for(t=l.child,e=Hl(t,t.pendingProps),l.child=e,e.return=l;t.sibling!==null;)t=t.sibling,e=e.sibling=Hl(t,t.pendingProps),e.return=l;e.sibling=null}return l.child}function mc(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Ju(t)))}function I0(t,l,e){switch(l.tag){case 3:gt(l,l.stateNode.containerInfo),$l(l,Ht,t.memoizedState.cache),La();break;case 27:case 5:Zn(l);break;case 4:gt(l,l.stateNode.containerInfo);break;case 10:$l(l,l.type,l.memoizedProps.value);break;case 13:var a=l.memoizedState;if(a!==null)return a.dehydrated!==null?(le(l),l.flags|=128,null):(e&l.child.childLanes)!==0?Lo(t,l,e):(le(l),t=Gl(t,l,e),t!==null?t.sibling:null);le(l);break;case 19:var u=(t.flags&128)!==0;if(a=(e&l.childLanes)!==0,a||(Xa(t,l,e,!1),a=(e&l.childLanes)!==0),u){if(a)return Xo(t,l,e);l.flags|=128}if(u=l.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),H(Ct,Ct.current),a)break;return null;case 22:case 23:return l.lanes=0,Co(t,l,e);case 24:$l(l,Ht,t.memoizedState.cache)}return Gl(t,l,e)}function Qo(t,l,e){if(t!==null)if(t.memoizedProps!==l.pendingProps)xt=!0;else{if(!mc(t,e)&&(l.flags&128)===0)return xt=!1,I0(t,l,e);xt=(t.flags&131072)!==0}else xt=!1,nt&&(l.flags&1048576)!==0&&hs(l,Ku,l.index);switch(l.lanes=0,l.tag){case 16:t:{t=l.pendingProps;var a=l.elementType,u=a._init;if(a=u(a._payload),l.type=a,typeof a=="function")pi(a)?(t=Ce(a,t),l.tag=1,l=Yo(null,l,a,t,e)):(l.tag=0,l=cc(null,l,a,t,e));else{if(a!=null){if(u=a.$$typeof,u===zt){l.tag=11,l=Ro(null,l,a,t,e);break t}else if(u===Et){l.tag=14,l=No(null,l,a,t,e);break t}}throw l=Se(a)||a,Error(s(306,l,""))}}return l;case 0:return cc(t,l,l.type,l.pendingProps,e);case 1:return a=l.type,u=Ce(a,l.pendingProps),Yo(t,l,a,u,e);case 3:t:{if(gt(l,l.stateNode.containerInfo),t===null)throw Error(s(387));a=l.pendingProps;var n=l.memoizedState;u=n.element,xi(t,l),wa(l,a,null,e);var i=l.memoizedState;if(a=i.cache,$l(l,Ht,a),a!==n.cache&&Ni(l,[Ht],e,!0),Ja(),a=i.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=n,l.memoizedState=n,l.flags&256){l=xo(t,l,a,e);break t}else if(a!==u){u=vl(Error(s(424)),l),Ga(u),l=xo(t,l,a,e);break t}else{switch(t=l.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(At=Al(t.firstChild),wt=l,nt=!0,_e=null,Ol=!0,e=bo(l,null,a,e),l.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(La(),a===u){l=Gl(t,l,e);break t}Xt(t,l,a,e)}l=l.child}return l;case 26:return dn(t,l),t===null?(e=Kr(l.type,null,l.pendingProps,null))?l.memoizedState=e:nt||(e=l.type,t=l.pendingProps,a=_n(k.current).createElement(e),a[Vt]=l,a[kt]=t,jt(a,e,t),Yt(a),l.stateNode=a):l.memoizedState=Kr(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Zn(l),t===null&&nt&&(a=l.stateNode=jr(l.type,l.pendingProps,k.current),wt=l,Ol=!0,u=At,re(l.type)?(kc=u,At=Al(a.firstChild)):At=u),Xt(t,l,l.pendingProps.children,e),dn(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&nt&&((u=a=At)&&(a=zv(a,l.type,l.pendingProps,Ol),a!==null?(l.stateNode=a,wt=l,At=Al(a.firstChild),Ol=!1,u=!0):u=!1),u||De(l)),Zn(l),u=l.type,n=l.pendingProps,i=t!==null?t.memoizedProps:null,a=n.children,Vc(u,n)?a=null:i!==null&&Vc(u,i)&&(l.flags|=32),l.memoizedState!==null&&(u=Zi(t,l,V0,null,null,e),yu._currentValue=u),dn(t,l),Xt(t,l,a,e),l.child;case 6:return t===null&&nt&&((t=e=At)&&(e=_v(e,l.pendingProps,Ol),e!==null?(l.stateNode=e,wt=l,At=null,t=!0):t=!1),t||De(l)),null;case 13:return Lo(t,l,e);case 4:return gt(l,l.stateNode.containerInfo),a=l.pendingProps,t===null?l.child=fa(l,null,a,e):Xt(t,l,a,e),l.child;case 11:return Ro(t,l,l.type,l.pendingProps,e);case 7:return Xt(t,l,l.pendingProps,e),l.child;case 8:return Xt(t,l,l.pendingProps.children,e),l.child;case 12:return Xt(t,l,l.pendingProps.children,e),l.child;case 10:return a=l.pendingProps,$l(l,l.type,a.value),Xt(t,l,a.children,e),l.child;case 9:return u=l.type._context,a=l.pendingProps.children,Re(l),u=Kt(u),a=a(u),l.flags|=1,Xt(t,l,a,e),l.child;case 14:return No(t,l,l.type,l.pendingProps,e);case 15:return Ho(t,l,l.type,l.pendingProps,e);case 19:return Xo(t,l,e);case 31:return a=l.pendingProps,e=l.mode,a={mode:a.mode,children:a.children},t===null?(e=vn(a,e),e.ref=l.ref,l.child=e,e.return=l,l=e):(e=Hl(t.child,a),e.ref=l.ref,l.child=e,e.return=l,l=e),l;case 22:return Co(t,l,e);case 24:return Re(l),a=Kt(Ht),t===null?(u=qi(),u===null&&(u=ht,n=Hi(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=e),u=n),l.memoizedState={parent:a,cache:u},Yi(l),$l(l,Ht,u)):((t.lanes&e)!==0&&(xi(t,l),wa(l,null,null,e),Ja()),u=t.memoizedState,n=l.memoizedState,u.parent!==a?(u={parent:a,cache:a},l.memoizedState=u,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=u),$l(l,Ht,a)):(a=n.cache,$l(l,Ht,a),a!==u.cache&&Ni(l,[Ht],e,!0))),Xt(t,l,l.pendingProps.children,e),l.child;case 29:throw l.pendingProps}throw Error(s(156,l.tag))}function Xl(t){t.flags|=4}function jo(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!$r(l)){if(l=gl.current,l!==null&&((lt&4194048)===lt?Ml!==null:(lt&62914560)!==lt&&(lt&536870912)===0||l!==Ml))throw Va=Bi,Os;t.flags|=8192}}function mn(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?bf():536870912,t.lanes|=l,da|=l)}function tu(t,l){if(!nt)switch(t.tailMode){case"hidden":l=t.tail;for(var e=null;l!==null;)l.alternate!==null&&(e=l),l=l.sibling;e===null?t.tail=null:e.sibling=null;break;case"collapsed":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Tt(t){var l=t.alternate!==null&&t.alternate.child===t.child,e=0,a=0;if(l)for(var u=t.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=e,l}function P0(t,l,e){var a=l.pendingProps;switch(_i(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tt(l),null;case 1:return Tt(l),null;case 3:return e=l.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Yl(Ht),Jl(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(t===null||t.child===null)&&(xa(l)?Xl(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,bs())),Tt(l),null;case 26:return e=l.memoizedState,t===null?(Xl(l),e!==null?(Tt(l),jo(l,e)):(Tt(l),l.flags&=-16777217)):e?e!==t.memoizedState?(Xl(l),Tt(l),jo(l,e)):(Tt(l),l.flags&=-16777217):(t.memoizedProps!==a&&Xl(l),Tt(l),l.flags&=-16777217),null;case 27:Ou(l),e=k.current;var u=l.type;if(t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Xl(l);else{if(!a){if(l.stateNode===null)throw Error(s(166));return Tt(l),null}t=Q.current,xa(l)?gs(l):(t=jr(u,a,e),l.stateNode=t,Xl(l))}return Tt(l),null;case 5:if(Ou(l),e=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Xl(l);else{if(!a){if(l.stateNode===null)throw Error(s(166));return Tt(l),null}if(t=Q.current,xa(l))gs(l);else{switch(u=_n(k.current),t){case 1:t=u.createElementNS("http://www.w3.org/2000/svg",e);break;case 2:t=u.createElementNS("http://www.w3.org/1998/Math/MathML",e);break;default:switch(e){case"svg":t=u.createElementNS("http://www.w3.org/2000/svg",e);break;case"math":t=u.createElementNS("http://www.w3.org/1998/Math/MathML",e);break;case"script":t=u.createElement("div"),t.innerHTML=" + + + +
+ + \ No newline at end of file diff --git a/dist/samples/react-ui-kit-search-text/docs/index.html b/dist/samples/react-ui-kit-search-text/docs/index.html new file mode 100644 index 00000000..d34e1ee9 --- /dev/null +++ b/dist/samples/react-ui-kit-search-text/docs/index.html @@ -0,0 +1,21 @@ + + + + + + + React - Places UI Kit Search Text + + + + +
+ + + \ No newline at end of file diff --git a/dist/samples/react-ui-kit-search-text/docs/src/app.js b/dist/samples/react-ui-kit-search-text/docs/src/app.js new file mode 100644 index 00000000..9bdcb192 --- /dev/null +++ b/dist/samples/react-ui-kit-search-text/docs/src/app.js @@ -0,0 +1,129 @@ +import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{ /* [START maps_react_places_ui_kit_search_text] */ } +import React, { useState, useEffect, useRef } from 'react'; +import { createRoot } from 'react-dom/client'; +import { APIProvider, Map, AdvancedMarker, useMap, useMapsLibrary } from '@vis.gl/react-google-maps'; +import './styles.css'; +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; +if (!API_KEY) { + console.error('Missing Google Maps API key'); +} +const App = () => (_jsx(APIProvider, { apiKey: API_KEY, libraries: ['maps', 'places', 'marker', 'geometry', 'core'], version: "weekly", children: _jsx(PlacesSearchLayout, {}) })); +const PlacesSearchLayout = () => { + const [query, setQuery] = useState(''); + const [places, setPlaces] = useState([]); + const [selectedPlace, setSelectedPlace] = useState(null); + const placeSearchRef = useRef(null); + const queryInputRef = useRef(null); + const handleSearch = () => { + if (queryInputRef.current) { + setQuery(queryInputRef.current.value); + } + }; + return (_jsxs(_Fragment, { children: [_jsx("div", { className: "map-container", children: _jsxs(Map, { defaultCenter: { lat: 48.8566, lng: 2.3522 }, defaultZoom: 14, mapId: "DEMO_MAP_ID", clickableIcons: false, onClick: () => setSelectedPlace(null), children: [_jsx(PlaceSearchController, { placeSearchRef: placeSearchRef, query: query, setPlaces: setPlaces, setSelectedPlace: setSelectedPlace, selectedPlace: selectedPlace }), places.map(place => (place.location && (_jsx(AdvancedMarker, { position: place.location, onClick: () => { + setSelectedPlace(place); + } }, place.id))))] }) }), _jsx("div", { className: "place-list-wrapper", ref: placeSearchRef }), _jsxs("div", { className: "controls", children: [_jsx("input", { type: "text", ref: queryInputRef, className: "query-input" }), _jsx("button", { className: "search-button", onClick: handleSearch, children: "Search" })] })] })); +}; +const PlaceSearchController = ({ placeSearchRef, query, setPlaces, setSelectedPlace, selectedPlace }) => { + const map = useMap(); + const coreLib = useMapsLibrary('core'); + const markerLib = useMapsLibrary('marker'); + const placeRequestRef = useRef(null); + const popupMarkerRef = useRef(null); + const placeDetailsRef = useRef(null); + // Initialize the popup marker and place details element once + useEffect(() => { + if (!markerLib || !map) + return; + const placeDetails = document.createElement('gmp-place-details-compact'); + placeDetails.setAttribute('orientation', 'horizontal'); + placeDetailsRef.current = placeDetails; + const placeRequest = document.createElement('gmp-place-details-place-request'); + placeRequestRef.current = placeRequest; + const allContent = document.createElement('gmp-place-all-content'); + placeDetails.appendChild(placeRequest); + placeDetails.appendChild(allContent); + popupMarkerRef.current = new markerLib.AdvancedMarkerElement({ + map: null, + content: placeDetails, + zIndex: 100 + }); + }, [markerLib, map]); + // Handle place search logic by recreating the component on query change + useEffect(() => { + if (!map || !coreLib || !placeSearchRef.current) + return; + if (!query) { + placeSearchRef.current.innerHTML = ''; + setPlaces([]); + return; + } + const bounds = map.getBounds(); + if (!bounds) + return; + const placeSearch = document.createElement('gmp-place-search'); + placeSearch.setAttribute('selectable', ''); + placeSearch.setAttribute('orientation', 'vertical'); + placeSearch.setAttribute('attribution-position', 'top'); + placeSearch.style.display = 'block'; + const textRequest = document.createElement('gmp-place-text-search-request'); + textRequest.textQuery = query; + textRequest.locationBias = bounds; + placeSearch.appendChild(textRequest); + const allContent = document.createElement('gmp-place-all-content'); + placeSearch.appendChild(allContent); + placeSearchRef.current.innerHTML = ''; + placeSearchRef.current.appendChild(placeSearch); + const handleLoad = () => { + const newPlaces = placeSearch.places || []; + setPlaces(newPlaces); + if (newPlaces.length > 0) { + const newBounds = new coreLib.LatLngBounds(); + newPlaces.forEach((p) => p.location && newBounds.extend(p.location)); + if (!newBounds.isEmpty()) + map.fitBounds(newBounds); + } + }; + const handleSelect = (event) => setSelectedPlace(event.place); + placeSearch.addEventListener('gmp-load', handleLoad); + placeSearch.addEventListener('gmp-select', handleSelect); + return () => { + placeSearch.removeEventListener('gmp-load', handleLoad); + placeSearch.removeEventListener('gmp-select', handleSelect); + }; + }, [map, coreLib, query, placeSearchRef, setPlaces, setSelectedPlace]); + // Handle popup display logic + useEffect(() => { + if (!map || !popupMarkerRef.current || !placeRequestRef.current || !placeDetailsRef.current) + return; + if (selectedPlace && selectedPlace.location) { + placeRequestRef.current.place = selectedPlace; + if (placeDetailsRef.current) + placeDetailsRef.current.style.display = 'block'; + popupMarkerRef.current.position = selectedPlace.location; + popupMarkerRef.current.map = map; + if (selectedPlace.viewport) { + map.fitBounds(selectedPlace.viewport, { top: 0, left: 400 }); + placeDetailsRef.current.addEventListener('gmp-load', () => { + if (selectedPlace.viewport) { + map.fitBounds(selectedPlace.viewport, { top: 0, right: 450 }); + } + }, { once: true }); + } + } + else { + popupMarkerRef.current.map = null; + if (placeDetailsRef.current) + placeDetailsRef.current.style.display = 'none'; + } + }, [selectedPlace, map]); + return null; +}; +const root = createRoot(document.getElementById('app')); +root.render(_jsx(React.StrictMode, { children: _jsx(App, {}) })); +{ /* [END maps_react_places_ui_kit_search_text] */ } diff --git a/dist/samples/react-ui-kit-search-text/docs/src/app.tsx b/dist/samples/react-ui-kit-search-text/docs/src/app.tsx new file mode 100644 index 00000000..8da1d210 --- /dev/null +++ b/dist/samples/react-ui-kit-search-text/docs/src/app.tsx @@ -0,0 +1,214 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +{/* [START maps_react_places_ui_kit_search_text] */} +import React, {useState, useEffect, useRef, type RefObject} from 'react'; +import {createRoot} from 'react-dom/client'; +import { + APIProvider, + Map, + AdvancedMarker, + useMap, + useMapsLibrary +} from '@vis.gl/react-google-maps'; + +import './styles.css'; + +const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"; + +if (!API_KEY) { + console.error('Missing Google Maps API key'); +} + +const App = () => ( + + + +); + +const PlacesSearchLayout = () => { + const [query, setQuery] = useState(''); + const [places, setPlaces] = useState([]); + const [selectedPlace, setSelectedPlace] = useState(null); + + const placeSearchRef = useRef(null); + const queryInputRef = useRef(null); + + const handleSearch = () => { + if (queryInputRef.current) { + setQuery(queryInputRef.current.value); + } + }; + + return ( + <> +
+ setSelectedPlace(null)} + > + + {places.map(place => ( + place.location && ( + { + setSelectedPlace(place); + }} + /> + ) + ))} + +
+
+
+ + +
+ + ); +}; + +interface PlaceSearchControllerProps { + placeSearchRef: RefObject; + query: string; + setPlaces: (places: any[]) => void; + setSelectedPlace: (place: any | null) => void; + selectedPlace: any | null; +} + +const PlaceSearchController = ({ + placeSearchRef, + query, + setPlaces, + setSelectedPlace, + selectedPlace +}: PlaceSearchControllerProps) => { + const map = useMap(); + const coreLib = useMapsLibrary('core'); + const markerLib = useMapsLibrary('marker'); + + const placeRequestRef = useRef(null); + const popupMarkerRef = useRef(null); + const placeDetailsRef = useRef(null); + + // Initialize the popup marker and place details element once + useEffect(() => { + if (!markerLib || !map) return; + + const placeDetails = document.createElement('gmp-place-details-compact'); + placeDetails.setAttribute('orientation', 'horizontal'); + placeDetailsRef.current = placeDetails; + + const placeRequest = document.createElement('gmp-place-details-place-request'); + placeRequestRef.current = placeRequest; + + const allContent = document.createElement('gmp-place-all-content'); + placeDetails.appendChild(placeRequest); + placeDetails.appendChild(allContent); + + popupMarkerRef.current = new markerLib.AdvancedMarkerElement({ + map: null, + content: placeDetails, + zIndex: 100 + }); + }, [markerLib, map]); + + // Handle place search logic by recreating the component on query change + useEffect(() => { + if (!map || !coreLib || !placeSearchRef.current) return; + + if (!query) { + placeSearchRef.current.innerHTML = ''; + setPlaces([]); + return; + } + + const bounds = map.getBounds(); + if (!bounds) return; + + const placeSearch = document.createElement('gmp-place-search'); + placeSearch.setAttribute('selectable', ''); + placeSearch.setAttribute('orientation', 'vertical'); + placeSearch.setAttribute('attribution-position', 'top'); + placeSearch.style.display = 'block'; + + const textRequest = document.createElement('gmp-place-text-search-request'); + (textRequest as any).textQuery = query; + (textRequest as any).locationBias = bounds; + placeSearch.appendChild(textRequest); + + const allContent = document.createElement('gmp-place-all-content'); + placeSearch.appendChild(allContent); + + placeSearchRef.current.innerHTML = ''; + placeSearchRef.current.appendChild(placeSearch); + + const handleLoad = () => { + const newPlaces = (placeSearch as any).places || []; + setPlaces(newPlaces); + if (newPlaces.length > 0) { + const newBounds = new coreLib.LatLngBounds(); + newPlaces.forEach((p: any) => p.location && newBounds.extend(p.location)); + if (!newBounds.isEmpty()) map.fitBounds(newBounds); + } + }; + const handleSelect = (event: any) => setSelectedPlace(event.place); + + placeSearch.addEventListener('gmp-load', handleLoad); + placeSearch.addEventListener('gmp-select', handleSelect); + + return () => { + placeSearch.removeEventListener('gmp-load', handleLoad); + placeSearch.removeEventListener('gmp-select', handleSelect); + }; + }, [map, coreLib, query, placeSearchRef, setPlaces, setSelectedPlace]); + + // Handle popup display logic + useEffect(() => { + if (!map || !popupMarkerRef.current || !placeRequestRef.current || !placeDetailsRef.current) return; + + if (selectedPlace && selectedPlace.location) { + (placeRequestRef.current as any).place = selectedPlace; + if (placeDetailsRef.current) placeDetailsRef.current.style.display = 'block'; + + popupMarkerRef.current.position = selectedPlace.location; + popupMarkerRef.current.map = map; + + if (selectedPlace.viewport) { + map.fitBounds(selectedPlace.viewport, {top: 0, left: 400}); + + placeDetailsRef.current.addEventListener('gmp-load',() => { + if (selectedPlace.viewport) { + map.fitBounds(selectedPlace.viewport, {top: 0, right: 450}); + } + }, { once: true }); + } + } else { + popupMarkerRef.current.map = null; + if (placeDetailsRef.current) placeDetailsRef.current.style.display = 'none'; + } + }, [selectedPlace, map]); + + return null; +}; + +const root = createRoot(document.getElementById('app') as HTMLElement); +root.render( + + + +); +{/* [END maps_react_places_ui_kit_search_text] */} diff --git a/dist/samples/react-ui-kit-search-text/docs/src/styles.css b/dist/samples/react-ui-kit-search-text/docs/src/styles.css new file mode 100644 index 00000000..634b4e6c --- /dev/null +++ b/dist/samples/react-ui-kit-search-text/docs/src/styles.css @@ -0,0 +1,131 @@ +/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +html, +body { + height: 100%; + margin: 0; +} + +body { + display: flex; + flex-direction: column; + font-family: Arial, Helvetica, sans-serif; +} + +h1 { + font-size: large; + text-align: center; +} + +#app { + height: 100%; + width: 100%; +} + +.map-container { + position: absolute; + height: 100%; + width: 100%; +} + +.controls { + position: absolute; + top: 40px; + right: 40px; +} + +.search-button { + background-color: #4b4b4b; + color: #fff; + border: 1px solid #000; + border-radius: 10px; + width: 80px; + height: 40px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35); +} + +.query-input { + border: 1px solid #ccc; + border-radius: 10px; + width: 315px; + height: 40px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35); +} + +.place-list-wrapper { + position: absolute; + top: 100px; + right: 40px; + width: 400px; + max-height: 500px; + overflow-y: auto; + z-index: 10; +} + +gmp-place-search { + width: 100%; + margin: 0; + border-radius: 10px; + display: block; + border: none; +} + +gmp-place-details-compact { + width: 350px; + max-height: 800px; + display: none; + border: none; + transform: translateY(calc(-40%)); +} + +gmp-place-details-compact::after { + content: ''; + position: absolute; + bottom: -18px; + left: 50%; + transform: translateX(-50%); + width: 20px; + height: 20px; + background-color: white; + box-shadow: 2px 2px 5px 0 rgba(0,0,0,0.2); + z-index: 1; + clip-path: polygon(0% 0%, 100% 0%, 50% 100%); + transform-origin: center center; +} + +@media (max-width: 768px) { + .place-list-wrapper { + position: absolute; + width: 100%; + top: 0; + right: 0; + max-height: 40vh; + z-index: 10; + } + + .controls { + position: absolute; + top: auto; + bottom: 10px; + right: 0; + width: 100%; + padding: 10px; + box-sizing: border-box; + z-index: 10; + } + + .query-input, .search-button { + width: 100%; + margin-bottom: 10px; + } +} + +@media (prefers-color-scheme: dark) { + /* Style for Dark mode */ + gmp-place-details-compact::after { + background-color: #131314; + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index dfe0ee47..72a1b9aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1402,16 +1402,16 @@ "resolved": "samples/react-ui-kit-place-details", "link": true }, - "node_modules/@js-api-samples/react-ui-kit-place-details-by-latlng": { - "resolved": "samples/react-ui-kit-place-details-latlng", + "node_modules/@js-api-samples/react-ui-kit-place-details-compact": { + "resolved": "samples/react-ui-kit-place-details-compact", "link": true }, - "node_modules/@js-api-samples/react-ui-kit-place-details-by-latlng-compact": { - "resolved": "samples/react-ui-kit-place-details-latlng-compact", + "node_modules/@js-api-samples/react-ui-kit-place-details-latlng": { + "resolved": "samples/react-ui-kit-place-details-latlng", "link": true }, - "node_modules/@js-api-samples/react-ui-kit-place-details-compact": { - "resolved": "samples/react-ui-kit-place-details-compact", + "node_modules/@js-api-samples/react-ui-kit-place-details-latlng-compact": { + "resolved": "samples/react-ui-kit-place-details-latlng-compact", "link": true }, "node_modules/@js-api-samples/routes-compute-routes": { @@ -6023,7 +6023,7 @@ } }, "samples/react-ui-kit-place-details-latlng": { - "name": "@js-api-samples/react-ui-kit-place-details-by-latlng", + "name": "@js-api-samples/react-ui-kit-place-details-latlng", "version": "1.0.0", "dependencies": { "@vis.gl/react-google-maps": "1.5.5", @@ -6039,7 +6039,7 @@ } }, "samples/react-ui-kit-place-details-latlng-compact": { - "name": "@js-api-samples/react-ui-kit-place-details-by-latlng-compact", + "name": "@js-api-samples/react-ui-kit-place-details-latlng-compact", "version": "1.0.0", "dependencies": { "@vis.gl/react-google-maps": "latest",