naksha-components-react 4.0.1 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,251 +1 @@
1
- import{a as In,b as ka,c as ct,d as tt,e as Mt,f as Ra,g as rt,h as Fi,i as on,j as G}from"./chunk-Y5JLKQX5.js";var Er=Mt((dJ,qR)=>{G();var KF=Object.create,ig=Object.defineProperty,JF=Object.getOwnPropertyDescriptor,XF=Object.getOwnPropertyNames,ej=Object.getPrototypeOf,tj=Object.prototype.hasOwnProperty,FR=e=>ig(e,"__esModule",{value:!0}),nj=(e,t)=>{for(var r in t)ig(e,r,{get:t[r],enumerable:!0})},jR=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of XF(t))!tj.call(e,s)&&(r||s!=="default")&&ig(e,s,{get:()=>t[s],enumerable:!(o=JF(t,s))||o.enumerable});return e},rj=(e,t)=>jR(FR(ig(e!=null?KF(ej(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),ij=(e=>(t,r)=>e&&e.get(t)||(r=jR(FR({}),t,1),e&&e.set(t,r),r))(typeof WeakMap<"u"?new WeakMap:0),BR={};nj(BR,{GMAPS_AUTOCOMPLETE_FIELDS:()=>aj,GMAPS_LIBRARIES:()=>oj,LICENSES:()=>lj,MapStyles:()=>HR,TranslationProvider:()=>cj,adminBoundries:()=>uj,defaultMapStyles:()=>sj,defaultViewState:()=>VR,formatDate:()=>hj,getByPath:()=>WR,mapboxToGmapsViewState:()=>pj,useDebounce:()=>dj,useT:()=>fj});var aj=["formatted_address","geometry","name"],oj={DEFAULT:["drawing","places"],AUTOCOMPLETE:["drawing","places"]},lj={"CC-BY":"//creativecommons.org/licenses/by/4.0","BY-SA":"//creativecommons.org/licenses/by-sa/4.0","BY-ND":"//creativecommons.org/licenses/by-nd/4.0","BY-NC":"//creativecommons.org/licenses/by-nc/4.0","BY-NC-SA":"//creativecommons.org/licenses/by-nc-sa/4.0","BY-NC-ND":"//creativecommons.org/licenses/by-nc-nd/4.0"},HR=(e=>(e.MAP_STREETS="0",e.MAP_SATELLITE="1",e.MAP_DARK="2",e.MAP_OSM="3",e))(HR||{}),VR={latitude:22.5,longitude:79,zoom:3,bearing:0,pitch:0},sj=[{text:"Streets",key:"0",style:"mapbox://styles/biodiv/cku4aoj5k1g9h17o5r3tjsntn"},{text:"Satellite",key:"1",style:"mapbox://styles/biodiv/cku49ca8q1esz18o7gxfjmh5r"},{text:"Dark",key:"2",style:"mapbox://styles/biodiv/cku4a35961fgo17mykoq76se1"},{text:"OSM",key:"3",style:"https://unpkg.com/maplibre-gl-styles@0.0.1/styles/osm-mapnik/v8/india.json"}],uj=["admin-0-boundary","admin-1-boundary","admin-0-boundary-disputed","admin-1-boundary-bg","admin-0-boundary-bg"],Kx=rj(ct("react")),WR=(e,t)=>(t.split(".").forEach(function(r){!e||(e=e[r])}),e),$R=(0,Kx.createContext)({}),cj=({localeStrings:e,lang:t="en",children:r})=>{let o=s=>{let f=WR(e[t],s);return f||console.warn(`Translation '${s}' for locale '${t}' not found.`),f};return Kx.default.createElement($R.Provider,{value:{t:o}},r)};function fj(){return(0,Kx.useContext)($R)}var UR=ct("react");function dj(e,t){let[r,o]=(0,UR.useState)(e);return(0,UR.useEffect)(()=>{let s=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(s)}},[e,t]),r}var pj=(e=VR,t=1)=>({center:{lat:e.latitude,lng:e.longitude},zoom:e.zoom+t}),hj=e=>{let t=e.getFullYear().toString(),r=(e.getMonth()+101).toString().substring(1),o=(e.getDate()+100).toString().substring(1);return`${t}-${r}-${o}`};qR.exports=ij(BR)});var ag=Mt((pJ,YR)=>{"use strict";G();var GR=Object.getOwnPropertySymbols,vj=Object.prototype.hasOwnProperty,mj=Object.prototype.propertyIsEnumerable;function gj(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function yj(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(t).map(function(f){return t[f]});if(o.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(f){s[f]=f}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}YR.exports=yj()?Object.assign:function(e,t){for(var r,o=gj(e),s,f=1;f<arguments.length;f++){r=Object(arguments[f]);for(var d in r)vj.call(r,d)&&(o[d]=r[d]);if(GR){s=GR(r);for(var p=0;p<s.length;p++)mj.call(r,s[p])&&(o[s[p]]=r[s[p]])}}return o}});var eL=Mt(Gt=>{"use strict";G();var Ac,cp,ug,iS;typeof performance=="object"&&typeof performance.now=="function"?(ZR=performance,Gt.unstable_now=function(){return ZR.now()}):(Jx=Date,QR=Jx.now(),Gt.unstable_now=function(){return Jx.now()-QR});var ZR,Jx,QR;typeof window>"u"||typeof MessageChannel!="function"?(Pc=null,Xx=null,eS=function(){if(Pc!==null)try{var e=Gt.unstable_now();Pc(!0,e),Pc=null}catch(t){throw setTimeout(eS,0),t}},Ac=function(e){Pc!==null?setTimeout(Ac,0,e):(Pc=e,setTimeout(eS,0))},cp=function(e,t){Xx=setTimeout(e,t)},ug=function(){clearTimeout(Xx)},Gt.unstable_shouldYield=function(){return!1},iS=Gt.unstable_forceFrameRate=function(){}):(KR=window.setTimeout,JR=window.clearTimeout,typeof console<"u"&&(XR=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof XR!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),sp=!1,up=null,og=-1,tS=5,nS=0,Gt.unstable_shouldYield=function(){return Gt.unstable_now()>=nS},iS=function(){},Gt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):tS=0<e?Math.floor(1e3/e):5},rS=new MessageChannel,lg=rS.port2,rS.port1.onmessage=function(){if(up!==null){var e=Gt.unstable_now();nS=e+tS;try{up(!0,e)?lg.postMessage(null):(sp=!1,up=null)}catch(t){throw lg.postMessage(null),t}}else sp=!1},Ac=function(e){up=e,sp||(sp=!0,lg.postMessage(null))},cp=function(e,t){og=KR(function(){e(Gt.unstable_now())},t)},ug=function(){JR(og),og=-1});var Pc,Xx,eS,KR,JR,XR,sp,up,og,tS,nS,rS,lg;function aS(e,t){var r=e.length;e.push(t);e:for(;;){var o=r-1>>>1,s=e[o];if(s!==void 0&&0<sg(s,t))e[o]=t,e[r]=s,r=o;else break e}}function La(e){return e=e[0],e===void 0?null:e}function cg(e){var t=e[0];if(t!==void 0){var r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,s=e.length;o<s;){var f=2*(o+1)-1,d=e[f],p=f+1,m=e[p];if(d!==void 0&&0>sg(d,r))m!==void 0&&0>sg(m,d)?(e[o]=m,e[p]=r,o=p):(e[o]=d,e[f]=r,o=f);else if(m!==void 0&&0>sg(m,r))e[o]=m,e[p]=r,o=p;else break e}}return t}return null}function sg(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}var ao=[],Al=[],bj=1,ia=null,zr=3,fg=!1,qs=!1,fp=!1;function oS(e){for(var t=La(Al);t!==null;){if(t.callback===null)cg(Al);else if(t.startTime<=e)cg(Al),t.sortIndex=t.expirationTime,aS(ao,t);else break;t=La(Al)}}function lS(e){if(fp=!1,oS(e),!qs)if(La(ao)!==null)qs=!0,Ac(sS);else{var t=La(Al);t!==null&&cp(lS,t.startTime-e)}}function sS(e,t){qs=!1,fp&&(fp=!1,ug()),fg=!0;var r=zr;try{for(oS(t),ia=La(ao);ia!==null&&(!(ia.expirationTime>t)||e&&!Gt.unstable_shouldYield());){var o=ia.callback;if(typeof o=="function"){ia.callback=null,zr=ia.priorityLevel;var s=o(ia.expirationTime<=t);t=Gt.unstable_now(),typeof s=="function"?ia.callback=s:ia===La(ao)&&cg(ao),oS(t)}else cg(ao);ia=La(ao)}if(ia!==null)var f=!0;else{var d=La(Al);d!==null&&cp(lS,d.startTime-t),f=!1}return f}finally{ia=null,zr=r,fg=!1}}var xj=iS;Gt.unstable_IdlePriority=5;Gt.unstable_ImmediatePriority=1;Gt.unstable_LowPriority=4;Gt.unstable_NormalPriority=3;Gt.unstable_Profiling=null;Gt.unstable_UserBlockingPriority=2;Gt.unstable_cancelCallback=function(e){e.callback=null};Gt.unstable_continueExecution=function(){qs||fg||(qs=!0,Ac(sS))};Gt.unstable_getCurrentPriorityLevel=function(){return zr};Gt.unstable_getFirstCallbackNode=function(){return La(ao)};Gt.unstable_next=function(e){switch(zr){case 1:case 2:case 3:var t=3;break;default:t=zr}var r=zr;zr=t;try{return e()}finally{zr=r}};Gt.unstable_pauseExecution=function(){};Gt.unstable_requestPaint=xj;Gt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=zr;zr=e;try{return t()}finally{zr=r}};Gt.unstable_scheduleCallback=function(e,t,r){var o=Gt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=r+s,e={id:bj++,callback:t,priorityLevel:e,startTime:r,expirationTime:s,sortIndex:-1},r>o?(e.sortIndex=r,aS(Al,e),La(ao)===null&&e===La(Al)&&(fp?ug():fp=!0,cp(lS,r-o))):(e.sortIndex=s,aS(ao,e),qs||fg||(qs=!0,Ac(sS))),e};Gt.unstable_wrapCallback=function(e){var t=zr;return function(){var r=zr;zr=t;try{return e.apply(this,arguments)}finally{zr=r}}}});var tL=Mt(Vt=>{"use strict";G();process.env.NODE_ENV!=="production"&&function(){"use strict";var e=!1,t=!1,r,o,s,f,d=typeof performance=="object"&&typeof performance.now=="function";if(d){var p=performance;Vt.unstable_now=function(){return p.now()}}else{var m=Date,y=m.now();Vt.unstable_now=function(){return m.now()-y}}if(typeof window>"u"||typeof MessageChannel!="function"){var E=null,w=null,k=function(){if(E!==null)try{var ke=Vt.unstable_now(),Ue=!0;E(Ue,ke),E=null}catch(dt){throw setTimeout(k,0),dt}};r=function(ke){E!==null?setTimeout(r,0,ke):(E=ke,setTimeout(k,0))},o=function(ke,Ue){w=setTimeout(ke,Ue)},s=function(){clearTimeout(w)},Vt.unstable_shouldYield=function(){return!1},f=Vt.unstable_forceFrameRate=function(){}}else{var O=window.setTimeout,A=window.clearTimeout;if(typeof console<"u"){var W=window.requestAnimationFrame,P=window.cancelAnimationFrame;typeof W!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof P!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var R=!1,D=null,T=-1,M=5,U=0;Vt.unstable_shouldYield=function(){return Vt.unstable_now()>=U},f=function(){},Vt.unstable_forceFrameRate=function(ke){if(ke<0||ke>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}ke>0?M=Math.floor(1e3/ke):M=5};var Y=function(){if(D!==null){var ke=Vt.unstable_now();U=ke+M;var Ue=!0;try{var dt=D(Ue,ke);dt?ne.postMessage(null):(R=!1,D=null)}catch(kt){throw ne.postMessage(null),kt}}else R=!1},F=new MessageChannel,ne=F.port2;F.port1.onmessage=Y,r=function(ke){D=ke,R||(R=!0,ne.postMessage(null))},o=function(ke,Ue){T=O(function(){ke(Vt.unstable_now())},Ue)},s=function(){A(T),T=-1}}function ue(ke,Ue){var dt=ke.length;ke.push(Ue),ae(ke,Ue,dt)}function Q(ke){var Ue=ke[0];return Ue===void 0?null:Ue}function B(ke){var Ue=ke[0];if(Ue!==void 0){var dt=ke.pop();return dt!==Ue&&(ke[0]=dt,H(ke,dt,0)),Ue}else return null}function ae(ke,Ue,dt){for(var kt=dt;;){var gt=kt-1>>>1,Je=ke[gt];if(Je!==void 0&&K(Je,Ue)>0)ke[gt]=Ue,ke[kt]=Je,kt=gt;else return}}function H(ke,Ue,dt){for(var kt=dt,gt=ke.length;kt<gt;){var Je=(kt+1)*2-1,ir=ke[Je],ri=Je+1,jn=ke[ri];if(ir!==void 0&&K(ir,Ue)<0)jn!==void 0&&K(jn,ir)<0?(ke[kt]=jn,ke[ri]=Ue,kt=ri):(ke[kt]=ir,ke[Je]=Ue,kt=Je);else if(jn!==void 0&&K(jn,Ue)<0)ke[kt]=jn,ke[ri]=Ue,kt=ri;else return}}function K(ke,Ue){var dt=ke.sortIndex-Ue.sortIndex;return dt!==0?dt:ke.id-Ue.id}var re=1,le=2,se=3,ce=4,de=5;function ve(ke,Ue){}var Ce=1073741823,_e=-1,Ae=250,Ye=5e3,Ne=1e4,ft=Ce,St=[],Yt=[],$r=1,mt=null,Lt=se,ze=!1,jt=!1,en=!1;function nr(ke){for(var Ue=Q(Yt);Ue!==null;){if(Ue.callback===null)B(Yt);else if(Ue.startTime<=ke)B(Yt),Ue.sortIndex=Ue.expirationTime,ue(St,Ue);else return;Ue=Q(Yt)}}function qr(ke){if(en=!1,nr(ke),!jt)if(Q(St)!==null)jt=!0,r(lr);else{var Ue=Q(Yt);Ue!==null&&o(qr,Ue.startTime-ke)}}function lr(ke,Ue){jt=!1,en&&(en=!1,s()),ze=!0;var dt=Lt;try{if(t)try{return Un(ke,Ue)}catch(gt){if(mt!==null){var kt=Vt.unstable_now();mt.isQueued=!1}throw gt}else return Un(ke,Ue)}finally{mt=null,Lt=dt,ze=!1}}function Un(ke,Ue){var dt=Ue;for(nr(dt),mt=Q(St);mt!==null&&!e&&!(mt.expirationTime>dt&&(!ke||Vt.unstable_shouldYield()));){var kt=mt.callback;if(typeof kt=="function"){mt.callback=null,Lt=mt.priorityLevel;var gt=mt.expirationTime<=dt,Je=kt(gt);dt=Vt.unstable_now(),typeof Je=="function"?mt.callback=Je:mt===Q(St)&&B(St),nr(dt)}else B(St);mt=Q(St)}if(mt!==null)return!0;var ir=Q(Yt);return ir!==null&&o(qr,ir.startTime-dt),!1}function Tt(ke,Ue){switch(ke){case re:case le:case se:case ce:case de:break;default:ke=se}var dt=Lt;Lt=ke;try{return Ue()}finally{Lt=dt}}function Bt(ke){var Ue;switch(Lt){case re:case le:case se:Ue=se;break;default:Ue=Lt;break}var dt=Lt;Lt=Ue;try{return ke()}finally{Lt=dt}}function Ot(ke){var Ue=Lt;return function(){var dt=Lt;Lt=Ue;try{return ke.apply(this,arguments)}finally{Lt=dt}}}function bn(ke,Ue,dt){var kt=Vt.unstable_now(),gt;if(typeof dt=="object"&&dt!==null){var Je=dt.delay;typeof Je=="number"&&Je>0?gt=kt+Je:gt=kt}else gt=kt;var ir;switch(ke){case re:ir=_e;break;case le:ir=Ae;break;case de:ir=ft;break;case ce:ir=Ne;break;case se:default:ir=Ye;break}var ri=gt+ir,jn={id:$r++,callback:Ue,priorityLevel:ke,startTime:gt,expirationTime:ri,sortIndex:-1};return gt>kt?(jn.sortIndex=gt,ue(Yt,jn),Q(St)===null&&jn===Q(Yt)&&(en?s():en=!0,o(qr,gt-kt))):(jn.sortIndex=ri,ue(St,jn),!jt&&!ze&&(jt=!0,r(lr))),jn}function sn(){}function rr(){!jt&&!ze&&(jt=!0,r(lr))}function sr(){return Q(St)}function zt(ke){ke.callback=null}function tn(){return Lt}var un=f,Fn=null;Vt.unstable_IdlePriority=de,Vt.unstable_ImmediatePriority=re,Vt.unstable_LowPriority=ce,Vt.unstable_NormalPriority=se,Vt.unstable_Profiling=Fn,Vt.unstable_UserBlockingPriority=le,Vt.unstable_cancelCallback=zt,Vt.unstable_continueExecution=rr,Vt.unstable_getCurrentPriorityLevel=tn,Vt.unstable_getFirstCallbackNode=sr,Vt.unstable_next=Bt,Vt.unstable_pauseExecution=sn,Vt.unstable_requestPaint=un,Vt.unstable_runWithPriority=Tt,Vt.unstable_scheduleCallback=bn,Vt.unstable_wrapCallback=Ot}()});var cS=Mt((mJ,uS)=>{"use strict";G();process.env.NODE_ENV==="production"?uS.exports=eL():uS.exports=tL()});var B3=Mt(ca=>{"use strict";G();var iy=ct("react"),Pn=ag(),mr=cS();function Re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!iy)throw Error(Re(227));var hO=new Set,Bp={};function ru(e,t){tf(e,t),tf(e+"Capture",t)}function tf(e,t){for(Bp[e]=t,e=0;e<t.length;e++)hO.add(t[e])}var $o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sj=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,nL=Object.prototype.hasOwnProperty,rL={},iL={};function Ej(e){return nL.call(iL,e)?!0:nL.call(rL,e)?!1:Sj.test(e)?iL[e]=!0:(rL[e]=!0,!1)}function wj(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Cj(e,t,r,o){if(t===null||typeof t>"u"||wj(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ei(e,t,r,o,s,f,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=d}var _r={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_r[e]=new ei(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_r[t]=new ei(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_r[e]=new ei(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_r[e]=new ei(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_r[e]=new ei(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_r[e]=new ei(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_r[e]=new ei(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_r[e]=new ei(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_r[e]=new ei(e,5,!1,e.toLowerCase(),null,!1,!1)});var bE=/[\-:]([a-z])/g;function xE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bE,xE);_r[t]=new ei(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(bE,xE);_r[t]=new ei(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(bE,xE);_r[t]=new ei(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_r[e]=new ei(e,1,!1,e.toLowerCase(),null,!1,!1)});_r.xlinkHref=new ei("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_r[e]=new ei(e,1,!1,e.toLowerCase(),null,!0,!0)});function SE(e,t,r,o){var s=_r.hasOwnProperty(t)?_r[t]:null,f=s!==null?s.type===0:o?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");f||(Cj(t,r,s,o)&&(r=null),o||s===null?Ej(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):s.mustUseProperty?e[s.propertyName]=r===null?s.type===3?!1:"":r:(t=s.attributeName,o=s.attributeNamespace,r===null?e.removeAttribute(t):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var iu=iy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Cp=60103,Ys=60106,zl=60107,EE=60108,Rp=60114,wE=60109,CE=60110,ay=60112,Lp=60113,Ng=60120,oy=60115,_E=60116,ME=60121,TE=60128,vO=60129,kE=60130,PS=60131;typeof Symbol=="function"&&Symbol.for&&(ur=Symbol.for,Cp=ur("react.element"),Ys=ur("react.portal"),zl=ur("react.fragment"),EE=ur("react.strict_mode"),Rp=ur("react.profiler"),wE=ur("react.provider"),CE=ur("react.context"),ay=ur("react.forward_ref"),Lp=ur("react.suspense"),Ng=ur("react.suspense_list"),oy=ur("react.memo"),_E=ur("react.lazy"),ME=ur("react.block"),ur("react.scope"),TE=ur("react.opaque.id"),vO=ur("react.debug_trace_mode"),kE=ur("react.offscreen"),PS=ur("react.legacy_hidden"));var ur,aL=typeof Symbol=="function"&&Symbol.iterator;function dp(e){return e===null||typeof e!="object"?null:(e=aL&&e[aL]||e["@@iterator"],typeof e=="function"?e:null)}var fS;function _p(e){if(fS===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);fS=t&&t[1]||""}return`
2
- `+fS+e}var dS=!1;function dg(e,t){if(!e||dS)return"";dS=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(m){var o=m}Reflect.construct(e,[],t)}else{try{t.call()}catch(m){o=m}e.call(t.prototype)}else{try{throw Error()}catch(m){o=m}e()}}catch(m){if(m&&o&&typeof m.stack=="string"){for(var s=m.stack.split(`
3
- `),f=o.stack.split(`
4
- `),d=s.length-1,p=f.length-1;1<=d&&0<=p&&s[d]!==f[p];)p--;for(;1<=d&&0<=p;d--,p--)if(s[d]!==f[p]){if(d!==1||p!==1)do if(d--,p--,0>p||s[d]!==f[p])return`
5
- `+s[d].replace(" at new "," at ");while(1<=d&&0<=p);break}}}finally{dS=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?_p(e):""}function _j(e){switch(e.tag){case 5:return _p(e.type);case 16:return _p("Lazy");case 13:return _p("Suspense");case 19:return _p("SuspenseList");case 0:case 2:case 15:return e=dg(e.type,!1),e;case 11:return e=dg(e.type.render,!1),e;case 22:return e=dg(e.type._render,!1),e;case 1:return e=dg(e.type,!0),e;default:return""}}function $c(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zl:return"Fragment";case Ys:return"Portal";case Rp:return"Profiler";case EE:return"StrictMode";case Lp:return"Suspense";case Ng:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case CE:return(e.displayName||"Context")+".Consumer";case wE:return(e._context.displayName||"Context")+".Provider";case ay:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case oy:return $c(e.type);case ME:return $c(e._render);case _E:t=e._payload,e=e._init;try{return $c(e(t))}catch{}}return null}function Yl(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function mO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mj(e){var t=mO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,f=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){o=""+d,f.call(this,d)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pg(e){e._valueTracker||(e._valueTracker=Mj(e))}function gO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=mO(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function zg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function AS(e,t){var r=t.checked;return Pn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function oL(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=Yl(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yO(e,t){t=t.checked,t!=null&&SE(e,"checked",t,!1)}function NS(e,t){yO(e,t);var r=Yl(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zS(e,t.type,r):t.hasOwnProperty("defaultValue")&&zS(e,t.type,Yl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lL(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function zS(e,t,r){(t!=="number"||zg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Tj(e){var t="";return iy.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function IS(e,t){return e=Pn({children:void 0},t),(t=Tj(t.children))&&(e.children=t),e}function qc(e,t,r,o){if(e=e.options,t){t={};for(var s=0;s<r.length;s++)t["$"+r[s]]=!0;for(r=0;r<e.length;r++)s=t.hasOwnProperty("$"+e[r].value),e[r].selected!==s&&(e[r].selected=s),s&&o&&(e[r].defaultSelected=!0)}else{for(r=""+Yl(r),t=null,s=0;s<e.length;s++){if(e[s].value===r){e[s].selected=!0,o&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function US(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Re(91));return Pn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function sL(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Re(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(Re(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Yl(r)}}function bO(e,t){var r=Yl(t.value),o=Yl(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function uL(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var FS={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function xO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jS(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hg,SO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,s){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,s)})}:e}(function(e,t){if(e.namespaceURI!==FS.svg||"innerHTML"in e)e.innerHTML=t;else{for(hg=hg||document.createElement("div"),hg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Op={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kj=["Webkit","ms","Moz","O"];Object.keys(Op).forEach(function(e){kj.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Op[t]=Op[e]})});function EO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Op.hasOwnProperty(e)&&Op[e]?(""+t).trim():t+"px"}function wO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,s=EO(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,s):e[r]=s}}var Rj=Pn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function BS(e,t){if(t){if(Rj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Re(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(Re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Re(62))}}function HS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function RE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var VS=null,Gc=null,Yc=null;function cL(e){if(e=nh(e)){if(typeof VS!="function")throw Error(Re(280));var t=e.stateNode;t&&(t=dy(t),VS(e.stateNode,e.type,t))}}function CO(e){Gc?Yc?Yc.push(e):Yc=[e]:Gc=e}function _O(){if(Gc){var e=Gc,t=Yc;if(Yc=Gc=null,cL(e),t)for(e=0;e<t.length;e++)cL(t[e])}}function LE(e,t){return e(t)}function MO(e,t,r,o,s){return e(t,r,o,s)}function OE(){}var TO=LE,Zs=!1,pS=!1;function DE(){(Gc!==null||Yc!==null)&&(OE(),_O())}function Lj(e,t,r){if(pS)return e(t,r);pS=!0;try{return TO(e,t,r)}finally{pS=!1,DE()}}function Vp(e,t){var r=e.stateNode;if(r===null)return null;var o=dy(r);if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Re(231,t,typeof r));return r}var WS=!1;if($o)try{Nc={},Object.defineProperty(Nc,"passive",{get:function(){WS=!0}}),window.addEventListener("test",Nc,Nc),window.removeEventListener("test",Nc,Nc)}catch{WS=!1}var Nc;function Oj(e,t,r,o,s,f,d,p,m){var y=Array.prototype.slice.call(arguments,3);try{t.apply(r,y)}catch(E){this.onError(E)}}var Dp=!1,Ig=null,Ug=!1,$S=null,Dj={onError:function(e){Dp=!0,Ig=e}};function Pj(e,t,r,o,s,f,d,p,m){Dp=!1,Ig=null,Oj.apply(Dj,arguments)}function Aj(e,t,r,o,s,f,d,p,m){if(Pj.apply(this,arguments),Dp){if(Dp){var y=Ig;Dp=!1,Ig=null}else throw Error(Re(198));Ug||(Ug=!0,$S=y)}}function au(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function kO(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fL(e){if(au(e)!==e)throw Error(Re(188))}function Nj(e){var t=e.alternate;if(!t){if(t=au(e),t===null)throw Error(Re(188));return t!==e?null:e}for(var r=e,o=t;;){var s=r.return;if(s===null)break;var f=s.alternate;if(f===null){if(o=s.return,o!==null){r=o;continue}break}if(s.child===f.child){for(f=s.child;f;){if(f===r)return fL(s),e;if(f===o)return fL(s),t;f=f.sibling}throw Error(Re(188))}if(r.return!==o.return)r=s,o=f;else{for(var d=!1,p=s.child;p;){if(p===r){d=!0,r=s,o=f;break}if(p===o){d=!0,o=s,r=f;break}p=p.sibling}if(!d){for(p=f.child;p;){if(p===r){d=!0,r=f,o=s;break}if(p===o){d=!0,o=f,r=s;break}p=p.sibling}if(!d)throw Error(Re(189))}}if(r.alternate!==o)throw Error(Re(190))}if(r.tag!==3)throw Error(Re(188));return r.stateNode.current===r?e:t}function RO(e){if(e=Nj(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function dL(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var LO,PE,OO,DO,qS=!1,oo=[],jl=null,Bl=null,Hl=null,Wp=new Map,$p=new Map,pp=[],pL="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function GS(e,t,r,o,s){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:s,targetContainers:[o]}}function hL(e,t){switch(e){case"focusin":case"focusout":jl=null;break;case"dragenter":case"dragleave":Bl=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":Wp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$p.delete(t.pointerId)}}function hp(e,t,r,o,s,f){return e===null||e.nativeEvent!==f?(e=GS(t,r,o,s,f),t!==null&&(t=nh(t),t!==null&&PE(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function zj(e,t,r,o,s){switch(t){case"focusin":return jl=hp(jl,e,t,r,o,s),!0;case"dragenter":return Bl=hp(Bl,e,t,r,o,s),!0;case"mouseover":return Hl=hp(Hl,e,t,r,o,s),!0;case"pointerover":var f=s.pointerId;return Wp.set(f,hp(Wp.get(f)||null,e,t,r,o,s)),!0;case"gotpointercapture":return f=s.pointerId,$p.set(f,hp($p.get(f)||null,e,t,r,o,s)),!0}return!1}function Ij(e){var t=Qs(e.target);if(t!==null){var r=au(t);if(r!==null){if(t=r.tag,t===13){if(t=kO(r),t!==null){e.blockedOn=t,DO(e.lanePriority,function(){mr.unstable_runWithPriority(e.priority,function(){OO(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _g(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=IE(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=nh(r),t!==null&&PE(t),e.blockedOn=r,!1;t.shift()}return!0}function vL(e,t,r){_g(e)&&r.delete(t)}function Uj(){for(qS=!1;0<oo.length;){var e=oo[0];if(e.blockedOn!==null){e=nh(e.blockedOn),e!==null&&LO(e);break}for(var t=e.targetContainers;0<t.length;){var r=IE(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&oo.shift()}jl!==null&&_g(jl)&&(jl=null),Bl!==null&&_g(Bl)&&(Bl=null),Hl!==null&&_g(Hl)&&(Hl=null),Wp.forEach(vL),$p.forEach(vL)}function vp(e,t){e.blockedOn===t&&(e.blockedOn=null,qS||(qS=!0,mr.unstable_scheduleCallback(mr.unstable_NormalPriority,Uj)))}function PO(e){function t(s){return vp(s,e)}if(0<oo.length){vp(oo[0],e);for(var r=1;r<oo.length;r++){var o=oo[r];o.blockedOn===e&&(o.blockedOn=null)}}for(jl!==null&&vp(jl,e),Bl!==null&&vp(Bl,e),Hl!==null&&vp(Hl,e),Wp.forEach(t),$p.forEach(t),r=0;r<pp.length;r++)o=pp[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<pp.length&&(r=pp[0],r.blockedOn===null);)Ij(r),r.blockedOn===null&&pp.shift()}function vg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Fc={animationend:vg("Animation","AnimationEnd"),animationiteration:vg("Animation","AnimationIteration"),animationstart:vg("Animation","AnimationStart"),transitionend:vg("Transition","TransitionEnd")},hS={},AO={};$o&&(AO=document.createElement("div").style,"AnimationEvent"in window||(delete Fc.animationend.animation,delete Fc.animationiteration.animation,delete Fc.animationstart.animation),"TransitionEvent"in window||delete Fc.transitionend.transition);function ly(e){if(hS[e])return hS[e];if(!Fc[e])return e;var t=Fc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in AO)return hS[e]=t[r];return e}var NO=ly("animationend"),zO=ly("animationiteration"),IO=ly("animationstart"),UO=ly("transitionend"),FO=new Map,AE=new Map,Fj=["abort","abort",NO,"animationEnd",zO,"animationIteration",IO,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",UO,"transitionEnd","waiting","waiting"];function NE(e,t){for(var r=0;r<e.length;r+=2){var o=e[r],s=e[r+1];s="on"+(s[0].toUpperCase()+s.slice(1)),AE.set(o,t),FO.set(o,s),ru(s,[o])}}var jj=mr.unstable_now;jj();var yn=8;function Ic(e){if((1&e)!==0)return yn=15,1;if((2&e)!==0)return yn=14,2;if((4&e)!==0)return yn=13,4;var t=24&e;return t!==0?(yn=12,t):(e&32)!==0?(yn=11,32):(t=192&e,t!==0?(yn=10,t):(e&256)!==0?(yn=9,256):(t=3584&e,t!==0?(yn=8,t):(e&4096)!==0?(yn=7,4096):(t=4186112&e,t!==0?(yn=6,t):(t=62914560&e,t!==0?(yn=5,t):e&67108864?(yn=4,67108864):(e&134217728)!==0?(yn=3,134217728):(t=805306368&e,t!==0?(yn=2,t):(1073741824&e)!==0?(yn=1,1073741824):(yn=8,e))))))}function Bj(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Hj(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(Re(358,e))}}function qp(e,t){var r=e.pendingLanes;if(r===0)return yn=0;var o=0,s=0,f=e.expiredLanes,d=e.suspendedLanes,p=e.pingedLanes;if(f!==0)o=f,s=yn=15;else if(f=r&134217727,f!==0){var m=f&~d;m!==0?(o=Ic(m),s=yn):(p&=f,p!==0&&(o=Ic(p),s=yn))}else f=r&~d,f!==0?(o=Ic(f),s=yn):p!==0&&(o=Ic(p),s=yn);if(o===0)return 0;if(o=31-Zl(o),o=r&((0>o?0:1<<o)<<1)-1,t!==0&&t!==o&&(t&d)===0){if(Ic(t),s<=yn)return t;yn=s}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-Zl(t),s=1<<r,o|=e[r],t&=~s;return o}function jO(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Fg(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Uc(24&~t),e===0?Fg(10,t):e;case 10:return e=Uc(192&~t),e===0?Fg(8,t):e;case 8:return e=Uc(3584&~t),e===0&&(e=Uc(4186112&~t),e===0&&(e=512)),e;case 2:return t=Uc(805306368&~t),t===0&&(t=268435456),t}throw Error(Re(358,e))}function Uc(e){return e&-e}function vS(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function sy(e,t,r){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,e=e.eventTimes,t=31-Zl(t),e[t]=r}var Zl=Math.clz32?Math.clz32:$j,Vj=Math.log,Wj=Math.LN2;function $j(e){return e===0?32:31-(Vj(e)/Wj|0)|0}var qj=mr.unstable_UserBlockingPriority,Gj=mr.unstable_runWithPriority,Mg=!0;function Yj(e,t,r,o){Zs||OE();var s=zE,f=Zs;Zs=!0;try{MO(s,e,t,r,o)}finally{(Zs=f)||DE()}}function Zj(e,t,r,o){Gj(qj,zE.bind(null,e,t,r,o))}function zE(e,t,r,o){if(Mg){var s;if((s=(t&4)===0)&&0<oo.length&&-1<pL.indexOf(e))e=GS(null,e,t,r,o),oo.push(e);else{var f=IE(e,t,r,o);if(f===null)s&&hL(e,o);else{if(s){if(-1<pL.indexOf(e)){e=GS(f,e,t,r,o),oo.push(e);return}if(zj(f,e,t,r,o))return;hL(e,o)}XO(e,t,o,null,r)}}}}function IE(e,t,r,o){var s=RE(o);if(s=Qs(s),s!==null){var f=au(s);if(f===null)s=null;else{var d=f.tag;if(d===13){if(s=kO(f),s!==null)return s;s=null}else if(d===3){if(f.stateNode.hydrate)return f.tag===3?f.stateNode.containerInfo:null;s=null}else f!==s&&(s=null)}}return XO(e,t,o,s,r),null}var Il=null,UE=null,Tg=null;function BO(){if(Tg)return Tg;var e,t=UE,r=t.length,o,s="value"in Il?Il.value:Il.textContent,f=s.length;for(e=0;e<r&&t[e]===s[e];e++);var d=r-e;for(o=1;o<=d&&t[r-o]===s[f-o];o++);return Tg=s.slice(e,1<o?1-o:void 0)}function kg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mg(){return!0}function mL(){return!1}function Bi(e){function t(r,o,s,f,d){this._reactName=r,this._targetInst=s,this.type=o,this.nativeEvent=f,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(r=e[p],this[p]=r?r(f):f[p]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?mg:mL,this.isPropagationStopped=mL,this}return Pn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=mg)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=mg)},persist:function(){},isPersistent:mg}),t}var of={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},FE=Bi(of),th=Pn({},of,{view:0,detail:0}),Qj=Bi(th),mS,gS,mp,uy=Pn({},th,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jE,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mp&&(mp&&e.type==="mousemove"?(mS=e.screenX-mp.screenX,gS=e.screenY-mp.screenY):gS=mS=0,mp=e),mS)},movementY:function(e){return"movementY"in e?e.movementY:gS}}),gL=Bi(uy),Kj=Pn({},uy,{dataTransfer:0}),Jj=Bi(Kj),Xj=Pn({},th,{relatedTarget:0}),yS=Bi(Xj),eB=Pn({},of,{animationName:0,elapsedTime:0,pseudoElement:0}),tB=Bi(eB),nB=Pn({},of,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rB=Bi(nB),iB=Pn({},of,{data:0}),yL=Bi(iB),aB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},lB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sB(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lB[e])?!!t[e]:!1}function jE(){return sB}var uB=Pn({},th,{key:function(e){if(e.key){var t=aB[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=kg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oB[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jE,charCode:function(e){return e.type==="keypress"?kg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?kg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cB=Bi(uB),fB=Pn({},uy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bL=Bi(fB),dB=Pn({},th,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jE}),pB=Bi(dB),hB=Pn({},of,{propertyName:0,elapsedTime:0,pseudoElement:0}),vB=Bi(hB),mB=Pn({},uy,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gB=Bi(mB),yB=[9,13,27,32],BE=$o&&"CompositionEvent"in window,Pp=null;$o&&"documentMode"in document&&(Pp=document.documentMode);var bB=$o&&"TextEvent"in window&&!Pp,HO=$o&&(!BE||Pp&&8<Pp&&11>=Pp),xL=String.fromCharCode(32),SL=!1;function VO(e,t){switch(e){case"keyup":return yB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jc=!1;function xB(e,t){switch(e){case"compositionend":return WO(t);case"keypress":return t.which!==32?null:(SL=!0,xL);case"textInput":return e=t.data,e===xL&&SL?null:e;default:return null}}function SB(e,t){if(jc)return e==="compositionend"||!BE&&VO(e,t)?(e=BO(),Tg=UE=Il=null,jc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return HO&&t.locale!=="ko"?null:t.data;default:return null}}var EB={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function EL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!EB[e.type]:t==="textarea"}function $O(e,t,r,o){CO(o),t=jg(t,"onChange"),0<t.length&&(r=new FE("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Ap=null,Gp=null;function wB(e){QO(e,0)}function cy(e){var t=Hc(e);if(gO(t))return e}function CB(e,t){if(e==="change")return t}var qO=!1;$o&&($o?(yg="oninput"in document,yg||(bS=document.createElement("div"),bS.setAttribute("oninput","return;"),yg=typeof bS.oninput=="function"),gg=yg):gg=!1,qO=gg&&(!document.documentMode||9<document.documentMode));var gg,yg,bS;function wL(){Ap&&(Ap.detachEvent("onpropertychange",GO),Gp=Ap=null)}function GO(e){if(e.propertyName==="value"&&cy(Gp)){var t=[];if($O(t,Gp,e,RE(e)),e=wB,Zs)e(t);else{Zs=!0;try{LE(e,t)}finally{Zs=!1,DE()}}}}function _B(e,t,r){e==="focusin"?(wL(),Ap=t,Gp=r,Ap.attachEvent("onpropertychange",GO)):e==="focusout"&&wL()}function MB(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cy(Gp)}function TB(e,t){if(e==="click")return cy(t)}function kB(e,t){if(e==="input"||e==="change")return cy(t)}function RB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var aa=typeof Object.is=="function"?Object.is:RB,LB=Object.prototype.hasOwnProperty;function Yp(e,t){if(aa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++)if(!LB.call(t,r[o])||!aa(e[r[o]],t[r[o]]))return!1;return!0}function CL(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _L(e,t){var r=CL(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=CL(r)}}function YO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?YO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ML(){for(var e=window,t=zg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=zg(e.document)}return t}function YS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var OB=$o&&"documentMode"in document&&11>=document.documentMode,Bc=null,ZS=null,Np=null,QS=!1;function TL(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;QS||Bc==null||Bc!==zg(o)||(o=Bc,"selectionStart"in o&&YS(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Np&&Yp(Np,o)||(Np=o,o=jg(ZS,"onSelect"),0<o.length&&(t=new FE("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Bc)))}NE("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);NE("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);NE(Fj,2);for(xS="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),bg=0;bg<xS.length;bg++)AE.set(xS[bg],0);var xS,bg;tf("onMouseEnter",["mouseout","mouseover"]);tf("onMouseLeave",["mouseout","mouseover"]);tf("onPointerEnter",["pointerout","pointerover"]);tf("onPointerLeave",["pointerout","pointerover"]);ru("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ru("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ru("onBeforeInput",["compositionend","keypress","textInput","paste"]);ru("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ru("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ru("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ZO=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mp));function kL(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,Aj(o,t,void 0,e),e.currentTarget=null}function QO(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],s=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var d=o.length-1;0<=d;d--){var p=o[d],m=p.instance,y=p.currentTarget;if(p=p.listener,m!==f&&s.isPropagationStopped())break e;kL(s,p,y),f=m}else for(d=0;d<o.length;d++){if(p=o[d],m=p.instance,y=p.currentTarget,p=p.listener,m!==f&&s.isPropagationStopped())break e;kL(s,p,y),f=m}}}if(Ug)throw e=$S,Ug=!1,$S=null,e}function wn(e,t){var r=t3(t),o=e+"__bubble";r.has(o)||(JO(t,e,2,!1),r.add(o))}var RL="_reactListening"+Math.random().toString(36).slice(2);function KO(e){e[RL]||(e[RL]=!0,hO.forEach(function(t){ZO.has(t)||LL(t,!1,e,null),LL(t,!0,e,null)}))}function LL(e,t,r,o){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,f=r;if(e==="selectionchange"&&r.nodeType!==9&&(f=r.ownerDocument),o!==null&&!t&&ZO.has(e)){if(e!=="scroll")return;s|=2,f=o}var d=t3(f),p=e+"__"+(t?"capture":"bubble");d.has(p)||(t&&(s|=4),JO(f,e,s,t),d.add(p))}function JO(e,t,r,o){var s=AE.get(t);switch(s===void 0?2:s){case 0:s=Yj;break;case 1:s=Zj;break;default:s=zE}r=s.bind(null,t,r,e),s=void 0,!WS||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),o?s!==void 0?e.addEventListener(t,r,{capture:!0,passive:s}):e.addEventListener(t,r,!0):s!==void 0?e.addEventListener(t,r,{passive:s}):e.addEventListener(t,r,!1)}function XO(e,t,r,o,s){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var d=o.tag;if(d===3||d===4){var p=o.stateNode.containerInfo;if(p===s||p.nodeType===8&&p.parentNode===s)break;if(d===4)for(d=o.return;d!==null;){var m=d.tag;if((m===3||m===4)&&(m=d.stateNode.containerInfo,m===s||m.nodeType===8&&m.parentNode===s))return;d=d.return}for(;p!==null;){if(d=Qs(p),d===null)return;if(m=d.tag,m===5||m===6){o=f=d;continue e}p=p.parentNode}}o=o.return}Lj(function(){var y=f,E=RE(r),w=[];e:{var k=FO.get(e);if(k!==void 0){var O=FE,A=e;switch(e){case"keypress":if(kg(r)===0)break e;case"keydown":case"keyup":O=cB;break;case"focusin":A="focus",O=yS;break;case"focusout":A="blur",O=yS;break;case"beforeblur":case"afterblur":O=yS;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=gL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Jj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=pB;break;case NO:case zO:case IO:O=tB;break;case UO:O=vB;break;case"scroll":O=Qj;break;case"wheel":O=gB;break;case"copy":case"cut":case"paste":O=rB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=bL}var W=(t&4)!==0,P=!W&&e==="scroll",R=W?k!==null?k+"Capture":null:k;W=[];for(var D=y,T;D!==null;){T=D;var M=T.stateNode;if(T.tag===5&&M!==null&&(T=M,R!==null&&(M=Vp(D,R),M!=null&&W.push(Zp(D,M,T)))),P)break;D=D.return}0<W.length&&(k=new O(k,A,null,r,E),w.push({event:k,listeners:W}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",k&&(t&16)===0&&(A=r.relatedTarget||r.fromElement)&&(Qs(A)||A[lf]))break e;if((O||k)&&(k=E.window===E?E:(k=E.ownerDocument)?k.defaultView||k.parentWindow:window,O?(A=r.relatedTarget||r.toElement,O=y,A=A?Qs(A):null,A!==null&&(P=au(A),A!==P||A.tag!==5&&A.tag!==6)&&(A=null)):(O=null,A=y),O!==A)){if(W=gL,M="onMouseLeave",R="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(W=bL,M="onPointerLeave",R="onPointerEnter",D="pointer"),P=O==null?k:Hc(O),T=A==null?k:Hc(A),k=new W(M,D+"leave",O,r,E),k.target=P,k.relatedTarget=T,M=null,Qs(E)===y&&(W=new W(R,D+"enter",A,r,E),W.target=T,W.relatedTarget=P,M=W),P=M,O&&A)t:{for(W=O,R=A,D=0,T=W;T;T=zc(T))D++;for(T=0,M=R;M;M=zc(M))T++;for(;0<D-T;)W=zc(W),D--;for(;0<T-D;)R=zc(R),T--;for(;D--;){if(W===R||R!==null&&W===R.alternate)break t;W=zc(W),R=zc(R)}W=null}else W=null;O!==null&&OL(w,k,O,W,!1),A!==null&&P!==null&&OL(w,P,A,W,!0)}}e:{if(k=y?Hc(y):window,O=k.nodeName&&k.nodeName.toLowerCase(),O==="select"||O==="input"&&k.type==="file")var U=CB;else if(EL(k))if(qO)U=kB;else{U=MB;var Y=_B}else(O=k.nodeName)&&O.toLowerCase()==="input"&&(k.type==="checkbox"||k.type==="radio")&&(U=TB);if(U&&(U=U(e,y))){$O(w,U,r,E);break e}Y&&Y(e,k,y),e==="focusout"&&(Y=k._wrapperState)&&Y.controlled&&k.type==="number"&&zS(k,"number",k.value)}switch(Y=y?Hc(y):window,e){case"focusin":(EL(Y)||Y.contentEditable==="true")&&(Bc=Y,ZS=y,Np=null);break;case"focusout":Np=ZS=Bc=null;break;case"mousedown":QS=!0;break;case"contextmenu":case"mouseup":case"dragend":QS=!1,TL(w,r,E);break;case"selectionchange":if(OB)break;case"keydown":case"keyup":TL(w,r,E)}var F;if(BE)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else jc?VO(e,r)&&(ne="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ne="onCompositionStart");ne&&(HO&&r.locale!=="ko"&&(jc||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&jc&&(F=BO()):(Il=E,UE="value"in Il?Il.value:Il.textContent,jc=!0)),Y=jg(y,ne),0<Y.length&&(ne=new yL(ne,e,null,r,E),w.push({event:ne,listeners:Y}),F?ne.data=F:(F=WO(r),F!==null&&(ne.data=F)))),(F=bB?xB(e,r):SB(e,r))&&(y=jg(y,"onBeforeInput"),0<y.length&&(E=new yL("onBeforeInput","beforeinput",null,r,E),w.push({event:E,listeners:y}),E.data=F))}QO(w,t)})}function Zp(e,t,r){return{instance:e,listener:t,currentTarget:r}}function jg(e,t){for(var r=t+"Capture",o=[];e!==null;){var s=e,f=s.stateNode;s.tag===5&&f!==null&&(s=f,f=Vp(e,r),f!=null&&o.unshift(Zp(e,f,s)),f=Vp(e,t),f!=null&&o.push(Zp(e,f,s))),e=e.return}return o}function zc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function OL(e,t,r,o,s){for(var f=t._reactName,d=[];r!==null&&r!==o;){var p=r,m=p.alternate,y=p.stateNode;if(m!==null&&m===o)break;p.tag===5&&y!==null&&(p=y,s?(m=Vp(r,f),m!=null&&d.unshift(Zp(r,m,p))):s||(m=Vp(r,f),m!=null&&d.push(Zp(r,m,p)))),r=r.return}d.length!==0&&e.push({event:t,listeners:d})}function Bg(){}var SS=null,ES=null;function e3(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function KS(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var DL=typeof setTimeout=="function"?setTimeout:void 0,DB=typeof clearTimeout=="function"?clearTimeout:void 0;function HE(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Zc(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function PL(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var wS=0;function PB(e){return{$$typeof:TE,toString:e,valueOf:e}}var fy=Math.random().toString(36).slice(2),Ul="__reactFiber$"+fy,Hg="__reactProps$"+fy,lf="__reactContainer$"+fy,AL="__reactEvents$"+fy;function Qs(e){var t=e[Ul];if(t)return t;for(var r=e.parentNode;r;){if(t=r[lf]||r[Ul]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=PL(e);e!==null;){if(r=e[Ul])return r;e=PL(e)}return t}e=r,r=e.parentNode}return null}function nh(e){return e=e[Ul]||e[lf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Re(33))}function dy(e){return e[Hg]||null}function t3(e){var t=e[AL];return t===void 0&&(t=e[AL]=new Set),t}var JS=[],Vc=-1;function Xl(e){return{current:e}}function Cn(e){0>Vc||(e.current=JS[Vc],JS[Vc]=null,Vc--)}function Gn(e,t){Vc++,JS[Vc]=e.current,e.current=t}var Ql={},jr=Xl(Ql),mi=Xl(!1),eu=Ql;function nf(e,t){var r=e.type.contextTypes;if(!r)return Ql;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s={},f;for(f in r)s[f]=t[f];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function gi(e){return e=e.childContextTypes,e!=null}function Vg(){Cn(mi),Cn(jr)}function NL(e,t,r){if(jr.current!==Ql)throw Error(Re(168));Gn(jr,t),Gn(mi,r)}function n3(e,t,r){var o=e.stateNode;if(e=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var s in o)if(!(s in e))throw Error(Re(108,$c(t)||"Unknown",s));return Pn({},r,o)}function Rg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ql,eu=jr.current,Gn(jr,e),Gn(mi,mi.current),!0}function zL(e,t,r){var o=e.stateNode;if(!o)throw Error(Re(169));r?(e=n3(e,t,eu),o.__reactInternalMemoizedMergedChildContext=e,Cn(mi),Cn(jr),Gn(jr,e)):Cn(mi),Gn(mi,r)}var VE=null,Xs=null,AB=mr.unstable_runWithPriority,WE=mr.unstable_scheduleCallback,XS=mr.unstable_cancelCallback,NB=mr.unstable_shouldYield,IL=mr.unstable_requestPaint,eE=mr.unstable_now,zB=mr.unstable_getCurrentPriorityLevel,py=mr.unstable_ImmediatePriority,r3=mr.unstable_UserBlockingPriority,i3=mr.unstable_NormalPriority,a3=mr.unstable_LowPriority,o3=mr.unstable_IdlePriority,CS={},IB=IL!==void 0?IL:function(){},jo=null,Lg=null,_S=!1,UL=eE(),Ur=1e4>UL?eE:function(){return eE()-UL};function rf(){switch(zB()){case py:return 99;case r3:return 98;case i3:return 97;case a3:return 96;case o3:return 95;default:throw Error(Re(332))}}function l3(e){switch(e){case 99:return py;case 98:return r3;case 97:return i3;case 96:return a3;case 95:return o3;default:throw Error(Re(332))}}function tu(e,t){return e=l3(e),AB(e,t)}function Qp(e,t,r){return e=l3(e),WE(e,t,r)}function fo(){if(Lg!==null){var e=Lg;Lg=null,XS(e)}s3()}function s3(){if(!_S&&jo!==null){_S=!0;var e=0;try{var t=jo;tu(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),jo=null}catch(r){throw jo!==null&&(jo=jo.slice(e+1)),WE(py,fo),r}finally{_S=!1}}}var UB=iu.ReactCurrentBatchConfig;function Oa(e,t){if(e&&e.defaultProps){t=Pn({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Wg=Xl(null),$g=null,Wc=null,qg=null;function $E(){qg=Wc=$g=null}function qE(e){var t=Wg.current;Cn(Wg),e.type._context._currentValue=t}function u3(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function Qc(e,t){$g=e,qg=Wc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Da=!0),e.firstContext=null)}function sa(e,t){if(qg!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(qg=e,t=1073741823),t={context:e,observedBits:t,next:null},Wc===null){if($g===null)throw Error(Re(308));Wc=t,$g.dependencies={lanes:0,firstContext:t,responders:null}}else Wc=Wc.next=t;return e._currentValue}var Nl=!1;function GE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function c3(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wl(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function FL(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var s=null,f=null;if(r=r.firstBaseUpdate,r!==null){do{var d={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};f===null?s=f=d:f=f.next=d,r=r.next}while(r!==null);f===null?s=f=t:f=f.next=t}else s=f=t;r={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:f,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Kp(e,t,r,o){var s=e.updateQueue;Nl=!1;var f=s.firstBaseUpdate,d=s.lastBaseUpdate,p=s.shared.pending;if(p!==null){s.shared.pending=null;var m=p,y=m.next;m.next=null,d===null?f=y:d.next=y,d=m;var E=e.alternate;if(E!==null){E=E.updateQueue;var w=E.lastBaseUpdate;w!==d&&(w===null?E.firstBaseUpdate=y:w.next=y,E.lastBaseUpdate=m)}}if(f!==null){w=s.baseState,d=0,E=y=m=null;do{p=f.lane;var k=f.eventTime;if((o&p)===p){E!==null&&(E=E.next={eventTime:k,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var O=e,A=f;switch(p=t,k=r,A.tag){case 1:if(O=A.payload,typeof O=="function"){w=O.call(k,w,p);break e}w=O;break e;case 3:O.flags=O.flags&-4097|64;case 0:if(O=A.payload,p=typeof O=="function"?O.call(k,w,p):O,p==null)break e;w=Pn({},w,p);break e;case 2:Nl=!0}}f.callback!==null&&(e.flags|=32,p=s.effects,p===null?s.effects=[f]:p.push(f))}else k={eventTime:k,lane:p,tag:f.tag,payload:f.payload,callback:f.callback,next:null},E===null?(y=E=k,m=w):E=E.next=k,d|=p;if(f=f.next,f===null){if(p=s.shared.pending,p===null)break;f=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(1);E===null&&(m=w),s.baseState=m,s.firstBaseUpdate=y,s.lastBaseUpdate=E,ih|=d,e.lanes=d,e.memoizedState=w}}function jL(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],s=o.callback;if(s!==null){if(o.callback=null,o=r,typeof s!="function")throw Error(Re(191,s));s.call(o)}}}var f3=new iy.Component().refs;function Gg(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:Pn({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var hy={isMounted:function(e){return(e=e._reactInternals)?au(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=ji(),s=$l(e),f=Vl(o,s);f.payload=t,r!=null&&(f.callback=r),Wl(e,f),ql(e,s,o)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=ji(),s=$l(e),f=Vl(o,s);f.tag=1,f.payload=t,r!=null&&(f.callback=r),Wl(e,f),ql(e,s,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ji(),o=$l(e),s=Vl(r,o);s.tag=2,t!=null&&(s.callback=t),Wl(e,s),ql(e,o,r)}};function BL(e,t,r,o,s,f,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,d):t.prototype&&t.prototype.isPureReactComponent?!Yp(r,o)||!Yp(s,f):!0}function d3(e,t,r){var o=!1,s=Ql,f=t.contextType;return typeof f=="object"&&f!==null?f=sa(f):(s=gi(t)?eu:jr.current,o=t.contextTypes,f=(o=o!=null)?nf(e,s):Ql),t=new t(r,f),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hy,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=f),t}function HL(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&hy.enqueueReplaceState(t,t.state,null)}function tE(e,t,r,o){var s=e.stateNode;s.props=r,s.state=e.memoizedState,s.refs=f3,GE(e);var f=t.contextType;typeof f=="object"&&f!==null?s.context=sa(f):(f=gi(t)?eu:jr.current,s.context=nf(e,f)),Kp(e,r,s,o),s.state=e.memoizedState,f=t.getDerivedStateFromProps,typeof f=="function"&&(Gg(e,t,f,r),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&hy.enqueueReplaceState(s,s.state,null),Kp(e,r,s,o),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4)}var xg=Array.isArray;function gp(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Re(309));var o=r.stateNode}if(!o)throw Error(Re(147,e));var s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(f){var d=o.refs;d===f3&&(d=o.refs={}),f===null?delete d[s]:d[s]=f},t._stringRef=s,t)}if(typeof e!="string")throw Error(Re(284));if(!r._owner)throw Error(Re(290,e))}return e}function Sg(e,t){if(e.type!=="textarea")throw Error(Re(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function p3(e){function t(P,R){if(e){var D=P.lastEffect;D!==null?(D.nextEffect=R,P.lastEffect=R):P.firstEffect=P.lastEffect=R,R.nextEffect=null,R.flags=8}}function r(P,R){if(!e)return null;for(;R!==null;)t(P,R),R=R.sibling;return null}function o(P,R){for(P=new Map;R!==null;)R.key!==null?P.set(R.key,R):P.set(R.index,R),R=R.sibling;return P}function s(P,R){return P=Jl(P,R),P.index=0,P.sibling=null,P}function f(P,R,D){return P.index=D,e?(D=P.alternate,D!==null?(D=D.index,D<R?(P.flags=2,R):D):(P.flags=2,R)):R}function d(P){return e&&P.alternate===null&&(P.flags=2),P}function p(P,R,D,T){return R===null||R.tag!==6?(R=LS(D,P.mode,T),R.return=P,R):(R=s(R,D),R.return=P,R)}function m(P,R,D,T){return R!==null&&R.elementType===D.type?(T=s(R,D.props),T.ref=gp(P,R,D),T.return=P,T):(T=Ag(D.type,D.key,D.props,null,P.mode,T),T.ref=gp(P,R,D),T.return=P,T)}function y(P,R,D,T){return R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation?(R=OS(D,P.mode,T),R.return=P,R):(R=s(R,D.children||[]),R.return=P,R)}function E(P,R,D,T,M){return R===null||R.tag!==7?(R=ef(D,P.mode,T,M),R.return=P,R):(R=s(R,D),R.return=P,R)}function w(P,R,D){if(typeof R=="string"||typeof R=="number")return R=LS(""+R,P.mode,D),R.return=P,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Cp:return D=Ag(R.type,R.key,R.props,null,P.mode,D),D.ref=gp(P,null,R),D.return=P,D;case Ys:return R=OS(R,P.mode,D),R.return=P,R}if(xg(R)||dp(R))return R=ef(R,P.mode,D,null),R.return=P,R;Sg(P,R)}return null}function k(P,R,D,T){var M=R!==null?R.key:null;if(typeof D=="string"||typeof D=="number")return M!==null?null:p(P,R,""+D,T);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Cp:return D.key===M?D.type===zl?E(P,R,D.props.children,T,M):m(P,R,D,T):null;case Ys:return D.key===M?y(P,R,D,T):null}if(xg(D)||dp(D))return M!==null?null:E(P,R,D,T,null);Sg(P,D)}return null}function O(P,R,D,T,M){if(typeof T=="string"||typeof T=="number")return P=P.get(D)||null,p(R,P,""+T,M);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Cp:return P=P.get(T.key===null?D:T.key)||null,T.type===zl?E(R,P,T.props.children,M,T.key):m(R,P,T,M);case Ys:return P=P.get(T.key===null?D:T.key)||null,y(R,P,T,M)}if(xg(T)||dp(T))return P=P.get(D)||null,E(R,P,T,M,null);Sg(R,T)}return null}function A(P,R,D,T){for(var M=null,U=null,Y=R,F=R=0,ne=null;Y!==null&&F<D.length;F++){Y.index>F?(ne=Y,Y=null):ne=Y.sibling;var ue=k(P,Y,D[F],T);if(ue===null){Y===null&&(Y=ne);break}e&&Y&&ue.alternate===null&&t(P,Y),R=f(ue,R,F),U===null?M=ue:U.sibling=ue,U=ue,Y=ne}if(F===D.length)return r(P,Y),M;if(Y===null){for(;F<D.length;F++)Y=w(P,D[F],T),Y!==null&&(R=f(Y,R,F),U===null?M=Y:U.sibling=Y,U=Y);return M}for(Y=o(P,Y);F<D.length;F++)ne=O(Y,P,F,D[F],T),ne!==null&&(e&&ne.alternate!==null&&Y.delete(ne.key===null?F:ne.key),R=f(ne,R,F),U===null?M=ne:U.sibling=ne,U=ne);return e&&Y.forEach(function(Q){return t(P,Q)}),M}function W(P,R,D,T){var M=dp(D);if(typeof M!="function")throw Error(Re(150));if(D=M.call(D),D==null)throw Error(Re(151));for(var U=M=null,Y=R,F=R=0,ne=null,ue=D.next();Y!==null&&!ue.done;F++,ue=D.next()){Y.index>F?(ne=Y,Y=null):ne=Y.sibling;var Q=k(P,Y,ue.value,T);if(Q===null){Y===null&&(Y=ne);break}e&&Y&&Q.alternate===null&&t(P,Y),R=f(Q,R,F),U===null?M=Q:U.sibling=Q,U=Q,Y=ne}if(ue.done)return r(P,Y),M;if(Y===null){for(;!ue.done;F++,ue=D.next())ue=w(P,ue.value,T),ue!==null&&(R=f(ue,R,F),U===null?M=ue:U.sibling=ue,U=ue);return M}for(Y=o(P,Y);!ue.done;F++,ue=D.next())ue=O(Y,P,F,ue.value,T),ue!==null&&(e&&ue.alternate!==null&&Y.delete(ue.key===null?F:ue.key),R=f(ue,R,F),U===null?M=ue:U.sibling=ue,U=ue);return e&&Y.forEach(function(B){return t(P,B)}),M}return function(P,R,D,T){var M=typeof D=="object"&&D!==null&&D.type===zl&&D.key===null;M&&(D=D.props.children);var U=typeof D=="object"&&D!==null;if(U)switch(D.$$typeof){case Cp:e:{for(U=D.key,M=R;M!==null;){if(M.key===U){switch(M.tag){case 7:if(D.type===zl){r(P,M.sibling),R=s(M,D.props.children),R.return=P,P=R;break e}break;default:if(M.elementType===D.type){r(P,M.sibling),R=s(M,D.props),R.ref=gp(P,M,D),R.return=P,P=R;break e}}r(P,M);break}else t(P,M);M=M.sibling}D.type===zl?(R=ef(D.props.children,P.mode,T,D.key),R.return=P,P=R):(T=Ag(D.type,D.key,D.props,null,P.mode,T),T.ref=gp(P,R,D),T.return=P,P=T)}return d(P);case Ys:e:{for(M=D.key;R!==null;){if(R.key===M)if(R.tag===4&&R.stateNode.containerInfo===D.containerInfo&&R.stateNode.implementation===D.implementation){r(P,R.sibling),R=s(R,D.children||[]),R.return=P,P=R;break e}else{r(P,R);break}else t(P,R);R=R.sibling}R=OS(D,P.mode,T),R.return=P,P=R}return d(P)}if(typeof D=="string"||typeof D=="number")return D=""+D,R!==null&&R.tag===6?(r(P,R.sibling),R=s(R,D),R.return=P,P=R):(r(P,R),R=LS(D,P.mode,T),R.return=P,P=R),d(P);if(xg(D))return A(P,R,D,T);if(dp(D))return W(P,R,D,T);if(U&&Sg(P,D),typeof D>"u"&&!M)switch(P.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Re(152,$c(P.type)||"Component"))}return r(P,R)}}var Yg=p3(!0),h3=p3(!1),rh={},uo=Xl(rh),Jp=Xl(rh),Xp=Xl(rh);function Ks(e){if(e===rh)throw Error(Re(174));return e}function nE(e,t){switch(Gn(Xp,t),Gn(Jp,e),Gn(uo,rh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jS(t,e)}Cn(uo),Gn(uo,t)}function af(){Cn(uo),Cn(Jp),Cn(Xp)}function VL(e){Ks(Xp.current);var t=Ks(uo.current),r=jS(t,e.type);t!==r&&(Gn(Jp,e),Gn(uo,r))}function YE(e){Jp.current===e&&(Cn(uo),Cn(Jp))}var qn=Xl(0);function Zg(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ho=null,Fl=null,co=!1;function v3(e,t){var r=oa(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function WL(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function rE(e){if(co){var t=Fl;if(t){var r=t;if(!WL(e,t)){if(t=Zc(r.nextSibling),!t||!WL(e,t)){e.flags=e.flags&-1025|2,co=!1,Ho=e;return}v3(Ho,r)}Ho=e,Fl=Zc(t.firstChild)}else e.flags=e.flags&-1025|2,co=!1,Ho=e}}function $L(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ho=e}function Eg(e){if(e!==Ho)return!1;if(!co)return $L(e),co=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!KS(t,e.memoizedProps))for(t=Fl;t;)v3(e,t),t=Zc(t.nextSibling);if($L(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Fl=Zc(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Fl=null}}else Fl=Ho?Zc(e.stateNode.nextSibling):null;return!0}function MS(){Fl=Ho=null,co=!1}var Kc=[];function ZE(){for(var e=0;e<Kc.length;e++)Kc[e]._workInProgressVersionPrimary=null;Kc.length=0}var zp=iu.ReactCurrentDispatcher,la=iu.ReactCurrentBatchConfig,eh=0,Xn=null,Ir=null,wr=null,Qg=!1,Ip=!1;function hi(){throw Error(Re(321))}function QE(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!aa(e[r],t[r]))return!1;return!0}function KE(e,t,r,o,s,f){if(eh=f,Xn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zp.current=e===null||e.memoizedState===null?jB:BB,e=r(o,s),Ip){f=0;do{if(Ip=!1,!(25>f))throw Error(Re(301));f+=1,wr=Ir=null,t.updateQueue=null,zp.current=HB,e=r(o,s)}while(Ip)}if(zp.current=ey,t=Ir!==null&&Ir.next!==null,eh=0,wr=Ir=Xn=null,Qg=!1,t)throw Error(Re(300));return e}function Js(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wr===null?Xn.memoizedState=wr=e:wr=wr.next=e,wr}function ou(){if(Ir===null){var e=Xn.alternate;e=e!==null?e.memoizedState:null}else e=Ir.next;var t=wr===null?Xn.memoizedState:wr.next;if(t!==null)wr=t,Ir=e;else{if(e===null)throw Error(Re(310));Ir=e,e={memoizedState:Ir.memoizedState,baseState:Ir.baseState,baseQueue:Ir.baseQueue,queue:Ir.queue,next:null},wr===null?Xn.memoizedState=wr=e:wr=wr.next=e}return wr}function lo(e,t){return typeof t=="function"?t(e):t}function yp(e){var t=ou(),r=t.queue;if(r===null)throw Error(Re(311));r.lastRenderedReducer=e;var o=Ir,s=o.baseQueue,f=r.pending;if(f!==null){if(s!==null){var d=s.next;s.next=f.next,f.next=d}o.baseQueue=s=f,r.pending=null}if(s!==null){s=s.next,o=o.baseState;var p=d=f=null,m=s;do{var y=m.lane;if((eh&y)===y)p!==null&&(p=p.next={lane:0,action:m.action,eagerReducer:m.eagerReducer,eagerState:m.eagerState,next:null}),o=m.eagerReducer===e?m.eagerState:e(o,m.action);else{var E={lane:y,action:m.action,eagerReducer:m.eagerReducer,eagerState:m.eagerState,next:null};p===null?(d=p=E,f=o):p=p.next=E,Xn.lanes|=y,ih|=y}m=m.next}while(m!==null&&m!==s);p===null?f=o:p.next=d,aa(o,t.memoizedState)||(Da=!0),t.memoizedState=o,t.baseState=f,t.baseQueue=p,r.lastRenderedState=o}return[t.memoizedState,r.dispatch]}function bp(e){var t=ou(),r=t.queue;if(r===null)throw Error(Re(311));r.lastRenderedReducer=e;var o=r.dispatch,s=r.pending,f=t.memoizedState;if(s!==null){r.pending=null;var d=s=s.next;do f=e(f,d.action),d=d.next;while(d!==s);aa(f,t.memoizedState)||(Da=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),r.lastRenderedState=f}return[f,o]}function qL(e,t,r){var o=t._getVersion;o=o(t._source);var s=t._workInProgressVersionPrimary;if(s!==null?e=s===o:(e=e.mutableReadLanes,(e=(eh&e)===e)&&(t._workInProgressVersionPrimary=o,Kc.push(t))),e)return r(t._source);throw Kc.push(t),Error(Re(350))}function m3(e,t,r,o){var s=Xr;if(s===null)throw Error(Re(349));var f=t._getVersion,d=f(t._source),p=zp.current,m=p.useState(function(){return qL(s,t,r)}),y=m[1],E=m[0];m=wr;var w=e.memoizedState,k=w.refs,O=k.getSnapshot,A=w.source;w=w.subscribe;var W=Xn;return e.memoizedState={refs:k,source:t,subscribe:o},p.useEffect(function(){k.getSnapshot=r,k.setSnapshot=y;var P=f(t._source);if(!aa(d,P)){P=r(t._source),aa(E,P)||(y(P),P=$l(W),s.mutableReadLanes|=P&s.pendingLanes),P=s.mutableReadLanes,s.entangledLanes|=P;for(var R=s.entanglements,D=P;0<D;){var T=31-Zl(D),M=1<<T;R[T]|=P,D&=~M}}},[r,t,o]),p.useEffect(function(){return o(t._source,function(){var P=k.getSnapshot,R=k.setSnapshot;try{R(P(t._source));var D=$l(W);s.mutableReadLanes|=D&s.pendingLanes}catch(T){R(function(){throw T})}})},[t,o]),aa(O,r)&&aa(A,t)&&aa(w,o)||(e={pending:null,dispatch:null,lastRenderedReducer:lo,lastRenderedState:E},e.dispatch=y=ew.bind(null,Xn,e),m.queue=e,m.baseQueue=null,E=qL(s,t,r),m.memoizedState=m.baseState=E),E}function g3(e,t,r){var o=ou();return m3(o,e,t,r)}function xp(e){var t=Js();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:lo,lastRenderedState:e},e=e.dispatch=ew.bind(null,Xn,e),[t.memoizedState,e]}function Kg(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Xn.updateQueue,t===null?(t={lastEffect:null},Xn.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function GL(e){var t=Js();return e={current:e},t.memoizedState=e}function Jg(){return ou().memoizedState}function iE(e,t,r,o){var s=Js();Xn.flags|=e,s.memoizedState=Kg(1|t,r,void 0,o===void 0?null:o)}function JE(e,t,r,o){var s=ou();o=o===void 0?null:o;var f=void 0;if(Ir!==null){var d=Ir.memoizedState;if(f=d.destroy,o!==null&&QE(o,d.deps)){Kg(t,r,f,o);return}}Xn.flags|=e,s.memoizedState=Kg(1|t,r,f,o)}function YL(e,t){return iE(516,4,e,t)}function Xg(e,t){return JE(516,4,e,t)}function y3(e,t){return JE(4,2,e,t)}function b3(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function x3(e,t,r){return r=r!=null?r.concat([e]):null,JE(4,2,b3.bind(null,t,e),r)}function XE(){}function S3(e,t){var r=ou();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&QE(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function E3(e,t){var r=ou();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&QE(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function FB(e,t){var r=rf();tu(98>r?98:r,function(){e(!0)}),tu(97<r?97:r,function(){var o=la.transition;la.transition=1;try{e(!1),t()}finally{la.transition=o}})}function ew(e,t,r){var o=ji(),s=$l(e),f={lane:s,action:r,eagerReducer:null,eagerState:null,next:null},d=t.pending;if(d===null?f.next=f:(f.next=d.next,d.next=f),t.pending=f,d=e.alternate,e===Xn||d!==null&&d===Xn)Ip=Qg=!0;else{if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var p=t.lastRenderedState,m=d(p,r);if(f.eagerReducer=d,f.eagerState=m,aa(m,p))return}catch{}finally{}ql(e,s,o)}}var ey={readContext:sa,useCallback:hi,useContext:hi,useEffect:hi,useImperativeHandle:hi,useLayoutEffect:hi,useMemo:hi,useReducer:hi,useRef:hi,useState:hi,useDebugValue:hi,useDeferredValue:hi,useTransition:hi,useMutableSource:hi,useOpaqueIdentifier:hi,unstable_isNewReconciler:!1},jB={readContext:sa,useCallback:function(e,t){return Js().memoizedState=[e,t===void 0?null:t],e},useContext:sa,useEffect:YL,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,iE(4,2,b3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return iE(4,2,e,t)},useMemo:function(e,t){var r=Js();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=Js();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=ew.bind(null,Xn,e),[o.memoizedState,e]},useRef:GL,useState:xp,useDebugValue:XE,useDeferredValue:function(e){var t=xp(e),r=t[0],o=t[1];return YL(function(){var s=la.transition;la.transition=1;try{o(e)}finally{la.transition=s}},[e]),r},useTransition:function(){var e=xp(!1),t=e[0];return e=FB.bind(null,e[1]),GL(e),[e,t]},useMutableSource:function(e,t,r){var o=Js();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},m3(o,e,t,r)},useOpaqueIdentifier:function(){if(co){var e=!1,t=PB(function(){throw e||(e=!0,r("r:"+(wS++).toString(36))),Error(Re(355))}),r=xp(t)[1];return(Xn.mode&2)===0&&(Xn.flags|=516,Kg(5,function(){r("r:"+(wS++).toString(36))},void 0,null)),t}return t="r:"+(wS++).toString(36),xp(t),t},unstable_isNewReconciler:!1},BB={readContext:sa,useCallback:S3,useContext:sa,useEffect:Xg,useImperativeHandle:x3,useLayoutEffect:y3,useMemo:E3,useReducer:yp,useRef:Jg,useState:function(){return yp(lo)},useDebugValue:XE,useDeferredValue:function(e){var t=yp(lo),r=t[0],o=t[1];return Xg(function(){var s=la.transition;la.transition=1;try{o(e)}finally{la.transition=s}},[e]),r},useTransition:function(){var e=yp(lo)[0];return[Jg().current,e]},useMutableSource:g3,useOpaqueIdentifier:function(){return yp(lo)[0]},unstable_isNewReconciler:!1},HB={readContext:sa,useCallback:S3,useContext:sa,useEffect:Xg,useImperativeHandle:x3,useLayoutEffect:y3,useMemo:E3,useReducer:bp,useRef:Jg,useState:function(){return bp(lo)},useDebugValue:XE,useDeferredValue:function(e){var t=bp(lo),r=t[0],o=t[1];return Xg(function(){var s=la.transition;la.transition=1;try{o(e)}finally{la.transition=s}},[e]),r},useTransition:function(){var e=bp(lo)[0];return[Jg().current,e]},useMutableSource:g3,useOpaqueIdentifier:function(){return bp(lo)[0]},unstable_isNewReconciler:!1},VB=iu.ReactCurrentOwner,Da=!1;function vi(e,t,r,o){t.child=e===null?h3(t,null,r,o):Yg(t,e.child,r,o)}function ZL(e,t,r,o,s){r=r.render;var f=t.ref;return Qc(t,s),o=KE(e,t,r,o,f,s),e!==null&&!Da?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Vo(e,t,s)):(t.flags|=1,vi(e,t,o,s),t.child)}function QL(e,t,r,o,s,f){if(e===null){var d=r.type;return typeof d=="function"&&!ow(d)&&d.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=d,w3(e,t,d,o,s,f)):(e=Ag(r.type,null,o,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}return d=e.child,(s&f)===0&&(s=d.memoizedProps,r=r.compare,r=r!==null?r:Yp,r(s,o)&&e.ref===t.ref)?Vo(e,t,f):(t.flags|=1,e=Jl(d,o),e.ref=t.ref,e.return=t,t.child=e)}function w3(e,t,r,o,s,f){if(e!==null&&Yp(e.memoizedProps,o)&&e.ref===t.ref)if(Da=!1,(f&s)!==0)(e.flags&16384)!==0&&(Da=!0);else return t.lanes=e.lanes,Vo(e,t,f);return aE(e,t,r,o,f)}function TS(e,t,r){var o=t.pendingProps,s=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},Cg(t,r);else if((r&1073741824)!==0)t.memoizedState={baseLanes:0},Cg(t,f!==null?f.baseLanes:r);else return e=f!==null?f.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Cg(t,e),null;else f!==null?(o=f.baseLanes|r,t.memoizedState=null):o=r,Cg(t,o);return vi(e,t,s,r),t.child}function C3(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function aE(e,t,r,o,s){var f=gi(r)?eu:jr.current;return f=nf(t,f),Qc(t,s),r=KE(e,t,r,o,f,s),e!==null&&!Da?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Vo(e,t,s)):(t.flags|=1,vi(e,t,r,s),t.child)}function KL(e,t,r,o,s){if(gi(r)){var f=!0;Rg(t)}else f=!1;if(Qc(t,s),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),d3(t,r,o),tE(t,r,o,s),o=!0;else if(e===null){var d=t.stateNode,p=t.memoizedProps;d.props=p;var m=d.context,y=r.contextType;typeof y=="object"&&y!==null?y=sa(y):(y=gi(r)?eu:jr.current,y=nf(t,y));var E=r.getDerivedStateFromProps,w=typeof E=="function"||typeof d.getSnapshotBeforeUpdate=="function";w||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(p!==o||m!==y)&&HL(t,d,o,y),Nl=!1;var k=t.memoizedState;d.state=k,Kp(t,o,d,s),m=t.memoizedState,p!==o||k!==m||mi.current||Nl?(typeof E=="function"&&(Gg(t,r,E,o),m=t.memoizedState),(p=Nl||BL(t,r,p,o,k,m,y))?(w||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4)):(typeof d.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=m),d.props=o,d.state=m,d.context=y,o=p):(typeof d.componentDidMount=="function"&&(t.flags|=4),o=!1)}else{d=t.stateNode,c3(e,t),p=t.memoizedProps,y=t.type===t.elementType?p:Oa(t.type,p),d.props=y,w=t.pendingProps,k=d.context,m=r.contextType,typeof m=="object"&&m!==null?m=sa(m):(m=gi(r)?eu:jr.current,m=nf(t,m));var O=r.getDerivedStateFromProps;(E=typeof O=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(p!==w||k!==m)&&HL(t,d,o,m),Nl=!1,k=t.memoizedState,d.state=k,Kp(t,o,d,s);var A=t.memoizedState;p!==w||k!==A||mi.current||Nl?(typeof O=="function"&&(Gg(t,r,O,o),A=t.memoizedState),(y=Nl||BL(t,r,y,o,k,A,m))?(E||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,A,m),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,A,m)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=A),d.props=o,d.state=A,d.context=m,o=y):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=256),o=!1)}return oE(e,t,r,o,f,s)}function oE(e,t,r,o,s,f){C3(e,t);var d=(t.flags&64)!==0;if(!o&&!d)return s&&zL(t,r,!1),Vo(e,t,f);o=t.stateNode,VB.current=t;var p=d&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&d?(t.child=Yg(t,e.child,null,f),t.child=Yg(t,null,p,f)):vi(e,t,p,f),t.memoizedState=o.state,s&&zL(t,r,!0),t.child}function JL(e){var t=e.stateNode;t.pendingContext?NL(e,t.pendingContext,t.pendingContext!==t.context):t.context&&NL(e,t.context,!1),nE(e,t.containerInfo)}var wg={dehydrated:null,retryLane:0};function XL(e,t,r){var o=t.pendingProps,s=qn.current,f=!1,d;return(d=(t.flags&64)!==0)||(d=e!==null&&e.memoizedState===null?!1:(s&2)!==0),d?(f=!0,t.flags&=-65):e!==null&&e.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(s|=1),Gn(qn,s&1),e===null?(o.fallback!==void 0&&rE(t),e=o.children,s=o.fallback,f?(e=eO(t,e,s,r),t.child.memoizedState={baseLanes:r},t.memoizedState=wg,e):typeof o.unstable_expectedLoadTime=="number"?(e=eO(t,e,s,r),t.child.memoizedState={baseLanes:r},t.memoizedState=wg,t.lanes=33554432,e):(r=lw({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?f?(o=nO(e,t,o.children,o.fallback,r),f=t.child,s=e.child.memoizedState,f.memoizedState=s===null?{baseLanes:r}:{baseLanes:s.baseLanes|r},f.childLanes=e.childLanes&~r,t.memoizedState=wg,o):(r=tO(e,t,o.children,r),t.memoizedState=null,r):f?(o=nO(e,t,o.children,o.fallback,r),f=t.child,s=e.child.memoizedState,f.memoizedState=s===null?{baseLanes:r}:{baseLanes:s.baseLanes|r},f.childLanes=e.childLanes&~r,t.memoizedState=wg,o):(r=tO(e,t,o.children,r),t.memoizedState=null,r)}function eO(e,t,r,o){var s=e.mode,f=e.child;return t={mode:"hidden",children:t},(s&2)===0&&f!==null?(f.childLanes=0,f.pendingProps=t):f=lw(t,s,0,null),r=ef(r,s,o,null),f.return=e,r.return=e,f.sibling=r,e.child=f,r}function tO(e,t,r,o){var s=e.child;return e=s.sibling,r=Jl(s,{mode:"visible",children:r}),(t.mode&2)===0&&(r.lanes=o),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function nO(e,t,r,o,s){var f=t.mode,d=e.child;e=d.sibling;var p={mode:"hidden",children:r};return(f&2)===0&&t.child!==d?(r=t.child,r.childLanes=0,r.pendingProps=p,d=r.lastEffect,d!==null?(t.firstEffect=r.firstEffect,t.lastEffect=d,d.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Jl(d,p),e!==null?o=Jl(e,o):(o=ef(o,f,s,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,o}function rO(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),u3(e.return,t)}function kS(e,t,r,o,s,f){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:s,lastEffect:f}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=r,d.tailMode=s,d.lastEffect=f)}function iO(e,t,r){var o=t.pendingProps,s=o.revealOrder,f=o.tail;if(vi(e,t,o.children,r),o=qn.current,(o&2)!==0)o=o&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rO(e,r);else if(e.tag===19)rO(e,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Gn(qn,o),(t.mode&2)===0)t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&Zg(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),kS(t,!1,s,r,f,t.lastEffect);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Zg(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}kS(t,!0,r,null,f,t.lastEffect);break;case"together":kS(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Vo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ih|=t.lanes,(r&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(Re(153));if(t.child!==null){for(e=t.child,r=Jl(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Jl(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var _3,lE,M3,T3;_3=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};lE=function(){};M3=function(e,t,r,o){var s=e.memoizedProps;if(s!==o){e=t.stateNode,Ks(uo.current);var f=null;switch(r){case"input":s=AS(e,s),o=AS(e,o),f=[];break;case"option":s=IS(e,s),o=IS(e,o),f=[];break;case"select":s=Pn({},s,{value:void 0}),o=Pn({},o,{value:void 0}),f=[];break;case"textarea":s=US(e,s),o=US(e,o),f=[];break;default:typeof s.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Bg)}BS(r,o);var d;r=null;for(y in s)if(!o.hasOwnProperty(y)&&s.hasOwnProperty(y)&&s[y]!=null)if(y==="style"){var p=s[y];for(d in p)p.hasOwnProperty(d)&&(r||(r={}),r[d]="")}else y!=="dangerouslySetInnerHTML"&&y!=="children"&&y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(Bp.hasOwnProperty(y)?f||(f=[]):(f=f||[]).push(y,null));for(y in o){var m=o[y];if(p=s!=null?s[y]:void 0,o.hasOwnProperty(y)&&m!==p&&(m!=null||p!=null))if(y==="style")if(p){for(d in p)!p.hasOwnProperty(d)||m&&m.hasOwnProperty(d)||(r||(r={}),r[d]="");for(d in m)m.hasOwnProperty(d)&&p[d]!==m[d]&&(r||(r={}),r[d]=m[d])}else r||(f||(f=[]),f.push(y,r)),r=m;else y==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,p=p?p.__html:void 0,m!=null&&p!==m&&(f=f||[]).push(y,m)):y==="children"?typeof m!="string"&&typeof m!="number"||(f=f||[]).push(y,""+m):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&(Bp.hasOwnProperty(y)?(m!=null&&y==="onScroll"&&wn("scroll",e),f||p===m||(f=[])):typeof m=="object"&&m!==null&&m.$$typeof===TE?m.toString():(f=f||[]).push(y,m))}r&&(f=f||[]).push("style",r);var y=f;(t.updateQueue=y)&&(t.flags|=4)}};T3=function(e,t,r,o){r!==o&&(t.flags|=4)};function Sp(e,t){if(!co)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function WB(e,t,r){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return gi(t.type)&&Vg(),null;case 3:return af(),Cn(mi),Cn(jr),ZE(),o=t.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Eg(t)?t.flags|=4:o.hydrate||(t.flags|=256)),lE(t),null;case 5:YE(t);var s=Ks(Xp.current);if(r=t.type,e!==null&&t.stateNode!=null)M3(e,t,r,o,s),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(t.stateNode===null)throw Error(Re(166));return null}if(e=Ks(uo.current),Eg(t)){o=t.stateNode,r=t.type;var f=t.memoizedProps;switch(o[Ul]=t,o[Hg]=f,r){case"dialog":wn("cancel",o),wn("close",o);break;case"iframe":case"object":case"embed":wn("load",o);break;case"video":case"audio":for(e=0;e<Mp.length;e++)wn(Mp[e],o);break;case"source":wn("error",o);break;case"img":case"image":case"link":wn("error",o),wn("load",o);break;case"details":wn("toggle",o);break;case"input":oL(o,f),wn("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!f.multiple},wn("invalid",o);break;case"textarea":sL(o,f),wn("invalid",o)}BS(r,f),e=null;for(var d in f)f.hasOwnProperty(d)&&(s=f[d],d==="children"?typeof s=="string"?o.textContent!==s&&(e=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(e=["children",""+s]):Bp.hasOwnProperty(d)&&s!=null&&d==="onScroll"&&wn("scroll",o));switch(r){case"input":pg(o),lL(o,f,!0);break;case"textarea":pg(o),uL(o);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(o.onclick=Bg)}o=e,t.updateQueue=o,o!==null&&(t.flags|=4)}else{switch(d=s.nodeType===9?s:s.ownerDocument,e===FS.html&&(e=xO(r)),e===FS.html?r==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(r,{is:o.is}):(e=d.createElement(r),r==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,r),e[Ul]=t,e[Hg]=o,_3(e,t,!1,!1),t.stateNode=e,d=HS(r,o),r){case"dialog":wn("cancel",e),wn("close",e),s=o;break;case"iframe":case"object":case"embed":wn("load",e),s=o;break;case"video":case"audio":for(s=0;s<Mp.length;s++)wn(Mp[s],e);s=o;break;case"source":wn("error",e),s=o;break;case"img":case"image":case"link":wn("error",e),wn("load",e),s=o;break;case"details":wn("toggle",e),s=o;break;case"input":oL(e,o),s=AS(e,o),wn("invalid",e);break;case"option":s=IS(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},s=Pn({},o,{value:void 0}),wn("invalid",e);break;case"textarea":sL(e,o),s=US(e,o),wn("invalid",e);break;default:s=o}BS(r,s);var p=s;for(f in p)if(p.hasOwnProperty(f)){var m=p[f];f==="style"?wO(e,m):f==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,m!=null&&SO(e,m)):f==="children"?typeof m=="string"?(r!=="textarea"||m!=="")&&Hp(e,m):typeof m=="number"&&Hp(e,""+m):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Bp.hasOwnProperty(f)?m!=null&&f==="onScroll"&&wn("scroll",e):m!=null&&SE(e,f,m,d))}switch(r){case"input":pg(e),lL(e,o,!1);break;case"textarea":pg(e),uL(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Yl(o.value));break;case"select":e.multiple=!!o.multiple,f=o.value,f!=null?qc(e,!!o.multiple,f,!1):o.defaultValue!=null&&qc(e,!!o.multiple,o.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Bg)}e3(r,o)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)T3(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(Re(166));r=Ks(Xp.current),Ks(uo.current),Eg(t)?(o=t.stateNode,r=t.memoizedProps,o[Ul]=t,o.nodeValue!==r&&(t.flags|=4)):(o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Ul]=t,t.stateNode=o)}return null;case 13:return Cn(qn),o=t.memoizedState,(t.flags&64)!==0?(t.lanes=r,t):(o=o!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Eg(t):r=e.memoizedState!==null,o&&!r&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(qn.current&1)!==0?Cr===0&&(Cr=3):((Cr===0||Cr===3)&&(Cr=4),Xr===null||(ih&134217727)===0&&(uf&134217727)===0||Jc(Xr,Fr))),(o||r)&&(t.flags|=4),null);case 4:return af(),lE(t),e===null&&KO(t.stateNode.containerInfo),null;case 10:return qE(t),null;case 17:return gi(t.type)&&Vg(),null;case 19:if(Cn(qn),o=t.memoizedState,o===null)return null;if(f=(t.flags&64)!==0,d=o.rendering,d===null)if(f)Sp(o,!1);else{if(Cr!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(d=Zg(e),d!==null){for(t.flags|=64,Sp(o,!1),f=d.updateQueue,f!==null&&(t.updateQueue=f,t.flags|=4),o.lastEffect===null&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=r,r=t.child;r!==null;)f=r,e=o,f.flags&=2,f.nextEffect=null,f.firstEffect=null,f.lastEffect=null,d=f.alternate,d===null?(f.childLanes=0,f.lanes=e,f.child=null,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=d.childLanes,f.lanes=d.lanes,f.child=d.child,f.memoizedProps=d.memoizedProps,f.memoizedState=d.memoizedState,f.updateQueue=d.updateQueue,f.type=d.type,e=d.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Gn(qn,qn.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ur()>pE&&(t.flags|=64,f=!0,Sp(o,!1),t.lanes=33554432)}else{if(!f)if(e=Zg(d),e!==null){if(t.flags|=64,f=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Sp(o,!0),o.tail===null&&o.tailMode==="hidden"&&!d.alternate&&!co)return t=t.lastEffect=o.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Ur()-o.renderingStartTime>pE&&r!==1073741824&&(t.flags|=64,f=!0,Sp(o,!1),t.lanes=33554432);o.isBackwards?(d.sibling=t.child,t.child=d):(r=o.last,r!==null?r.sibling=d:t.child=d,o.last=d)}return o.tail!==null?(r=o.tail,o.rendering=r,o.tail=r.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=Ur(),r.sibling=null,t=qn.current,Gn(qn,f?t&1|2:t&1),r):null;case 23:case 24:return aw(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(Re(156,t.tag))}function $B(e){switch(e.tag){case 1:gi(e.type)&&Vg();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(af(),Cn(mi),Cn(jr),ZE(),t=e.flags,(t&64)!==0)throw Error(Re(285));return e.flags=t&-4097|64,e;case 5:return YE(e),null;case 13:return Cn(qn),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Cn(qn),null;case 4:return af(),null;case 10:return qE(e),null;case 23:case 24:return aw(),null;default:return null}}function tw(e,t){try{var r="",o=t;do r+=_j(o),o=o.return;while(o);var s=r}catch(f){s=`
6
- Error generating stack: `+f.message+`
7
- `+f.stack}return{value:e,source:t,stack:s}}function sE(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var qB=typeof WeakMap=="function"?WeakMap:Map;function k3(e,t,r){r=Vl(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){ny||(ny=!0,hE=o),sE(e,t)},r}function R3(e,t,r){r=Vl(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var s=t.value;r.payload=function(){return sE(e,t),o(s)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(r.callback=function(){typeof o!="function"&&(so===null?so=new Set([this]):so.add(this),sE(e,t));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),r}var GB=typeof WeakSet=="function"?WeakSet:Set;function aO(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Gl(e,r)}else t.current=null}function YB(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,o=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Oa(t.type,r),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&HE(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(Re(163))}function ZB(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var s=e;o=s.next,s=s.tag,(s&4)!==0&&(s&1)!==0&&(U3(r,e),rH(r,e)),e=o}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(o=r.elementType===r.type?t.memoizedProps:Oa(r.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&jL(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}jL(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&e3(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&PO(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Re(163))}function oO(e,t){for(var r=e;;){if(r.tag===5){var o=r.stateNode;if(t)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=r.stateNode;var s=r.memoizedProps.style;s=s!=null&&s.hasOwnProperty("display")?s.display:null,o.style.display=EO("display",s)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function lO(e,t){if(Xs&&typeof Xs.onCommitFiberUnmount=="function")try{Xs.onCommitFiberUnmount(VE,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var o=r,s=o.destroy;if(o=o.tag,s!==void 0)if((o&4)!==0)U3(t,r);else{o=t;try{s()}catch(f){Gl(o,f)}}r=r.next}while(r!==e)}break;case 1:if(aO(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(f){Gl(t,f)}break;case 5:aO(t);break;case 4:L3(e,t)}}function sO(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function uO(e){return e.tag===5||e.tag===3||e.tag===4}function cO(e){e:{for(var t=e.return;t!==null;){if(uO(t))break e;t=t.return}throw Error(Re(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var o=!1;break;case 3:t=t.containerInfo,o=!0;break;case 4:t=t.containerInfo,o=!0;break;default:throw Error(Re(161))}r.flags&16&&(Hp(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||uO(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}o?uE(e,r,t):cE(e,r,t)}function uE(e,t,r){var o=e.tag,s=o===5||o===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Bg));else if(o!==4&&(e=e.child,e!==null))for(uE(e,t,r),e=e.sibling;e!==null;)uE(e,t,r),e=e.sibling}function cE(e,t,r){var o=e.tag,s=o===5||o===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(cE(e,t,r),e=e.sibling;e!==null;)cE(e,t,r),e=e.sibling}function L3(e,t){for(var r=t,o=!1,s,f;;){if(!o){o=r.return;e:for(;;){if(o===null)throw Error(Re(160));switch(s=o.stateNode,o.tag){case 5:f=!1;break e;case 3:s=s.containerInfo,f=!0;break e;case 4:s=s.containerInfo,f=!0;break e}o=o.return}o=!0}if(r.tag===5||r.tag===6){e:for(var d=e,p=r,m=p;;)if(lO(d,m),m.child!==null&&m.tag!==4)m.child.return=m,m=m.child;else{if(m===p)break e;for(;m.sibling===null;){if(m.return===null||m.return===p)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}f?(d=s,p=r.stateNode,d.nodeType===8?d.parentNode.removeChild(p):d.removeChild(p)):s.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){s=r.stateNode.containerInfo,f=!0,r.child.return=r,r=r.child;continue}}else if(lO(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(o=!1)}r.sibling.return=r.return,r=r.sibling}}function RS(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do(o.tag&3)===3&&(e=o.destroy,o.destroy=void 0,e!==void 0&&e()),o=o.next;while(o!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){o=t.memoizedProps;var s=e!==null?e.memoizedProps:o;e=t.type;var f=t.updateQueue;if(t.updateQueue=null,f!==null){for(r[Hg]=o,e==="input"&&o.type==="radio"&&o.name!=null&&yO(r,o),HS(e,s),t=HS(e,o),s=0;s<f.length;s+=2){var d=f[s],p=f[s+1];d==="style"?wO(r,p):d==="dangerouslySetInnerHTML"?SO(r,p):d==="children"?Hp(r,p):SE(r,d,p,t)}switch(e){case"input":NS(r,o);break;case"textarea":bO(r,o);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!o.multiple,f=o.value,f!=null?qc(r,!!o.multiple,f,!1):e!==!!o.multiple&&(o.defaultValue!=null?qc(r,!!o.multiple,o.defaultValue,!0):qc(r,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(Re(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,PO(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(iw=Ur(),oO(t.child,!0)),fO(t);return;case 19:fO(t);return;case 17:return;case 23:case 24:oO(t,t.memoizedState!==null);return}throw Error(Re(163))}function fO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new GB),t.forEach(function(o){var s=oH.bind(null,e,o);r.has(o)||(r.add(o),o.then(s,s))})}}function QB(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var KB=Math.ceil,ty=iu.ReactCurrentDispatcher,nw=iu.ReactCurrentOwner,st=0,Xr=null,cr=null,Fr=0,nu=0,fE=Xl(0),Cr=0,vy=null,sf=0,ih=0,uf=0,rw=0,dE=null,iw=0,pE=1/0;function cf(){pE=Ur()+500}var qe=null,ny=!1,hE=null,so=null,Kl=!1,Up=null,Tp=90,vE=[],mE=[],Wo=null,Fp=0,gE=null,Og=-1,Bo=0,Dg=0,jp=null,Pg=!1;function ji(){return(st&48)!==0?Ur():Og!==-1?Og:Og=Ur()}function $l(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return rf()===99?1:2;if(Bo===0&&(Bo=sf),UB.transition!==0){Dg!==0&&(Dg=dE!==null?dE.pendingLanes:0),e=Bo;var t=4186112&~Dg;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=rf(),(st&4)!==0&&e===98?e=Fg(12,Bo):(e=Bj(e),e=Fg(e,Bo)),e}function ql(e,t,r){if(50<Fp)throw Fp=0,gE=null,Error(Re(185));if(e=my(e,t),e===null)return null;sy(e,t,r),e===Xr&&(uf|=t,Cr===4&&Jc(e,Fr));var o=rf();t===1?(st&8)!==0&&(st&48)===0?yE(e):(ua(e,r),st===0&&(cf(),fo())):((st&4)===0||o!==98&&o!==99||(Wo===null?Wo=new Set([e]):Wo.add(e)),ua(e,r)),dE=e}function my(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function ua(e,t){for(var r=e.callbackNode,o=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes;0<d;){var p=31-Zl(d),m=1<<p,y=f[p];if(y===-1){if((m&o)===0||(m&s)!==0){y=t,Ic(m);var E=yn;f[p]=10<=E?y+250:6<=E?y+5e3:-1}}else y<=t&&(e.expiredLanes|=m);d&=~m}if(o=qp(e,e===Xr?Fr:0),t=yn,o===0)r!==null&&(r!==CS&&XS(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==CS&&XS(r)}t===15?(r=yE.bind(null,e),jo===null?(jo=[r],Lg=WE(py,s3)):jo.push(r),r=CS):t===14?r=Qp(99,yE.bind(null,e)):(r=Hj(t),r=Qp(r,O3.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function O3(e){if(Og=-1,Dg=Bo=0,(st&48)!==0)throw Error(Re(327));var t=e.callbackNode;if(es()&&e.callbackNode!==t)return null;var r=qp(e,e===Xr?Fr:0);if(r===0)return null;var o=r,s=st;st|=16;var f=N3();(Xr!==e||Fr!==o)&&(cf(),Xc(e,o));do try{eH();break}catch(p){A3(e,p)}while(1);if($E(),ty.current=f,st=s,cr!==null?o=0:(Xr=null,Fr=0,o=Cr),(sf&uf)!==0)Xc(e,0);else if(o!==0){if(o===2&&(st|=64,e.hydrate&&(e.hydrate=!1,HE(e.containerInfo)),r=jO(e),r!==0&&(o=kp(e,r))),o===1)throw t=vy,Xc(e,0),Jc(e,r),ua(e,Ur()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,o){case 0:case 1:throw Error(Re(345));case 2:Gs(e);break;case 3:if(Jc(e,r),(r&62914560)===r&&(o=iw+500-Ur(),10<o)){if(qp(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ji(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=DL(Gs.bind(null,e),o);break}Gs(e);break;case 4:if(Jc(e,r),(r&4186112)===r)break;for(o=e.eventTimes,s=-1;0<r;){var d=31-Zl(r);f=1<<d,d=o[d],d>s&&(s=d),r&=~f}if(r=s,r=Ur()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*KB(r/1960))-r,10<r){e.timeoutHandle=DL(Gs.bind(null,e),r);break}Gs(e);break;case 5:Gs(e);break;default:throw Error(Re(329))}}return ua(e,Ur()),e.callbackNode===t?O3.bind(null,e):null}function Jc(e,t){for(t&=~rw,t&=~uf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Zl(t),o=1<<r;e[r]=-1,t&=~o}}function yE(e){if((st&48)!==0)throw Error(Re(327));if(es(),e===Xr&&(e.expiredLanes&Fr)!==0){var t=Fr,r=kp(e,t);(sf&uf)!==0&&(t=qp(e,t),r=kp(e,t))}else t=qp(e,0),r=kp(e,t);if(e.tag!==0&&r===2&&(st|=64,e.hydrate&&(e.hydrate=!1,HE(e.containerInfo)),t=jO(e),t!==0&&(r=kp(e,t))),r===1)throw r=vy,Xc(e,0),Jc(e,t),ua(e,Ur()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gs(e),ua(e,Ur()),null}function JB(){if(Wo!==null){var e=Wo;Wo=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,ua(t,Ur())})}fo()}function D3(e,t){var r=st;st|=1;try{return e(t)}finally{st=r,st===0&&(cf(),fo())}}function P3(e,t){var r=st;st&=-2,st|=8;try{return e(t)}finally{st=r,st===0&&(cf(),fo())}}function Cg(e,t){Gn(fE,nu),nu|=t,sf|=t}function aw(){nu=fE.current,Cn(fE)}function Xc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,DB(r)),cr!==null)for(r=cr.return;r!==null;){var o=r;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&Vg();break;case 3:af(),Cn(mi),Cn(jr),ZE();break;case 5:YE(o);break;case 4:af();break;case 13:Cn(qn);break;case 19:Cn(qn);break;case 10:qE(o);break;case 23:case 24:aw()}r=r.return}Xr=e,cr=Jl(e.current,null),Fr=nu=sf=t,Cr=0,vy=null,rw=uf=ih=0}function A3(e,t){do{var r=cr;try{if($E(),zp.current=ey,Qg){for(var o=Xn.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}Qg=!1}if(eh=0,wr=Ir=Xn=null,Ip=!1,nw.current=null,r===null||r.return===null){Cr=1,vy=t,cr=null;break}e:{var f=e,d=r.return,p=r,m=t;if(t=Fr,p.flags|=2048,p.firstEffect=p.lastEffect=null,m!==null&&typeof m=="object"&&typeof m.then=="function"){var y=m;if((p.mode&2)===0){var E=p.alternate;E?(p.updateQueue=E.updateQueue,p.memoizedState=E.memoizedState,p.lanes=E.lanes):(p.updateQueue=null,p.memoizedState=null)}var w=(qn.current&1)!==0,k=d;do{var O;if(O=k.tag===13){var A=k.memoizedState;if(A!==null)O=A.dehydrated!==null;else{var W=k.memoizedProps;O=W.fallback===void 0?!1:W.unstable_avoidThisFallback!==!0?!0:!w}}if(O){var P=k.updateQueue;if(P===null){var R=new Set;R.add(y),k.updateQueue=R}else P.add(y);if((k.mode&2)===0){if(k.flags|=64,p.flags|=16384,p.flags&=-2981,p.tag===1)if(p.alternate===null)p.tag=17;else{var D=Vl(-1,1);D.tag=2,Wl(p,D)}p.lanes|=1;break e}m=void 0,p=t;var T=f.pingCache;if(T===null?(T=f.pingCache=new qB,m=new Set,T.set(y,m)):(m=T.get(y),m===void 0&&(m=new Set,T.set(y,m))),!m.has(p)){m.add(p);var M=aH.bind(null,f,y,p);y.then(M,M)}k.flags|=4096,k.lanes=t;break e}k=k.return}while(k!==null);m=Error(($c(p.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
8
-
9
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Cr!==5&&(Cr=2),m=tw(m,p),k=d;do{switch(k.tag){case 3:f=m,k.flags|=4096,t&=-t,k.lanes|=t;var U=k3(k,f,t);FL(k,U);break e;case 1:f=m;var Y=k.type,F=k.stateNode;if((k.flags&64)===0&&(typeof Y.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(so===null||!so.has(F)))){k.flags|=4096,t&=-t,k.lanes|=t;var ne=R3(k,f,t);FL(k,ne);break e}}k=k.return}while(k!==null)}I3(r)}catch(ue){t=ue,cr===r&&r!==null&&(cr=r=r.return);continue}break}while(1)}function N3(){var e=ty.current;return ty.current=ey,e===null?ey:e}function kp(e,t){var r=st;st|=16;var o=N3();Xr===e&&Fr===t||Xc(e,t);do try{XB();break}catch(s){A3(e,s)}while(1);if($E(),st=r,ty.current=o,cr!==null)throw Error(Re(261));return Xr=null,Fr=0,Cr}function XB(){for(;cr!==null;)z3(cr)}function eH(){for(;cr!==null&&!NB();)z3(cr)}function z3(e){var t=F3(e.alternate,e,nu);e.memoizedProps=e.pendingProps,t===null?I3(e):cr=t,nw.current=null}function I3(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=WB(r,t,nu),r!==null){cr=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(nu&1073741824)!==0||(r.mode&4)===0){for(var o=0,s=r.child;s!==null;)o|=s.lanes|s.childLanes,s=s.sibling;r.childLanes=o}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(r=$B(t),r!==null){r.flags&=2047,cr=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){cr=t;return}cr=t=e}while(t!==null);Cr===0&&(Cr=5)}function Gs(e){var t=rf();return tu(99,tH.bind(null,e,t)),null}function tH(e,t){do es();while(Up!==null);if((st&48)!==0)throw Error(Re(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Re(177));e.callbackNode=null;var o=r.lanes|r.childLanes,s=o,f=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var d=e.eventTimes,p=e.expirationTimes;0<f;){var m=31-Zl(f),y=1<<m;s[m]=0,d[m]=-1,p[m]=-1,f&=~y}if(Wo!==null&&(o&24)===0&&Wo.has(e)&&Wo.delete(e),e===Xr&&(cr=Xr=null,Fr=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,o=r.firstEffect):o=r:o=r.firstEffect,o!==null){if(s=st,st|=32,nw.current=null,SS=Mg,d=ML(),YS(d)){if("selectionStart"in d)p={start:d.selectionStart,end:d.selectionEnd};else e:if(p=(p=d.ownerDocument)&&p.defaultView||window,(y=p.getSelection&&p.getSelection())&&y.rangeCount!==0){p=y.anchorNode,f=y.anchorOffset,m=y.focusNode,y=y.focusOffset;try{p.nodeType,m.nodeType}catch{p=null;break e}var E=0,w=-1,k=-1,O=0,A=0,W=d,P=null;t:for(;;){for(var R;W!==p||f!==0&&W.nodeType!==3||(w=E+f),W!==m||y!==0&&W.nodeType!==3||(k=E+y),W.nodeType===3&&(E+=W.nodeValue.length),(R=W.firstChild)!==null;)P=W,W=R;for(;;){if(W===d)break t;if(P===p&&++O===f&&(w=E),P===m&&++A===y&&(k=E),(R=W.nextSibling)!==null)break;W=P,P=W.parentNode}W=R}p=w===-1||k===-1?null:{start:w,end:k}}else p=null;p=p||{start:0,end:0}}else p=null;ES={focusedElem:d,selectionRange:p},Mg=!1,jp=null,Pg=!1,qe=o;do try{nH()}catch(ue){if(qe===null)throw Error(Re(330));Gl(qe,ue),qe=qe.nextEffect}while(qe!==null);jp=null,qe=o;do try{for(d=e;qe!==null;){var D=qe.flags;if(D&16&&Hp(qe.stateNode,""),D&128){var T=qe.alternate;if(T!==null){var M=T.ref;M!==null&&(typeof M=="function"?M(null):M.current=null)}}switch(D&1038){case 2:cO(qe),qe.flags&=-3;break;case 6:cO(qe),qe.flags&=-3,RS(qe.alternate,qe);break;case 1024:qe.flags&=-1025;break;case 1028:qe.flags&=-1025,RS(qe.alternate,qe);break;case 4:RS(qe.alternate,qe);break;case 8:p=qe,L3(d,p);var U=p.alternate;sO(p),U!==null&&sO(U)}qe=qe.nextEffect}}catch(ue){if(qe===null)throw Error(Re(330));Gl(qe,ue),qe=qe.nextEffect}while(qe!==null);if(M=ES,T=ML(),D=M.focusedElem,d=M.selectionRange,T!==D&&D&&D.ownerDocument&&YO(D.ownerDocument.documentElement,D)){for(d!==null&&YS(D)&&(T=d.start,M=d.end,M===void 0&&(M=T),"selectionStart"in D?(D.selectionStart=T,D.selectionEnd=Math.min(M,D.value.length)):(M=(T=D.ownerDocument||document)&&T.defaultView||window,M.getSelection&&(M=M.getSelection(),p=D.textContent.length,U=Math.min(d.start,p),d=d.end===void 0?U:Math.min(d.end,p),!M.extend&&U>d&&(p=d,d=U,U=p),p=_L(D,U),f=_L(D,d),p&&f&&(M.rangeCount!==1||M.anchorNode!==p.node||M.anchorOffset!==p.offset||M.focusNode!==f.node||M.focusOffset!==f.offset)&&(T=T.createRange(),T.setStart(p.node,p.offset),M.removeAllRanges(),U>d?(M.addRange(T),M.extend(f.node,f.offset)):(T.setEnd(f.node,f.offset),M.addRange(T)))))),T=[],M=D;M=M.parentNode;)M.nodeType===1&&T.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<T.length;D++)M=T[D],M.element.scrollLeft=M.left,M.element.scrollTop=M.top}Mg=!!SS,ES=SS=null,e.current=r,qe=o;do try{for(D=e;qe!==null;){var Y=qe.flags;if(Y&36&&ZB(D,qe.alternate,qe),Y&128){T=void 0;var F=qe.ref;if(F!==null){var ne=qe.stateNode;switch(qe.tag){case 5:T=ne;break;default:T=ne}typeof F=="function"?F(T):F.current=T}}qe=qe.nextEffect}}catch(ue){if(qe===null)throw Error(Re(330));Gl(qe,ue),qe=qe.nextEffect}while(qe!==null);qe=null,IB(),st=s}else e.current=r;if(Kl)Kl=!1,Up=e,Tp=t;else for(qe=o;qe!==null;)t=qe.nextEffect,qe.nextEffect=null,qe.flags&8&&(Y=qe,Y.sibling=null,Y.stateNode=null),qe=t;if(o=e.pendingLanes,o===0&&(so=null),o===1?e===gE?Fp++:(Fp=0,gE=e):Fp=0,r=r.stateNode,Xs&&typeof Xs.onCommitFiberRoot=="function")try{Xs.onCommitFiberRoot(VE,r,void 0,(r.current.flags&64)===64)}catch{}if(ua(e,Ur()),ny)throw ny=!1,e=hE,hE=null,e;return(st&8)!==0||fo(),null}function nH(){for(;qe!==null;){var e=qe.alternate;Pg||jp===null||((qe.flags&8)!==0?dL(qe,jp)&&(Pg=!0):qe.tag===13&&QB(e,qe)&&dL(qe,jp)&&(Pg=!0));var t=qe.flags;(t&256)!==0&&YB(e,qe),(t&512)===0||Kl||(Kl=!0,Qp(97,function(){return es(),null})),qe=qe.nextEffect}}function es(){if(Tp!==90){var e=97<Tp?97:Tp;return Tp=90,tu(e,iH)}return!1}function rH(e,t){vE.push(t,e),Kl||(Kl=!0,Qp(97,function(){return es(),null}))}function U3(e,t){mE.push(t,e),Kl||(Kl=!0,Qp(97,function(){return es(),null}))}function iH(){if(Up===null)return!1;var e=Up;if(Up=null,(st&48)!==0)throw Error(Re(331));var t=st;st|=32;var r=mE;mE=[];for(var o=0;o<r.length;o+=2){var s=r[o],f=r[o+1],d=s.destroy;if(s.destroy=void 0,typeof d=="function")try{d()}catch(m){if(f===null)throw Error(Re(330));Gl(f,m)}}for(r=vE,vE=[],o=0;o<r.length;o+=2){s=r[o],f=r[o+1];try{var p=s.create;s.destroy=p()}catch(m){if(f===null)throw Error(Re(330));Gl(f,m)}}for(p=e.current.firstEffect;p!==null;)e=p.nextEffect,p.nextEffect=null,p.flags&8&&(p.sibling=null,p.stateNode=null),p=e;return st=t,fo(),!0}function dO(e,t,r){t=tw(r,t),t=k3(e,t,1),Wl(e,t),t=ji(),e=my(e,1),e!==null&&(sy(e,1,t),ua(e,t))}function Gl(e,t){if(e.tag===3)dO(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){dO(r,e,t);break}else if(r.tag===1){var o=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(so===null||!so.has(o))){e=tw(t,e);var s=R3(r,e,1);if(Wl(r,s),s=ji(),r=my(r,1),r!==null)sy(r,1,s),ua(r,s);else if(typeof o.componentDidCatch=="function"&&(so===null||!so.has(o)))try{o.componentDidCatch(t,e)}catch{}break}}r=r.return}}function aH(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=ji(),e.pingedLanes|=e.suspendedLanes&r,Xr===e&&(Fr&r)===r&&(Cr===4||Cr===3&&(Fr&62914560)===Fr&&500>Ur()-iw?Xc(e,0):rw|=r),ua(e,t)}function oH(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=rf()===99?1:2:(Bo===0&&(Bo=sf),t=Uc(62914560&~Bo),t===0&&(t=4194304))),r=ji(),e=my(e,t),e!==null&&(sy(e,t,r),ua(e,r))}var F3;F3=function(e,t,r){var o=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||mi.current)Da=!0;else if((r&o)!==0)Da=(e.flags&16384)!==0;else{switch(Da=!1,t.tag){case 3:JL(t),MS();break;case 5:VL(t);break;case 1:gi(t.type)&&Rg(t);break;case 4:nE(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var s=t.type._context;Gn(Wg,s._currentValue),s._currentValue=o;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?XL(e,t,r):(Gn(qn,qn.current&1),t=Vo(e,t,r),t!==null?t.sibling:null);Gn(qn,qn.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&64)!==0){if(o)return iO(e,t,r);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Gn(qn,qn.current),o)break;return null;case 23:case 24:return t.lanes=0,TS(e,t,r)}return Vo(e,t,r)}else Da=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=nf(t,jr.current),Qc(t,r),s=KE(null,t,o,e,s,r),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(o)){var f=!0;Rg(t)}else f=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,GE(t);var d=o.getDerivedStateFromProps;typeof d=="function"&&Gg(t,o,d,e),s.updater=hy,t.stateNode=s,s._reactInternals=t,tE(t,o,e,r),t=oE(null,t,o,!0,f,r)}else t.tag=0,vi(null,t,s,r),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,f=s._init,s=f(s._payload),t.type=s,f=t.tag=sH(s),e=Oa(s,e),f){case 0:t=aE(null,t,s,e,r);break e;case 1:t=KL(null,t,s,e,r);break e;case 11:t=ZL(null,t,s,e,r);break e;case 14:t=QL(null,t,s,Oa(s.type,e),o,r);break e}throw Error(Re(306,s,""))}return t;case 0:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Oa(o,s),aE(e,t,o,s,r);case 1:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Oa(o,s),KL(e,t,o,s,r);case 3:if(JL(t),o=t.updateQueue,e===null||o===null)throw Error(Re(282));if(o=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,c3(e,t),Kp(t,o,null,r),o=t.memoizedState.element,o===s)MS(),t=Vo(e,t,r);else{if(s=t.stateNode,(f=s.hydrate)&&(Fl=Zc(t.stateNode.containerInfo.firstChild),Ho=t,f=co=!0),f){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)f=e[s],f._workInProgressVersionPrimary=e[s+1],Kc.push(f);for(r=h3(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else vi(e,t,o,r),MS();t=t.child}return t;case 5:return VL(t),e===null&&rE(t),o=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,d=s.children,KS(o,s)?d=null:f!==null&&KS(o,f)&&(t.flags|=16),C3(e,t),vi(e,t,d,r),t.child;case 6:return e===null&&rE(t),null;case 13:return XL(e,t,r);case 4:return nE(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Yg(t,null,o,r):vi(e,t,o,r),t.child;case 11:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Oa(o,s),ZL(e,t,o,s,r);case 7:return vi(e,t,t.pendingProps,r),t.child;case 8:return vi(e,t,t.pendingProps.children,r),t.child;case 12:return vi(e,t,t.pendingProps.children,r),t.child;case 10:e:{o=t.type._context,s=t.pendingProps,d=t.memoizedProps,f=s.value;var p=t.type._context;if(Gn(Wg,p._currentValue),p._currentValue=f,d!==null)if(p=d.value,f=aa(p,f)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(p,f):1073741823)|0,f===0){if(d.children===s.children&&!mi.current){t=Vo(e,t,r);break e}}else for(p=t.child,p!==null&&(p.return=t);p!==null;){var m=p.dependencies;if(m!==null){d=p.child;for(var y=m.firstContext;y!==null;){if(y.context===o&&(y.observedBits&f)!==0){p.tag===1&&(y=Vl(-1,r&-r),y.tag=2,Wl(p,y)),p.lanes|=r,y=p.alternate,y!==null&&(y.lanes|=r),u3(p.return,r),m.lanes|=r;break}y=y.next}}else d=p.tag===10&&p.type===t.type?null:p.child;if(d!==null)d.return=p;else for(d=p;d!==null;){if(d===t){d=null;break}if(p=d.sibling,p!==null){p.return=d.return,d=p;break}d=d.return}p=d}vi(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,f=t.pendingProps,o=f.children,Qc(t,r),s=sa(s,f.unstable_observedBits),o=o(s),t.flags|=1,vi(e,t,o,r),t.child;case 14:return s=t.type,f=Oa(s,t.pendingProps),f=Oa(s.type,f),QL(e,t,s,f,o,r);case 15:return w3(e,t,t.type,t.pendingProps,o,r);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Oa(o,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,gi(o)?(e=!0,Rg(t)):e=!1,Qc(t,r),d3(t,o,s),tE(t,o,s,r),oE(null,t,o,!0,e,r);case 19:return iO(e,t,r);case 23:return TS(e,t,r);case 24:return TS(e,t,r)}throw Error(Re(156,t.tag))};function lH(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function oa(e,t,r,o){return new lH(e,t,r,o)}function ow(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sH(e){if(typeof e=="function")return ow(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ay)return 11;if(e===oy)return 14}return 2}function Jl(e,t){var r=e.alternate;return r===null?(r=oa(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ag(e,t,r,o,s,f){var d=2;if(o=e,typeof e=="function")ow(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case zl:return ef(r.children,s,f,t);case vO:d=8,s|=16;break;case EE:d=8,s|=1;break;case Rp:return e=oa(12,r,t,s|8),e.elementType=Rp,e.type=Rp,e.lanes=f,e;case Lp:return e=oa(13,r,t,s),e.type=Lp,e.elementType=Lp,e.lanes=f,e;case Ng:return e=oa(19,r,t,s),e.elementType=Ng,e.lanes=f,e;case kE:return lw(r,s,f,t);case PS:return e=oa(24,r,t,s),e.elementType=PS,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wE:d=10;break e;case CE:d=9;break e;case ay:d=11;break e;case oy:d=14;break e;case _E:d=16,o=null;break e;case ME:d=22;break e}throw Error(Re(130,e==null?e:typeof e,""))}return t=oa(d,r,t,s),t.elementType=e,t.type=o,t.lanes=f,t}function ef(e,t,r,o){return e=oa(7,e,o,t),e.lanes=r,e}function lw(e,t,r,o){return e=oa(23,e,o,t),e.elementType=kE,e.lanes=r,e}function LS(e,t,r){return e=oa(6,e,null,t),e.lanes=r,e}function OS(e,t,r){return t=oa(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uH(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=vS(0),this.expirationTimes=vS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vS(0),this.mutableSourceEagerHydrationData=null}function cH(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ys,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function ry(e,t,r,o){var s=t.current,f=ji(),d=$l(s);e:if(r){r=r._reactInternals;t:{if(au(r)!==r||r.tag!==1)throw Error(Re(170));var p=r;do{switch(p.tag){case 3:p=p.stateNode.context;break t;case 1:if(gi(p.type)){p=p.stateNode.__reactInternalMemoizedMergedChildContext;break t}}p=p.return}while(p!==null);throw Error(Re(171))}if(r.tag===1){var m=r.type;if(gi(m)){r=n3(r,m,p);break e}}r=p}else r=Ql;return t.context===null?t.context=r:t.pendingContext=r,t=Vl(f,d),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),Wl(s,t),ql(s,d,f),d}function DS(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function pO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function sw(e,t){pO(e,t),(e=e.alternate)&&pO(e,t)}function fH(){return null}function uw(e,t,r){var o=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new uH(e,t,r!=null&&r.hydrate===!0),t=oa(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,GE(t),e[lf]=r.current,KO(e.nodeType===8?e.parentNode:e),o)for(e=0;e<o.length;e++){t=o[e];var s=t._getVersion;s=s(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,s]:r.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=r}uw.prototype.render=function(e){ry(e,this._internalRoot,null,null)};uw.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ry(null,e,null,function(){t[lf]=null})};function ah(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dH(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new uw(e,0,t?{hydrate:!0}:void 0)}function gy(e,t,r,o,s){var f=r._reactRootContainer;if(f){var d=f._internalRoot;if(typeof s=="function"){var p=s;s=function(){var y=DS(d);p.call(y)}}ry(t,d,e,s)}else{if(f=r._reactRootContainer=dH(r,o),d=f._internalRoot,typeof s=="function"){var m=s;s=function(){var y=DS(d);m.call(y)}}P3(function(){ry(t,d,e,s)})}return DS(d)}LO=function(e){if(e.tag===13){var t=ji();ql(e,4,t),sw(e,4)}};PE=function(e){if(e.tag===13){var t=ji();ql(e,67108864,t),sw(e,67108864)}};OO=function(e){if(e.tag===13){var t=ji(),r=$l(e);ql(e,r,t),sw(e,r)}};DO=function(e,t){return t()};VS=function(e,t,r){switch(t){case"input":if(NS(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var s=dy(o);if(!s)throw Error(Re(90));gO(o),NS(o,s)}}}break;case"textarea":bO(e,r);break;case"select":t=r.value,t!=null&&qc(e,!!r.multiple,t,!1)}};LE=D3;MO=function(e,t,r,o,s){var f=st;st|=4;try{return tu(98,e.bind(null,t,r,o,s))}finally{st=f,st===0&&(cf(),fo())}};OE=function(){(st&49)===0&&(JB(),es())};TO=function(e,t){var r=st;st|=2;try{return e(t)}finally{st=r,st===0&&(cf(),fo())}};function j3(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ah(t))throw Error(Re(200));return cH(e,t,null,r)}var pH={Events:[nh,Hc,dy,CO,_O,es,{current:!1}]},Ep={findFiberByHostInstance:Qs,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},hH={bundleType:Ep.bundleType,version:Ep.version,rendererPackageName:Ep.rendererPackageName,rendererConfig:Ep.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:iu.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=RO(e),e===null?null:e.stateNode},findFiberByHostInstance:Ep.findFiberByHostInstance||fH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(wp=__REACT_DEVTOOLS_GLOBAL_HOOK__,!wp.isDisabled&&wp.supportsFiber))try{VE=wp.inject(hH),Xs=wp}catch{}var wp;ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pH;ca.createPortal=j3;ca.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Re(188)):Error(Re(268,Object.keys(e)));return e=RO(t),e=e===null?null:e.stateNode,e};ca.flushSync=function(e,t){var r=st;if((r&48)!==0)return e(t);st|=1;try{if(e)return tu(99,e.bind(null,t))}finally{st=r,fo()}};ca.hydrate=function(e,t,r){if(!ah(t))throw Error(Re(200));return gy(null,e,t,!0,r)};ca.render=function(e,t,r){if(!ah(t))throw Error(Re(200));return gy(null,e,t,!1,r)};ca.unmountComponentAtNode=function(e){if(!ah(e))throw Error(Re(40));return e._reactRootContainer?(P3(function(){gy(null,null,e,!1,function(){e._reactRootContainer=null,e[lf]=null})}),!0):!1};ca.unstable_batchedUpdates=D3;ca.unstable_createPortal=function(e,t){return j3(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};ca.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!ah(r))throw Error(Re(200));if(e==null||e._reactInternals===void 0)throw Error(Re(38));return gy(e,t,r,!1,o)};ca.version="17.0.2"});var H3=Mt(po=>{"use strict";G();var vH=0;po.__interactionsRef=null;po.__subscriberRef=null;po.unstable_clear=function(e){return e()};po.unstable_getCurrent=function(){return null};po.unstable_getThreadID=function(){return++vH};po.unstable_subscribe=function(){};po.unstable_trace=function(e,t,r){return r()};po.unstable_unsubscribe=function(){};po.unstable_wrap=function(e){return e}});var V3=Mt(Kt=>{"use strict";G();process.env.NODE_ENV!=="production"&&function(){"use strict";var e=0,t=0,r=0;Kt.__interactionsRef=null,Kt.__subscriberRef=null,Kt.__interactionsRef={current:new Set},Kt.__subscriberRef={current:null};function o(R){var D=Kt.__interactionsRef.current;Kt.__interactionsRef.current=new Set;try{return R()}finally{Kt.__interactionsRef.current=D}}function s(){return Kt.__interactionsRef.current}function f(){return++r}function d(R,D,T){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e,U={__count:1,id:t++,name:R,timestamp:D},Y=Kt.__interactionsRef.current,F=new Set(Y);F.add(U),Kt.__interactionsRef.current=F;var ne=Kt.__subscriberRef.current,ue;try{ne!==null&&ne.onInteractionTraced(U)}finally{try{ne!==null&&ne.onWorkStarted(F,M)}finally{try{ue=T()}finally{Kt.__interactionsRef.current=Y;try{ne!==null&&ne.onWorkStopped(F,M)}finally{U.__count--,ne!==null&&U.__count===0&&ne.onInteractionScheduledWorkCompleted(U)}}}}return ue}function p(R){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,T=Kt.__interactionsRef.current,M=Kt.__subscriberRef.current;M!==null&&M.onWorkScheduled(T,D),T.forEach(function(F){F.__count++});var U=!1;function Y(){var F=Kt.__interactionsRef.current;Kt.__interactionsRef.current=T,M=Kt.__subscriberRef.current;try{var ne;try{M!==null&&M.onWorkStarted(T,D)}finally{try{ne=R.apply(void 0,arguments)}finally{Kt.__interactionsRef.current=F,M!==null&&M.onWorkStopped(T,D)}}return ne}finally{U||(U=!0,T.forEach(function(ue){ue.__count--,M!==null&&ue.__count===0&&M.onInteractionScheduledWorkCompleted(ue)}))}}return Y.cancel=function(){M=Kt.__subscriberRef.current;try{M!==null&&M.onWorkCanceled(T,D)}finally{T.forEach(function(ne){ne.__count--,M&&ne.__count===0&&M.onInteractionScheduledWorkCompleted(ne)})}},Y}var m=null;m=new Set;function y(R){m.add(R),m.size===1&&(Kt.__subscriberRef.current={onInteractionScheduledWorkCompleted:k,onInteractionTraced:w,onWorkCanceled:P,onWorkScheduled:O,onWorkStarted:A,onWorkStopped:W})}function E(R){m.delete(R),m.size===0&&(Kt.__subscriberRef.current=null)}function w(R){var D=!1,T=null;if(m.forEach(function(M){try{M.onInteractionTraced(R)}catch(U){D||(D=!0,T=U)}}),D)throw T}function k(R){var D=!1,T=null;if(m.forEach(function(M){try{M.onInteractionScheduledWorkCompleted(R)}catch(U){D||(D=!0,T=U)}}),D)throw T}function O(R,D){var T=!1,M=null;if(m.forEach(function(U){try{U.onWorkScheduled(R,D)}catch(Y){T||(T=!0,M=Y)}}),T)throw M}function A(R,D){var T=!1,M=null;if(m.forEach(function(U){try{U.onWorkStarted(R,D)}catch(Y){T||(T=!0,M=Y)}}),T)throw M}function W(R,D){var T=!1,M=null;if(m.forEach(function(U){try{U.onWorkStopped(R,D)}catch(Y){T||(T=!0,M=Y)}}),T)throw M}function P(R,D){var T=!1,M=null;if(m.forEach(function(U){try{U.onWorkCanceled(R,D)}catch(Y){T||(T=!0,M=Y)}}),T)throw M}Kt.unstable_clear=o,Kt.unstable_getCurrent=s,Kt.unstable_getThreadID=f,Kt.unstable_subscribe=y,Kt.unstable_trace=d,Kt.unstable_unsubscribe=E,Kt.unstable_wrap=p}()});var W3=Mt((xJ,cw)=>{"use strict";G();process.env.NODE_ENV==="production"?cw.exports=H3():cw.exports=V3()});var $3=Mt(fa=>{"use strict";G();process.env.NODE_ENV!=="production"&&function(){"use strict";var e=ct("react"),t=ag(),r=cS(),o=W3(),s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(n){{for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];p("warn",n,l)}}function d(n){{for(var a=arguments.length,l=new Array(a>1?a-1:0),u=1;u<a;u++)l[u-1]=arguments[u];p("error",n,l)}}function p(n,a,l){{var u=s.ReactDebugCurrentFrame,h=u.getStackAddendum();h!==""&&(a+="%s",l=l.concat([h]));var g=l.map(function(b){return""+b});g.unshift("Warning: "+a),Function.prototype.apply.call(console[n],console,g)}}if(!e)throw Error("ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var m=0,y=1,E=2,w=3,k=4,O=5,A=6,W=7,P=8,R=9,D=10,T=11,M=12,U=13,Y=14,F=15,ne=16,ue=17,Q=18,B=19,ae=20,H=21,K=22,re=23,le=24,se=!0,ce=!1,de=!1,ve=!1,Ce=new Set,_e={},Ae={};function Ye(n,a){Ne(n,a),Ne(n+"Capture",a)}function Ne(n,a){_e[n]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),_e[n]=a;{var l=n.toLowerCase();Ae[l]=n,n==="onDoubleClick"&&(Ae.ondblclick=n)}for(var u=0;u<a.length;u++)Ce.add(a[u])}var ft=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",St=0,Yt=1,$r=2,mt=3,Lt=4,ze=5,jt=6,en=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",nr=en+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",qr="data-reactroot",lr=new RegExp("^["+en+"]["+nr+"]*$"),Un=Object.prototype.hasOwnProperty,Tt={},Bt={};function Ot(n){return Un.call(Bt,n)?!0:Un.call(Tt,n)?!1:lr.test(n)?(Bt[n]=!0,!0):(Tt[n]=!0,d("Invalid attribute name: `%s`",n),!1)}function bn(n,a,l){return a!==null?a.type===St:l?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function sn(n,a,l,u){if(l!==null&&l.type===St)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(u)return!1;if(l!==null)return!l.acceptsBooleans;var h=n.toLowerCase().slice(0,5);return h!=="data-"&&h!=="aria-"}default:return!1}}function rr(n,a,l,u){if(a===null||typeof a>"u"||sn(n,a,l,u))return!0;if(u)return!1;if(l!==null)switch(l.type){case mt:return!a;case Lt:return a===!1;case ze:return isNaN(a);case jt:return isNaN(a)||a<1}return!1}function sr(n){return tn.hasOwnProperty(n)?tn[n]:null}function zt(n,a,l,u,h,g,b){this.acceptsBooleans=a===$r||a===mt||a===Lt,this.attributeName=u,this.attributeNamespace=h,this.mustUseProperty=l,this.propertyName=n,this.type=a,this.sanitizeURL=g,this.removeEmptyString=b}var tn={},un=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];un.forEach(function(n){tn[n]=new zt(n,St,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],l=n[1];tn[a]=new zt(a,Yt,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){tn[n]=new zt(n,$r,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){tn[n]=new zt(n,$r,!1,n,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(n){tn[n]=new zt(n,mt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){tn[n]=new zt(n,mt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){tn[n]=new zt(n,Lt,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){tn[n]=new zt(n,jt,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){tn[n]=new zt(n,ze,!1,n.toLowerCase(),null,!1,!1)});var Fn=/[\-\:]([a-z])/g,ke=function(n){return n[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(n){var a=n.replace(Fn,ke);tn[a]=new zt(a,Yt,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(Fn,ke);tn[a]=new zt(a,Yt,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(Fn,ke);tn[a]=new zt(a,Yt,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){tn[n]=new zt(n,Yt,!1,n.toLowerCase(),null,!1,!1)});var Ue="xlinkHref";tn[Ue]=new zt("xlinkHref",Yt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){tn[n]=new zt(n,Yt,!1,n.toLowerCase(),null,!0,!0)});var dt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,kt=!1;function gt(n){!kt&&dt.test(n)&&(kt=!0,d("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function Je(n,a,l,u){if(u.mustUseProperty){var h=u.propertyName;return n[h]}else{u.sanitizeURL&&gt(""+l);var g=u.attributeName,b=null;if(u.type===Lt){if(n.hasAttribute(g)){var S=n.getAttribute(g);return S===""?!0:rr(a,l,u,!1)?S:S===""+l?l:S}}else if(n.hasAttribute(g)){if(rr(a,l,u,!1))return n.getAttribute(g);if(u.type===mt)return l;b=n.getAttribute(g)}return rr(a,l,u,!1)?b===null?l:b:b===""+l?l:b}}function ir(n,a,l){{if(!Ot(a))return;if(bz(l))return l;if(!n.hasAttribute(a))return l===void 0?void 0:null;var u=n.getAttribute(a);return u===""+l?l:u}}function ri(n,a,l,u){var h=sr(a);if(!bn(a,h,u)){if(rr(a,l,h,u)&&(l=null),u||h===null){if(Ot(a)){var g=a;l===null?n.removeAttribute(g):n.setAttribute(g,""+l)}return}var b=h.mustUseProperty;if(b){var S=h.propertyName;if(l===null){var _=h.type;n[S]=_===mt?!1:""}else n[S]=l;return}var N=h.attributeName,z=h.attributeNamespace;if(l===null)n.removeAttribute(N);else{var ee=h.type,V;ee===mt||ee===Lt&&l===!0?V="":(V=""+l,h.sanitizeURL&&gt(V.toString())),z?n.setAttributeNS(z,N,V):n.setAttribute(N,V)}}}var jn=60103,_i=60106,Ia=60107,Zt=60108,tl=60114,Mi=60109,wu=60110,yo=60112,nl=60113,Ua=60120,Ti=60115,Gi=60116,rl=60121,Cu=60122,Pf=60117,_u=60119,il=60128,qh=60129,va=60130,al=60131;if(typeof Symbol=="function"&&Symbol.for){var hn=Symbol.for;jn=hn("react.element"),_i=hn("react.portal"),Ia=hn("react.fragment"),Zt=hn("react.strict_mode"),tl=hn("react.profiler"),Mi=hn("react.provider"),wu=hn("react.context"),yo=hn("react.forward_ref"),nl=hn("react.suspense"),Ua=hn("react.suspense_list"),Ti=hn("react.memo"),Gi=hn("react.lazy"),rl=hn("react.block"),Cu=hn("react.server.block"),Pf=hn("react.fundamental"),_u=hn("react.scope"),il=hn("react.opaque.id"),qh=hn("react.debug_trace_mode"),va=hn("react.offscreen"),al=hn("react.legacy_hidden")}var Mu=typeof Symbol=="function"&&Symbol.iterator,ol="@@iterator";function Yi(n){if(n===null||typeof n!="object")return null;var a=Mu&&n[Mu]||n[ol];return typeof a=="function"?a:null}var ll=0,Gh,ms,Yh,Zh,Qh,pr,Af;function Kh(){}Kh.__reactDisabledLog=!0;function ii(){{if(ll===0){Gh=console.log,ms=console.info,Yh=console.warn,Zh=console.error,Qh=console.group,pr=console.groupCollapsed,Af=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Kh,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}ll++}}function ai(){{if(ll--,ll===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},n,{value:Gh}),info:t({},n,{value:ms}),warn:t({},n,{value:Yh}),error:t({},n,{value:Zh}),group:t({},n,{value:Qh}),groupCollapsed:t({},n,{value:pr}),groupEnd:t({},n,{value:Af})})}ll<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Tu=s.ReactCurrentDispatcher,ku;function cn(n,a,l){{if(ku===void 0)try{throw Error()}catch(h){var u=h.stack.trim().match(/\n( *(at )?)/);ku=u&&u[1]||""}return`
10
- `+ku+n}}var Ru=!1,Lu;{var Fa=typeof WeakMap=="function"?WeakMap:Map;Lu=new Fa}function oi(n,a){if(!n||Ru)return"";{var l=Lu.get(n);if(l!==void 0)return l}var u;Ru=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=Tu.current,Tu.current=null,ii();try{if(a){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(ge){u=ge}Reflect.construct(n,[],b)}else{try{b.call()}catch(ge){u=ge}n.call(b.prototype)}}else{try{throw Error()}catch(ge){u=ge}n()}}catch(ge){if(ge&&u&&typeof ge.stack=="string"){for(var S=ge.stack.split(`
11
- `),_=u.stack.split(`
12
- `),N=S.length-1,z=_.length-1;N>=1&&z>=0&&S[N]!==_[z];)z--;for(;N>=1&&z>=0;N--,z--)if(S[N]!==_[z]){if(N!==1||z!==1)do if(N--,z--,z<0||S[N]!==_[z]){var ee=`
13
- `+S[N].replace(" at new "," at ");return typeof n=="function"&&Lu.set(n,ee),ee}while(N>=1&&z>=0);break}}}finally{Ru=!1,Tu.current=g,ai(),Error.prepareStackTrace=h}var V=n?n.displayName||n.name:"",oe=V?cn(V):"";return typeof n=="function"&&Lu.set(n,oe),oe}function Nf(n,a,l){return oi(n,!0)}function ki(n,a,l){return oi(n,!1)}function bo(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function Ou(n,a,l){if(n==null)return"";if(typeof n=="function")return oi(n,bo(n));if(typeof n=="string")return cn(n);switch(n){case nl:return cn("Suspense");case Ua:return cn("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case yo:return ki(n.render);case Ti:return Ou(n.type,a,l);case rl:return ki(n._render);case Gi:{var u=n,h=u._payload,g=u._init;try{return Ou(g(h),a,l)}catch{}}}return""}function U0(n){var a=n._debugOwner?n._debugOwner.type:null,l=n._debugSource;switch(n.tag){case O:return cn(n.type);case ne:return cn("Lazy");case U:return cn("Suspense");case B:return cn("SuspenseList");case m:case E:case F:return ki(n.type);case T:return ki(n.type.render);case K:return ki(n.type._render);case y:return Nf(n.type);default:return""}}function Jh(n){try{var a="",l=n;do a+=U0(l),l=l.return;while(l);return a}catch(u){return`
14
- Error generating stack: `+u.message+`
15
- `+u.stack}}function F0(n,a,l){var u=a.displayName||a.name||"";return n.displayName||(u!==""?l+"("+u+")":l)}function zf(n){return n.displayName||"Context"}function je(n){if(n==null)return null;if(typeof n.tag=="number"&&d("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Ia:return"Fragment";case _i:return"Portal";case tl:return"Profiler";case Zt:return"StrictMode";case nl:return"Suspense";case Ua:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case wu:var a=n;return zf(a)+".Consumer";case Mi:var l=n;return zf(l._context)+".Provider";case yo:return F0(n,n.render,"ForwardRef");case Ti:return je(n.type);case rl:return je(n._render);case Gi:{var u=n,h=u._payload,g=u._init;try{return je(g(h))}catch{return null}}}return null}var Xh=s.ReactDebugCurrentFrame,kr=null,sl=!1;function ul(){{if(kr===null)return null;var n=kr._debugOwner;if(n!==null&&typeof n<"u")return je(n.type)}return null}function v(){return kr===null?"":Jh(kr)}function x(){Xh.getCurrentStack=null,kr=null,sl=!1}function C(n){Xh.getCurrentStack=v,kr=n,sl=!1}function I(n){sl=n}function X(){return sl}function $(n){return""+n}function Z(n){switch(typeof n){case"boolean":case"number":case"object":case"string":case"undefined":return n;default:return""}}var Se={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function me(n,a){Se[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||d("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||d("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Pe(n){var a=n.type,l=n.nodeName;return l&&l.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function te(n){return n._valueTracker}function Le(n){n._valueTracker=null}function Ie(n){var a="";return n&&(Pe(n)?a=n.checked?"true":"false":a=n.value),a}function Qe(n){var a=Pe(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),u=""+n[a];if(!(n.hasOwnProperty(a)||typeof l>"u"||typeof l.get!="function"||typeof l.set!="function")){var h=l.get,g=l.set;Object.defineProperty(n,a,{configurable:!0,get:function(){return h.call(this)},set:function(S){u=""+S,g.call(this,S)}}),Object.defineProperty(n,a,{enumerable:l.enumerable});var b={getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){Le(n),delete n[a]}};return b}}function Xe(n){te(n)||(n._valueTracker=Qe(n))}function kn(n){if(!n)return!1;var a=te(n);if(!a)return!0;var l=a.getValue(),u=Ie(n);return u!==l?(a.setValue(u),!0):!1}function pe(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Be=!1,It=!1,Pt=!1,vn=!1;function Ze(n){var a=n.type==="checkbox"||n.type==="radio";return a?n.checked!=null:n.value!=null}function ma(n,a){var l=n,u=a.checked,h=t({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u!=null?u:l._wrapperState.initialChecked});return h}function ga(n,a){me("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!It&&(d("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ul()||"A component",a.type),It=!0),a.value!==void 0&&a.defaultValue!==void 0&&!Be&&(d("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ul()||"A component",a.type),Be=!0);var l=n,u=a.defaultValue==null?"":a.defaultValue;l._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:Z(a.value!=null?a.value:u),controlled:Ze(a)}}function Ct(n,a){var l=n,u=a.checked;u!=null&&ri(l,"checked",u,!1)}function Gr(n,a){var l=n;{var u=Ze(a);!l._wrapperState.controlled&&u&&!vn&&(d("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),vn=!0),l._wrapperState.controlled&&!u&&!Pt&&(d("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Pt=!0)}Ct(n,a);var h=Z(a.value),g=a.type;if(h!=null)g==="number"?(h===0&&l.value===""||l.value!=h)&&(l.value=$(h)):l.value!==$(h)&&(l.value=$(h));else if(g==="submit"||g==="reset"){l.removeAttribute("value");return}a.hasOwnProperty("value")?li(l,a.type,h):a.hasOwnProperty("defaultValue")&&li(l,a.type,Z(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(l.defaultChecked=!!a.defaultChecked)}function yr(n,a,l){var u=n;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type,g=h==="submit"||h==="reset";if(g&&(a.value===void 0||a.value===null))return;var b=$(u._wrapperState.initialValue);l||b!==u.value&&(u.value=b),u.defaultValue=b}var S=u.name;S!==""&&(u.name=""),u.defaultChecked=!u.defaultChecked,u.defaultChecked=!!u._wrapperState.initialChecked,S!==""&&(u.name=S)}function If(n,a){var l=n;Gr(l,a),ev(l,a)}function ev(n,a){var l=a.name;if(a.type==="radio"&&l!=null){for(var u=n;u.parentNode;)u=u.parentNode;for(var h=u.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),g=0;g<h.length;g++){var b=h[g];if(!(b===n||b.form!==n.form)){var S=Hv(b);if(!S)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");kn(b),Gr(b,S)}}}}function li(n,a,l){(a!=="number"||pe(n.ownerDocument)!==n)&&(l==null?n.defaultValue=$(n._wrapperState.initialValue):n.defaultValue!==$(l)&&(n.defaultValue=$(l)))}var Uf=!1,Ff=!1;function j0(n){var a="";return e.Children.forEach(n,function(l){l!=null&&(a+=l)}),a}function jf(n,a){typeof a.children=="object"&&a.children!==null&&e.Children.forEach(a.children,function(l){l!=null&&(typeof l=="string"||typeof l=="number"||typeof l.type=="string"&&(Ff||(Ff=!0,d("Only strings and numbers are supported as <option> children."))))}),a.selected!=null&&!Uf&&(d("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Uf=!0)}function Du(n,a){a.value!=null&&n.setAttribute("value",$(Z(a.value)))}function Pu(n,a){var l=t({children:void 0},a),u=j0(a.children);return u&&(l.children=u),l}var Au;Au=!1;function tv(){var n=ul();return n?`
16
-
17
- Check the render method of \``+n+"`.":""}var ja=["value","defaultValue"];function nv(n){{me("select",n);for(var a=0;a<ja.length;a++){var l=ja[a];if(n[l]!=null){var u=Array.isArray(n[l]);n.multiple&&!u?d("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,tv()):!n.multiple&&u&&d("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,tv())}}}}function cl(n,a,l,u){var h=n.options;if(a){for(var g=l,b={},S=0;S<g.length;S++)b["$"+g[S]]=!0;for(var _=0;_<h.length;_++){var N=b.hasOwnProperty("$"+h[_].value);h[_].selected!==N&&(h[_].selected=N),N&&u&&(h[_].defaultSelected=!0)}}else{for(var z=$(Z(l)),ee=null,V=0;V<h.length;V++){if(h[V].value===z){h[V].selected=!0,u&&(h[V].defaultSelected=!0);return}ee===null&&!h[V].disabled&&(ee=h[V])}ee!==null&&(ee.selected=!0)}}function Bf(n,a){return t({},a,{value:void 0})}function Nu(n,a){var l=n;nv(a),l._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!Au&&(d("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Au=!0)}function gs(n,a){var l=n;l.multiple=!!a.multiple;var u=a.value;u!=null?cl(l,!!a.multiple,u,!1):a.defaultValue!=null&&cl(l,!!a.multiple,a.defaultValue,!0)}function Hf(n,a){var l=n,u=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?cl(l,!!a.multiple,h,!1):u!==!!a.multiple&&(a.defaultValue!=null?cl(l,!!a.multiple,a.defaultValue,!0):cl(l,!!a.multiple,a.multiple?[]:"",!1))}function Vf(n,a){var l=n,u=a.value;u!=null&&cl(l,!!a.multiple,u,!1)}var zu=!1;function xo(n,a){var l=n;if(a.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var u=t({},a,{value:void 0,defaultValue:void 0,children:$(l._wrapperState.initialValue)});return u}function rv(n,a){var l=n;me("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!zu&&(d("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",ul()||"A component"),zu=!0);var u=a.value;if(u==null){var h=a.children,g=a.defaultValue;if(h!=null){d("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(g!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Array.isArray(h)){if(!(h.length<=1))throw Error("<textarea> can only have at most one child.");h=h[0]}g=h}}g==null&&(g=""),u=g}l._wrapperState={initialValue:Z(u)}}function iv(n,a){var l=n,u=Z(a.value),h=Z(a.defaultValue);if(u!=null){var g=$(u);g!==l.value&&(l.value=g),a.defaultValue==null&&l.defaultValue!==g&&(l.defaultValue=g)}h!=null&&(l.defaultValue=$(h))}function av(n,a){var l=n,u=l.textContent;u===l._wrapperState.initialValue&&u!==""&&u!==null&&(l.value=u)}function B0(n,a){iv(n,a)}var Iu="http://www.w3.org/1999/xhtml",Wf="http://www.w3.org/1998/Math/MathML",ys="http://www.w3.org/2000/svg",Ba={html:Iu,mathml:Wf,svg:ys};function Ri(n){switch(n){case"svg":return ys;case"math":return Wf;default:return Iu}}function ya(n,a){return n==null||n===Iu?Ri(a):n===ys&&a==="foreignObject"?Iu:n}var Uu=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,l,u,h){MSApp.execUnsafeLocalFunction(function(){return n(a,l,u,h)})}:n},Li,ov=Uu(function(n,a){if(n.namespaceURI===Ba.svg&&!("innerHTML"in n)){Li=Li||document.createElement("div"),Li.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var l=Li.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;l.firstChild;)n.appendChild(l.firstChild);return}n.innerHTML=a}),br=1,Yr=3,Rr=8,ba=9,lv=11,Fu=function(n,a){if(a){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===Yr){l.nodeValue=a;return}}n.textContent=a},sv={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},fl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ju(n,a){return n+a.charAt(0).toUpperCase()+a.substring(1)}var dl=["Webkit","ms","Moz","O"];Object.keys(fl).forEach(function(n){dl.forEach(function(a){fl[ju(a,n)]=fl[n]})});function $f(n,a,l){var u=a==null||typeof a=="boolean"||a==="";return u?"":!l&&typeof a=="number"&&a!==0&&!(fl.hasOwnProperty(n)&&fl[n])?a+"px":(""+a).trim()}var Ha=/([A-Z])/g,H0=/^ms-/;function So(n){return n.replace(Ha,"-$1").toLowerCase().replace(H0,"-ms-")}var qf=function(){};{var V0=/^(?:webkit|moz|o)[A-Z]/,Bu=/^-ms-/,Gf=/-(.)/g,Yf=/;\s*$/,Eo={},Hu={},pl=!1,Zf=!1,W0=function(n){return n.replace(Gf,function(a,l){return l.toUpperCase()})},q=function(n){Eo.hasOwnProperty(n)&&Eo[n]||(Eo[n]=!0,d("Unsupported style property %s. Did you mean %s?",n,W0(n.replace(Bu,"ms-"))))},fe=function(n){Eo.hasOwnProperty(n)&&Eo[n]||(Eo[n]=!0,d("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},Oe=function(n,a){Hu.hasOwnProperty(a)&&Hu[a]||(Hu[a]=!0,d(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(Yf,"")))},Ke=function(n,a){pl||(pl=!0,d("`NaN` is an invalid value for the `%s` css style property.",n))},fn=function(n,a){Zf||(Zf=!0,d("`Infinity` is an invalid value for the `%s` css style property.",n))};qf=function(n,a){n.indexOf("-")>-1?q(n):V0.test(n)?fe(n):Yf.test(a)&&Oe(n,a),typeof a=="number"&&(isNaN(a)?Ke(n,a):isFinite(a)||fn(n,a))}}var bt=qf;function Rn(n){{var a="",l="";for(var u in n)if(!!n.hasOwnProperty(u)){var h=n[u];if(h!=null){var g=u.indexOf("--")===0;a+=l+(g?u:So(u))+":",a+=$f(u,h,g),l=";"}}return a||null}}function Nn(n,a){var l=n.style;for(var u in a)if(!!a.hasOwnProperty(u)){var h=u.indexOf("--")===0;h||bt(u,a[u]);var g=$f(u,a[u],h);u==="float"&&(u="cssFloat"),h?l.setProperty(u,g):l[u]=g}}function Oi(n){return n==null||typeof n=="boolean"||n===""}function Bn(n){var a={};for(var l in n)for(var u=sv[l]||[l],h=0;h<u.length;h++)a[u[h]]=l;return a}function Zn(n,a){{if(!a)return;var l=Bn(n),u=Bn(a),h={};for(var g in l){var b=l[g],S=u[g];if(S&&b!==S){var _=b+","+S;if(h[_])continue;h[_]=!0,d("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Oi(n[b])?"Removing":"Updating",b,S)}}}}var Zi={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},xa=t({menuitem:!0},Zi),xr="__html";function Di(n,a){if(!!a){if(xa[n]&&!(a.children==null&&a.dangerouslySetInnerHTML==null))throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(!(typeof a.dangerouslySetInnerHTML=="object"&&xr in a.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&d("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),!(a.style==null||typeof a.style=="object"))throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function si(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wo={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Co={"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Qi={},uv=new RegExp("^(aria)-["+nr+"]*$"),$0=new RegExp("^(aria)[A-Z]["+nr+"]*$"),q0=Object.prototype.hasOwnProperty;function Qt(n,a){{if(q0.call(Qi,a)&&Qi[a])return!0;if($0.test(a)){var l="aria-"+a.slice(4).toLowerCase(),u=Co.hasOwnProperty(l)?l:null;if(u==null)return d("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Qi[a]=!0,!0;if(a!==u)return d("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,u),Qi[a]=!0,!0}if(uv.test(a)){var h=a.toLowerCase(),g=Co.hasOwnProperty(h)?h:null;if(g==null)return Qi[a]=!0,!1;if(a!==g)return d("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,g),Qi[a]=!0,!0}}return!0}function Ht(n,a){{var l=[];for(var u in a){var h=Qt(n,u);h||l.push(u)}var g=l.map(function(b){return"`"+b+"`"}).join(", ");l.length===1?d("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,n):l.length>1&&d("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,n)}}function Vu(n,a){si(n,a)||Ht(n,a)}var Sa=!1;function Qf(n,a){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;a!=null&&a.value===null&&!Sa&&(Sa=!0,n==="select"&&a.multiple?d("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):d("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var Zr=function(){};{var xn={},Va=Object.prototype.hasOwnProperty,hl=/^on./,Wu=/^on[^A-Z]/,vl=new RegExp("^(aria)-["+nr+"]*$"),Wa=new RegExp("^(aria)[A-Z]["+nr+"]*$");Zr=function(n,a,l,u){if(Va.call(xn,a)&&xn[a])return!0;var h=a.toLowerCase();if(h==="onfocusin"||h==="onfocusout")return d("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),xn[a]=!0,!0;if(u!=null){var g=u.registrationNameDependencies,b=u.possibleRegistrationNames;if(g.hasOwnProperty(a))return!0;var S=b.hasOwnProperty(h)?b[h]:null;if(S!=null)return d("Invalid event handler property `%s`. Did you mean `%s`?",a,S),xn[a]=!0,!0;if(hl.test(a))return d("Unknown event handler property `%s`. It will be ignored.",a),xn[a]=!0,!0}else if(hl.test(a))return Wu.test(a)&&d("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),xn[a]=!0,!0;if(vl.test(a)||Wa.test(a))return!0;if(h==="innerhtml")return d("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),xn[a]=!0,!0;if(h==="aria")return d("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),xn[a]=!0,!0;if(h==="is"&&l!==null&&l!==void 0&&typeof l!="string")return d("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),xn[a]=!0,!0;if(typeof l=="number"&&isNaN(l))return d("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),xn[a]=!0,!0;var _=sr(a),N=_!==null&&_.type===St;if(wo.hasOwnProperty(h)){var z=wo[h];if(z!==a)return d("Invalid DOM property `%s`. Did you mean `%s`?",a,z),xn[a]=!0,!0}else if(!N&&a!==h)return d("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,h),xn[a]=!0,!0;return typeof l=="boolean"&&sn(a,l,_,!1)?(l?d('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',l,a,a,l,a):d('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',l,a,a,l,a,a,a),xn[a]=!0,!0):N?!0:sn(a,l,_,!1)?(xn[a]=!0,!1):((l==="false"||l==="true")&&_!==null&&_.type===mt&&(d("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,a,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,l),xn[a]=!0),!0)}}var cv=function(n,a,l){{var u=[];for(var h in a){var g=Zr(n,h,a[h],l);g||u.push(h)}var b=u.map(function(S){return"`"+S+"`"}).join(", ");u.length===1?d("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",b,n):u.length>1&&d("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",b,n)}};function $u(n,a,l){si(n,a)||cv(n,a,l)}var qu=1,_o=1<<1,$a=1<<2,Kf=1<<4,Gu=qu|_o|$a;function ml(n){var a=n.target||n.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===Yr?a.parentNode:a}var G0=null,Yu=null,Zu=null;function z_(n){var a=El(n);if(!!a){if(typeof G0!="function")throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var l=a.stateNode;if(l){var u=Hv(l);G0(a.stateNode,a.type,u)}}}function yA(n){G0=n}function I_(n){Yu?Zu?Zu.push(n):Zu=[n]:Yu=n}function bA(){return Yu!==null||Zu!==null}function U_(){if(!!Yu){var n=Yu,a=Zu;if(Yu=null,Zu=null,z_(n),a)for(var l=0;l<a.length;l++)z_(a[l])}}var Y0=function(n,a){return n(a)},F_=function(n,a,l,u,h){return n(a,l,u,h)},Z0=function(){},j_=Y0,gl=!1,Q0=!1;function K0(){var n=bA();n&&(Z0(),U_())}function xA(n,a){if(gl)return n(a);gl=!0;try{return Y0(n,a)}finally{gl=!1,K0()}}function SA(n,a,l){if(Q0)return n(a,l);Q0=!0;try{return j_(n,a,l)}finally{Q0=!1,K0()}}function EA(n,a,l,u,h){var g=gl;gl=!0;try{return F_(n,a,l,u,h)}finally{gl=g,gl||K0()}}function wA(n){gl||Z0()}function CA(n,a,l,u){Y0=n,F_=a,Z0=l,j_=u}function _A(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function MA(n,a,l){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(l.disabled&&_A(a));default:return!1}}function Jf(n,a){var l=n.stateNode;if(l===null)return null;var u=Hv(l);if(u===null)return null;var h=u[a];if(MA(a,n.type,u))return null;if(!(!h||typeof h=="function"))throw Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof h+"` type.");return h}var J0=!1;if(ft)try{var Xf={};Object.defineProperty(Xf,"passive",{get:function(){J0=!0}}),window.addEventListener("test",Xf,Xf),window.removeEventListener("test",Xf,Xf)}catch{J0=!1}function B_(n,a,l,u,h,g,b,S,_){var N=Array.prototype.slice.call(arguments,3);try{a.apply(l,N)}catch(z){this.onError(z)}}var H_=B_;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var X0=document.createElement("react");H_=function(a,l,u,h,g,b,S,_,N){if(!(typeof document<"u"))throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var z=document.createEvent("Event"),ee=!1,V=!0,oe=window.event,ge=Object.getOwnPropertyDescriptor(window,"event");function De(){X0.removeEventListener(he,ut,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=oe)}var et=Array.prototype.slice.call(arguments,3);function ut(){ee=!0,De(),l.apply(u,et),V=!1}var ot,Dt=!1,an=!1;function ie(J){if(ot=J.error,Dt=!0,ot===null&&J.colno===0&&J.lineno===0&&(an=!0),J.defaultPrevented&&ot!=null&&typeof ot=="object")try{ot._suppressLogging=!0}catch{}}var he="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",ie),X0.addEventListener(he,ut,!1),z.initEvent(he,!1,!1),X0.dispatchEvent(z),ge&&Object.defineProperty(window,"event",ge),ee&&V&&(Dt?an&&(ot=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):ot=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(ot)),window.removeEventListener("error",ie),!ee)return De(),B_.apply(this,arguments)}}var TA=H_,Qu=!1,fv=null,dv=!1,eb=null,kA={onError:function(n){Qu=!0,fv=n}};function qa(n,a,l,u,h,g,b,S,_){Qu=!1,fv=null,TA.apply(kA,arguments)}function RA(n,a,l,u,h,g,b,S,_){if(qa.apply(this,arguments),Qu){var N=Ga();dv||(dv=!0,eb=N)}}function LA(){if(dv){var n=eb;throw dv=!1,eb=null,n}}function Mo(){return Qu}function Ga(){if(Qu){var n=fv;return Qu=!1,fv=null,n}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Ku(n){return n._reactInternals}function OA(n){return n._reactInternals!==void 0}function DA(n,a){n._reactInternals=a}var zn=0,yl=1,Qn=2,dn=4,PA=6,To=8,pv=16,V_=32,Sn=64,hv=128,bs=256,ed=512,td=8192,ko=1024,AA=1028,NA=932,zA=2047,nd=2048,Ro=4096,tb=16384,IA=s.ReactCurrentOwner;function xs(n){var a=n,l=n;if(n.alternate)for(;a.return;)a=a.return;else{var u=a;do a=u,(a.flags&(Qn|ko))!==zn&&(l=a.return),u=a.return;while(u)}return a.tag===w?l:null}function W_(n){if(n.tag===U){var a=n.memoizedState;if(a===null){var l=n.alternate;l!==null&&(a=l.memoizedState)}if(a!==null)return a.dehydrated}return null}function $_(n){return n.tag===w?n.stateNode.containerInfo:null}function UA(n){return xs(n)===n}function FA(n){{var a=IA.current;if(a!==null&&a.tag===y){var l=a,u=l.stateNode;u._warnedAboutRefsInRender||d("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",je(l.type)||"A component"),u._warnedAboutRefsInRender=!0}}var h=Ku(n);return h?xs(h)===h:!1}function q_(n){if(xs(n)!==n)throw Error("Unable to find node on an unmounted component.")}function G_(n){var a=n.alternate;if(!a){var l=xs(n);if(l===null)throw Error("Unable to find node on an unmounted component.");return l!==n?null:n}for(var u=n,h=a;;){var g=u.return;if(g===null)break;var b=g.alternate;if(b===null){var S=g.return;if(S!==null){u=h=S;continue}break}if(g.child===b.child){for(var _=g.child;_;){if(_===u)return q_(g),n;if(_===h)return q_(g),a;_=_.sibling}throw Error("Unable to find node on an unmounted component.")}if(u.return!==h.return)u=g,h=b;else{for(var N=!1,z=g.child;z;){if(z===u){N=!0,u=g,h=b;break}if(z===h){N=!0,h=g,u=b;break}z=z.sibling}if(!N){for(z=b.child;z;){if(z===u){N=!0,u=b,h=g;break}if(z===h){N=!0,h=b,u=g;break}z=z.sibling}if(!N)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(u.alternate!==h)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(u.tag!==w)throw Error("Unable to find node on an unmounted component.");return u.stateNode.current===u?n:a}function Y_(n){var a=G_(n);if(!a)return null;for(var l=a;;){if(l.tag===O||l.tag===A)return l;if(l.child){l.child.return=l,l=l.child;continue}if(l===a)return null;for(;!l.sibling;){if(!l.return||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function jA(n){var a=G_(n);if(!a)return null;for(var l=a;;){if(l.tag===O||l.tag===A||ce)return l;if(l.child&&l.tag!==k){l.child.return=l,l=l.child;continue}if(l===a)return null;for(;!l.sibling;){if(!l.return||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function Z_(n,a){for(var l=a,u=n.alternate;l!==null;){if(l===n||l===u)return!0;l=l.return}return!1}var Q_;function BA(n){Q_=n}var nb;function HA(n){nb=n}var K_;function VA(n){K_=n}var J_;function WA(n){J_=n}var rb=!1,Lo=[],bl=null,xl=null,Sl=null,rd=new Map,id=new Map,ad=[];function $A(){return Lo.length>0}var qA=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function X_(n){return qA.indexOf(n)>-1}function eM(n,a,l,u,h){return{blockedOn:n,domEventName:a,eventSystemFlags:l|Kf,nativeEvent:h,targetContainers:[u]}}function tM(n,a,l,u,h){var g=eM(n,a,l,u,h);Lo.push(g)}function nM(n,a){switch(n){case"focusin":case"focusout":bl=null;break;case"dragenter":case"dragleave":xl=null;break;case"mouseover":case"mouseout":Sl=null;break;case"pointerover":case"pointerout":{var l=a.pointerId;rd.delete(l);break}case"gotpointercapture":case"lostpointercapture":{var u=a.pointerId;id.delete(u);break}}}function od(n,a,l,u,h,g){if(n===null||n.nativeEvent!==g){var b=eM(a,l,u,h,g);if(a!==null){var S=El(a);S!==null&&nb(S)}return b}n.eventSystemFlags|=u;var _=n.targetContainers;return h!==null&&_.indexOf(h)===-1&&_.push(h),n}function GA(n,a,l,u,h){switch(a){case"focusin":{var g=h;return bl=od(bl,n,a,l,u,g),!0}case"dragenter":{var b=h;return xl=od(xl,n,a,l,u,b),!0}case"mouseover":{var S=h;return Sl=od(Sl,n,a,l,u,S),!0}case"pointerover":{var _=h,N=_.pointerId;return rd.set(N,od(rd.get(N)||null,n,a,l,u,_)),!0}case"gotpointercapture":{var z=h,ee=z.pointerId;return id.set(ee,od(id.get(ee)||null,n,a,l,u,z)),!0}}return!1}function YA(n){var a=Ts(n.target);if(a!==null){var l=xs(a);if(l!==null){var u=l.tag;if(u===U){var h=W_(l);if(h!==null){n.blockedOn=h,J_(n.lanePriority,function(){r.unstable_runWithPriority(n.priority,function(){K_(l)})});return}}else if(u===w){var g=l.stateNode;if(g.hydrate){n.blockedOn=$_(l);return}}}}n.blockedOn=null}function vv(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;a.length>0;){var l=a[0],u=gb(n.domEventName,n.eventSystemFlags,l,n.nativeEvent);if(u!==null){var h=El(u);return h!==null&&nb(h),n.blockedOn=u,!1}a.shift()}return!0}function rM(n,a,l){vv(n)&&l.delete(a)}function ZA(){for(rb=!1;Lo.length>0;){var n=Lo[0];if(n.blockedOn!==null){var a=El(n.blockedOn);a!==null&&Q_(a);break}for(var l=n.targetContainers;l.length>0;){var u=l[0],h=gb(n.domEventName,n.eventSystemFlags,u,n.nativeEvent);if(h!==null){n.blockedOn=h;break}l.shift()}n.blockedOn===null&&Lo.shift()}bl!==null&&vv(bl)&&(bl=null),xl!==null&&vv(xl)&&(xl=null),Sl!==null&&vv(Sl)&&(Sl=null),rd.forEach(rM),id.forEach(rM)}function ld(n,a){n.blockedOn===a&&(n.blockedOn=null,rb||(rb=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,ZA)))}function iM(n){if(Lo.length>0){ld(Lo[0],n);for(var a=1;a<Lo.length;a++){var l=Lo[a];l.blockedOn===n&&(l.blockedOn=null)}}bl!==null&&ld(bl,n),xl!==null&&ld(xl,n),Sl!==null&&ld(Sl,n);var u=function(S){return ld(S,n)};rd.forEach(u),id.forEach(u);for(var h=0;h<ad.length;h++){var g=ad[h];g.blockedOn===n&&(g.blockedOn=null)}for(;ad.length>0;){var b=ad[0];if(b.blockedOn!==null)break;YA(b),b.blockedOn===null&&ad.shift()}}var ib=0,aM=1,ab=2;function mv(n,a){var l={};return l[n.toLowerCase()]=a.toLowerCase(),l["Webkit"+n]="webkit"+a,l["Moz"+n]="moz"+a,l}var Ju={animationend:mv("Animation","AnimationEnd"),animationiteration:mv("Animation","AnimationIteration"),animationstart:mv("Animation","AnimationStart"),transitionend:mv("Transition","TransitionEnd")},ob={},oM={};ft&&(oM=document.createElement("div").style,"AnimationEvent"in window||(delete Ju.animationend.animation,delete Ju.animationiteration.animation,delete Ju.animationstart.animation),"TransitionEvent"in window||delete Ju.transitionend.transition);function gv(n){if(ob[n])return ob[n];if(!Ju[n])return n;var a=Ju[n];for(var l in a)if(a.hasOwnProperty(l)&&l in oM)return ob[n]=a[l];return n}var lM=gv("animationend"),sM=gv("animationiteration"),uM=gv("animationstart"),cM=gv("transitionend"),fM=new Map,lb=new Map,QA=["cancel","cancel","click","click","close","close","contextmenu","contextMenu","copy","copy","cut","cut","auxclick","auxClick","dblclick","doubleClick","dragend","dragEnd","dragstart","dragStart","drop","drop","focusin","focus","focusout","blur","input","input","invalid","invalid","keydown","keyDown","keypress","keyPress","keyup","keyUp","mousedown","mouseDown","mouseup","mouseUp","paste","paste","pause","pause","play","play","pointercancel","pointerCancel","pointerdown","pointerDown","pointerup","pointerUp","ratechange","rateChange","reset","reset","seeked","seeked","submit","submit","touchcancel","touchCancel","touchend","touchEnd","touchstart","touchStart","volumechange","volumeChange"],KA=["change","selectionchange","textInput","compositionstart","compositionend","compositionupdate"],JA=["drag","drag","dragenter","dragEnter","dragexit","dragExit","dragleave","dragLeave","dragover","dragOver","mousemove","mouseMove","mouseout","mouseOut","mouseover","mouseOver","pointermove","pointerMove","pointerout","pointerOut","pointerover","pointerOver","scroll","scroll","toggle","toggle","touchmove","touchMove","wheel","wheel"],XA=["abort","abort",lM,"animationEnd",sM,"animationIteration",uM,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",cM,"transitionEnd","waiting","waiting"];function sb(n,a){for(var l=0;l<n.length;l+=2){var u=n[l],h=n[l+1],g=h[0].toUpperCase()+h.slice(1),b="on"+g;lb.set(u,a),fM.set(u,b),Ye(b,[u])}}function e8(n,a){for(var l=0;l<n.length;l++)lb.set(n[l],a)}function t8(n){var a=lb.get(n);return a===void 0?ab:a}function n8(){sb(QA,ib),sb(JA,aM),sb(XA,ab),e8(KA,ib)}var r8=r.unstable_now;if(!(o.__interactionsRef!=null&&o.__interactionsRef.current!=null))throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");var dM=99,pM=98,hM=97,i8=96,vM=95,a8=90,sJ=r8(),Xu=15,yv=14,mM=13,bv=12,gM=11,ec=10,yM=9,Ss=8,bM=7,xv=6,ub=5,xM=4,SM=3,Sv=2,EM=1,Es=0,o8=31,be=0,ui=0,nn=1,sd=2,cb=4,Ev=24,wM=32,CM=192,_M=256,fb=3584,MM=4096,tc=4186112,wv=62914560,nc=33554432,db=67108864,TM=134217727,kM=134217728,pb=805306368,Ya=1073741824,Hn=-1;function uJ(n){}var mn=Ss;function rc(n){if((nn&n)!==be)return mn=Xu,nn;if((sd&n)!==be)return mn=yv,sd;if((cb&n)!==be)return mn=mM,cb;var a=Ev&n;if(a!==be)return mn=bv,a;if((n&wM)!==be)return mn=gM,wM;var l=CM&n;if(l!==be)return mn=ec,l;if((n&_M)!==be)return mn=yM,_M;var u=fb&n;if(u!==be)return mn=Ss,u;if((n&MM)!==be)return mn=bM,MM;var h=tc&n;if(h!==be)return mn=xv,h;var g=wv&n;if(g!==be)return mn=ub,g;if(n&db)return mn=xM,db;if((n&kM)!==be)return mn=SM,kM;var b=pb&n;return b!==be?(mn=Sv,b):(Ya&n)!==be?(mn=EM,Ya):(d("Should have found matching lanes. This is a bug in React."),mn=Ss,n)}function l8(n){switch(n){case dM:return Xu;case pM:return ec;case hM:case i8:return Ss;case vM:return Sv;default:return Es}}function s8(n){switch(n){case Xu:case yv:return dM;case mM:case bv:case gM:case ec:return pM;case yM:case Ss:case bM:case xv:case xM:case ub:return hM;case SM:case Sv:case EM:return vM;case Es:return a8;default:throw Error("Invalid update priority: "+n+". This is a bug in React.")}}function ud(n,a){var l=n.pendingLanes;if(l===be)return mn=Es,be;var u=be,h=Es,g=n.expiredLanes,b=n.suspendedLanes,S=n.pingedLanes;if(g!==be)u=g,h=mn=Xu;else{var _=l&TM;if(_!==be){var N=_&~b;if(N!==be)u=rc(N),h=mn;else{var z=_&S;z!==be&&(u=rc(z),h=mn)}}else{var ee=l&~b;ee!==be?(u=rc(ee),h=mn):S!==be&&(u=rc(S),h=mn)}}if(u===be)return be;if(u=l&y8(u),a!==be&&a!==u&&(a&b)===be){rc(a);var V=mn;if(h<=V)return a;mn=h}var oe=n.entangledLanes;if(oe!==be)for(var ge=n.entanglements,De=u&oe;De>0;){var et=ws(De),ut=1<<et;u|=ge[et],De&=~ut}return u}function u8(n,a){for(var l=n.eventTimes,u=Hn;a>0;){var h=ws(a),g=1<<h,b=l[h];b>u&&(u=b),a&=~g}return u}function c8(n,a){rc(n);var l=mn;return l>=ec?a+250:l>=xv?a+5e3:Hn}function f8(n,a){for(var l=n.pendingLanes,u=n.suspendedLanes,h=n.pingedLanes,g=n.expirationTimes,b=l;b>0;){var S=ws(b),_=1<<S,N=g[S];N===Hn?((_&u)===be||(_&h)!==be)&&(g[S]=c8(_,a)):N<=a&&(n.expiredLanes|=_),b&=~_}}function RM(n){var a=n.pendingLanes&~Ya;return a!==be?a:a&Ya?Ya:be}function d8(){return mn}function LM(n){return(n&TM)!==be}function OM(n){return(n&wv)===n}function p8(n){return(n&tc)===n}function Cv(n,a){switch(n){case Es:break;case Xu:return nn;case yv:return sd;case bv:{var l=Qr(Ev&~a);return l===ui?Cv(ec,a):l}case ec:{var u=Qr(CM&~a);return u===ui?Cv(Ss,a):u}case Ss:{var h=Qr(fb&~a);return h===ui&&(h=Qr(tc&~a),h===ui&&(h=Qr(fb))),h}case xv:case ub:break;case Sv:var g=Qr(pb&~a);return g===ui&&(g=Qr(pb)),g}throw Error("Invalid update priority: "+n+". This is a bug in React.")}function h8(n,a){var l=Qr(tc&~a);return l===ui&&(l=Qr(tc&~n),l===ui&&(l=Qr(tc))),l}function v8(n){var a=Qr(wv&~n);return a===ui&&(a=Qr(wv)),a}function m8(n){return n&-n}function g8(n){var a=31-AM(n);return a<0?be:1<<a}function y8(n){return(g8(n)<<1)-1}function Qr(n){return m8(n)}function ws(n){return 31-AM(n)}function b8(n){return ws(n)}function Lr(n,a){return(n&a)!==be}function Cs(n,a){return(n&a)===a}function $t(n,a){return n|a}function _v(n,a){return n&~a}function cJ(n){return n}function x8(n,a){return n!==ui&&n<a?n:a}function hb(n){for(var a=[],l=0;l<o8;l++)a.push(n);return a}function Mv(n,a,l){n.pendingLanes|=a;var u=a-1;n.suspendedLanes&=u,n.pingedLanes&=u;var h=n.eventTimes,g=b8(a);h[g]=l}function S8(n,a){n.suspendedLanes|=a,n.pingedLanes&=~a;for(var l=n.expirationTimes,u=a;u>0;){var h=ws(u),g=1<<h;l[h]=Hn,u&=~g}}function DM(n,a,l){n.pingedLanes|=n.suspendedLanes&a}function E8(n){n.expiredLanes|=Ev&n.pendingLanes}function w8(n){return(n&Ev)!==be}function PM(n,a){n.mutableReadLanes|=a&n.pendingLanes}function C8(n,a){var l=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a;for(var u=n.entanglements,h=n.eventTimes,g=n.expirationTimes,b=l;b>0;){var S=ws(b),_=1<<S;u[S]=be,h[S]=Hn,g[S]=Hn,b&=~_}}function _8(n,a){n.entangledLanes|=a;for(var l=n.entanglements,u=a;u>0;){var h=ws(u),g=1<<h;l[h]|=a,u&=~g}}var AM=Math.clz32?Math.clz32:k8,M8=Math.log,T8=Math.LN2;function k8(n){return n===0?32:31-(M8(n)/T8|0)|0}var R8=r.unstable_UserBlockingPriority,L8=r.unstable_runWithPriority,vb=!0;function NM(n){vb=!!n}function O8(){return vb}function D8(n,a,l){var u=t8(a),h;switch(u){case ib:h=P8;break;case aM:h=A8;break;case ab:default:h=mb;break}return h.bind(null,a,l,n)}function P8(n,a,l,u){wA(u.timeStamp),EA(mb,n,a,l,u)}function A8(n,a,l,u){L8(R8,mb.bind(null,n,a,l,u))}function mb(n,a,l,u){if(!!vb){var h=!0;if(h=(a&$a)===0,h&&$A()&&X_(n)){tM(null,n,a,l,u);return}var g=gb(n,a,l,u);if(g===null){h&&nM(n,u);return}if(h){if(X_(n)){tM(g,n,a,l,u);return}if(GA(g,n,a,l,u))return;nM(n,u)}vT(n,a,u,null,l)}}function gb(n,a,l,u){var h=ml(u),g=Ts(h);if(g!==null){var b=xs(g);if(b===null)g=null;else{var S=b.tag;if(S===U){var _=W_(b);if(_!==null)return _;g=null}else if(S===w){var N=b.stateNode;if(N.hydrate)return $_(b);g=null}else b!==g&&(g=null)}}return vT(n,a,u,g,l),null}function N8(n,a,l){return n.addEventListener(a,l,!1),l}function z8(n,a,l){return n.addEventListener(a,l,!0),l}function I8(n,a,l,u){return n.addEventListener(a,l,{capture:!0,passive:u}),l}function U8(n,a,l,u){return n.addEventListener(a,l,{passive:u}),l}var fd=null,yb=null,dd=null;function F8(n){return fd=n,yb=IM(),!0}function j8(){fd=null,yb=null,dd=null}function zM(){if(dd)return dd;var n,a=yb,l=a.length,u,h=IM(),g=h.length;for(n=0;n<l&&a[n]===h[n];n++);var b=l-n;for(u=1;u<=b&&a[l-u]===h[g-u];u++);var S=u>1?1-u:void 0;return dd=h.slice(n,S),dd}function IM(){return"value"in fd?fd.value:fd.textContent}function Tv(n){var a,l=n.keyCode;return"charCode"in n?(a=n.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),a>=32||a===13?a:0}function kv(){return!0}function UM(){return!1}function Pi(n){function a(l,u,h,g,b){this._reactName=l,this._targetInst=h,this.type=u,this.nativeEvent=g,this.target=b,this.currentTarget=null;for(var S in n)if(!!n.hasOwnProperty(S)){var _=n[S];_?this[S]=_(g):this[S]=g[S]}var N=g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1;return N?this.isDefaultPrevented=kv:this.isDefaultPrevented=UM,this.isPropagationStopped=UM,this}return t(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;!l||(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=kv)},stopPropagation:function(){var l=this.nativeEvent;!l||(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=kv)},persist:function(){},isPersistent:kv}),a}var ic={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bb=Pi(ic),pd=t({},ic,{view:0,detail:0}),B8=Pi(pd),xb,Sb,hd;function H8(n){n!==hd&&(hd&&n.type==="mousemove"?(xb=n.screenX-hd.screenX,Sb=n.screenY-hd.screenY):(xb=0,Sb=0),hd=n)}var Rv=t({},pd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wb,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(H8(n),xb)},movementY:function(n){return"movementY"in n?n.movementY:Sb}}),FM=Pi(Rv),V8=t({},Rv,{dataTransfer:0}),W8=Pi(V8),$8=t({},pd,{relatedTarget:0}),Eb=Pi($8),q8=t({},ic,{animationName:0,elapsedTime:0,pseudoElement:0}),G8=Pi(q8),Y8=t({},ic,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Z8=Pi(Y8),Q8=t({},ic,{data:0}),jM=Pi(Q8),K8=jM,J8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X8={"8":"Backspace","9":"Tab","12":"Clear","13":"Enter","16":"Shift","17":"Control","18":"Alt","19":"Pause","20":"CapsLock","27":"Escape","32":" ","33":"PageUp","34":"PageDown","35":"End","36":"Home","37":"ArrowLeft","38":"ArrowUp","39":"ArrowRight","40":"ArrowDown","45":"Insert","46":"Delete","112":"F1","113":"F2","114":"F3","115":"F4","116":"F5","117":"F6","118":"F7","119":"F8","120":"F9","121":"F10","122":"F11","123":"F12","144":"NumLock","145":"ScrollLock","224":"Meta"};function e7(n){if(n.key){var a=J8[n.key]||n.key;if(a!=="Unidentified")return a}if(n.type==="keypress"){var l=Tv(n);return l===13?"Enter":String.fromCharCode(l)}return n.type==="keydown"||n.type==="keyup"?X8[n.keyCode]||"Unidentified":""}var t7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n7(n){var a=this,l=a.nativeEvent;if(l.getModifierState)return l.getModifierState(n);var u=t7[n];return u?!!l[u]:!1}function wb(n){return n7}var r7=t({},pd,{key:e7,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wb,charCode:function(n){return n.type==="keypress"?Tv(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Tv(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),i7=Pi(r7),a7=t({},Rv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BM=Pi(a7),o7=t({},pd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wb}),l7=Pi(o7),s7=t({},ic,{propertyName:0,elapsedTime:0,pseudoElement:0}),u7=Pi(s7),c7=t({},Rv,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),f7=Pi(c7),d7=[9,13,27,32],HM=229,Cb=ft&&"CompositionEvent"in window,vd=null;ft&&"documentMode"in document&&(vd=document.documentMode);var p7=ft&&"TextEvent"in window&&!vd,VM=ft&&(!Cb||vd&&vd>8&&vd<=11),WM=32,$M=String.fromCharCode(WM);function h7(){Ye("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ye("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Ye("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Ye("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var qM=!1;function v7(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function m7(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function g7(n,a){return n==="keydown"&&a.keyCode===HM}function GM(n,a){switch(n){case"keyup":return d7.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==HM;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function YM(n){var a=n.detail;return typeof a=="object"&&"data"in a?a.data:null}function ZM(n){return n.locale==="ko"}var ac=!1;function y7(n,a,l,u,h){var g,b;if(Cb?g=m7(a):ac?GM(a,u)&&(g="onCompositionEnd"):g7(a,u)&&(g="onCompositionStart"),!g)return null;VM&&!ZM(u)&&(!ac&&g==="onCompositionStart"?ac=F8(h):g==="onCompositionEnd"&&ac&&(b=zM()));var S=Ov(l,g);if(S.length>0){var _=new jM(g,a,null,u,h);if(n.push({event:_,listeners:S}),b)_.data=b;else{var N=YM(u);N!==null&&(_.data=N)}}}function b7(n,a){switch(n){case"compositionend":return YM(a);case"keypress":var l=a.which;return l!==WM?null:(qM=!0,$M);case"textInput":var u=a.data;return u===$M&&qM?null:u;default:return null}}function x7(n,a){if(ac){if(n==="compositionend"||!Cb&&GM(n,a)){var l=zM();return j8(),ac=!1,l}return null}switch(n){case"paste":return null;case"keypress":if(!v7(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return VM&&!ZM(a)?null:a.data;default:return null}}function S7(n,a,l,u,h){var g;if(p7?g=b7(a,u):g=x7(a,u),!g)return null;var b=Ov(l,"onBeforeInput");if(b.length>0){var S=new K8("onBeforeInput","beforeinput",null,u,h);n.push({event:S,listeners:b}),S.data=g}}function E7(n,a,l,u,h,g,b){y7(n,a,l,u,h),S7(n,a,l,u,h)}var w7={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function QM(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!w7[n.type]:a==="textarea"}function C7(n){if(!ft)return!1;var a="on"+n,l=a in document;if(!l){var u=document.createElement("div");u.setAttribute(a,"return;"),l=typeof u[a]=="function"}return l}function _7(){Ye("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function KM(n,a,l,u){I_(u);var h=Ov(a,"onChange");if(h.length>0){var g=new bb("onChange","change",null,l,u);n.push({event:g,listeners:h})}}var md=null,gd=null;function M7(n){var a=n.nodeName&&n.nodeName.toLowerCase();return a==="select"||a==="input"&&n.type==="file"}function T7(n){var a=[];KM(a,gd,n,ml(n)),xA(k7,a)}function k7(n){uT(n,0)}function Lv(n){var a=cc(n);if(kn(a))return n}function R7(n,a){if(n==="change")return a}var JM=!1;ft&&(JM=C7("input")&&(!document.documentMode||document.documentMode>9));function L7(n,a){md=n,gd=a,md.attachEvent("onpropertychange",eT)}function XM(){!md||(md.detachEvent("onpropertychange",eT),md=null,gd=null)}function eT(n){n.propertyName==="value"&&Lv(gd)&&T7(n)}function O7(n,a,l){n==="focusin"?(XM(),L7(a,l)):n==="focusout"&&XM()}function D7(n,a){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Lv(gd)}function P7(n){var a=n.nodeName;return a&&a.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function A7(n,a){if(n==="click")return Lv(a)}function N7(n,a){if(n==="input"||n==="change")return Lv(a)}function z7(n){var a=n._wrapperState;!a||!a.controlled||n.type!=="number"||li(n,"number",n.value)}function I7(n,a,l,u,h,g,b){var S=l?cc(l):window,_,N;if(M7(S)?_=R7:QM(S)?JM?_=N7:(_=D7,N=O7):P7(S)&&(_=A7),_){var z=_(a,l);if(z){KM(n,z,u,h);return}}N&&N(a,S,l),a==="focusout"&&z7(S)}function U7(){Ne("onMouseEnter",["mouseout","mouseover"]),Ne("onMouseLeave",["mouseout","mouseover"]),Ne("onPointerEnter",["pointerout","pointerover"]),Ne("onPointerLeave",["pointerout","pointerover"])}function F7(n,a,l,u,h,g,b){var S=a==="mouseover"||a==="pointerover",_=a==="mouseout"||a==="pointerout";if(S&&(g&Kf)===0){var N=u.relatedTarget||u.fromElement;if(N&&(Ts(N)||Bv(N)))return}if(!(!_&&!S)){var z;if(h.window===h)z=h;else{var ee=h.ownerDocument;ee?z=ee.defaultView||ee.parentWindow:z=window}var V,oe;if(_){var ge=u.relatedTarget||u.toElement;if(V=l,oe=ge?Ts(ge):null,oe!==null){var De=xs(oe);(oe!==De||oe.tag!==O&&oe.tag!==A)&&(oe=null)}}else V=null,oe=l;if(V!==oe){var et=FM,ut="onMouseLeave",ot="onMouseEnter",Dt="mouse";(a==="pointerout"||a==="pointerover")&&(et=BM,ut="onPointerLeave",ot="onPointerEnter",Dt="pointer");var an=V==null?z:cc(V),ie=oe==null?z:cc(oe),he=new et(ut,Dt+"leave",V,u,h);he.target=an,he.relatedTarget=ie;var J=null,Ee=Ts(h);if(Ee===l){var Fe=new et(ot,Dt+"enter",oe,u,h);Fe.target=ie,Fe.relatedTarget=an,J=Fe}uN(n,he,J,V,oe)}}}function j7(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Ki=typeof Object.is=="function"?Object.is:j7,B7=Object.prototype.hasOwnProperty;function yd(n,a){if(Ki(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var l=Object.keys(n),u=Object.keys(a);if(l.length!==u.length)return!1;for(var h=0;h<l.length;h++)if(!B7.call(a,l[h])||!Ki(n[l[h]],a[l[h]]))return!1;return!0}function tT(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function H7(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function nT(n,a){for(var l=tT(n),u=0,h=0;l;){if(l.nodeType===Yr){if(h=u+l.textContent.length,u<=a&&h>=a)return{node:l,offset:a-u};u=h}l=tT(H7(l))}}function V7(n){var a=n.ownerDocument,l=a&&a.defaultView||window,u=l.getSelection&&l.getSelection();if(!u||u.rangeCount===0)return null;var h=u.anchorNode,g=u.anchorOffset,b=u.focusNode,S=u.focusOffset;try{h.nodeType,b.nodeType}catch{return null}return W7(n,h,g,b,S)}function W7(n,a,l,u,h){var g=0,b=-1,S=-1,_=0,N=0,z=n,ee=null;e:for(;;){for(var V=null;z===a&&(l===0||z.nodeType===Yr)&&(b=g+l),z===u&&(h===0||z.nodeType===Yr)&&(S=g+h),z.nodeType===Yr&&(g+=z.nodeValue.length),(V=z.firstChild)!==null;)ee=z,z=V;for(;;){if(z===n)break e;if(ee===a&&++_===l&&(b=g),ee===u&&++N===h&&(S=g),(V=z.nextSibling)!==null)break;z=ee,ee=z.parentNode}z=V}return b===-1||S===-1?null:{start:b,end:S}}function $7(n,a){var l=n.ownerDocument||document,u=l&&l.defaultView||window;if(!!u.getSelection){var h=u.getSelection(),g=n.textContent.length,b=Math.min(a.start,g),S=a.end===void 0?b:Math.min(a.end,g);if(!h.extend&&b>S){var _=S;S=b,b=_}var N=nT(n,b),z=nT(n,S);if(N&&z){if(h.rangeCount===1&&h.anchorNode===N.node&&h.anchorOffset===N.offset&&h.focusNode===z.node&&h.focusOffset===z.offset)return;var ee=l.createRange();ee.setStart(N.node,N.offset),h.removeAllRanges(),b>S?(h.addRange(ee),h.extend(z.node,z.offset)):(ee.setEnd(z.node,z.offset),h.addRange(ee))}}}function rT(n){return n&&n.nodeType===Yr}function iT(n,a){return!n||!a?!1:n===a?!0:rT(n)?!1:rT(a)?iT(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1}function q7(n){return n&&n.ownerDocument&&iT(n.ownerDocument.documentElement,n)}function G7(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function aT(){for(var n=window,a=pe();a instanceof n.HTMLIFrameElement;){if(G7(a))n=a.contentWindow;else return a;a=pe(n.document)}return a}function _b(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function Y7(){var n=aT();return{focusedElem:n,selectionRange:_b(n)?Q7(n):null}}function Z7(n){var a=aT(),l=n.focusedElem,u=n.selectionRange;if(a!==l&&q7(l)){u!==null&&_b(l)&&K7(l,u);for(var h=[],g=l;g=g.parentNode;)g.nodeType===br&&h.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof l.focus=="function"&&l.focus();for(var b=0;b<h.length;b++){var S=h[b];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}}function Q7(n){var a;return"selectionStart"in n?a={start:n.selectionStart,end:n.selectionEnd}:a=V7(n),a||{start:0,end:0}}function K7(n,a){var l=a.start,u=a.end;u===void 0&&(u=l),"selectionStart"in n?(n.selectionStart=l,n.selectionEnd=Math.min(u,n.value.length)):$7(n,a)}var J7=ft&&"documentMode"in document&&document.documentMode<=11;function X7(){Ye("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var oc=null,Mb=null,bd=null,Tb=!1;function eN(n){if("selectionStart"in n&&_b(n))return{start:n.selectionStart,end:n.selectionEnd};var a=n.ownerDocument&&n.ownerDocument.defaultView||window,l=a.getSelection();return{anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}}function tN(n){return n.window===n?n.document:n.nodeType===ba?n:n.ownerDocument}function oT(n,a,l){var u=tN(l);if(!(Tb||oc==null||oc!==pe(u))){var h=eN(oc);if(!bd||!yd(bd,h)){bd=h;var g=Ov(Mb,"onSelect");if(g.length>0){var b=new bb("onSelect","select",null,a,l);n.push({event:b,listeners:g}),b.target=oc}}}}function nN(n,a,l,u,h,g,b){var S=l?cc(l):window;switch(a){case"focusin":(QM(S)||S.contentEditable==="true")&&(oc=S,Mb=l,bd=null);break;case"focusout":oc=null,Mb=null,bd=null;break;case"mousedown":Tb=!0;break;case"contextmenu":case"mouseup":case"dragend":Tb=!1,oT(n,u,h);break;case"selectionchange":if(J7)break;case"keydown":case"keyup":oT(n,u,h)}}function rN(n,a,l,u,h,g,b){var S=fM.get(a);if(S!==void 0){var _=bb,N=a;switch(a){case"keypress":if(Tv(u)===0)return;case"keydown":case"keyup":_=i7;break;case"focusin":N="focus",_=Eb;break;case"focusout":N="blur",_=Eb;break;case"beforeblur":case"afterblur":_=Eb;break;case"click":if(u.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=FM;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=W8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=l7;break;case lM:case sM:case uM:_=G8;break;case cM:_=u7;break;case"scroll":_=B8;break;case"wheel":_=f7;break;case"copy":case"cut":case"paste":_=Z8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=BM;break}var z=(g&$a)!==0;{var ee=!z&&a==="scroll",V=lN(l,S,u.type,z,ee);if(V.length>0){var oe=new _(S,N,null,u,h);n.push({event:oe,listeners:V})}}}}n8(),U7(),_7(),X7(),h7();function iN(n,a,l,u,h,g,b){rN(n,a,l,u,h,g);var S=(g&Gu)===0;S&&(F7(n,a,l,u,h,g),I7(n,a,l,u,h),nN(n,a,l,u,h),E7(n,a,l,u,h))}var xd=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],lT=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(xd));function sT(n,a,l){var u=n.type||"unknown-event";n.currentTarget=l,RA(u,a,void 0,n),n.currentTarget=null}function aN(n,a,l){var u;if(l)for(var h=a.length-1;h>=0;h--){var g=a[h],b=g.instance,S=g.currentTarget,_=g.listener;if(b!==u&&n.isPropagationStopped())return;sT(n,_,S),u=b}else for(var N=0;N<a.length;N++){var z=a[N],ee=z.instance,V=z.currentTarget,oe=z.listener;if(ee!==u&&n.isPropagationStopped())return;sT(n,oe,V),u=ee}}function uT(n,a){for(var l=(a&$a)!==0,u=0;u<n.length;u++){var h=n[u],g=h.event,b=h.listeners;aN(g,b,l)}LA()}function oN(n,a,l,u,h){var g=ml(l),b=[];iN(b,n,u,l,g,a),uT(b,a)}function En(n,a){var l=!1,u=HT(a),h=gT(n,l);u.has(h)||(pT(a,n,_o,l),u.add(h))}var cT="_reactListening"+Math.random().toString(36).slice(2);function fT(n){{if(n[cT])return;n[cT]=!0,Ce.forEach(function(a){lT.has(a)||dT(a,!1,n,null),dT(a,!0,n,null)})}}function dT(n,a,l,u){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,g=l;if(n==="selectionchange"&&l.nodeType!==ba&&(g=l.ownerDocument),u!==null&&!a&&lT.has(n)){if(n!=="scroll")return;h|=_o,g=u}var b=HT(g),S=gT(n,a);b.has(S)||(a&&(h|=$a),pT(g,n,h,a),b.add(S))}function pT(n,a,l,u,h){var g=D8(n,a,l),b=void 0;J0&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(b=!0),n=n;var S;u?b!==void 0?S=I8(n,a,g,b):S=z8(n,a,g):b!==void 0?S=U8(n,a,g,b):S=N8(n,a,g)}function hT(n,a){return n===a||n.nodeType===Rr&&n.parentNode===a}function vT(n,a,l,u,h){var g=u;if((a&qu)===0&&(a&_o)===0){var b=h;if(u!==null){var S=u;e:for(;;){if(S===null)return;var _=S.tag;if(_===w||_===k){var N=S.stateNode.containerInfo;if(hT(N,b))break;if(_===k)for(var z=S.return;z!==null;){var ee=z.tag;if(ee===w||ee===k){var V=z.stateNode.containerInfo;if(hT(V,b))return}z=z.return}for(;N!==null;){var oe=Ts(N);if(oe===null)return;var ge=oe.tag;if(ge===O||ge===A){S=g=oe;continue e}N=N.parentNode}}S=S.return}}}SA(function(){return oN(n,a,l,g)})}function Sd(n,a,l){return{instance:n,listener:a,currentTarget:l}}function lN(n,a,l,u,h){for(var g=a!==null?a+"Capture":null,b=u?g:a,S=[],_=n,N=null;_!==null;){var z=_,ee=z.stateNode,V=z.tag;if(V===O&&ee!==null&&(N=ee,b!==null)){var oe=Jf(_,b);oe!=null&&S.push(Sd(_,oe,N))}if(h)break;_=_.return}return S}function Ov(n,a){for(var l=a+"Capture",u=[],h=n;h!==null;){var g=h,b=g.stateNode,S=g.tag;if(S===O&&b!==null){var _=b,N=Jf(h,l);N!=null&&u.unshift(Sd(h,N,_));var z=Jf(h,a);z!=null&&u.push(Sd(h,z,_))}h=h.return}return u}function lc(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==O);return n||null}function sN(n,a){for(var l=n,u=a,h=0,g=l;g;g=lc(g))h++;for(var b=0,S=u;S;S=lc(S))b++;for(;h-b>0;)l=lc(l),h--;for(;b-h>0;)u=lc(u),b--;for(var _=h;_--;){if(l===u||u!==null&&l===u.alternate)return l;l=lc(l),u=lc(u)}return null}function mT(n,a,l,u,h){for(var g=a._reactName,b=[],S=l;S!==null&&S!==u;){var _=S,N=_.alternate,z=_.stateNode,ee=_.tag;if(N!==null&&N===u)break;if(ee===O&&z!==null){var V=z;if(h){var oe=Jf(S,g);oe!=null&&b.unshift(Sd(S,oe,V))}else if(!h){var ge=Jf(S,g);ge!=null&&b.push(Sd(S,ge,V))}}S=S.return}b.length!==0&&n.push({event:a,listeners:b})}function uN(n,a,l,u,h){var g=u&&h?sN(u,h):null;u!==null&&mT(n,a,u,g,!1),h!==null&&l!==null&&mT(n,l,h,g,!0)}function gT(n,a){return n+"__"+(a?"capture":"bubble")}var ci=!1,Ed="dangerouslySetInnerHTML",Dv="suppressContentEditableWarning",wd="suppressHydrationWarning",yT="autoFocus",_s="children",Ms="style",Pv="__html",sc=Ba.html,kb,Cd,Av,Nv,_d,bT,zv,xT,Md,ST;{kb={dialog:!0,webview:!0},Av=function(n,a){Vu(n,a),Qf(n,a),$u(n,a,{registrationNameDependencies:_e,possibleRegistrationNames:Ae})},xT=ft&&!document.documentMode;var cN=/\r\n?/g,fN=/\u0000|\uFFFD/g;Md=function(n){var a=typeof n=="string"?n:""+n;return a.replace(cN,`
18
- `).replace(fN,"")},Nv=function(n,a){if(!ci){var l=Md(a),u=Md(n);u!==l&&(ci=!0,d('Text content did not match. Server: "%s" Client: "%s"',u,l))}},_d=function(n,a,l){if(!ci){var u=Md(l),h=Md(a);h!==u&&(ci=!0,d("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(h),JSON.stringify(u)))}},bT=function(n){if(!ci){ci=!0;var a=[];n.forEach(function(l){a.push(l)}),d("Extra attributes from the server: %s",a)}},zv=function(n,a){a===!1?d("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):d("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof a)},ST=function(n,a){var l=n.namespaceURI===sc?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return l.innerHTML=a,l.innerHTML}}function ET(n){return n.nodeType===ba?n:n.ownerDocument}function dN(){}function Iv(n){n.onclick=dN}function pN(n,a,l,u,h){for(var g in u)if(!!u.hasOwnProperty(g)){var b=u[g];if(g===Ms)b&&Object.freeze(b),Nn(a,b);else if(g===Ed){var S=b?b[Pv]:void 0;S!=null&&ov(a,S)}else if(g===_s)if(typeof b=="string"){var _=n!=="textarea"||b!=="";_&&Fu(a,b)}else typeof b=="number"&&Fu(a,""+b);else g===Dv||g===wd||g===yT||(_e.hasOwnProperty(g)?b!=null&&(typeof b!="function"&&zv(g,b),g==="onScroll"&&En("scroll",a)):b!=null&&ri(a,g,b,h))}}function hN(n,a,l,u){for(var h=0;h<a.length;h+=2){var g=a[h],b=a[h+1];g===Ms?Nn(n,b):g===Ed?ov(n,b):g===_s?Fu(n,b):ri(n,g,b,u)}}function vN(n,a,l,u){var h,g=ET(l),b,S=u;if(S===sc&&(S=Ri(n)),S===sc){if(h=si(n,a),!h&&n!==n.toLowerCase()&&d("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n==="script"){var _=g.createElement("div");_.innerHTML="<script><\/script>";var N=_.firstChild;b=_.removeChild(N)}else if(typeof a.is=="string")b=g.createElement(n,{is:a.is});else if(b=g.createElement(n),n==="select"){var z=b;a.multiple?z.multiple=!0:a.size&&(z.size=a.size)}}else b=g.createElementNS(S,n);return S===sc&&!h&&Object.prototype.toString.call(b)==="[object HTMLUnknownElement]"&&!Object.prototype.hasOwnProperty.call(kb,n)&&(kb[n]=!0,d("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)),b}function mN(n,a){return ET(a).createTextNode(n)}function gN(n,a,l,u){var h=si(a,l);Av(a,l);var g;switch(a){case"dialog":En("cancel",n),En("close",n),g=l;break;case"iframe":case"object":case"embed":En("load",n),g=l;break;case"video":case"audio":for(var b=0;b<xd.length;b++)En(xd[b],n);g=l;break;case"source":En("error",n),g=l;break;case"img":case"image":case"link":En("error",n),En("load",n),g=l;break;case"details":En("toggle",n),g=l;break;case"input":ga(n,l),g=ma(n,l),En("invalid",n);break;case"option":jf(n,l),g=Pu(n,l);break;case"select":Nu(n,l),g=Bf(n,l),En("invalid",n);break;case"textarea":rv(n,l),g=xo(n,l),En("invalid",n);break;default:g=l}switch(Di(a,g),pN(a,n,u,g,h),a){case"input":Xe(n),yr(n,l,!1);break;case"textarea":Xe(n),av(n);break;case"option":Du(n,l);break;case"select":gs(n,l);break;default:typeof g.onClick=="function"&&Iv(n);break}}function yN(n,a,l,u,h){Av(a,u);var g=null,b,S;switch(a){case"input":b=ma(n,l),S=ma(n,u),g=[];break;case"option":b=Pu(n,l),S=Pu(n,u),g=[];break;case"select":b=Bf(n,l),S=Bf(n,u),g=[];break;case"textarea":b=xo(n,l),S=xo(n,u),g=[];break;default:b=l,S=u,typeof b.onClick!="function"&&typeof S.onClick=="function"&&Iv(n);break}Di(a,S);var _,N,z=null;for(_ in b)if(!(S.hasOwnProperty(_)||!b.hasOwnProperty(_)||b[_]==null))if(_===Ms){var ee=b[_];for(N in ee)ee.hasOwnProperty(N)&&(z||(z={}),z[N]="")}else _===Ed||_===_s||_===Dv||_===wd||_===yT||(_e.hasOwnProperty(_)?g||(g=[]):(g=g||[]).push(_,null));for(_ in S){var V=S[_],oe=b!=null?b[_]:void 0;if(!(!S.hasOwnProperty(_)||V===oe||V==null&&oe==null))if(_===Ms)if(V&&Object.freeze(V),oe){for(N in oe)oe.hasOwnProperty(N)&&(!V||!V.hasOwnProperty(N))&&(z||(z={}),z[N]="");for(N in V)V.hasOwnProperty(N)&&oe[N]!==V[N]&&(z||(z={}),z[N]=V[N])}else z||(g||(g=[]),g.push(_,z)),z=V;else if(_===Ed){var ge=V?V[Pv]:void 0,De=oe?oe[Pv]:void 0;ge!=null&&De!==ge&&(g=g||[]).push(_,ge)}else _===_s?(typeof V=="string"||typeof V=="number")&&(g=g||[]).push(_,""+V):_===Dv||_===wd||(_e.hasOwnProperty(_)?(V!=null&&(typeof V!="function"&&zv(_,V),_==="onScroll"&&En("scroll",n)),!g&&oe!==V&&(g=[])):typeof V=="object"&&V!==null&&V.$$typeof===il?V.toString():(g=g||[]).push(_,V))}return z&&(Zn(z,S[Ms]),(g=g||[]).push(Ms,z)),g}function bN(n,a,l,u,h){l==="input"&&h.type==="radio"&&h.name!=null&&Ct(n,h);var g=si(l,u),b=si(l,h);switch(hN(n,a,g,b),l){case"input":Gr(n,h);break;case"textarea":iv(n,h);break;case"select":Hf(n,h);break}}function xN(n){{var a=n.toLowerCase();return wo.hasOwnProperty(a)&&wo[a]||null}}function SN(n,a,l,u,h){var g,b;switch(Cd=l[wd]===!0,g=si(a,l),Av(a,l),a){case"dialog":En("cancel",n),En("close",n);break;case"iframe":case"object":case"embed":En("load",n);break;case"video":case"audio":for(var S=0;S<xd.length;S++)En(xd[S],n);break;case"source":En("error",n);break;case"img":case"image":case"link":En("error",n),En("load",n);break;case"details":En("toggle",n);break;case"input":ga(n,l),En("invalid",n);break;case"option":jf(n,l);break;case"select":Nu(n,l),En("invalid",n);break;case"textarea":rv(n,l),En("invalid",n);break}Di(a,l);{b=new Set;for(var _=n.attributes,N=0;N<_.length;N++){var z=_[N].name.toLowerCase();switch(z){case"data-reactroot":break;case"value":break;case"checked":break;case"selected":break;default:b.add(_[N].name)}}}var ee=null;for(var V in l)if(!!l.hasOwnProperty(V)){var oe=l[V];if(V===_s)typeof oe=="string"?n.textContent!==oe&&(Cd||Nv(n.textContent,oe),ee=[_s,oe]):typeof oe=="number"&&n.textContent!==""+oe&&(Cd||Nv(n.textContent,oe),ee=[_s,""+oe]);else if(_e.hasOwnProperty(V))oe!=null&&(typeof oe!="function"&&zv(V,oe),V==="onScroll"&&En("scroll",n));else if(typeof g=="boolean"){var ge=void 0,De=sr(V);if(!Cd){if(!(V===Dv||V===wd||V==="value"||V==="checked"||V==="selected")){if(V===Ed){var et=n.innerHTML,ut=oe?oe[Pv]:void 0;if(ut!=null){var ot=ST(n,ut);ot!==et&&_d(V,et,ot)}}else if(V===Ms){if(b.delete(V),xT){var Dt=Rn(oe);ge=n.getAttribute("style"),Dt!==ge&&_d(V,ge,Dt)}}else if(g)b.delete(V.toLowerCase()),ge=ir(n,V,oe),oe!==ge&&_d(V,ge,oe);else if(!bn(V,De,g)&&!rr(V,oe,De,g)){var an=!1;if(De!==null)b.delete(De.attributeName),ge=Je(n,V,oe,De);else{var ie=u;if(ie===sc&&(ie=Ri(a)),ie===sc)b.delete(V.toLowerCase());else{var he=xN(V);he!==null&&he!==V&&(an=!0,b.delete(he)),b.delete(V)}ge=ir(n,V,oe)}oe!==ge&&!an&&_d(V,ge,oe)}}}}}switch(b.size>0&&!Cd&&bT(b),a){case"input":Xe(n),yr(n,l,!0);break;case"textarea":Xe(n),av(n);break;case"select":case"option":break;default:typeof l.onClick=="function"&&Iv(n);break}return ee}function EN(n,a){var l=n.nodeValue!==a;return l}function wT(n,a){Nv(n.nodeValue,a)}function CT(n,a){{if(ci)return;ci=!0,d("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),n.nodeName.toLowerCase())}}function _T(n,a){{if(ci)return;ci=!0,d('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,n.nodeName.toLowerCase())}}function MT(n,a,l){{if(ci)return;ci=!0,d("Expected server HTML to contain a matching <%s> in <%s>.",a,n.nodeName.toLowerCase())}}function TT(n,a){{if(a===""||ci)return;ci=!0,d('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,n.nodeName.toLowerCase())}}function wN(n,a,l){switch(a){case"input":If(n,l);return;case"textarea":B0(n,l);return;case"select":Vf(n,l);return}}var Td=function(){},kd=function(){};{var CN=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],kT=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],_N=kT.concat(["button"]),MN=["dd","dt","li","option","optgroup","p","rp","rt"],RT={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};kd=function(n,a){var l=t({},n||RT),u={tag:a};return kT.indexOf(a)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),_N.indexOf(a)!==-1&&(l.pTagInButtonScope=null),CN.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=u,a==="form"&&(l.formTag=u),a==="a"&&(l.aTagInScope=u),a==="button"&&(l.buttonTagInScope=u),a==="nobr"&&(l.nobrTagInScope=u),a==="p"&&(l.pTagInButtonScope=u),a==="li"&&(l.listItemTagAutoclosing=u),(a==="dd"||a==="dt")&&(l.dlItemTagAutoclosing=u),l};var TN=function(n,a){switch(a){case"select":return n==="option"||n==="optgroup"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return MN.indexOf(a)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null}return!0},kN=function(n,a){switch(n){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null},LT={};Td=function(n,a,l){l=l||RT;var u=l.current,h=u&&u.tag;a!=null&&(n!=null&&d("validateDOMNesting: when childText is passed, childTag should be null"),n="#text");var g=TN(n,h)?null:u,b=g?null:kN(n,l),S=g||b;if(!!S){var _=S.tag,N=!!g+"|"+n+"|"+_;if(!LT[N]){LT[N]=!0;var z=n,ee="";if(n==="#text"?/\S/.test(a)?z="Text nodes":(z="Whitespace text nodes",ee=" Make sure you don't have any extra whitespace between tags on each line of your source code."):z="<"+n+">",g){var V="";_==="table"&&n==="tr"&&(V+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),d("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",z,_,ee,V)}else d("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",z,_)}}}}var uc;uc="suppressHydrationWarning";var OT="$",DT="/$",Rb="$?",Lb="$!",RN="style",Ob=null,Db=null;function PT(n,a){switch(n){case"button":case"input":case"select":case"textarea":return!!a.autoFocus}return!1}function LN(n){var a,l,u=n.nodeType;switch(u){case ba:case lv:{a=u===ba?"#document":"#fragment";var h=n.documentElement;l=h?h.namespaceURI:ya(null,"");break}default:{var g=u===Rr?n.parentNode:n,b=g.namespaceURI||null;a=g.tagName,l=ya(b,a);break}}{var S=a.toLowerCase(),_=kd(null,S);return{namespace:l,ancestorInfo:_}}}function ON(n,a,l){{var u=n,h=ya(u.namespace,a),g=kd(u.ancestorInfo,a);return{namespace:h,ancestorInfo:g}}}function fJ(n){return n}function DN(n){Ob=O8(),Db=Y7();var a=null;return NM(!1),a}function PN(n){Z7(Db),NM(Ob),Ob=null,Db=null}function AN(n,a,l,u,h){var g;{var b=u;if(Td(n,null,b.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var S=""+a.children,_=kd(b.ancestorInfo,n);Td(null,S,_)}g=b.namespace}var N=vN(n,a,l,g);return jv(h,N),zb(N,a),N}function NN(n,a){n.appendChild(a)}function zN(n,a,l,u,h){return gN(n,a,l,u),PT(a,l)}function IN(n,a,l,u,h,g){{var b=g;if(typeof u.children!=typeof l.children&&(typeof u.children=="string"||typeof u.children=="number")){var S=""+u.children,_=kd(b.ancestorInfo,a);Td(null,S,_)}}return yN(n,a,l,u)}function Pb(n,a){return n==="textarea"||n==="option"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function UN(n,a,l,u){{var h=l;Td(null,n,h.ancestorInfo)}var g=mN(n,a);return jv(u,g),g}var AT=typeof setTimeout=="function"?setTimeout:void 0,FN=typeof clearTimeout=="function"?clearTimeout:void 0,Ab=-1;function jN(n,a,l,u){PT(a,l)&&n.focus()}function BN(n,a,l,u,h,g){zb(n,h),bN(n,a,l,u,h)}function NT(n){Fu(n,"")}function HN(n,a,l){n.nodeValue=l}function VN(n,a){n.appendChild(a)}function WN(n,a){var l;n.nodeType===Rr?(l=n.parentNode,l.insertBefore(a,n)):(l=n,l.appendChild(a));var u=n._reactRootContainer;u==null&&l.onclick===null&&Iv(l)}function $N(n,a,l){n.insertBefore(a,l)}function qN(n,a,l){n.nodeType===Rr?n.parentNode.insertBefore(a,l):n.insertBefore(a,l)}function GN(n,a){n.removeChild(a)}function YN(n,a){n.nodeType===Rr?n.parentNode.removeChild(a):n.removeChild(a)}function ZN(n){n=n;var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function QN(n){n.nodeValue=""}function KN(n,a){n=n;var l=a[RN],u=l!=null&&l.hasOwnProperty("display")?l.display:null;n.style.display=$f("display",u)}function JN(n,a){n.nodeValue=a}function Nb(n){if(n.nodeType===br)n.textContent="";else if(n.nodeType===ba){var a=n.body;a!=null&&(a.textContent="")}}function XN(n,a,l){return n.nodeType!==br||a.toLowerCase()!==n.nodeName.toLowerCase()?null:n}function ez(n,a){return a===""||n.nodeType!==Yr?null:n}function tz(n){return n.data===Rb}function nz(n){return n.data===Lb}function zT(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===br||a===Yr)break}return n}function Uv(n){return zT(n.nextSibling)}function IT(n){return zT(n.firstChild)}function rz(n,a,l,u,h,g){jv(g,n),zb(n,l);var b;{var S=h;b=S.namespace}return SN(n,a,l,b)}function iz(n,a,l){return jv(l,n),EN(n,a)}function az(n){for(var a=n.nextSibling,l=0;a;){if(a.nodeType===Rr){var u=a.data;if(u===DT){if(l===0)return Uv(a);l--}else(u===OT||u===Lb||u===Rb)&&l++}a=a.nextSibling}return null}function UT(n){for(var a=n.previousSibling,l=0;a;){if(a.nodeType===Rr){var u=a.data;if(u===OT||u===Lb||u===Rb){if(l===0)return a;l--}else u===DT&&l++}a=a.previousSibling}return null}function oz(n){iM(n)}function lz(n){iM(n)}function sz(n,a,l){wT(a,l)}function uz(n,a,l,u,h){a[uc]!==!0&&wT(u,h)}function cz(n,a){a.nodeType===br?CT(n,a):a.nodeType===Rr||_T(n,a)}function fz(n,a,l,u){a[uc]!==!0&&(u.nodeType===br?CT(l,u):u.nodeType===Rr||_T(l,u))}function dz(n,a,l){MT(n,a)}function pz(n,a){TT(n,a)}function hz(n,a,l,u,h){a[uc]!==!0&&MT(l,u)}function vz(n,a,l,u){a[uc]!==!0&&TT(l,u)}function mz(n,a,l){a[uc]!==!0}var gz=0;function yz(n){var a="r:"+(gz++).toString(36);return{toString:function(){return n(),a},valueOf:function(){return n(),a}}}function bz(n){return n!==null&&typeof n=="object"&&n.$$typeof===il}function xz(n){return{$$typeof:il,toString:n,valueOf:n}}function Sz(n){fT(n)}var Fv=Math.random().toString(36).slice(2),Rd="__reactFiber$"+Fv,FT="__reactProps$"+Fv,Ld="__reactContainer$"+Fv,jT="__reactEvents$"+Fv;function jv(n,a){a[Rd]=n}function Ez(n,a){a[Ld]=n}function BT(n){n[Ld]=null}function Bv(n){return!!n[Ld]}function Ts(n){var a=n[Rd];if(a)return a;for(var l=n.parentNode;l;){if(a=l[Ld]||l[Rd],a){var u=a.alternate;if(a.child!==null||u!==null&&u.child!==null)for(var h=UT(n);h!==null;){var g=h[Rd];if(g)return g;h=UT(h)}return a}n=l,l=n.parentNode}return null}function El(n){var a=n[Rd]||n[Ld];return a&&(a.tag===O||a.tag===A||a.tag===U||a.tag===w)?a:null}function cc(n){if(n.tag===O||n.tag===A)return n.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Hv(n){return n[FT]||null}function zb(n,a){n[FT]=a}function HT(n){var a=n[jT];return a===void 0&&(a=n[jT]=new Set),a}var VT={},WT=s.ReactDebugCurrentFrame;function Vv(n){if(n){var a=n._owner,l=Ou(n.type,n._source,a?a.type:null);WT.setExtraStackFrame(l)}else WT.setExtraStackFrame(null)}function Ea(n,a,l,u,h){{var g=Function.call.bind(Object.prototype.hasOwnProperty);for(var b in n)if(g(n,b)){var S=void 0;try{if(typeof n[b]!="function"){var _=Error((u||"React class")+": "+l+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}S=n[b](a,b,u,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){S=N}S&&!(S instanceof Error)&&(Vv(h),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",l,b,typeof S),Vv(null)),S instanceof Error&&!(S.message in VT)&&(VT[S.message]=!0,Vv(h),d("Failed %s type: %s",l,S.message),Vv(null))}}}var Ib=[],Wv;Wv=[];var Oo=-1;function wl(n){return{current:n}}function Or(n,a){if(Oo<0){d("Unexpected pop.");return}a!==Wv[Oo]&&d("Unexpected Fiber popped."),n.current=Ib[Oo],Ib[Oo]=null,Wv[Oo]=null,Oo--}function Dr(n,a,l){Oo++,Ib[Oo]=n.current,Wv[Oo]=l,n.current=a}var Ub;Ub={};var Ai={};Object.freeze(Ai);var Do=wl(Ai),Za=wl(!1),Fb=Ai;function fc(n,a,l){return l&&Qa(a)?Fb:Do.current}function $T(n,a,l){{var u=n.stateNode;u.__reactInternalMemoizedUnmaskedChildContext=a,u.__reactInternalMemoizedMaskedChildContext=l}}function dc(n,a){{var l=n.type,u=l.contextTypes;if(!u)return Ai;var h=n.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===a)return h.__reactInternalMemoizedMaskedChildContext;var g={};for(var b in u)g[b]=a[b];{var S=je(l)||"Unknown";Ea(u,g,"context",S)}return h&&$T(n,a,g),g}}function $v(){return Za.current}function Qa(n){{var a=n.childContextTypes;return a!=null}}function qv(n){Or(Za,n),Or(Do,n)}function jb(n){Or(Za,n),Or(Do,n)}function qT(n,a,l){{if(Do.current!==Ai)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Dr(Do,a,n),Dr(Za,l,n)}}function GT(n,a,l){{var u=n.stateNode,h=a.childContextTypes;if(typeof u.getChildContext!="function"){{var g=je(a)||"Unknown";Ub[g]||(Ub[g]=!0,d("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",g,g))}return l}var b=u.getChildContext();for(var S in b)if(!(S in h))throw Error((je(a)||"Unknown")+'.getChildContext(): key "'+S+'" is not defined in childContextTypes.');{var _=je(a)||"Unknown";Ea(h,b,"child context",_)}return t({},l,b)}}function Gv(n){{var a=n.stateNode,l=a&&a.__reactInternalMemoizedMergedChildContext||Ai;return Fb=Do.current,Dr(Do,l,n),Dr(Za,Za.current,n),!0}}function YT(n,a,l){{var u=n.stateNode;if(!u)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(l){var h=GT(n,a,Fb);u.__reactInternalMemoizedMergedChildContext=h,Or(Za,n),Or(Do,n),Dr(Do,h,n),Dr(Za,l,n)}else Or(Za,n),Dr(Za,l,n)}}function wz(n){{if(!(UA(n)&&n.tag===y))throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var a=n;do{switch(a.tag){case w:return a.stateNode.context;case y:{var l=a.type;if(Qa(l))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Bb=0,ZT=1,Hb=2,Od=null,wa=null,pc=!1,Cz=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function _z(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return d("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Od=a.inject(n),wa=a}catch(l){d("React instrumentation encountered an error: %s.",l)}return!0}function Mz(n,a){if(wa&&typeof wa.onScheduleFiberRoot=="function")try{wa.onScheduleFiberRoot(Od,n,a)}catch(l){pc||(pc=!0,d("React instrumentation encountered an error: %s",l))}}function Tz(n,a){if(wa&&typeof wa.onCommitFiberRoot=="function")try{var l=(n.current.flags&Sn)===Sn;se?wa.onCommitFiberRoot(Od,n,a,l):wa.onCommitFiberRoot(Od,n,void 0,l)}catch(u){pc||(pc=!0,d("React instrumentation encountered an error: %s",u))}}function kz(n){if(wa&&typeof wa.onCommitFiberUnmount=="function")try{wa.onCommitFiberUnmount(Od,n)}catch(a){pc||(pc=!0,d("React instrumentation encountered an error: %s",a))}}var Rz=r.unstable_runWithPriority,Vb=r.unstable_scheduleCallback,QT=r.unstable_cancelCallback,Lz=r.unstable_shouldYield,KT=r.unstable_requestPaint,Wb=r.unstable_now,Oz=r.unstable_getCurrentPriorityLevel,Yv=r.unstable_ImmediatePriority,JT=r.unstable_UserBlockingPriority,XT=r.unstable_NormalPriority,ek=r.unstable_LowPriority,tk=r.unstable_IdlePriority;if(!(o.__interactionsRef!=null&&o.__interactionsRef.current!=null))throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");var nk={},Ji=99,ks=98,Po=97,rk=96,ik=95,$b=90,Dz=Lz,Pz=KT!==void 0?KT:function(){},Ao=null,Zv=null,qb=!1,ak=Wb(),Pr=ak<1e4?Wb:function(){return Wb()-ak};function hc(){switch(Oz()){case Yv:return Ji;case JT:return ks;case XT:return Po;case ek:return rk;case tk:return ik;default:throw Error("Unknown priority level.")}}function ok(n){switch(n){case Ji:return Yv;case ks:return JT;case Po:return XT;case rk:return ek;case ik:return tk;default:throw Error("Unknown priority level.")}}function Rs(n,a){var l=ok(n);return Rz(l,a)}function Cl(n,a,l){var u=ok(n);return Vb(u,a,l)}function Az(n){return Ao===null?(Ao=[n],Zv=Vb(Yv,sk)):Ao.push(n),nk}function lk(n){n!==nk&&QT(n)}function Ka(){if(Zv!==null){var n=Zv;Zv=null,QT(n)}sk()}function sk(){if(!qb&&Ao!==null){qb=!0;var n=0;try{var a=!0,l=Ao;Rs(Ji,function(){for(;n<l.length;n++){var u=l[n];do u=u(a);while(u!==null)}}),Ao=null}catch(u){throw Ao!==null&&(Ao=Ao.slice(n+1)),Vb(Yv,Ka),u}finally{qb=!1}}}var uk="17.0.2",Ln=0,Vn=1,fi=2,Ls=4,Ni=8,Nz=16,zz=s.ReactCurrentBatchConfig,Iz=0;function Uz(){return zz.transition}var Ca={recordUnsafeLifecycleWarnings:function(n,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(n,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var Fz=function(n){for(var a=null,l=n;l!==null;)l.mode&Vn&&(a=l),l=l.return;return a},Os=function(n){var a=[];return n.forEach(function(l){a.push(l)}),a.sort().join(", ")},Dd=[],Pd=[],Ad=[],Nd=[],zd=[],Id=[],Ds=new Set;Ca.recordUnsafeLifecycleWarnings=function(n,a){Ds.has(n.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&Dd.push(n),n.mode&Vn&&typeof a.UNSAFE_componentWillMount=="function"&&Pd.push(n),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Ad.push(n),n.mode&Vn&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&Nd.push(n),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&zd.push(n),n.mode&Vn&&typeof a.UNSAFE_componentWillUpdate=="function"&&Id.push(n))},Ca.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;Dd.length>0&&(Dd.forEach(function(V){n.add(je(V.type)||"Component"),Ds.add(V.type)}),Dd=[]);var a=new Set;Pd.length>0&&(Pd.forEach(function(V){a.add(je(V.type)||"Component"),Ds.add(V.type)}),Pd=[]);var l=new Set;Ad.length>0&&(Ad.forEach(function(V){l.add(je(V.type)||"Component"),Ds.add(V.type)}),Ad=[]);var u=new Set;Nd.length>0&&(Nd.forEach(function(V){u.add(je(V.type)||"Component"),Ds.add(V.type)}),Nd=[]);var h=new Set;zd.length>0&&(zd.forEach(function(V){h.add(je(V.type)||"Component"),Ds.add(V.type)}),zd=[]);var g=new Set;if(Id.length>0&&(Id.forEach(function(V){g.add(je(V.type)||"Component"),Ds.add(V.type)}),Id=[]),a.size>0){var b=Os(a);d(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
19
-
20
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
21
-
22
- Please update the following components: %s`,b)}if(u.size>0){var S=Os(u);d(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
23
-
24
- * Move data fetching code or side effects to componentDidUpdate.
25
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
26
-
27
- Please update the following components: %s`,S)}if(g.size>0){var _=Os(g);d(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
28
-
29
- * Move data fetching code or side effects to componentDidUpdate.
30
-
31
- Please update the following components: %s`,_)}if(n.size>0){var N=Os(n);f(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
32
-
33
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
34
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
35
-
36
- Please update the following components: %s`,N)}if(l.size>0){var z=Os(l);f(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
37
-
38
- * Move data fetching code or side effects to componentDidUpdate.
39
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
40
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
41
-
42
- Please update the following components: %s`,z)}if(h.size>0){var ee=Os(h);f(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
43
-
44
- * Move data fetching code or side effects to componentDidUpdate.
45
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
46
-
47
- Please update the following components: %s`,ee)}};var Qv=new Map,ck=new Set;Ca.recordLegacyContextWarning=function(n,a){var l=Fz(n);if(l===null){d("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!ck.has(n.type)){var u=Qv.get(l);(n.type.contextTypes!=null||n.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(u===void 0&&(u=[],Qv.set(l,u)),u.push(n))}},Ca.flushLegacyContextWarning=function(){Qv.forEach(function(n,a){if(n.length!==0){var l=n[0],u=new Set;n.forEach(function(g){u.add(je(g.type)||"Component"),ck.add(g.type)});var h=Os(u);try{C(l),d(`Legacy context API has been detected within a strict-mode tree.
48
-
49
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
50
-
51
- Please update the following components: %s
52
-
53
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,h)}finally{x()}}})},Ca.discardPendingWarnings=function(){Dd=[],Pd=[],Ad=[],Nd=[],zd=[],Id=[],Qv=new Map}}function _a(n,a){if(n&&n.defaultProps){var l=t({},a),u=n.defaultProps;for(var h in u)l[h]===void 0&&(l[h]=u[h]);return l}return a}var Kv=1073741823,Gb=wl(null),Yb;Yb={};var Jv=null,vc=null,Xv=null,em=!1;function tm(){Jv=null,vc=null,Xv=null,em=!1}function fk(){em=!0}function dk(){em=!1}function pk(n,a){var l=n.type._context;Dr(Gb,l._currentValue,n),l._currentValue=a,l._currentRenderer!==void 0&&l._currentRenderer!==null&&l._currentRenderer!==Yb&&d("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer=Yb}function Zb(n){var a=Gb.current;Or(Gb,n);var l=n.type._context;l._currentValue=a}function jz(n,a,l){if(Ki(l,a))return 0;var u=typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):Kv;return(u&Kv)!==u&&d("calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",u),u|0}function hk(n,a){for(var l=n;l!==null;){var u=l.alternate;if(!Cs(l.childLanes,a))l.childLanes=$t(l.childLanes,a),u!==null&&(u.childLanes=$t(u.childLanes,a));else if(u!==null&&!Cs(u.childLanes,a))u.childLanes=$t(u.childLanes,a);else break;l=l.return}}function Bz(n,a,l,u){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var g=void 0,b=h.dependencies;if(b!==null){g=h.child;for(var S=b.firstContext;S!==null;){if(S.context===a&&(S.observedBits&l)!==0){if(h.tag===y){var _=_l(Hn,Qr(u));_.tag=nm,Ml(h,_)}h.lanes=$t(h.lanes,u);var N=h.alternate;N!==null&&(N.lanes=$t(N.lanes,u)),hk(h.return,u),b.lanes=$t(b.lanes,u);break}S=S.next}}else h.tag===D?g=h.type===n.type?null:h.child:g=h.child;if(g!==null)g.return=h;else for(g=h;g!==null;){if(g===n){g=null;break}var z=g.sibling;if(z!==null){z.return=g.return,g=z;break}g=g.return}h=g}}function mc(n,a){Jv=n,vc=null,Xv=null;var l=n.dependencies;if(l!==null){var u=l.firstContext;u!==null&&(Lr(l.lanes,a)&&rx(),l.firstContext=null)}}function ar(n,a){if(em&&d("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Xv!==n){if(!(a===!1||a===0)){var l;typeof a!="number"||a===Kv?(Xv=n,l=Kv):l=a;var u={context:n,observedBits:l,next:null};if(vc===null){if(Jv===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");vc=u,Jv.dependencies={lanes:be,firstContext:u,responders:null}}else vc=vc.next=u}}return n._currentValue}var vk=0,mk=1,nm=2,Qb=3,rm=!1,Kb,im;Kb=!1,im=null;function Jb(n){var a={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null};n.updateQueue=a}function gk(n,a){var l=a.updateQueue,u=n.updateQueue;if(l===u){var h={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects};a.updateQueue=h}}function _l(n,a){var l={eventTime:n,lane:a,tag:vk,payload:null,callback:null,next:null};return l}function Ml(n,a){var l=n.updateQueue;if(l!==null){var u=l.shared,h=u.pending;h===null?a.next=a:(a.next=h.next,h.next=a),u.pending=a,im===u&&!Kb&&(d("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Kb=!0)}}function yk(n,a){var l=n.updateQueue,u=n.alternate;if(u!==null){var h=u.updateQueue;if(l===h){var g=null,b=null,S=l.firstBaseUpdate;if(S!==null){var _=S;do{var N={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};b===null?g=b=N:(b.next=N,b=N),_=_.next}while(_!==null);b===null?g=b=a:(b.next=a,b=a)}else g=b=a;l={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:h.shared,effects:h.effects},n.updateQueue=l;return}}var z=l.lastBaseUpdate;z===null?l.firstBaseUpdate=a:z.next=a,l.lastBaseUpdate=a}function Hz(n,a,l,u,h,g){switch(l.tag){case mk:{var b=l.payload;if(typeof b=="function"){fk();var S=b.call(g,u,h);{if(n.mode&Vn){ii();try{b.call(g,u,h)}finally{ai()}}dk()}return S}return b}case Qb:n.flags=n.flags&~Ro|Sn;case vk:{var _=l.payload,N;if(typeof _=="function"){fk(),N=_.call(g,u,h);{if(n.mode&Vn){ii();try{_.call(g,u,h)}finally{ai()}}dk()}}else N=_;return N==null?u:t({},u,N)}case nm:return rm=!0,u}return u}function Ud(n,a,l,u){var h=n.updateQueue;rm=!1,im=h.shared;var g=h.firstBaseUpdate,b=h.lastBaseUpdate,S=h.shared.pending;if(S!==null){h.shared.pending=null;var _=S,N=_.next;_.next=null,b===null?g=N:b.next=N,b=_;var z=n.alternate;if(z!==null){var ee=z.updateQueue,V=ee.lastBaseUpdate;V!==b&&(V===null?ee.firstBaseUpdate=N:V.next=N,ee.lastBaseUpdate=_)}}if(g!==null){var oe=h.baseState,ge=be,De=null,et=null,ut=null,ot=g;do{var Dt=ot.lane,an=ot.eventTime;if(Cs(u,Dt)){if(ut!==null){var he={eventTime:an,lane:ui,tag:ot.tag,payload:ot.payload,callback:ot.callback,next:null};ut=ut.next=he}oe=Hz(n,h,ot,oe,a,l);var J=ot.callback;if(J!==null){n.flags|=V_;var Ee=h.effects;Ee===null?h.effects=[ot]:Ee.push(ot)}}else{var ie={eventTime:an,lane:Dt,tag:ot.tag,payload:ot.payload,callback:ot.callback,next:null};ut===null?(et=ut=ie,De=oe):ut=ut.next=ie,ge=$t(ge,Dt)}if(ot=ot.next,ot===null){if(S=h.shared.pending,S===null)break;var Fe=S,$e=Fe.next;Fe.next=null,ot=$e,h.lastBaseUpdate=Fe,h.shared.pending=null}}while(!0);ut===null&&(De=oe),h.baseState=De,h.firstBaseUpdate=et,h.lastBaseUpdate=ut,kx(ge),n.lanes=ge,n.memoizedState=oe}im=null}function Vz(n,a){if(typeof n!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+n);n.call(a)}function bk(){rm=!1}function am(){return rm}function xk(n,a,l){var u=a.effects;if(a.effects=null,u!==null)for(var h=0;h<u.length;h++){var g=u[h],b=g.callback;b!==null&&(g.callback=null,Vz(b,l))}}var Xb={},Wz=Array.isArray,Sk=new e.Component().refs,e1,t1,n1,r1,i1,Ek,om,a1,o1,l1;{e1=new Set,t1=new Set,n1=new Set,r1=new Set,a1=new Set,i1=new Set,o1=new Set,l1=new Set;var wk=new Set;om=function(n,a){if(!(n===null||typeof n=="function")){var l=a+"_"+n;wk.has(l)||(wk.add(l),d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n))}},Ek=function(n,a){if(a===void 0){var l=je(n)||"Component";i1.has(l)||(i1.add(l),d("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",l))}},Object.defineProperty(Xb,"_processChildContext",{enumerable:!1,value:function(){throw Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Xb)}function lm(n,a,l,u){var h=n.memoizedState;if(n.mode&Vn){ii();try{l(u,h)}finally{ai()}}var g=l(u,h);Ek(a,g);var b=g==null?h:t({},h,g);if(n.memoizedState=b,n.lanes===be){var S=n.updateQueue;S.baseState=b}}var s1={isMounted:FA,enqueueSetState:function(n,a,l){var u=Ku(n),h=Ii(),g=Ll(u),b=_l(h,g);b.payload=a,l!=null&&(om(l,"setState"),b.callback=l),Ml(u,b),Nr(u,g,h)},enqueueReplaceState:function(n,a,l){var u=Ku(n),h=Ii(),g=Ll(u),b=_l(h,g);b.tag=mk,b.payload=a,l!=null&&(om(l,"replaceState"),b.callback=l),Ml(u,b),Nr(u,g,h)},enqueueForceUpdate:function(n,a){var l=Ku(n),u=Ii(),h=Ll(l),g=_l(u,h);g.tag=nm,a!=null&&(om(a,"forceUpdate"),g.callback=a),Ml(l,g),Nr(l,h,u)}};function Ck(n,a,l,u,h,g,b){var S=n.stateNode;if(typeof S.shouldComponentUpdate=="function"){if(n.mode&Vn){ii();try{S.shouldComponentUpdate(u,g,b)}finally{ai()}}var _=S.shouldComponentUpdate(u,g,b);return _===void 0&&d("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",je(a)||"Component"),_}return a.prototype&&a.prototype.isPureReactComponent?!yd(l,u)||!yd(h,g):!0}function $z(n,a,l){var u=n.stateNode;{var h=je(a)||"Component",g=u.render;g||(a.prototype&&typeof a.prototype.render=="function"?d("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",h):d("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",h)),u.getInitialState&&!u.getInitialState.isReactClassApproved&&!u.state&&d("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",h),u.getDefaultProps&&!u.getDefaultProps.isReactClassApproved&&d("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",h),u.propTypes&&d("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",h),u.contextType&&d("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",h),u.contextTypes&&d("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",h),a.contextType&&a.contextTypes&&!o1.has(a)&&(o1.add(a),d("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",h)),typeof u.componentShouldUpdate=="function"&&d("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",h),a.prototype&&a.prototype.isPureReactComponent&&typeof u.shouldComponentUpdate<"u"&&d("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",je(a)||"A pure component"),typeof u.componentDidUnmount=="function"&&d("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",h),typeof u.componentDidReceiveProps=="function"&&d("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",h),typeof u.componentWillRecieveProps=="function"&&d("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",h),typeof u.UNSAFE_componentWillRecieveProps=="function"&&d("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",h);var b=u.props!==l;u.props!==void 0&&b&&d("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",h,h),u.defaultProps&&d("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",h,h),typeof u.getSnapshotBeforeUpdate=="function"&&typeof u.componentDidUpdate!="function"&&!n1.has(a)&&(n1.add(a),d("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",je(a))),typeof u.getDerivedStateFromProps=="function"&&d("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof u.getDerivedStateFromError=="function"&&d("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof a.getSnapshotBeforeUpdate=="function"&&d("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",h);var S=u.state;S&&(typeof S!="object"||Wz(S))&&d("%s.state: must be set to an object or null",h),typeof u.getChildContext=="function"&&typeof a.childContextTypes!="object"&&d("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",h)}}function _k(n,a){a.updater=s1,n.stateNode=a,DA(a,n),a._reactInternalInstance=Xb}function Mk(n,a,l){var u=!1,h=Ai,g=Ai,b=a.contextType;if("contextType"in a){var S=b===null||b!==void 0&&b.$$typeof===wu&&b._context===void 0;if(!S&&!l1.has(a)){l1.add(a);var _="";b===void 0?_=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof b!="object"?_=" However, it is set to a "+typeof b+".":b.$$typeof===Mi?_=" Did you accidentally pass the Context.Provider instead?":b._context!==void 0?_=" Did you accidentally pass the Context.Consumer instead?":_=" However, it is set to an object with keys {"+Object.keys(b).join(", ")+"}.",d("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",je(a)||"Component",_)}}if(typeof b=="object"&&b!==null)g=ar(b);else{h=fc(n,a,!0);var N=a.contextTypes;u=N!=null,g=u?dc(n,h):Ai}if(n.mode&Vn){ii();try{new a(l,g)}finally{ai()}}var z=new a(l,g),ee=n.memoizedState=z.state!==null&&z.state!==void 0?z.state:null;_k(n,z);{if(typeof a.getDerivedStateFromProps=="function"&&ee===null){var V=je(a)||"Component";t1.has(V)||(t1.add(V),d("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",V,z.state===null?"null":"undefined",V))}if(typeof a.getDerivedStateFromProps=="function"||typeof z.getSnapshotBeforeUpdate=="function"){var oe=null,ge=null,De=null;if(typeof z.componentWillMount=="function"&&z.componentWillMount.__suppressDeprecationWarning!==!0?oe="componentWillMount":typeof z.UNSAFE_componentWillMount=="function"&&(oe="UNSAFE_componentWillMount"),typeof z.componentWillReceiveProps=="function"&&z.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ge="componentWillReceiveProps":typeof z.UNSAFE_componentWillReceiveProps=="function"&&(ge="UNSAFE_componentWillReceiveProps"),typeof z.componentWillUpdate=="function"&&z.componentWillUpdate.__suppressDeprecationWarning!==!0?De="componentWillUpdate":typeof z.UNSAFE_componentWillUpdate=="function"&&(De="UNSAFE_componentWillUpdate"),oe!==null||ge!==null||De!==null){var et=je(a)||"Component",ut=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";r1.has(et)||(r1.add(et),d(`Unsafe legacy lifecycles will not be called for components using new component APIs.
54
-
55
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
56
-
57
- The above lifecycles should be removed. Learn more about this warning here:
58
- https://reactjs.org/link/unsafe-component-lifecycles`,et,ut,oe!==null?`
59
- `+oe:"",ge!==null?`
60
- `+ge:"",De!==null?`
61
- `+De:""))}}}return u&&$T(n,h,g),z}function qz(n,a){var l=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),l!==a.state&&(d("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",je(n.type)||"Component"),s1.enqueueReplaceState(a,a.state,null))}function Tk(n,a,l,u){var h=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,u),a.state!==h){{var g=je(n.type)||"Component";e1.has(g)||(e1.add(g),d("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",g))}s1.enqueueReplaceState(a,a.state,null)}}function u1(n,a,l,u){$z(n,a,l);var h=n.stateNode;h.props=l,h.state=n.memoizedState,h.refs=Sk,Jb(n);var g=a.contextType;if(typeof g=="object"&&g!==null)h.context=ar(g);else{var b=fc(n,a,!0);h.context=dc(n,b)}{if(h.state===l){var S=je(a)||"Component";a1.has(S)||(a1.add(S),d("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",S))}n.mode&Vn&&Ca.recordLegacyContextWarning(n,h),Ca.recordUnsafeLifecycleWarnings(n,h)}Ud(n,l,h,u),h.state=n.memoizedState;var _=a.getDerivedStateFromProps;typeof _=="function"&&(lm(n,a,_,l),h.state=n.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(qz(n,h),Ud(n,l,h,u),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=dn)}function Gz(n,a,l,u){var h=n.stateNode,g=n.memoizedProps;h.props=g;var b=h.context,S=a.contextType,_=Ai;if(typeof S=="object"&&S!==null)_=ar(S);else{var N=fc(n,a,!0);_=dc(n,N)}var z=a.getDerivedStateFromProps,ee=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function";!ee&&(typeof h.UNSAFE_componentWillReceiveProps=="function"||typeof h.componentWillReceiveProps=="function")&&(g!==l||b!==_)&&Tk(n,h,l,_),bk();var V=n.memoizedState,oe=h.state=V;if(Ud(n,l,h,u),oe=n.memoizedState,g===l&&V===oe&&!$v()&&!am())return typeof h.componentDidMount=="function"&&(n.flags|=dn),!1;typeof z=="function"&&(lm(n,a,z,l),oe=n.memoizedState);var ge=am()||Ck(n,a,g,l,V,oe,_);return ge?(!ee&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=dn)):(typeof h.componentDidMount=="function"&&(n.flags|=dn),n.memoizedProps=l,n.memoizedState=oe),h.props=l,h.state=oe,h.context=_,ge}function Yz(n,a,l,u,h){var g=a.stateNode;gk(n,a);var b=a.memoizedProps,S=a.type===a.elementType?b:_a(a.type,b);g.props=S;var _=a.pendingProps,N=g.context,z=l.contextType,ee=Ai;if(typeof z=="object"&&z!==null)ee=ar(z);else{var V=fc(a,l,!0);ee=dc(a,V)}var oe=l.getDerivedStateFromProps,ge=typeof oe=="function"||typeof g.getSnapshotBeforeUpdate=="function";!ge&&(typeof g.UNSAFE_componentWillReceiveProps=="function"||typeof g.componentWillReceiveProps=="function")&&(b!==_||N!==ee)&&Tk(a,g,u,ee),bk();var De=a.memoizedState,et=g.state=De;if(Ud(a,u,g,h),et=a.memoizedState,b===_&&De===et&&!$v()&&!am())return typeof g.componentDidUpdate=="function"&&(b!==n.memoizedProps||De!==n.memoizedState)&&(a.flags|=dn),typeof g.getSnapshotBeforeUpdate=="function"&&(b!==n.memoizedProps||De!==n.memoizedState)&&(a.flags|=bs),!1;typeof oe=="function"&&(lm(a,l,oe,u),et=a.memoizedState);var ut=am()||Ck(a,l,S,u,De,et,ee);return ut?(!ge&&(typeof g.UNSAFE_componentWillUpdate=="function"||typeof g.componentWillUpdate=="function")&&(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,et,ee),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,et,ee)),typeof g.componentDidUpdate=="function"&&(a.flags|=dn),typeof g.getSnapshotBeforeUpdate=="function"&&(a.flags|=bs)):(typeof g.componentDidUpdate=="function"&&(b!==n.memoizedProps||De!==n.memoizedState)&&(a.flags|=dn),typeof g.getSnapshotBeforeUpdate=="function"&&(b!==n.memoizedProps||De!==n.memoizedState)&&(a.flags|=bs),a.memoizedProps=u,a.memoizedState=et),g.props=u,g.state=et,g.context=ee,ut}var c1,f1,d1,p1,h1,kk=function(n,a){};c1=!1,f1=!1,d1={},p1={},h1={},kk=function(n,a){if(!(n===null||typeof n!="object")&&!(!n._store||n._store.validated||n.key!=null)){if(typeof n._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=!0;var l=je(a.type)||"Component";p1[l]||(p1[l]=!0,d('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var sm=Array.isArray;function Fd(n,a,l){var u=l.ref;if(u!==null&&typeof u!="function"&&typeof u!="object"){if((n.mode&Vn||ve)&&!(l._owner&&l._self&&l._owner.stateNode!==l._self)){var h=je(n.type)||"Component";d1[h]||(d('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',u),d1[h]=!0)}if(l._owner){var g=l._owner,b;if(g){var S=g;if(S.tag!==y)throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");b=S.stateNode}if(!b)throw Error("Missing owner for string ref "+u+". This error is likely caused by a bug in React. Please file an issue.");var _=""+u;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===_)return a.ref;var N=function(z){var ee=b.refs;ee===Sk&&(ee=b.refs={}),z===null?delete ee[_]:ee[_]=z};return N._stringRef=_,N}else{if(typeof u!="string")throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!l._owner)throw Error("Element ref was specified as a string ("+u+`) but no owner was set. This could happen for one of the following reasons:
62
- 1. You may be adding a ref to a function component
63
- 2. You may be adding a ref to a component that was not created inside a component's render method
64
- 3. You have multiple copies of React loaded
65
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return u}function um(n,a){if(n.type!=="textarea")throw Error("Objects are not valid as a React child (found: "+(Object.prototype.toString.call(a)==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}function cm(n){{var a=je(n.type)||"Component";if(h1[a])return;h1[a]=!0,d("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function Rk(n){function a(ie,he){if(!!n){var J=ie.lastEffect;J!==null?(J.nextEffect=he,ie.lastEffect=he):ie.firstEffect=ie.lastEffect=he,he.nextEffect=null,he.flags=To}}function l(ie,he){if(!n)return null;for(var J=he;J!==null;)a(ie,J),J=J.sibling;return null}function u(ie,he){for(var J=new Map,Ee=he;Ee!==null;)Ee.key!==null?J.set(Ee.key,Ee):J.set(Ee.index,Ee),Ee=Ee.sibling;return J}function h(ie,he){var J=Vs(ie,he);return J.index=0,J.sibling=null,J}function g(ie,he,J){if(ie.index=J,!n)return he;var Ee=ie.alternate;if(Ee!==null){var Fe=Ee.index;return Fe<he?(ie.flags=Qn,he):Fe}else return ie.flags=Qn,he}function b(ie){return n&&ie.alternate===null&&(ie.flags=Qn),ie}function S(ie,he,J,Ee){if(he===null||he.tag!==A){var Fe=Hx(J,ie.mode,Ee);return Fe.return=ie,Fe}else{var $e=h(he,J);return $e.return=ie,$e}}function _(ie,he,J,Ee){if(he!==null&&(he.elementType===J.type||cR(he,J))){var Fe=h(he,J.props);return Fe.ref=Fd(ie,he,J),Fe.return=ie,Fe._debugSource=J._source,Fe._debugOwner=J._owner,Fe}var $e=jx(J,ie.mode,Ee);return $e.ref=Fd(ie,he,J),$e.return=ie,$e}function N(ie,he,J,Ee){if(he===null||he.tag!==k||he.stateNode.containerInfo!==J.containerInfo||he.stateNode.implementation!==J.implementation){var Fe=Vx(J,ie.mode,Ee);return Fe.return=ie,Fe}else{var $e=h(he,J.children||[]);return $e.return=ie,$e}}function z(ie,he,J,Ee,Fe){if(he===null||he.tag!==W){var $e=Ws(J,ie.mode,Ee,Fe);return $e.return=ie,$e}else{var _t=h(he,J);return _t.return=ie,_t}}function ee(ie,he,J){if(typeof he=="string"||typeof he=="number"){var Ee=Hx(""+he,ie.mode,J);return Ee.return=ie,Ee}if(typeof he=="object"&&he!==null){switch(he.$$typeof){case jn:{var Fe=jx(he,ie.mode,J);return Fe.ref=Fd(ie,null,he),Fe.return=ie,Fe}case _i:{var $e=Vx(he,ie.mode,J);return $e.return=ie,$e}}if(sm(he)||Yi(he)){var _t=Ws(he,ie.mode,J,null);return _t.return=ie,_t}um(ie,he)}return typeof he=="function"&&cm(ie),null}function V(ie,he,J,Ee){var Fe=he!==null?he.key:null;if(typeof J=="string"||typeof J=="number")return Fe!==null?null:S(ie,he,""+J,Ee);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case jn:return J.key===Fe?J.type===Ia?z(ie,he,J.props.children,Ee,Fe):_(ie,he,J,Ee):null;case _i:return J.key===Fe?N(ie,he,J,Ee):null}if(sm(J)||Yi(J))return Fe!==null?null:z(ie,he,J,Ee,null);um(ie,J)}return typeof J=="function"&&cm(ie),null}function oe(ie,he,J,Ee,Fe){if(typeof Ee=="string"||typeof Ee=="number"){var $e=ie.get(J)||null;return S(he,$e,""+Ee,Fe)}if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case jn:{var _t=ie.get(Ee.key===null?J:Ee.key)||null;return Ee.type===Ia?z(he,_t,Ee.props.children,Fe,Ee.key):_(he,_t,Ee,Fe)}case _i:{var gn=ie.get(Ee.key===null?J:Ee.key)||null;return N(he,gn,Ee,Fe)}}if(sm(Ee)||Yi(Ee)){var On=ie.get(J)||null;return z(he,On,Ee,Fe,null)}um(he,Ee)}return typeof Ee=="function"&&cm(he),null}function ge(ie,he,J){{if(typeof ie!="object"||ie===null)return he;switch(ie.$$typeof){case jn:case _i:kk(ie,J);var Ee=ie.key;if(typeof Ee!="string")break;if(he===null){he=new Set,he.add(Ee);break}if(!he.has(Ee)){he.add(Ee);break}d("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",Ee);break}}return he}function De(ie,he,J,Ee){for(var Fe=null,$e=0;$e<J.length;$e++){var _t=J[$e];Fe=ge(_t,Fe,ie)}for(var gn=null,On=null,qt=he,or=0,Ut=0,Dn=null;qt!==null&&Ut<J.length;Ut++){qt.index>Ut?(Dn=qt,qt=null):Dn=qt.sibling;var vr=V(ie,qt,J[Ut],Ee);if(vr===null){qt===null&&(qt=Dn);break}n&&qt&&vr.alternate===null&&a(ie,qt),or=g(vr,or,Ut),On===null?gn=vr:On.sibling=vr,On=vr,qt=Dn}if(Ut===J.length)return l(ie,qt),gn;if(qt===null){for(;Ut<J.length;Ut++){var Kn=ee(ie,J[Ut],Ee);Kn!==null&&(or=g(Kn,or,Ut),On===null?gn=Kn:On.sibling=Kn,On=Kn)}return gn}for(var ro=u(ie,qt);Ut<J.length;Ut++){var Jn=oe(ro,ie,Ut,J[Ut],Ee);Jn!==null&&(n&&Jn.alternate!==null&&ro.delete(Jn.key===null?Ut:Jn.key),or=g(Jn,or,Ut),On===null?gn=Jn:On.sibling=Jn,On=Jn)}return n&&ro.forEach(function(io){return a(ie,io)}),gn}function et(ie,he,J,Ee){var Fe=Yi(J);if(typeof Fe!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&J[Symbol.toStringTag]==="Generator"&&(f1||d("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),f1=!0),J.entries===Fe&&(c1||d("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),c1=!0);var $e=Fe.call(J);if($e)for(var _t=null,gn=$e.next();!gn.done;gn=$e.next()){var On=gn.value;_t=ge(On,_t,ie)}}var qt=Fe.call(J);if(qt==null)throw Error("An iterable object provided no iterator.");for(var or=null,Ut=null,Dn=he,vr=0,Kn=0,ro=null,Jn=qt.next();Dn!==null&&!Jn.done;Kn++,Jn=qt.next()){Dn.index>Kn?(ro=Dn,Dn=null):ro=Dn.sibling;var io=V(ie,Dn,Jn.value,Ee);if(io===null){Dn===null&&(Dn=ro);break}n&&Dn&&io.alternate===null&&a(ie,Dn),vr=g(io,vr,Kn),Ut===null?or=io:Ut.sibling=io,Ut=io,Dn=ro}if(Jn.done)return l(ie,Dn),or;if(Dn===null){for(;!Jn.done;Kn++,Jn=qt.next()){var $s=ee(ie,Jn.value,Ee);$s!==null&&(vr=g($s,vr,Kn),Ut===null?or=$s:Ut.sibling=$s,Ut=$s)}return or}for(var Qx=u(ie,Dn);!Jn.done;Kn++,Jn=qt.next()){var Pl=oe(Qx,ie,Kn,Jn.value,Ee);Pl!==null&&(n&&Pl.alternate!==null&&Qx.delete(Pl.key===null?Kn:Pl.key),vr=g(Pl,vr,Kn),Ut===null?or=Pl:Ut.sibling=Pl,Ut=Pl)}return n&&Qx.forEach(function(QF){return a(ie,QF)}),or}function ut(ie,he,J,Ee){if(he!==null&&he.tag===A){l(ie,he.sibling);var Fe=h(he,J);return Fe.return=ie,Fe}l(ie,he);var $e=Hx(J,ie.mode,Ee);return $e.return=ie,$e}function ot(ie,he,J,Ee){for(var Fe=J.key,$e=he;$e!==null;){if($e.key===Fe){switch($e.tag){case W:{if(J.type===Ia){l(ie,$e.sibling);var _t=h($e,J.props.children);return _t.return=ie,_t._debugSource=J._source,_t._debugOwner=J._owner,_t}break}case K:default:{if($e.elementType===J.type||cR($e,J)){l(ie,$e.sibling);var gn=h($e,J.props);return gn.ref=Fd(ie,$e,J),gn.return=ie,gn._debugSource=J._source,gn._debugOwner=J._owner,gn}break}}l(ie,$e);break}else a(ie,$e);$e=$e.sibling}if(J.type===Ia){var On=Ws(J.props.children,ie.mode,Ee,J.key);return On.return=ie,On}else{var qt=jx(J,ie.mode,Ee);return qt.ref=Fd(ie,he,J),qt.return=ie,qt}}function Dt(ie,he,J,Ee){for(var Fe=J.key,$e=he;$e!==null;){if($e.key===Fe)if($e.tag===k&&$e.stateNode.containerInfo===J.containerInfo&&$e.stateNode.implementation===J.implementation){l(ie,$e.sibling);var _t=h($e,J.children||[]);return _t.return=ie,_t}else{l(ie,$e);break}else a(ie,$e);$e=$e.sibling}var gn=Vx(J,ie.mode,Ee);return gn.return=ie,gn}function an(ie,he,J,Ee){var Fe=typeof J=="object"&&J!==null&&J.type===Ia&&J.key===null;Fe&&(J=J.props.children);var $e=typeof J=="object"&&J!==null;if($e)switch(J.$$typeof){case jn:return b(ot(ie,he,J,Ee));case _i:return b(Dt(ie,he,J,Ee))}if(typeof J=="string"||typeof J=="number")return b(ut(ie,he,""+J,Ee));if(sm(J))return De(ie,he,J,Ee);if(Yi(J))return et(ie,he,J,Ee);if($e&&um(ie,J),typeof J=="function"&&cm(ie),typeof J>"u"&&!Fe)switch(ie.tag){case y:{var _t=ie.stateNode;if(_t.render._isMockFunction)break}case K:case m:case T:case F:throw Error((je(ie.type)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return l(ie,he)}return an}var fm=Rk(!0),Lk=Rk(!1);function Zz(n,a){if(!(n===null||a.child===n.child))throw Error("Resuming work not yet implemented.");if(a.child!==null){var l=a.child,u=Vs(l,l.pendingProps);for(a.child=u,u.return=a;l.sibling!==null;)l=l.sibling,u=u.sibling=Vs(l,l.pendingProps),u.return=a;u.sibling=null}}function Qz(n,a){for(var l=n.child;l!==null;)pF(l,a),l=l.sibling}var jd={},Tl=wl(jd),Bd=wl(jd),dm=wl(jd);function pm(n){if(n===jd)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return n}function Ok(){var n=pm(dm.current);return n}function v1(n,a){Dr(dm,a,n),Dr(Bd,n,n),Dr(Tl,jd,n);var l=LN(a);Or(Tl,n),Dr(Tl,l,n)}function gc(n){Or(Tl,n),Or(Bd,n),Or(dm,n)}function m1(){var n=pm(Tl.current);return n}function Dk(n){var a=pm(dm.current),l=pm(Tl.current),u=ON(l,n.type);l!==u&&(Dr(Bd,n,n),Dr(Tl,u,n))}function g1(n){Bd.current===n&&(Or(Tl,n),Or(Bd,n))}var Kz=0,Pk=1,y1=1,Hd=2,Ma=wl(Kz);function hm(n,a){return(n&a)!==0}function Vd(n){return n&Pk}function b1(n,a){return n&Pk|a}function Jz(n,a){return n|a}function Ps(n,a){Dr(Ma,a,n)}function yc(n){Or(Ma,n)}function Xz(n,a){var l=n.memoizedState;if(l!==null)return l.dehydrated!==null;var u=n.memoizedProps;return u.fallback===void 0?!1:u.unstable_avoidThisFallback!==!0?!0:!a}function vm(n){for(var a=n;a!==null;){if(a.tag===U){var l=a.memoizedState;if(l!==null){var u=l.dehydrated;if(u===null||tz(u)||nz(u))return a}}else if(a.tag===B&&a.memoizedProps.revealOrder!==void 0){var h=(a.flags&Sn)!==zn;if(h)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)return null;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var x1=0,bc=1,xc=2,Wd=4,Xi=null,As=null,kl=!1;function eI(n){var a=n.stateNode.containerInfo;return As=IT(a),Xi=n,kl=!0,!0}function Ak(n,a){switch(n.tag){case w:cz(n.stateNode.containerInfo,a);break;case O:fz(n.type,n.memoizedProps,n.stateNode,a);break}var l=bF();l.stateNode=a,l.return=n,l.flags=To,n.lastEffect!==null?(n.lastEffect.nextEffect=l,n.lastEffect=l):n.firstEffect=n.lastEffect=l}function Nk(n,a){switch(a.flags=a.flags&~ko|Qn,n.tag){case w:{var l=n.stateNode.containerInfo;switch(a.tag){case O:var u=a.type,h=a.pendingProps;dz(l,u);break;case A:var g=a.pendingProps;pz(l,g);break}break}case O:{var b=n.type,S=n.memoizedProps,_=n.stateNode;switch(a.tag){case O:var N=a.type,z=a.pendingProps;hz(b,S,_,N);break;case A:var ee=a.pendingProps;vz(b,S,_,ee);break;case U:mz(b,S);break}break}default:return}}function zk(n,a){switch(n.tag){case O:{var l=n.type,u=n.pendingProps,h=XN(a,l);return h!==null?(n.stateNode=h,!0):!1}case A:{var g=n.pendingProps,b=ez(a,g);return b!==null?(n.stateNode=b,!0):!1}case U:return!1;default:return!1}}function S1(n){if(!!kl){var a=As;if(!a){Nk(Xi,n),kl=!1,Xi=n;return}var l=a;if(!zk(n,a)){if(a=Uv(l),!a||!zk(n,a)){Nk(Xi,n),kl=!1,Xi=n;return}Ak(Xi,l)}Xi=n,As=IT(a)}}function tI(n,a,l){var u=n.stateNode,h=rz(u,n.type,n.memoizedProps,a,l,n);return n.updateQueue=h,h!==null}function nI(n){var a=n.stateNode,l=n.memoizedProps,u=iz(a,l,n);if(u){var h=Xi;if(h!==null)switch(h.tag){case w:{var g=h.stateNode.containerInfo;sz(g,a,l);break}case O:{var b=h.type,S=h.memoizedProps,_=h.stateNode;uz(b,S,_,a,l);break}}}return u}function rI(n){var a=n.memoizedState,l=a!==null?a.dehydrated:null;if(!l)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return az(l)}function Ik(n){for(var a=n.return;a!==null&&a.tag!==O&&a.tag!==w&&a.tag!==U;)a=a.return;Xi=a}function mm(n){if(n!==Xi)return!1;if(!kl)return Ik(n),kl=!0,!1;var a=n.type;if(n.tag!==O||a!=="head"&&a!=="body"&&!Pb(a,n.memoizedProps))for(var l=As;l;)Ak(n,l),l=Uv(l);return Ik(n),n.tag===U?As=rI(n):As=Xi?Uv(n.stateNode):null,!0}function E1(){Xi=null,As=null,kl=!1}function w1(){return kl}var $d=[],C1;C1={};function iI(n){$d.push(n)}function _1(){for(var n=0;n<$d.length;n++){var a=$d[n];a._workInProgressVersionPrimary=null}$d.length=0}function aI(n){return n._workInProgressVersionPrimary}function Uk(n,a){n._workInProgressVersionPrimary=a,$d.push(n)}function oI(n){n._currentPrimaryRenderer==null?n._currentPrimaryRenderer=C1:n._currentPrimaryRenderer!==C1&&d("Detected multiple renderers concurrently rendering the same mutable source. This is currently unsupported.")}var He=s.ReactCurrentDispatcher,ea=s.ReactCurrentBatchConfig,M1,T1;T1={},M1=new Set;var qd=be,pn=null,Ar=null,hr=null,gm=!1,Gd=!1,lI=25,xe=null,ta=null,Rl=-1,k1=!1;function rn(){{var n=xe;ta===null?ta=[n]:ta.push(n)}}function Ve(){{var n=xe;ta!==null&&(Rl++,ta[Rl]!==n&&sI(n))}}function Yd(n){n!=null&&!Array.isArray(n)&&d("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",xe,typeof n)}function sI(n){{var a=je(pn.type);if(!M1.has(a)&&(M1.add(a),ta!==null)){for(var l="",u=30,h=0;h<=Rl;h++){for(var g=ta[h],b=h===Rl?n:g,S=h+1+". "+g;S.length<u;)S+=" ";S+=b+`
66
- `,l+=S}d(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
67
-
68
- Previous render Next render
69
- ------------------------------------------------------
70
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
- `,a,l)}}}function di(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
72
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
73
- 2. You might be breaking the Rules of Hooks
74
- 3. You might have more than one copy of React in the same app
75
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function R1(n,a){if(k1)return!1;if(a===null)return d("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",xe),!1;n.length!==a.length&&d(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
76
-
77
- Previous: %s
78
- Incoming: %s`,xe,"["+a.join(", ")+"]","["+n.join(", ")+"]");for(var l=0;l<a.length&&l<n.length;l++)if(!Ki(n[l],a[l]))return!1;return!0}function Sc(n,a,l,u,h,g){qd=g,pn=a,ta=n!==null?n._debugHookTypes:null,Rl=-1,k1=n!==null&&n.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=be,n!==null&&n.memoizedState!==null?He.current=Xk:ta!==null?He.current=Jk:He.current=Kk;var b=l(u,h);if(Gd){var S=0;do{if(Gd=!1,!(S<lI))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");S+=1,k1=!1,Ar=null,hr=null,a.updateQueue=null,Rl=-1,He.current=e2,b=l(u,h)}while(Gd)}He.current=Rm,a._debugHookTypes=ta;var _=Ar!==null&&Ar.next!==null;if(qd=be,pn=null,Ar=null,hr=null,xe=null,ta=null,Rl=-1,gm=!1,_)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return b}function Fk(n,a,l){a.updateQueue=n.updateQueue,a.flags&=~(ed|dn),n.lanes=_v(n.lanes,l)}function jk(){if(He.current=Rm,gm){for(var n=pn.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}gm=!1}qd=be,pn=null,Ar=null,hr=null,ta=null,Rl=-1,xe=null,km=!1,Gd=!1}function Ns(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hr===null?pn.memoizedState=hr=n:hr=hr.next=n,hr}function zs(){var n;if(Ar===null){var a=pn.alternate;a!==null?n=a.memoizedState:n=null}else n=Ar.next;var l;if(hr===null?l=pn.memoizedState:l=hr.next,l!==null)hr=l,l=hr.next,Ar=n;else{if(n===null)throw Error("Rendered more hooks than during the previous render.");Ar=n;var u={memoizedState:Ar.memoizedState,baseState:Ar.baseState,baseQueue:Ar.baseQueue,queue:Ar.queue,next:null};hr===null?pn.memoizedState=hr=u:hr=hr.next=u}return hr}function uI(){return{lastEffect:null}}function ym(n,a){return typeof a=="function"?a(n):a}function L1(n,a,l){var u=Ns(),h;l!==void 0?h=l(a):h=a,u.memoizedState=u.baseState=h;var g=u.queue={pending:null,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},b=g.dispatch=V1.bind(null,pn,g);return[u.memoizedState,b]}function O1(n,a,l){var u=zs(),h=u.queue;if(h===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");h.lastRenderedReducer=n;var g=Ar,b=g.baseQueue,S=h.pending;if(S!==null){if(b!==null){var _=b.next,N=S.next;b.next=N,S.next=_}g.baseQueue!==b&&d("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),g.baseQueue=b=S,h.pending=null}if(b!==null){var z=b.next,ee=g.baseState,V=null,oe=null,ge=null,De=z;do{var et=De.lane;if(Cs(qd,et)){if(ge!==null){var ot={lane:ui,action:De.action,eagerReducer:De.eagerReducer,eagerState:De.eagerState,next:null};ge=ge.next=ot}if(De.eagerReducer===n)ee=De.eagerState;else{var Dt=De.action;ee=n(ee,Dt)}}else{var ut={lane:et,action:De.action,eagerReducer:De.eagerReducer,eagerState:De.eagerState,next:null};ge===null?(oe=ge=ut,V=ee):ge=ge.next=ut,pn.lanes=$t(pn.lanes,et),kx(et)}De=De.next}while(De!==null&&De!==z);ge===null?V=ee:ge.next=oe,Ki(ee,u.memoizedState)||rx(),u.memoizedState=ee,u.baseState=V,u.baseQueue=ge,h.lastRenderedState=ee}var an=h.dispatch;return[u.memoizedState,an]}function D1(n,a,l){var u=zs(),h=u.queue;if(h===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");h.lastRenderedReducer=n;var g=h.dispatch,b=h.pending,S=u.memoizedState;if(b!==null){h.pending=null;var _=b.next,N=_;do{var z=N.action;S=n(S,z),N=N.next}while(N!==_);Ki(S,u.memoizedState)||rx(),u.memoizedState=S,u.baseQueue===null&&(u.baseState=S),h.lastRenderedState=S}return[S,g]}function Bk(n,a,l){oI(a);var u=a._getVersion,h=u(a._source),g=!1,b=aI(a);if(b!==null?g=b===h:(g=Cs(qd,n.mutableReadLanes),g&&Uk(a,h)),g){var S=l(a._source);return typeof S=="function"&&d("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."),S}else throw iI(a),Error("Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue.")}function Hk(n,a,l,u){var h=yU();if(h===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var g=a._getVersion,b=g(a._source),S=He.current,_=S.useState(function(){return Bk(h,a,l)}),N=_[0],z=_[1],ee=N,V=hr,oe=n.memoizedState,ge=oe.refs,De=ge.getSnapshot,et=oe.source,ut=oe.subscribe,ot=pn;if(n.memoizedState={refs:ge,source:a,subscribe:u},S.useEffect(function(){ge.getSnapshot=l,ge.setSnapshot=z;var an=g(a._source);if(!Ki(b,an)){var ie=l(a._source);if(typeof ie=="function"&&d("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."),!Ki(ee,ie)){z(ie);var he=Ll(ot);PM(h,he)}_8(h,h.mutableReadLanes)}},[l,a,u]),S.useEffect(function(){var an=function(){var he=ge.getSnapshot,J=ge.setSnapshot;try{J(he(a._source));var Ee=Ll(ot);PM(h,Ee)}catch(Fe){J(function(){throw Fe})}},ie=u(a._source,an);return typeof ie!="function"&&d("Mutable source subscribe function must return an unsubscribe function."),ie},[a,u]),!Ki(De,l)||!Ki(et,a)||!Ki(ut,u)){var Dt={pending:null,dispatch:null,lastRenderedReducer:ym,lastRenderedState:ee};Dt.dispatch=z=V1.bind(null,pn,Dt),V.queue=Dt,V.baseQueue=null,ee=Bk(h,a,l),V.memoizedState=V.baseState=ee}return ee}function P1(n,a,l){var u=Ns();return u.memoizedState={refs:{getSnapshot:a,setSnapshot:null},source:n,subscribe:l},Hk(u,n,a,l)}function bm(n,a,l){var u=zs();return Hk(u,n,a,l)}function Is(n){var a=Ns();typeof n=="function"&&(n=n()),a.memoizedState=a.baseState=n;var l=a.queue={pending:null,dispatch:null,lastRenderedReducer:ym,lastRenderedState:n},u=l.dispatch=V1.bind(null,pn,l);return[a.memoizedState,u]}function Zd(n){return O1(ym)}function Qd(n){return D1(ym)}function xm(n,a,l,u){var h={tag:n,create:a,destroy:l,deps:u,next:null},g=pn.updateQueue;if(g===null)g=uI(),pn.updateQueue=g,g.lastEffect=h.next=h;else{var b=g.lastEffect;if(b===null)g.lastEffect=h.next=h;else{var S=b.next;b.next=h,h.next=S,g.lastEffect=h}}return h}function Sm(n){var a=Ns(),l={current:n};return Object.seal(l),a.memoizedState=l,l}function Ec(n){var a=zs();return a.memoizedState}function A1(n,a,l,u){var h=Ns(),g=u===void 0?null:u;pn.flags|=n,h.memoizedState=xm(bc|a,l,void 0,g)}function N1(n,a,l,u){var h=zs(),g=u===void 0?null:u,b=void 0;if(Ar!==null){var S=Ar.memoizedState;if(b=S.destroy,g!==null){var _=S.deps;if(R1(g,_)){xm(a,l,b,g);return}}}pn.flags|=n,h.memoizedState=xm(bc|a,l,b,g)}function Em(n,a){return typeof jest<"u"&&rR(pn),A1(dn|ed,Wd,n,a)}function wc(n,a){return typeof jest<"u"&&rR(pn),N1(dn|ed,Wd,n,a)}function z1(n,a){return A1(dn,xc,n,a)}function wm(n,a){return N1(dn,xc,n,a)}function Vk(n,a){if(typeof a=="function"){var l=a,u=n();return l(u),function(){l(null)}}else if(a!=null){var h=a;h.hasOwnProperty("current")||d("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(h).join(", ")+"}");var g=n();return h.current=g,function(){h.current=null}}}function I1(n,a,l){typeof a!="function"&&d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var u=l!=null?l.concat([n]):null;return A1(dn,xc,Vk.bind(null,a,n),u)}function Cm(n,a,l){typeof a!="function"&&d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var u=l!=null?l.concat([n]):null;return N1(dn,xc,Vk.bind(null,a,n),u)}function cI(n,a){}var _m=cI;function U1(n,a){var l=Ns(),u=a===void 0?null:a;return l.memoizedState=[n,u],n}function Mm(n,a){var l=zs(),u=a===void 0?null:a,h=l.memoizedState;if(h!==null&&u!==null){var g=h[1];if(R1(u,g))return h[0]}return l.memoizedState=[n,u],n}function F1(n,a){var l=Ns(),u=a===void 0?null:a,h=n();return l.memoizedState=[h,u],h}function Tm(n,a){var l=zs(),u=a===void 0?null:a,h=l.memoizedState;if(h!==null&&u!==null){var g=h[1];if(R1(u,g))return h[0]}var b=n();return l.memoizedState=[b,u],b}function j1(n){var a=Is(n),l=a[0],u=a[1];return Em(function(){var h=ea.transition;ea.transition=1;try{u(n)}finally{ea.transition=h}},[n]),l}function Wk(n){var a=Zd(),l=a[0],u=a[1];return wc(function(){var h=ea.transition;ea.transition=1;try{u(n)}finally{ea.transition=h}},[n]),l}function $k(n){var a=Qd(),l=a[0],u=a[1];return wc(function(){var h=ea.transition;ea.transition=1;try{u(n)}finally{ea.transition=h}},[n]),l}function fI(n,a){var l=hc();Rs(l<ks?ks:l,function(){n(!0)}),Rs(l>Po?Po:l,function(){var u=ea.transition;ea.transition=1;try{n(!1),a()}finally{ea.transition=u}})}function B1(){var n=Is(!1),a=n[0],l=n[1],u=fI.bind(null,l);return Sm(u),[u,a]}function qk(){var n=Zd(),a=n[0],l=Ec(),u=l.current;return[u,a]}function Gk(){var n=Qd(),a=n[0],l=Ec(),u=l.current;return[u,a]}var km=!1;function dI(){return km}function Yk(n){{var a=je(n.type)||"Unknown";X()&&!T1[a]&&(d("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly."),T1[a]=!0)}}function H1(){var n=yz.bind(null,Yk.bind(null,pn));if(w1()){var a=!1,l=pn,u=function(){throw a||(a=!0,km=!0,g(n()),km=!1,Yk(l)),Error("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly.")},h=xz(u),g=Is(h)[1];return(pn.mode&fi)===Ln&&(pn.flags|=dn|ed,xm(bc|Wd,function(){g(n())},void 0,null)),h}else{var b=n();return Is(b),b}}function Zk(){var n=Zd()[0];return n}function Qk(){var n=Qd()[0];return n}function V1(n,a,l){typeof arguments[3]=="function"&&d("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var u=Ii(),h=Ll(n),g={lane:h,action:l,eagerReducer:null,eagerState:null,next:null},b=a.pending;b===null?g.next=g:(g.next=b.next,b.next=g),a.pending=g;var S=n.alternate;if(n===pn||S!==null&&S===pn)Gd=gm=!0;else{if(n.lanes===be&&(S===null||S.lanes===be)){var _=a.lastRenderedReducer;if(_!==null){var N;N=He.current,He.current=Ta;try{var z=a.lastRenderedState,ee=_(z,l);if(g.eagerReducer=_,g.eagerState=ee,Ki(ee,z))return}catch{}finally{He.current=N}}}typeof jest<"u"&&(nR(n),eF(n)),Nr(n,h,u)}}var Rm={readContext:ar,useCallback:di,useContext:di,useEffect:di,useImperativeHandle:di,useLayoutEffect:di,useMemo:di,useReducer:di,useRef:di,useState:di,useDebugValue:di,useDeferredValue:di,useTransition:di,useMutableSource:di,useOpaqueIdentifier:di,unstable_isNewReconciler:de},Kk=null,Jk=null,Xk=null,e2=null,Ja=null,Ta=null,Lm=null;{var W1=function(){d("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},pt=function(){d("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Kk={readContext:function(n,a){return ar(n,a)},useCallback:function(n,a){return xe="useCallback",rn(),Yd(a),U1(n,a)},useContext:function(n,a){return xe="useContext",rn(),ar(n,a)},useEffect:function(n,a){return xe="useEffect",rn(),Yd(a),Em(n,a)},useImperativeHandle:function(n,a,l){return xe="useImperativeHandle",rn(),Yd(l),I1(n,a,l)},useLayoutEffect:function(n,a){return xe="useLayoutEffect",rn(),Yd(a),z1(n,a)},useMemo:function(n,a){xe="useMemo",rn(),Yd(a);var l=He.current;He.current=Ja;try{return F1(n,a)}finally{He.current=l}},useReducer:function(n,a,l){xe="useReducer",rn();var u=He.current;He.current=Ja;try{return L1(n,a,l)}finally{He.current=u}},useRef:function(n){return xe="useRef",rn(),Sm(n)},useState:function(n){xe="useState",rn();var a=He.current;He.current=Ja;try{return Is(n)}finally{He.current=a}},useDebugValue:function(n,a){return xe="useDebugValue",rn(),void 0},useDeferredValue:function(n){return xe="useDeferredValue",rn(),j1(n)},useTransition:function(){return xe="useTransition",rn(),B1()},useMutableSource:function(n,a,l){return xe="useMutableSource",rn(),P1(n,a,l)},useOpaqueIdentifier:function(){return xe="useOpaqueIdentifier",rn(),H1()},unstable_isNewReconciler:de},Jk={readContext:function(n,a){return ar(n,a)},useCallback:function(n,a){return xe="useCallback",Ve(),U1(n,a)},useContext:function(n,a){return xe="useContext",Ve(),ar(n,a)},useEffect:function(n,a){return xe="useEffect",Ve(),Em(n,a)},useImperativeHandle:function(n,a,l){return xe="useImperativeHandle",Ve(),I1(n,a,l)},useLayoutEffect:function(n,a){return xe="useLayoutEffect",Ve(),z1(n,a)},useMemo:function(n,a){xe="useMemo",Ve();var l=He.current;He.current=Ja;try{return F1(n,a)}finally{He.current=l}},useReducer:function(n,a,l){xe="useReducer",Ve();var u=He.current;He.current=Ja;try{return L1(n,a,l)}finally{He.current=u}},useRef:function(n){return xe="useRef",Ve(),Sm(n)},useState:function(n){xe="useState",Ve();var a=He.current;He.current=Ja;try{return Is(n)}finally{He.current=a}},useDebugValue:function(n,a){return xe="useDebugValue",Ve(),void 0},useDeferredValue:function(n){return xe="useDeferredValue",Ve(),j1(n)},useTransition:function(){return xe="useTransition",Ve(),B1()},useMutableSource:function(n,a,l){return xe="useMutableSource",Ve(),P1(n,a,l)},useOpaqueIdentifier:function(){return xe="useOpaqueIdentifier",Ve(),H1()},unstable_isNewReconciler:de},Xk={readContext:function(n,a){return ar(n,a)},useCallback:function(n,a){return xe="useCallback",Ve(),Mm(n,a)},useContext:function(n,a){return xe="useContext",Ve(),ar(n,a)},useEffect:function(n,a){return xe="useEffect",Ve(),wc(n,a)},useImperativeHandle:function(n,a,l){return xe="useImperativeHandle",Ve(),Cm(n,a,l)},useLayoutEffect:function(n,a){return xe="useLayoutEffect",Ve(),wm(n,a)},useMemo:function(n,a){xe="useMemo",Ve();var l=He.current;He.current=Ta;try{return Tm(n,a)}finally{He.current=l}},useReducer:function(n,a,l){xe="useReducer",Ve();var u=He.current;He.current=Ta;try{return O1(n,a,l)}finally{He.current=u}},useRef:function(n){return xe="useRef",Ve(),Ec()},useState:function(n){xe="useState",Ve();var a=He.current;He.current=Ta;try{return Zd(n)}finally{He.current=a}},useDebugValue:function(n,a){return xe="useDebugValue",Ve(),_m()},useDeferredValue:function(n){return xe="useDeferredValue",Ve(),Wk(n)},useTransition:function(){return xe="useTransition",Ve(),qk()},useMutableSource:function(n,a,l){return xe="useMutableSource",Ve(),bm(n,a,l)},useOpaqueIdentifier:function(){return xe="useOpaqueIdentifier",Ve(),Zk()},unstable_isNewReconciler:de},e2={readContext:function(n,a){return ar(n,a)},useCallback:function(n,a){return xe="useCallback",Ve(),Mm(n,a)},useContext:function(n,a){return xe="useContext",Ve(),ar(n,a)},useEffect:function(n,a){return xe="useEffect",Ve(),wc(n,a)},useImperativeHandle:function(n,a,l){return xe="useImperativeHandle",Ve(),Cm(n,a,l)},useLayoutEffect:function(n,a){return xe="useLayoutEffect",Ve(),wm(n,a)},useMemo:function(n,a){xe="useMemo",Ve();var l=He.current;He.current=Lm;try{return Tm(n,a)}finally{He.current=l}},useReducer:function(n,a,l){xe="useReducer",Ve();var u=He.current;He.current=Lm;try{return D1(n,a,l)}finally{He.current=u}},useRef:function(n){return xe="useRef",Ve(),Ec()},useState:function(n){xe="useState",Ve();var a=He.current;He.current=Lm;try{return Qd(n)}finally{He.current=a}},useDebugValue:function(n,a){return xe="useDebugValue",Ve(),_m()},useDeferredValue:function(n){return xe="useDeferredValue",Ve(),$k(n)},useTransition:function(){return xe="useTransition",Ve(),Gk()},useMutableSource:function(n,a,l){return xe="useMutableSource",Ve(),bm(n,a,l)},useOpaqueIdentifier:function(){return xe="useOpaqueIdentifier",Ve(),Qk()},unstable_isNewReconciler:de},Ja={readContext:function(n,a){return W1(),ar(n,a)},useCallback:function(n,a){return xe="useCallback",pt(),rn(),U1(n,a)},useContext:function(n,a){return xe="useContext",pt(),rn(),ar(n,a)},useEffect:function(n,a){return xe="useEffect",pt(),rn(),Em(n,a)},useImperativeHandle:function(n,a,l){return xe="useImperativeHandle",pt(),rn(),I1(n,a,l)},useLayoutEffect:function(n,a){return xe="useLayoutEffect",pt(),rn(),z1(n,a)},useMemo:function(n,a){xe="useMemo",pt(),rn();var l=He.current;He.current=Ja;try{return F1(n,a)}finally{He.current=l}},useReducer:function(n,a,l){xe="useReducer",pt(),rn();var u=He.current;He.current=Ja;try{return L1(n,a,l)}finally{He.current=u}},useRef:function(n){return xe="useRef",pt(),rn(),Sm(n)},useState:function(n){xe="useState",pt(),rn();var a=He.current;He.current=Ja;try{return Is(n)}finally{He.current=a}},useDebugValue:function(n,a){return xe="useDebugValue",pt(),rn(),void 0},useDeferredValue:function(n){return xe="useDeferredValue",pt(),rn(),j1(n)},useTransition:function(){return xe="useTransition",pt(),rn(),B1()},useMutableSource:function(n,a,l){return xe="useMutableSource",pt(),rn(),P1(n,a,l)},useOpaqueIdentifier:function(){return xe="useOpaqueIdentifier",pt(),rn(),H1()},unstable_isNewReconciler:de},Ta={readContext:function(n,a){return W1(),ar(n,a)},useCallback:function(n,a){return xe="useCallback",pt(),Ve(),Mm(n,a)},useContext:function(n,a){return xe="useContext",pt(),Ve(),ar(n,a)},useEffect:function(n,a){return xe="useEffect",pt(),Ve(),wc(n,a)},useImperativeHandle:function(n,a,l){return xe="useImperativeHandle",pt(),Ve(),Cm(n,a,l)},useLayoutEffect:function(n,a){return xe="useLayoutEffect",pt(),Ve(),wm(n,a)},useMemo:function(n,a){xe="useMemo",pt(),Ve();var l=He.current;He.current=Ta;try{return Tm(n,a)}finally{He.current=l}},useReducer:function(n,a,l){xe="useReducer",pt(),Ve();var u=He.current;He.current=Ta;try{return O1(n,a,l)}finally{He.current=u}},useRef:function(n){return xe="useRef",pt(),Ve(),Ec()},useState:function(n){xe="useState",pt(),Ve();var a=He.current;He.current=Ta;try{return Zd(n)}finally{He.current=a}},useDebugValue:function(n,a){return xe="useDebugValue",pt(),Ve(),_m()},useDeferredValue:function(n){return xe="useDeferredValue",pt(),Ve(),Wk(n)},useTransition:function(){return xe="useTransition",pt(),Ve(),qk()},useMutableSource:function(n,a,l){return xe="useMutableSource",pt(),Ve(),bm(n,a,l)},useOpaqueIdentifier:function(){return xe="useOpaqueIdentifier",pt(),Ve(),Zk()},unstable_isNewReconciler:de},Lm={readContext:function(n,a){return W1(),ar(n,a)},useCallback:function(n,a){return xe="useCallback",pt(),Ve(),Mm(n,a)},useContext:function(n,a){return xe="useContext",pt(),Ve(),ar(n,a)},useEffect:function(n,a){return xe="useEffect",pt(),Ve(),wc(n,a)},useImperativeHandle:function(n,a,l){return xe="useImperativeHandle",pt(),Ve(),Cm(n,a,l)},useLayoutEffect:function(n,a){return xe="useLayoutEffect",pt(),Ve(),wm(n,a)},useMemo:function(n,a){xe="useMemo",pt(),Ve();var l=He.current;He.current=Ta;try{return Tm(n,a)}finally{He.current=l}},useReducer:function(n,a,l){xe="useReducer",pt(),Ve();var u=He.current;He.current=Ta;try{return D1(n,a,l)}finally{He.current=u}},useRef:function(n){return xe="useRef",pt(),Ve(),Ec()},useState:function(n){xe="useState",pt(),Ve();var a=He.current;He.current=Ta;try{return Qd(n)}finally{He.current=a}},useDebugValue:function(n,a){return xe="useDebugValue",pt(),Ve(),_m()},useDeferredValue:function(n){return xe="useDeferredValue",pt(),Ve(),$k(n)},useTransition:function(){return xe="useTransition",pt(),Ve(),Gk()},useMutableSource:function(n,a,l){return xe="useMutableSource",pt(),Ve(),bm(n,a,l)},useOpaqueIdentifier:function(){return xe="useOpaqueIdentifier",pt(),Ve(),Qk()},unstable_isNewReconciler:de}}var Om=r.unstable_now,t2=0,Kd=-1;function pI(){return t2}function n2(){t2=Om()}function $1(n){Kd=Om(),n.actualStartTime<0&&(n.actualStartTime=Om())}function r2(n){Kd=-1}function Dm(n,a){if(Kd>=0){var l=Om()-Kd;n.actualDuration+=l,a&&(n.selfBaseDuration=l),Kd=-1}}function q1(n){for(var a=n.child;a;)n.actualDuration+=a.actualDuration,a=a.sibling}var Jd=s.ReactCurrentOwner,Xa=!1,G1,Xd,Y1,Z1,Q1,Us,K1,Pm;G1={},Xd={},Y1={},Z1={},Q1={},Us=!1,K1={},Pm={};function pi(n,a,l,u){n===null?a.child=Lk(a,null,l,u):a.child=fm(a,n.child,l,u)}function hI(n,a,l,u){a.child=fm(a,n.child,null,u),a.child=fm(a,null,l,u)}function i2(n,a,l,u,h){if(a.type!==a.elementType){var g=l.propTypes;g&&Ea(g,u,"prop",je(l))}var b=l.render,S=a.ref,_;mc(a,h);{if(Jd.current=a,I(!0),_=Sc(n,a,b,u,S,h),a.mode&Vn){ii();try{_=Sc(n,a,b,u,S,h)}finally{ai()}}I(!1)}return n!==null&&!Xa?(Fk(n,a,h),No(n,a,h)):(a.flags|=yl,pi(n,a,_,h),a.child)}function a2(n,a,l,u,h,g){if(n===null){var b=l.type;if(fF(b)&&l.compare===null&&l.defaultProps===void 0){var S=b;return S=Oc(b),a.tag=F,a.type=S,tx(a,b),o2(n,a,S,u,h,g)}{var _=b.propTypes;_&&Ea(_,u,"prop",je(b))}var N=Fx(l.type,null,u,a,a.mode,g);return N.ref=a.ref,N.return=a,a.child=N,N}{var z=l.type,ee=z.propTypes;ee&&Ea(ee,u,"prop",je(z))}var V=n.child;if(!Lr(h,g)){var oe=V.memoizedProps,ge=l.compare;if(ge=ge!==null?ge:yd,ge(oe,u)&&n.ref===a.ref)return No(n,a,g)}a.flags|=yl;var De=Vs(V,u);return De.ref=a.ref,De.return=a,a.child=De,De}function o2(n,a,l,u,h,g){if(a.type!==a.elementType){var b=a.elementType;if(b.$$typeof===Gi){var S=b,_=S._payload,N=S._init;try{b=N(_)}catch{b=null}var z=b&&b.propTypes;z&&Ea(z,u,"prop",je(b))}}if(n!==null){var ee=n.memoizedProps;if(yd(ee,u)&&n.ref===a.ref&&a.type===n.type)if(Xa=!1,Lr(g,h))(n.flags&tb)!==zn&&(Xa=!0);else return a.lanes=n.lanes,No(n,a,g)}return X1(n,a,l,u,g)}function J1(n,a,l){var u=a.pendingProps,h=u.children,g=n!==null?n.memoizedState:null;if(u.mode==="hidden"||u.mode==="unstable-defer-without-hiding")if((a.mode&Ls)===Ln){var b={baseLanes:be};a.memoizedState=b,Zm(a,l)}else if(Lr(l,Ya)){var z={baseLanes:be};a.memoizedState=z;var ee=g!==null?g.baseLanes:l;Zm(a,ee)}else{var S;if(g!==null){var _=g.baseLanes;S=$t(_,l)}else S=l;tg(Ya),a.lanes=a.childLanes=Ya;var N={baseLanes:S};return a.memoizedState=N,Zm(a,S),null}else{var V;g!==null?(V=$t(g.baseLanes,l),a.memoizedState=null):V=l,Zm(a,V)}return pi(n,a,h,l),a.child}var vI=J1;function mI(n,a,l){var u=a.pendingProps;return pi(n,a,u,l),a.child}function gI(n,a,l){var u=a.pendingProps.children;return pi(n,a,u,l),a.child}function yI(n,a,l){{a.flags|=dn;var u=a.stateNode;u.effectDuration=0,u.passiveEffectDuration=0}var h=a.pendingProps,g=h.children;return pi(n,a,g,l),a.child}function l2(n,a){var l=a.ref;(n===null&&l!==null||n!==null&&n.ref!==l)&&(a.flags|=hv)}function X1(n,a,l,u,h){if(a.type!==a.elementType){var g=l.propTypes;g&&Ea(g,u,"prop",je(l))}var b;{var S=fc(a,l,!0);b=dc(a,S)}var _;mc(a,h);{if(Jd.current=a,I(!0),_=Sc(n,a,l,u,b,h),a.mode&Vn){ii();try{_=Sc(n,a,l,u,b,h)}finally{ai()}}I(!1)}return n!==null&&!Xa?(Fk(n,a,h),No(n,a,h)):(a.flags|=yl,pi(n,a,_,h),a.child)}function s2(n,a,l,u,h){if(a.type!==a.elementType){var g=l.propTypes;g&&Ea(g,u,"prop",je(l))}var b;Qa(l)?(b=!0,Gv(a)):b=!1,mc(a,h);var S=a.stateNode,_;S===null?(n!==null&&(n.alternate=null,a.alternate=null,a.flags|=Qn),Mk(a,l,u),u1(a,l,u,h),_=!0):n===null?_=Gz(a,l,u,h):_=Yz(n,a,l,u,h);var N=ex(n,a,l,_,b,h);{var z=a.stateNode;_&&z.props!==u&&(Us||d("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",je(a.type)||"a component"),Us=!0)}return N}function ex(n,a,l,u,h,g){l2(n,a);var b=(a.flags&Sn)!==zn;if(!u&&!b)return h&&YT(a,l,!1),No(n,a,g);var S=a.stateNode;Jd.current=a;var _;if(b&&typeof l.getDerivedStateFromError!="function")_=null,r2();else{if(I(!0),_=S.render(),a.mode&Vn){ii();try{S.render()}finally{ai()}}I(!1)}return a.flags|=yl,n!==null&&b?hI(n,a,_,g):pi(n,a,_,g),a.memoizedState=S.state,h&&YT(a,l,!0),a.child}function u2(n){var a=n.stateNode;a.pendingContext?qT(n,a.pendingContext,a.pendingContext!==a.context):a.context&&qT(n,a.context,!1),v1(n,a.containerInfo)}function bI(n,a,l){u2(a);var u=a.updateQueue;if(!(n!==null&&u!==null))throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.");var h=a.pendingProps,g=a.memoizedState,b=g!==null?g.element:null;gk(n,a),Ud(a,h,null,l);var S=a.memoizedState,_=S.element;if(_===b)return E1(),No(n,a,l);var N=a.stateNode;if(N.hydrate&&eI(a)){{var z=N.mutableSourceEagerHydrationData;if(z!=null)for(var ee=0;ee<z.length;ee+=2){var V=z[ee],oe=z[ee+1];Uk(V,oe)}}var ge=Lk(a,null,_,l);a.child=ge;for(var De=ge;De;)De.flags=De.flags&~Qn|ko,De=De.sibling}else pi(n,a,_,l),E1();return a.child}function xI(n,a,l){Dk(a),n===null&&S1(a);var u=a.type,h=a.pendingProps,g=n!==null?n.memoizedProps:null,b=h.children,S=Pb(u,h);return S?b=null:g!==null&&Pb(u,g)&&(a.flags|=pv),l2(n,a),pi(n,a,b,l),a.child}function SI(n,a){return n===null&&S1(a),null}function EI(n,a,l,u,h){n!==null&&(n.alternate=null,a.alternate=null,a.flags|=Qn);var g=a.pendingProps,b=l,S=b._payload,_=b._init,N=_(S);a.type=N;var z=a.tag=dF(N),ee=_a(N,g),V;switch(z){case m:return tx(a,N),a.type=N=Oc(N),V=X1(null,a,N,ee,h),V;case y:return a.type=N=Px(N),V=s2(null,a,N,ee,h),V;case T:return a.type=N=Ax(N),V=i2(null,a,N,ee,h),V;case Y:{if(a.type!==a.elementType){var oe=N.propTypes;oe&&Ea(oe,ee,"prop",je(N))}return V=a2(null,a,N,_a(N.type,ee),u,h),V}}var ge="";throw N!==null&&typeof N=="object"&&N.$$typeof===Gi&&(ge=" Did you wrap a component in React.lazy() more than once?"),Error("Element type is invalid. Received a promise that resolves to: "+N+". Lazy element type must resolve to a class or function."+ge)}function wI(n,a,l,u,h){n!==null&&(n.alternate=null,a.alternate=null,a.flags|=Qn),a.tag=y;var g;return Qa(l)?(g=!0,Gv(a)):g=!1,mc(a,h),Mk(a,l,u),u1(a,l,u,h),ex(null,a,l,!0,g,h)}function CI(n,a,l,u){n!==null&&(n.alternate=null,a.alternate=null,a.flags|=Qn);var h=a.pendingProps,g;{var b=fc(a,l,!1);g=dc(a,b)}mc(a,u);var S;{if(l.prototype&&typeof l.prototype.render=="function"){var _=je(l)||"Unknown";G1[_]||(d("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",_,_),G1[_]=!0)}a.mode&Vn&&Ca.recordLegacyContextWarning(a,null),I(!0),Jd.current=a,S=Sc(null,a,l,h,g,u),I(!1)}if(a.flags|=yl,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){var N=je(l)||"Unknown";Xd[N]||(d("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",N,N,N),Xd[N]=!0)}if(typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0){{var z=je(l)||"Unknown";Xd[z]||(d("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",z,z,z),Xd[z]=!0)}a.tag=y,a.memoizedState=null,a.updateQueue=null;var ee=!1;Qa(l)?(ee=!0,Gv(a)):ee=!1,a.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Jb(a);var V=l.getDerivedStateFromProps;return typeof V=="function"&&lm(a,l,V,h),_k(a,S),u1(a,l,h,u),ex(null,a,l,!0,ee,u)}else{if(a.tag=m,a.mode&Vn){ii();try{S=Sc(null,a,l,h,g,u)}finally{ai()}}return pi(null,a,S,u),tx(a,l),a.child}}function tx(n,a){{if(a&&a.childContextTypes&&d("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),n.ref!==null){var l="",u=ul();u&&(l+=`
79
-
80
- Check the render method of \``+u+"`.");var h=u||n._debugID||"",g=n._debugSource;g&&(h=g.fileName+":"+g.lineNumber),Q1[h]||(Q1[h]=!0,d("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",l))}if(typeof a.getDerivedStateFromProps=="function"){var b=je(a)||"Unknown";Z1[b]||(d("%s: Function components do not support getDerivedStateFromProps.",b),Z1[b]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var S=je(a)||"Unknown";Y1[S]||(d("%s: Function components do not support contextType.",S),Y1[S]=!0)}}}var Am={dehydrated:null,retryLane:ui};function Nm(n){return{baseLanes:n}}function c2(n,a){return{baseLanes:$t(n.baseLanes,a)}}function _I(n,a,l,u){if(a!==null){var h=a.memoizedState;if(h===null)return!1}return hm(n,Hd)}function f2(n,a){return _v(n.childLanes,a)}function d2(n,a,l){var u=a.pendingProps;OF(a)&&(a.flags|=Sn);var h=Ma.current,g=!1,b=(a.flags&Sn)!==zn;if(b||_I(h,n)?(g=!0,a.flags&=~Sn):(n===null||n.memoizedState!==null)&&u.fallback!==void 0&&u.unstable_avoidThisFallback!==!0&&(h=Jz(h,y1)),h=Vd(h),Ps(a,h),n===null){u.fallback!==void 0&&S1(a);var S=u.children,_=u.fallback;if(g){var N=p2(a,S,_,l),z=a.child;return z.memoizedState=Nm(l),a.memoizedState=Am,N}else if(typeof u.unstable_expectedLoadTime=="number"){var ee=p2(a,S,_,l),V=a.child;return V.memoizedState=Nm(l),a.memoizedState=Am,a.lanes=nc,tg(nc),ee}else return MI(a,S,l)}else{var oe=n.memoizedState;if(oe!==null)if(g){var ge=u.fallback,De=u.children,et=m2(n,a,De,ge,l),ut=a.child,ot=n.child.memoizedState;return ut.memoizedState=ot===null?Nm(l):c2(ot,l),ut.childLanes=f2(n,l),a.memoizedState=Am,et}else{var Dt=u.children,an=v2(n,a,Dt,l);return a.memoizedState=null,an}else if(g){var ie=u.fallback,he=u.children,J=m2(n,a,he,ie,l),Ee=a.child,Fe=n.child.memoizedState;return Ee.memoizedState=Fe===null?Nm(l):c2(Fe,l),Ee.childLanes=f2(n,l),a.memoizedState=Am,J}else{var $e=u.children,_t=v2(n,a,$e,l);return a.memoizedState=null,_t}}}function MI(n,a,l){var u=n.mode,h={mode:"visible",children:a},g=Bx(h,u,l,null);return g.return=n,n.child=g,g}function p2(n,a,l,u){var h=n.mode,g=n.child,b={mode:"hidden",children:a},S,_;return(h&fi)===Ln&&g!==null?(S=g,S.childLanes=be,S.pendingProps=b,n.mode&Ni&&(S.actualDuration=0,S.actualStartTime=-1,S.selfBaseDuration=0,S.treeBaseDuration=0),_=Ws(l,h,u,null)):(S=Bx(b,h,be,null),_=Ws(l,h,u,null)),S.return=n,_.return=n,S.sibling=_,n.child=S,_}function h2(n,a){return Vs(n,a)}function v2(n,a,l,u){var h=n.child,g=h.sibling,b=h2(h,{mode:"visible",children:l});return(a.mode&fi)===Ln&&(b.lanes=u),b.return=a,b.sibling=null,g!==null&&(g.nextEffect=null,g.flags=To,a.firstEffect=a.lastEffect=g),a.child=b,b}function m2(n,a,l,u,h){var g=a.mode,b=n.child,S=b.sibling,_={mode:"hidden",children:l},N;if((g&fi)===Ln&&a.child!==b){var z=a.child;N=z,N.childLanes=be,N.pendingProps=_,a.mode&Ni&&(N.actualDuration=0,N.actualStartTime=-1,N.selfBaseDuration=b.selfBaseDuration,N.treeBaseDuration=b.treeBaseDuration);var ee=N.lastEffect;ee!==null?(a.firstEffect=N.firstEffect,a.lastEffect=ee,ee.nextEffect=null):a.firstEffect=a.lastEffect=null}else N=h2(b,_);var V;return S!==null?V=Vs(S,u):(V=Ws(u,g,h,null),V.flags|=Qn),V.return=a,N.return=a,N.sibling=V,a.child=N,V}function g2(n,a){n.lanes=$t(n.lanes,a);var l=n.alternate;l!==null&&(l.lanes=$t(l.lanes,a)),hk(n.return,a)}function TI(n,a,l){for(var u=a;u!==null;){if(u.tag===U){var h=u.memoizedState;h!==null&&g2(u,l)}else if(u.tag===B)g2(u,l);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===n)return;for(;u.sibling===null;){if(u.return===null||u.return===n)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function kI(n){for(var a=n,l=null;a!==null;){var u=a.alternate;u!==null&&vm(u)===null&&(l=a),a=a.sibling}return l}function RI(n){if(n!==void 0&&n!=="forwards"&&n!=="backwards"&&n!=="together"&&!K1[n])if(K1[n]=!0,typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break}case"forward":case"backward":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break}default:d('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n);break}else d('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n)}function LI(n,a){n!==void 0&&!Pm[n]&&(n!=="collapsed"&&n!=="hidden"?(Pm[n]=!0,d('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',n)):a!=="forwards"&&a!=="backwards"&&(Pm[n]=!0,d('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n)))}function y2(n,a){{var l=Array.isArray(n),u=!l&&typeof Yi(n)=="function";if(l||u){var h=l?"array":"iterable";return d("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",h,a,h),!1}}return!0}function OI(n,a){if((a==="forwards"||a==="backwards")&&n!==void 0&&n!==null&&n!==!1)if(Array.isArray(n)){for(var l=0;l<n.length;l++)if(!y2(n[l],l))return}else{var u=Yi(n);if(typeof u=="function"){var h=u.call(n);if(h)for(var g=h.next(),b=0;!g.done;g=h.next()){if(!y2(g.value,b))return;b++}}else d('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a)}}function nx(n,a,l,u,h,g){var b=n.memoizedState;b===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:h,lastEffect:g}:(b.isBackwards=a,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=l,b.tailMode=h,b.lastEffect=g)}function b2(n,a,l){var u=a.pendingProps,h=u.revealOrder,g=u.tail,b=u.children;RI(h),LI(g,h),OI(b,h),pi(n,a,b,l);var S=Ma.current,_=hm(S,Hd);if(_)S=b1(S,Hd),a.flags|=Sn;else{var N=n!==null&&(n.flags&Sn)!==zn;N&&TI(a,a.child,l),S=Vd(S)}if(Ps(a,S),(a.mode&fi)===Ln)a.memoizedState=null;else switch(h){case"forwards":{var z=kI(a.child),ee;z===null?(ee=a.child,a.child=null):(ee=z.sibling,z.sibling=null),nx(a,!1,ee,z,g,a.lastEffect);break}case"backwards":{var V=null,oe=a.child;for(a.child=null;oe!==null;){var ge=oe.alternate;if(ge!==null&&vm(ge)===null){a.child=oe;break}var De=oe.sibling;oe.sibling=V,V=oe,oe=De}nx(a,!0,V,null,g,a.lastEffect);break}case"together":{nx(a,!1,null,null,void 0,a.lastEffect);break}default:a.memoizedState=null}return a.child}function DI(n,a,l){v1(a,a.stateNode.containerInfo);var u=a.pendingProps;return n===null?a.child=fm(a,null,u,l):pi(n,a,u,l),a.child}var x2=!1;function PI(n,a,l){var u=a.type,h=u._context,g=a.pendingProps,b=a.memoizedProps,S=g.value;{"value"in g||x2||(x2=!0,d("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var _=a.type.propTypes;_&&Ea(_,g,"prop","Context.Provider")}if(pk(a,S),b!==null){var N=b.value,z=jz(h,S,N);if(z===0){if(b.children===g.children&&!$v())return No(n,a,l)}else Bz(a,h,z,l)}var ee=g.children;return pi(n,a,ee,l),a.child}var S2=!1;function AI(n,a,l){var u=a.type;u._context===void 0?u!==u.Consumer&&(S2||(S2=!0,d("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):u=u._context;var h=a.pendingProps,g=h.children;typeof g!="function"&&d("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),mc(a,l);var b=ar(u,h.unstable_observedBits),S;return Jd.current=a,I(!0),S=g(b),I(!1),a.flags|=yl,pi(n,a,S,l),a.child}function rx(){Xa=!0}function No(n,a,l){return n!==null&&(a.dependencies=n.dependencies),r2(),kx(a.lanes),Lr(l,a.childLanes)?(Zz(n,a),a.child):null}function NI(n,a,l){{var u=a.return;if(u===null)throw new Error("Cannot swap the root fiber.");if(n.alternate=null,a.alternate=null,l.index=a.index,l.sibling=a.sibling,l.return=a.return,l.ref=a.ref,a===u.child)u.child=l;else{var h=u.child;if(h===null)throw new Error("Expected parent to have a child.");for(;h.sibling!==a;)if(h=h.sibling,h===null)throw new Error("Expected to find the previous sibling.");h.sibling=l}var g=u.lastEffect;return g!==null?(g.nextEffect=n,u.lastEffect=n):u.firstEffect=u.lastEffect=n,n.nextEffect=null,n.flags=To,l.flags|=Qn,l}}function E2(n,a,l){var u=a.lanes;if(a._debugNeedsRemount&&n!==null)return NI(n,a,Fx(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(n!==null){var h=n.memoizedProps,g=a.pendingProps;if(h!==g||$v()||a.type!==n.type)Xa=!0;else if(Lr(l,u))(n.flags&tb)!==zn?Xa=!0:Xa=!1;else{switch(Xa=!1,a.tag){case w:u2(a),E1();break;case O:Dk(a);break;case y:{var b=a.type;Qa(b)&&Gv(a);break}case k:v1(a,a.stateNode.containerInfo);break;case D:{var S=a.memoizedProps.value;pk(a,S);break}case M:{var _=Lr(l,a.childLanes);_&&(a.flags|=dn);var N=a.stateNode;N.effectDuration=0,N.passiveEffectDuration=0}break;case U:{var z=a.memoizedState;if(z!==null){var ee=a.child,V=ee.childLanes;if(Lr(l,V))return d2(n,a,l);Ps(a,Vd(Ma.current));var oe=No(n,a,l);return oe!==null?oe.sibling:null}else Ps(a,Vd(Ma.current));break}case B:{var ge=(n.flags&Sn)!==zn,De=Lr(l,a.childLanes);if(ge){if(De)return b2(n,a,l);a.flags|=Sn}var et=a.memoizedState;if(et!==null&&(et.rendering=null,et.tail=null,et.lastEffect=null),Ps(a,Ma.current),De)break;return null}case re:case le:return a.lanes=be,J1(n,a,l)}return No(n,a,l)}}else Xa=!1;switch(a.lanes=be,a.tag){case E:return CI(n,a,a.type,l);case ne:{var ut=a.elementType;return EI(n,a,ut,u,l)}case m:{var ot=a.type,Dt=a.pendingProps,an=a.elementType===ot?Dt:_a(ot,Dt);return X1(n,a,ot,an,l)}case y:{var ie=a.type,he=a.pendingProps,J=a.elementType===ie?he:_a(ie,he);return s2(n,a,ie,J,l)}case w:return bI(n,a,l);case O:return xI(n,a,l);case A:return SI(n,a);case U:return d2(n,a,l);case k:return DI(n,a,l);case T:{var Ee=a.type,Fe=a.pendingProps,$e=a.elementType===Ee?Fe:_a(Ee,Fe);return i2(n,a,Ee,$e,l)}case W:return mI(n,a,l);case P:return gI(n,a,l);case M:return yI(n,a,l);case D:return PI(n,a,l);case R:return AI(n,a,l);case Y:{var _t=a.type,gn=a.pendingProps,On=_a(_t,gn);if(a.type!==a.elementType){var qt=_t.propTypes;qt&&Ea(qt,On,"prop",je(_t))}return On=_a(_t.type,On),a2(n,a,_t,On,u,l)}case F:return o2(n,a,a.type,a.pendingProps,u,l);case ue:{var or=a.type,Ut=a.pendingProps,Dn=a.elementType===or?Ut:_a(or,Ut);return wI(n,a,or,Dn,l)}case B:return b2(n,a,l);case ae:break;case H:break;case K:break;case re:return J1(n,a,l);case le:return vI(n,a,l)}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Cc(n){n.flags|=dn}function w2(n){n.flags|=hv}var C2,ix,_2,M2;C2=function(n,a,l,u){for(var h=a.child;h!==null;){if(h.tag===O||h.tag===A)NN(n,h.stateNode);else if(h.tag!==k){if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===a)return;for(;h.sibling===null;){if(h.return===null||h.return===a)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},ix=function(n){},_2=function(n,a,l,u,h){var g=n.memoizedProps;if(g!==u){var b=a.stateNode,S=m1(),_=IN(b,l,g,u,h,S);a.updateQueue=_,_&&Cc(a)}},M2=function(n,a,l,u){l!==u&&Cc(a)};function ep(n,a){if(!w1())switch(n.tailMode){case"hidden":{for(var l=n.tail,u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n.tail=null:u.sibling=null;break}case"collapsed":{for(var h=n.tail,g=null;h!==null;)h.alternate!==null&&(g=h),h=h.sibling;g===null?!a&&n.tail!==null?n.tail.sibling=null:n.tail=null:g.sibling=null;break}}}function T2(n,a,l){var u=a.pendingProps;switch(a.tag){case E:case ne:case F:case m:case T:case W:case P:case M:case R:case Y:return null;case y:{var h=a.type;return Qa(h)&&qv(a),null}case w:{gc(a),jb(a),_1();var g=a.stateNode;if(g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),n===null||n.child===null){var b=mm(a);b?Cc(a):g.hydrate||(a.flags|=bs)}return ix(a),null}case O:{g1(a);var S=Ok(),_=a.type;if(n!==null&&a.stateNode!=null)_2(n,a,_,u,S),n.ref!==a.ref&&w2(a);else{if(!u){if(a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return null}var N=m1(),z=mm(a);if(z)tI(a,S,N)&&Cc(a);else{var ee=AN(_,u,S,N,a);C2(ee,a,!1,!1),a.stateNode=ee,zN(ee,_,u,S)&&Cc(a)}a.ref!==null&&w2(a)}return null}case A:{var V=u;if(n&&a.stateNode!=null){var oe=n.memoizedProps;M2(n,a,oe,V)}else{if(typeof V!="string"&&a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var ge=Ok(),De=m1(),et=mm(a);et?nI(a)&&Cc(a):a.stateNode=UN(V,ge,De,a)}return null}case U:{yc(a);var ut=a.memoizedState;if((a.flags&Sn)!==zn)return a.lanes=l,(a.mode&Ni)!==Ln&&q1(a),a;var ot=ut!==null,Dt=!1;if(n===null)a.memoizedProps.fallback!==void 0&&mm(a);else{var an=n.memoizedState;Dt=an!==null}if(ot&&!Dt&&(a.mode&fi)!==Ln){var ie=n===null&&a.memoizedProps.unstable_avoidThisFallback!==!0;ie||hm(Ma.current,y1)?MU():TU()}return(ot||Dt)&&(a.flags|=dn),null}case k:return gc(a),ix(a),n===null&&Sz(a.stateNode.containerInfo),null;case D:return Zb(a),null;case ue:{var he=a.type;return Qa(he)&&qv(a),null}case B:{yc(a);var J=a.memoizedState;if(J===null)return null;var Ee=(a.flags&Sn)!==zn,Fe=J.rendering;if(Fe===null)if(Ee)ep(J,!1);else{var $e=RU()&&(n===null||(n.flags&Sn)===zn);if(!$e)for(var _t=a.child;_t!==null;){var gn=vm(_t);if(gn!==null){Ee=!0,a.flags|=Sn,ep(J,!1);var On=gn.updateQueue;return On!==null&&(a.updateQueue=On,a.flags|=dn),J.lastEffect===null&&(a.firstEffect=null),a.lastEffect=J.lastEffect,Qz(a,l),Ps(a,b1(Ma.current,Hd)),a.child}_t=_t.sibling}J.tail!==null&&Pr()>V2()&&(a.flags|=Sn,Ee=!0,ep(J,!1),a.lanes=nc,tg(nc))}else{if(!Ee){var qt=vm(Fe);if(qt!==null){a.flags|=Sn,Ee=!0;var or=qt.updateQueue;if(or!==null&&(a.updateQueue=or,a.flags|=dn),ep(J,!0),J.tail===null&&J.tailMode==="hidden"&&!Fe.alternate&&!w1()){var Ut=a.lastEffect=J.lastEffect;return Ut!==null&&(Ut.nextEffect=null),null}}else Pr()*2-J.renderingStartTime>V2()&&l!==Ya&&(a.flags|=Sn,Ee=!0,ep(J,!1),a.lanes=nc,tg(nc))}if(J.isBackwards)Fe.sibling=a.child,a.child=Fe;else{var Dn=J.last;Dn!==null?Dn.sibling=Fe:a.child=Fe,J.last=Fe}}if(J.tail!==null){var vr=J.tail;J.rendering=vr,J.tail=vr.sibling,J.lastEffect=a.lastEffect,J.renderingStartTime=Pr(),vr.sibling=null;var Kn=Ma.current;return Ee?Kn=b1(Kn,Hd):Kn=Vd(Kn),Ps(a,Kn),vr}return null}case ae:break;case H:break;case K:break;case re:case le:{if(Tx(a),n!==null){var ro=a.memoizedState,Jn=n.memoizedState,io=Jn!==null,$s=ro!==null;io!==$s&&u.mode!=="unstable-defer-without-hiding"&&(a.flags|=dn)}return null}}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function zI(n,a){switch(n.tag){case y:{var l=n.type;Qa(l)&&qv(n);var u=n.flags;return u&Ro?(n.flags=u&~Ro|Sn,(n.mode&Ni)!==Ln&&q1(n),n):null}case w:{gc(n),jb(n),_1();var h=n.flags;if((h&Sn)!==zn)throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return n.flags=h&~Ro|Sn,n}case O:return g1(n),null;case U:{yc(n);var g=n.flags;return g&Ro?(n.flags=g&~Ro|Sn,(n.mode&Ni)!==Ln&&q1(n),n):null}case B:return yc(n),null;case k:return gc(n),null;case D:return Zb(n),null;case re:case le:return Tx(n),null;default:return null}}function k2(n){switch(n.tag){case y:{var a=n.type.childContextTypes;a!=null&&qv(n);break}case w:{gc(n),jb(n),_1();break}case O:{g1(n);break}case k:gc(n);break;case U:yc(n);break;case B:yc(n);break;case D:Zb(n);break;case re:case le:Tx(n);break}}function ax(n,a){return{value:n,source:a,stack:Jh(a)}}function II(n,a){return!0}function ox(n,a){try{var l=II(n,a);if(l===!1)return;var u=a.value,h=a.source,g=a.stack,b=g!==null?g:"";if(u!=null&&u._suppressLogging){if(n.tag===y)return;console.error(u)}var S=h?je(h.type):null,_=S?"The above error occurred in the <"+S+"> component:":"The above error occurred in one of your React components:",N,z=je(n.type);z?N="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+z+"."):N=`Consider adding an error boundary to your tree to customize error handling behavior.
81
- Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;var ee=_+`
82
- `+b+`
83
-
84
- `+(""+N);console.error(ee)}catch(V){setTimeout(function(){throw V})}}var UI=typeof WeakMap=="function"?WeakMap:Map;function R2(n,a,l){var u=_l(Hn,l);u.tag=Qb,u.payload={element:null};var h=a.value;return u.callback=function(){VU(h),ox(n,a)},u}function L2(n,a,l){var u=_l(Hn,l);u.tag=Qb;var h=n.type.getDerivedStateFromError;if(typeof h=="function"){var g=a.value;u.payload=function(){return ox(n,a),h(g)}}var b=n.stateNode;return b!==null&&typeof b.componentDidCatch=="function"?u.callback=function(){fR(n),typeof h!="function"&&(BU(this),ox(n,a));var _=a.value,N=a.stack;this.componentDidCatch(_,{componentStack:N!==null?N:""}),typeof h!="function"&&(Lr(n.lanes,nn)||d("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",je(n.type)||"Unknown"))}:u.callback=function(){fR(n)},u}function FI(n,a,l){var u=n.pingCache,h;if(u===null?(u=n.pingCache=new UI,h=new Set,u.set(a,h)):(h=u.get(a),h===void 0&&(h=new Set,u.set(a,h))),!h.has(l)){h.add(l);var g=WU.bind(null,n,a,l);a.then(g,g)}}function jI(n,a,l,u,h){if(l.flags|=nd,l.firstEffect=l.lastEffect=null,u!==null&&typeof u=="object"&&typeof u.then=="function"){var g=u;if((l.mode&fi)===Ln){var b=l.alternate;b?(l.updateQueue=b.updateQueue,l.memoizedState=b.memoizedState,l.lanes=b.lanes):(l.updateQueue=null,l.memoizedState=null)}var S=hm(Ma.current,y1),_=a;do{if(_.tag===U&&Xz(_,S)){var N=_.updateQueue;if(N===null){var z=new Set;z.add(g),_.updateQueue=z}else N.add(g);if((_.mode&fi)===Ln){if(_.flags|=Sn,l.flags|=tb,l.flags&=~(NA|nd),l.tag===y){var ee=l.alternate;if(ee===null)l.tag=ue;else{var V=_l(Hn,nn);V.tag=nm,Ml(l,V)}}l.lanes=$t(l.lanes,nn);return}FI(n,g,h),_.flags|=Ro,_.lanes=h;return}_=_.return}while(_!==null);u=new Error((je(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
85
-
86
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}kU(),u=ax(u,l);var oe=a;do{switch(oe.tag){case w:{var ge=u;oe.flags|=Ro;var De=Qr(h);oe.lanes=$t(oe.lanes,De);var et=R2(oe,ge,De);yk(oe,et);return}case y:var ut=u,ot=oe.type,Dt=oe.stateNode;if((oe.flags&Sn)===zn&&(typeof ot.getDerivedStateFromError=="function"||Dt!==null&&typeof Dt.componentDidCatch=="function"&&!Rx(Dt))){oe.flags|=Ro;var an=Qr(h);oe.lanes=$t(oe.lanes,an);var ie=L2(oe,ut,an);yk(oe,ie);return}break}oe=oe.return}while(oe!==null)}var O2=null;O2=new Set;var BI=typeof WeakSet=="function"?WeakSet:Set,HI=function(n,a){a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()};function VI(n,a){if(qa(null,HI,null,n,a),Mo()){var l=Ga();Ol(n,l)}}function D2(n){var a=n.ref;if(a!==null)if(typeof a=="function"){if(qa(null,a,null,null),Mo()){var l=Ga();Ol(n,l)}}else a.current=null}function WI(n,a){if(qa(null,a,null),Mo()){var l=Ga();Ol(n,l)}}function $I(n,a){switch(a.tag){case m:case T:case F:case K:return;case y:{if(a.flags&bs&&n!==null){var l=n.memoizedProps,u=n.memoizedState,h=a.stateNode;a.type===a.elementType&&!Us&&(h.props!==a.memoizedProps&&d("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(a.type)||"instance"),h.state!==a.memoizedState&&d("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(a.type)||"instance"));var g=h.getSnapshotBeforeUpdate(a.elementType===a.type?l:_a(a.type,l),u);{var b=O2;g===void 0&&!b.has(a.type)&&(b.add(a.type),d("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",je(a.type)))}h.__reactInternalSnapshotBeforeUpdate=g}return}case w:{if(a.flags&bs){var S=a.stateNode;Nb(S.containerInfo)}return}case O:case A:case k:case ue:return}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function qI(n,a){var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var h=u.next,g=h;do{if((g.tag&n)===n){var b=g.destroy;g.destroy=void 0,b!==void 0&&b()}g=g.next}while(g!==h)}}function GI(n,a){var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var h=u.next,g=h;do{if((g.tag&n)===n){var b=g.create;g.destroy=b();{var S=g.destroy;if(S!==void 0&&typeof S!="function"){var _=void 0;S===null?_=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof S.then=="function"?_=`
87
-
88
- It looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
89
-
90
- useEffect(() => {
91
- async function fetchData() {
92
- // You can await here
93
- const response = await MyAPI.getData(someId);
94
- // ...
95
- }
96
- fetchData();
97
- }, [someId]); // Or [] if effect doesn't need props or state
98
-
99
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:_=" You returned: "+S,d("An effect function must not return anything besides a function, which is used for clean-up.%s",_)}}}g=g.next}while(g!==h)}}function YI(n){var a=n.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next,h=u;do{var g=h,b=g.next,S=g.tag;(S&Wd)!==x1&&(S&bc)!==x1&&(J2(n,h),UU(n,h)),h=b}while(h!==u)}}function ZI(n,a,l,u){switch(l.tag){case m:case T:case F:case K:{GI(xc|bc,l),YI(l);return}case y:{var h=l.stateNode;if(l.flags&dn)if(a===null)l.type===l.elementType&&!Us&&(h.props!==l.memoizedProps&&d("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(l.type)||"instance"),h.state!==l.memoizedState&&d("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(l.type)||"instance")),h.componentDidMount();else{var g=l.elementType===l.type?a.memoizedProps:_a(l.type,a.memoizedProps),b=a.memoizedState;l.type===l.elementType&&!Us&&(h.props!==l.memoizedProps&&d("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(l.type)||"instance"),h.state!==l.memoizedState&&d("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(l.type)||"instance")),h.componentDidUpdate(g,b,h.__reactInternalSnapshotBeforeUpdate)}var S=l.updateQueue;S!==null&&(l.type===l.elementType&&!Us&&(h.props!==l.memoizedProps&&d("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",je(l.type)||"instance"),h.state!==l.memoizedState&&d("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",je(l.type)||"instance")),xk(l,S,h));return}case w:{var _=l.updateQueue;if(_!==null){var N=null;if(l.child!==null)switch(l.child.tag){case O:N=l.child.stateNode;break;case y:N=l.child.stateNode;break}xk(l,_,N)}return}case O:{var z=l.stateNode;if(a===null&&l.flags&dn){var ee=l.type,V=l.memoizedProps;jN(z,ee,V)}return}case A:return;case k:return;case M:{{var oe=l.memoizedProps,ge=oe.onCommit,De=oe.onRender,et=l.stateNode.effectDuration,ut=pI();typeof De=="function"&&De(l.memoizedProps.id,a===null?"mount":"update",l.actualDuration,l.treeBaseDuration,l.actualStartTime,ut,n.memoizedInteractions)}return}case U:{rU(n,l);return}case B:case ue:case ae:case H:case re:case le:return}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function P2(n,a){for(var l=n;;){if(l.tag===O){var u=l.stateNode;a?ZN(u):KN(l.stateNode,l.memoizedProps)}else if(l.tag===A){var h=l.stateNode;a?QN(h):JN(h,l.memoizedProps)}else if(!((l.tag===re||l.tag===le)&&l.memoizedState!==null&&l!==n)){if(l.child!==null){l.child.return=l,l=l.child;continue}}if(l===n)return;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function QI(n){var a=n.ref;if(a!==null){var l=n.stateNode,u;switch(n.tag){case O:u=l;break;default:u=l}typeof a=="function"?a(u):(a.hasOwnProperty("current")||d("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",je(n.type)),a.current=u)}}function KI(n){var a=n.ref;a!==null&&(typeof a=="function"?a(null):a.current=null)}function A2(n,a,l){switch(kz(a),a.tag){case m:case T:case Y:case F:case K:{var u=a.updateQueue;if(u!==null){var h=u.lastEffect;if(h!==null){var g=h.next,b=g;do{var S=b,_=S.destroy,N=S.tag;_!==void 0&&((N&Wd)!==x1?J2(a,b):WI(a,_)),b=b.next}while(b!==g)}}return}case y:{D2(a);var z=a.stateNode;typeof z.componentWillUnmount=="function"&&VI(a,z);return}case O:{D2(a);return}case k:{U2(n,a);return}case ae:return;case Q:return;case H:return}}function JI(n,a,l){for(var u=a;;){if(A2(n,u),u.child!==null&&u.tag!==k){u.child.return=u,u=u.child;continue}if(u===a)return;for(;u.sibling===null;){if(u.return===null||u.return===a)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function N2(n){n.alternate=null,n.child=null,n.dependencies=null,n.firstEffect=null,n.lastEffect=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.return=null,n.updateQueue=null,n._debugOwner=null}function XI(n){for(var a=n.return;a!==null;){if(z2(a))return a;a=a.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function z2(n){return n.tag===O||n.tag===w||n.tag===k}function eU(n){var a=n;e:for(;;){for(;a.sibling===null;){if(a.return===null||z2(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==O&&a.tag!==A&&a.tag!==Q;){if(a.flags&Qn||a.child===null||a.tag===k)continue e;a.child.return=a,a=a.child}if(!(a.flags&Qn))return a.stateNode}}function I2(n){var a=XI(n),l,u,h=a.stateNode;switch(a.tag){case O:l=h,u=!1;break;case w:l=h.containerInfo,u=!0;break;case k:l=h.containerInfo,u=!0;break;case ae:default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}a.flags&pv&&(NT(l),a.flags&=~pv);var g=eU(n);u?lx(n,g,l):sx(n,g,l)}function lx(n,a,l){var u=n.tag,h=u===O||u===A;if(h||ce){var g=h?n.stateNode:n.stateNode.instance;a?qN(l,g,a):WN(l,g)}else if(u!==k){var b=n.child;if(b!==null){lx(b,a,l);for(var S=b.sibling;S!==null;)lx(S,a,l),S=S.sibling}}}function sx(n,a,l){var u=n.tag,h=u===O||u===A;if(h||ce){var g=h?n.stateNode:n.stateNode.instance;a?$N(l,g,a):VN(l,g)}else if(u!==k){var b=n.child;if(b!==null){sx(b,a,l);for(var S=b.sibling;S!==null;)sx(S,a,l),S=S.sibling}}}function U2(n,a,l){for(var u=a,h=!1,g,b;;){if(!h){var S=u.return;e:for(;;){if(S===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");var _=S.stateNode;switch(S.tag){case O:g=_,b=!1;break e;case w:g=_.containerInfo,b=!0;break e;case k:g=_.containerInfo,b=!0;break e}S=S.return}h=!0}if(u.tag===O||u.tag===A)JI(n,u),b?YN(g,u.stateNode):GN(g,u.stateNode);else if(u.tag===k){if(u.child!==null){g=u.stateNode.containerInfo,b=!0,u.child.return=u,u=u.child;continue}}else if(A2(n,u),u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)return;for(;u.sibling===null;){if(u.return===null||u.return===a)return;u=u.return,u.tag===k&&(h=!1)}u.sibling.return=u.return,u=u.sibling}}function tU(n,a,l){U2(n,a);var u=a.alternate;N2(a),u!==null&&N2(u)}function ux(n,a){switch(a.tag){case m:case T:case Y:case F:case K:{qI(xc|bc,a);return}case y:return;case O:{var l=a.stateNode;if(l!=null){var u=a.memoizedProps,h=n!==null?n.memoizedProps:u,g=a.type,b=a.updateQueue;a.updateQueue=null,b!==null&&BN(l,b,g,h,u)}return}case A:{if(a.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var S=a.stateNode,_=a.memoizedProps,N=n!==null?n.memoizedProps:_;HN(S,N,_);return}case w:{{var z=a.stateNode;z.hydrate&&(z.hydrate=!1,oz(z.containerInfo))}return}case M:return;case U:{nU(a),F2(a);return}case B:{F2(a);return}case ue:return;case ae:break;case H:break;case re:case le:{var ee=a.memoizedState,V=ee!==null;P2(a,V);return}}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function nU(n){var a=n.memoizedState;if(a!==null){_U();{var l=n.child;P2(l,!0)}}}function rU(n,a){var l=a.memoizedState;if(l===null){var u=a.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var g=h.dehydrated;g!==null&&lz(g)}}}}function F2(n){var a=n.updateQueue;if(a!==null){n.updateQueue=null;var l=n.stateNode;l===null&&(l=n.stateNode=new BI),a.forEach(function(u){var h=qU.bind(null,n,u);l.has(u)||(u.__reactDoNotTraceInteractions!==!0&&(h=o.unstable_wrap(h)),l.add(u),u.then(h,h))})}}function iU(n,a){if(n!==null){var l=n.memoizedState;if(l===null||l.dehydrated!==null){var u=a.memoizedState;return u!==null&&u.dehydrated===null}}return!1}function aU(n){NT(n.stateNode)}var oU=0,lU=1,sU=2,uU=3,cU=4;if(typeof Symbol=="function"&&Symbol.for){var tp=Symbol.for;oU=tp("selector.component"),lU=tp("selector.has_pseudo_class"),sU=tp("selector.role"),uU=tp("selector.test_id"),cU=tp("selector.text")}var fU=[];function dU(){fU.forEach(function(n){return n()})}var pU=Math.ceil,cx=s.ReactCurrentDispatcher,fx=s.ReactCurrentOwner,dx=s.IsSomeRendererActing,Wn=0,zm=1,hU=2,px=4,hx=8,zi=16,eo=32,j2=64,zo=0,Im=1,Um=2,Fm=3,jm=4,vx=5,at=Wn,Kr=null,$n=null,Jr=be,to=be,mx=wl(be),Sr=zo,Bm=null,Fs=be,Hm=be,js=be,Vm=be,gx=null,yx=0,B2=500,H2=1/0,vU=500;function _c(){H2=Pr()+vU}function V2(){return H2}var We=null,Wm=!1,bx=null,Mc=null,Io=!1,Tc=null,np=$b,xx=be,Sx=[],Ex=[],Uo=null,mU=50,rp=0,wx=null,gU=50,$m=0,Bs=null,ip=Hn,Fo=be,qm=be,Cx=!1,ap=null,Gm=!1;function yU(){return Kr}function Ii(){return(at&(zi|eo))!==Wn?Pr():(ip!==Hn||(ip=Pr()),ip)}function Ll(n){var a=n.mode;if((a&fi)===Ln)return nn;if((a&Ls)===Ln)return hc()===Ji?nn:sd;Fo===be&&(Fo=Fs);var l=Uz()!==Iz;if(l)return qm!==be&&(qm=gx!==null?gx.pendingLanes:be),h8(Fo,qm);var u=hc(),h;if((at&px)!==Wn&&u===ks)h=Cv(bv,Fo);else{var g=l8(u);h=Cv(g,Fo)}return h}function bU(n){var a=n.mode;return(a&fi)===Ln?nn:(a&Ls)===Ln?hc()===Ji?nn:sd:(Fo===be&&(Fo=Fs),v8(Fo))}function Nr(n,a,l){YU(),JU(n);var u=Ym(n,a);if(u===null)return QU(n),null;Mv(u,a,l),u===Kr&&(js=$t(js,a),Sr===jm&&kc(u,Jr));var h=hc();a===nn?(at&hx)!==Wn&&(at&(zi|eo))===Wn?(Dl(u,a),_x(u)):(na(u,l),Dl(u,a),at===Wn&&(_c(),Ka())):((at&px)!==Wn&&(h===ks||h===Ji)&&(Uo===null?Uo=new Set([u]):Uo.add(u)),na(u,l),Dl(u,a)),gx=u}function Ym(n,a){n.lanes=$t(n.lanes,a);var l=n.alternate;l!==null&&(l.lanes=$t(l.lanes,a)),l===null&&(n.flags&(Qn|ko))!==zn&&eR(n);for(var u=n,h=n.return;h!==null;)h.childLanes=$t(h.childLanes,a),l=h.alternate,l!==null?l.childLanes=$t(l.childLanes,a):(h.flags&(Qn|ko))!==zn&&eR(n),u=h,h=h.return;if(u.tag===w){var g=u.stateNode;return g}else return null}function na(n,a){var l=n.callbackNode;f8(n,a);var u=ud(n,n===Kr?Jr:be),h=d8();if(u===be){l!==null&&(lk(l),n.callbackNode=null,n.callbackPriority=Es);return}if(l!==null){var g=n.callbackPriority;if(g===h)return;lk(l)}var b;if(h===Xu)b=Az(_x.bind(null,n));else if(h===yv)b=Cl(Ji,_x.bind(null,n));else{var S=s8(h);b=Cl(S,W2.bind(null,n))}n.callbackPriority=h,n.callbackNode=b}function W2(n){if(ip=Hn,Fo=be,qm=be,(at&(zi|eo))!==Wn)throw Error("Should not already be working.");var a=n.callbackNode,l=no();if(l&&n.callbackNode!==a)return null;var u=ud(n,n===Kr?Jr:be);if(u===be)return null;var h=OU(n,u);if(Lr(Fs,js))Rc(n,be);else if(h!==zo){if(h===Um&&(at|=j2,n.hydrate&&(n.hydrate=!1,Nb(n.containerInfo)),u=RM(n),u!==be&&(h=op(n,u))),h===Im){var g=Bm;throw Rc(n,be),kc(n,u),na(n,Pr()),g}var b=n.current.alternate;n.finishedWork=b,n.finishedLanes=u,xU(n,h,u)}return na(n,Pr()),n.callbackNode===a?W2.bind(null,n):null}function xU(n,a,l){switch(a){case zo:case Im:throw Error("Root did not complete. This is a bug in React.");case Um:{Hs(n);break}case Fm:{if(kc(n,l),OM(l)&&!sR()){var u=yx+B2-Pr();if(u>10){var h=ud(n,be);if(h!==be)break;var g=n.suspendedLanes;if(!Cs(g,l)){var b=Ii();DM(n,g);break}n.timeoutHandle=AT(Hs.bind(null,n),u);break}}Hs(n);break}case jm:{if(kc(n,l),p8(l))break;if(!sR()){var S=u8(n,l),_=S,N=Pr()-_,z=GU(N)-N;if(z>10){n.timeoutHandle=AT(Hs.bind(null,n),z);break}}Hs(n);break}case vx:{Hs(n);break}default:throw Error("Unknown root exit status.")}}function kc(n,a){a=_v(a,Vm),a=_v(a,js),S8(n,a)}function _x(n){if((at&(zi|eo))!==Wn)throw Error("Should not already be working.");no();var a,l;if(n===Kr&&Lr(n.expiredLanes,Jr)?(a=Jr,l=op(n,a),Lr(Fs,js)&&(a=ud(n,a),l=op(n,a))):(a=ud(n,be),l=op(n,a)),n.tag!==Bb&&l===Um&&(at|=j2,n.hydrate&&(n.hydrate=!1,Nb(n.containerInfo)),a=RM(n),a!==be&&(l=op(n,a))),l===Im){var u=Bm;throw Rc(n,be),kc(n,a),na(n,Pr()),u}var h=n.current.alternate;return n.finishedWork=h,n.finishedLanes=a,Hs(n),na(n,Pr()),null}function SU(){if((at&(zm|zi|eo))!==Wn){(at&zi)!==Wn&&d("unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.");return}EU(),no()}function EU(){if(Uo!==null){var n=Uo;Uo=null,n.forEach(function(a){E8(a),na(a,Pr())})}Ka()}function $2(n,a){var l=at;at|=zm;try{return n(a)}finally{at=l,at===Wn&&(_c(),Ka())}}function wU(n,a){var l=at;at|=hU;try{return n(a)}finally{at=l,at===Wn&&(_c(),Ka())}}function CU(n,a,l,u,h){var g=at;at|=px;try{return Rs(ks,n.bind(null,a,l,u,h))}finally{at=g,at===Wn&&(_c(),Ka())}}function q2(n,a){var l=at;at&=~zm,at|=hx;try{return n(a)}finally{at=l,at===Wn&&(_c(),Ka())}}function Mx(n,a){var l=at;if((l&(zi|eo))!==Wn)return d("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),n(a);at|=zm;try{return n?Rs(Ji,n.bind(null,a)):void 0}finally{at=l,Ka()}}function Zm(n,a){Dr(mx,to,n),to=$t(to,a),Fs=$t(Fs,a)}function Tx(n){to=mx.current,Or(mx,n)}function Rc(n,a){n.finishedWork=null,n.finishedLanes=be;var l=n.timeoutHandle;if(l!==Ab&&(n.timeoutHandle=Ab,FN(l)),$n!==null)for(var u=$n.return;u!==null;)k2(u),u=u.return;Kr=n,$n=Vs(n.current,null),Jr=to=Fs=a,Sr=zo,Bm=null,Hm=be,js=be,Vm=be,Bs=null,Ca.discardPendingWarnings()}function G2(n,a){do{var l=$n;try{if(tm(),jk(),x(),fx.current=null,l===null||l.return===null){Sr=Im,Bm=a,$n=null;return}se&&l.mode&Ni&&Dm(l,!0),jI(n,l.return,l,a,Jr),K2(l)}catch(u){a=u,$n===l&&l!==null?(l=l.return,$n=l):l=$n;continue}return}while(!0)}function Y2(){var n=cx.current;return cx.current=Rm,n===null?Rm:n}function Z2(n){cx.current=n}function Qm(n){{var a=o.__interactionsRef.current;return o.__interactionsRef.current=n.memoizedInteractions,a}}function Km(n){o.__interactionsRef.current=n}function _U(){yx=Pr()}function kx(n){Hm=$t(n,Hm)}function MU(){Sr===zo&&(Sr=Fm)}function TU(){(Sr===zo||Sr===Fm)&&(Sr=jm),Kr!==null&&(LM(Hm)||LM(js))&&kc(Kr,Jr)}function kU(){Sr!==vx&&(Sr=Um)}function RU(){return Sr===zo}function op(n,a){var l=at;at|=zi;var u=Y2();(Kr!==n||Jr!==a)&&(Rc(n,a),oR(n,a));var h=Qm(n);do try{LU();break}catch(g){G2(n,g)}while(!0);if(tm(),Km(h),at=l,Z2(u),$n!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Kr=null,Jr=be,Sr}function LU(){for(;$n!==null;)Q2($n)}function OU(n,a){var l=at;at|=zi;var u=Y2();(Kr!==n||Jr!==a)&&(_c(),Rc(n,a),oR(n,a));var h=Qm(n);do try{DU();break}catch(g){G2(n,g)}while(!0);return tm(),Km(h),Z2(u),at=l,$n!==null?zo:(Kr=null,Jr=be,Sr)}function DU(){for(;$n!==null&&!Dz();)Q2($n)}function Q2(n){var a=n.alternate;C(n);var l;(n.mode&Ni)!==Ln?($1(n),l=Lx(a,n,to),Dm(n,!0)):l=Lx(a,n,to),x(),n.memoizedProps=n.pendingProps,l===null?K2(n):$n=l,fx.current=null}function K2(n){var a=n;do{var l=a.alternate,u=a.return;if((a.flags&nd)===zn){C(a);var h=void 0;if((a.mode&Ni)===Ln?h=T2(l,a,to):($1(a),h=T2(l,a,to),Dm(a,!1)),x(),h!==null){$n=h;return}if(PU(a),u!==null&&(u.flags&nd)===zn){u.firstEffect===null&&(u.firstEffect=a.firstEffect),a.lastEffect!==null&&(u.lastEffect!==null&&(u.lastEffect.nextEffect=a.firstEffect),u.lastEffect=a.lastEffect);var g=a.flags;g>yl&&(u.lastEffect!==null?u.lastEffect.nextEffect=a:u.firstEffect=a,u.lastEffect=a)}}else{var b=zI(a);if(b!==null){b.flags&=zA,$n=b;return}if((a.mode&Ni)!==Ln){Dm(a,!1);for(var S=a.actualDuration,_=a.child;_!==null;)S+=_.actualDuration,_=_.sibling;a.actualDuration=S}u!==null&&(u.firstEffect=u.lastEffect=null,u.flags|=nd)}var N=a.sibling;if(N!==null){$n=N;return}a=u,$n=a}while(a!==null);Sr===zo&&(Sr=vx)}function PU(n){if(!((n.tag===le||n.tag===re)&&n.memoizedState!==null&&!Lr(to,Ya)&&(n.mode&Ls)!==be)){var a=be;if((n.mode&Ni)!==Ln){for(var l=n.actualDuration,u=n.selfBaseDuration,h=n.alternate===null||n.child!==n.alternate.child,g=n.child;g!==null;)a=$t(a,$t(g.lanes,g.childLanes)),h&&(l+=g.actualDuration),u+=g.treeBaseDuration,g=g.sibling;var b=n.tag===U&&n.memoizedState!==null;if(b){var S=n.child;S!==null&&(u-=S.treeBaseDuration)}n.actualDuration=l,n.treeBaseDuration=u}else for(var _=n.child;_!==null;)a=$t(a,$t(_.lanes,_.childLanes)),_=_.sibling;n.childLanes=a}}function Hs(n){var a=hc();return Rs(Ji,AU.bind(null,n,a)),null}function AU(n,a){do no();while(Tc!==null);if(ZU(),(at&(zi|eo))!==Wn)throw Error("Should not already be working.");var l=n.finishedWork,u=n.finishedLanes;if(l===null)return null;if(n.finishedWork=null,n.finishedLanes=be,l===n.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");n.callbackNode=null;var h=$t(l.lanes,l.childLanes);C8(n,h),Uo!==null&&!w8(h)&&Uo.has(n)&&Uo.delete(n),n===Kr&&(Kr=null,$n=null,Jr=be);var g;if(l.flags>yl?l.lastEffect!==null?(l.lastEffect.nextEffect=l,g=l.firstEffect):g=l:g=l.firstEffect,g!==null){var b=at;at|=eo;var S=Qm(n);fx.current=null,ap=DN(n.containerInfo),Gm=!1,We=g;do if(qa(null,NU,null),Mo()){if(We===null)throw Error("Should be working on an effect.");var _=Ga();Ol(We,_),We=We.nextEffect}while(We!==null);ap=null,n2(),We=g;do if(qa(null,zU,null,n,a),Mo()){if(We===null)throw Error("Should be working on an effect.");var N=Ga();Ol(We,N),We=We.nextEffect}while(We!==null);PN(n.containerInfo),n.current=l,We=g;do if(qa(null,IU,null,n,u),Mo()){if(We===null)throw Error("Should be working on an effect.");var z=Ga();Ol(We,z),We=We.nextEffect}while(We!==null);We=null,Pz(),Km(S),at=b}else n.current=l,n2();var ee=Io;if(Io)Io=!1,Tc=n,xx=u,np=a;else for(We=g;We!==null;){var V=We.nextEffect;We.nextEffect=null,We.flags&To&&uR(We),We=V}if(h=n.pendingLanes,h!==be){if(Bs!==null){var oe=Bs;Bs=null;for(var ge=0;ge<oe.length;ge++)aR(n,oe[ge],n.memoizedInteractions)}Dl(n,h)}else Mc=null;if(ee||lR(n,u),h===nn?n===wx?rp++:(rp=0,wx=n):rp=0,Tz(l.stateNode,a),dU(),na(n,Pr()),Wm){Wm=!1;var De=bx;throw bx=null,De}return(at&hx)!==Wn||Ka(),null}function NU(){for(;We!==null;){var n=We.alternate;!Gm&&ap!==null&&((We.flags&To)!==zn?Z_(We,ap)&&(Gm=!0):We.tag===U&&iU(n,We)&&Z_(We,ap)&&(Gm=!0));var a=We.flags;(a&bs)!==zn&&(C(We),$I(n,We),x()),(a&ed)!==zn&&(Io||(Io=!0,Cl(Po,function(){return no(),null}))),We=We.nextEffect}}function zU(n,a){for(;We!==null;){C(We);var l=We.flags;if(l&pv&&aU(We),l&hv){var u=We.alternate;u!==null&&KI(u)}var h=l&(Qn|dn|To|ko);switch(h){case Qn:{I2(We),We.flags&=~Qn;break}case PA:{I2(We),We.flags&=~Qn;var g=We.alternate;ux(g,We);break}case ko:{We.flags&=~ko;break}case AA:{We.flags&=~ko;var b=We.alternate;ux(b,We);break}case dn:{var S=We.alternate;ux(S,We);break}case To:{tU(n,We);break}}x(),We=We.nextEffect}}function IU(n,a){for(;We!==null;){C(We);var l=We.flags;if(l&(dn|V_)){var u=We.alternate;ZI(n,u,We)}l&hv&&QI(We),x(),We=We.nextEffect}}function no(){if(np!==$b){var n=np>Po?Po:np;return np=$b,Rs(n,jU)}return!1}function UU(n,a){Sx.push(a,n),Io||(Io=!0,Cl(Po,function(){return no(),null}))}function J2(n,a){Ex.push(a,n);{n.flags|=td;var l=n.alternate;l!==null&&(l.flags|=td)}Io||(Io=!0,Cl(Po,function(){return no(),null}))}function FU(n){var a=n.create;n.destroy=a()}function jU(){if(Tc===null)return!1;var n=Tc,a=xx;if(Tc=null,xx=be,(at&(zi|eo))!==Wn)throw Error("Cannot flush passive effects while already rendering.");Cx=!0;var l=at;at|=eo;var u=Qm(n),h=Ex;Ex=[];for(var g=0;g<h.length;g+=2){var b=h[g],S=h[g+1],_=b.destroy;b.destroy=void 0;{S.flags&=~td;var N=S.alternate;N!==null&&(N.flags&=~td)}if(typeof _=="function"){if(C(S),qa(null,_,null),Mo()){if(S===null)throw Error("Should be working on an effect.");var z=Ga();Ol(S,z)}x()}}var ee=Sx;Sx=[];for(var V=0;V<ee.length;V+=2){var oe=ee[V],ge=ee[V+1];{if(C(ge),qa(null,FU,null,oe),Mo()){if(ge===null)throw Error("Should be working on an effect.");var De=Ga();Ol(ge,De)}x()}}for(var et=n.current.firstEffect;et!==null;){var ut=et.nextEffect;et.nextEffect=null,et.flags&To&&uR(et),et=ut}return Km(u),lR(n,a),Cx=!1,at=l,Ka(),$m=Tc===null?0:$m+1,!0}function Rx(n){return Mc!==null&&Mc.has(n)}function BU(n){Mc===null?Mc=new Set([n]):Mc.add(n)}function HU(n){Wm||(Wm=!0,bx=n)}var VU=HU;function X2(n,a,l){var u=ax(l,a),h=R2(n,u,nn);Ml(n,h);var g=Ii(),b=Ym(n,nn);b!==null&&(Mv(b,nn,g),na(b,g),Dl(b,nn))}function Ol(n,a){if(n.tag===w){X2(n,n,a);return}for(var l=n.return;l!==null;){if(l.tag===w){X2(l,n,a);return}else if(l.tag===y){var u=l.type,h=l.stateNode;if(typeof u.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&!Rx(h)){var g=ax(a,n),b=L2(l,g,nn);Ml(l,b);var S=Ii(),_=Ym(l,nn);if(_!==null)Mv(_,nn,S),na(_,S),Dl(_,nn);else if(typeof h.componentDidCatch=="function"&&!Rx(h))try{h.componentDidCatch(a,g)}catch{}return}}l=l.return}}function WU(n,a,l){var u=n.pingCache;u!==null&&u.delete(a);var h=Ii();DM(n,l),Kr===n&&Cs(Jr,l)&&(Sr===jm||Sr===Fm&&OM(Jr)&&Pr()-yx<B2?Rc(n,be):Vm=$t(Vm,l)),na(n,h),Dl(n,l)}function $U(n,a){a===ui&&(a=bU(n));var l=Ii(),u=Ym(n,a);u!==null&&(Mv(u,a,l),na(u,l),Dl(u,a))}function qU(n,a){var l=ui,u;u=n.stateNode,u!==null&&u.delete(a),$U(n,l)}function GU(n){return n<120?120:n<480?480:n<1080?1080:n<1920?1920:n<3e3?3e3:n<4320?4320:pU(n/1960)*1960}function YU(){if(rp>mU)throw rp=0,wx=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");$m>gU&&($m=0,d("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function ZU(){Ca.flushLegacyContextWarning(),Ca.flushPendingUnsafeLifecycleWarnings()}var Jm=null;function eR(n){{if((at&zi)!==Wn||!(n.mode&(fi|Ls)))return;var a=n.tag;if(a!==E&&a!==w&&a!==y&&a!==m&&a!==T&&a!==Y&&a!==F&&a!==K)return;var l=je(n.type)||"ReactComponent";if(Jm!==null){if(Jm.has(l))return;Jm.add(l)}else Jm=new Set([l]);var u=kr;try{C(n),d("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{u?C(n):x()}}}var Xm=null;function QU(n){{var a=n.tag;if(a!==w&&a!==y&&a!==m&&a!==T&&a!==Y&&a!==F&&a!==K||(n.flags&td)!==zn)return;var l=je(n.type)||"ReactComponent";if(Xm!==null){if(Xm.has(l))return;Xm.add(l)}else Xm=new Set([l]);if(!Cx){var u=kr;try{C(n),d("Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.",a===y?"the componentWillUnmount method":"a useEffect cleanup function")}finally{u?C(n):x()}}}}var Lx;{var KU=null;Lx=function(n,a,l){var u=pR(KU,a);try{return E2(n,a,l)}catch(g){if(g!==null&&typeof g=="object"&&typeof g.then=="function")throw g;if(tm(),jk(),k2(a),pR(a,u),a.mode&Ni&&$1(a),qa(null,E2,null,n,a,l),Mo()){var h=Ga();throw h}else throw g}}}var tR=!1,Ox;Ox=new Set;function JU(n){if(sl&&(at&zi)!==Wn&&!dI())switch(n.tag){case m:case T:case F:{var a=$n&&je($n.type)||"Unknown",l=a;if(!Ox.has(l)){Ox.add(l);var u=je(n.type)||"Unknown";d("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",u,a,a)}break}case y:{tR||(d("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),tR=!0);break}}}var eg={current:!1};function nR(n){if(dx.current===!0&&eg.current!==!0){var a=kr;try{C(n),d(`It looks like you're using the wrong act() around your test interactions.
100
- Be sure to use the matching version of act() corresponding to your renderer:
101
-
102
- // for react-dom:
103
- import {act} from 'react-dom/test-utils';
104
- // ...
105
- act(() => ...);
106
-
107
- // for react-test-renderer:
108
- import TestRenderer from react-test-renderer';
109
- const {act} = TestRenderer;
110
- // ...
111
- act(() => ...);`)}finally{a?C(n):x()}}}function rR(n){(n.mode&Vn)!==Ln&&dx.current===!1&&eg.current===!1&&d(`An update to %s ran an effect, but was not wrapped in act(...).
112
-
113
- When testing, code that causes React state updates should be wrapped into act(...):
114
-
115
- act(() => {
116
- /* fire events that update state */
117
- });
118
- /* assert on the output */
119
-
120
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,je(n.type))}function XU(n){if(at===Wn&&dx.current===!1&&eg.current===!1){var a=kr;try{C(n),d(`An update to %s inside a test was not wrapped in act(...).
121
-
122
- When testing, code that causes React state updates should be wrapped into act(...):
123
-
124
- act(() => {
125
- /* fire events that update state */
126
- });
127
- /* assert on the output */
128
-
129
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,je(n.type))}finally{a?C(n):x()}}}var eF=XU,iR=!1;function tF(n){iR===!1&&r.unstable_flushAllWithoutAsserting===void 0&&(n.mode&fi||n.mode&Ls)&&(iR=!0,d(`In Concurrent or Sync modes, the "scheduler" module needs to be mocked to guarantee consistent behaviour across tests and browsers. For example, with jest:
130
- jest.mock('scheduler', () => require('scheduler/unstable_mock'));
131
-
132
- For more info, visit https://reactjs.org/link/mock-scheduler`))}function Dx(n,a){return a*1e3+n.interactionThreadID}function tg(n){Bs===null?Bs=[n]:Bs.push(n)}function aR(n,a,l){if(l.size>0){var u=n.pendingInteractionMap,h=u.get(a);h!=null?l.forEach(function(S){h.has(S)||S.__count++,h.add(S)}):(u.set(a,new Set(l)),l.forEach(function(S){S.__count++}));var g=o.__subscriberRef.current;if(g!==null){var b=Dx(n,a);g.onWorkScheduled(l,b)}}}function Dl(n,a){aR(n,a,o.__interactionsRef.current)}function oR(n,a){var l=new Set;if(n.pendingInteractionMap.forEach(function(g,b){Lr(a,b)&&g.forEach(function(S){return l.add(S)})}),n.memoizedInteractions=l,l.size>0){var u=o.__subscriberRef.current;if(u!==null){var h=Dx(n,a);try{u.onWorkStarted(l,h)}catch(g){Cl(Ji,function(){throw g})}}}}function lR(n,a){var l=n.pendingLanes,u;try{if(u=o.__subscriberRef.current,u!==null&&n.memoizedInteractions.size>0){var h=Dx(n,a);u.onWorkStopped(n.memoizedInteractions,h)}}catch(b){Cl(Ji,function(){throw b})}finally{var g=n.pendingInteractionMap;g.forEach(function(b,S){Lr(l,S)||(g.delete(S),b.forEach(function(_){if(_.__count--,u!==null&&_.__count===0)try{u.onInteractionScheduledWorkCompleted(_)}catch(N){Cl(Ji,function(){throw N})}}))})}}function sR(){return nF>0}var nF=0;function uR(n){n.sibling=null,n.stateNode=null}var ra=null,Lc=null,rF=function(n){ra=n};function Oc(n){{if(ra===null)return n;var a=ra(n);return a===void 0?n:a.current}}function Px(n){return Oc(n)}function Ax(n){{if(ra===null)return n;var a=ra(n);if(a===void 0){if(n!=null&&typeof n.render=="function"){var l=Oc(n.render);if(n.render!==l){var u={$$typeof:yo,render:l};return n.displayName!==void 0&&(u.displayName=n.displayName),u}}return n}return a.current}}function cR(n,a){{if(ra===null)return!1;var l=n.elementType,u=a.type,h=!1,g=typeof u=="object"&&u!==null?u.$$typeof:null;switch(n.tag){case y:{typeof u=="function"&&(h=!0);break}case m:{(typeof u=="function"||g===Gi)&&(h=!0);break}case T:{(g===yo||g===Gi)&&(h=!0);break}case Y:case F:{(g===Ti||g===Gi)&&(h=!0);break}default:return!1}if(h){var b=ra(l);if(b!==void 0&&b===ra(u))return!0}return!1}}function fR(n){{if(ra===null||typeof WeakSet!="function")return;Lc===null&&(Lc=new WeakSet),Lc.add(n)}}var iF=function(n,a){{if(ra===null)return;var l=a.staleFamilies,u=a.updatedFamilies;no(),Mx(function(){Nx(n.current,u,l)})}},aF=function(n,a){{if(n.context!==Ai)return;no(),Mx(function(){lp(a,n,null,null)})}};function Nx(n,a,l){{var u=n.alternate,h=n.child,g=n.sibling,b=n.tag,S=n.type,_=null;switch(b){case m:case F:case y:_=S;break;case T:_=S.render;break}if(ra===null)throw new Error("Expected resolveFamily to be set during hot reload.");var N=!1,z=!1;if(_!==null){var ee=ra(_);ee!==void 0&&(l.has(ee)?z=!0:a.has(ee)&&(b===y?z=!0:N=!0))}Lc!==null&&(Lc.has(n)||u!==null&&Lc.has(u))&&(z=!0),z&&(n._debugNeedsRemount=!0),(z||N)&&Nr(n,nn,Hn),h!==null&&!z&&Nx(h,a,l),g!==null&&Nx(g,a,l)}}var oF=function(n,a){{var l=new Set,u=new Set(a.map(function(h){return h.current}));return zx(n.current,u,l),l}};function zx(n,a,l){{var u=n.child,h=n.sibling,g=n.tag,b=n.type,S=null;switch(g){case m:case F:case y:S=b;break;case T:S=b.render;break}var _=!1;S!==null&&a.has(S)&&(_=!0),_?lF(n,l):u!==null&&zx(u,a,l),h!==null&&zx(h,a,l)}}function lF(n,a){{var l=sF(n,a);if(l)return;for(var u=n;;){switch(u.tag){case O:a.add(u.stateNode);return;case k:a.add(u.stateNode.containerInfo);return;case w:a.add(u.stateNode.containerInfo);return}if(u.return===null)throw new Error("Expected to reach root first.");u=u.return}}}function sF(n,a){for(var l=n,u=!1;;){if(l.tag===O)u=!0,a.add(l.stateNode);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)return u;for(;l.sibling===null;){if(l.return===null||l.return===n)return u;l=l.return}l.sibling.return=l.return,l=l.sibling}return!1}var Ix;{Ix=!1;try{var dR=Object.preventExtensions({})}catch{Ix=!0}}var uF=1;function cF(n,a,l,u){this.tag=n,this.key=l,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=a,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=u,this.flags=zn,this.nextEffect=null,this.firstEffect=null,this.lastEffect=null,this.lanes=be,this.childLanes=be,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugID=uF++,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Ix&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ui=function(n,a,l,u){return new cF(n,a,l,u)};function Ux(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function fF(n){return typeof n=="function"&&!Ux(n)&&n.defaultProps===void 0}function dF(n){if(typeof n=="function")return Ux(n)?y:m;if(n!=null){var a=n.$$typeof;if(a===yo)return T;if(a===Ti)return Y}return E}function Vs(n,a){var l=n.alternate;l===null?(l=Ui(n.tag,a,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l._debugID=n._debugID,l._debugSource=n._debugSource,l._debugOwner=n._debugOwner,l._debugHookTypes=n._debugHookTypes,l.alternate=n,n.alternate=l):(l.pendingProps=a,l.type=n.type,l.flags=zn,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,l.actualDuration=0,l.actualStartTime=-1),l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue;var u=n.dependencies;switch(l.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.selfBaseDuration=n.selfBaseDuration,l.treeBaseDuration=n.treeBaseDuration,l._debugNeedsRemount=n._debugNeedsRemount,l.tag){case E:case m:case F:l.type=Oc(n.type);break;case y:l.type=Px(n.type);break;case T:l.type=Ax(n.type);break}return l}function pF(n,a){n.flags&=Qn,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null;var l=n.alternate;if(l===null)n.childLanes=be,n.lanes=a,n.child=null,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0;else{n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type;var u=l.dependencies;n.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},n.selfBaseDuration=l.selfBaseDuration,n.treeBaseDuration=l.treeBaseDuration}return n}function hF(n){var a;return n===Hb?a=Ls|fi|Vn:n===ZT?a=fi|Vn:a=Ln,Cz&&(a|=Ni),Ui(w,null,null,a)}function Fx(n,a,l,u,h,g){var b=E,S=n;if(typeof n=="function")Ux(n)?(b=y,S=Px(S)):S=Oc(S);else if(typeof n=="string")b=O;else{e:switch(n){case Ia:return Ws(l.children,h,g,a);case qh:b=P,h|=Nz;break;case Zt:b=P,h|=Vn;break;case tl:return vF(l,h,g,a);case nl:return mF(l,h,g,a);case Ua:return gF(l,h,g,a);case va:return Bx(l,h,g,a);case al:return yF(l,h,g,a);case _u:default:{if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Mi:b=D;break e;case wu:b=R;break e;case yo:b=T,S=Ax(S);break e;case Ti:b=Y;break e;case Gi:b=ne,S=null;break e;case rl:b=K;break e}var _="";{(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var N=u?je(u.type):null;N&&(_+=`
133
-
134
- Check the render method of \``+N+"`.")}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n==null?n:typeof n)+"."+_)}}}var z=Ui(b,l,a,h);return z.elementType=n,z.type=S,z.lanes=g,z._debugOwner=u,z}function jx(n,a,l){var u=null;u=n._owner;var h=n.type,g=n.key,b=n.props,S=Fx(h,g,b,u,a,l);return S._debugSource=n._source,S._debugOwner=n._owner,S}function Ws(n,a,l,u){var h=Ui(W,n,u,a);return h.lanes=l,h}function vF(n,a,l,u){typeof n.id!="string"&&d('Profiler must specify an "id" as a prop');var h=Ui(M,n,u,a|Ni);return h.elementType=tl,h.type=tl,h.lanes=l,h.stateNode={effectDuration:0,passiveEffectDuration:0},h}function mF(n,a,l,u){var h=Ui(U,n,u,a);return h.type=nl,h.elementType=nl,h.lanes=l,h}function gF(n,a,l,u){var h=Ui(B,n,u,a);return h.type=Ua,h.elementType=Ua,h.lanes=l,h}function Bx(n,a,l,u){var h=Ui(re,n,u,a);return h.type=va,h.elementType=va,h.lanes=l,h}function yF(n,a,l,u){var h=Ui(le,n,u,a);return h.type=al,h.elementType=al,h.lanes=l,h}function Hx(n,a,l){var u=Ui(A,n,null,a);return u.lanes=l,u}function bF(){var n=Ui(O,null,null,Ln);return n.elementType="DELETED",n.type="DELETED",n}function Vx(n,a,l){var u=n.children!==null?n.children:[],h=Ui(k,u,n.key,a);return h.lanes=l,h.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},h}function pR(n,a){return n===null&&(n=Ui(E,null,null,Ln)),n.tag=a.tag,n.key=a.key,n.elementType=a.elementType,n.type=a.type,n.stateNode=a.stateNode,n.return=a.return,n.child=a.child,n.sibling=a.sibling,n.index=a.index,n.ref=a.ref,n.pendingProps=a.pendingProps,n.memoizedProps=a.memoizedProps,n.updateQueue=a.updateQueue,n.memoizedState=a.memoizedState,n.dependencies=a.dependencies,n.mode=a.mode,n.flags=a.flags,n.nextEffect=a.nextEffect,n.firstEffect=a.firstEffect,n.lastEffect=a.lastEffect,n.lanes=a.lanes,n.childLanes=a.childLanes,n.alternate=a.alternate,n.actualDuration=a.actualDuration,n.actualStartTime=a.actualStartTime,n.selfBaseDuration=a.selfBaseDuration,n.treeBaseDuration=a.treeBaseDuration,n._debugID=a._debugID,n._debugSource=a._debugSource,n._debugOwner=a._debugOwner,n._debugNeedsRemount=a._debugNeedsRemount,n._debugHookTypes=a._debugHookTypes,n}function xF(n,a,l){switch(this.tag=a,this.containerInfo=n,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ab,this.context=null,this.pendingContext=null,this.hydrate=l,this.callbackNode=null,this.callbackPriority=Es,this.eventTimes=hb(be),this.expirationTimes=hb(Hn),this.pendingLanes=be,this.suspendedLanes=be,this.pingedLanes=be,this.expiredLanes=be,this.mutableReadLanes=be,this.finishedLanes=be,this.entangledLanes=be,this.entanglements=hb(be),this.mutableSourceEagerHydrationData=null,this.interactionThreadID=o.unstable_getThreadID(),this.memoizedInteractions=new Set,this.pendingInteractionMap=new Map,a){case ZT:this._debugRootType="createBlockingRoot()";break;case Hb:this._debugRootType="createRoot()";break;case Bb:this._debugRootType="createLegacyRoot()";break}}function SF(n,a,l,u){var h=new xF(n,a,l),g=hF(a);return h.current=g,g.stateNode=h,Jb(g),h}function EF(n,a){var l=a._getVersion,u=l(a._source);n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[a,u]:n.mutableSourceEagerHydrationData.push(a,u)}function wF(n,a,l){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_i,key:u==null?null:""+u,children:n,containerInfo:a,implementation:l}}var Wx,$x;Wx=!1,$x={};function CF(n){if(!n)return Ai;var a=Ku(n),l=wz(a);if(a.tag===y){var u=a.type;if(Qa(u))return GT(a,u,l)}return l}function _F(n,a){{var l=Ku(n);if(l===void 0)throw typeof n.render=="function"?Error("Unable to find node on an unmounted component."):Error("Argument appears to not be a ReactComponent. Keys: "+Object.keys(n));var u=Y_(l);if(u===null)return null;if(u.mode&Vn){var h=je(l.type)||"Component";if(!$x[h]){$x[h]=!0;var g=kr;try{C(u),l.mode&Vn?d("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,h):d("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,h)}finally{g?C(g):x()}}}return u.stateNode}}function MF(n,a,l,u){return SF(n,a,l)}function lp(n,a,l,u){Mz(a,n);var h=a.current,g=Ii();typeof jest<"u"&&(tF(h),nR(h));var b=Ll(h),S=CF(l);a.context===null?a.context=S:a.pendingContext=S,sl&&kr!==null&&!Wx&&(Wx=!0,d(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
135
-
136
- Check the render method of %s.`,je(kr.type)||"Unknown"));var _=_l(g,b);return _.payload={element:n},u=u===void 0?null:u,u!==null&&(typeof u!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",u),_.callback=u),Ml(h,_),Nr(h,b,g),b}function qx(n){var a=n.current;if(!a.child)return null;switch(a.child.tag){case O:return a.child.stateNode;default:return a.child.stateNode}}function hR(n,a){var l=n.memoizedState;l!==null&&l.dehydrated!==null&&(l.retryLane=x8(l.retryLane,a))}function Gx(n,a){hR(n,a);var l=n.alternate;l&&hR(l,a)}function TF(n){if(n.tag===U){var a=Ii(),l=cb;Nr(n,l,a),Gx(n,l)}}function kF(n){if(n.tag===U){var a=Ii(),l=db;Nr(n,l,a),Gx(n,l)}}function RF(n){if(n.tag===U){var a=Ii(),l=Ll(n);Nr(n,l,a),Gx(n,l)}}function LF(n,a){try{return a()}finally{}}function vR(n){var a=jA(n);return a===null?null:a.tag===ae?a.stateNode.instance:a.stateNode}var mR=function(n){return!1};function OF(n){return mR(n)}var gR=null,yR=null,bR=null,xR=null,SR=null,ER=null,wR=null,CR=null;{var _R=function(n,a,l){var u=a[l],h=Array.isArray(n)?n.slice():t({},n);return l+1===a.length?(Array.isArray(h)?h.splice(u,1):delete h[u],h):(h[u]=_R(n[u],a,l+1),h)},MR=function(n,a){return _R(n,a,0)},TR=function(n,a,l,u){var h=a[u],g=Array.isArray(n)?n.slice():t({},n);if(u+1===a.length){var b=l[u];g[b]=g[h],Array.isArray(g)?g.splice(h,1):delete g[h]}else g[h]=TR(n[h],a,l,u+1);return g},kR=function(n,a,l){if(a.length!==l.length){f("copyWithRename() expects paths of the same length");return}else for(var u=0;u<l.length-1;u++)if(a[u]!==l[u]){f("copyWithRename() expects paths to be the same except for the deepest key");return}return TR(n,a,l,0)},RR=function(n,a,l,u){if(l>=a.length)return u;var h=a[l],g=Array.isArray(n)?n.slice():t({},n);return g[h]=RR(n[h],a,l+1,u),g},LR=function(n,a,l){return RR(n,a,0,l)},Yx=function(n,a){for(var l=n.memoizedState;l!==null&&a>0;)l=l.next,a--;return l};gR=function(n,a,l,u){var h=Yx(n,a);if(h!==null){var g=LR(h.memoizedState,l,u);h.memoizedState=g,h.baseState=g,n.memoizedProps=t({},n.memoizedProps),Nr(n,nn,Hn)}},yR=function(n,a,l){var u=Yx(n,a);if(u!==null){var h=MR(u.memoizedState,l);u.memoizedState=h,u.baseState=h,n.memoizedProps=t({},n.memoizedProps),Nr(n,nn,Hn)}},bR=function(n,a,l,u){var h=Yx(n,a);if(h!==null){var g=kR(h.memoizedState,l,u);h.memoizedState=g,h.baseState=g,n.memoizedProps=t({},n.memoizedProps),Nr(n,nn,Hn)}},xR=function(n,a,l){n.pendingProps=LR(n.memoizedProps,a,l),n.alternate&&(n.alternate.pendingProps=n.pendingProps),Nr(n,nn,Hn)},SR=function(n,a){n.pendingProps=MR(n.memoizedProps,a),n.alternate&&(n.alternate.pendingProps=n.pendingProps),Nr(n,nn,Hn)},ER=function(n,a,l){n.pendingProps=kR(n.memoizedProps,a,l),n.alternate&&(n.alternate.pendingProps=n.pendingProps),Nr(n,nn,Hn)},wR=function(n){Nr(n,nn,Hn)},CR=function(n){mR=n}}function DF(n){var a=Y_(n);return a===null?null:a.stateNode}function PF(n){return null}function AF(){return kr}function NF(n){var a=n.findFiberByHostInstance,l=s.ReactCurrentDispatcher;return _z({bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:gR,overrideHookStateDeletePath:yR,overrideHookStateRenamePath:bR,overrideProps:xR,overridePropsDeletePath:SR,overridePropsRenamePath:ER,setSuspenseHandler:CR,scheduleUpdate:wR,currentDispatcherRef:l,findHostInstanceByFiber:DF,findFiberByHostInstance:a||PF,findHostInstancesForRefresh:oF,scheduleRefresh:iF,scheduleRoot:aF,setRefreshHandler:rF,getCurrentFiber:AF})}function OR(n,a){this._internalRoot=DR(n,Hb,a)}function Zx(n,a,l){this._internalRoot=DR(n,a,l)}OR.prototype.render=Zx.prototype.render=function(n){var a=this._internalRoot;{typeof arguments[1]=="function"&&d("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var l=a.containerInfo;if(l.nodeType!==Rr){var u=vR(a.current);u&&u.parentNode!==l&&d("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}lp(n,a,null,null)},OR.prototype.unmount=Zx.prototype.unmount=function(){typeof arguments[0]=="function"&&d("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=this._internalRoot,a=n.containerInfo;lp(null,n,null,function(){BT(a)})};function DR(n,a,l){var u=l!=null&&l.hydrate===!0,h=l!=null&&l.hydrationOptions||null,g=l!=null&&l.hydrationOptions!=null&&l.hydrationOptions.mutableSources||null,b=MF(n,a,u);Ez(b.current,n);var S=n.nodeType;{var _=n.nodeType===Rr?n.parentNode:n;fT(_)}if(g)for(var N=0;N<g.length;N++){var z=g[N];EF(b,z)}return b}function zF(n,a){return new Zx(n,Bb,a)}function Dc(n){return!!(n&&(n.nodeType===br||n.nodeType===ba||n.nodeType===lv||n.nodeType===Rr&&n.nodeValue===" react-mount-point-unstable "))}var IF=s.ReactCurrentOwner,PR,AR=!1;PR=function(n){if(n._reactRootContainer&&n.nodeType!==Rr){var a=vR(n._reactRootContainer._internalRoot.current);a&&a.parentNode!==n&&d("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var l=!!n._reactRootContainer,u=ng(n),h=!!(u&&El(u));h&&!l&&d("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),n.nodeType===br&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&d("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function ng(n){return n?n.nodeType===ba?n.documentElement:n.firstChild:null}function UF(n){var a=ng(n);return!!(a&&a.nodeType===br&&a.hasAttribute(qr))}function FF(n,a){var l=a||UF(n);if(!l)for(var u=!1,h;h=n.lastChild;)!u&&h.nodeType===br&&h.hasAttribute(qr)&&(u=!0,d("render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")),n.removeChild(h);return l&&!a&&!AR&&(AR=!0,f("render(): Calling ReactDOM.render() to hydrate server-rendered markup will stop working in React v18. Replace the ReactDOM.render() call with ReactDOM.hydrate() if you want React to attach to the server HTML.")),zF(n,l?{hydrate:!0}:void 0)}function jF(n,a){n!==null&&typeof n!="function"&&d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n)}function rg(n,a,l,u,h){PR(l),jF(h===void 0?null:h,"render");var g=l._reactRootContainer,b;if(g){if(b=g._internalRoot,typeof h=="function"){var _=h;h=function(){var N=qx(b);_.call(N)}}lp(a,b,n,h)}else{if(g=l._reactRootContainer=FF(l,u),b=g._internalRoot,typeof h=="function"){var S=h;h=function(){var N=qx(b);S.call(N)}}q2(function(){lp(a,b,n,h)})}return qx(b)}function BF(n){{var a=IF.current;if(a!==null&&a.stateNode!==null){var l=a.stateNode._warnedAboutRefsInRender;l||d("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",je(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===br?n:_F(n,"findDOMNode")}function HF(n,a,l){if(!Dc(a))throw Error("Target container is not a DOM element.");{var u=Bv(a)&&a._reactRootContainer===void 0;u&&d("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call createRoot(container, {hydrate: true}).render(element)?")}return rg(null,n,a,!0,l)}function VF(n,a,l){if(!Dc(a))throw Error("Target container is not a DOM element.");{var u=Bv(a)&&a._reactRootContainer===void 0;u&&d("You are calling ReactDOM.render() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return rg(null,n,a,!1,l)}function WF(n,a,l,u){if(!Dc(l))throw Error("Target container is not a DOM element.");if(!(n!=null&&OA(n)))throw Error("parentComponent must be a valid React Component");return rg(n,a,l,!1,u)}function $F(n){if(!Dc(n))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Bv(n)&&n._reactRootContainer===void 0;a&&d("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(n._reactRootContainer){{var l=ng(n),u=l&&!El(l);u&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return q2(function(){rg(null,null,n,!1,function(){n._reactRootContainer=null,BT(n)})}),!0}else{{var h=ng(n),g=!!(h&&El(h)),b=n.nodeType===br&&Dc(n.parentNode)&&!!n.parentNode._reactRootContainer;g&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",b?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}BA(TF),HA(kF),VA(RF),WA(LF);var NR=!1;(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&d("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),yA(wN),CA($2,CU,SU,wU);function zR(n,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Dc(a))throw Error("Target container is not a DOM element.");return wF(n,a,null,l)}function qF(n,a,l,u){return WF(n,a,l,u)}function GF(n,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return NR||(NR=!0,f('The ReactDOM.unstable_createPortal() alias has been deprecated, and will be removed in React 18+. Update your code to use ReactDOM.createPortal() instead. It has the exact same API, but without the "unstable_" prefix.')),zR(n,a,l)}var YF={Events:[El,cc,Hv,I_,U_,no,eg]},ZF=NF({findFiberByHostInstance:Ts,bundleType:1,version:uk,rendererPackageName:"react-dom"});if(!ZF&&ft&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var IR=window.location.protocol;/^(https?|file):$/.test(IR)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(IR==="file:"?`
137
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}fa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YF,fa.createPortal=zR,fa.findDOMNode=BF,fa.flushSync=Mx,fa.hydrate=HF,fa.render=VF,fa.unmountComponentAtNode=$F,fa.unstable_batchedUpdates=$2,fa.unstable_createPortal=GF,fa.unstable_renderSubtreeIntoContainer=qF,fa.version=uk}()});var oh=Mt((EJ,fw)=>{"use strict";G();function q3(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(q3)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(q3(),fw.exports=B3()):fw.exports=$3()});var Ey={};Ra(Ey,{Autocomplete:()=>jw,BicyclingLayer:()=>vw,Circle:()=>Dw,Data:()=>Pw,DirectionsRenderer:()=>Uw,DirectionsService:()=>M5,DistanceMatrixService:()=>T5,DrawingManager:()=>gw,GoogleMap:()=>qD,GoogleMapsMarkerClusterer:()=>fV,GoogleMarkerClusterer:()=>pV,GroundOverlay:()=>Sy,HeatmapLayer:()=>Nw,InfoBox:()=>xw,InfoWindow:()=>kw,KmlLayer:()=>Aw,LoadScript:()=>pw,LoadScriptNext:()=>LH,MapContext:()=>_n,Marker:()=>yw,MarkerClusterer:()=>bw,OverlayView:()=>is,Polygon:()=>Lw,Polyline:()=>Rw,Rectangle:()=>Ow,StandaloneSearchBox:()=>Fw,StreetViewPanorama:()=>zw,StreetViewService:()=>Iw,TrafficLayer:()=>hw,TransitLayer:()=>mw,useGoogleMap:()=>$D,useJsApiLoader:()=>DH,useLoadScript:()=>KD});import*as we from"react";import{createContext as mH,useContext as G3,PureComponent as WD,useState as gH,useEffect as yH}from"react";function $D(){Br(!!G3,"useGoogleMap is React hook and requires React version 16.8+");let e=G3(_n);return Br(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}function wH(e,t){Object.keys(e).forEach(function(o){return t(e[o],o)})}function _H(e,t,r){return EH(r,function(f,d,p){return typeof e[p]=="function"&&f.push(google.maps.event.addListener(t,d,e[p])),f},[])}function MH(e){google.maps.event.removeListener(e)}function Et(e=[]){e.forEach(MH)}function xt({updaterMap:e,eventMap:t,prevProps:r,nextProps:o,instance:s}){let f=_H(o,s,t);return CH(e,r,o,s),f}function GD(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]]);return r}function TH(e,t,r,o){function s(f){return f instanceof r?f:new r(function(d){d(f)})}return new(r||(r=Promise))(function(f,d){function p(E){try{y(o.next(E))}catch(w){d(w)}}function m(E){try{y(o.throw(E))}catch(w){d(w)}}function y(E){E.done?f(E.value):s(E.value).then(p,m)}y((o=o.apply(e,t||[])).next())})}function ZD({googleMapsApiKey:e,googleMapsClientId:t,version:r="weekly",language:o,region:s,libraries:f,channel:d,mapIds:p}){let m=[];return Br(e&&t||!(e&&t),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),e?m.push(`key=${e}`):t&&m.push(`client=${t}`),r&&m.push(`v=${r}`),o&&m.push(`language=${o}`),s&&m.push(`region=${s}`),f&&f.length&&m.push(`libraries=${f.sort().join(",")}`),d&&m.push(`channel=${d}`),p&&p.length&&m.push(`map_ids=${p.join(",")}`),m.push("callback=initMap"),`https://maps.googleapis.com/maps/api/js?${m.join("&")}`}function QD(){return we.createElement("div",null,"Loading...")}function KD({id:e=sh.id,version:t=sh.version,nonce:r,googleMapsApiKey:o,googleMapsClientId:s,language:f,region:d,libraries:p,preventGoogleFontsLoading:m,channel:y,mapIds:E}){let w=we.useRef(!1),[k,O]=we.useState(!1),[A,W]=we.useState(void 0);we.useEffect(function(){return w.current=!0,()=>{w.current=!1}},[]),we.useEffect(function(){ns&&m&&dw()},[m]),we.useEffect(function(){k&&Br(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")},[k]);let P=ZD({version:t,googleMapsApiKey:o,googleMapsClientId:s,language:f,region:d,libraries:p,channel:y,mapIds:E});we.useEffect(function(){if(!ns)return;function T(){w.current&&(O(!0),K3=P)}if(window.google&&window.google.maps&&K3===P){T();return}YD({id:e,url:P,nonce:r}).then(T).catch(function(U){w.current&&W(U),console.warn(`
138
- There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${o||"-"}) or Client ID (${s||"-"})
139
- Otherwise it is a Network issue.
140
- `),console.error(U)})},[e,P,r]);let R=we.useRef();return we.useEffect(function(){R.current&&p!==R.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),R.current=p},[p]),{isLoaded:k,loadError:A,url:P}}function RH(e){var{loadingElement:t,onLoad:r,onError:o,onUnmount:s,children:f}=e,d=GD(e,["loadingElement","onLoad","onError","onUnmount","children"]);let{isLoaded:p,loadError:m}=KD(d);return we.useEffect(function(){p&&typeof r=="function"&&r()},[p,r]),we.useEffect(function(){m&&typeof o=="function"&&o(m)},[m,o]),we.useEffect(function(){return()=>{s&&s()}},[s]),p?f:t||kH}function DH({id:e=sh.id,version:t=sh.version,nonce:r,googleMapsApiKey:o,language:s,region:f,libraries:d,preventGoogleFontsLoading:p,mapIds:m}){let y=we.useRef(!1),[E,w]=we.useState(!1),[k,O]=we.useState(void 0);we.useEffect(function(){return y.current=!0,()=>{y.current=!1}},[]);let A=we.useMemo(function(){return new ts({id:e,apiKey:o,version:t,libraries:d,language:s,region:f,mapIds:m,nonce:r})},[e,o,t,d,s,f,m,r]);we.useEffect(function(){E||A.load().then(function(){y.current&&w(!0)}).catch(function(D){O(D)})},[]),we.useEffect(function(){ns&&p&&dw()},[p]);let W=we.useRef();return we.useEffect(function(){W.current&&d!==W.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),W.current=d},[d]),{isLoaded:E,loadError:k}}function WH(e,t,r){r===void 0&&(r={});var o={type:"Feature"};return(r.id===0||r.id)&&(o.id=r.id),r.bbox&&(o.bbox=r.bbox),o.properties=t||{},o.geometry=e,o}function XD(e,t,r){if(r===void 0&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!uD(e[0])||!uD(e[1]))throw new Error("coordinates must contain numbers");var o={type:"Point",coordinates:e};return WH(o,t,r)}function e5(e,t){t===void 0&&(t={});var r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function t5(e,t){t===void 0&&(t="kilometers");var r=JD[t];if(!r)throw new Error(t+" units is invalid");return e*r}function $H(e,t){t===void 0&&(t="kilometers");var r=JD[t];if(!r)throw new Error(t+" units is invalid");return e/r}function yy(e){var t=e%360;return t*Math.PI/180}function qH(e,t,r){if(t===void 0&&(t="kilometers"),r===void 0&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return t5($H(e,t),r)}function uD(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function n5(e){if(!e)throw new Error("geojson is required");switch(e.type){case"Feature":return r5(e);case"FeatureCollection":return GH(e);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return Sw(e);default:throw new Error("unknown GeoJSON type")}}function r5(e){var t={type:"Feature"};return Object.keys(e).forEach(function(r){switch(r){case"type":case"properties":case"geometry":return;default:t[r]=e[r]}}),t.properties=i5(e.properties),t.geometry=Sw(e.geometry),t}function i5(e){var t={};return e&&Object.keys(e).forEach(function(r){var o=e[r];typeof o=="object"?o===null?t[r]=null:Array.isArray(o)?t[r]=o.map(function(s){return s}):t[r]=i5(o):t[r]=o}),t}function GH(e){var t={type:"FeatureCollection"};return Object.keys(e).forEach(function(r){switch(r){case"type":case"features":return;default:t[r]=e[r]}}),t.features=e.features.map(function(r){return r5(r)}),t}function Sw(e){var t={type:e.type};return e.bbox&&(t.bbox=e.bbox),e.type==="GeometryCollection"?(t.geometries=e.geometries.map(function(r){return Sw(r)}),t):(t.coordinates=a5(e.coordinates),t)}function a5(e){var t=e;return typeof t[0]!="object"?t.slice():t.map(function(r){return a5(r)})}function o5(e,t,r){if(e!==null)for(var o,s,f,d,p,m,y,E=0,w=0,k,O=e.type,A=O==="FeatureCollection",W=O==="Feature",P=A?e.features.length:1,R=0;R<P;R++){y=A?e.features[R].geometry:W?e.geometry:e,k=y?y.type==="GeometryCollection":!1,p=k?y.geometries.length:1;for(var D=0;D<p;D++){var T=0,M=0;if(d=k?y.geometries[D]:y,d!==null){m=d.coordinates;var U=d.type;switch(E=r&&(U==="Polygon"||U==="MultiPolygon")?1:0,U){case null:break;case"Point":if(t(m,w,R,T,M)===!1)return!1;w++,T++;break;case"LineString":case"MultiPoint":for(o=0;o<m.length;o++){if(t(m[o],w,R,T,M)===!1)return!1;w++,U==="MultiPoint"&&T++}U==="LineString"&&T++;break;case"Polygon":case"MultiLineString":for(o=0;o<m.length;o++){for(s=0;s<m[o].length-E;s++){if(t(m[o][s],w,R,T,M)===!1)return!1;w++}U==="MultiLineString"&&T++,U==="Polygon"&&M++}U==="Polygon"&&T++;break;case"MultiPolygon":for(o=0;o<m.length;o++){for(M=0,s=0;s<m[o].length;s++){for(f=0;f<m[o][s].length-E;f++){if(t(m[o][s][f],w,R,T,M)===!1)return!1;w++}M++}T++}break;case"GeometryCollection":for(o=0;o<d.geometries.length;o++)if(o5(d.geometries[o],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function YH(e,t){if(e.type==="Feature")t(e,0);else if(e.type==="FeatureCollection")for(var r=0;r<e.features.length&&t(e.features[r],r)!==!1;r++);}function l5(e){var t=[];return o5(e,function(r){t.push(r)}),t}function fD(e,t,r){r=r||[];for(var o=0;o<e;o++)r[o]=t;return r}function nV(e,t,r,o){var s=[],f=[],d=[],p=[],m=!1,y=o||cD,E=e.length,w=e[0].length,k=w>0,O=[];if(r)r=="kmrand"?s=eV(e,t):r=="kmpp"?s=tV(e,t):s=r;else for(var A={};s.length<t;){var W=Math.floor(Math.random()*E);A[W]||(A[W]=!0,s.push(e[W]))}do{fD(t,0,O);for(var P=0;P<E;P++){for(var R=1/0,D=0,T=0;T<t;T++){var p=k?XH(e[P],s[T]):Math.abs(e[P]-s[T]);p<=R&&(R=p,D=T)}d[P]=D,O[D]++}for(var M=[],f=[],U=0;U<t;U++)M[U]=k?fD(w,0,M[U]):0,f[U]=s[U];if(k){for(var Y=0;Y<t;Y++)s[Y]=[];for(var F=0;F<E;F++)for(var ne=d[F],ue=M[ne],Q=e[F],B=0;B<w;B++)ue[B]+=Q[B];m=!0;for(var ae=0;ae<t;ae++){for(var H=s[ae],K=M[ae],re=f[ae],le=O[ae],se=0;se<w;se++)H[se]=K[se]/le||0;if(m){for(var ce=0;ce<w;ce++)if(re[ce]!=H[ce]){m=!1;break}}}}else{for(var de=0;de<E;de++){var ve=d[de];M[ve]+=e[de]}for(var Ce=0;Ce<t;Ce++)s[Ce]=M[Ce]/O[Ce]||0;m=!0;for(var _e=0;_e<t;_e++)if(f[_e]!=s[_e]){m=!1;break}}m=m||--y<=0}while(!m);return{it:cD-y,k:t,idxs:d,centroids:s}}function iV(e,t){t===void 0&&(t={});var r=e.features.length;t.numberOfClusters=t.numberOfClusters||Math.round(Math.sqrt(r/2)),t.numberOfClusters>r&&(t.numberOfClusters=r),t.mutate!==!0&&(e=n5(e));var o=l5(e),s=o.slice(0,t.numberOfClusters),f=rV(o,t.numberOfClusters,s),d={};return f.centroids.forEach(function(p,m){d[m]=p}),YH(e,function(p,m){var y=f.idxs[m];p.properties.cluster=y,p.properties.centroid=d[y]}),e}function dD(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function aV(e,t,r){r===void 0&&(r={});var o=dD(e),s=dD(t),f=yy(s[1]-o[1]),d=yy(s[0]-o[0]),p=yy(o[1]),m=yy(s[1]),y=Math.pow(Math.sin(f/2),2)+Math.pow(Math.sin(d/2),2)*Math.cos(p)*Math.cos(m);return t5(2*Math.atan2(Math.sqrt(y),Math.sqrt(1-y)),r.units)}function lV(e,t,r){r===void 0&&(r={}),r.mutate!==!0&&(e=n5(e)),r.minPoints=r.minPoints||3;var o=new oV.DBSCAN,s=o.run(l5(e),qH(t,r.units),r.minPoints,aV),f=-1;return s.forEach(function(d){f++,d.forEach(function(p){var m=e.features[p];m.properties||(m.properties={}),m.properties.cluster=f,m.properties.dbscan="core"})}),o.noise.forEach(function(d){var p=e.features[d];p.properties||(p.properties={}),p.properties.cluster?p.properties.dbscan="edge":p.properties.dbscan="noise"}),e}function df(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]]);return r}function cV(e,t){for(let r in t.prototype)e.prototype[r]=t.prototype[r]}function hV(e,t){return typeof t=="function"?t(e.offsetWidth,e.offsetHeight):{}}function LD(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function OD(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}function SV(){}var by,bH,xH,SH,Br,_n,EH,CH,Y3,Z3,qD,ns,YD,Q3,dw,lh,sh,pw,K3,kH,LH,OH,J3,ts,X3,eD,hw,vw,mw,tD,nD,gw,rD,iD,yw,PH,AH,NH,zH,IH,UH,FH,jH,BH,HH,aD,oD,bw,VH,lD,sD,xw,yi,JD,s5,u5,ZH,QH,KH,JH,c5,XH,eV,tV,cD,rV,f5,d5,p5,h5,Ew,oV,v5,sV,pD,rs,m5,ww,g5,uV,y5,b5,uh,ch,x5,S5,E5,w5,hD,C5,Cw,_w,Mw,xy,ff,_5,Tw,fV,dV,pV,vD,mD,kw,gD,yD,Rw,bD,xD,Lw,SD,ED,Ow,wD,CD,Dw,_D,MD,Pw,TD,kD,Aw,vV,mV,RD,gV,yV,bV,xV,is,DD,PD,Sy,AD,ND,Nw,zD,ID,zw,Iw,M5,UD,FD,Uw,T5,jD,BD,Fw,HD,VD,jw,wy=tt(()=>{G();by=Fi(oh()),bH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xH=process.env.NODE_ENV,SH=function(e,t,r,o,s,f,d,p){if(xH!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var m;if(t===void 0)m=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var y=[r,o,s,f,d,p],E=0;m=new Error(t.replace(/%s/g,function(){return y[E++]})),m.name="Invariant Violation"}throw m.framesToPop=1,m}},Br=SH,_n=mH(null);EH=(e,t,r)=>Object.keys(e).reduce(function(s,f){return t(s,e[f],f)},r);CH=(e,t,r,o)=>{let s={};return wH(e,(d,p)=>{let m=r[p];m!==t[p]&&(s[p]=m,d(o,m))}),s};Y3={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},Z3={extraMapTypes(e,t){t.forEach(function(o,s){e.mapTypes.set(String(s),o)})},center(e,t){e.setCenter(t)},clickableIcons(e,t){e.setClickableIcons(t)},heading(e,t){e.setHeading(t)},mapTypeId(e,t){e.setMapTypeId(t)},options(e,t){e.setOptions(t)},streetView(e,t){e.setStreetView(t)},tilt(e,t){e.setTilt(t)},zoom(e,t){e.setZoom(t)}},qD=class extends we.PureComponent{constructor(){super(...arguments);this.state={map:null},this.registeredEvents=[],this.mapRef=null,this.getInstance=()=>this.mapRef===null?null:new google.maps.Map(this.mapRef,this.props.options),this.panTo=t=>{let r=this.getInstance();r&&r.panTo(t)},this.setMapCallback=()=>{this.state.map!==null&&this.props.onLoad&&this.props.onLoad(this.state.map)},this.getRef=t=>{this.mapRef=t}}componentDidMount(){let t=this.getInstance();this.registeredEvents=xt({updaterMap:Z3,eventMap:Y3,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{map:t}},this.setMapCallback)}componentDidUpdate(t){this.state.map!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:Z3,eventMap:Y3,prevProps:t,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){this.state.map!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),Et(this.registeredEvents))}render(){return we.createElement("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},we.createElement(_n.Provider,{value:this.state.map},this.state.map!==null?this.props.children:we.createElement(we.Fragment,null)))}};ns=typeof document<"u",YD=({url:e,id:t,nonce:r})=>ns?new Promise(function(s,f){let d=document.getElementById(t),p=window;if(d){let y=d.getAttribute("data-state");if(d.src===e&&y!=="error"){if(y==="ready")return s(t);{let E=p.initMap,w=d.onerror;p.initMap=function(){E&&E(),s(t)},d.onerror=function(k){w&&w(k),f(k)};return}}else d.remove()}let m=document.createElement("script");m.type="text/javascript",m.src=e,m.id=t,m.async=!0,m.nonce=r,m.onerror=function(E){m.setAttribute("data-state","error"),f(E)},p.initMap=function(){m.setAttribute("data-state","ready"),s(t)},document.head.appendChild(m)}).catch(o=>{throw console.error("injectScript error: ",o),o}):Promise.reject(new Error("document is undefined")),Q3=e=>e.href&&e.href.indexOf("https://fonts.googleapis.com/css?family=Roboto")===0?!0:e.tagName.toLowerCase()==="style"&&e.styleSheet&&e.styleSheet.cssText&&e.styleSheet.cssText.replace(`\r
141
- `,"").indexOf(".gm-style")===0?(e.styleSheet.cssText="",!0):e.tagName.toLowerCase()==="style"&&e.innerHTML&&e.innerHTML.replace(`\r
142
- `,"").indexOf(".gm-style")===0?(e.innerHTML="",!0):e.tagName.toLowerCase()==="style"&&!e.styleSheet&&!e.innerHTML,dw=()=>{let e=document.getElementsByTagName("head")[0],t=e.insertBefore.bind(e);e.insertBefore=function(s,f){Q3(s)||Reflect.apply(t,e,[s,f])};let r=e.appendChild.bind(e);e.appendChild=function(s){Q3(s)||Reflect.apply(r,e,[s])}};lh=!1;sh={id:"script-loader",version:"weekly"},pw=class extends we.PureComponent{constructor(){super(...arguments);this.check=we.createRef(),this.state={loaded:!1},this.cleanupCallback=()=>{delete window.google.maps,this.injectScript()},this.isCleaningUp=()=>TH(this,void 0,void 0,function*(){function t(r){if(!lh)r();else if(ns){let o=window.setInterval(function(){lh||(window.clearInterval(o),r())},1)}}return new Promise(t)}),this.cleanup=()=>{lh=!0;let t=document.getElementById(this.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(o){return typeof o.src=="string"&&o.src.includes("maps.googleapis")}).forEach(function(o){o.parentNode&&o.parentNode.removeChild(o)}),Array.prototype.slice.call(document.getElementsByTagName("link")).filter(function(o){return o.href==="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"}).forEach(function(o){o.parentNode&&o.parentNode.removeChild(o)}),Array.prototype.slice.call(document.getElementsByTagName("style")).filter(function(o){return o.innerText!==void 0&&o.innerText.length>0&&o.innerText.includes(".gm-")}).forEach(function(o){o.parentNode&&o.parentNode.removeChild(o)})},this.injectScript=()=>{this.props.preventGoogleFontsLoading&&dw(),Br(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id);let t={id:this.props.id,nonce:this.props.nonce,url:ZD(this.props)};YD(t).then(()=>{this.props.onLoad&&this.props.onLoad(),this.setState(function(){return{loaded:!0}})}).catch(r=>{this.props.onError&&this.props.onError(r),console.error(`
143
- There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${this.props.googleMapsApiKey||"-"}) or Client ID (${this.props.googleMapsClientId||"-"}) to <LoadScript />
144
- Otherwise it is a Network issue.
145
- `)})}}componentDidMount(){if(ns){if(window.google&&window.google.maps&&!lh){console.error("google api is already presented");return}this.isCleaningUp().then(this.injectScript).catch(function(r){console.error("Error at injecting script after cleaning up: ",r)})}}componentDidUpdate(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),ns&&t.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))}componentWillUnmount(){if(ns){this.cleanup();let t=()=>{this.check.current||(delete window.google,lh=!1)};window.setTimeout(t,1),this.props.onUnmount&&this.props.onUnmount()}}render(){return we.createElement(we.Fragment,null,we.createElement("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||we.createElement(QD,null))}};pw.defaultProps=sh;kH=we.createElement(QD,null);LH=we.memo(RH),OH=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,s,f;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(s=o;s--!==0;)if(!e(t[s],r[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(f=Object.keys(t),o=f.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,f[s]))return!1;for(s=o;s--!==0;){var d=f[s];if(!e(t[d],r[d]))return!1}return!0}return t!==t&&r!==r},J3="__googleMapsScriptId",ts=class{constructor({apiKey:t,channel:r,client:o,id:s=J3,libraries:f=[],language:d,region:p,version:m,mapIds:y,nonce:E,retries:w=3,url:k="https://maps.googleapis.com/maps/api/js"}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=m,this.apiKey=t,this.channel=r,this.client=o,this.id=s||J3,this.libraries=f,this.language=d,this.region=p,this.mapIds=y,this.nonce=E,this.retries=w,this.url=k,ts.instance){if(!OH(this.options,ts.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(ts.instance.options)}`);return ts.instance}ts.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),t}deleteScript(){let t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,r)=>{this.loadCallback(o=>{o?r(o.error):t(window.google)})})}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}let t=this.createUrl(),r=document.createElement("script");r.id=this.id,r.type="text/javascript",r.src=t,r.onerror=this.loadErrorCallback.bind(this),r.defer=!0,r.async=!0,this.nonce&&(r.nonce=this.nonce),document.head.appendChild(r)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){let r=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${r} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},r)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}};X3={},eD={options(e,t){e.setOptions(t)}},hw=class extends WD{constructor(){super(...arguments);this.state={trafficLayer:null},this.setTrafficLayerCallback=()=>{this.state.trafficLayer!==null&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)},this.registeredEvents=[]}componentDidMount(){let t=new google.maps.TrafficLayer(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=xt({updaterMap:eD,eventMap:X3,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{trafficLayer:t}},this.setTrafficLayerCallback)}componentDidUpdate(t){this.state.trafficLayer!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:eD,eventMap:X3,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){this.state.trafficLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),Et(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}};hw.contextType=_n;vw=class extends we.PureComponent{constructor(){super(...arguments);this.state={bicyclingLayer:null},this.setBicyclingLayerCallback=()=>{this.state.bicyclingLayer!==null&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))}}componentDidMount(){let t=new google.maps.BicyclingLayer;this.setState(function(){return{bicyclingLayer:t}},this.setBicyclingLayerCallback)}componentWillUnmount(){this.state.bicyclingLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}};vw.contextType=_n;mw=class extends we.PureComponent{constructor(){super(...arguments);this.state={transitLayer:null},this.setTransitLayerCallback=()=>{this.state.transitLayer!==null&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))}}componentDidMount(){let t=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:t}},this.setTransitLayerCallback)}componentWillUnmount(){this.state.transitLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}};mw.contextType=_n;tD={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},nD={drawingMode(e,t){e.setDrawingMode(t)},options(e,t){e.setOptions(t)}},gw=class extends we.PureComponent{constructor(t){super(t);this.registeredEvents=[],this.state={drawingManager:null},this.setDrawingManagerCallback=()=>{this.state.drawingManager!==null&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)},Br(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){let t=new google.maps.drawing.DrawingManager(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=xt({updaterMap:nD,eventMap:tD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{drawingManager:t}},this.setDrawingManagerCallback)}componentDidUpdate(t){this.state.drawingManager!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:nD,eventMap:tD,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){this.state.drawingManager!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),Et(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return we.createElement(we.Fragment,null)}};gw.contextType=_n;rD={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},iD={animation(e,t){e.setAnimation(t)},clickable(e,t){e.setClickable(t)},cursor(e,t){e.setCursor(t)},draggable(e,t){e.setDraggable(t)},icon(e,t){e.setIcon(t)},label(e,t){e.setLabel(t)},map(e,t){e.setMap(t)},opacity(e,t){e.setOpacity(t)},options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},shape(e,t){e.setShape(t)},title(e,t){e.setTitle(t)},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}},yw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[]}componentDidMount(){let t=Object.assign(Object.assign(Object.assign({},this.props.options||{}),this.props.clusterer?{}:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(t),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=xt({updaterMap:iD,eventMap:rD,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)}componentDidUpdate(t){this.marker&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:iD,eventMap:rD,prevProps:t,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),Et(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){let t=null;return this.props.children&&(t=we.Children.map(this.props.children,r=>we.isValidElement(r)?we.cloneElement(r,{anchor:this.marker}):r)),t||null}};yw.contextType=_n;PH=function(){function e(t,r){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=r,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(t.getMap())}return e.prototype.onAdd=function(){var t=this,r,o;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",function(){o=r}),google.maps.event.addDomListener(this.div,"mousedown",function(){r=!0,o=!1}),google.maps.event.addDomListener(this.div,"click",function(s){if(r=!1,!o){var f=t.cluster.getClusterer();if(google.maps.event.trigger(f,"click",t.cluster),google.maps.event.trigger(f,"clusterclick",t.cluster),f.getZoomOnClick()){var d=f.getMaxZoom(),p=t.cluster.getBounds();f.getMap().fitBounds(p),setTimeout(function(){f.getMap().fitBounds(p),d!==null&&f.getMap().getZoom()>d&&f.getMap().setZoom(d+1)},100)}s.cancelBubble=!0,s.stopPropagation&&s.stopPropagation()}}),google.maps.event.addDomListener(this.div,"mouseover",function(){google.maps.event.trigger(t.cluster.getClusterer(),"mouseover",t.cluster)}),google.maps.event.addDomListener(this.div,"mouseout",function(){google.maps.event.trigger(t.cluster.getClusterer(),"mouseout",t.cluster)})},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),this.boundsChangedListener!==null&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.visible&&this.div!==null&&this.center){var t=this.getPosFromLatLng(this.center),r=t.x,o=t.y;this.div.style.top=o+"px",this.div.style.left=r+"px"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){if(this.div&&this.center){var t="",r="",o=this.backgroundPosition.split(" "),s=parseInt(o[0].replace(/^\s+|\s+$/g,""),10),f=parseInt(o[1].replace(/^\s+|\s+$/g,""),10),d=this.getPosFromLatLng(this.center);this.sums===null||typeof this.sums.title>"u"||this.sums.title===""?r=this.cluster.getClusterer().getTitle():r=this.sums.title,this.div.style.cssText=this.createCss(d),t="<img alt='"+r+"' src='"+this.url+"' style='position: absolute; top: "+f+"px; left: "+s+"px; ",this.cluster.getClusterer().enableRetinaIcons||(t+="clip: rect("+-1*f+"px, "+(-1*s+this.width)+"px, "+(-1*f+this.height)+"px, "+-1*s+"px);"),t+="'>",this.div.innerHTML=t+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=r,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(t){this.sums=t;var r=this.cluster.getClusterer().getStyles(),o=r[Math.min(r.length-1,Math.max(0,t.index-1))];this.url=o.url,this.height=o.height,this.width=o.width,o.className&&(this.className=this.clusterClassName+" "+o.className),this.anchorText=o.anchorText||[0,0],this.anchorIcon=o.anchorIcon||[this.height/2,this.width/2],this.textColor=o.textColor||"black",this.textSize=o.textSize||11,this.textDecoration=o.textDecoration||"none",this.fontWeight=o.fontWeight||"bold",this.fontStyle=o.fontStyle||"normal",this.fontFamily=o.fontFamily||"Arial,sans-serif",this.backgroundPosition=o.backgroundPosition||"0 0"},e.prototype.setCenter=function(t){this.center=t},e.prototype.createCss=function(t){var r=[];return r.push("cursor: pointer;"),r.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),r.push("width: "+this.width+"px; height: "+this.height+"px;"),r.join("")},e.prototype.getPosFromLatLng=function(t){var r=this.getProjection().fromLatLngToDivPixel(t);return r.x-=this.anchorIcon[1],r.y-=this.anchorIcon[0],r},e}(),AH=function(){function e(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new PH(this,this.markerClusterer.getStyles())}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),r=this.getMarkers(),o=0;o<r.length;o++){var s=r[o].getPosition();s&&t.extend(s)}return t},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;if(this.center){if(this.averageCenter){var r=t.getPosition();if(r){var o=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(o-1)+r.lat())/o,(this.center.lng()*(o-1)+r.lng())/o),this.calculateBounds()}}}else{var r=t.getPosition();r&&(this.center=r,this.calculateBounds())}t.isAdded=!0,this.markers.push(t);var s=this.markers.length,f=this.markerClusterer.getMaxZoom(),d=this.map.getZoom();if(f!==null&&typeof d<"u"&&d>f)t.getMap()!==this.map&&t.setMap(this.map);else if(s<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(s===this.minClusterSize)for(var p=0;p<s;p++)this.markers[p].setMap(null);else t.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(t){if(this.bounds!==null){var r=t.getPosition();if(r)return this.bounds.contains(r)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var t=this.markers.length,r=this.markerClusterer.getMaxZoom(),o=this.map.getZoom();if(r!==null&&typeof o<"u"&&o>r){this.clusterIcon.hide();return}if(t<this.minClusterSize){this.clusterIcon.hide();return}this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show()},e.prototype.isMarkerAlreadyAdded=function(t){if(this.markers.includes)return this.markers.includes(t);for(var r=0;r<this.markers.length;r++)if(t===this.markers[r])return!0;return!1},e}(),NH=function(t,r){var o=t.length,s=o.toString().length,f=Math.min(s,r);return{text:o.toString(),index:f,title:""}},zH=2e3,IH=500,UH="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",FH="png",jH=[53,56,66,78,90],BH="cluster",HH=function(){function e(t,r,o){r===void 0&&(r=[]),o===void 0&&(o={}),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=o.gridSize||60,this.minClusterSize=o.minimumClusterSize||2,this.maxZoom=o.maxZoom||null,this.styles=o.styles||[],this.title=o.title||"",this.zoomOnClick=!0,o.zoomOnClick!==void 0&&(this.zoomOnClick=o.zoomOnClick),this.averageCenter=!1,o.averageCenter!==void 0&&(this.averageCenter=o.averageCenter),this.ignoreHidden=!1,o.ignoreHidden!==void 0&&(this.ignoreHidden=o.ignoreHidden),this.enableRetinaIcons=!1,o.enableRetinaIcons!==void 0&&(this.enableRetinaIcons=o.enableRetinaIcons),this.imagePath=o.imagePath||UH,this.imageExtension=o.imageExtension||FH,this.imageSizes=o.imageSizes||jH,this.calculator=o.calculator||NH,this.batchSize=o.batchSize||zH,this.batchSizeIE=o.batchSizeIE||IH,this.clusterClass=o.clusterClass||BH,navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(r,!0),this.setMap(t)}return e.prototype.onAdd=function(){var t=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){t.resetViewport(!1),(t.getMap().getZoom()===(t.get("minZoom")||0)||t.getMap().getZoom()===t.get("maxZoom"))&&google.maps.event.trigger(t,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){t.redraw()})]},e.prototype.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(var t=0;t<this.clusters.length;t++)this.clusters[t].remove();this.clusters=[];for(var t=0;t<this.listeners.length;t++)google.maps.event.removeListener(this.listeners[t]);this.listeners=[],this.activeMap=null,this.ready=!1},e.prototype.draw=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:this.imagePath+(t+1)+"."+this.imageExtension,height:this.imageSizes[t],width:this.imageSizes[t]})},e.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),r=new google.maps.LatLngBounds,o=0;o<t.length;o++){var s=t[o].getPosition();s&&r.extend(s)}this.getMap().fitBounds(r)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(t){this.gridSize=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize=t},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(t){this.maxZoom=t},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(t){this.styles=t},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(t){this.title=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(t){this.zoomOnClick=t},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(t){this.averageCenter=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(t){this.imageExtension=t},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(t){this.imagePath=t},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(t){this.imageSizes=t},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(t){this.calculator=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE=t},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(t){this.clusterClass=t},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(t,r){this.pushMarkerTo(t),r||this.redraw()},e.prototype.addMarkers=function(t,r){for(var o in t)t.hasOwnProperty(o)&&this.pushMarkerTo(t[o]);r||this.redraw()},e.prototype.pushMarkerTo=function(t){var r=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",function(){r.ready&&(t.isAdded=!1,r.repaint())}),t.isAdded=!1,this.markers.push(t)},e.prototype.removeMarker_=function(t){var r=-1;if(this.markers.indexOf)r=this.markers.indexOf(t);else for(var o=0;o<this.markers.length;o++)if(t===this.markers[o]){r=o;break}return r===-1?!1:(t.setMap(null),this.markers.splice(r,1),!0)},e.prototype.removeMarker=function(t,r){var o=this.removeMarker_(t);return!r&&o&&this.repaint(),o},e.prototype.removeMarkers=function(t,r){for(var o=!1,s=0;s<t.length;s++)o=o||this.removeMarker_(t[s]);return!r&&o&&this.repaint(),o},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.prototype.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var o=0;o<t.length;o++)t[o].remove()},0)},e.prototype.getExtendedBounds=function(t){var r=this.getProjection(),o=r.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));o.x+=this.gridSize,o.y-=this.gridSize;var s=r.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));return s.x-=this.gridSize,s.y+=this.gridSize,t.extend(r.fromDivPixelToLatLng(o)),t.extend(r.fromDivPixelToLatLng(s)),t},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(t){for(var r=0;r<this.clusters.length;r++)this.clusters[r].remove();this.clusters=[];for(var r=0;r<this.markers.length;r++){var o=this.markers[r];o.isAdded=!1,t&&o.setMap(null)}},e.prototype.distanceBetweenPoints=function(t,r){var o=6371,s=(r.lat()-t.lat())*Math.PI/180,f=(r.lng()-t.lng())*Math.PI/180,d=Math.sin(s/2)*Math.sin(s/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(r.lat()*Math.PI/180)*Math.sin(f/2)*Math.sin(f/2);return o*(2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d)))},e.prototype.isMarkerInBounds=function(t,r){var o=t.getPosition();return o?r.contains(o):!1},e.prototype.addToClosestCluster=function(t){for(var r,o=4e4,s=null,f=0;f<this.clusters.length;f++){r=this.clusters[f];var d=r.getCenter(),p=t.getPosition();if(d&&p){var m=this.distanceBetweenPoints(d,p);m<o&&(o=m,s=r)}}s&&s.isMarkerInClusterBounds(t)?s.addMarker(t):(r=new AH(this),r.addMarker(t),this.clusters.push(r))},e.prototype.createClusters=function(t){var r=this;if(!!this.ready){t===0&&(google.maps.event.trigger(this,"clusteringbegin",this),this.timerRefStatic!==null&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var o=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),s=this.getExtendedBounds(o),f=Math.min(t+this.batchSize,this.markers.length),d=t;d<f;d++){var p=this.markers[d];!p.isAdded&&this.isMarkerInBounds(p,s)&&(!this.ignoreHidden||this.ignoreHidden&&p.getVisible())&&this.addToClosestCluster(p)}if(f<this.markers.length)this.timerRefStatic=window.setTimeout(function(){r.createClusters(f)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var d=0;d<this.clusters.length;d++)this.clusters[d].updateIcon()}}},e.prototype.extend=function(t,r){return function(s){for(var f in s.prototype)this.prototype[f]=s.prototype[f];return this}.apply(t,[r])},e}(),aD={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},oD={averageCenter(e,t){e.setAverageCenter(t)},batchSizeIE(e,t){e.setBatchSizeIE(t)},calculator(e,t){e.setCalculator(t)},clusterClass(e,t){e.setClusterClass(t)},enableRetinaIcons(e,t){e.setEnableRetinaIcons(t)},gridSize(e,t){e.setGridSize(t)},ignoreHidden(e,t){e.setIgnoreHidden(t)},imageExtension(e,t){e.setImageExtension(t)},imagePath(e,t){e.setImagePath(t)},imageSizes(e,t){e.setImageSizes(t)},maxZoom(e,t){e.setMaxZoom(t)},minimumClusterSize(e,t){e.setMinimumClusterSize(t)},styles(e,t){e.setStyles(t)},title(e,t){e.setTitle(t)},zoomOnClick(e,t){e.setZoomOnClick(t)}},bw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={markerClusterer:null},this.setClustererCallback=()=>{this.state.markerClusterer!==null&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)}}componentDidMount(){if(this.context){let t=new HH(this.context,[],this.props.options);this.registeredEvents=xt({updaterMap:oD,eventMap:aD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{markerClusterer:t}},this.setClustererCallback)}}componentDidUpdate(t){this.state.markerClusterer&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:oD,eventMap:aD,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){this.state.markerClusterer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),Et(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return this.state.markerClusterer!==null?this.props.children(this.state.markerClusterer):null}};bw.contextType=_n;VH=function(){function e(t){t===void 0&&(t={}),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",t.closeBoxURL===""&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),typeof t.visible>"u"&&(typeof t.isHidden>"u"?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var t=this;function r(m){m.cancelBubble=!0,m.stopPropagation&&m.stopPropagation()}var o=function(m){m.returnValue=!1,m.preventDefault&&m.preventDefault(),t.enableEventPropagation||r(m)};if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),typeof this.content=="string"?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var s=this.getPanes();if(s[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(this.maxWidth!==0&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var f=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-f.left-f.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var d=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],p=0;p<d.length;p++)this.eventListeners.push(google.maps.event.addDomListener(this.div,d[p],r));this.eventListeners.push(google.maps.event.addDomListener(this.div,"mouseover",function(){t.div&&(t.div.style.cursor="default")}))}this.contextListener=google.maps.event.addDomListener(this.div,"contextmenu",o),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var t="";return this.closeBoxURL!==""&&(t='<img alt=""',t+=' aria-hidden="true"',t+=" src='"+this.closeBoxURL+"'",t+=" align=right",t+=" style='",t+=" position: relative;",t+=" cursor: pointer;",t+=" margin: "+this.closeBoxMargin+";",t+="'>"),t},e.prototype.addClickHandler=function(){if(this.div&&this.div.firstChild&&this.closeBoxURL!==""){var t=this.div.firstChild;this.closeListener=google.maps.event.addDomListener(t,"click",this.getCloseClickHandler())}else this.closeListener=null},e.prototype.getCloseClickHandler=function(){var t=this;return function(r){r.cancelBubble=!0,r.stopPropagation&&r.stopPropagation(),google.maps.event.trigger(t,"closeclick"),t.close()}},e.prototype.panBox=function(t){if(this.div&&!t){var r=this.getMap();if(r instanceof google.maps.Map){var o=0,s=0,f=r.getBounds();f&&!f.contains(this.position)&&r.setCenter(this.position);var d=r.getDiv(),p=d.offsetWidth,m=d.offsetHeight,y=this.pixelOffset.width,E=this.pixelOffset.height,w=this.div.offsetWidth,k=this.div.offsetHeight,O=this.infoBoxClearance.width,A=this.infoBoxClearance.height,W=this.getProjection(),P=W.fromLatLngToContainerPixel(this.position);P!==null&&(P.x<-y+O?o=P.x+y-O:P.x+w+y+O>p&&(o=P.x+w+y+O-p),this.alignBottom?P.y<-E+A+k?s=P.y+E-A-k:P.y+E+A>m&&(s=P.y+E+A-m):P.y<-E+A?s=P.y+E-A:P.y+k+E+A>m&&(s=P.y+k+E+A-m)),o===0&&s===0||r.panBy(o,s)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var t=this.boxStyle;for(var r in t)t.hasOwnProperty(r)&&(this.div.style[r]=t[r]);if(this.div.style.webkitTransform="translateZ(0)",typeof this.div.style.opacity<"u"&&this.div.style.opacity!==""){var o=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+o*100+')"',this.div.style.filter="alpha(opacity="+o*100+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",this.zIndex!==null&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},e.prototype.getBoxWidths=function(){var t={top:0,bottom:0,left:0,right:0};if(!this.div)return t;if(document.defaultView&&document.defaultView.getComputedStyle){var r=this.div.ownerDocument,o=r&&r.defaultView?r.defaultView.getComputedStyle(this.div,""):null;o&&(t.top=parseInt(o.borderTopWidth||"",10)||0,t.bottom=parseInt(o.borderBottomWidth||"",10)||0,t.left=parseInt(o.borderLeftWidth||"",10)||0,t.right=parseInt(o.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var s=this.div.currentStyle;s&&(t.top=parseInt(s.borderTopWidth||"",10)||0,t.bottom=parseInt(s.borderBottomWidth||"",10)||0,t.left=parseInt(s.borderLeftWidth||"",10)||0,t.right=parseInt(s.borderRightWidth||"",10)||0)}return t},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var t=this.getProjection(),r=t.fromLatLngToDivPixel(this.position);r!==null&&(this.div.style.left=r.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(r.y+this.pixelOffset.height)+"px":this.div.style.top=r.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(t){t===void 0&&(t={}),typeof t.boxClass<"u"&&(this.boxClass=t.boxClass,this.setBoxStyle()),typeof t.boxStyle<"u"&&(this.boxStyle=t.boxStyle,this.setBoxStyle()),typeof t.content<"u"&&this.setContent(t.content),typeof t.disableAutoPan<"u"&&(this.disableAutoPan=t.disableAutoPan),typeof t.maxWidth<"u"&&(this.maxWidth=t.maxWidth),typeof t.pixelOffset<"u"&&(this.pixelOffset=t.pixelOffset),typeof t.alignBottom<"u"&&(this.alignBottom=t.alignBottom),typeof t.position<"u"&&this.setPosition(t.position),typeof t.zIndex<"u"&&this.setZIndex(t.zIndex),typeof t.closeBoxMargin<"u"&&(this.closeBoxMargin=t.closeBoxMargin),typeof t.closeBoxURL<"u"&&(this.closeBoxURL=t.closeBoxURL),typeof t.infoBoxClearance<"u"&&(this.infoBoxClearance=t.infoBoxClearance),typeof t.isHidden<"u"&&(this.isHidden=t.isHidden),typeof t.visible<"u"&&(this.isHidden=!t.visible),typeof t.enableEventPropagation<"u"&&(this.enableEventPropagation=t.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(t){this.content=t,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),typeof t=="string"?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px",typeof t=="string"?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(t){this.position=t,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(t){this.isHidden=!t,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(t){this.zIndex=t,this.div&&(this.div.style.zIndex=t+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var t=this.getMap(),r;return typeof t>"u"||t===null?r=!1:r=!this.isHidden,r},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(t,r){var o=this;r&&(this.position=r.getPosition(),this.moveListener=google.maps.event.addListener(r,"position_changed",function(){var s=r.getPosition();o.setPosition(s)}),this.mapListener=google.maps.event.addListener(r,"map_changed",function(){o.setMap(r.map)})),this.setMap(t),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var t=0;t<this.eventListeners.length;t++)google.maps.event.removeListener(this.eventListeners[t]);this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},e.prototype.extend=function(t,r){return function(s){for(var f in s.prototype)this.prototype.hasOwnProperty(f)||(this.prototype[f]=s.prototype[f]);return this}.apply(t,[r])},e}(),lD={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},sD={options(e,t){e.setOptions(t)},position(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}},xw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.containerElement=null,this.state={infoBox:null},this.open=(t,r)=>{r?t.open(this.context,r):t.getPosition()?t.open(this.context):Br(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},this.setInfoBoxCallback=()=>{let{anchor:t,onLoad:r}=this.props,{infoBox:o}=this.state;o!==null&&this.containerElement!==null&&(o.setContent(this.containerElement),this.open(o,t),r&&r(o))}}componentDidMount(){let{options:t}=this.props,r=t||{},{position:o}=r,s=GD(r,["position"]),f;o&&!(o instanceof google.maps.LatLng)&&(f=new google.maps.LatLng(o.lat,o.lng));let d=new VH(Object.assign(Object.assign({},s),f?{position:f}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=xt({updaterMap:sD,eventMap:lD,prevProps:{},nextProps:this.props,instance:d}),this.setState({infoBox:d},this.setInfoBoxCallback)}componentDidUpdate(t){let{infoBox:r}=this.state;r!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:sD,eventMap:lD,prevProps:t,nextProps:this.props,instance:r}))}componentWillUnmount(){let{onUnmount:t}=this.props,{infoBox:r}=this.state;r!==null&&(t&&t(r),Et(this.registeredEvents),r.close())}render(){return this.containerElement?by.createPortal(we.Children.only(this.props.children),this.containerElement):null}};xw.contextType=_n;yi=63710088e-1,JD={centimeters:yi*100,centimetres:yi*100,degrees:yi/111325,feet:yi*3.28084,inches:yi*39.37,kilometers:yi/1e3,kilometres:yi/1e3,meters:yi,metres:yi,miles:yi/1609.344,millimeters:yi*1e3,millimetres:yi*1e3,nauticalmiles:yi/1852,radians:1,yards:yi*1.0936};s5={eudist:function(t,r,o){for(var s=t.length,f=0,d=0;d<s;d++){var p=(t[d]||0)-(r[d]||0);f+=p*p}return o?Math.sqrt(f):f},mandist:function(t,r,o){for(var s=t.length,f=0,d=0;d<s;d++)f+=Math.abs((t[d]||0)-(r[d]||0));return o?Math.sqrt(f):f},dist:function(t,r,o){var s=Math.abs(t-r);return o?s:s*s}},u5=s5,ZH=u5.eudist,QH=u5.dist,KH={kmrand:function(t,r){for(var o={},s=[],f=r<<2,d=t.length,p=t[0].length>0;s.length<r&&f-- >0;){var m=t[Math.floor(Math.random()*d)],y=p?m.join("_"):""+m;o[y]||(o[y]=!0,s.push(m))}if(s.length<r)throw new Error("Error initializating clusters");return s},kmpp:function(t,r){var o=t[0].length?ZH:QH,s=[],f=t.length,d=t[0].length>0,p={},m=t[Math.floor(Math.random()*f)],y=d?m.join("_"):""+m;for(s.push(m),p[y]=!0;s.length<r;){for(var E=[],w=s.length,k=0,O=[],A=0;A<f;A++){for(var W=1/0,P=0;P<w;P++){var R=o(t[A],s[P]);R<=W&&(W=R)}E[A]=W}for(var D=0;D<f;D++)k+=E[D];for(var T=0;T<f;T++)O[T]={i:T,v:t[T],pr:E[T]/k,cs:0};O.sort(function(F,ne){return F.pr-ne.pr}),O[0].cs=O[0].pr;for(var M=1;M<f;M++)O[M].cs=O[M-1].cs+O[M].pr;for(var U=Math.random(),Y=0;Y<f-1&&O[Y++].cs<U;);s.push(O[Y-1].v)}return s}},JH=s5,c5=KH,XH=JH.eudist,eV=c5.kmrand,tV=c5.kmpp,cD=1e4;rV=nV;f5={exports:{}},d5={exports:{}};(function(e){function t(r,o,s,f){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(r,o,s,f)}t.prototype.run=function(r,o,s,f){this._init(r,o,s,f);for(var d=0;d<this._datasetLength;d++)if(this._visited[d]!==1){this._visited[d]=1;var p=this._regionQuery(d);if(p.length<this.minPts)this.noise.push(d);else{var m=this.clusters.length;this.clusters.push([]),this._addToCluster(d,m),this._expandCluster(m,p)}}return this.clusters},t.prototype._init=function(r,o,s,f){if(r){if(!(r instanceof Array))throw Error("Dataset must be of type array, "+typeof r+" given");this.dataset=r,this.clusters=[],this.noise=[],this._datasetLength=r.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}o&&(this.epsilon=o),s&&(this.minPts=s),f&&(this.distance=f)},t.prototype._expandCluster=function(r,o){for(var s=0;s<o.length;s++){var f=o[s];if(this._visited[f]!==1){this._visited[f]=1;var d=this._regionQuery(f);d.length>=this.minPts&&(o=this._mergeArrays(o,d))}this._assigned[f]!==1&&this._addToCluster(f,r)}},t.prototype._addToCluster=function(r,o){this.clusters[o].push(r),this._assigned[r]=1},t.prototype._regionQuery=function(r){for(var o=[],s=0;s<this._datasetLength;s++){var f=this.distance(this.dataset[r],this.dataset[s]);f<this.epsilon&&o.push(s)}return o},t.prototype._mergeArrays=function(r,o){for(var s=o.length,f=0;f<s;f++){var d=o[f];r.indexOf(d)<0&&r.push(d)}return r},t.prototype._euclideanDistance=function(r,o){for(var s=0,f=Math.min(r.length,o.length);f--;)s+=(r[f]-o[f])*(r[f]-o[f]);return Math.sqrt(s)},e.exports&&(e.exports=t)})(d5);p5={exports:{}};(function(e){function t(r,o,s){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(r,o,s)}t.prototype.init=function(r,o,s){this.assignments=[],this.centroids=[],typeof r<"u"&&(this.dataset=r),typeof o<"u"&&(this.k=o),typeof s<"u"&&(this.distance=s)},t.prototype.run=function(r,o){this.init(r,o);for(var s=this.dataset.length,f=0;f<this.k;f++)this.centroids[f]=this.randomCentroid();for(var d=!0;d;){d=this.assign();for(var p=0;p<this.k;p++){for(var m=new Array(k),y=0,E=0;E<k;E++)m[E]=0;for(var w=0;w<s;w++){var k=this.dataset[w].length;if(p===this.assignments[w]){for(var E=0;E<k;E++)m[E]+=this.dataset[w][E];y++}}if(y>0){for(var E=0;E<k;E++)m[E]/=y;this.centroids[p]=m}else this.centroids[p]=this.randomCentroid(),d=!0}}return this.getClusters()},t.prototype.randomCentroid=function(){var r=this.dataset.length-1,o,s;do s=Math.round(Math.random()*r),o=this.dataset[s];while(this.centroids.indexOf(o)>=0);return o},t.prototype.assign=function(){for(var r=!1,o=this.dataset.length,s,f=0;f<o;f++)s=this.argmin(this.dataset[f],this.centroids,this.distance),s!=this.assignments[f]&&(this.assignments[f]=s,r=!0);return r},t.prototype.getClusters=function(){for(var r=new Array(this.k),o,s=0;s<this.assignments.length;s++)o=this.assignments[s],typeof r[o]>"u"&&(r[o]=[]),r[o].push(s);return r},t.prototype.argmin=function(r,o,s){for(var f=Number.MAX_VALUE,d=0,p=o.length,m,y=0;y<p;y++)m=s(r,o[y]),m<f&&(f=m,d=y);return d},t.prototype.distance=function(r,o){for(var s=0,f=Math.min(r.length,o.length);f--;){var d=r[f]-o[f];s+=d*d}return Math.sqrt(s)},e.exports&&(e.exports=t)})(p5);h5={exports:{}},Ew={exports:{}};(function(e){function t(r,o,s){this._queue=[],this._priorities=[],this._sorting="desc",this._init(r,o,s)}t.prototype.insert=function(r,o){for(var s=this._queue.length,f=s;f--;){var d=this._priorities[f];this._sorting==="desc"?o>d&&(s=f):o<d&&(s=f)}this._insertAt(r,o,s)},t.prototype.remove=function(r){for(var o=this._queue.length;o--;){var s=this._queue[o];if(r===s){this._queue.splice(o,1),this._priorities.splice(o,1);break}}},t.prototype.forEach=function(r){this._queue.forEach(r)},t.prototype.getElements=function(){return this._queue},t.prototype.getElementPriority=function(r){return this._priorities[r]},t.prototype.getPriorities=function(){return this._priorities},t.prototype.getElementsWithPriorities=function(){for(var r=[],o=0,s=this._queue.length;o<s;o++)r.push([this._queue[o],this._priorities[o]]);return r},t.prototype._init=function(r,o,s){if(r&&o){if(this._queue=[],this._priorities=[],r.length!==o.length)throw new Error("Arrays must have the same length");for(var f=0;f<r.length;f++)this.insert(r[f],o[f])}s&&(this._sorting=s)},t.prototype._insertAt=function(r,o,s){this._queue.length===s?(this._queue.push(r),this._priorities.push(o)):(this._queue.splice(s,0,r),this._priorities.splice(s,0,o))},e.exports&&(e.exports=t)})(Ew);(function(e){if(e.exports)var t=Ew.exports;function r(o,s,f,d){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(o,s,f,d)}r.prototype.run=function(o,s,f,d){this._init(o,s,f,d);for(var p=0,m=this.dataset.length;p<m;p++)if(this._processed[p]!==1){this._processed[p]=1,this.clusters.push([p]);var y=this.clusters.length-1;this._orderedList.push(p);var E=new t(null,null,"asc"),w=this._regionQuery(p);this._distanceToCore(p)!==void 0&&(this._updateQueue(p,w,E),this._expandCluster(y,E))}return this.clusters},r.prototype.getReachabilityPlot=function(){for(var o=[],s=0,f=this._orderedList.length;s<f;s++){var d=this._orderedList[s],p=this._reachability[d];o.push([d,p])}return o},r.prototype._init=function(o,s,f,d){if(o){if(!(o instanceof Array))throw Error("Dataset must be of type array, "+typeof o+" given");this.dataset=o,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}s&&(this.epsilon=s),f&&(this.minPts=f),d&&(this.distance=d)},r.prototype._updateQueue=function(o,s,f){var d=this;this._coreDistance=this._distanceToCore(o),s.forEach(function(p){if(d._processed[p]===void 0){var m=d.distance(d.dataset[o],d.dataset[p]),y=Math.max(d._coreDistance,m);d._reachability[p]===void 0?(d._reachability[p]=y,f.insert(p,y)):y<d._reachability[p]&&(d._reachability[p]=y,f.remove(p),f.insert(p,y))}})},r.prototype._expandCluster=function(o,s){for(var f=s.getElements(),d=0,p=f.length;d<p;d++){var m=f[d];if(this._processed[m]===void 0){var y=this._regionQuery(m);this._processed[m]=1,this.clusters[o].push(m),this._orderedList.push(m),this._distanceToCore(m)!==void 0&&(this._updateQueue(m,y,s),this._expandCluster(o,s))}}},r.prototype._distanceToCore=function(o){for(var s=this.epsilon,f=0;f<s;f++){var d=this._regionQuery(o,f);if(d.length>=this.minPts)return f}},r.prototype._regionQuery=function(o,s){s=s||this.epsilon;for(var f=[],d=0,p=this.dataset.length;d<p;d++)this.distance(this.dataset[o],this.dataset[d])<s&&f.push(d);return f},r.prototype._euclideanDistance=function(o,s){for(var f=0,d=Math.min(o.length,s.length);d--;)f+=(o[d]-s[d])*(o[d]-s[d]);return Math.sqrt(f)},e.exports&&(e.exports=r)})(h5);(function(e){e.exports&&(e.exports={DBSCAN:d5.exports,KMEANS:p5.exports,OPTICS:h5.exports,PriorityQueue:Ew.exports})})(f5);oV=f5.exports;v5={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(bH,function(){function r(Q,B,ae,H,K,re){if(!(K-H<=ae)){var le=H+K>>1;o(Q,B,le,H,K,re%2),r(Q,B,ae,H,le-1,re+1),r(Q,B,ae,le+1,K,re+1)}}function o(Q,B,ae,H,K,re){for(;K>H;){if(K-H>600){var le=K-H+1,se=ae-H+1,ce=Math.log(le),de=.5*Math.exp(2*ce/3),ve=.5*Math.sqrt(ce*de*(le-de)/le)*(se-le/2<0?-1:1),Ce=Math.max(H,Math.floor(ae-se*de/le+ve)),_e=Math.min(K,Math.floor(ae+(le-se)*de/le+ve));o(Q,B,ae,Ce,_e,re)}var Ae=B[2*ae+re],Ye=H,Ne=K;for(s(Q,B,H,ae),B[2*K+re]>Ae&&s(Q,B,H,K);Ye<Ne;){for(s(Q,B,Ye,Ne),Ye++,Ne--;B[2*Ye+re]<Ae;)Ye++;for(;B[2*Ne+re]>Ae;)Ne--}B[2*H+re]===Ae?s(Q,B,H,Ne):(Ne++,s(Q,B,Ne,K)),Ne<=ae&&(H=Ne+1),ae<=Ne&&(K=Ne-1)}}function s(Q,B,ae,H){f(Q,ae,H),f(B,2*ae,2*H),f(B,2*ae+1,2*H+1)}function f(Q,B,ae){var H=Q[B];Q[B]=Q[ae],Q[ae]=H}function d(Q,B,ae,H,K,re,le){for(var se=[0,Q.length-1,0],ce=[],de,ve;se.length;){var Ce=se.pop(),_e=se.pop(),Ae=se.pop();if(_e-Ae<=le){for(var Ye=Ae;Ye<=_e;Ye++)de=B[2*Ye],ve=B[2*Ye+1],de>=ae&&de<=K&&ve>=H&&ve<=re&&ce.push(Q[Ye]);continue}var Ne=Math.floor((Ae+_e)/2);de=B[2*Ne],ve=B[2*Ne+1],de>=ae&&de<=K&&ve>=H&&ve<=re&&ce.push(Q[Ne]);var ft=(Ce+1)%2;(Ce===0?ae<=de:H<=ve)&&(se.push(Ae),se.push(Ne-1),se.push(ft)),(Ce===0?K>=de:re>=ve)&&(se.push(Ne+1),se.push(_e),se.push(ft))}return ce}function p(Q,B,ae,H,K,re){for(var le=[0,Q.length-1,0],se=[],ce=K*K;le.length;){var de=le.pop(),ve=le.pop(),Ce=le.pop();if(ve-Ce<=re){for(var _e=Ce;_e<=ve;_e++)m(B[2*_e],B[2*_e+1],ae,H)<=ce&&se.push(Q[_e]);continue}var Ae=Math.floor((Ce+ve)/2),Ye=B[2*Ae],Ne=B[2*Ae+1];m(Ye,Ne,ae,H)<=ce&&se.push(Q[Ae]);var ft=(de+1)%2;(de===0?ae-K<=Ye:H-K<=Ne)&&(le.push(Ce),le.push(Ae-1),le.push(ft)),(de===0?ae+K>=Ye:H+K>=Ne)&&(le.push(Ae+1),le.push(ve),le.push(ft))}return se}function m(Q,B,ae,H){var K=Q-ae,re=B-H;return K*K+re*re}var y=function(Q){return Q[0]},E=function(Q){return Q[1]},w=function(B,ae,H,K,re){ae===void 0&&(ae=y),H===void 0&&(H=E),K===void 0&&(K=64),re===void 0&&(re=Float64Array),this.nodeSize=K,this.points=B;for(var le=B.length<65536?Uint16Array:Uint32Array,se=this.ids=new le(B.length),ce=this.coords=new re(B.length*2),de=0;de<B.length;de++)se[de]=de,ce[2*de]=ae(B[de]),ce[2*de+1]=H(B[de]);r(se,ce,K,0,se.length-1,0)};w.prototype.range=function(B,ae,H,K){return d(this.ids,this.coords,B,ae,H,K,this.nodeSize)},w.prototype.within=function(B,ae,H){return p(this.ids,this.coords,B,ae,H,this.nodeSize)};var k={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Q){return Q}},O=Math.fround||function(Q){return function(B){return Q[0]=+B,Q[0]}}(new Float32Array(1)),A=function(B){this.options=F(Object.create(k),B),this.trees=new Array(this.options.maxZoom+1)};A.prototype.load=function(B){var ae=this.options,H=ae.log,K=ae.minZoom,re=ae.maxZoom,le=ae.nodeSize;H&&console.time("total time");var se="prepare "+B.length+" points";H&&console.time(se),this.points=B;for(var ce=[],de=0;de<B.length;de++)!B[de].geometry||ce.push(P(B[de],de));this.trees[re+1]=new w(ce,ne,ue,le,Float32Array),H&&console.timeEnd(se);for(var ve=re;ve>=K;ve--){var Ce=+Date.now();ce=this._cluster(ce,ve),this.trees[ve]=new w(ce,ne,ue,le,Float32Array),H&&console.log("z%d: %d clusters in %dms",ve,ce.length,+Date.now()-Ce)}return H&&console.timeEnd("total time"),this},A.prototype.getClusters=function(B,ae){var H=((B[0]+180)%360+360)%360-180,K=Math.max(-90,Math.min(90,B[1])),re=B[2]===180?180:((B[2]+180)%360+360)%360-180,le=Math.max(-90,Math.min(90,B[3]));if(B[2]-B[0]>=360)H=-180,re=180;else if(H>re){var se=this.getClusters([H,K,180,le],ae),ce=this.getClusters([-180,K,re,le],ae);return se.concat(ce)}for(var de=this.trees[this._limitZoom(ae)],ve=de.range(T(H),M(le),T(re),M(K)),Ce=[],_e=0,Ae=ve;_e<Ae.length;_e+=1){var Ye=Ae[_e],Ne=de.points[Ye];Ce.push(Ne.numPoints?R(Ne):this.points[Ne.index])}return Ce},A.prototype.getChildren=function(B){var ae=this._getOriginId(B),H=this._getOriginZoom(B),K="No cluster with the specified id.",re=this.trees[H];if(!re)throw new Error(K);var le=re.points[ae];if(!le)throw new Error(K);for(var se=this.options.radius/(this.options.extent*Math.pow(2,H-1)),ce=re.within(le.x,le.y,se),de=[],ve=0,Ce=ce;ve<Ce.length;ve+=1){var _e=Ce[ve],Ae=re.points[_e];Ae.parentId===B&&de.push(Ae.numPoints?R(Ae):this.points[Ae.index])}if(de.length===0)throw new Error(K);return de},A.prototype.getLeaves=function(B,ae,H){ae=ae||10,H=H||0;var K=[];return this._appendLeaves(K,B,ae,H,0),K},A.prototype.getTile=function(B,ae,H){var K=this.trees[this._limitZoom(B)],re=Math.pow(2,B),le=this.options,se=le.extent,ce=le.radius,de=ce/se,ve=(H-de)/re,Ce=(H+1+de)/re,_e={features:[]};return this._addTileFeatures(K.range((ae-de)/re,ve,(ae+1+de)/re,Ce),K.points,ae,H,re,_e),ae===0&&this._addTileFeatures(K.range(1-de/re,ve,1,Ce),K.points,re,H,re,_e),ae===re-1&&this._addTileFeatures(K.range(0,ve,de/re,Ce),K.points,-1,H,re,_e),_e.features.length?_e:null},A.prototype.getClusterExpansionZoom=function(B){for(var ae=this._getOriginZoom(B)-1;ae<=this.options.maxZoom;){var H=this.getChildren(B);if(ae++,H.length!==1)break;B=H[0].properties.cluster_id}return ae},A.prototype._appendLeaves=function(B,ae,H,K,re){for(var le=this.getChildren(ae),se=0,ce=le;se<ce.length;se+=1){var de=ce[se],ve=de.properties;if(ve&&ve.cluster?re+ve.point_count<=K?re+=ve.point_count:re=this._appendLeaves(B,ve.cluster_id,H,K,re):re<K?re++:B.push(de),B.length===H)break}return re},A.prototype._addTileFeatures=function(B,ae,H,K,re,le){for(var se=0,ce=B;se<ce.length;se+=1){var de=ce[se],ve=ae[de],Ce=ve.numPoints,_e=void 0,Ae=void 0,Ye=void 0;if(Ce)_e=D(ve),Ae=ve.x,Ye=ve.y;else{var Ne=this.points[ve.index];_e=Ne.properties,Ae=T(Ne.geometry.coordinates[0]),Ye=M(Ne.geometry.coordinates[1])}var ft={type:1,geometry:[[Math.round(this.options.extent*(Ae*re-H)),Math.round(this.options.extent*(Ye*re-K))]],tags:_e},St=void 0;Ce?St=ve.id:this.options.generateId?St=ve.index:this.points[ve.index].id&&(St=this.points[ve.index].id),St!==void 0&&(ft.id=St),le.features.push(ft)}},A.prototype._limitZoom=function(B){return Math.max(this.options.minZoom,Math.min(+B,this.options.maxZoom+1))},A.prototype._cluster=function(B,ae){for(var H=[],K=this.options,re=K.radius,le=K.extent,se=K.reduce,ce=K.minPoints,de=re/(le*Math.pow(2,ae)),ve=0;ve<B.length;ve++){var Ce=B[ve];if(!(Ce.zoom<=ae)){Ce.zoom=ae;for(var _e=this.trees[ae+1],Ae=_e.within(Ce.x,Ce.y,de),Ye=Ce.numPoints||1,Ne=Ye,ft=0,St=Ae;ft<St.length;ft+=1){var Yt=St[ft],$r=_e.points[Yt];$r.zoom>ae&&(Ne+=$r.numPoints||1)}if(Ne>Ye&&Ne>=ce){for(var mt=Ce.x*Ye,Lt=Ce.y*Ye,ze=se&&Ye>1?this._map(Ce,!0):null,jt=(ve<<5)+(ae+1)+this.points.length,en=0,nr=Ae;en<nr.length;en+=1){var qr=nr[en],lr=_e.points[qr];if(!(lr.zoom<=ae)){lr.zoom=ae;var Un=lr.numPoints||1;mt+=lr.x*Un,Lt+=lr.y*Un,lr.parentId=jt,se&&(ze||(ze=this._map(Ce,!0)),se(ze,this._map(lr)))}}Ce.parentId=jt,H.push(W(mt/Ne,Lt/Ne,jt,Ne,ze))}else if(H.push(Ce),Ne>1)for(var Tt=0,Bt=Ae;Tt<Bt.length;Tt+=1){var Ot=Bt[Tt],bn=_e.points[Ot];bn.zoom<=ae||(bn.zoom=ae,H.push(bn))}}}return H},A.prototype._getOriginId=function(B){return B-this.points.length>>5},A.prototype._getOriginZoom=function(B){return(B-this.points.length)%32},A.prototype._map=function(B,ae){if(B.numPoints)return ae?F({},B.properties):B.properties;var H=this.points[B.index].properties,K=this.options.map(H);return ae&&K===H?F({},K):K};function W(Q,B,ae,H,K){return{x:O(Q),y:O(B),zoom:1/0,id:ae,parentId:-1,numPoints:H,properties:K}}function P(Q,B){var ae=Q.geometry.coordinates,H=ae[0],K=ae[1];return{x:O(T(H)),y:O(M(K)),zoom:1/0,index:B,parentId:-1}}function R(Q){return{type:"Feature",id:Q.id,properties:D(Q),geometry:{type:"Point",coordinates:[U(Q.x),Y(Q.y)]}}}function D(Q){var B=Q.numPoints,ae=B>=1e4?Math.round(B/1e3)+"k":B>=1e3?Math.round(B/100)/10+"k":B;return F(F({},Q.properties),{cluster:!0,cluster_id:Q.id,point_count:B,point_count_abbreviated:ae})}function T(Q){return Q/360+.5}function M(Q){var B=Math.sin(Q*Math.PI/180),ae=.5-.25*Math.log((1+B)/(1-B))/Math.PI;return ae<0?0:ae>1?1:ae}function U(Q){return(Q-.5)*360}function Y(Q){var B=(180-Q*360)*Math.PI/180;return 360*Math.atan(Math.exp(B))/Math.PI-90}function F(Q,B){for(var ae in B)Q[ae]=B[ae];return Q}function ne(Q){return Q.x}function ue(Q){return Q.y}return A})})(v5);sV=v5.exports,pD=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,s,f;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(s=o;s--!==0;)if(!e(t[s],r[s]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(s of t.entries())if(!r.has(s[0]))return!1;for(s of t.entries())if(!e(s[1],r.get(s[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(s of t.entries())if(!r.has(s[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(s=o;s--!==0;)if(t[s]!==r[s])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(f=Object.keys(t),o=f.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,f[s]))return!1;for(s=o;s--!==0;){var d=f[s];if(!e(t[d],r[d]))return!1}return!0}return t!==t&&r!==r};rs=class{constructor({markers:t,position:r}){this.markers=t,r&&(r instanceof google.maps.LatLng?this._position=r:this._position=new google.maps.LatLng(r))}get bounds(){if(!(this.markers.length===0&&!this._position))return this.markers.reduce((t,r)=>t.extend(r.getPosition()),new google.maps.LatLngBounds(this._position,this._position))}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>t.getVisible()).length}push(t){this.markers.push(t)}delete(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}},m5=(e,t,r,o)=>{let s=ww(e.getBounds(),t,o);return r.filter(f=>s.contains(f.getPosition()))},ww=(e,t,r)=>{let{northEast:o,southWest:s}=uV(e,t),f=y5({northEast:o,southWest:s},r);return b5(f,t)},g5=(e,t)=>{let o=(t.lat-e.lat)*Math.PI/180,s=(t.lng-e.lng)*Math.PI/180,f=Math.sin(o/2)*Math.sin(o/2)+Math.cos(e.lat*Math.PI/180)*Math.cos(t.lat*Math.PI/180)*Math.sin(s/2)*Math.sin(s/2),d=2*Math.atan2(Math.sqrt(f),Math.sqrt(1-f));return 6371*d},uV=(e,t)=>({northEast:t.fromLatLngToDivPixel(e.getNorthEast()),southWest:t.fromLatLngToDivPixel(e.getSouthWest())}),y5=({northEast:e,southWest:t},r)=>(e.x+=r,e.y-=r,t.x-=r,t.y+=r,{northEast:e,southWest:t}),b5=({northEast:e,southWest:t},r)=>{let o=new google.maps.LatLngBounds;return o.extend(r.fromDivPixelToLatLng(e)),o.extend(r.fromDivPixelToLatLng(t)),o},uh=class{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return x5(t)}},ch=class extends uh{constructor(t){var{viewportPadding:r=60}=t,o=df(t,["viewportPadding"]);super(o);this.viewportPadding=60,this.viewportPadding=r}calculate({markers:t,map:r,mapCanvasProjection:o}){return r.getZoom()>=this.maxZoom?{clusters:this.noop({markers:t,map:r,mapCanvasProjection:o}),changed:!1}:{clusters:this.cluster({markers:m5(r,o,t,this.viewportPadding),map:r,mapCanvasProjection:o})}}},x5=e=>e.map(r=>new rs({position:r.getPosition(),markers:[r]})),S5=class extends ch{constructor(t){var{maxDistance:r=4e4,gridSize:o=40}=t,s=df(t,["maxDistance","gridSize"]);super(s);this.clusters=[],this.maxDistance=r,this.gridSize=o}cluster({markers:t,map:r,mapCanvasProjection:o}){return this.clusters=[],t.forEach(s=>{this.addToClosestCluster(s,r,o)}),this.clusters}addToClosestCluster(t,r,o){let s=this.maxDistance,f=null;for(let d=0;d<this.clusters.length;d++){let p=this.clusters[d],m=g5(p.bounds.getCenter().toJSON(),t.getPosition().toJSON());m<s&&(s=m,f=p)}if(f&&ww(f.bounds,o,this.gridSize).contains(t.getPosition()))f.push(t);else{let d=new rs({markers:[t]});this.clusters.push(d)}}},E5=class extends uh{constructor(t){var r=df(t,[]);super(r)}calculate({markers:t,map:r,mapCanvasProjection:o}){return{clusters:this.cluster({markers:t,map:r,mapCanvasProjection:o}),changed:!1}}cluster(t){return this.noop(t)}},w5=class extends ch{constructor(t){var{numberOfClusters:r}=t,o=df(t,["numberOfClusters"]);super(o);this.numberOfClusters=r}cluster({markers:t,map:r}){let o=[];if(t.length===0)return o;let s=e5(t.map(d=>XD([d.getPosition().lng(),d.getPosition().lat()]))),f;return this.numberOfClusters instanceof Function?f=this.numberOfClusters(t.length,r.getZoom()):f=this.numberOfClusters,iV(s,{numberOfClusters:f}).features.forEach((d,p)=>{o[d.properties.cluster]||(o[d.properties.cluster]=new rs({position:{lng:d.properties.centroid[0],lat:d.properties.centroid[1]},markers:[]})),o[d.properties.cluster].push(t[p])}),o}},hD={units:"kilometers",mutate:!1,minPoints:1},C5=class extends ch{constructor(t){var{maxDistance:r=200,minPoints:o=hD.minPoints}=t,s=df(t,["maxDistance","minPoints"]);super(s);this.maxDistance=r,this.options=Object.assign(Object.assign({},hD),{minPoints:o})}cluster({markers:t,mapCanvasProjection:r}){let o=e5(t.map(f=>{let d=r.fromLatLngToContainerPixel(f.getPosition());return XD([d.x,d.y])})),s=[];return lV(o,this.maxDistance,this.options).features.forEach((f,d)=>{s[f.properties.cluster]||(s[f.properties.cluster]=[]),s[f.properties.cluster].push(t[d])}),s.map(f=>new rs({markers:f}))}},Cw=class extends uh{constructor(t){var{maxZoom:r,radius:o=60}=t,s=df(t,["maxZoom","radius"]);super({maxZoom:r});this.superCluster=new sV(Object.assign({maxZoom:this.maxZoom,radius:o},s)),this.state={zoom:null}}calculate(t){let r=!1;if(!pD(t.markers,this.markers)){r=!0,this.markers=[...t.markers];let s=this.markers.map(f=>({type:"Feature",geometry:{type:"Point",coordinates:[f.getPosition().lng(),f.getPosition().lat()]},properties:{marker:f}}));this.superCluster.load(s)}let o={zoom:t.map.getZoom()};return r||this.state.zoom>this.maxZoom&&o.zoom>this.maxZoom||(r=r||!pD(this.state,o)),this.state=o,r&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:r}}cluster({map:t}){return this.superCluster.getClusters([-180,-90,180,90],t.getZoom()).map(this.transformCluster.bind(this))}transformCluster({geometry:{coordinates:[t,r]},properties:o}){if(o.cluster)return new rs({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map(s=>s.properties.marker),position:new google.maps.LatLng({lat:r,lng:t})});{let s=o.marker;return new rs({markers:[s],position:s.getPosition()})}}},_w=class{constructor(t,r){this.markers={sum:t.length};let o=r.map(f=>f.count),s=o.reduce((f,d)=>f+d,0);this.clusters={count:r.length,markers:{mean:s/r.length,sum:s,min:Math.min(...o),max:Math.max(...o)}}}},Mw=class{render({count:t,position:r},o){let s=t>Math.max(10,o.clusters.markers.mean)?"#ff0000":"#0000ff",f=window.btoa(`
146
- <svg fill="${s}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">
147
- <circle cx="120" cy="120" opacity=".6" r="70" />
148
- <circle cx="120" cy="120" opacity=".3" r="90" />
149
- <circle cx="120" cy="120" opacity=".2" r="110" />
150
- </svg>`);return new google.maps.Marker({position:r,icon:{url:`data:image/svg+xml;base64,${f}`,scaledSize:new google.maps.Size(45,45)},label:{text:String(t),color:"rgba(255,255,255,0.9)",fontSize:"12px"},zIndex:Number(google.maps.Marker.MAX_ZINDEX)+t})}};xy=class{constructor(){cV(xy,google.maps.OverlayView)}};(function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"})(ff||(ff={}));_5=(e,t,r)=>{r.fitBounds(t.bounds)},Tw=class extends xy{constructor({map:t,markers:r=[],algorithm:o=new Cw({}),renderer:s=new Mw,onClusterClick:f=_5}){super();this.markers=[...r],this.clusters=[],this.algorithm=o,this.renderer=s,this.onClusterClick=f,t&&this.setMap(t)}addMarker(t,r){this.markers.includes(t)||(this.markers.push(t),r||this.render())}addMarkers(t,r){t.forEach(o=>{this.addMarker(o,!0)}),r||this.render()}removeMarker(t,r){let o=this.markers.indexOf(t);return o===-1?!1:(t.setMap(null),this.markers.splice(o,1),r||this.render(),!0)}removeMarkers(t,r){let o=!1;return t.forEach(s=>{o=this.removeMarker(s,!0)||o}),o&&!r&&this.render(),o}clearMarkers(t){this.markers.length=0,t||this.render()}render(){let t=this.getMap();if(t instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,ff.CLUSTERING_BEGIN,this);let{clusters:r,changed:o}=this.algorithm.calculate({markers:this.markers,map:t,mapCanvasProjection:this.getProjection()});(o||o==null)&&(this.reset(),this.clusters=r,this.renderClusters()),google.maps.event.trigger(this,ff.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(t=>t.setMap(null)),this.clusters.forEach(t=>t.delete()),this.clusters=[]}renderClusters(){let t=new _w(this.markers,this.clusters),r=this.getMap();this.clusters.forEach(o=>{o.markers.length===1?o.marker=o.markers[0]:(o.marker=this.renderer.render(o,t),this.onClusterClick&&o.marker.addListener("click",s=>{google.maps.event.trigger(this,ff.CLUSTER_CLICK,o),this.onClusterClick(s,o,r)})),o.marker.setMap(r)})}},fV=Object.freeze({__proto__:null,AbstractAlgorithm:uh,AbstractViewportAlgorithm:ch,Cluster:rs,ClusterStats:_w,DBScanAlgorithm:C5,DefaultRenderer:Mw,GridAlgorithm:S5,KmeansAlgorithm:w5,MarkerClusterer:Tw,get MarkerClustererEvents(){return ff},NoopAlgorithm:E5,SuperClusterAlgorithm:Cw,defaultOnClusterClickHandler:_5,distanceBetweenPoints:g5,extendBoundsToPaddedViewport:ww,extendPixelBounds:y5,filterMarkersToPaddedViewport:m5,noop:x5,pixelBoundsToLatLngBounds:b5}),dV=e=>{let t=$D(),[r,o]=gH(null);return yH(()=>{if(t&&r===null){let s=new Tw(Object.assign(Object.assign({},e),{map:t}));o(s)}},[t]),r},pV=({children:e,options:t})=>{let r=dV(t);return r!==null?e(r):null},vD={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},mD={options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},zIndex(e,t){e.setZIndex(t)}},kw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.containerElement=null,this.state={infoWindow:null},this.open=(t,r)=>{r?t.open(this.context,r):t.getPosition()?t.open(this.context):Br(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},this.setInfoWindowCallback=()=>{this.state.infoWindow!==null&&this.containerElement!==null&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))}}componentDidMount(){let t=new google.maps.InfoWindow(Object.assign({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=xt({updaterMap:mD,eventMap:vD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{infoWindow:t}},this.setInfoWindowCallback)}componentDidUpdate(t){this.state.infoWindow!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:mD,eventMap:vD,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){this.state.infoWindow!==null&&(Et(this.registeredEvents),this.state.infoWindow.close())}render(){return this.containerElement?by.createPortal(we.Children.only(this.props.children),this.containerElement):we.createElement(we.Fragment,null)}};kw.contextType=_n;gD={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},yD={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},visible(e,t){e.setVisible(t)}},Rw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={polyline:null},this.setPolylineCallback=()=>{this.state.polyline!==null&&this.props.onLoad&&this.props.onLoad(this.state.polyline)}}componentDidMount(){let t=new google.maps.Polyline(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=xt({updaterMap:yD,eventMap:gD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{polyline:t}},this.setPolylineCallback)}componentDidUpdate(t){this.state.polyline!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:yD,eventMap:gD,prevProps:t,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){this.state.polyline!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),Et(this.registeredEvents),this.state.polyline.setMap(null))}render(){return we.createElement(we.Fragment,null)}};Rw.contextType=_n;bD={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},xD={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},paths(e,t){e.setPaths(t)},visible(e,t){e.setVisible(t)}},Lw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={polygon:null},this.setPolygonCallback=()=>{this.state.polygon!==null&&this.props.onLoad&&this.props.onLoad(this.state.polygon)}}componentDidMount(){let t=new google.maps.Polygon(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=xt({updaterMap:xD,eventMap:bD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{polygon:t}},this.setPolygonCallback)}componentDidUpdate(t){this.state.polygon!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:xD,eventMap:bD,prevProps:t,nextProps:this.props,instance:this.state.polygon}))}componentWillUnmount(){this.state.polygon!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),Et(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))}render(){return null}};Lw.contextType=_n;SD={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},ED={bounds(e,t){e.setBounds(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},visible(e,t){e.setVisible(t)}},Ow=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={rectangle:null},this.setRectangleCallback=()=>{this.state.rectangle!==null&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)}}componentDidMount(){let t=new google.maps.Rectangle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=xt({updaterMap:ED,eventMap:SD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{rectangle:t}},this.setRectangleCallback)}componentDidUpdate(t){this.state.rectangle!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:ED,eventMap:SD,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){this.state.rectangle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),Et(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return we.createElement(we.Fragment,null)}};Ow.contextType=_n;wD={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},CD={center(e,t){e.setCenter(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},radius(e,t){e.setRadius(t)},visible(e,t){e.setVisible(t)}},Dw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={circle:null},this.setCircleCallback=()=>{this.state.circle!==null&&this.props.onLoad&&this.props.onLoad(this.state.circle)}}componentDidMount(){let t=new google.maps.Circle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=xt({updaterMap:CD,eventMap:wD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{circle:t}},this.setCircleCallback)}componentDidUpdate(t){this.state.circle!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:CD,eventMap:wD,prevProps:t,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){this.state.circle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),Et(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))}render(){return we.createElement(we.Fragment,null)}};Dw.contextType=_n;_D={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},MD={add(e,t){e.add(t)},addgeojson(e,t,r){e.addGeoJson(t,r)},contains(e,t){e.contains(t)},foreach(e,t){e.forEach(t)},loadgeojson(e,t,r,o){e.loadGeoJson(t,r,o)},overridestyle(e,t,r){e.overrideStyle(t,r)},remove(e,t){e.remove(t)},revertstyle(e,t){e.revertStyle(t)},controlposition(e,t){e.setControlPosition(t)},controls(e,t){e.setControls(t)},drawingmode(e,t){e.setDrawingMode(t)},map(e,t){e.setMap(t)},style(e,t){e.setStyle(t)},togeojson(e,t){e.toGeoJson(t)}},Pw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={data:null},this.setDataCallback=()=>{this.state.data!==null&&this.props.onLoad&&this.props.onLoad(this.state.data)}}componentDidMount(){let t=new google.maps.Data(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=xt({updaterMap:MD,eventMap:_D,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{data:t}},this.setDataCallback)}componentDidUpdate(t){this.state.data!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:MD,eventMap:_D,prevProps:t,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){this.state.data!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),Et(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}};Pw.contextType=_n;TD={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},kD={options(e,t){e.setOptions(t)},url(e,t){e.setUrl(t)},zIndex(e,t){e.setZIndex(t)}},Aw=class extends WD{constructor(){super(...arguments);this.registeredEvents=[],this.state={kmlLayer:null},this.setKmlLayerCallback=()=>{this.state.kmlLayer!==null&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)}}componentDidMount(){let t=new google.maps.KmlLayer(Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=xt({updaterMap:kD,eventMap:TD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{kmlLayer:t}},this.setKmlLayerCallback)}componentDidUpdate(t){this.state.kmlLayer!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:kD,eventMap:TD,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){this.state.kmlLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),Et(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}};Aw.contextType=_n;vV=(e,t)=>new t(e.lat,e.lng),mV=(e,t)=>new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng)),RD=(e,t,r)=>e instanceof t?e:r(e,t),gV=(e,t,r)=>{let o=e&&e.fromLatLngToDivPixel(r.getNorthEast()),s=e&&e.fromLatLngToDivPixel(r.getSouthWest());return o&&s?{left:`${s.x+t.x}px`,top:`${o.y+t.y}px`,width:`${o.x-s.x-t.x}px`,height:`${s.y-o.y-t.y}px`}:{left:"-9999px",top:"-9999px"}},yV=(e,t,r)=>{let o=e&&e.fromLatLngToDivPixel(r);if(o){let{x:s,y:f}=o;return{left:`${s+t.x}px`,top:`${f+t.y}px`}}return{left:"-9999px",top:"-9999px"}},bV=(e,t,r,o)=>r!==void 0?gV(e,t,RD(r,google.maps.LatLngBounds,mV)):yV(e,t,RD(o,google.maps.LatLng,vV)),xV=(e,t)=>e.left===t.left&&e.top===t.top&&e.width===t.height&&e.height===t.height;is=class extends we.PureComponent{constructor(t){super(t);this.state={paneEl:null,containerStyle:{position:"absolute"}},this.updatePane=()=>{let o=this.props.mapPaneName,s=this.overlayView.getPanes();Br(!!o,"OverlayView requires props.mapPaneName but got %s",o),s?this.setState({paneEl:s[o]}):this.setState({paneEl:null})},this.onAdd=()=>{var o,s;this.updatePane(),(s=(o=this.props).onLoad)===null||s===void 0||s.call(o,this.overlayView)},this.onPositionElement=()=>{let o=this.overlayView.getProjection(),s=Object.assign({x:0,y:0},this.containerRef.current?hV(this.containerRef.current,this.props.getPixelPositionOffset):{}),f=bV(o,s,this.props.bounds,this.props.position),{left:d,top:p,width:m,height:y}=this.state.containerStyle;xV(f,{left:d,top:p,width:m,height:y})||this.setState({containerStyle:Object.assign(Object.assign({},f),{position:"absolute"})})},this.draw=()=>{this.onPositionElement()},this.onRemove=()=>{var o,s;this.setState(()=>({paneEl:null})),(s=(o=this.props).onUnmount)===null||s===void 0||s.call(o,this.overlayView)},this.containerRef=we.createRef();let r=new google.maps.OverlayView;r.onAdd=this.onAdd,r.draw=this.draw,r.onRemove=this.onRemove,this.overlayView=r}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(t){let r=LD(t.position),o=LD(this.props.position),s=OD(t.bounds),f=OD(this.props.bounds);(r!==o||s!==f)&&this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){let t=this.state.paneEl;return t?by.createPortal(we.createElement("div",{ref:this.containerRef,style:this.state.containerStyle},we.Children.only(this.props.children)),t):null}};is.FLOAT_PANE="floatPane";is.MAP_PANE="mapPane";is.MARKER_LAYER="markerLayer";is.OVERLAY_LAYER="overlayLayer";is.OVERLAY_MOUSE_TARGET="overlayMouseTarget";is.contextType=_n;DD={onDblClick:"dblclick",onClick:"click"},PD={opacity(e,t){e.setOpacity(t)}},Sy=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={groundOverlay:null},this.setGroundOverlayCallback=()=>{this.state.groundOverlay!==null&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)}}componentDidMount(){Br(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");let t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=xt({updaterMap:PD,eventMap:DD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{groundOverlay:t}},this.setGroundOverlayCallback)}componentDidUpdate(t){this.state.groundOverlay!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:PD,eventMap:DD,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}};Sy.defaultProps={onLoad:SV};Sy.contextType=_n;AD={},ND={data(e,t){e.setData(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)}},Nw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={heatmapLayer:null},this.setHeatmapLayerCallback=()=>{this.state.heatmapLayer!==null&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)}}componentDidMount(){Br(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),Br(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);let t=new google.maps.visualization.HeatmapLayer(Object.assign(Object.assign({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=xt({updaterMap:ND,eventMap:AD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{heatmapLayer:t}},this.setHeatmapLayerCallback)}componentDidUpdate(t){Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:ND,eventMap:AD,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){this.state.heatmapLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),Et(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}};Nw.contextType=_n;zD={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},ID={register(e,t,r){e.registerPanoProvider(t,r)},links(e,t){e.setLinks(t)},motionTracking(e,t){e.setMotionTracking(t)},options(e,t){e.setOptions(t)},pano(e,t){e.setPano(t)},position(e,t){e.setPosition(t)},pov(e,t){e.setPov(t)},visible(e,t){e.setVisible(t)},zoom(e,t){e.setZoom(t)}},zw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={streetViewPanorama:null},this.setStreetViewPanoramaCallback=()=>{this.state.streetViewPanorama!==null&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)}}componentDidMount(){let t=this.context.getStreetView();this.registeredEvents=xt({updaterMap:ID,eventMap:zD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{streetViewPanorama:t}},this.setStreetViewPanoramaCallback)}componentDidUpdate(t){this.state.streetViewPanorama!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:ID,eventMap:zD,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){this.state.streetViewPanorama!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),Et(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}};zw.contextType=_n;Iw=class extends we.PureComponent{constructor(){super(...arguments);this.state={streetViewService:null},this.setStreetViewServiceCallback=()=>{this.state.streetViewService!==null&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)}}componentDidMount(){let t=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:t}},this.setStreetViewServiceCallback)}componentWillUnmount(){this.state.streetViewService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}};Iw.contextType=_n;M5=class extends we.PureComponent{constructor(){super(...arguments);this.state={directionsService:null},this.setDirectionsServiceCallback=()=>{this.state.directionsService!==null&&this.props.onLoad&&this.props.onLoad(this.state.directionsService)}}componentDidMount(){Br(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);let t=new google.maps.DirectionsService;this.setState(function(){return{directionsService:t}},this.setDirectionsServiceCallback)}componentDidUpdate(){this.state.directionsService!==null&&this.state.directionsService.route(this.props.options,this.props.callback)}componentWillUnmount(){this.state.directionsService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)}render(){return we.createElement(we.Fragment,null)}},UD={onDirectionsChanged:"directions_changed"},FD={directions(e,t){e.setDirections(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},panel(e,t){e.setPanel(t)},routeIndex(e,t){e.setRouteIndex(t)}},Uw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.state={directionsRenderer:null},this.setDirectionsRendererCallback=()=>{this.state.directionsRenderer!==null&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))}}componentDidMount(){let t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=xt({updaterMap:FD,eventMap:UD,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{directionsRenderer:t}},this.setDirectionsRendererCallback)}componentDidUpdate(t){this.state.directionsRenderer!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:FD,eventMap:UD,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){this.state.directionsRenderer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),Et(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return we.createElement(we.Fragment,null)}};Uw.contextType=_n;T5=class extends we.PureComponent{constructor(){super(...arguments);this.state={distanceMatrixService:null},this.setDistanceMatrixServiceCallback=()=>{this.state.distanceMatrixService!==null&&this.props.onLoad&&this.props.onLoad(this.state.distanceMatrixService)}}componentDidMount(){Br(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);let t=new google.maps.DistanceMatrixService;this.setState(function(){return{distanceMatrixService:t}},this.setDistanceMatrixServiceCallback)}componentDidUpdate(){this.state.distanceMatrixService!==null&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)}componentWillUnmount(){this.state.distanceMatrixService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)}render(){return we.createElement(we.Fragment,null)}},jD={onPlacesChanged:"places_changed"},BD={bounds(e,t){e.setBounds(t)}},Fw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.containerElement=we.createRef(),this.state={searchBox:null},this.setSearchBoxCallback=()=>{this.state.searchBox!==null&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}}componentDidMount(){if(Br(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),this.containerElement!==null&&this.containerElement.current!==null){let t=this.containerElement.current.querySelector("input");if(t!==null){let r=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=xt({updaterMap:BD,eventMap:jD,prevProps:{},nextProps:this.props,instance:r}),this.setState(function(){return{searchBox:r}},this.setSearchBoxCallback)}}}componentDidUpdate(t){this.state.searchBox!==null&&(Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:BD,eventMap:jD,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){this.state.searchBox!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),Et(this.registeredEvents))}render(){return we.createElement("div",{ref:this.containerElement},we.Children.only(this.props.children))}};Fw.contextType=_n;HD={onPlaceChanged:"place_changed"},VD={bounds(e,t){e.setBounds(t)},restrictions(e,t){e.setComponentRestrictions(t)},fields(e,t){e.setFields(t)},options(e,t){e.setOptions(t)},types(e,t){e.setTypes(t)}},jw=class extends we.PureComponent{constructor(){super(...arguments);this.registeredEvents=[],this.containerElement=we.createRef(),this.state={autocomplete:null},this.setAutocompleteCallback=()=>{this.state.autocomplete!==null&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}}componentDidMount(){Br(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);let t=this.containerElement.current.querySelector("input");if(t){let r=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=xt({updaterMap:VD,eventMap:HD,prevProps:{},nextProps:this.props,instance:r}),this.setState(function(){return{autocomplete:r}},this.setAutocompleteCallback)}}componentDidUpdate(t){Et(this.registeredEvents),this.registeredEvents=xt({updaterMap:VD,eventMap:HD,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){this.state.autocomplete!==null&&Et(this.registeredEvents)}render(){return we.createElement("div",{ref:this.containerElement,className:this.props.className||""},we.Children.only(this.props.children))}};jw.contextType=_n});var P5=Mt(it=>{"use strict";G();Object.defineProperty(it,"__esModule",{value:!0});it.earthRadius=63710088e-1;it.factors={centimeters:it.earthRadius*100,centimetres:it.earthRadius*100,degrees:it.earthRadius/111325,feet:it.earthRadius*3.28084,inches:it.earthRadius*39.37,kilometers:it.earthRadius/1e3,kilometres:it.earthRadius/1e3,meters:it.earthRadius,metres:it.earthRadius,miles:it.earthRadius/1609.344,millimeters:it.earthRadius*1e3,millimetres:it.earthRadius*1e3,nauticalmiles:it.earthRadius/1852,radians:1,yards:it.earthRadius*1.0936};it.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/it.earthRadius,yards:1.0936133};it.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function as(e,t,r){r===void 0&&(r={});var o={type:"Feature"};return(r.id===0||r.id)&&(o.id=r.id),r.bbox&&(o.bbox=r.bbox),o.properties=t||{},o.geometry=e,o}it.feature=as;function EV(e,t,r){switch(r===void 0&&(r={}),e){case"Point":return Bw(t).geometry;case"LineString":return Vw(t).geometry;case"Polygon":return Hw(t).geometry;case"MultiPoint":return R5(t).geometry;case"MultiLineString":return k5(t).geometry;case"MultiPolygon":return L5(t).geometry;default:throw new Error(e+" is invalid")}}it.geometry=EV;function Bw(e,t,r){if(r===void 0&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Cy(e[0])||!Cy(e[1]))throw new Error("coordinates must contain numbers");var o={type:"Point",coordinates:e};return as(o,t,r)}it.point=Bw;function wV(e,t,r){return r===void 0&&(r={}),_y(e.map(function(o){return Bw(o,t)}),r)}it.points=wV;function Hw(e,t,r){r===void 0&&(r={});for(var o=0,s=e;o<s.length;o++){var f=s[o];if(f.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var d=0;d<f[f.length-1].length;d++)if(f[f.length-1][d]!==f[0][d])throw new Error("First and last Position are not equivalent.")}var p={type:"Polygon",coordinates:e};return as(p,t,r)}it.polygon=Hw;function CV(e,t,r){return r===void 0&&(r={}),_y(e.map(function(o){return Hw(o,t)}),r)}it.polygons=CV;function Vw(e,t,r){if(r===void 0&&(r={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var o={type:"LineString",coordinates:e};return as(o,t,r)}it.lineString=Vw;function _V(e,t,r){return r===void 0&&(r={}),_y(e.map(function(o){return Vw(o,t)}),r)}it.lineStrings=_V;function _y(e,t){t===void 0&&(t={});var r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}it.featureCollection=_y;function k5(e,t,r){r===void 0&&(r={});var o={type:"MultiLineString",coordinates:e};return as(o,t,r)}it.multiLineString=k5;function R5(e,t,r){r===void 0&&(r={});var o={type:"MultiPoint",coordinates:e};return as(o,t,r)}it.multiPoint=R5;function L5(e,t,r){r===void 0&&(r={});var o={type:"MultiPolygon",coordinates:e};return as(o,t,r)}it.multiPolygon=L5;function MV(e,t,r){r===void 0&&(r={});var o={type:"GeometryCollection",geometries:e};return as(o,t,r)}it.geometryCollection=MV;function TV(e,t){if(t===void 0&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r}it.round=TV;function O5(e,t){t===void 0&&(t="kilometers");var r=it.factors[t];if(!r)throw new Error(t+" units is invalid");return e*r}it.radiansToLength=O5;function Ww(e,t){t===void 0&&(t="kilometers");var r=it.factors[t];if(!r)throw new Error(t+" units is invalid");return e/r}it.lengthToRadians=Ww;function kV(e,t){return D5(Ww(e,t))}it.lengthToDegrees=kV;function RV(e){var t=e%360;return t<0&&(t+=360),t}it.bearingToAzimuth=RV;function D5(e){var t=e%(2*Math.PI);return t*180/Math.PI}it.radiansToDegrees=D5;function LV(e){var t=e%360;return t*Math.PI/180}it.degreesToRadians=LV;function OV(e,t,r){if(t===void 0&&(t="kilometers"),r===void 0&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return O5(Ww(e,t),r)}it.convertLength=OV;function DV(e,t,r){if(t===void 0&&(t="meters"),r===void 0&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var o=it.areaFactors[t];if(!o)throw new Error("invalid original units");var s=it.areaFactors[r];if(!s)throw new Error("invalid final units");return e/o*s}it.convertArea=DV;function Cy(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}it.isNumber=Cy;function PV(e){return!!e&&e.constructor===Object}it.isObject=PV;function AV(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(t){if(!Cy(t))throw new Error("bbox must only contain numbers")})}it.validateBBox=AV;function NV(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}it.validateId=NV});var U5=Mt(fr=>{"use strict";G();Object.defineProperty(fr,"__esModule",{value:!0});var Hr=P5();function fh(e,t,r){if(e!==null)for(var o,s,f,d,p,m,y,E=0,w=0,k,O=e.type,A=O==="FeatureCollection",W=O==="Feature",P=A?e.features.length:1,R=0;R<P;R++){y=A?e.features[R].geometry:W?e.geometry:e,k=y?y.type==="GeometryCollection":!1,p=k?y.geometries.length:1;for(var D=0;D<p;D++){var T=0,M=0;if(d=k?y.geometries[D]:y,d!==null){m=d.coordinates;var U=d.type;switch(E=r&&(U==="Polygon"||U==="MultiPolygon")?1:0,U){case null:break;case"Point":if(t(m,w,R,T,M)===!1)return!1;w++,T++;break;case"LineString":case"MultiPoint":for(o=0;o<m.length;o++){if(t(m[o],w,R,T,M)===!1)return!1;w++,U==="MultiPoint"&&T++}U==="LineString"&&T++;break;case"Polygon":case"MultiLineString":for(o=0;o<m.length;o++){for(s=0;s<m[o].length-E;s++){if(t(m[o][s],w,R,T,M)===!1)return!1;w++}U==="MultiLineString"&&T++,U==="Polygon"&&M++}U==="Polygon"&&T++;break;case"MultiPolygon":for(o=0;o<m.length;o++){for(M=0,s=0;s<m[o].length;s++){for(f=0;f<m[o][s].length-E;f++){if(t(m[o][s][f],w,R,T,M)===!1)return!1;w++}M++}T++}break;case"GeometryCollection":for(o=0;o<d.geometries.length;o++)if(fh(d.geometries[o],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function zV(e,t,r,o){var s=r;return fh(e,function(f,d,p,m,y){d===0&&r===void 0?s=f:s=t(s,f,d,p,m,y)},o),s}function A5(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&t(e.features[r].properties,r)!==!1;r++);break;case"Feature":t(e.properties,0);break}}function IV(e,t,r){var o=r;return A5(e,function(s,f){f===0&&r===void 0?o=s:o=t(o,s,f)}),o}function N5(e,t){if(e.type==="Feature")t(e,0);else if(e.type==="FeatureCollection")for(var r=0;r<e.features.length&&t(e.features[r],r)!==!1;r++);}function UV(e,t,r){var o=r;return N5(e,function(s,f){f===0&&r===void 0?o=s:o=t(o,s,f)}),o}function FV(e){var t=[];return fh(e,function(r){t.push(r)}),t}function $w(e,t){var r,o,s,f,d,p,m,y,E,w,k=0,O=e.type==="FeatureCollection",A=e.type==="Feature",W=O?e.features.length:1;for(r=0;r<W;r++){for(p=O?e.features[r].geometry:A?e.geometry:e,y=O?e.features[r].properties:A?e.properties:{},E=O?e.features[r].bbox:A?e.bbox:void 0,w=O?e.features[r].id:A?e.id:void 0,m=p?p.type==="GeometryCollection":!1,d=m?p.geometries.length:1,s=0;s<d;s++){if(f=m?p.geometries[s]:p,f===null){if(t(null,k,y,E,w)===!1)return!1;continue}switch(f.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(t(f,k,y,E,w)===!1)return!1;break}case"GeometryCollection":{for(o=0;o<f.geometries.length;o++)if(t(f.geometries[o],k,y,E,w)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}k++}}function jV(e,t,r){var o=r;return $w(e,function(s,f,d,p,m){f===0&&r===void 0?o=s:o=t(o,s,f,d,p,m)}),o}function My(e,t){$w(e,function(r,o,s,f,d){var p=r===null?null:r.type;switch(p){case null:case"Point":case"LineString":case"Polygon":return t(Hr.feature(r,s,{bbox:f,id:d}),o,0)===!1?!1:void 0}var m;switch(p){case"MultiPoint":m="Point";break;case"MultiLineString":m="LineString";break;case"MultiPolygon":m="Polygon";break}for(var y=0;y<r.coordinates.length;y++){var E=r.coordinates[y],w={type:m,coordinates:E};if(t(Hr.feature(w,s),o,y)===!1)return!1}})}function BV(e,t,r){var o=r;return My(e,function(s,f,d){f===0&&d===0&&r===void 0?o=s:o=t(o,s,f,d)}),o}function z5(e,t){My(e,function(r,o,s){var f=0;if(!!r.geometry){var d=r.geometry.type;if(!(d==="Point"||d==="MultiPoint")){var p,m=0,y=0,E=0;if(fh(r,function(w,k,O,A,W){if(p===void 0||o>m||A>y||W>E){p=w,m=o,y=A,E=W,f=0;return}var P=Hr.lineString([p,w],r.properties);if(t(P,o,s,W,f)===!1)return!1;f++,p=w})===!1)return!1}}})}function HV(e,t,r){var o=r,s=!1;return z5(e,function(f,d,p,m,y){s===!1&&r===void 0?o=f:o=t(o,f,d,p,m,y),s=!0}),o}function I5(e,t){if(!e)throw new Error("geojson is required");My(e,function(r,o,s){if(r.geometry!==null){var f=r.geometry.type,d=r.geometry.coordinates;switch(f){case"LineString":if(t(r,o,s,0,0)===!1)return!1;break;case"Polygon":for(var p=0;p<d.length;p++)if(t(Hr.lineString(d[p],r.properties),o,s,p)===!1)return!1;break}}})}function VV(e,t,r){var o=r;return I5(e,function(s,f,d,p){f===0&&r===void 0?o=s:o=t(o,s,f,d,p)}),o}function WV(e,t){if(t=t||{},!Hr.isObject(t))throw new Error("options is invalid");var r=t.featureIndex||0,o=t.multiFeatureIndex||0,s=t.geometryIndex||0,f=t.segmentIndex||0,d=t.properties,p;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),d=d||e.features[r].properties,p=e.features[r].geometry;break;case"Feature":d=d||e.properties,p=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":p=e;break;default:throw new Error("geojson is invalid")}if(p===null)return null;var m=p.coordinates;switch(p.type){case"Point":case"MultiPoint":return null;case"LineString":return f<0&&(f=m.length+f-1),Hr.lineString([m[f],m[f+1]],d,t);case"Polygon":return s<0&&(s=m.length+s),f<0&&(f=m[s].length+f-1),Hr.lineString([m[s][f],m[s][f+1]],d,t);case"MultiLineString":return o<0&&(o=m.length+o),f<0&&(f=m[o].length+f-1),Hr.lineString([m[o][f],m[o][f+1]],d,t);case"MultiPolygon":return o<0&&(o=m.length+o),s<0&&(s=m[o].length+s),f<0&&(f=m[o][s].length-f-1),Hr.lineString([m[o][s][f],m[o][s][f+1]],d,t)}throw new Error("geojson is invalid")}function $V(e,t){if(t=t||{},!Hr.isObject(t))throw new Error("options is invalid");var r=t.featureIndex||0,o=t.multiFeatureIndex||0,s=t.geometryIndex||0,f=t.coordIndex||0,d=t.properties,p;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),d=d||e.features[r].properties,p=e.features[r].geometry;break;case"Feature":d=d||e.properties,p=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":p=e;break;default:throw new Error("geojson is invalid")}if(p===null)return null;var m=p.coordinates;switch(p.type){case"Point":return Hr.point(m,d,t);case"MultiPoint":return o<0&&(o=m.length+o),Hr.point(m[o],d,t);case"LineString":return f<0&&(f=m.length+f),Hr.point(m[f],d,t);case"Polygon":return s<0&&(s=m.length+s),f<0&&(f=m[s].length+f),Hr.point(m[s][f],d,t);case"MultiLineString":return o<0&&(o=m.length+o),f<0&&(f=m[o].length+f),Hr.point(m[o][f],d,t);case"MultiPolygon":return o<0&&(o=m.length+o),s<0&&(s=m[o].length+s),f<0&&(f=m[o][s].length-f),Hr.point(m[o][s][f],d,t)}throw new Error("geojson is invalid")}fr.coordAll=FV;fr.coordEach=fh;fr.coordReduce=zV;fr.featureEach=N5;fr.featureReduce=UV;fr.findPoint=$V;fr.findSegment=WV;fr.flattenEach=My;fr.flattenReduce=BV;fr.geomEach=$w;fr.geomReduce=jV;fr.lineEach=I5;fr.lineReduce=VV;fr.propEach=A5;fr.propReduce=IV;fr.segmentEach=z5;fr.segmentReduce=HV});var dh=Mt(Gw=>{"use strict";G();Object.defineProperty(Gw,"__esModule",{value:!0});var qV=U5();function qw(e){var t=[1/0,1/0,-1/0,-1/0];return qV.coordEach(e,function(r){t[0]>r[0]&&(t[0]=r[0]),t[1]>r[1]&&(t[1]=r[1]),t[2]<r[0]&&(t[2]=r[0]),t[3]<r[1]&&(t[3]=r[1])}),t}qw.default=qw;Gw.default=qw});var G5=Mt((TJ,q5)=>{G();var GV=Object.create,hh=Object.defineProperty,YV=Object.getOwnPropertyDescriptor,ZV=Object.getOwnPropertyNames,F5=Object.getOwnPropertySymbols,QV=Object.getPrototypeOf,H5=Object.prototype.hasOwnProperty,KV=Object.prototype.propertyIsEnumerable,j5=(e,t,r)=>t in e?hh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JV=(e,t)=>{for(var r in t||(t={}))H5.call(t,r)&&j5(e,r,t[r]);if(F5)for(var r of F5(t))KV.call(t,r)&&j5(e,r,t[r]);return e},V5=e=>hh(e,"__esModule",{value:!0}),XV=(e,t)=>{for(var r in t)hh(e,r,{get:t[r],enumerable:!0})},W5=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ZV(t))!H5.call(e,s)&&(r||s!=="default")&&hh(e,s,{get:()=>t[s],enumerable:!(o=YV(t,s))||o.enumerable});return e},pf=(e,t)=>W5(V5(hh(e!=null?GV(QV(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),eW=(e=>(t,r)=>e&&e.get(t)||(r=W5(V5({}),t,1),e&&e.set(t,r),r))(typeof WeakMap<"u"?new WeakMap:0),$5={};XV($5,{NakshaGmapsDraw:()=>gW});var Yw=Er(),Zw=(wy(),on(Ey)),er=pf(ct("react")),tW=Er(),nW=(wy(),on(Ey)),B5=pf(ct("react")),rW=pf(dh()),ti={POINT:"Point",POLYGON:"Polygon",LINESTRING:"LineString",RECTANGLE:"Rectangle",RAW:"Raw",NONE:null},iW={mapTypeControlOptions:{position:10}},aW=e=>({type:ti.POINT,properties:{id:new Date().getTime(),name:e.name,formatted_address:e.formatted_address},coordinates:Object.values(e.geometry.location.toJSON()).reverse()}),oW=e=>{let t=new Date().getTime();switch(e.getType()){case ti.POINT:return{type:ti.POINT,properties:{id:t},coordinates:Object.values(e.get().toJSON()).reverse()};case ti.POLYGON:{let r=[],o=s=>r.push([s.lng(),s.lat()]);return e.forEachLatLng(o),r.push(r[0]),{type:ti.POLYGON,properties:{id:t},coordinates:[r]}}case ti.RAW:{let r=e.data;return r.push(r[0]),{type:ti.POLYGON,properties:{id:t},coordinates:[r]}}case ti.LINESTRING:{let r=[],o=s=>r.push([s.lng(),s.lat()]);return e.forEachLatLng(o),{type:ti.LINESTRING,properties:{id:t},coordinates:r}}default:return null}},lW=e=>{let t=(e||[]).filter(r=>r);return t.length===0?!1:{type:"FeatureCollection",features:t.map(r=>({type:"Feature",properties:{},geometry:r}))}},sW=e=>{let t=(0,rW.default)(e);return{east:t[2],north:t[3],south:t[1],west:t[0]}};function uW({InputComponent:e,addFeature:t,gmapRegion:r}){let[o,s]=(0,B5.useState)();return B5.default.createElement(nW.Autocomplete,{onLoad:f=>{s(f)},fields:tW.GMAPS_AUTOCOMPLETE_FIELDS,onPlaceChanged:()=>{let f=aW(o==null?void 0:o.getPlace());t(f)},options:r?{componentRestrictions:{country:r}}:{},children:e})}var Ty=pf(ct("react")),cW={background:"white",position:"absolute",top:"5px",left:"106px",padding:"0.4rem",borderRadius:"0.15rem",outline:0,boxShadow:"rgba(0, 0, 0, 0.3) 0px 1px 4px -1px"};function fW({onClick:e}){return Ty.default.createElement("button",{type:"button",title:"Clear",onClick:e,style:cW},Ty.default.createElement("svg",{viewBox:"0 0 24 24",width:"12",height:"12"},Ty.default.createElement("g",{fill:"#E53E3E"},Ty.default.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))))}var ky=pf(ct("react"));function dW({addFeature:e,InputComponent:t,ButtonComponent:r}){let o=(0,ky.useRef)(),s=()=>{var f,d;try{let p=(f=o==null?void 0:o.current)==null?void 0:f.value,m=(d=p.split(",").map(Number))==null?void 0:d.reverse();e({type:ti.POINT,properties:{id:new Date().getTime(),name:p,formatted_address:p},coordinates:m})}catch(p){console.error(p)}};return ky.default.createElement("div",{style:{display:"flex"}},ky.default.cloneElement(t,{ref:o}),ky.default.cloneElement(r,{onClick:s,type:"button"}))}var lu={ADD:"add",CLEAR:"clear",REPLACE:"replace"};function pW(e,{action:t,data:r,isMultiple:o}){switch(t){case lu.ADD:return o?[...e||[],r]:[r];case lu.CLEAR:return[];case lu.REPLACE:return r;default:return e}}var ph=pf(ct("react")),Qw=ct("react"),hW={enableHighAccuracy:!1,timeout:1/0,maximumAge:0},vW=(e,t=hW)=>{let[r,o]=(0,Qw.useState)(),[s,f]=(0,Qw.useState)(),d=({coords:m})=>{o([m.longitude,m.latitude])},p=m=>{f(m.message)};return(0,Qw.useEffect)(()=>{if(!navigator||!navigator.geolocation){f("Geolocation is not supported");return}let m=null;return e?m=navigator.geolocation.watchPosition(d,p,t):m&&navigator.geolocation.clearWatch(m),()=>m&&navigator.geolocation.clearWatch(m)},[t,e]),{position:r,error:s}};function mW({TraceButtonComponent:e,onFeatureAdded:t}){let[r,o]=(0,ph.useState)([]),[s,f]=(0,ph.useState)(!1),{position:d}=vW(s);(0,ph.useEffect)(()=>{s&&d&&o([...r,d])},[s,d]);let p=()=>{s?(f(!1),t({getType:()=>ti.RAW,data:[...r]}),o([])):f(!0)};return ph.default.createElement("div",null,ph.default.cloneElement(e,{onClick:p,isTracking:s}))}var gW=er.default.forwardRef(({defaultViewPort:e,defaultFeatures:t,onFeaturesChange:r,gmapApiAccessToken:o,isControlled:s,isReadOnly:f,isMultiple:d,isImport:p,isAutocomplete:m,gmapRegion:y,autoCompleteRegion:E,mapStyle:w,importInputComponent:k,importButtonComponent:O,autocompleteComponent:A,showTrace:W,traceButtonComponent:P,maxZoom:R,options:D},T)=>{let M=(0,er.useRef)(null),[U,Y]=(0,er.useReducer)(pW,t),[F,ne]=(0,er.useState)(),ue=(0,er.useMemo)(()=>(0,Yw.mapboxToGmapsViewState)(e),[e]),Q=()=>{M.current.state.map.data.forEach(function(se){M.current.state.map.data.remove(se)});let le=lW(U);if(le){le&&M.current.state.map.data.addGeoJson(le);let se=sW(le);se&&M.current.state.map.fitBounds(se),R&&google.maps.event.addListenerOnce(M.current.state.map,"idle",function(){let ce=M.current.state.map.getZoom();M.current.state.map.setZoom(Math.min(R,ce))})}};(0,er.useEffect)(()=>{F&&(r&&r(U),T&&(T.current={addFeature:B,replaceFeature:ae}),Q())},[F,U]),(0,er.useEffect)(()=>{s&&JSON.stringify(U)!==JSON.stringify(t)&&Y({action:lu.REPLACE,data:t})},[t]);let B=le=>{Y({action:lu.ADD,data:le,isMultiple:d})},ae=le=>{Y({action:lu.REPLACE,data:[le]})},H=le=>{let se=oW(le);B(se)},K=()=>{Y({action:lu.CLEAR})},re=()=>ne(!0);return er.default.createElement(Zw.LoadScriptNext,{googleMapsApiKey:o,region:y,libraries:m?Yw.GMAPS_LIBRARIES.AUTOCOMPLETE:Yw.GMAPS_LIBRARIES.DEFAULT},er.default.createElement(er.default.Fragment,null,er.default.createElement("div",{className:"map-toolbar",style:{display:"flex"}},m&&er.default.createElement(uW,{InputComponent:A||er.default.createElement("input",null),addFeature:B,gmapRegion:E!=null?E:y}),p&&er.default.createElement(dW,{InputComponent:k||er.default.createElement("input",null),ButtonComponent:O||er.default.createElement("button",{children:"import"}),addFeature:B})),W&&er.default.createElement(mW,{TraceButtonComponent:P||er.default.createElement("button",{children:"trace"}),onFeatureAdded:H}),er.default.createElement(Zw.GoogleMap,{id:"naksha-gmaps-draw",mapContainerStyle:w||{height:"100%",width:"100%"},zoom:ue.zoom,center:ue.center,options:iW,ref:M,onLoad:re},d&&er.default.createElement(fW,{onClick:K}),!f&&er.default.createElement(Zw.Data,{options:JV({controls:[ti.POINT,ti.POLYGON,ti.LINESTRING],drawingMode:ti.POLYGON,featureFactory:H},D||{})}))))});q5.exports=eW($5)});var a9=Mt((kJ,i9)=>{G();var yW=Object.create,vh=Object.defineProperty,bW=Object.getOwnPropertyDescriptor,xW=Object.getOwnPropertyNames,Y5=Object.getOwnPropertySymbols,SW=Object.getPrototypeOf,X5=Object.prototype.hasOwnProperty,EW=Object.prototype.propertyIsEnumerable,Z5=(e,t,r)=>t in e?vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q5=(e,t)=>{for(var r in t||(t={}))X5.call(t,r)&&Z5(e,r,t[r]);if(Y5)for(var r of Y5(t))EW.call(t,r)&&Z5(e,r,t[r]);return e},e9=e=>vh(e,"__esModule",{value:!0}),wW=(e,t)=>{for(var r in t)vh(e,r,{get:t[r],enumerable:!0})},t9=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of xW(t))!X5.call(e,s)&&(r||s!=="default")&&vh(e,s,{get:()=>t[s],enumerable:!(o=bW(t,s))||o.enumerable});return e},n9=(e,t)=>t9(e9(vh(e!=null?yW(SW(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),CW=(e=>(t,r)=>e&&e.get(t)||(r=t9(e9({}),t,1),e&&e.set(t,r),r))(typeof WeakMap<"u"?new WeakMap:0),r9={};wW(r9,{NakshaGmapsView:()=>kW});var K5=Er(),J5=(wy(),on(Ey)),hf=n9(ct("react")),_W={mapTypeControlOptions:{position:10}},MW=n9(dh()),TW=e=>{let t=(0,MW.default)(e);return{east:t[2],north:t[3],south:t[1],west:t[0]}};function kW({defaultViewPort:e,gmapApiAccessToken:t,gmapRegion:r,features:o,mapStyle:s,maxZoom:f,options:d}){let p=(0,hf.useRef)(null),[m]=(0,hf.useState)((0,K5.mapboxToGmapsViewState)(e)),[y,E]=(0,hf.useState)(),w=()=>{p.current.state.map.data.forEach(function(A){p.current.state.map.data.remove(A)});let O=Array.isArray(o)?{type:"FeatureCollection",features:o}:o;if(O){O&&p.current.state.map.data.addGeoJson(O);let A=TW(O);A&&p.current.state.map.fitBounds(A),f&&google.maps.event.addListenerOnce(p.current.state.map,"idle",function(){let W=p.current.state.map.getZoom();p.current.state.map.setZoom(Math.min(f,W))})}};(0,hf.useEffect)(()=>{y&&w()},[y,o]);let k=()=>E(!0);return hf.default.createElement(J5.LoadScriptNext,{googleMapsApiKey:t,region:r,libraries:K5.GMAPS_LIBRARIES.DEFAULT},hf.default.createElement(J5.GoogleMap,{id:"naksha-gmaps-view",mapContainerStyle:s||{height:"100%",width:"100%"},zoom:m.zoom,center:m.center,options:Q5(Q5({},_W),d||{}),ref:p,onLoad:k}))}i9.exports=CW(r9)});import*as Ry from"react";import{useState as RW,useCallback as o9,useContext as LW}from"react";function s9(){let{maps:e}=LW(Ly);return e}var Ly,l9,Kw=tt(()=>{G();Ly=Ry.createContext(null),l9=e=>{let[t,r]=RW({}),o=o9((f,d="default")=>{r(p=>{if(p[d])throw new Error(`Multiple maps with the same id: ${d}`);return ka(In({},p),{[d]:f})})},[]),s=o9((f="default")=>{r(d=>{if(d[f]){let p=In({},d);return delete p[f],p}return d})},[]);return Ry.createElement(Ly.Provider,{value:{maps:t,onMapMount:o,onMapUnmount:s}},e.children)}});function Jw(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Xw(e,t){let r=t.viewState||t,o=!1;if("longitude"in r&&"latitude"in r){let s=e.center;e.center=new s.constructor(r.longitude,r.latitude),o=o||s!==e.center}if("zoom"in r){let s=e.zoom;e.zoom=r.zoom,o=o||s!==e.zoom}if("bearing"in r){let s=e.bearing;e.bearing=r.bearing,o=o||s!==e.bearing}if("pitch"in r){let s=e.pitch;e.pitch=r.pitch,o=o||s!==e.pitch}return r.padding&&!e.isPaddingEqual(r.padding)&&(o=!0,e.padding=r.padding),o}var u9=tt(()=>{G()});function eC(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let o of e.layers)t[o.id]=o;let r=e.layers.map(o=>{let s=t[o.ref],f=null;if("interactive"in o&&(f=In({},o),delete f.interactive),s){f=f||In({},o),delete f.ref;for(let d of OW)d in s&&(f[d]=s[d])}return f||o});return ka(In({},e),{layers:r})}var OW,c9=tt(()=>{G();OW=["type","source","source-layer","minzoom","maxzoom","filter","layout"]});function f9(e,t){let r=Array.isArray(e)?e[0]:e?e.x:0,o=Array.isArray(e)?e[1]:e?e.y:0,s=Array.isArray(t)?t[0]:t?t.x:0,f=Array.isArray(t)?t[1]:t?t.y:0;return r===s&&o===f}function Vr(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Vr(e[r],t[r]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let s of r)if(!t.hasOwnProperty(s)||!Vr(e[s],t[s]))return!1;return!0}return!1}var vf=tt(()=>{G()});function AW(){let e=null;if(typeof location<"u"){let t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}var d9,tC,p9,DW,PW,qo,h9=tt(()=>{G();u9();c9();vf();d9={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},tC={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},p9={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},DW=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],PW=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"],qo=class{constructor(t,r,o){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=s=>{let f=this.props[p9[s.type]];f&&f(s)},this._onPointerEvent=s=>{(s.type==="mousemove"||s.type==="mouseout")&&this._updateHover(s);let f=this.props[d9[s.type]];if(f){if(this.props.interactiveLayerIds&&s.type!=="mouseover"&&s.type!=="mouseout"){let d=this._hoveredFeatures||this._map.queryRenderedFeatures(s.point,{layers:this.props.interactiveLayerIds});if(!d.length)return;s.features=d}f(s),delete s.features}},this._onCameraEvent=s=>{if(!this._internalUpdate){let f=this.props[tC[s.type]];f&&f(s)}s.type in this._deferredEvents&&(this._deferredEvents[s.type]=!1)},this._MapClass=t,this.props=r,this._initialize(o)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){let r=this.props;this.props=t;let o=this._updateSettings(t,r);o&&(this._renderTransform=this._map.transform.clone());let s=this._updateSize(t),f=this._updateViewState(t,!0);this._updateStyle(t,r),this._updateStyleComponents(t,r),this._updateHandlers(t,r),(o||s||f&&!this._map.isMoving())&&this.redraw()}static reuse(t,r){let o=qo.savedMaps.pop();if(!o)return null;let s=o.map,f=s.getContainer();for(r.className=f.className;f.childNodes.length>0;)r.appendChild(f.childNodes[0]);return s._container=r,t.initialViewState&&o._updateViewState(t.initialViewState,!1),s.resize(),o.setProps(ka(In({},t),{styleDiffing:!1})),s.isStyleLoaded()?s.fire("load"):s.once("styledata",()=>s.fire("load")),o}_initialize(t){let{props:r}=this,o=ka(In(In({},r),r.initialViewState),{accessToken:r.mapboxAccessToken||AW()||null,container:t,style:eC(r.mapStyle)}),s=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),r.gl){let y=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=y,r.gl)}let f=new this._MapClass(o);s.padding&&f.setPadding(s.padding),r.cursor&&(f.getCanvas().style.cursor=r.cursor),this._renderTransform=f.transform.clone();let d=f._render;f._render=y=>{this._inRender=!0,d.call(f,y),this._inRender=!1};let p=f._renderTaskQueue.run;f._renderTaskQueue.run=y=>{p.call(f._renderTaskQueue,y),this._onBeforeRepaint()},f.on("render",()=>this._onAfterRepaint());let m=f.fire;f.fire=this._fireEvent.bind(this,m),f.on("resize",()=>{this._renderTransform.resize(f.transform.width,f.transform.height)}),f.on("styledata",()=>this._updateStyleComponents(this.props,{})),f.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(let y in d9)f.on(y,this._onPointerEvent);for(let y in tC)f.on(y,this._onCameraEvent);for(let y in p9)f.on(y,this._onEvent);this._map=f}recycle(){qo.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_updateSize(t){let{viewState:r}=t;if(r){let o=this._map;if(r.width!==o.transform.width||r.height!==o.transform.height)return o.resize(),!0}return!1}_updateViewState(t,r){if(this._internalUpdate)return!1;let o=this._map,s=this._renderTransform,{zoom:f,pitch:d,bearing:p}=s,m=Xw(s,In(In({},Jw(o.transform)),t));if(m&&r){let y=this._deferredEvents;y.move=!0,y.zoom||(y.zoom=f!==s.zoom),y.rotate||(y.rotate=p!==s.bearing),y.pitch||(y.pitch=d!==s.pitch)}return o.isMoving()||Xw(o.transform,t),m}_updateSettings(t,r){let o=this._map,s=!1;for(let f of DW)f in t&&!Vr(t[f],r[f])&&(s=!0,o[`set${f[0].toUpperCase()}${f.slice(1)}`](t[f]));return s}_updateStyle(t,r){if(t.cursor!==r.cursor&&(this._map.getCanvas().style.cursor=t.cursor),t.mapStyle!==r.mapStyle){let o={diff:t.styleDiffing};return"localIdeographFontFamily"in t&&(o.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(eC(t.mapStyle),o),!0}return!1}_updateStyleComponents(t,r){let o=this._map,s=!1;return o.style.loaded()&&("light"in t&&!Vr(t.light,r.light)&&(s=!0,o.setLight(t.light)),"fog"in t&&!Vr(t.fog,r.fog)&&(s=!0,o.setFog(t.fog)),"terrain"in t&&!Vr(t.terrain,r.terrain)&&(!t.terrain||o.getSource(t.terrain.source))&&(s=!0,o.setTerrain(t.terrain))),s}_updateHandlers(t,r){let o=this._map,s=!1;for(let f of PW){let d=t[f];Vr(d,r[f])||(s=!0,d?o[f].enable(d):o[f].disable())}return s}_updateHover(t){var s;let{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){let f=t.type,d=((s=this._hoveredFeatures)==null?void 0:s.length)>0,p;if(f==="mousemove")try{p=this._map.queryRenderedFeatures(t.point,{layers:r.interactiveLayerIds})}catch{p=[]}else p=[];let m=p.length>0;!m&&d&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=p,m&&!d&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=f}else this._hoveredFeatures=null}_fireEvent(t,r,o){let s=this._map,f=s.transform,d=typeof r=="string"?r:r.type;return d==="move"&&this._updateViewState(this.props,!1),d in tC&&(typeof r=="object"&&(r.viewState=Jw(f)),this._map.isMoving())?(s.transform=this._renderTransform,t.call(s,r,o),s.transform=f,s):(t.call(s,r,o),s)}_onBeforeRepaint(){let t=this._map;this._internalUpdate=!0;for(let o in this._deferredEvents)this._deferredEvents[o]&&t.fire(o);this._internalUpdate=!1;let r=this._map.transform;this._map.transform=this._renderTransform,this._onAfterRepaint=()=>{this._map.transform=r}}};qo.savedMaps=[]});function Oy(e,t){if(!e)return null;let r=e.map,o={getMap:()=>r,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:s=>e.transform.locationPoint(t.LngLat.convert(s)),unproject:s=>e.transform.pointLocation(t.Point.convert(s))};for(let s of zW(r))!(s in o)&&!NW.includes(s)&&(o[s]=r[s].bind(r));return o}function zW(e){let t=new Set,r=e;for(;r;){for(let o of Object.getOwnPropertyNames(r))o[0]!=="_"&&typeof e[o]=="function"&&o!=="fire"&&o!=="setEventedParent"&&t.add(o);r=Object.getPrototypeOf(r)}return Array.from(t)}var NW,v9=tt(()=>{G();NW=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"]});import{useEffect as IW,useLayoutEffect as UW}from"react";var FW,m9,g9=tt(()=>{G();FW=typeof document<"u"?UW:IW,m9=FW});function nC(e,t){for(let r of jW)r in t&&(e[r]=t[r]);t.RTLTextPlugin&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(t.RTLTextPlugin,r=>{r&&console.error(r)},!1)}var jW,y9=tt(()=>{G();jW=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"]});import*as mh from"react";import{useState as BW,useRef as b9,useEffect as HW,useContext as VW,useMemo as WW,forwardRef as $W,useImperativeHandle as qW}from"react";var Pa,GW,rC,iC,os=tt(()=>{G();Kw();h9();v9();g9();y9();Pa=mh.createContext(null),GW={minZoom:0,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,mapStyle:{version:8,sources:{},layers:[]},styleDiffing:!0,projection:"mercator",renderWorldCopies:!0,onError:e=>console.error(e.error),RTLTextPlugin:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"},rC=$W((e,t)=>{let r=VW(Ly),[o,s]=BW(null),f=b9(),{current:d}=b9({mapLib:null,map:null});HW(()=>{let m=e.mapLib,y=!0,E;return Promise.resolve(m||Promise.resolve().then(()=>Fi(ct("./mapbox-gl-3PNS6OSM.js")))).then(w=>{if(!!y){if(w.Map||(w=w.default),!w||!w.Map)throw new Error("Invalid mapLib");if(w.supported(e))nC(w,e),e.reuseMaps&&(E=qo.reuse(e,f.current)),E||(E=new qo(w.Map,e,f.current)),d.map=E.map,d.mapLib=w,s(E),r==null||r.onMapMount(Oy(E,w),e.id);else throw new Error("Map is not supported by this browser")}}).catch(w=>{e.onError({type:"error",target:null,originalEvent:null,error:w})}),()=>{y=!1,E&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?E.recycle():E.destroy())}},[]),m9(()=>{o&&o.setProps(e)}),qW(t,()=>Oy(o,d.mapLib),[o]);let p=WW(()=>In({position:"relative",width:"100%",height:"100%"},e.style),[e.style]);return mh.createElement("div",{id:e.id,ref:f,style:p},o&&mh.createElement(Pa.Provider,{value:d},e.children))});rC.displayName="Map";rC.defaultProps=GW;iC=rC});function bi(e,t){if(!e||!t)return;let r=e.style;for(let o in t){let s=t[o];Number.isFinite(s)&&!YW.test(o)?r[o]=`${s}px`:r[o]=s}}var YW,ls=tt(()=>{G();YW=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/});import*as Dy from"react";import{useEffect as x9,useMemo as ZW,useRef as QW,useContext as KW}from"react";function E9(e){let{map:t,mapLib:r}=KW(Pa),o=QW({props:e});o.current.props=e;let s=ZW(()=>{let f=!1;Dy.Children.forEach(e.children,m=>{m&&(f=!0)});let d=ka(In({},e),{element:f?document.createElement("div"):null}),p=new r.Marker(d).setLngLat([e.longitude,e.latitude]);return p.getElement().addEventListener("click",m=>{var y,E;(E=(y=o.current.props).onClick)==null||E.call(y,{type:"click",target:p,originalEvent:m})}),p.on("dragstart",m=>{var E,w;let y=m;y.lngLat=s.getLngLat(),(w=(E=o.current.props).onDragStart)==null||w.call(E,y)}),p.on("drag",m=>{var E,w;let y=m;y.lngLat=s.getLngLat(),(w=(E=o.current.props).onDrag)==null||w.call(E,y)}),p.on("dragend",m=>{var E,w;let y=m;y.lngLat=s.getLngLat(),(w=(E=o.current.props).onDragEnd)==null||w.call(E,y)}),p},[]);return x9(()=>(s.addTo(t),()=>{s.remove()}),[]),x9(()=>{bi(s.getElement(),e.style)},[e.style]),(s.getLngLat().lng!==e.longitude||s.getLngLat().lat!==e.latitude)&&s.setLngLat([e.longitude,e.latitude]),e.offset&&!f9(s.getOffset(),e.offset)&&s.setOffset(e.offset),s.isDraggable()!==e.draggable&&s.setDraggable(e.draggable),s.getRotation()!==e.rotation&&s.setRotation(e.rotation),s.getRotationAlignment()!==e.rotationAlignment&&s.setRotationAlignment(e.rotationAlignment),s.getPitchAlignment()!==e.pitchAlignment&&s.setPitchAlignment(e.pitchAlignment),s.getPopup()!==e.popup&&s.setPopup(e.popup),(0,S9.createPortal)(e.children,s.getElement())}var S9,JW,w9,C9=tt(()=>{G();S9=Fi(oh());ls();os();vf();JW={draggable:!1,popup:null,rotation:0,rotationAlignment:"auto",pitchAlignment:"auto"};E9.defaultProps=JW;w9=Dy.memo(E9)});import*as k9 from"react";import{useEffect as _9,useMemo as M9,useRef as XW,useContext as e$}from"react";function T9(e){return new Set(e?e.trim().split(/\s+/):[])}function t$(e){let{map:t,mapLib:r}=e$(Pa),o=M9(()=>document.createElement("div"),[]),s=XW({props:e});s.current.props=e;let f=M9(()=>{let d=In({},e),p=new r.Popup(d).setLngLat([e.longitude,e.latitude]);return p.on("open",m=>{var y,E;(E=(y=s.current.props).onOpen)==null||E.call(y,m)}),p.on("close",m=>{var y,E;(E=(y=s.current.props).onClose)==null||E.call(y,m)}),p},[]);if(_9(()=>(f.setDOMContent(o).addTo(t),()=>{f.isOpen()&&f.remove()}),[]),_9(()=>{bi(f.getElement(),e.style)},[e.style]),f.isOpen()&&((f.getLngLat().lng!==e.longitude||f.getLngLat().lat!==e.latitude)&&f.setLngLat([e.longitude,e.latitude]),e.offset&&!Vr(f.options.offset,e.offset)&&f.setOffset(e.offset),(f.options.anchor!==e.anchor||f.options.maxWidth!==e.maxWidth)&&(f.options.anchor=e.anchor,f.setMaxWidth(e.maxWidth)),f.options.className!==e.className)){let d=T9(f.options.className),p=T9(e.className);for(let m of d)p.has(m)||f.removeClassName(m);for(let m of p)d.has(m)||f.addClassName(m);f.options.className=e.className}return(0,R9.createPortal)(e.children,o)}var R9,L9,O9=tt(()=>{G();R9=Fi(oh());ls();os();vf();L9=k9.memo(t$)});import{useContext as n$,useMemo as r$,useEffect as i$}from"react";function Hi(e,t,r){let o=n$(Pa),s=r$(()=>e(o),[]);return i$(()=>{var d;let{map:f}=o;return f.hasControl(s)||f.addControl(s,(d=r||t)==null?void 0:d.position),()=>{typeof t=="function"&&t(o),f.hasControl(s)&&f.removeControl(s)}},[]),s}var su=tt(()=>{G();os()});import*as D9 from"react";import{useEffect as a$}from"react";function o$(e){let t=Hi(({mapLib:r})=>new r.AttributionControl(e),{position:e.position});return a$(()=>{bi(t._container,e.style)},[e.style]),null}var P9,A9=tt(()=>{G();ls();su();P9=D9.memo(o$)});import*as N9 from"react";import{useEffect as l$}from"react";function s$(e){let t=Hi(({mapLib:r})=>new r.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return l$(()=>{bi(t._controlContainer,e.style)},[e.style]),null}var z9,I9=tt(()=>{G();ls();su();z9=N9.memo(s$)});import*as U9 from"react";import{forwardRef as u$,useImperativeHandle as c$,useRef as f$,useEffect as d$}from"react";var F9,j9,B9=tt(()=>{G();ls();su();F9=u$((e,t)=>{let r=f$({props:e}),o=Hi(({mapLib:s})=>{let f=new s.GeolocateControl(e);return f.on("geolocate",d=>{var p,m;(m=(p=r.current.props).onGeolocate)==null||m.call(p,d)}),f.on("error",d=>{var p,m;(m=(p=r.current.props).onError)==null||m.call(p,d)}),f.on("outofmaxbounds",d=>{var p,m;(m=(p=r.current.props).onOutOfMaxBounds)==null||m.call(p,d)}),f.on("trackuserlocationstart",d=>{var p,m;(m=(p=r.current.props).onTrackUserLocationStart)==null||m.call(p,d)}),f.on("trackuserlocationend",d=>{var p,m;(m=(p=r.current.props).onTrackUserLocationEnd)==null||m.call(p,d)}),f},{position:e.position});return r.current.props=e,c$(t,()=>({trigger:()=>o.trigger()}),[]),d$(()=>{bi(o._container,e.style)},[e.style]),null});F9.displayName="GeolocateControl";j9=U9.memo(F9)});import*as H9 from"react";import{useEffect as p$}from"react";function h$(e){let t=Hi(({mapLib:r})=>new r.NavigationControl(e),{position:e.position});return p$(()=>{bi(t._container,e.style)},[e.style]),null}var V9,W9=tt(()=>{G();ls();su();V9=H9.memo(h$)});import*as $9 from"react";import{useEffect as v$}from"react";function q9(e){let t=Hi(({mapLib:r})=>new r.ScaleControl(e),{position:e.position});return(t.options.unit!==e.unit||t.options.maxWidth!==e.maxWidth)&&(t.options.maxWidth=e.maxWidth,t.setUnit(e.unit)),v$(()=>{bi(t._container,e.style)},[e.style]),null}var m$,G9,Y9=tt(()=>{G();ls();su();m$={unit:"metric",maxWidth:100};q9.defaultProps=m$;G9=$9.memo(q9)});function uu(e,t){if(!e)throw new Error(t)}var aC=tt(()=>{G()});import*as Z9 from"react";import{useContext as g$,useEffect as y$,useMemo as b$,useState as x$,useRef as S$}from"react";import{cloneElement as E$}from"react";function C$(e,t,r){if(e.style&&e.style._loaded){let o=In({},r);return delete o.id,delete o.children,e.addSource(t,o),e.getSource(t)}return null}function _$(e,t,r){uu(t.id===r.id,"source id changed"),uu(t.type===r.type,"source type changed");let o="",s=0;for(let d in t)d!=="children"&&d!=="id"&&!Vr(r[d],t[d])&&(o=d,s++);if(!s)return;let f=t.type;if(f==="geojson")e.setData(t.data);else if(f==="image")e.updateImage({url:t.url,coordinates:t.coordinates});else if((f==="canvas"||f==="video")&&s===1&&o==="coordinates")e.setCoordinates(t.coordinates);else if(f==="vector"&&"setUrl"in e)switch(o){case"url":e.setUrl(t.url);break;case"tiles":e.setTiles(t.tiles);break;default:}else console.warn(`Unable to update <Source> prop: ${o}`)}function M$(e){let{map:t}=g$(Pa),r=S$(e),[,o]=x$(0),s=b$(()=>e.id||`jsx-source-${w$++}`,[]);y$(()=>{if(t){let d=()=>o(p=>p+1);return t.on("styledata",d),d(),()=>{t.off("styledata",d),setTimeout(()=>{t.style&&t.style._loaded&&t.getSource(s)&&t.removeSource(s)},0)}}},[t]);let f=t&&t.style&&t.getSource(s);return f?_$(f,e,r.current):f=C$(t,s,e),r.current=e,f&&Z9.Children.map(e.children,d=>d&&E$(d,{source:s}))||null}var w$,Q9,K9=tt(()=>{G();os();aC();vf();w$=0;Q9=M$});import{useContext as T$,useEffect as k$,useMemo as R$,useState as L$,useRef as O$}from"react";function D$(e,t,r,o){if(uu(r.id===o.id,"layer id changed"),uu(r.type===o.type,"layer type changed"),r.type==="custom"||o.type==="custom")return;let{layout:s={},paint:f={},filter:d,minzoom:p,maxzoom:m,beforeId:y}=r;if(y!==o.beforeId&&e.moveLayer(t,y),s!==o.layout){let E=o.layout||{};for(let w in s)Vr(s[w],E[w])||e.setLayoutProperty(t,w,s[w]);for(let w in E)s.hasOwnProperty(w)||e.setLayoutProperty(t,w,void 0)}if(f!==o.paint){let E=o.paint||{};for(let w in f)Vr(f[w],E[w])||e.setPaintProperty(t,w,f[w]);for(let w in E)f.hasOwnProperty(w)||e.setPaintProperty(t,w,void 0)}Vr(d,o.filter)||e.setFilter(t,d),(p!==o.minzoom||m!==o.maxzoom)&&e.setLayerZoomRange(t,p,m)}function P$(e,t,r){if(e.style&&e.style._loaded&&e.getSource(r.source)){let o=ka(In({},r),{id:t});delete o.beforeId,e.addLayer(o,r.beforeId)}}function N$(e){let{map:t}=T$(Pa),r=O$(e),[,o]=L$(0),s=R$(()=>e.id||`jsx-layer-${A$++}`,[]);if(k$(()=>{if(t){let d=()=>o(p=>p+1);return t.on("styledata",d),d(),()=>{t.off("styledata",d),t.style&&t.style._loaded&&t.removeLayer(s)}}},[t]),t&&t.style&&t.getLayer(s))try{D$(t,s,e,r.current)}catch(d){console.warn(d)}else P$(t,s,e);return r.current=e,null}var A$,J9,X9=tt(()=>{G();os();aC();vf();A$=0;J9=N$});var eP=tt(()=>{G()});var xi={};Ra(xi,{AttributionControl:()=>P9,FullscreenControl:()=>z9,GeolocateControl:()=>j9,Layer:()=>J9,Map:()=>iC,MapProvider:()=>l9,Marker:()=>w9,NavigationControl:()=>V9,Popup:()=>L9,ScaleControl:()=>G9,Source:()=>Q9,default:()=>iC,useControl:()=>Hi,useMap:()=>s9});var Si=tt(()=>{G();os();os();C9();O9();A9();I9();B9();W9();Y9();K9();X9();su();Kw();eP()});var tP=Mt((oC,lC)=>{G();(function(e,t){typeof oC=="object"&&typeof lC<"u"?lC.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self).MapboxDraw=t()})(oC,function(){"use strict";var e=function(v,x){var C={drag:[],click:[],mousemove:[],mousedown:[],mouseup:[],mouseout:[],keydown:[],keyup:[],touchstart:[],touchmove:[],touchend:[],tap:[]},I={on:function($,Z,Se){if(C[$]===void 0)throw new Error("Invalid event type: "+$);C[$].push({selector:Z,fn:Se})},render:function($){x.store.featureChanged($)}},X=function($,Z){for(var Se=C[$],me=Se.length;me--;){var Pe=Se[me];if(Pe.selector(Z)){Pe.fn.call(I,Z)||x.store.render(),x.ui.updateMapClasses();break}}};return v.start.call(I),{render:v.render,stop:function(){v.stop&&v.stop()},trash:function(){v.trash&&(v.trash(),x.store.render())},combineFeatures:function(){v.combineFeatures&&v.combineFeatures()},uncombineFeatures:function(){v.uncombineFeatures&&v.uncombineFeatures()},drag:function($){X("drag",$)},click:function($){X("click",$)},mousemove:function($){X("mousemove",$)},mousedown:function($){X("mousedown",$)},mouseup:function($){X("mouseup",$)},mouseout:function($){X("mouseout",$)},keydown:function($){X("keydown",$)},keyup:function($){X("keyup",$)},touchstart:function($){X("touchstart",$)},touchmove:function($){X("touchmove",$)},touchend:function($){X("touchend",$)},tap:function($){X("tap",$)}}},t=6378137;function r(v){var x=0;if(v&&v.length>0){x+=Math.abs(o(v[0]));for(var C=1;C<v.length;C++)x-=Math.abs(o(v[C]))}return x}function o(v){var x,C,I,X,$,Z,Se=0,me=v.length;if(me>2){for(Z=0;Z<me;Z++)Z===me-2?(I=me-2,X=me-1,$=0):Z===me-1?(I=me-1,X=0,$=1):(I=Z,X=Z+1,$=Z+2),x=v[I],C=v[X],Se+=(s(v[$][0])-s(x[0]))*Math.sin(s(C[1]));Se=Se*t*t/2}return Se}function s(v){return v*Math.PI/180}var f={geometry:function v(x){var C,I=0;switch(x.type){case"Polygon":return r(x.coordinates);case"MultiPolygon":for(C=0;C<x.coordinates.length;C++)I+=r(x.coordinates[C]);return I;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(C=0;C<x.geometries.length;C++)I+=v(x.geometries[C]);return I}},ring:o},d="mapboxgl-ctrl",p="mapbox-gl-draw_ctrl-draw-btn",m="mapbox-gl-draw_line",y="mapbox-gl-draw_polygon",E="mapbox-gl-draw_point",w="mapbox-gl-draw_trash",k="mapbox-gl-draw_combine",O="mapbox-gl-draw_uncombine",A="mapboxgl-ctrl-group",W="active",P="mapbox-gl-draw_boxselect",R="mapbox-gl-draw-hot",D="mapbox-gl-draw-cold",T="add",M="move",U="drag",Y="pointer",F="none",ne={POLYGON:"polygon",LINE:"line_string",POINT:"point"},ue="Feature",Q="Polygon",B="LineString",ae="Point",H="FeatureCollection",K="Multi",re="MultiPoint",le="MultiLineString",se="MultiPolygon",ce={DRAW_LINE_STRING:"draw_line_string",DRAW_POLYGON:"draw_polygon",DRAW_POINT:"draw_point",SIMPLE_SELECT:"simple_select",DIRECT_SELECT:"direct_select",STATIC:"static"},de="draw.create",ve="draw.delete",Ce="draw.update",_e="draw.selectionchange",Ae="draw.modechange",Ye="draw.actionable",Ne="draw.render",ft="draw.combine",St="draw.uncombine",Yt="move",$r="change_coordinates",mt="feature",Lt="midpoint",ze="vertex",jt="true",en="false",nr=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate"],qr={Point:0,LineString:1,Polygon:2};function lr(v,x){var C=qr[v.geometry.type]-qr[x.geometry.type];return C===0&&v.geometry.type===Q?v.area-x.area:C}function Un(v){if(this._items={},this._nums={},this._length=v?v.length:0,v)for(var x=0,C=v.length;x<C;x++)this.add(v[x]),v[x]!==void 0&&(typeof v[x]=="string"?this._items[v[x]]=x:this._nums[v[x]]=x)}Un.prototype.add=function(v){return this.has(v)||(this._length++,typeof v=="string"?this._items[v]=this._length:this._nums[v]=this._length),this},Un.prototype.delete=function(v){return this.has(v)===!1||(this._length--,delete this._items[v],delete this._nums[v]),this},Un.prototype.has=function(v){return(typeof v=="string"||typeof v=="number")&&(this._items[v]!==void 0||this._nums[v]!==void 0)},Un.prototype.values=function(){var v=this,x=[];return Object.keys(this._items).forEach(function(C){x.push({k:C,v:v._items[C]})}),Object.keys(this._nums).forEach(function(C){x.push({k:JSON.parse(C),v:v._nums[C]})}),x.sort(function(C,I){return C.v-I.v}).map(function(C){return C.k})},Un.prototype.clear=function(){return this._length=0,this._items={},this._nums={},this};var Tt=[mt,Lt,ze],Bt={click:function(v,x,C){return Ot(v,x,C,C.options.clickBuffer)},touch:function(v,x,C){return Ot(v,x,C,C.options.touchBuffer)}};function Ot(v,x,C,I){if(C.map===null)return[];var X=v?function(Pe,te){return te===void 0&&(te=0),[[Pe.point.x-te,Pe.point.y-te],[Pe.point.x+te,Pe.point.y+te]]}(v,I):x,$={};C.options.styles&&($.layers=C.options.styles.map(function(Pe){return Pe.id}));var Z=C.map.queryRenderedFeatures(X,$).filter(function(Pe){return Tt.indexOf(Pe.properties.meta)!==-1}),Se=new Un,me=[];return Z.forEach(function(Pe){var te=Pe.properties.id;Se.has(te)||(Se.add(te),me.push(Pe))}),function(Pe){return Pe.map(function(te){return te.geometry.type===Q&&(te.area=f.geometry({type:ue,property:{},geometry:te.geometry})),te}).sort(lr).map(function(te){return delete te.area,te})}(me)}function bn(v,x){var C=Bt.click(v,null,x),I={mouse:F};return C[0]&&(I.mouse=C[0].properties.active===jt?M:Y,I.feature=C[0].properties.meta),x.events.currentModeName().indexOf("draw")!==-1&&(I.mouse=T),x.ui.queueMapClasses(I),x.ui.updateMapClasses(),C[0]}function sn(v,x){var C=v.x-x.x,I=v.y-x.y;return Math.sqrt(C*C+I*I)}function rr(v,x,C){C===void 0&&(C={});var I=C.fineTolerance!=null?C.fineTolerance:4,X=C.grossTolerance!=null?C.grossTolerance:12,$=C.interval!=null?C.interval:500;v.point=v.point||x.point,v.time=v.time||x.time;var Z=sn(v.point,x.point);return Z<I||Z<X&&x.time-v.time<$}function sr(v,x,C){C===void 0&&(C={});var I=C.tolerance!=null?C.tolerance:25,X=C.interval!=null?C.interval:250;return v.point=v.point||x.point,v.time=v.time||x.time,sn(v.point,x.point)<I&&x.time-v.time<X}function zt(v,x){return v(x={exports:{}},x.exports),x.exports}var tn=zt(function(v){var x=v.exports=function(C,I){if(I||(I=16),C===void 0&&(C=128),C<=0)return"0";for(var X=Math.log(Math.pow(2,C))/Math.log(I),$=2;X===1/0;$*=2)X=Math.log(Math.pow(2,C/$))/Math.log(I)*$;var Z=X-Math.floor(X),Se="";for($=0;$<Math.floor(X);$++)Se=Math.floor(Math.random()*I).toString(I)+Se;if(Z){var me=Math.pow(I,Z);Se=Math.floor(Math.random()*me).toString(I)+Se}var Pe=parseInt(Se,I);return Pe!==1/0&&Pe>=Math.pow(2,C)?x(C,I):Se};x.rack=function(C,I,X){var $=function(Se){var me=0;do{if(me++>10){if(!X)throw new Error("too many ID collisions, use more bits");C+=X}var Pe=x(C,I)}while(Object.hasOwnProperty.call(Z,Pe));return Z[Pe]=Se,Pe},Z=$.hats={};return $.get=function(Se){return $.hats[Se]},$.set=function(Se,me){return $.hats[Se]=me,$},$.bits=C||128,$.base=I||16,$}}),un=function(v,x){this.ctx=v,this.properties=x.properties||{},this.coordinates=x.geometry.coordinates,this.id=x.id||tn(),this.type=x.geometry.type};un.prototype.changed=function(){this.ctx.store.featureChanged(this.id)},un.prototype.incomingCoords=function(v){this.setCoordinates(v)},un.prototype.setCoordinates=function(v){this.coordinates=v,this.changed()},un.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.coordinates))},un.prototype.setProperty=function(v,x){this.properties[v]=x},un.prototype.toGeoJSON=function(){return JSON.parse(JSON.stringify({id:this.id,type:ue,properties:this.properties,geometry:{coordinates:this.getCoordinates(),type:this.type}}))},un.prototype.internal=function(v){var x={id:this.id,meta:mt,"meta:type":this.type,active:en,mode:v};if(this.ctx.options.userProperties)for(var C in this.properties)x["user_"+C]=this.properties[C];return{type:ue,properties:x,geometry:{coordinates:this.getCoordinates(),type:this.type}}};var Fn=function(v,x){un.call(this,v,x)};(Fn.prototype=Object.create(un.prototype)).isValid=function(){return typeof this.coordinates[0]=="number"&&typeof this.coordinates[1]=="number"},Fn.prototype.updateCoordinate=function(v,x,C){this.coordinates=arguments.length===3?[x,C]:[v,x],this.changed()},Fn.prototype.getCoordinate=function(){return this.getCoordinates()};var ke=function(v,x){un.call(this,v,x)};(ke.prototype=Object.create(un.prototype)).isValid=function(){return this.coordinates.length>1},ke.prototype.addCoordinate=function(v,x,C){this.changed();var I=parseInt(v,10);this.coordinates.splice(I,0,[x,C])},ke.prototype.getCoordinate=function(v){var x=parseInt(v,10);return JSON.parse(JSON.stringify(this.coordinates[x]))},ke.prototype.removeCoordinate=function(v){this.changed(),this.coordinates.splice(parseInt(v,10),1)},ke.prototype.updateCoordinate=function(v,x,C){var I=parseInt(v,10);this.coordinates[I]=[x,C],this.changed()};var Ue=function(v,x){un.call(this,v,x),this.coordinates=this.coordinates.map(function(C){return C.slice(0,-1)})};(Ue.prototype=Object.create(un.prototype)).isValid=function(){return this.coordinates.length!==0&&this.coordinates.every(function(v){return v.length>2})},Ue.prototype.incomingCoords=function(v){this.coordinates=v.map(function(x){return x.slice(0,-1)}),this.changed()},Ue.prototype.setCoordinates=function(v){this.coordinates=v,this.changed()},Ue.prototype.addCoordinate=function(v,x,C){this.changed();var I=v.split(".").map(function(X){return parseInt(X,10)});this.coordinates[I[0]].splice(I[1],0,[x,C])},Ue.prototype.removeCoordinate=function(v){this.changed();var x=v.split(".").map(function(I){return parseInt(I,10)}),C=this.coordinates[x[0]];C&&(C.splice(x[1],1),C.length<3&&this.coordinates.splice(x[0],1))},Ue.prototype.getCoordinate=function(v){var x=v.split(".").map(function(I){return parseInt(I,10)}),C=this.coordinates[x[0]];return JSON.parse(JSON.stringify(C[x[1]]))},Ue.prototype.getCoordinates=function(){return this.coordinates.map(function(v){return v.concat([v[0]])})},Ue.prototype.updateCoordinate=function(v,x,C){this.changed();var I=v.split("."),X=parseInt(I[0],10),$=parseInt(I[1],10);this.coordinates[X]===void 0&&(this.coordinates[X]=[]),this.coordinates[X][$]=[x,C]};var dt={MultiPoint:Fn,MultiLineString:ke,MultiPolygon:Ue},kt=function(v,x,C,I,X){var $=C.split("."),Z=parseInt($[0],10),Se=$[1]?$.slice(1).join("."):null;return v[Z][x](Se,I,X)},gt=function(v,x){if(un.call(this,v,x),delete this.coordinates,this.model=dt[x.geometry.type],this.model===void 0)throw new TypeError(x.geometry.type+" is not a valid type");this.features=this._coordinatesToFeatures(x.geometry.coordinates)};function Je(v){this.map=v.map,this.drawConfig=JSON.parse(JSON.stringify(v.options||{})),this._ctx=v}(gt.prototype=Object.create(un.prototype))._coordinatesToFeatures=function(v){var x=this,C=this.model.bind(this);return v.map(function(I){return new C(x.ctx,{id:tn(),type:ue,properties:{},geometry:{coordinates:I,type:x.type.replace("Multi","")}})})},gt.prototype.isValid=function(){return this.features.every(function(v){return v.isValid()})},gt.prototype.setCoordinates=function(v){this.features=this._coordinatesToFeatures(v),this.changed()},gt.prototype.getCoordinate=function(v){return kt(this.features,"getCoordinate",v)},gt.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.features.map(function(v){return v.type===Q?v.getCoordinates():v.coordinates})))},gt.prototype.updateCoordinate=function(v,x,C){kt(this.features,"updateCoordinate",v,x,C),this.changed()},gt.prototype.addCoordinate=function(v,x,C){kt(this.features,"addCoordinate",v,x,C),this.changed()},gt.prototype.removeCoordinate=function(v){kt(this.features,"removeCoordinate",v),this.changed()},gt.prototype.getFeatures=function(){return this.features},Je.prototype.setSelected=function(v){return this._ctx.store.setSelected(v)},Je.prototype.setSelectedCoordinates=function(v){var x=this;this._ctx.store.setSelectedCoordinates(v),v.reduce(function(C,I){return C[I.feature_id]===void 0&&(C[I.feature_id]=!0,x._ctx.store.get(I.feature_id).changed()),C},{})},Je.prototype.getSelected=function(){return this._ctx.store.getSelected()},Je.prototype.getSelectedIds=function(){return this._ctx.store.getSelectedIds()},Je.prototype.isSelected=function(v){return this._ctx.store.isSelected(v)},Je.prototype.getFeature=function(v){return this._ctx.store.get(v)},Je.prototype.select=function(v){return this._ctx.store.select(v)},Je.prototype.deselect=function(v){return this._ctx.store.deselect(v)},Je.prototype.deleteFeature=function(v,x){return x===void 0&&(x={}),this._ctx.store.delete(v,x)},Je.prototype.addFeature=function(v){return this._ctx.store.add(v)},Je.prototype.clearSelectedFeatures=function(){return this._ctx.store.clearSelected()},Je.prototype.clearSelectedCoordinates=function(){return this._ctx.store.clearSelectedCoordinates()},Je.prototype.setActionableState=function(v){v===void 0&&(v={});var x={trash:v.trash||!1,combineFeatures:v.combineFeatures||!1,uncombineFeatures:v.uncombineFeatures||!1};return this._ctx.events.actionable(x)},Je.prototype.changeMode=function(v,x,C){return x===void 0&&(x={}),C===void 0&&(C={}),this._ctx.events.changeMode(v,x,C)},Je.prototype.updateUIClasses=function(v){return this._ctx.ui.queueMapClasses(v)},Je.prototype.activateUIButton=function(v){return this._ctx.ui.setActiveButton(v)},Je.prototype.featuresAt=function(v,x,C){if(C===void 0&&(C="click"),C!=="click"&&C!=="touch")throw new Error("invalid buffer type");return Bt[C](v,x,this._ctx)},Je.prototype.newFeature=function(v){var x=v.geometry.type;return x===ae?new Fn(this._ctx,v):x===B?new ke(this._ctx,v):x===Q?new Ue(this._ctx,v):new gt(this._ctx,v)},Je.prototype.isInstanceOf=function(v,x){if(v===ae)return x instanceof Fn;if(v===B)return x instanceof ke;if(v===Q)return x instanceof Ue;if(v==="MultiFeature")return x instanceof gt;throw new Error("Unknown feature class: "+v)},Je.prototype.doRender=function(v){return this._ctx.store.featureChanged(v)},Je.prototype.onSetup=function(){},Je.prototype.onDrag=function(){},Je.prototype.onClick=function(){},Je.prototype.onMouseMove=function(){},Je.prototype.onMouseDown=function(){},Je.prototype.onMouseUp=function(){},Je.prototype.onMouseOut=function(){},Je.prototype.onKeyUp=function(){},Je.prototype.onKeyDown=function(){},Je.prototype.onTouchStart=function(){},Je.prototype.onTouchMove=function(){},Je.prototype.onTouchEnd=function(){},Je.prototype.onTap=function(){},Je.prototype.onStop=function(){},Je.prototype.onTrash=function(){},Je.prototype.onCombineFeature=function(){},Je.prototype.onUncombineFeature=function(){},Je.prototype.toDisplayFeatures=function(){throw new Error("You must overwrite toDisplayFeatures")};var ir={drag:"onDrag",click:"onClick",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseout:"onMouseOut",keyup:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",tap:"onTap"},ri=Object.keys(ir);function jn(v){var x=Object.keys(v);return function(C,I){I===void 0&&(I={});var X={},$=x.reduce(function(Z,Se){return Z[Se]=v[Se],Z},new Je(C));return{start:function(){var Z=this;X=$.onSetup(I),ri.forEach(function(Se){var me,Pe=ir[Se],te=function(){return!1};v[Pe]&&(te=function(){return!0}),Z.on(Se,te,(me=Pe,function(Le){return $[me](X,Le)}))})},stop:function(){$.onStop(X)},trash:function(){$.onTrash(X)},combineFeatures:function(){$.onCombineFeatures(X)},uncombineFeatures:function(){$.onUncombineFeatures(X)},render:function(Z,Se){$.toDisplayFeatures(X,Z,Se)}}}}function _i(v){return[].concat(v).filter(function(x){return x!==void 0})}function Ia(){var v=this;if(!(v.ctx.map&&v.ctx.map.getSource(R)!==void 0))return me();var x=v.ctx.events.currentModeName();v.ctx.ui.queueMapClasses({mode:x});var C=[],I=[];v.isDirty?I=v.getAllIds():(C=v.getChangedIds().filter(function(Pe){return v.get(Pe)!==void 0}),I=v.sources.hot.filter(function(Pe){return Pe.properties.id&&C.indexOf(Pe.properties.id)===-1&&v.get(Pe.properties.id)!==void 0}).map(function(Pe){return Pe.properties.id})),v.sources.hot=[];var X=v.sources.cold.length;v.sources.cold=v.isDirty?[]:v.sources.cold.filter(function(Pe){var te=Pe.properties.id||Pe.properties.parent;return C.indexOf(te)===-1});var $=X!==v.sources.cold.length||I.length>0;function Z(Pe,te){var Le=v.get(Pe).internal(x);v.ctx.events.currentModeRender(Le,function(Ie){v.sources[te].push(Ie)})}if(C.forEach(function(Pe){return Z(Pe,"hot")}),I.forEach(function(Pe){return Z(Pe,"cold")}),$&&v.ctx.map.getSource(D).setData({type:H,features:v.sources.cold}),v.ctx.map.getSource(R).setData({type:H,features:v.sources.hot}),v._emitSelectionChange&&(v.ctx.map.fire(_e,{features:v.getSelected().map(function(Pe){return Pe.toGeoJSON()}),points:v.getSelectedCoordinates().map(function(Pe){return{type:ue,properties:{},geometry:{type:ae,coordinates:Pe.coordinates}}})}),v._emitSelectionChange=!1),v._deletedFeaturesToEmit.length){var Se=v._deletedFeaturesToEmit.map(function(Pe){return Pe.toGeoJSON()});v._deletedFeaturesToEmit=[],v.ctx.map.fire(ve,{features:Se})}function me(){v.isDirty=!1,v.clearChangedIds()}me(),v.ctx.map.fire(Ne,{})}function Zt(v){var x,C=this;this._features={},this._featureIds=new Un,this._selectedFeatureIds=new Un,this._selectedCoordinates=[],this._changedFeatureIds=new Un,this._deletedFeaturesToEmit=[],this._emitSelectionChange=!1,this._mapInitialConfig={},this.ctx=v,this.sources={hot:[],cold:[]},this.render=function(){x||(x=requestAnimationFrame(function(){x=null,Ia.call(C)}))},this.isDirty=!1}function tl(v,x){var C=v._selectedCoordinates.filter(function(I){return v._selectedFeatureIds.has(I.feature_id)});v._selectedCoordinates.length===C.length||x.silent||(v._emitSelectionChange=!0),v._selectedCoordinates=C}Zt.prototype.createRenderBatch=function(){var v=this,x=this.render,C=0;return this.render=function(){C++},function(){v.render=x,C>0&&v.render()}},Zt.prototype.setDirty=function(){return this.isDirty=!0,this},Zt.prototype.featureChanged=function(v){return this._changedFeatureIds.add(v),this},Zt.prototype.getChangedIds=function(){return this._changedFeatureIds.values()},Zt.prototype.clearChangedIds=function(){return this._changedFeatureIds.clear(),this},Zt.prototype.getAllIds=function(){return this._featureIds.values()},Zt.prototype.add=function(v){return this.featureChanged(v.id),this._features[v.id]=v,this._featureIds.add(v.id),this},Zt.prototype.delete=function(v,x){var C=this;return x===void 0&&(x={}),_i(v).forEach(function(I){C._featureIds.has(I)&&(C._featureIds.delete(I),C._selectedFeatureIds.delete(I),x.silent||C._deletedFeaturesToEmit.indexOf(C._features[I])===-1&&C._deletedFeaturesToEmit.push(C._features[I]),delete C._features[I],C.isDirty=!0)}),tl(this,x),this},Zt.prototype.get=function(v){return this._features[v]},Zt.prototype.getAll=function(){var v=this;return Object.keys(this._features).map(function(x){return v._features[x]})},Zt.prototype.select=function(v,x){var C=this;return x===void 0&&(x={}),_i(v).forEach(function(I){C._selectedFeatureIds.has(I)||(C._selectedFeatureIds.add(I),C._changedFeatureIds.add(I),x.silent||(C._emitSelectionChange=!0))}),this},Zt.prototype.deselect=function(v,x){var C=this;return x===void 0&&(x={}),_i(v).forEach(function(I){C._selectedFeatureIds.has(I)&&(C._selectedFeatureIds.delete(I),C._changedFeatureIds.add(I),x.silent||(C._emitSelectionChange=!0))}),tl(this,x),this},Zt.prototype.clearSelected=function(v){return v===void 0&&(v={}),this.deselect(this._selectedFeatureIds.values(),{silent:v.silent}),this},Zt.prototype.setSelected=function(v,x){var C=this;return x===void 0&&(x={}),v=_i(v),this.deselect(this._selectedFeatureIds.values().filter(function(I){return v.indexOf(I)===-1}),{silent:x.silent}),this.select(v.filter(function(I){return!C._selectedFeatureIds.has(I)}),{silent:x.silent}),this},Zt.prototype.setSelectedCoordinates=function(v){return this._selectedCoordinates=v,this._emitSelectionChange=!0,this},Zt.prototype.clearSelectedCoordinates=function(){return this._selectedCoordinates=[],this._emitSelectionChange=!0,this},Zt.prototype.getSelectedIds=function(){return this._selectedFeatureIds.values()},Zt.prototype.getSelected=function(){var v=this;return this._selectedFeatureIds.values().map(function(x){return v.get(x)})},Zt.prototype.getSelectedCoordinates=function(){var v=this;return this._selectedCoordinates.map(function(x){return{coordinates:v.get(x.feature_id).getCoordinate(x.coord_path)}})},Zt.prototype.isSelected=function(v){return this._selectedFeatureIds.has(v)},Zt.prototype.setFeatureProperty=function(v,x,C){this.get(v).setProperty(x,C),this.featureChanged(v)},Zt.prototype.storeMapConfig=function(){var v=this;nr.forEach(function(x){v.ctx.map[x]&&(v._mapInitialConfig[x]=v.ctx.map[x].isEnabled())})},Zt.prototype.restoreMapConfig=function(){var v=this;Object.keys(this._mapInitialConfig).forEach(function(x){v._mapInitialConfig[x]?v.ctx.map[x].enable():v.ctx.map[x].disable()})},Zt.prototype.getInitialConfigValue=function(v){return this._mapInitialConfig[v]===void 0||this._mapInitialConfig[v]};var Mi=function(){for(var v=arguments,x={},C=0;C<arguments.length;C++){var I=v[C];for(var X in I)wu.call(I,X)&&(x[X]=I[X])}return x},wu=Object.prototype.hasOwnProperty,yo=["mode","feature","mouse"];function nl(v){var x=null,C=null,I={onRemove:function(){return v.map.off("load",I.connect),clearInterval(C),I.removeLayers(),v.store.restoreMapConfig(),v.ui.removeButtons(),v.events.removeEventListeners(),v.ui.clearMapClasses(),v.map=null,v.container=null,v.store=null,x&&x.parentNode&&x.parentNode.removeChild(x),x=null,this},connect:function(){v.map.off("load",I.connect),clearInterval(C),I.addLayers(),v.store.storeMapConfig(),v.events.addEventListeners()},onAdd:function(X){var $=X.fire;return X.fire=function(Z,Se){var me=arguments;return $.length===1&&arguments.length!==1&&(me=[Mi({},{type:Z},Se)]),$.apply(X,me)},v.map=X,v.events=function(Z){var Se=Object.keys(Z.options.modes).reduce(function(pe,Be){return pe[Be]=jn(Z.options.modes[Be]),pe},{}),me={},Pe={},te={},Le=null,Ie=null;te.drag=function(pe,Be){Be({point:pe.point,time:new Date().getTime()})?(Z.ui.queueMapClasses({mouse:U}),Ie.drag(pe)):pe.originalEvent.stopPropagation()},te.mousedrag=function(pe){te.drag(pe,function(Be){return!rr(me,Be)})},te.touchdrag=function(pe){te.drag(pe,function(Be){return!sr(Pe,Be)})},te.mousemove=function(pe){if((pe.originalEvent.buttons!==void 0?pe.originalEvent.buttons:pe.originalEvent.which)===1)return te.mousedrag(pe);var Be=bn(pe,Z);pe.featureTarget=Be,Ie.mousemove(pe)},te.mousedown=function(pe){me={time:new Date().getTime(),point:pe.point};var Be=bn(pe,Z);pe.featureTarget=Be,Ie.mousedown(pe)},te.mouseup=function(pe){var Be=bn(pe,Z);pe.featureTarget=Be,rr(me,{point:pe.point,time:new Date().getTime()})?Ie.click(pe):Ie.mouseup(pe)},te.mouseout=function(pe){Ie.mouseout(pe)},te.touchstart=function(pe){if(pe.originalEvent.preventDefault(),Z.options.touchEnabled){Pe={time:new Date().getTime(),point:pe.point};var Be=Bt.touch(pe,null,Z)[0];pe.featureTarget=Be,Ie.touchstart(pe)}},te.touchmove=function(pe){if(pe.originalEvent.preventDefault(),Z.options.touchEnabled)return Ie.touchmove(pe),te.touchdrag(pe)},te.touchend=function(pe){if(pe.originalEvent.preventDefault(),Z.options.touchEnabled){var Be=Bt.touch(pe,null,Z)[0];pe.featureTarget=Be,sr(Pe,{time:new Date().getTime(),point:pe.point})?Ie.tap(pe):Ie.touchend(pe)}};var Qe=function(pe){return!(pe===8||pe===46||pe>=48&&pe<=57)};function Xe(pe,Be,It){It===void 0&&(It={}),Ie.stop();var Pt=Se[pe];if(Pt===void 0)throw new Error(pe+" is not valid");Le=pe;var vn=Pt(Z,Be);Ie=e(vn,Z),It.silent||Z.map.fire(Ae,{mode:pe}),Z.store.setDirty(),Z.store.render()}te.keydown=function(pe){(pe.srcElement||pe.target).classList[0]==="mapboxgl-canvas"&&(pe.keyCode!==8&&pe.keyCode!==46||!Z.options.controls.trash?Qe(pe.keyCode)?Ie.keydown(pe):pe.keyCode===49&&Z.options.controls.point?Xe(ce.DRAW_POINT):pe.keyCode===50&&Z.options.controls.line_string?Xe(ce.DRAW_LINE_STRING):pe.keyCode===51&&Z.options.controls.polygon&&Xe(ce.DRAW_POLYGON):(pe.preventDefault(),Ie.trash()))},te.keyup=function(pe){Qe(pe.keyCode)&&Ie.keyup(pe)},te.zoomend=function(){Z.store.changeZoom()},te.data=function(pe){if(pe.dataType==="style"){var Be=Z.setup,It=Z.map,Pt=Z.options,vn=Z.store;Pt.styles.some(function(Ze){return It.getLayer(Ze.id)})||(Be.addLayers(),vn.setDirty(),vn.render())}};var kn={trash:!1,combineFeatures:!1,uncombineFeatures:!1};return{start:function(){Le=Z.options.defaultMode,Ie=e(Se[Le](Z),Z)},changeMode:Xe,actionable:function(pe){var Be=!1;Object.keys(pe).forEach(function(It){if(kn[It]===void 0)throw new Error("Invalid action type");kn[It]!==pe[It]&&(Be=!0),kn[It]=pe[It]}),Be&&Z.map.fire(Ye,{actions:kn})},currentModeName:function(){return Le},currentModeRender:function(pe,Be){return Ie.render(pe,Be)},fire:function(pe,Be){te[pe]&&te[pe](Be)},addEventListeners:function(){Z.map.on("mousemove",te.mousemove),Z.map.on("mousedown",te.mousedown),Z.map.on("mouseup",te.mouseup),Z.map.on("data",te.data),Z.map.on("touchmove",te.touchmove),Z.map.on("touchstart",te.touchstart),Z.map.on("touchend",te.touchend),Z.container.addEventListener("mouseout",te.mouseout),Z.options.keybindings&&(Z.container.addEventListener("keydown",te.keydown),Z.container.addEventListener("keyup",te.keyup))},removeEventListeners:function(){Z.map.off("mousemove",te.mousemove),Z.map.off("mousedown",te.mousedown),Z.map.off("mouseup",te.mouseup),Z.map.off("data",te.data),Z.map.off("touchmove",te.touchmove),Z.map.off("touchstart",te.touchstart),Z.map.off("touchend",te.touchend),Z.container.removeEventListener("mouseout",te.mouseout),Z.options.keybindings&&(Z.container.removeEventListener("keydown",te.keydown),Z.container.removeEventListener("keyup",te.keyup))},trash:function(pe){Ie.trash(pe)},combineFeatures:function(){Ie.combineFeatures()},uncombineFeatures:function(){Ie.uncombineFeatures()},getMode:function(){return Le}}}(v),v.ui=function(Z){var Se={},me=null,Pe={mode:null,feature:null,mouse:null},te={mode:null,feature:null,mouse:null};function Le(pe){te=Mi(te,pe)}function Ie(){var pe,Be;if(Z.container){var It=[],Pt=[];yo.forEach(function(vn){te[vn]!==Pe[vn]&&(It.push(vn+"-"+Pe[vn]),te[vn]!==null&&Pt.push(vn+"-"+te[vn]))}),It.length>0&&(pe=Z.container.classList).remove.apply(pe,It),Pt.length>0&&(Be=Z.container.classList).add.apply(Be,Pt),Pe=Mi(Pe,te)}}function Qe(pe,Be){Be===void 0&&(Be={});var It=document.createElement("button");return It.className=p+" "+Be.className,It.setAttribute("title",Be.title),Be.container.appendChild(It),It.addEventListener("click",function(Pt){if(Pt.preventDefault(),Pt.stopPropagation(),Pt.target===me)return Xe(),void Be.onDeactivate();kn(pe),Be.onActivate()},!0),It}function Xe(){me&&(me.classList.remove(W),me=null)}function kn(pe){Xe();var Be=Se[pe];Be&&Be&&pe!=="trash"&&(Be.classList.add(W),me=Be)}return{setActiveButton:kn,queueMapClasses:Le,updateMapClasses:Ie,clearMapClasses:function(){Le({mode:null,feature:null,mouse:null}),Ie()},addButtons:function(){var pe=Z.options.controls,Be=document.createElement("div");return Be.className=A+" "+d,pe&&(pe[ne.LINE]&&(Se[ne.LINE]=Qe(ne.LINE,{container:Be,className:m,title:"LineString tool "+(Z.options.keybindings?"(l)":""),onActivate:function(){return Z.events.changeMode(ce.DRAW_LINE_STRING)},onDeactivate:function(){return Z.events.trash()}})),pe[ne.POLYGON]&&(Se[ne.POLYGON]=Qe(ne.POLYGON,{container:Be,className:y,title:"Polygon tool "+(Z.options.keybindings?"(p)":""),onActivate:function(){return Z.events.changeMode(ce.DRAW_POLYGON)},onDeactivate:function(){return Z.events.trash()}})),pe[ne.POINT]&&(Se[ne.POINT]=Qe(ne.POINT,{container:Be,className:E,title:"Marker tool "+(Z.options.keybindings?"(m)":""),onActivate:function(){return Z.events.changeMode(ce.DRAW_POINT)},onDeactivate:function(){return Z.events.trash()}})),pe.trash&&(Se.trash=Qe("trash",{container:Be,className:w,title:"Delete",onActivate:function(){Z.events.trash()}})),pe.combine_features&&(Se.combine_features=Qe("combineFeatures",{container:Be,className:k,title:"Combine",onActivate:function(){Z.events.combineFeatures()}})),pe.uncombine_features&&(Se.uncombine_features=Qe("uncombineFeatures",{container:Be,className:O,title:"Uncombine",onActivate:function(){Z.events.uncombineFeatures()}}))),Be},removeButtons:function(){Object.keys(Se).forEach(function(pe){var Be=Se[pe];Be.parentNode&&Be.parentNode.removeChild(Be),delete Se[pe]})}}}(v),v.container=X.getContainer(),v.store=new Zt(v),x=v.ui.addButtons(),v.options.boxSelect&&(X.boxZoom.disable(),X.dragPan.disable(),X.dragPan.enable()),X.loaded()?I.connect():(X.on("load",I.connect),C=setInterval(function(){X.loaded()&&I.connect()},16)),v.events.start(),x},addLayers:function(){v.map.addSource(D,{data:{type:H,features:[]},type:"geojson"}),v.map.addSource(R,{data:{type:H,features:[]},type:"geojson"}),v.options.styles.forEach(function(X){v.map.addLayer(X)}),v.store.setDirty(!0),v.store.render()},removeLayers:function(){v.options.styles.forEach(function(X){v.map.getLayer(X.id)&&v.map.removeLayer(X.id)}),v.map.getSource(D)&&v.map.removeSource(D),v.map.getSource(R)&&v.map.removeSource(R)}};return v.setup=I,I}function Ua(v){return function(x){var C=x.featureTarget;return!!C&&!!C.properties&&C.properties.meta===v}}function Ti(v){return!!v.featureTarget&&!!v.featureTarget.properties&&v.featureTarget.properties.active===jt&&v.featureTarget.properties.meta===mt}function Gi(v){return!!v.featureTarget&&!!v.featureTarget.properties&&v.featureTarget.properties.active===en&&v.featureTarget.properties.meta===mt}function rl(v){return v.featureTarget===void 0}function Cu(v){var x=v.featureTarget;return!!x&&!!x.properties&&x.properties.meta===ze}function Pf(v){return!!v.originalEvent&&v.originalEvent.shiftKey===!0}function _u(v){return v.keyCode===27}function il(v){return v.keyCode===13}var qh=va;function va(v,x){this.x=v,this.y=x}function al(v,x){var C=x.getBoundingClientRect();return new qh(v.clientX-C.left-(x.clientLeft||0),v.clientY-C.top-(x.clientTop||0))}function hn(v,x,C,I){return{type:ue,properties:{meta:ze,parent:v,coord_path:C,active:I?jt:en},geometry:{type:ae,coordinates:x}}}function Mu(v,x,C){x===void 0&&(x={}),C===void 0&&(C=null);var I,X=v.geometry,$=X.type,Z=X.coordinates,Se=v.properties&&v.properties.id,me=[];function Pe(Le,Ie){var Qe="",Xe=null;Le.forEach(function(kn,pe){var Be=Ie!=null?Ie+"."+pe:String(pe),It=hn(Se,kn,Be,te(Be));if(x.midpoints&&Xe){var Pt=function(Ze,ma,ga){var Ct=ma.geometry.coordinates,Gr=ga.geometry.coordinates;if(Ct[1]>85||Ct[1]<-85||Gr[1]>85||Gr[1]<-85)return null;var yr={lng:(Ct[0]+Gr[0])/2,lat:(Ct[1]+Gr[1])/2};return{type:ue,properties:{meta:Lt,parent:Ze,lng:yr.lng,lat:yr.lat,coord_path:ga.properties.coord_path},geometry:{type:ae,coordinates:[yr.lng,yr.lat]}}}(Se,Xe,It);Pt&&me.push(Pt)}Xe=It;var vn=JSON.stringify(kn);Qe!==vn&&me.push(It),pe===0&&(Qe=vn)})}function te(Le){return!!x.selectedPaths&&x.selectedPaths.indexOf(Le)!==-1}return $===ae?me.push(hn(Se,Z,C,te(C))):$===Q?Z.forEach(function(Le,Ie){Pe(Le,C!==null?C+"."+Ie:String(Ie))}):$===B?Pe(Z,C):$.indexOf(K)===0&&(I=$.replace(K,""),Z.forEach(function(Le,Ie){var Qe={type:ue,properties:v.properties,geometry:{type:I,coordinates:Le}};me=me.concat(Mu(Qe,x,Ie))})),me}va.prototype={clone:function(){return new va(this.x,this.y)},add:function(v){return this.clone()._add(v)},sub:function(v){return this.clone()._sub(v)},multByPoint:function(v){return this.clone()._multByPoint(v)},divByPoint:function(v){return this.clone()._divByPoint(v)},mult:function(v){return this.clone()._mult(v)},div:function(v){return this.clone()._div(v)},rotate:function(v){return this.clone()._rotate(v)},rotateAround:function(v,x){return this.clone()._rotateAround(v,x)},matMult:function(v){return this.clone()._matMult(v)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(v){return this.x===v.x&&this.y===v.y},dist:function(v){return Math.sqrt(this.distSqr(v))},distSqr:function(v){var x=v.x-this.x,C=v.y-this.y;return x*x+C*C},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(v){return Math.atan2(this.y-v.y,this.x-v.x)},angleWith:function(v){return this.angleWithSep(v.x,v.y)},angleWithSep:function(v,x){return Math.atan2(this.x*x-this.y*v,this.x*v+this.y*x)},_matMult:function(v){var x=v[0]*this.x+v[1]*this.y,C=v[2]*this.x+v[3]*this.y;return this.x=x,this.y=C,this},_add:function(v){return this.x+=v.x,this.y+=v.y,this},_sub:function(v){return this.x-=v.x,this.y-=v.y,this},_mult:function(v){return this.x*=v,this.y*=v,this},_div:function(v){return this.x/=v,this.y/=v,this},_multByPoint:function(v){return this.x*=v.x,this.y*=v.y,this},_divByPoint:function(v){return this.x/=v.x,this.y/=v.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var v=this.y;return this.y=this.x,this.x=-v,this},_rotate:function(v){var x=Math.cos(v),C=Math.sin(v),I=x*this.x-C*this.y,X=C*this.x+x*this.y;return this.x=I,this.y=X,this},_rotateAround:function(v,x){var C=Math.cos(v),I=Math.sin(v),X=x.x+C*(this.x-x.x)-I*(this.y-x.y),$=x.y+I*(this.x-x.x)+C*(this.y-x.y);return this.x=X,this.y=$,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},va.convert=function(v){return v instanceof va?v:Array.isArray(v)?new va(v[0],v[1]):v};var ol=function(v){setTimeout(function(){v.map&&v.map.doubleClickZoom&&v._ctx&&v._ctx.store&&v._ctx.store.getInitialConfigValue&&v._ctx.store.getInitialConfigValue("doubleClickZoom")&&v.map.doubleClickZoom.enable()},0)},Yi=function(v){setTimeout(function(){v.map&&v.map.doubleClickZoom&&v.map.doubleClickZoom.disable()},0)},ll=function(v){if(!v||!v.type)return null;var x=Gh[v.type];if(!x)return null;if(x==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:v}]};if(x==="feature")return{type:"FeatureCollection",features:[v]};if(x==="featurecollection")return v},Gh={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function ms(v){switch(v&&v.type||null){case"FeatureCollection":return v.features=v.features.reduce(function(x,C){return x.concat(ms(C))},[]),v;case"Feature":return v.geometry?ms(v.geometry).map(function(x){var C={type:"Feature",properties:JSON.parse(JSON.stringify(v.properties)),geometry:x};return v.id!==void 0&&(C.id=v.id),C}):[v];case"MultiPoint":return v.coordinates.map(function(x){return{type:"Point",coordinates:x}});case"MultiPolygon":return v.coordinates.map(function(x){return{type:"Polygon",coordinates:x}});case"MultiLineString":return v.coordinates.map(function(x){return{type:"LineString",coordinates:x}});case"GeometryCollection":return v.geometries.map(ms).reduce(function(x,C){return x.concat(C)},[]);case"Point":case"Polygon":case"LineString":return[v]}}var Yh=function(v){if(!v)return[];var x=ms(ll(v)),C=[];return x.features.forEach(function(I){I.geometry&&(C=C.concat(function X($){return Array.isArray($)&&$.length&&typeof $[0]=="number"?[$]:$.reduce(function(Z,Se){return Array.isArray(Se)&&Array.isArray(Se[0])?Z.concat(X(Se)):(Z.push(Se),Z)},[])}(I.geometry.coordinates)))}),C},Zh=zt(function(v){var x=v.exports=function(te){return new C(te)};function C(te){this.value=te}function I(te,Le,Ie){var Qe=[],Xe=[],kn=!0;return function pe(Be){var It=Ie?X(Be):Be,Pt={},vn=!0,Ze={node:It,node_:Be,path:[].concat(Qe),parent:Xe[Xe.length-1],parents:Xe,key:Qe.slice(-1)[0],isRoot:Qe.length===0,level:Qe.length,circular:null,update:function(Ct,Gr){Ze.isRoot||(Ze.parent.node[Ze.key]=Ct),Ze.node=Ct,Gr&&(vn=!1)},delete:function(Ct){delete Ze.parent.node[Ze.key],Ct&&(vn=!1)},remove:function(Ct){Se(Ze.parent.node)?Ze.parent.node.splice(Ze.key,1):delete Ze.parent.node[Ze.key],Ct&&(vn=!1)},keys:null,before:function(Ct){Pt.before=Ct},after:function(Ct){Pt.after=Ct},pre:function(Ct){Pt.pre=Ct},post:function(Ct){Pt.post=Ct},stop:function(){kn=!1},block:function(){vn=!1}};if(!kn)return Ze;function ma(){if(typeof Ze.node=="object"&&Ze.node!==null){Ze.keys&&Ze.node_===Ze.node||(Ze.keys=$(Ze.node)),Ze.isLeaf=Ze.keys.length==0;for(var Ct=0;Ct<Xe.length;Ct++)if(Xe[Ct].node_===Be){Ze.circular=Xe[Ct];break}}else Ze.isLeaf=!0,Ze.keys=null;Ze.notLeaf=!Ze.isLeaf,Ze.notRoot=!Ze.isRoot}ma();var ga=Le.call(Ze,Ze.node);return ga!==void 0&&Ze.update&&Ze.update(ga),Pt.before&&Pt.before.call(Ze,Ze.node),vn&&(typeof Ze.node!="object"||Ze.node===null||Ze.circular||(Xe.push(Ze),ma(),me(Ze.keys,function(Ct,Gr){Qe.push(Ct),Pt.pre&&Pt.pre.call(Ze,Ze.node[Ct],Ct);var yr=pe(Ze.node[Ct]);Ie&&Pe.call(Ze.node,Ct)&&(Ze.node[Ct]=yr.node),yr.isLast=Gr==Ze.keys.length-1,yr.isFirst=Gr==0,Pt.post&&Pt.post.call(Ze,yr),Qe.pop()}),Xe.pop()),Pt.after&&Pt.after.call(Ze,Ze.node)),Ze}(te).node}function X(te){if(typeof te=="object"&&te!==null){var Le;if(Se(te))Le=[];else if(Z(te)==="[object Date]")Le=new Date(te.getTime?te.getTime():te);else if(function(Xe){return Z(Xe)==="[object RegExp]"}(te))Le=new RegExp(te);else if(function(Xe){return Z(Xe)==="[object Error]"}(te))Le={message:te.message};else if(function(Xe){return Z(Xe)==="[object Boolean]"}(te))Le=new Boolean(te);else if(function(Xe){return Z(Xe)==="[object Number]"}(te))Le=new Number(te);else if(function(Xe){return Z(Xe)==="[object String]"}(te))Le=new String(te);else if(Object.create&&Object.getPrototypeOf)Le=Object.create(Object.getPrototypeOf(te));else if(te.constructor===Object)Le={};else{var Ie=te.constructor&&te.constructor.prototype||te.__proto__||{},Qe=function(){};Qe.prototype=Ie,Le=new Qe}return me($(te),function(Xe){Le[Xe]=te[Xe]}),Le}return te}C.prototype.get=function(te){for(var Le=this.value,Ie=0;Ie<te.length;Ie++){var Qe=te[Ie];if(!Le||!Pe.call(Le,Qe)){Le=void 0;break}Le=Le[Qe]}return Le},C.prototype.has=function(te){for(var Le=this.value,Ie=0;Ie<te.length;Ie++){var Qe=te[Ie];if(!Le||!Pe.call(Le,Qe))return!1;Le=Le[Qe]}return!0},C.prototype.set=function(te,Le){for(var Ie=this.value,Qe=0;Qe<te.length-1;Qe++){var Xe=te[Qe];Pe.call(Ie,Xe)||(Ie[Xe]={}),Ie=Ie[Xe]}return Ie[te[Qe]]=Le,Le},C.prototype.map=function(te){return I(this.value,te,!0)},C.prototype.forEach=function(te){return this.value=I(this.value,te,!1),this.value},C.prototype.reduce=function(te,Le){var Ie=arguments.length===1,Qe=Ie?this.value:Le;return this.forEach(function(Xe){this.isRoot&&Ie||(Qe=te.call(this,Qe,Xe))}),Qe},C.prototype.paths=function(){var te=[];return this.forEach(function(Le){te.push(this.path)}),te},C.prototype.nodes=function(){var te=[];return this.forEach(function(Le){te.push(this.node)}),te},C.prototype.clone=function(){var te=[],Le=[];return function Ie(Qe){for(var Xe=0;Xe<te.length;Xe++)if(te[Xe]===Qe)return Le[Xe];if(typeof Qe=="object"&&Qe!==null){var kn=X(Qe);return te.push(Qe),Le.push(kn),me($(Qe),function(pe){kn[pe]=Ie(Qe[pe])}),te.pop(),Le.pop(),kn}return Qe}(this.value)};var $=Object.keys||function(te){var Le=[];for(var Ie in te)Le.push(Ie);return Le};function Z(te){return Object.prototype.toString.call(te)}var Se=Array.isArray||function(te){return Object.prototype.toString.call(te)==="[object Array]"},me=function(te,Le){if(te.forEach)return te.forEach(Le);for(var Ie=0;Ie<te.length;Ie++)Le(te[Ie],Ie,te)};me($(C.prototype),function(te){x[te]=function(Le){var Ie=[].slice.call(arguments,1),Qe=new C(Le);return Qe[te].apply(Qe,Ie)}});var Pe=Object.hasOwnProperty||function(te,Le){return Le in te}}),Qh=pr;function pr(v){if(!(this instanceof pr))return new pr(v);this._bbox=v||[1/0,1/0,-1/0,-1/0],this._valid=!!v}pr.prototype.include=function(v){return this._valid=!0,this._bbox[0]=Math.min(this._bbox[0],v[0]),this._bbox[1]=Math.min(this._bbox[1],v[1]),this._bbox[2]=Math.max(this._bbox[2],v[0]),this._bbox[3]=Math.max(this._bbox[3],v[1]),this},pr.prototype.equals=function(v){var x;return x=v instanceof pr?v.bbox():v,this._bbox[0]==x[0]&&this._bbox[1]==x[1]&&this._bbox[2]==x[2]&&this._bbox[3]==x[3]},pr.prototype.center=function(v){return this._valid?[(this._bbox[0]+this._bbox[2])/2,(this._bbox[1]+this._bbox[3])/2]:null},pr.prototype.union=function(v){var x;return this._valid=!0,x=v instanceof pr?v.bbox():v,this._bbox[0]=Math.min(this._bbox[0],x[0]),this._bbox[1]=Math.min(this._bbox[1],x[1]),this._bbox[2]=Math.max(this._bbox[2],x[2]),this._bbox[3]=Math.max(this._bbox[3],x[3]),this},pr.prototype.bbox=function(){return this._valid?this._bbox:null},pr.prototype.contains=function(v){if(!v)return this._fastContains();if(!this._valid)return null;var x=v[0],C=v[1];return this._bbox[0]<=x&&this._bbox[1]<=C&&this._bbox[2]>=x&&this._bbox[3]>=C},pr.prototype.intersect=function(v){return this._valid?(x=v instanceof pr?v.bbox():v,!(this._bbox[0]>x[2]||this._bbox[2]<x[0]||this._bbox[3]<x[1]||this._bbox[1]>x[3])):null;var x},pr.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var v="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",v)},pr.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null};var Af={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},Kh=Object.keys(Af),ii=function(v){return ai(v).bbox()};function ai(v){for(var x=Qh(),C=Yh(v),I=0;I<C.length;I++)x.include(C[I]);return x}ii.polygon=function(v){return ai(v).polygon()},ii.bboxify=function(v){return Zh(v).map(function(x){x&&Kh.some(function(C){return!!x[C]&&Af[C].indexOf(x.type)!==-1})&&(x.bbox=ai(x).bbox(),this.update(x))})};function Tu(v,x){var C=-90,I=90,X=-90,$=90,Z=270,Se=-270;v.forEach(function(Pe){var te=ii(Pe),Le=te[1],Ie=te[3],Qe=te[0],Xe=te[2];Le>C&&(C=Le),Ie<I&&(I=Ie),Ie>X&&(X=Ie),Le<$&&($=Le),Qe<Z&&(Z=Qe),Xe>Se&&(Se=Xe)});var me=x;return C+me.lat>85&&(me.lat=85-C),X+me.lat>90&&(me.lat=90-X),I+me.lat<-85&&(me.lat=-85-I),$+me.lat<-90&&(me.lat=-90-$),Z+me.lng<=-270&&(me.lng+=360*Math.ceil(Math.abs(me.lng)/360)),Se+me.lng>=270&&(me.lng-=360*Math.ceil(Math.abs(me.lng)/360)),me}function ku(v,x){var C=Tu(v.map(function(I){return I.toGeoJSON()}),x);v.forEach(function(I){var X,$=I.getCoordinates(),Z=function(me){var Pe={lng:me[0]+C.lng,lat:me[1]+C.lat};return[Pe.lng,Pe.lat]},Se=function(me){return me.map(function(Pe){return Z(Pe)})};I.type===ae?X=Z($):I.type===B||I.type===re?X=$.map(Z):I.type===Q||I.type===le?X=$.map(Se):I.type===se&&(X=$.map(function(me){return me.map(function(Pe){return Se(Pe)})})),I.incomingCoords(X)})}var cn={onSetup:function(v){var x=this,C={dragMoveLocation:null,boxSelectStartLocation:null,boxSelectElement:void 0,boxSelecting:!1,canBoxSelect:!1,dragMoving:!1,canDragMove:!1,initiallySelectedFeatureIds:v.featureIds||[]};return this.setSelected(C.initiallySelectedFeatureIds.filter(function(I){return x.getFeature(I)!==void 0})),this.fireActionable(),this.setActionableState({combineFeatures:!0,uncombineFeatures:!0,trash:!0}),C},fireUpdate:function(){this.map.fire(Ce,{action:Yt,features:this.getSelected().map(function(v){return v.toGeoJSON()})})},fireActionable:function(){var v=this,x=this.getSelected(),C=x.filter(function(Se){return v.isInstanceOf("MultiFeature",Se)}),I=!1;if(x.length>1){I=!0;var X=x[0].type.replace("Multi","");x.forEach(function(Se){Se.type.replace("Multi","")!==X&&(I=!1)})}var $=C.length>0,Z=x.length>0;this.setActionableState({combineFeatures:I,uncombineFeatures:$,trash:Z})},getUniqueIds:function(v){return v.length?v.map(function(x){return x.properties.id}).filter(function(x){return x!==void 0}).reduce(function(x,C){return x.add(C),x},new Un).values():[]},stopExtendedInteractions:function(v){v.boxSelectElement&&(v.boxSelectElement.parentNode&&v.boxSelectElement.parentNode.removeChild(v.boxSelectElement),v.boxSelectElement=null),this.map.dragPan.enable(),v.boxSelecting=!1,v.canBoxSelect=!1,v.dragMoving=!1,v.canDragMove=!1},onStop:function(){ol(this)},onMouseMove:function(v){return this.stopExtendedInteractions(v),!0},onMouseOut:function(v){return!v.dragMoving||this.fireUpdate()}};cn.onTap=cn.onClick=function(v,x){return rl(x)?this.clickAnywhere(v,x):Ua(ze)(x)?this.clickOnVertex(v,x):function(C){return!!C.featureTarget&&!!C.featureTarget.properties&&C.featureTarget.properties.meta===mt}(x)?this.clickOnFeature(v,x):void 0},cn.clickAnywhere=function(v){var x=this,C=this.getSelectedIds();C.length&&(this.clearSelectedFeatures(),C.forEach(function(I){return x.doRender(I)})),ol(this),this.stopExtendedInteractions(v)},cn.clickOnVertex=function(v,x){this.changeMode(ce.DIRECT_SELECT,{featureId:x.featureTarget.properties.parent,coordPath:x.featureTarget.properties.coord_path,startPos:x.lngLat}),this.updateUIClasses({mouse:M})},cn.startOnActiveFeature=function(v,x){this.stopExtendedInteractions(v),this.map.dragPan.disable(),this.doRender(x.featureTarget.properties.id),v.canDragMove=!0,v.dragMoveLocation=x.lngLat},cn.clickOnFeature=function(v,x){var C=this;Yi(this),this.stopExtendedInteractions(v);var I=Pf(x),X=this.getSelectedIds(),$=x.featureTarget.properties.id,Z=this.isSelected($);if(!I&&Z&&this.getFeature($).type!==ae)return this.changeMode(ce.DIRECT_SELECT,{featureId:$});Z&&I?(this.deselect($),this.updateUIClasses({mouse:Y}),X.length===1&&ol(this)):!Z&&I?(this.select($),this.updateUIClasses({mouse:M})):Z||I||(X.forEach(function(Se){return C.doRender(Se)}),this.setSelected($),this.updateUIClasses({mouse:M})),this.doRender($)},cn.onMouseDown=function(v,x){return Ti(x)?this.startOnActiveFeature(v,x):this.drawConfig.boxSelect&&function(C){return!!C.originalEvent&&!!C.originalEvent.shiftKey&&C.originalEvent.button===0}(x)?this.startBoxSelect(v,x):void 0},cn.startBoxSelect=function(v,x){this.stopExtendedInteractions(v),this.map.dragPan.disable(),v.boxSelectStartLocation=al(x.originalEvent,this.map.getContainer()),v.canBoxSelect=!0},cn.onTouchStart=function(v,x){if(Ti(x))return this.startOnActiveFeature(v,x)},cn.onDrag=function(v,x){return v.canDragMove?this.dragMove(v,x):this.drawConfig.boxSelect&&v.canBoxSelect?this.whileBoxSelect(v,x):void 0},cn.whileBoxSelect=function(v,x){v.boxSelecting=!0,this.updateUIClasses({mouse:T}),v.boxSelectElement||(v.boxSelectElement=document.createElement("div"),v.boxSelectElement.classList.add(P),this.map.getContainer().appendChild(v.boxSelectElement));var C=al(x.originalEvent,this.map.getContainer()),I=Math.min(v.boxSelectStartLocation.x,C.x),X=Math.max(v.boxSelectStartLocation.x,C.x),$=Math.min(v.boxSelectStartLocation.y,C.y),Z=Math.max(v.boxSelectStartLocation.y,C.y),Se="translate("+I+"px, "+$+"px)";v.boxSelectElement.style.transform=Se,v.boxSelectElement.style.WebkitTransform=Se,v.boxSelectElement.style.width=X-I+"px",v.boxSelectElement.style.height=Z-$+"px"},cn.dragMove=function(v,x){v.dragMoving=!0,x.originalEvent.stopPropagation();var C={lng:x.lngLat.lng-v.dragMoveLocation.lng,lat:x.lngLat.lat-v.dragMoveLocation.lat};ku(this.getSelected(),C),v.dragMoveLocation=x.lngLat},cn.onMouseUp=function(v,x){var C=this;if(v.dragMoving)this.fireUpdate();else if(v.boxSelecting){var I=[v.boxSelectStartLocation,al(x.originalEvent,this.map.getContainer())],X=this.featuresAt(null,I,"click"),$=this.getUniqueIds(X).filter(function(Z){return!C.isSelected(Z)});$.length&&(this.select($),$.forEach(function(Z){return C.doRender(Z)}),this.updateUIClasses({mouse:M}))}this.stopExtendedInteractions(v)},cn.toDisplayFeatures=function(v,x,C){x.properties.active=this.isSelected(x.properties.id)?jt:en,C(x),this.fireActionable(),x.properties.active===jt&&x.geometry.type!==ae&&Mu(x).forEach(C)},cn.onTrash=function(){this.deleteFeature(this.getSelectedIds()),this.fireActionable()},cn.onCombineFeatures=function(){var v=this.getSelected();if(!(v.length===0||v.length<2)){for(var x=[],C=[],I=v[0].type.replace("Multi",""),X=0;X<v.length;X++){var $=v[X];if($.type.replace("Multi","")!==I)return;$.type.includes("Multi")?$.getCoordinates().forEach(function(Se){x.push(Se)}):x.push($.getCoordinates()),C.push($.toGeoJSON())}if(C.length>1){var Z=this.newFeature({type:ue,properties:C[0].properties,geometry:{type:"Multi"+I,coordinates:x}});this.addFeature(Z),this.deleteFeature(this.getSelectedIds(),{silent:!0}),this.setSelected([Z.id]),this.map.fire(ft,{createdFeatures:[Z.toGeoJSON()],deletedFeatures:C})}this.fireActionable()}},cn.onUncombineFeatures=function(){var v=this,x=this.getSelected();if(x.length!==0){for(var C=[],I=[],X=function(Z){var Se=x[Z];v.isInstanceOf("MultiFeature",Se)&&(Se.getFeatures().forEach(function(me){v.addFeature(me),me.properties=Se.properties,C.push(me.toGeoJSON()),v.select([me.id])}),v.deleteFeature(Se.id,{silent:!0}),I.push(Se.toGeoJSON()))},$=0;$<x.length;$++)X($);C.length>1&&this.map.fire(St,{createdFeatures:C,deletedFeatures:I}),this.fireActionable()}};var Ru=Ua(ze),Lu=Ua(Lt),Fa={fireUpdate:function(){this.map.fire(Ce,{action:$r,features:this.getSelected().map(function(v){return v.toGeoJSON()})})},fireActionable:function(v){this.setActionableState({combineFeatures:!1,uncombineFeatures:!1,trash:v.selectedCoordPaths.length>0})},startDragging:function(v,x){this.map.dragPan.disable(),v.canDragMove=!0,v.dragMoveLocation=x.lngLat},stopDragging:function(v){this.map.dragPan.enable(),v.dragMoving=!1,v.canDragMove=!1,v.dragMoveLocation=null},onVertex:function(v,x){this.startDragging(v,x);var C=x.featureTarget.properties,I=v.selectedCoordPaths.indexOf(C.coord_path);Pf(x)||I!==-1?Pf(x)&&I===-1&&v.selectedCoordPaths.push(C.coord_path):v.selectedCoordPaths=[C.coord_path];var X=this.pathsToCoordinates(v.featureId,v.selectedCoordPaths);this.setSelectedCoordinates(X)},onMidpoint:function(v,x){this.startDragging(v,x);var C=x.featureTarget.properties;v.feature.addCoordinate(C.coord_path,C.lng,C.lat),this.fireUpdate(),v.selectedCoordPaths=[C.coord_path]},pathsToCoordinates:function(v,x){return x.map(function(C){return{feature_id:v,coord_path:C}})},onFeature:function(v,x){v.selectedCoordPaths.length===0?this.startDragging(v,x):this.stopDragging(v)},dragFeature:function(v,x,C){ku(this.getSelected(),C),v.dragMoveLocation=x.lngLat},dragVertex:function(v,x,C){for(var I=v.selectedCoordPaths.map(function(Se){return v.feature.getCoordinate(Se)}),X=Tu(I.map(function(Se){return{type:ue,properties:{},geometry:{type:ae,coordinates:Se}}}),C),$=0;$<I.length;$++){var Z=I[$];v.feature.updateCoordinate(v.selectedCoordPaths[$],Z[0]+X.lng,Z[1]+X.lat)}},clickNoTarget:function(){this.changeMode(ce.SIMPLE_SELECT)},clickInactive:function(){this.changeMode(ce.SIMPLE_SELECT)},clickActiveFeature:function(v){v.selectedCoordPaths=[],this.clearSelectedCoordinates(),v.feature.changed()},onSetup:function(v){var x=v.featureId,C=this.getFeature(x);if(!C)throw new Error("You must provide a featureId to enter direct_select mode");if(C.type===ae)throw new TypeError("direct_select mode doesn't handle point features");var I={featureId:x,feature:C,dragMoveLocation:v.startPos||null,dragMoving:!1,canDragMove:!1,selectedCoordPaths:v.coordPath?[v.coordPath]:[]};return this.setSelectedCoordinates(this.pathsToCoordinates(x,I.selectedCoordPaths)),this.setSelected(x),Yi(this),this.setActionableState({trash:!0}),I},onStop:function(){ol(this),this.clearSelectedCoordinates()},toDisplayFeatures:function(v,x,C){v.featureId===x.properties.id?(x.properties.active=jt,C(x),Mu(x,{map:this.map,midpoints:!0,selectedPaths:v.selectedCoordPaths}).forEach(C)):(x.properties.active=en,C(x)),this.fireActionable(v)},onTrash:function(v){v.selectedCoordPaths.sort(function(x,C){return C.localeCompare(x,"en",{numeric:!0})}).forEach(function(x){return v.feature.removeCoordinate(x)}),this.fireUpdate(),v.selectedCoordPaths=[],this.clearSelectedCoordinates(),this.fireActionable(v),v.feature.isValid()===!1&&(this.deleteFeature([v.featureId]),this.changeMode(ce.SIMPLE_SELECT,{}))},onMouseMove:function(v,x){var C=Ti(x),I=Ru(x),X=v.selectedCoordPaths.length===0;return C&&X||I&&!X?this.updateUIClasses({mouse:M}):this.updateUIClasses({mouse:F}),this.stopDragging(v),!0},onMouseOut:function(v){return v.dragMoving&&this.fireUpdate(),!0}};Fa.onTouchStart=Fa.onMouseDown=function(v,x){return Ru(x)?this.onVertex(v,x):Ti(x)?this.onFeature(v,x):Lu(x)?this.onMidpoint(v,x):void 0},Fa.onDrag=function(v,x){if(v.canDragMove===!0){v.dragMoving=!0,x.originalEvent.stopPropagation();var C={lng:x.lngLat.lng-v.dragMoveLocation.lng,lat:x.lngLat.lat-v.dragMoveLocation.lat};v.selectedCoordPaths.length>0?this.dragVertex(v,x,C):this.dragFeature(v,x,C),v.dragMoveLocation=x.lngLat}},Fa.onClick=function(v,x){return rl(x)?this.clickNoTarget(v,x):Ti(x)?this.clickActiveFeature(v,x):Gi(x)?this.clickInactive(v,x):void this.stopDragging(v)},Fa.onTap=function(v,x){return rl(x)?this.clickNoTarget(v,x):Ti(x)?this.clickActiveFeature(v,x):Gi(x)?this.clickInactive(v,x):void 0},Fa.onTouchEnd=Fa.onMouseUp=function(v){v.dragMoving&&this.fireUpdate(),this.stopDragging(v)};var oi={};function Nf(v,x){return!!v.lngLat&&v.lngLat.lng===x[0]&&v.lngLat.lat===x[1]}oi.onSetup=function(){var v=this.newFeature({type:ue,properties:{},geometry:{type:ae,coordinates:[]}});return this.addFeature(v),this.clearSelectedFeatures(),this.updateUIClasses({mouse:T}),this.activateUIButton(ne.POINT),this.setActionableState({trash:!0}),{point:v}},oi.stopDrawingAndRemove=function(v){this.deleteFeature([v.point.id],{silent:!0}),this.changeMode(ce.SIMPLE_SELECT)},oi.onTap=oi.onClick=function(v,x){this.updateUIClasses({mouse:M}),v.point.updateCoordinate("",x.lngLat.lng,x.lngLat.lat),this.map.fire(de,{features:[v.point.toGeoJSON()]}),this.changeMode(ce.SIMPLE_SELECT,{featureIds:[v.point.id]})},oi.onStop=function(v){this.activateUIButton(),v.point.getCoordinate().length||this.deleteFeature([v.point.id],{silent:!0})},oi.toDisplayFeatures=function(v,x,C){var I=x.properties.id===v.point.id;if(x.properties.active=I?jt:en,!I)return C(x)},oi.onTrash=oi.stopDrawingAndRemove,oi.onKeyUp=function(v,x){if(_u(x)||il(x))return this.stopDrawingAndRemove(v,x)};var ki={onSetup:function(){var v=this.newFeature({type:ue,properties:{},geometry:{type:Q,coordinates:[[]]}});return this.addFeature(v),this.clearSelectedFeatures(),Yi(this),this.updateUIClasses({mouse:T}),this.activateUIButton(ne.POLYGON),this.setActionableState({trash:!0}),{polygon:v,currentVertexPosition:0}},clickAnywhere:function(v,x){if(v.currentVertexPosition>0&&Nf(x,v.polygon.coordinates[0][v.currentVertexPosition-1]))return this.changeMode(ce.SIMPLE_SELECT,{featureIds:[v.polygon.id]});this.updateUIClasses({mouse:T}),v.polygon.updateCoordinate("0."+v.currentVertexPosition,x.lngLat.lng,x.lngLat.lat),v.currentVertexPosition++,v.polygon.updateCoordinate("0."+v.currentVertexPosition,x.lngLat.lng,x.lngLat.lat)},clickOnVertex:function(v){return this.changeMode(ce.SIMPLE_SELECT,{featureIds:[v.polygon.id]})},onMouseMove:function(v,x){v.polygon.updateCoordinate("0."+v.currentVertexPosition,x.lngLat.lng,x.lngLat.lat),Cu(x)&&this.updateUIClasses({mouse:Y})}};ki.onTap=ki.onClick=function(v,x){return Cu(x)?this.clickOnVertex(v,x):this.clickAnywhere(v,x)},ki.onKeyUp=function(v,x){_u(x)?(this.deleteFeature([v.polygon.id],{silent:!0}),this.changeMode(ce.SIMPLE_SELECT)):il(x)&&this.changeMode(ce.SIMPLE_SELECT,{featureIds:[v.polygon.id]})},ki.onStop=function(v){this.updateUIClasses({mouse:F}),ol(this),this.activateUIButton(),this.getFeature(v.polygon.id)!==void 0&&(v.polygon.removeCoordinate("0."+v.currentVertexPosition),v.polygon.isValid()?this.map.fire(de,{features:[v.polygon.toGeoJSON()]}):(this.deleteFeature([v.polygon.id],{silent:!0}),this.changeMode(ce.SIMPLE_SELECT,{},{silent:!0})))},ki.toDisplayFeatures=function(v,x,C){var I=x.properties.id===v.polygon.id;if(x.properties.active=I?jt:en,!I)return C(x);if(x.geometry.coordinates.length!==0){var X=x.geometry.coordinates[0].length;if(!(X<3)){if(x.properties.meta=mt,C(hn(v.polygon.id,x.geometry.coordinates[0][0],"0.0",!1)),X>3){var $=x.geometry.coordinates[0].length-3;C(hn(v.polygon.id,x.geometry.coordinates[0][$],"0."+$,!1))}if(X<=4){var Z=[[x.geometry.coordinates[0][0][0],x.geometry.coordinates[0][0][1]],[x.geometry.coordinates[0][1][0],x.geometry.coordinates[0][1][1]]];if(C({type:ue,properties:x.properties,geometry:{coordinates:Z,type:B}}),X===3)return}return C(x)}}},ki.onTrash=function(v){this.deleteFeature([v.polygon.id],{silent:!0}),this.changeMode(ce.SIMPLE_SELECT)};var bo={onSetup:function(v){var x,C,I=(v=v||{}).featureId,X="forward";if(I){if(!(x=this.getFeature(I)))throw new Error("Could not find a feature with the provided featureId");var $=v.from;if($&&$.type==="Feature"&&$.geometry&&$.geometry.type==="Point"&&($=$.geometry),$&&$.type==="Point"&&$.coordinates&&$.coordinates.length===2&&($=$.coordinates),!$||!Array.isArray($))throw new Error("Please use the `from` property to indicate which point to continue the line from");var Z=x.coordinates.length-1;if(x.coordinates[Z][0]===$[0]&&x.coordinates[Z][1]===$[1])C=Z+1,x.addCoordinate.apply(x,[C].concat(x.coordinates[Z]));else{if(x.coordinates[0][0]!==$[0]||x.coordinates[0][1]!==$[1])throw new Error("`from` should match the point at either the start or the end of the provided LineString");X="backwards",C=0,x.addCoordinate.apply(x,[C].concat(x.coordinates[0]))}}else x=this.newFeature({type:ue,properties:{},geometry:{type:B,coordinates:[]}}),C=0,this.addFeature(x);return this.clearSelectedFeatures(),Yi(this),this.updateUIClasses({mouse:T}),this.activateUIButton(ne.LINE),this.setActionableState({trash:!0}),{line:x,currentVertexPosition:C,direction:X}},clickAnywhere:function(v,x){if(v.currentVertexPosition>0&&Nf(x,v.line.coordinates[v.currentVertexPosition-1])||v.direction==="backwards"&&Nf(x,v.line.coordinates[v.currentVertexPosition+1]))return this.changeMode(ce.SIMPLE_SELECT,{featureIds:[v.line.id]});this.updateUIClasses({mouse:T}),v.line.updateCoordinate(v.currentVertexPosition,x.lngLat.lng,x.lngLat.lat),v.direction==="forward"?(v.currentVertexPosition++,v.line.updateCoordinate(v.currentVertexPosition,x.lngLat.lng,x.lngLat.lat)):v.line.addCoordinate(0,x.lngLat.lng,x.lngLat.lat)},clickOnVertex:function(v){return this.changeMode(ce.SIMPLE_SELECT,{featureIds:[v.line.id]})},onMouseMove:function(v,x){v.line.updateCoordinate(v.currentVertexPosition,x.lngLat.lng,x.lngLat.lat),Cu(x)&&this.updateUIClasses({mouse:Y})}};bo.onTap=bo.onClick=function(v,x){if(Cu(x))return this.clickOnVertex(v,x);this.clickAnywhere(v,x)},bo.onKeyUp=function(v,x){il(x)?this.changeMode(ce.SIMPLE_SELECT,{featureIds:[v.line.id]}):_u(x)&&(this.deleteFeature([v.line.id],{silent:!0}),this.changeMode(ce.SIMPLE_SELECT))},bo.onStop=function(v){ol(this),this.activateUIButton(),this.getFeature(v.line.id)!==void 0&&(v.line.removeCoordinate(""+v.currentVertexPosition),v.line.isValid()?this.map.fire(de,{features:[v.line.toGeoJSON()]}):(this.deleteFeature([v.line.id],{silent:!0}),this.changeMode(ce.SIMPLE_SELECT,{},{silent:!0})))},bo.onTrash=function(v){this.deleteFeature([v.line.id],{silent:!0}),this.changeMode(ce.SIMPLE_SELECT)},bo.toDisplayFeatures=function(v,x,C){var I=x.properties.id===v.line.id;if(x.properties.active=I?jt:en,!I)return C(x);x.geometry.coordinates.length<2||(x.properties.meta=mt,C(hn(v.line.id,x.geometry.coordinates[v.direction==="forward"?x.geometry.coordinates.length-2:1],""+(v.direction==="forward"?x.geometry.coordinates.length-2:1),!1)),C(x))};var Ou={simple_select:cn,direct_select:Fa,draw_point:oi,draw_polygon:ki,draw_line_string:bo},U0={defaultMode:ce.SIMPLE_SELECT,keybindings:!0,touchEnabled:!0,clickBuffer:2,touchBuffer:25,boxSelect:!0,displayControlsDefault:!0,styles:[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","true"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","true"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","true"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","true"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","true"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}],modes:Ou,controls:{},userProperties:!1},Jh={point:!0,line_string:!0,polygon:!0,trash:!0,combine_features:!0,uncombine_features:!0},F0={point:!1,line_string:!1,polygon:!1,trash:!1,combine_features:!1,uncombine_features:!1};function zf(v,x){return v.map(function(C){return C.source?C:Mi(C,{id:C.id+"."+x,source:x==="hot"?R:D})})}var je=zt(function(v,x){var C="[object Arguments]",I="[object Map]",X="[object Object]",$="[object Set]",Z=/^\[object .+?Constructor\]$/,Se=/^(?:0|[1-9]\d*)$/,me={};me["[object Float32Array]"]=me["[object Float64Array]"]=me["[object Int8Array]"]=me["[object Int16Array]"]=me["[object Int32Array]"]=me["[object Uint8Array]"]=me["[object Uint8ClampedArray]"]=me["[object Uint16Array]"]=me["[object Uint32Array]"]=!0,me[C]=me["[object Array]"]=me["[object ArrayBuffer]"]=me["[object Boolean]"]=me["[object DataView]"]=me["[object Date]"]=me["[object Error]"]=me["[object Function]"]=me[I]=me["[object Number]"]=me[X]=me["[object RegExp]"]=me[$]=me["[object String]"]=me["[object WeakMap]"]=!1;var Pe=typeof global=="object"&&global&&global.Object===Object&&global,te=typeof self=="object"&&self&&self.Object===Object&&self,Le=Pe||te||Function("return this")(),Ie=x&&!x.nodeType&&x,Qe=Ie&&v&&!v.nodeType&&v,Xe=Qe&&Qe.exports===Ie,kn=Xe&&Pe.process,pe=function(){try{return kn&&kn.binding&&kn.binding("util")}catch{}}(),Be=pe&&pe.isTypedArray;function It(q,fe){for(var Oe=-1,Ke=q==null?0:q.length;++Oe<Ke;)if(fe(q[Oe],Oe,q))return!0;return!1}function Pt(q){var fe=-1,Oe=Array(q.size);return q.forEach(function(Ke,fn){Oe[++fe]=[fn,Ke]}),Oe}function vn(q){var fe=-1,Oe=Array(q.size);return q.forEach(function(Ke){Oe[++fe]=Ke}),Oe}var Ze,ma,ga,Ct=Array.prototype,Gr=Function.prototype,yr=Object.prototype,If=Le["__core-js_shared__"],ev=Gr.toString,li=yr.hasOwnProperty,Uf=(Ze=/[^.]+$/.exec(If&&If.keys&&If.keys.IE_PROTO||""))?"Symbol(src)_1."+Ze:"",Ff=yr.toString,j0=RegExp("^"+ev.call(li).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jf=Xe?Le.Buffer:void 0,Du=Le.Symbol,Pu=Le.Uint8Array,Au=yr.propertyIsEnumerable,tv=Ct.splice,ja=Du?Du.toStringTag:void 0,nv=Object.getOwnPropertySymbols,cl=jf?jf.isBuffer:void 0,Bf=(ma=Object.keys,ga=Object,function(q){return ma(ga(q))}),Nu=dl(Le,"DataView"),gs=dl(Le,"Map"),Hf=dl(Le,"Promise"),Vf=dl(Le,"Set"),zu=dl(Le,"WeakMap"),xo=dl(Object,"create"),rv=So(Nu),iv=So(gs),av=So(Hf),B0=So(Vf),Iu=So(zu),Wf=Du?Du.prototype:void 0,ys=Wf?Wf.valueOf:void 0;function Ba(q){var fe=-1,Oe=q==null?0:q.length;for(this.clear();++fe<Oe;){var Ke=q[fe];this.set(Ke[0],Ke[1])}}function Ri(q){var fe=-1,Oe=q==null?0:q.length;for(this.clear();++fe<Oe;){var Ke=q[fe];this.set(Ke[0],Ke[1])}}function ya(q){var fe=-1,Oe=q==null?0:q.length;for(this.clear();++fe<Oe;){var Ke=q[fe];this.set(Ke[0],Ke[1])}}function Uu(q){var fe=-1,Oe=q==null?0:q.length;for(this.__data__=new ya;++fe<Oe;)this.add(q[fe])}function Li(q){var fe=this.__data__=new Ri(q);this.size=fe.size}function ov(q,fe){var Oe=Bu(q),Ke=!Oe&&V0(q),fn=!Oe&&!Ke&&Gf(q),bt=!Oe&&!Ke&&!fn&&Zf(q),Rn=Oe||Ke||fn||bt,Nn=Rn?function(Zn,Zi){for(var xa=-1,xr=Array(Zn);++xa<Zn;)xr[xa]=Zi(xa);return xr}(q.length,String):[],Oi=Nn.length;for(var Bn in q)!fe&&!li.call(q,Bn)||Rn&&(Bn=="length"||fn&&(Bn=="offset"||Bn=="parent")||bt&&(Bn=="buffer"||Bn=="byteLength"||Bn=="byteOffset")||H0(Bn,Oi))||Nn.push(Bn);return Nn}function br(q,fe){for(var Oe=q.length;Oe--;)if(qf(q[Oe][0],fe))return Oe;return-1}function Yr(q){return q==null?q===void 0?"[object Undefined]":"[object Null]":ja&&ja in Object(q)?function(fe){var Oe=li.call(fe,ja),Ke=fe[ja];try{fe[ja]=void 0;var fn=!0}catch{}var bt=Ff.call(fe);return fn&&(Oe?fe[ja]=Ke:delete fe[ja]),bt}(q):function(fe){return Ff.call(fe)}(q)}function Rr(q){return pl(q)&&Yr(q)==C}function ba(q,fe,Oe,Ke,fn){return q===fe||(q==null||fe==null||!pl(q)&&!pl(fe)?q!=q&&fe!=fe:function(bt,Rn,Nn,Oi,Bn,Zn){var Zi=Bu(bt),xa=Bu(Rn),xr=Zi?"[object Array]":Ha(bt),Di=xa?"[object Array]":Ha(Rn),si=(xr=xr==C?X:xr)==X,wo=(Di=Di==C?X:Di)==X,Co=xr==Di;if(Co&&Gf(bt)){if(!Gf(Rn))return!1;Zi=!0,si=!1}if(Co&&!si)return Zn||(Zn=new Li),Zi||Zf(bt)?sv(bt,Rn,Nn,Oi,Bn,Zn):function(Qt,Ht,Vu,Sa,Qf,Zr,xn){switch(Vu){case"[object DataView]":if(Qt.byteLength!=Ht.byteLength||Qt.byteOffset!=Ht.byteOffset)return!1;Qt=Qt.buffer,Ht=Ht.buffer;case"[object ArrayBuffer]":return!(Qt.byteLength!=Ht.byteLength||!Zr(new Pu(Qt),new Pu(Ht)));case"[object Boolean]":case"[object Date]":case"[object Number]":return qf(+Qt,+Ht);case"[object Error]":return Qt.name==Ht.name&&Qt.message==Ht.message;case"[object RegExp]":case"[object String]":return Qt==Ht+"";case I:var Va=Pt;case $:var hl=1&Sa;if(Va||(Va=vn),Qt.size!=Ht.size&&!hl)return!1;var Wu=xn.get(Qt);if(Wu)return Wu==Ht;Sa|=2,xn.set(Qt,Ht);var vl=sv(Va(Qt),Va(Ht),Sa,Qf,Zr,xn);return xn.delete(Qt),vl;case"[object Symbol]":if(ys)return ys.call(Qt)==ys.call(Ht)}return!1}(bt,Rn,xr,Nn,Oi,Bn,Zn);if(!(1&Nn)){var Qi=si&&li.call(bt,"__wrapped__"),uv=wo&&li.call(Rn,"__wrapped__");if(Qi||uv){var $0=Qi?bt.value():bt,q0=uv?Rn.value():Rn;return Zn||(Zn=new Li),Bn($0,q0,Nn,Oi,Zn)}}return Co?(Zn||(Zn=new Li),function(Qt,Ht,Vu,Sa,Qf,Zr){var xn=1&Vu,Va=fl(Qt),hl=Va.length,Wu=fl(Ht).length;if(hl!=Wu&&!xn)return!1;for(var vl=hl;vl--;){var Wa=Va[vl];if(!(xn?Wa in Ht:li.call(Ht,Wa)))return!1}var cv=Zr.get(Qt);if(cv&&Zr.get(Ht))return cv==Ht;var $u=!0;Zr.set(Qt,Ht),Zr.set(Ht,Qt);for(var qu=xn;++vl<hl;){Wa=Va[vl];var _o=Qt[Wa],$a=Ht[Wa];if(Sa)var Kf=xn?Sa($a,_o,Wa,Ht,Qt,Zr):Sa(_o,$a,Wa,Qt,Ht,Zr);if(!(Kf===void 0?_o===$a||Qf(_o,$a,Vu,Sa,Zr):Kf)){$u=!1;break}qu||(qu=Wa=="constructor")}if($u&&!qu){var Gu=Qt.constructor,ml=Ht.constructor;Gu==ml||!("constructor"in Qt)||!("constructor"in Ht)||typeof Gu=="function"&&Gu instanceof Gu&&typeof ml=="function"&&ml instanceof ml||($u=!1)}return Zr.delete(Qt),Zr.delete(Ht),$u}(bt,Rn,Nn,Oi,Bn,Zn)):!1}(q,fe,Oe,Ke,ba,fn))}function lv(q){return!(!Hu(q)||function(fe){return!!Uf&&Uf in fe}(q))&&(Yf(q)?j0:Z).test(So(q))}function Fu(q){if(Oe=(fe=q)&&fe.constructor,Ke=typeof Oe=="function"&&Oe.prototype||yr,fe!==Ke)return Bf(q);var fe,Oe,Ke,fn=[];for(var bt in Object(q))li.call(q,bt)&&bt!="constructor"&&fn.push(bt);return fn}function sv(q,fe,Oe,Ke,fn,bt){var Rn=1&Oe,Nn=q.length,Oi=fe.length;if(Nn!=Oi&&!(Rn&&Oi>Nn))return!1;var Bn=bt.get(q);if(Bn&&bt.get(fe))return Bn==fe;var Zn=-1,Zi=!0,xa=2&Oe?new Uu:void 0;for(bt.set(q,fe),bt.set(fe,q);++Zn<Nn;){var xr=q[Zn],Di=fe[Zn];if(Ke)var si=Rn?Ke(Di,xr,Zn,fe,q,bt):Ke(xr,Di,Zn,q,fe,bt);if(si!==void 0){if(si)continue;Zi=!1;break}if(xa){if(!It(fe,function(wo,Co){if(Qi=Co,!xa.has(Qi)&&(xr===wo||fn(xr,wo,Oe,Ke,bt)))return xa.push(Co);var Qi})){Zi=!1;break}}else if(xr!==Di&&!fn(xr,Di,Oe,Ke,bt)){Zi=!1;break}}return bt.delete(q),bt.delete(fe),Zi}function fl(q){return function(fe,Oe,Ke){var fn=Oe(fe);return Bu(fe)?fn:function(bt,Rn){for(var Nn=-1,Oi=Rn.length,Bn=bt.length;++Nn<Oi;)bt[Bn+Nn]=Rn[Nn];return bt}(fn,Ke(fe))}(q,W0,$f)}function ju(q,fe){var Oe,Ke,fn=q.__data__;return((Ke=typeof(Oe=fe))=="string"||Ke=="number"||Ke=="symbol"||Ke=="boolean"?Oe!=="__proto__":Oe===null)?fn[typeof fe=="string"?"string":"hash"]:fn.map}function dl(q,fe){var Oe=function(Ke,fn){return Ke==null?void 0:Ke[fn]}(q,fe);return lv(Oe)?Oe:void 0}Ba.prototype.clear=function(){this.__data__=xo?xo(null):{},this.size=0},Ba.prototype.delete=function(q){var fe=this.has(q)&&delete this.__data__[q];return this.size-=fe?1:0,fe},Ba.prototype.get=function(q){var fe=this.__data__;if(xo){var Oe=fe[q];return Oe==="__lodash_hash_undefined__"?void 0:Oe}return li.call(fe,q)?fe[q]:void 0},Ba.prototype.has=function(q){var fe=this.__data__;return xo?fe[q]!==void 0:li.call(fe,q)},Ba.prototype.set=function(q,fe){var Oe=this.__data__;return this.size+=this.has(q)?0:1,Oe[q]=xo&&fe===void 0?"__lodash_hash_undefined__":fe,this},Ri.prototype.clear=function(){this.__data__=[],this.size=0},Ri.prototype.delete=function(q){var fe=this.__data__,Oe=br(fe,q);return!(Oe<0)&&(Oe==fe.length-1?fe.pop():tv.call(fe,Oe,1),--this.size,!0)},Ri.prototype.get=function(q){var fe=this.__data__,Oe=br(fe,q);return Oe<0?void 0:fe[Oe][1]},Ri.prototype.has=function(q){return br(this.__data__,q)>-1},Ri.prototype.set=function(q,fe){var Oe=this.__data__,Ke=br(Oe,q);return Ke<0?(++this.size,Oe.push([q,fe])):Oe[Ke][1]=fe,this},ya.prototype.clear=function(){this.size=0,this.__data__={hash:new Ba,map:new(gs||Ri),string:new Ba}},ya.prototype.delete=function(q){var fe=ju(this,q).delete(q);return this.size-=fe?1:0,fe},ya.prototype.get=function(q){return ju(this,q).get(q)},ya.prototype.has=function(q){return ju(this,q).has(q)},ya.prototype.set=function(q,fe){var Oe=ju(this,q),Ke=Oe.size;return Oe.set(q,fe),this.size+=Oe.size==Ke?0:1,this},Uu.prototype.add=Uu.prototype.push=function(q){return this.__data__.set(q,"__lodash_hash_undefined__"),this},Uu.prototype.has=function(q){return this.__data__.has(q)},Li.prototype.clear=function(){this.__data__=new Ri,this.size=0},Li.prototype.delete=function(q){var fe=this.__data__,Oe=fe.delete(q);return this.size=fe.size,Oe},Li.prototype.get=function(q){return this.__data__.get(q)},Li.prototype.has=function(q){return this.__data__.has(q)},Li.prototype.set=function(q,fe){var Oe=this.__data__;if(Oe instanceof Ri){var Ke=Oe.__data__;if(!gs||Ke.length<199)return Ke.push([q,fe]),this.size=++Oe.size,this;Oe=this.__data__=new ya(Ke)}return Oe.set(q,fe),this.size=Oe.size,this};var $f=nv?function(q){return q==null?[]:(q=Object(q),function(fe,Oe){for(var Ke=-1,fn=fe==null?0:fe.length,bt=0,Rn=[];++Ke<fn;){var Nn=fe[Ke];Oe(Nn,Ke,fe)&&(Rn[bt++]=Nn)}return Rn}(nv(q),function(fe){return Au.call(q,fe)}))}:function(){return[]},Ha=Yr;function H0(q,fe){return!!(fe=fe==null?9007199254740991:fe)&&(typeof q=="number"||Se.test(q))&&q>-1&&q%1==0&&q<fe}function So(q){if(q!=null){try{return ev.call(q)}catch{}try{return q+""}catch{}}return""}function qf(q,fe){return q===fe||q!=q&&fe!=fe}(Nu&&Ha(new Nu(new ArrayBuffer(1)))!="[object DataView]"||gs&&Ha(new gs)!=I||Hf&&Ha(Hf.resolve())!="[object Promise]"||Vf&&Ha(new Vf)!=$||zu&&Ha(new zu)!="[object WeakMap]")&&(Ha=function(q){var fe=Yr(q),Oe=fe==X?q.constructor:void 0,Ke=Oe?So(Oe):"";if(Ke)switch(Ke){case rv:return"[object DataView]";case iv:return I;case av:return"[object Promise]";case B0:return $;case Iu:return"[object WeakMap]"}return fe});var V0=Rr(function(){return arguments}())?Rr:function(q){return pl(q)&&li.call(q,"callee")&&!Au.call(q,"callee")},Bu=Array.isArray,Gf=cl||function(){return!1};function Yf(q){if(!Hu(q))return!1;var fe=Yr(q);return fe=="[object Function]"||fe=="[object GeneratorFunction]"||fe=="[object AsyncFunction]"||fe=="[object Proxy]"}function Eo(q){return typeof q=="number"&&q>-1&&q%1==0&&q<=9007199254740991}function Hu(q){var fe=typeof q;return q!=null&&(fe=="object"||fe=="function")}function pl(q){return q!=null&&typeof q=="object"}var Zf=Be?function(q){return function(fe){return q(fe)}}(Be):function(q){return pl(q)&&Eo(q.length)&&!!me[Yr(q)]};function W0(q){return(fe=q)!=null&&Eo(fe.length)&&!Yf(fe)?ov(q):Fu(q);var fe}v.exports=function(q,fe){return ba(q,fe)}}),Xh={Polygon:Ue,LineString:ke,Point:Fn,MultiPolygon:gt,MultiLineString:gt,MultiPoint:gt};function kr(v,x){return x.modes=ce,x.getFeatureIdsAt=function(C){return Bt.click({point:C},null,v).map(function(I){return I.properties.id})},x.getSelectedIds=function(){return v.store.getSelectedIds()},x.getSelected=function(){return{type:H,features:v.store.getSelectedIds().map(function(C){return v.store.get(C)}).map(function(C){return C.toGeoJSON()})}},x.getSelectedPoints=function(){return{type:H,features:v.store.getSelectedCoordinates().map(function(C){return{type:ue,properties:{},geometry:{type:ae,coordinates:C.coordinates}}})}},x.set=function(C){if(C.type===void 0||C.type!==H||!Array.isArray(C.features))throw new Error("Invalid FeatureCollection");var I=v.store.createRenderBatch(),X=v.store.getAllIds().slice(),$=x.add(C),Z=new Un($);return(X=X.filter(function(Se){return!Z.has(Se)})).length&&x.delete(X),I(),$},x.add=function(C){var I=JSON.parse(JSON.stringify(ll(C))).features.map(function(X){if(X.id=X.id||tn(),X.geometry===null)throw new Error("Invalid geometry: null");if(v.store.get(X.id)===void 0||v.store.get(X.id).type!==X.geometry.type){var $=Xh[X.geometry.type];if($===void 0)throw new Error("Invalid geometry type: "+X.geometry.type+".");var Z=new $(v,X);v.store.add(Z)}else{var Se=v.store.get(X.id);Se.properties=X.properties,je(Se.getCoordinates(),X.geometry.coordinates)||Se.incomingCoords(X.geometry.coordinates)}return X.id});return v.store.render(),I},x.get=function(C){var I=v.store.get(C);if(I)return I.toGeoJSON()},x.getAll=function(){return{type:H,features:v.store.getAll().map(function(C){return C.toGeoJSON()})}},x.delete=function(C){return v.store.delete(C,{silent:!0}),x.getMode()!==ce.DIRECT_SELECT||v.store.getSelectedIds().length?v.store.render():v.events.changeMode(ce.SIMPLE_SELECT,void 0,{silent:!0}),x},x.deleteAll=function(){return v.store.delete(v.store.getAllIds(),{silent:!0}),x.getMode()===ce.DIRECT_SELECT?v.events.changeMode(ce.SIMPLE_SELECT,void 0,{silent:!0}):v.store.render(),x},x.changeMode=function(C,I){return I===void 0&&(I={}),C===ce.SIMPLE_SELECT&&x.getMode()===ce.SIMPLE_SELECT?(X=I.featureIds||[],$=v.store.getSelectedIds(),X.length===$.length&&JSON.stringify(X.map(function(Z){return Z}).sort())===JSON.stringify($.map(function(Z){return Z}).sort())||(v.store.setSelected(I.featureIds,{silent:!0}),v.store.render()),x):(C===ce.DIRECT_SELECT&&x.getMode()===ce.DIRECT_SELECT&&I.featureId===v.store.getSelectedIds()[0]||v.events.changeMode(C,I,{silent:!0}),x);var X,$},x.getMode=function(){return v.events.getMode()},x.trash=function(){return v.events.trash({silent:!0}),x},x.combineFeatures=function(){return v.events.combineFeatures({silent:!0}),x},x.uncombineFeatures=function(){return v.events.uncombineFeatures({silent:!0}),x},x.setFeatureProperty=function(C,I,X){return v.store.setFeatureProperty(C,I,X),x},x}var sl=function(v,x){var C={options:v=function(X){X===void 0&&(X={});var $=Mi(X);return X.controls||($.controls={}),X.displayControlsDefault===!1?$.controls=Mi(F0,X.controls):$.controls=Mi(Jh,X.controls),($=Mi(U0,$)).styles=zf($.styles,"cold").concat(zf($.styles,"hot")),$}(v)};x=kr(C,x),C.api=x;var I=nl(C);return x.onAdd=I.onAdd,x.onRemove=I.onRemove,x.types=ne,x.options=v,x};function ul(v){sl(v,this)}return ul.modes=Ou,ul})});var rP={};Ra(rP,{BusContext:()=>uC,default:()=>j$,emit:()=>U$,useBus:()=>nP,useListener:()=>I$});import Py from"react";function z$(e){return e=e||Object.create(null),{on:function(r,o){(e[r]||(e[r]=[])).push(o)},off:function(r,o){e[r]&&e[r].splice(e[r].indexOf(o)>>>0,1)},emit:function(r,o){(e[r]||[]).slice().map(function(s){s(o)}),(e["*"]||[]).slice().map(function(s){s(r,o)})}}}var sC,uC,nP,I$,U$,F$,j$,iP=tt(()=>{G();sC=z$(),uC=Py.createContext(sC),nP=function(){return Py.useContext(uC)},I$=function(e,t){var r=nP();Py.useEffect(function(){return t.map(function(o){return r.on(o,e)}),function(){t.map(function(o){return r.off(o,e)})}},[r,t,e])},U$=sC.emit,F$=function(e){var t=e.children;return Py.createElement(uC.Provider,{value:sC},t)},j$=F$});var hP=Mt((nee,pP)=>{G();var B$=Object.create,gh=Object.defineProperty,H$=Object.getOwnPropertyDescriptor,V$=Object.getOwnPropertyNames,aP=Object.getOwnPropertySymbols,W$=Object.getPrototypeOf,uP=Object.prototype.hasOwnProperty,$$=Object.prototype.propertyIsEnumerable,oP=(e,t,r)=>t in e?gh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Iy=(e,t)=>{for(var r in t||(t={}))uP.call(t,r)&&oP(e,r,t[r]);if(aP)for(var r of aP(t))$$.call(t,r)&&oP(e,r,t[r]);return e},cP=e=>gh(e,"__esModule",{value:!0}),q$=(e,t)=>{for(var r in t)gh(e,r,{get:t[r],enumerable:!0})},fP=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of V$(t))!uP.call(e,s)&&(r||s!=="default")&&gh(e,s,{get:()=>t[s],enumerable:!(o=H$(t,s))||o.enumerable});return e},ss=(e,t)=>fP(cP(gh(e!=null?B$(W$(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),G$=(e=>(t,r)=>e&&e.get(t)||(r=fP(cP({}),t,1),e&&e.set(t,r),r))(typeof WeakMap<"u"?new WeakMap:0),dP={};q$(dP,{NakshaMapboxDraw:()=>oq});var lP=ss(ct("react")),Y$=(Si(),on(xi)),sP=Er(),Z$=ss(dh()),cu=ss(ct("react")),pC=ss((Si(),on(xi))),Q$=ss(tP()),Ay=ss(ct("react")),cC=(iP(),on(rP)),K$=(Si(),on(xi)),fC=ss(ct("react"));function J$({onDelete:e}){return fC.default.createElement("div",{className:"mapboxgl-ctrl-top-left",style:{marginTop:"100px"}},fC.default.createElement("div",{className:"mapboxgl-ctrl-group mapboxgl-ctrl"},fC.default.createElement("button",{className:"mapbox-gl-draw_ctrl-draw-btn mapbox-gl-draw_trash",title:"Delete",onClick:e})))}var dC="rmsc-draw-updated";function X$(e){var t;let[r,o]=(0,Ay.useState)(((t=e.data)==null?void 0:t.features)||[]);(0,cC.useListener)(s,[dC]);function s(p){let m=[...r,...p.features],y=e.isMultiple?m:[m[m.length-1]];o(y),f.deleteAll()}let f=(0,K$.useControl)(({map:p})=>(p.on("draw.create",m=>(0,cC.emit)(dC,m)),p.on("draw.update",m=>(0,cC.emit)(dC,m)),new Q$.default({displayControlsDefault:!1,controls:{polygon:!0,line_string:!0,point:!0}})),()=>{},{position:"top-left"}),d=()=>o([]);return(0,Ay.useEffect)(()=>{e.onDataChange&&e.onDataChange({type:"FeatureCollection",features:r})},[r]),(0,Ay.useEffect)(()=>{var p,m;e.isControlled&&JSON.stringify(r)!==JSON.stringify((p=e.data)==null?void 0:p.features)&&o(((m=e.data)==null?void 0:m.features)||[])},[e.data]),Ay.default.createElement(J$,{onDelete:d})}var Ny=ss(ct("react")),zy=(Si(),on(xi)),eq={id:"data",type:"fill",paint:{"fill-color":"#f03b20","fill-opacity":.2},filter:["==",["geometry-type"],"Polygon"]},tq={type:"circle",paint:{"circle-radius":8,"circle-color":"#f03b20","circle-opacity":.8},filter:["==",["geometry-type"],"Point"]},nq={type:"line",paint:{"line-color":"#f03b20","line-width":1.6,"line-dasharray":[6,3],"line-opacity":.8},filter:["==",["geometry-type"],"LineString"]};function rq({data:e}){var t;return((t=e==null?void 0:e.features)==null?void 0:t.length)?Ny.default.createElement(zy.Source,{type:"geojson",data:e},Ny.default.createElement(zy.Layer,Iy({},tq)),Ny.default.createElement(zy.Layer,Iy({},nq)),Ny.default.createElement(zy.Layer,Iy({},eq))):null}var iq=pC.NavigationControl;function aq(e){let{mapv:t}=(0,pC.useMap)(),[r]=(0,cu.useState)(sP.defaultMapStyles[(e==null?void 0:e.mapStyle)||0].style),[o]=(0,cu.useState)(e.defaultViewState||sP.defaultViewState),s=()=>{var f,d;if(!((d=(f=e.data)==null?void 0:f.features)==null?void 0:d.length)||!t)return;let p=(0,Z$.default)(e.data);t.fitBounds(p,{padding:40,duration:1e3})};return(0,cu.useEffect)(()=>{s()},[e.data]),cu.default.createElement(pC.default,{id:"mapv",cursor:"default",initialViewState:o,mapboxAccessToken:e.mapboxAccessToken,style:{width:"100%",height:"100%"},mapStyle:r,onLoad:s},cu.default.createElement(iq,{position:"top-right",showZoom:!0,showCompass:!0}),cu.default.createElement(X$,{data:e.data,onDataChange:e.onDataChange,isControlled:e.isControlled,isMultiple:e.isMultiple,autoFocus:s}),cu.default.createElement(rq,{data:e.data}))}var oq=e=>lP.default.createElement(Y$.MapProvider,null,lP.default.createElement(aq,Iy({},e)));pP.exports=G$(dP)});var vP=Mt(yh=>{"use strict";G();Object.defineProperty(yh,"__esModule",{value:!0});var lq=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);yh.cssPropertyAlias=function(e){return lq.get(e)},yh.cssPropertyPrefixFlags=function(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl))|(tab-|column(?!-s)|text-align-l)|(ap)|(u|hy))/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0},yh.cssValuePrefixFlags=function(e,t){var r=/^(?:(pos)|(cli)|(background-i)|((?:max-|min-)?(?:block-s|inl|he|widt))|(dis))/i.exec(e);return r?r[1]?/^sti/i.test(t)?1:0:r[2]?/^pat/i.test(t)?1:0:r[3]?/^image-/i.test(t)?1:0:r[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}});var Mr=Mt(LC=>{G();var sq=Object.create,Gy=Object.defineProperty,uq=Object.getPrototypeOf,TP=Object.prototype.hasOwnProperty,cq=Object.getOwnPropertyNames,fq=Object.getOwnPropertyDescriptor,mP=Object.getOwnPropertySymbols,dq=Object.prototype.propertyIsEnumerable,Ge=Object.assign,kP=e=>Gy(e,"__esModule",{value:!0}),pq=(e,t)=>{var r={};for(var o in e)TP.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&mP)for(var o of mP(e))t.indexOf(o)<0&&dq.call(e,o)&&(r[o]=e[o]);return r},hq=(e,t)=>{for(var r in t)Gy(e,r,{get:t[r],enumerable:!0})},vq=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cq(t))!TP.call(e,o)&&o!=="default"&&Gy(e,o,{get:()=>t[o],enumerable:!(r=fq(t,o))||r.enumerable});return e},RP=e=>vq(kP(Gy(e!=null?sq(uq(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);kP(LC);hq(LC,{apply:()=>zP,autoprefix:()=>WP,create:()=>JP,cssomSheet:()=>jP,directive:()=>RC,hash:()=>Hy,mode:()=>Zy,noprefix:()=>vo,setup:()=>Zq,silent:()=>VP,strict:()=>HP,theme:()=>Oq,tw:()=>Yq,voidSheet:()=>BP,warn:()=>_C});var iee=RP(ct("url")),An=(e,t)=>!!~e.indexOf(t),Rt=(e,t="-")=>e.join(t),xC=(e,t)=>Rt(e.filter(Boolean),t),At=(e,t=1)=>e.slice(t),mq=e=>e,LP=()=>{},Yo=e=>e[0].toUpperCase()+At(e),MC=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),hu=(e,t)=>{for(;typeof e=="function";)e=e(t);return e},OP=(e,t)=>{e.size>t&&e.delete(e.keys().next().value)},DP=(e,t)=>!An("@:&",e[0])&&(An("rg",(typeof t)[5])||Array.isArray(t)),TC=(e,t,r)=>t?Object.keys(t).reduce((o,s)=>{let f=hu(t[s],r);return DP(s,f)?o[MC(s)]=f:o[s]=s[0]=="@"&&An("figa",s[1])?(o[s]||[]).concat(f):TC(o[s]||{},f,r),o},e):e,PP=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& ")),Yy=e=>(Array.isArray(e)||(e=[e]),"@media "+Rt(e.map(t=>(typeof t=="string"&&(t={min:t}),t.raw||Rt(Object.keys(t).map(r=>`(${r}-width:${t[r]})`)," and "))),",")),Hy=e=>{for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},gq=(e,t)=>{for(var r=0,o=e.length;r<o;){let s=o+r>>1;e[s]<=t?r=s+1:o=s}return o},Zo,yf,fs=(e="")=>(Zo.push(e),""),kC=e=>{Zo.length=Math.max(Zo.lastIndexOf("")+~~e,0)},yq=e=>e&&!An("!:",e[0]),bq=e=>e[0]==":",AP=(e,t)=>{yf.push({v:Zo.filter(bq),d:e,n:t,i:An(Zo,"!"),$:""})},gP=e=>{let t=e[0]=="-";t&&(e=At(e));let r=Rt(Zo.filter(yq));return AP(e=="&"?r:(r&&r+"-")+e,t),""},wh=(e,t)=>{let r="";for(let o,s=!1,f=0;o=e[f++];){if(s||o=="["){r+=o,s=o!="]";continue}switch(o){case":":r=r&&fs(":"+(e[f]==o?e[f++]:"")+r);break;case"(":r=r&&fs(r),fs();break;case"!":fs(o);break;case")":case" ":case" ":case`
151
- `:case"\r":r=r&&gP(r),kC(o!==")");break;default:r+=o}}r&&(t?fs(":"+r):r.slice(-1)=="-"?fs(r.slice(0,-1)):gP(r))},NP=e=>{fs(),$y(e),kC()},xq=(e,t)=>{if(t){fs();let r=An("tbu",(typeof t)[1]);wh(e,r),r&&NP(t),kC()}},$y=e=>{switch(typeof e){case"string":wh(e);break;case"function":AP(e);break;case"object":Array.isArray(e)?e.forEach(NP):e&&Object.keys(e).forEach(t=>{xq(t,e[t])})}},yP=new WeakMap,Sq=e=>{let t=yP.get(e);if(!t){let r=NaN,o="";t=e.map((s,f)=>{if(r!==r&&(s.slice(-1)=="["||An(":-(",(e[f+1]||"")[0]))&&(r=f),f>=r)return m=>{f==r&&(o=""),o+=s,An("rg",(typeof m)[5])?o+=m:m&&(wh(o),o="",$y(m)),f==e.length-1&&wh(o)};let d=yf=[];wh(s);let p=[...Zo];return yf=[],m=>{yf.push(...d),Zo=[...p],m&&$y(m)}}),yP.set(e,t)}return t},SC=e=>(Zo=[],yf=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?Sq(e[0]).forEach((t,r)=>t(e[r+1])):$y(e),yf),EC,Eq=(e,t)=>(typeof t=="function"&&(EC=!1),t),wq=e=>{EC=!0;let t=JSON.stringify(e,Eq);return EC&&t},bP=new WeakMap,RC=(e,t)=>{let r=wq(t),o;if(r){var s=bP.get(e);s||bP.set(e,s=new Map),o=s.get(r)}return o||(o=Object.defineProperty((f,d)=>(d=Array.isArray(f)?d:f,hu(e(t,d),d)),"toJSON",{value:()=>r||t}),s&&(s.set(r,o),OP(s,1e4))),o},Cq=(e,{css:t})=>t(SC(e)),zP=(...e)=>RC(Cq,e),IP=e=>(t,r,o,s)=>{if(t){let f=r&&e(r);if(f&&f.length>0)return f.reduce((d,p)=>(d[xC([o,p,s])]=t,d),{})}},_q=IP(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]})[e]),Vy=e=>{let t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let r=t.length;r--;)if(!(t[r]={t:"top",r:"right",b:"bottom",l:"left"}[t[r]]))return;if(t.length)return t},wC=IP(Vy),ye,pu,ln,Uy=e=>e=="cols"?"columns":"rows",Ch=e=>(t,r,o)=>({[e]:o+((ye=Rt(t))&&"-"+ye)}),tr=(e,t)=>(r,o,s)=>(ye=Rt(r,t))&&{[e||s]:ye},Wr=e=>(t,{theme:r},o)=>(ye=r(e||o,t))&&{[e||o]:ye},Fy=(e,t)=>(r,{theme:o},s)=>(ye=o(e||s,r,Rt(r,t)))&&{[e||s]:ye},ho=(e,t)=>(r,o)=>e(r,o,t),Go=Ch("display"),bh=Ch("position"),mf=Ch("textTransform"),gf=Ch("textDecoration"),jy=Ch("fontStyle"),us=e=>(t,r,o)=>({["--tw-"+e]:o,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),By=(e,{theme:t},r)=>(ye=t("inset",e))&&{[r]:ye},Eh=(e,t,r,o=r)=>(ye=t(o+"Opacity",At(e)))&&{[`--tw-${r}-opacity`]:ye},hC=(e,t)=>Math.round(parseInt(e,16)*t),qy=(e,t,r)=>e&&e[0]=="#"&&(ye=(e.length-1)/3)&&(ln=[17,1,.062272][ye-1])?`rgba(${hC(e.substr(1,ye),ln)},${hC(e.substr(1+ye,ye),ln)},${hC(e.substr(1+2*ye,ye),ln)},${t?`var(--tw-${t}${r?","+r:""})`:r||1})`:e,Wy=(e,t,r)=>r&&typeof r=="string"?(ye=qy(r,t+"-opacity"))&&ye!==r?{[`--tw-${t}-opacity`]:"1",[e]:[r,ye]}:{[e]:r}:void 0,xP=e=>(ln=qy(e,"","0"))==ye?"transparent":ln,SP=(e,{theme:t},r,o,s,f)=>(ye={x:["right","left"],y:["bottom","top"]}[e[0]])&&(ln=`--tw-${r}-${e[0]}-reverse`)?e[1]=="reverse"?{[ln]:"1"}:{[ln]:"0",[xC([s,ye[0],f])]:(pu=t(o,At(e)))&&`calc(${pu} * var(${ln}))`,[xC([s,ye[1],f])]:pu&&[pu,`calc(${pu} * calc(1 - var(${ln})))`]}:void 0,UP=(e,t)=>t[0]&&{[e]:(An("wun",(t[0]||"")[3])?"space-":"")+t[0]},vC=e=>t=>An(["start","end"],t[0])?{[e]:"flex-"+t[0]}:UP(e,t),EP=e=>(t,{theme:r})=>{if(ye=r("grid"+Yo(e),t,""))return{["grid-"+e]:ye};switch(t[0]){case"span":return t[1]&&{["grid-"+e]:`span ${t[1]} / span ${t[1]}`};case"start":case"end":return(ye=r("grid"+Yo(e)+Yo(t[0]),At(t),Rt(At(t))))&&{[`grid-${e}-${t[0]}`]:ye}}},wP=(e,{theme:t},r)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return tr("borderStyle")(e);case"collapse":case"separate":return tr("borderCollapse")(e);case"opacity":return Eh(e,t,r)}return(ye=t(r+"Width",e,""))?{borderWidth:ye}:Wy("borderColor",r,t(r+"Color",e))},CC=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",mC=(e,t,r)=>e[0]&&(ye=t.theme(r,e[1]||e[0]))&&{[`--tw-${r}-x`]:e[0]!=="y"&&ye,[`--tw-${r}-y`]:e[0]!=="x"&&ye,transform:[`${r}${e[1]?e[0].toUpperCase():""}(${ye})`,CC()]},FP=e=>(t,r,o)=>o[1]?wC(r.theme(e,t),o[1],e):Wr(e)(t,r,o),fu=FP("padding"),du=FP("margin"),CP=(e,{theme:t},r)=>(ye={w:"width",h:"height"}[e[0]])&&{[ye=`${r}${Yo(ye)}`]:t(ye,At(e))},Aa=(e,{theme:t},r)=>{let o=r.split("-"),s=o[0]=="backdrop"?o[0]+"-":"";if(s||e.unshift(...o),e[0]=="filter"){let f=["blur","brightness","contrast","grayscale","hue-rotate","invert",s&&"opacity","saturate","sepia",!s&&"drop-shadow"].filter(Boolean);return e[1]=="none"?{[s+"filter"]:"none"}:f.reduce((d,p)=>(d["--tw-"+s+p]="var(--tw-empty,/*!*/ /*!*/)",d),{[s+"filter"]:f.map(d=>`var(--tw-${s}${d})`).join(" ")})}return ln=e.shift(),An(["hue","drop"],ln)&&(ln+=Yo(e.shift())),(ye=t(s?"backdrop"+Yo(ln):ln,e))&&{["--tw-"+s+ln]:(Array.isArray(ye)?ye:[ye]).map(f=>`${MC(ln)}(${f})`).join(" ")}},Mq={group:(e,{tag:t},r)=>t(Rt([r,...e])),hidden:ho(Go,"none"),inline:Go,block:Go,contents:Go,flow:Go,table:(e,t,r)=>An(["auto","fixed"],e[0])?{tableLayout:e[0]}:Go(e,t,r),flex(e,t,r){switch(e[0]){case"row":case"col":return{flexDirection:Rt(e[0]=="col"?["column",...At(e)]:e)};case"nowrap":case"wrap":return{flexWrap:Rt(e)};case"grow":case"shrink":return ye=t.theme("flex"+Yo(e[0]),At(e),e[1]||1),ye!=null&&{["flex-"+e[0]]:""+ye}}return(ye=t.theme("flex",e,""))?{flex:ye}:Go(e,t,r)},grid(e,t,r){switch(e[0]){case"cols":case"rows":return(ye=t.theme("gridTemplate"+Yo(Uy(e[0])),At(e),e.length==2&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:Rt(At(e))))&&{["gridTemplate-"+Uy(e[0])]:ye};case"flow":return e.length>1&&{gridAutoFlow:Rt(e[1]=="col"?["column",...At(e,2)]:At(e)," ")}}return Go(e,t,r)},auto:(e,{theme:t})=>An(["cols","rows"],e[0])&&(ye=t("gridAuto"+Yo(Uy(e[0])),At(e),Rt(At(e))))&&{["gridAuto-"+Uy(e[0])]:ye},static:bh,fixed:bh,absolute:bh,relative:bh,sticky:bh,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"horizontal",y:"vertical"}[e[0]]||e[0]||"both"}),box:e=>e[0]&&{boxSizing:e[0]+"-box"},appearance:tr(),cursor:Fy(),float:tr(),clear:tr(),decoration:tr("boxDecorationBreak"),isolate:{isolation:"isolate"},isolation:tr(),"mix-blend":tr("mixBlendMode"),top:By,right:By,bottom:By,left:By,inset:(e,{theme:t})=>(ye=Vy(e[0]))?wC(t("inset",At(e)),e[0]):(ye=t("inset",e))&&{top:ye,right:ye,bottom:ye,left:ye},underline:gf,"line-through":gf,"no-underline":ho(gf,"none"),"text-underline":ho(gf,"underline"),"text-no-underline":ho(gf,"none"),"text-line-through":ho(gf,"line-through"),uppercase:mf,lowercase:mf,capitalize:mf,"normal-case":ho(mf,"none"),"text-normal-case":ho(mf,"none"),italic:jy,"not-italic":ho(jy,"normal"),"font-italic":ho(jy,"italic"),"font-not-italic":ho(jy,"normal"),font:(e,t,r)=>(ye=t.theme("fontFamily",e,""))?{fontFamily:ye}:Wr("fontWeight")(e,t,r),items:e=>e[0]&&{alignItems:An(["start","end"],e[0])?"flex-"+e[0]:Rt(e)},"justify-self":tr(),"justify-items":tr(),justify:vC("justifyContent"),content:vC("alignContent"),self:vC("alignSelf"),place:e=>e[0]&&UP("place-"+e[0],At(e)),overscroll:e=>e[0]&&{["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]},col:EP("column"),row:EP("row"),duration:Wr("transitionDuration"),delay:Wr("transitionDelay"),tracking:Wr("letterSpacing"),leading:Wr("lineHeight"),z:Wr("zIndex"),opacity:Wr(),ease:Wr("transitionTimingFunction"),p:fu,py:fu,px:fu,pt:fu,pr:fu,pb:fu,pl:fu,m:du,my:du,mx:du,mt:du,mr:du,mb:du,ml:du,w:Wr("width"),h:Wr("height"),min:CP,max:CP,fill:Wr(),order:Wr(),origin:Fy("transformOrigin"," "),select:tr("userSelect"),"pointer-events":tr(),align:tr("verticalAlign"),whitespace:tr("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:us("ordinal"),"slashed-zero":us("slashed-zero"),"lining-nums":us("numeric-figure"),"oldstyle-nums":us("numeric-figure"),"proportional-nums":us("numeric-spacing"),"tabular-nums":us("numeric-spacing"),"diagonal-fractions":us("numeric-fraction"),"stacked-fractions":us("numeric-fraction"),overflow:(e,t,r)=>An(["ellipsis","clip"],e[0])?tr("textOverflow")(e):e[1]?{["overflow-"+e[0]]:e[1]}:tr()(e,t,r),transform:e=>e[0]=="none"?{transform:"none"}:{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1",transform:CC(e[0]=="gpu")},rotate:(e,{theme:t})=>(ye=t("rotate",e))&&{"--tw-rotate":ye,transform:[`rotate(${ye})`,CC()]},scale:mC,translate:mC,skew:mC,gap:(e,t,r)=>(ye={x:"column",y:"row"}[e[0]])?{[ye+"Gap"]:t.theme("gap",At(e))}:Wr("gap")(e,t,r),stroke:(e,t,r)=>(ye=t.theme("stroke",e,""))?{stroke:ye}:Wr("strokeWidth")(e,t,r),outline:(e,{theme:t})=>(ye=t("outline",e))&&{outline:ye[0],outlineOffset:ye[1]},"break-normal":{wordBreak:"normal",overflowWrap:"normal"},"break-words":{overflowWrap:"break-word"},"break-all":{wordBreak:"break-all"},text(e,{theme:t},r){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return mf([],ye,e[0]);case"opacity":return Eh(e,t,r)}let o=t("fontSize",e,"");return o?typeof o=="string"?{fontSize:o}:Ge({fontSize:o[0]},typeof o[1]=="string"?{lineHeight:o[1]}:o[1]):Wy("color","text",t("textColor",e))},bg(e,{theme:t},r){switch(e[0]){case"fixed":case"local":case"scroll":return tr("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return tr("backgroundPosition"," ")(e);case"no":return e[1]=="repeat"&&tr("backgroundRepeat")(e);case"repeat":return An("xy",e[1])?tr("backgroundRepeat")(e):{backgroundRepeat:e[1]||e[0]};case"opacity":return Eh(e,t,r,"background");case"clip":case"origin":return e[1]&&{["background-"+e[0]]:e[1]+(e[1]=="text"?"":"-box")};case"blend":return tr("background-blend-mode")(At(e));case"gradient":if(e[1]=="to"&&(ye=Vy(e[2])))return{backgroundImage:`linear-gradient(to ${Rt(ye," ")},var(--tw-gradient-stops))`}}return(ye=t("backgroundPosition",e,""))?{backgroundPosition:ye}:(ye=t("backgroundSize",e,""))?{backgroundSize:ye}:(ye=t("backgroundImage",e,""))?{backgroundImage:ye}:Wy("backgroundColor","bg",t("backgroundColor",e))},from:(e,{theme:t})=>(ye=t("gradientColorStops",e))&&{"--tw-gradient-from":ye,"--tw-gradient-stops":`var(--tw-gradient-from),var(--tw-gradient-to,${xP(ye)})`},via:(e,{theme:t})=>(ye=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from),${ye},var(--tw-gradient-to,${xP(ye)})`},to:(e,{theme:t})=>(ye=t("gradientColorStops",e))&&{"--tw-gradient-to":ye},border:(e,t,r)=>Vy(e[0])?wC(t.theme("borderWidth",At(e)),e[0],"border","width"):wP(e,t,r),divide:(e,t,r)=>(ye=SP(e,t,r,"divideWidth","border","width")||wP(e,t,r))&&{"&>:not([hidden])~:not([hidden])":ye},space:(e,t,r)=>(ye=SP(e,t,r,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":ye},placeholder:(e,{theme:t},r)=>(ye=e[0]=="opacity"?Eh(e,t,r):Wy("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":ye},shadow:(e,{theme:t})=>(ye=t("boxShadow",e))&&{":global":{"*":{"--tw-shadow":"0 0 transparent"}},"--tw-shadow":ye=="none"?"0 0 transparent":ye,boxShadow:[ye,"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)"]},animate:(e,{theme:t,tag:r})=>{if(ln=t("animation",e)){let o=ln.split(" ");return(ye=t("keyframes",o[0],pu={}))!==pu?(ln=r(o[0]))&&{animation:ln+" "+Rt(At(o)," "),["@keyframes "+ln]:ye}:{animation:ln}}},ring(e,{theme:t},r){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return Eh(e,t,r);case"offset":return(ye=t("ringOffsetWidth",At(e),""))?{"--tw-ring-offset-width":ye}:{"--tw-ring-offset-color":t("ringOffsetColor",At(e))}}return(ye=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${ye} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)",":global":{"*":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":t("ringOffsetColor","","#fff"),"--tw-ring-color":qy(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5")),"--tw-ring-offset-shadow":"0 0 transparent","--tw-ring-shadow":"0 0 transparent"}}}:{"--tw-ring-opacity":"1","--tw-ring-color":qy(t("ringColor",e),"ring-opacity")}},object:(e,t,r)=>An(["contain","cover","fill","none","scale-down"],Rt(e))?{objectFit:Rt(e)}:Fy("objectPosition"," ")(e,t,r),list:(e,t,r)=>Rt(e)=="item"?Go(e,t,r):An(["inside","outside"],Rt(e))?{listStylePosition:e[0]}:Fy("listStyleType")(e,t,r),rounded:(e,t,r)=>_q(t.theme("borderRadius",At(e),""),e[0],"border","radius")||Wr("borderRadius")(e,t,r),"transition-none":{transitionProperty:"none"},transition:(e,{theme:t})=>({transitionProperty:t("transitionProperty",e),transitionTimingFunction:t("transitionTimingFunction",""),transitionDuration:t("transitionDuration","")}),container:(e,{theme:t})=>{let{screens:r=t("screens"),center:o,padding:s}=t("container"),f=d=>(ye=s&&(typeof s=="string"?s:s[d]||s.DEFAULT))?{paddingRight:ye,paddingLeft:ye}:{};return Object.keys(r).reduce((d,p)=>((ln=r[p])&&typeof ln=="string"&&(d[Yy(ln)]={"&":Ge({"max-width":ln},f(p))}),d),Ge(Ge({width:"100%"},o?{marginRight:"auto",marginLeft:"auto"}:{}),f("xs")))},filter:Aa,blur:Aa,brightness:Aa,contrast:Aa,grayscale:Aa,"hue-rotate":Aa,invert:Aa,saturate:Aa,sepia:Aa,"drop-shadow":Aa,backdrop:Aa},Tq=e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily.sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor.DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:"1",color:e("placeholderColor.DEFAULT",e("colors.gray.400","#a1a1aa"))},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}),kq={dark:"@media (prefers-color-scheme:dark)",sticky:"@supports ((position: -webkit-sticky) or (position:sticky))","motion-reduce":"@media (prefers-reduced-motion:reduce)","motion-safe":"@media (prefers-reduced-motion:no-preference)",first:"&:first-child",last:"&:last-child",even:"&:nth-child(2n)",odd:"&:nth-child(odd)",children:"&>*",siblings:"&~*",sibling:"&+*",override:"&&"},_P="__twind",Rq=e=>{let t=self[_P];return t||(t=document.head.appendChild(document.createElement("style")),t.id=_P,e&&(t.nonce=e),t.appendChild(document.createTextNode(""))),t},jP=({nonce:e,target:t=Rq(e).sheet}={})=>{let r=t.cssRules.length;return{target:t,insert:(o,s)=>t.insertRule(o,r+s)}},BP=()=>({target:null,insert:LP}),Zy=e=>({unknown(t,r=[],o,s){o||this.report({id:"UNKNOWN_THEME_VALUE",key:t+"."+Rt(r)},s)},report(t){var{id:r}=t,o=pq(t,["id"]);return e(`[${r}] ${JSON.stringify(o)}`)}}),_C=Zy(e=>console.warn(e)),HP=Zy(e=>{throw new Error(e)}),VP=Zy(LP),gC=RP(vP()),vo=(e,t,r)=>`${e}:${t}${r?" !important":""}`,WP=(e,t,r)=>{let o="",s=(0,gC.cssPropertyAlias)(e);s&&(o+=`${vo(s,t,r)};`);let f=(0,gC.cssPropertyPrefixFlags)(e);return f&1&&(o+=`-webkit-${vo(e,t,r)};`),f&2&&(o+=`-moz-${vo(e,t,r)};`),f&4&&(o+=`-ms-${vo(e,t,r)};`),f=(0,gC.cssValuePrefixFlags)(e,t),f&1&&(o+=`${vo(e,`-webkit-${t}`,r)};`),f&2&&(o+=`${vo(e,`-moz-${t}`,r)};`),f&4&&(o+=`${vo(e,`-ms-${t}`,r)};`),o+=vo(e,t,r),o},xh=(e,t)=>{let r={};do for(let o=1;o<e;o++)r[`${o}/${e}`]=Number((o/e*100).toFixed(6))+"%";while(++e<=t);return r},cs=(e,t,r=0)=>{let o={};for(;r<=e;r=r*2||1)o[r]=r+t;return o},Ei=(e,t="",r=1,o=0,s=1,f={})=>{for(;o<=e;o+=s)f[o]=o/r+t;return f},Mn=e=>t=>t(e),Lq=(e,{theme:t})=>t(...e),Oq=(...e)=>RC(Lq,e),Dq={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:Ge(Ge(Ge(Ge(Ge({px:"1px",0:"0px"},Ei(4,"rem",4,.5,.5)),Ei(12,"rem",4,5)),{14:"3.5rem"}),Ei(64,"rem",4,16,4)),{72:"18rem",80:"20rem",96:"24rem"}),durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},backdropBlur:Mn("blur"),backdropBrightness:Mn("brightness"),backdropContrast:Mn("contrast"),backdropGrayscale:Mn("grayscale"),backdropHueRotate:Mn("hueRotate"),backdropInvert:Mn("invert"),backdropOpacity:Mn("opacity"),backdropSaturate:Mn("saturate"),backdropSepia:Mn("sepia"),backgroundColor:Mn("colors"),backgroundImage:{none:"none"},backgroundOpacity:Mn("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:Ge(Ge(Ge({},Ei(200,"",100,0,50)),Ei(110,"",100,90,5)),{75:"0.75",125:"1.25"}),borderColor:e=>Ge(Ge({},e("colors")),{DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:Mn("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderWidth:Ge({DEFAULT:"1px"},cs(8,"px")),boxShadow:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",DEFAULT:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",none:"none"},contrast:Ge(Ge({},Ei(200,"",100,0,50)),{75:"0.75",125:"1.25"}),divideColor:Mn("borderColor"),divideOpacity:Mn("borderOpacity"),divideWidth:Mn("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0, 0, 0, 0.1)","0 1px 1px rgba(0, 0, 0, 0.06)"],md:["0 4px 3px rgba(0, 0, 0, 0.07)","0 2px 2px rgba(0, 0, 0, 0.06)"],lg:["0 10px 8px rgba(0, 0, 0, 0.04)","0 4px 3px rgba(0, 0, 0, 0.1)"],xl:["0 20px 13px rgba(0, 0, 0, 0.03)","0 8px 5px rgba(0, 0, 0, 0.08)"],"2xl":"0 25px 25px rgba(0, 0, 0, 0.15)",none:"0 0 #0000"},fill:{current:"currentColor"},grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gridTemplateColumns:{},gridTemplateRows:{},gridAutoColumns:{min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gap:Mn("spacing"),gradientColorStops:Mn("colors"),height:e=>Ge(Ge(Ge({auto:"auto"},e("spacing")),xh(2,6)),{full:"100%",screen:"100vh"}),inset:e=>Ge(Ge(Ge({auto:"auto"},e("spacing")),xh(2,4)),{full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:Ge({none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ei(10,"rem",4,3)),margin:e=>Ge({auto:"auto"},e("spacing")),maxHeight:e=>Ge(Ge({},e("spacing")),{full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>Ge({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",prose:"65ch"},t(e("screens"))),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:Ge(Ge({},Ei(100,"",100,0,10)),{5:"0.05",25:"0.25",75:"0.75",95:"0.95"}),order:Ge({first:"-9999",last:"9999",none:"0"},Ei(12,"",1,1)),outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:Mn("spacing"),placeholderColor:Mn("colors"),placeholderOpacity:Mn("opacity"),ringColor:e=>Ge({DEFAULT:e("colors.blue.500","#3b82f6")},e("colors")),ringOffsetColor:Mn("colors"),ringOffsetWidth:cs(8,"px"),ringOpacity:e=>Ge({DEFAULT:"0.5"},e("opacity")),ringWidth:Ge({DEFAULT:"3px"},cs(8,"px")),rotate:Ge(Ge(Ge({},cs(2,"deg")),cs(12,"deg",3)),cs(180,"deg",45)),saturate:Ei(200,"",100,0,50),scale:Ge(Ge(Ge({},Ei(150,"",100,0,50)),Ei(110,"",100,90,5)),{75:"0.75",125:"1.25"}),sepia:{0:"0",DEFAULT:"100%"},skew:Ge(Ge({},cs(2,"deg")),cs(12,"deg",3)),space:Mn("spacing"),stroke:{current:"currentColor"},strokeWidth:Ei(2),textColor:Mn("colors"),textOpacity:Mn("opacity"),transitionDuration:e=>Ge({DEFAULT:"150ms"},e("durations")),transitionDelay:Mn("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:e=>Ge(Ge(Ge({},e("spacing")),xh(2,4)),{full:"100%"}),width:e=>Ge(Ge(Ge(Ge({auto:"auto"},e("spacing")),xh(2,6)),xh(12,12)),{screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:Ge({auto:"auto"},Ei(50,"",1,0,10))},$P=(e,t={},r=[])=>(Object.keys(e).forEach(o=>{let s=e[o];o=="DEFAULT"&&(t[Rt(r)]=s,t[Rt(r,".")]=s);let f=[...r,o];t[Rt(f)]=s,t[Rt(f,".")]=s,s&&typeof s=="object"&&$P(s,t,f)},t),t),Pq={negative:()=>({}),breakpoints:e=>Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,r)=>(t["screen-"+r]=e[r],t),{})},Aq=(e,t)=>(t=t[0]=="["&&t.slice(-1)=="]"&&t.slice(1,-1))&&An(e,"olor")==/^(#|(hsl|rgb)a?\(|[a-z]+$)/.test(t)&&(An(t,"calc(")?t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "):t),Nq=e=>{let t=new Map,r=Ge(Ge({},Dq),e),o=(f,d)=>{let p=f&&f[d],m=typeof p=="function"?p(s,Pq):p;return m&&d=="colors"?$P(m):m},s=(f,d,p)=>{let m=f.split(".");f=m[0],m.length>1&&(p=d,d=Rt(At(m),"."));let y=t.get(f);if(y||(t.set(f,y=Ge({},o(r,f))),Object.assign(y,o(r.extend,f))),d!=null){d=(Array.isArray(d)?Rt(d):d)||"DEFAULT";let E=Aq(f,d)||y[d];return E==null?p:Array.isArray(E)&&!An(["fontSize","outline","dropShadow"],f)?Rt(E,","):E}return y};return s},zq=(e,t)=>(r,o)=>{if(typeof r.d=="function")return r.d(t);let s=r.d.split(/-(?![^[]*])/g);if(!o&&s[0]=="tw"&&r.$==r.d)return r.$;for(let f=s.length;f;f--){let d=Rt(s.slice(0,f)),p=e[d];if(p)return typeof p=="function"?p(At(s,f),t,d):typeof p=="string"?t[o?"css":"tw"](p):p}},Sh,qP=/^:(group(?:(?!-focus).+?)*)-(.+)$/,GP=/^(:not)-(.+)/,YP=e=>e[1]=="["?At(e):e,Iq=(e,t,{theme:r,tag:o})=>{let s=(f,d)=>(Sh=r("screens",At(d),""))?{[Yy(Sh)]:f}:d==":dark"&&e=="class"?{".dark &":f}:(Sh=qP.exec(d))?{[`.${PP(o(Sh[1]))}:${Sh[2]} &`]:f}:{[t[At(d)]||"&"+d.replace(GP,(p,m,y)=>m+"("+YP(":"+y)+")")]:f};return(f,d)=>d.v.reduceRight(s,f)},ni,ZP=e=>(((ni=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+ni[1]/(ni[2]?15:1)/10:0)&31)<<22,QP=e=>{ni=0;for(let t=e.length;t--;)ni+=An("-:,",e[t]);return ni},KP=e=>(QP(e)&15)<<18,Uq=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],Fq=e=>1<<(~(ni=Uq.indexOf(e.replace(qP,":$2").slice(3,8)))?ni:17),jq=(e,t)=>(r,o)=>r|((ni=e("screens",At(o),""))?1<<27|ZP(Yy(ni)):o==":dark"?1<<30:(ni=t[o]||o.replace(GP,":$2"))[0]=="@"?KP(ni):Fq(o)),Bq=e=>e[0]=="-"?0:QP(e)+((ni=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.exec(e))?+!!ni[1]||-!!ni[2]:0)+1,yC=(e,t)=>t+"{"+e+"}",Hq=(e,t,r)=>{let{theme:o,tag:s}=r,f=(w,k)=>"--"+s(k),d=w=>`${w}`.replace(/--(tw-[\w-]+)\b/g,f),p=(w,k,O)=>(w=d(w),Array.isArray(k)?Rt(k.filter(Boolean).map(A=>e(w,d(A),O)),";"):e(w,d(k),O)),m,y=(w,k,O,A,W)=>{if(Array.isArray(A)){A.forEach(T=>T&&y(w,k,O,T,W));return}let P="",R=0,D=0;A["@apply"]&&(A=TC(hu(zP(A["@apply"]),r),Ge(Ge({},A),{"@apply":void 0}),r)),Object.keys(A).forEach(T=>{let M=hu(A[T],r);if(DP(T,M)){if(M!==""&&T.length>1){let U=MC(T);D+=1,R=Math.max(R,Bq(U)),P=(P&&P+";")+p(U,M,W)}}else if(M)if(T==":global"&&(T="@global"),T[0]=="@")if(T[1]=="g")y([],"",0,M,W);else if(T[1]=="f")y([],T,0,M,W);else if(T[1]=="k"){let U=m.length;y([],"",0,M,W);let Y=m.splice(U,m.length-U);m.push({r:yC(Rt(Y.map(F=>F.r),""),T),p:Y.reduce((F,ne)=>F+ne.p,0)})}else T[1]=="i"?(Array.isArray(M)?M:[M]).forEach(U=>U&&m.push({p:0,r:`${T} ${U};`})):(T[2]=="c"&&(T=Yy(r.theme("screens",At(T,8).trim()))),y([...w,T],k,O|ZP(T)|KP(T),M,W));else y(w,k?Rt(k.split(/,(?![^[]*])/g).map(U=>Rt(T.split(/,(?![^[]*])/g).map(Y=>An(Y,"&")?Y.replace(/&/g,U):(U&&U+" ")+Y),",")),","):T,O,M,W)}),D&&m.push({r:w.reduceRight(yC,yC(P,k)),p:O*(1<<8)+((Math.max(0,15-D)&15)<<4|(R||15)&15)})},E=jq(o,t);return(w,k,O,A=0)=>(A<<=28,m=[],y([],k?"."+PP(k):"",O?O.v.reduceRight(E,A):A,w,O&&O.i),m)},Vq=(e,t,r,o)=>{let s;r((d=[])=>s=d);let f;return r((d=new Set)=>f=d),({r:d,p})=>{if(!f.has(d)){f.add(d);let m=gq(s,p);try{e.insert(d,m),s.splice(m,0,p)}catch(y){/:-[mwo]/.test(d)||t.report({id:"INJECT_CSS_ERROR",css:d,error:y},o)}}}},bC=(e,t,r,o=t)=>e===!1?r:e===!0?o:e||t,Wq=e=>(typeof e=="string"?{t:HP,a:_C,i:VP}[e[1]]:e)||_C,$q=(e,t)=>e+(t[1]==":"?At(t,2)+":":At(t))+":",MP=(e,t=e.d)=>typeof t=="function"?"":e.v.reduce($q,"")+(e.i?"!":"")+(e.n?"-":"")+t,qq={_:{value:"",writable:!0}},Gq=(e={})=>{let t=Nq(e.theme),r=Wq(e.mode),o=bC(e.hash,!1,!1,Hy),s=e.important,f={v:[]},d=0,p=[],m={tw:(...F)=>U(F),theme:(F,ne,ue)=>{var Q;let B=(Q=t(F,ne,ue))!=null?Q:r.unknown(F,ne==null||Array.isArray(ne)?ne:ne.split("."),ue!=null,m);return f.n&&B&&An("rg",(typeof B)[5])?`calc(${B} * -1)`:B},tag:F=>o?o(F):F,css:F=>{d++;let ne=p.length;try{(typeof F=="string"?SC([F]):F).forEach(M);let ue=Object.create(null,qq);for(let Q=ne;Q<p.length;Q++){let B=p[Q];if(B)switch(typeof B){case"object":TC(ue,B,m);break;case"string":ue._+=(ue._&&" ")+B}}return ue}finally{p.length=ne,d--}}},y=zq(Ge(Ge({},Mq),e.plugins),m),E=F=>{let ne=f;f=F;try{return hu(y(F),m)}finally{f=ne}},w=Ge(Ge({},kq),e.variants),k=Iq(e.darkMode||"media",w,m),O=Hq(bC(e.prefix,WP,vo),w,m),A=e.sheet||(typeof window>"u"?BP():jP(e)),{init:W=F=>F()}=A,P=Vq(A,r,W,m),R;W((F=new Map)=>R=F);let D=new WeakMap,T=(F,ne)=>F=="_"?void 0:typeof ne=="function"?JSON.stringify(hu(ne,m),T):ne,M=F=>{!d&&f.v.length&&(F=Ge(Ge({},F),{v:[...f.v,...F.v],$:""})),F.$||(F.$=MP(F,D.get(F.d)));let ne=d?null:R.get(F.$);if(ne==null){let ue=E(F);if(F.$||(F.$=Hy(JSON.stringify(ue,T)),D.set(F.d,F.$),F.$=MP(F,F.$)),ue&&typeof ue=="object")if(F.v=F.v.map(YP),s&&(F.i=s),ue=k(ue,F),d)p.push(ue);else{let Q=typeof F.d=="function"?typeof ue._=="string"?1:3:2;ne=o||typeof F.d=="function"?(o||Hy)(Q+F.$):F.$,O(ue,ne,F,Q).forEach(P),ue._&&(ne+=" "+ue._)}else typeof ue=="string"?ne=ue:(ne=F.$,r.report({id:"UNKNOWN_DIRECTIVE",rule:ne},m)),d&&typeof F.d!="function"&&p.push(ne);d||(R.set(F.$,ne),OP(R,3e4))}return ne},U=F=>Rt(SC(F).map(M).filter(Boolean)," "),Y=bC(e.preflight,mq,!1);if(Y){let F=Tq(t),ne=O(typeof Y=="function"?hu(Y(F,m),m)||F:Ge(Ge({},F),Y));W((ue=(ne.forEach(P),!0))=>ue)}return{init:()=>r.report({id:"LATE_SETUP_CALL"},m),process:U}},JP=e=>{let t=f=>(r(),t(f)),r=f=>{({process:t,init:r}=Gq(f))};e&&r(e);let o;return{tw:Object.defineProperties((...f)=>t(f),{theme:{get:(f=>()=>(o||t([d=>(o=d,"")]),o[f]))("theme")}}),setup:f=>r(f)}},{tw:Yq,setup:Zq}=JP()});var XP={};Ra(XP,{default:()=>Kq});var Qq,Kq,e4=tt(()=>{G();Qq={schemeGroups:{sequential:["BuGn","BuPu","GnBu","OrRd","PuBu","PuBuGn","PuRd","RdPu","YlGn","YlGnBu","YlOrBr","YlOrRd"],singlehue:["Blues","Greens","Greys","Oranges","Purples","Reds"],diverging:["BrBG","PiYG","PRGn","PuOr","RdBu","RdGy","RdYlBu","RdYlGn","Spectral"],qualitative:["Accent","Dark2","Paired","Pastel1","Pastel2","Set1","Set2","Set3"]},YlGn:{3:["#f7fcb9","#addd8e","#31a354"],4:["#ffffcc","#c2e699","#78c679","#238443"],5:["#ffffcc","#c2e699","#78c679","#31a354","#006837"],6:["#ffffcc","#d9f0a3","#addd8e","#78c679","#31a354","#006837"],7:["#ffffcc","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],8:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],9:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"]},YlGnBu:{3:["#edf8b1","#7fcdbb","#2c7fb8"],4:["#ffffcc","#a1dab4","#41b6c4","#225ea8"],5:["#ffffcc","#a1dab4","#41b6c4","#2c7fb8","#253494"],6:["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#2c7fb8","#253494"],7:["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],8:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],9:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"]},GnBu:{3:["#e0f3db","#a8ddb5","#43a2ca"],4:["#f0f9e8","#bae4bc","#7bccc4","#2b8cbe"],5:["#f0f9e8","#bae4bc","#7bccc4","#43a2ca","#0868ac"],6:["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#43a2ca","#0868ac"],7:["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],8:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],9:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"]},BuGn:{3:["#e5f5f9","#99d8c9","#2ca25f"],4:["#edf8fb","#b2e2e2","#66c2a4","#238b45"],5:["#edf8fb","#b2e2e2","#66c2a4","#2ca25f","#006d2c"],6:["#edf8fb","#ccece6","#99d8c9","#66c2a4","#2ca25f","#006d2c"],7:["#edf8fb","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],8:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],9:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"]},PuBuGn:{3:["#ece2f0","#a6bddb","#1c9099"],4:["#f6eff7","#bdc9e1","#67a9cf","#02818a"],5:["#f6eff7","#bdc9e1","#67a9cf","#1c9099","#016c59"],6:["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#1c9099","#016c59"],7:["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],8:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],9:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"]},PuBu:{3:["#ece7f2","#a6bddb","#2b8cbe"],4:["#f1eef6","#bdc9e1","#74a9cf","#0570b0"],5:["#f1eef6","#bdc9e1","#74a9cf","#2b8cbe","#045a8d"],6:["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#2b8cbe","#045a8d"],7:["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],8:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],9:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"]},BuPu:{3:["#e0ecf4","#9ebcda","#8856a7"],4:["#edf8fb","#b3cde3","#8c96c6","#88419d"],5:["#edf8fb","#b3cde3","#8c96c6","#8856a7","#810f7c"],6:["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8856a7","#810f7c"],7:["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],8:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],9:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"]},RdPu:{3:["#fde0dd","#fa9fb5","#c51b8a"],4:["#feebe2","#fbb4b9","#f768a1","#ae017e"],5:["#feebe2","#fbb4b9","#f768a1","#c51b8a","#7a0177"],6:["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#c51b8a","#7a0177"],7:["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],8:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],9:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"]},PuRd:{3:["#e7e1ef","#c994c7","#dd1c77"],4:["#f1eef6","#d7b5d8","#df65b0","#ce1256"],5:["#f1eef6","#d7b5d8","#df65b0","#dd1c77","#980043"],6:["#f1eef6","#d4b9da","#c994c7","#df65b0","#dd1c77","#980043"],7:["#f1eef6","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],8:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],9:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"]},OrRd:{3:["#fee8c8","#fdbb84","#e34a33"],4:["#fef0d9","#fdcc8a","#fc8d59","#d7301f"],5:["#fef0d9","#fdcc8a","#fc8d59","#e34a33","#b30000"],6:["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#e34a33","#b30000"],7:["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],8:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],9:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"]},YlOrRd:{3:["#ffeda0","#feb24c","#f03b20"],4:["#ffffb2","#fecc5c","#fd8d3c","#e31a1c"],5:["#ffffb2","#fecc5c","#fd8d3c","#f03b20","#bd0026"],6:["#ffffb2","#fed976","#feb24c","#fd8d3c","#f03b20","#bd0026"],7:["#ffffb2","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],8:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],9:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"]},YlOrBr:{3:["#fff7bc","#fec44f","#d95f0e"],4:["#ffffd4","#fed98e","#fe9929","#cc4c02"],5:["#ffffd4","#fed98e","#fe9929","#d95f0e","#993404"],6:["#ffffd4","#fee391","#fec44f","#fe9929","#d95f0e","#993404"],7:["#ffffd4","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],8:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],9:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"]},Purples:{3:["#efedf5","#bcbddc","#756bb1"],4:["#f2f0f7","#cbc9e2","#9e9ac8","#6a51a3"],5:["#f2f0f7","#cbc9e2","#9e9ac8","#756bb1","#54278f"],6:["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#756bb1","#54278f"],7:["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],8:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],9:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"]},Blues:{3:["#deebf7","#9ecae1","#3182bd"],4:["#eff3ff","#bdd7e7","#6baed6","#2171b5"],5:["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"],6:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#3182bd","#08519c"],7:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],8:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],9:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"]},Greens:{3:["#e5f5e0","#a1d99b","#31a354"],4:["#edf8e9","#bae4b3","#74c476","#238b45"],5:["#edf8e9","#bae4b3","#74c476","#31a354","#006d2c"],6:["#edf8e9","#c7e9c0","#a1d99b","#74c476","#31a354","#006d2c"],7:["#edf8e9","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],8:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],9:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"]},Oranges:{3:["#fee6ce","#fdae6b","#e6550d"],4:["#feedde","#fdbe85","#fd8d3c","#d94701"],5:["#feedde","#fdbe85","#fd8d3c","#e6550d","#a63603"],6:["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#e6550d","#a63603"],7:["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],8:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],9:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"]},Reds:{3:["#fee0d2","#fc9272","#de2d26"],4:["#fee5d9","#fcae91","#fb6a4a","#cb181d"],5:["#fee5d9","#fcae91","#fb6a4a","#de2d26","#a50f15"],6:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#de2d26","#a50f15"],7:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],8:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],9:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]},Greys:{3:["#f0f0f0","#bdbdbd","#636363"],4:["#f7f7f7","#cccccc","#969696","#525252"],5:["#f7f7f7","#cccccc","#969696","#636363","#252525"],6:["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#636363","#252525"],7:["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],8:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],9:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"]},PuOr:{3:["#f1a340","#f7f7f7","#998ec3"],4:["#e66101","#fdb863","#b2abd2","#5e3c99"],5:["#e66101","#fdb863","#f7f7f7","#b2abd2","#5e3c99"],6:["#b35806","#f1a340","#fee0b6","#d8daeb","#998ec3","#542788"],7:["#b35806","#f1a340","#fee0b6","#f7f7f7","#d8daeb","#998ec3","#542788"],8:["#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788"],9:["#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788"],10:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],11:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"]},BrBG:{3:["#d8b365","#f5f5f5","#5ab4ac"],4:["#a6611a","#dfc27d","#80cdc1","#018571"],5:["#a6611a","#dfc27d","#f5f5f5","#80cdc1","#018571"],6:["#8c510a","#d8b365","#f6e8c3","#c7eae5","#5ab4ac","#01665e"],7:["#8c510a","#d8b365","#f6e8c3","#f5f5f5","#c7eae5","#5ab4ac","#01665e"],8:["#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e"],9:["#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e"],10:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],11:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]},PRGn:{3:["#af8dc3","#f7f7f7","#7fbf7b"],4:["#7b3294","#c2a5cf","#a6dba0","#008837"],5:["#7b3294","#c2a5cf","#f7f7f7","#a6dba0","#008837"],6:["#762a83","#af8dc3","#e7d4e8","#d9f0d3","#7fbf7b","#1b7837"],7:["#762a83","#af8dc3","#e7d4e8","#f7f7f7","#d9f0d3","#7fbf7b","#1b7837"],8:["#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837"],9:["#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837"],10:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],11:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]},PiYG:{3:["#e9a3c9","#f7f7f7","#a1d76a"],4:["#d01c8b","#f1b6da","#b8e186","#4dac26"],5:["#d01c8b","#f1b6da","#f7f7f7","#b8e186","#4dac26"],6:["#c51b7d","#e9a3c9","#fde0ef","#e6f5d0","#a1d76a","#4d9221"],7:["#c51b7d","#e9a3c9","#fde0ef","#f7f7f7","#e6f5d0","#a1d76a","#4d9221"],8:["#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221"],9:["#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221"],10:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],11:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]},RdBu:{3:["#ef8a62","#f7f7f7","#67a9cf"],4:["#ca0020","#f4a582","#92c5de","#0571b0"],5:["#ca0020","#f4a582","#f7f7f7","#92c5de","#0571b0"],6:["#b2182b","#ef8a62","#fddbc7","#d1e5f0","#67a9cf","#2166ac"],7:["#b2182b","#ef8a62","#fddbc7","#f7f7f7","#d1e5f0","#67a9cf","#2166ac"],8:["#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac"],9:["#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac"],10:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],11:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]},RdGy:{3:["#ef8a62","#ffffff","#999999"],4:["#ca0020","#f4a582","#bababa","#404040"],5:["#ca0020","#f4a582","#ffffff","#bababa","#404040"],6:["#b2182b","#ef8a62","#fddbc7","#e0e0e0","#999999","#4d4d4d"],7:["#b2182b","#ef8a62","#fddbc7","#ffffff","#e0e0e0","#999999","#4d4d4d"],8:["#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d"],9:["#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d"],10:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],11:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"]},RdYlBu:{3:["#fc8d59","#ffffbf","#91bfdb"],4:["#d7191c","#fdae61","#abd9e9","#2c7bb6"],5:["#d7191c","#fdae61","#ffffbf","#abd9e9","#2c7bb6"],6:["#d73027","#fc8d59","#fee090","#e0f3f8","#91bfdb","#4575b4"],7:["#d73027","#fc8d59","#fee090","#ffffbf","#e0f3f8","#91bfdb","#4575b4"],8:["#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4"],9:["#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4"],10:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],11:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"]},Spectral:{3:["#fc8d59","#ffffbf","#99d594"],4:["#d7191c","#fdae61","#abdda4","#2b83ba"],5:["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],6:["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],7:["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],8:["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],9:["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],10:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],11:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]},RdYlGn:{3:["#fc8d59","#ffffbf","#91cf60"],4:["#d7191c","#fdae61","#a6d96a","#1a9641"],5:["#d7191c","#fdae61","#ffffbf","#a6d96a","#1a9641"],6:["#d73027","#fc8d59","#fee08b","#d9ef8b","#91cf60","#1a9850"],7:["#d73027","#fc8d59","#fee08b","#ffffbf","#d9ef8b","#91cf60","#1a9850"],8:["#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850"],9:["#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850"],10:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],11:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"]},Accent:{3:["#7fc97f","#beaed4","#fdc086"],4:["#7fc97f","#beaed4","#fdc086","#ffff99"],5:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0"],6:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f"],7:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17"],8:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"]},Dark2:{3:["#1b9e77","#d95f02","#7570b3"],4:["#1b9e77","#d95f02","#7570b3","#e7298a"],5:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e"],6:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02"],7:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d"],8:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"]},Paired:{3:["#a6cee3","#1f78b4","#b2df8a"],4:["#a6cee3","#1f78b4","#b2df8a","#33a02c"],5:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99"],6:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c"],7:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f"],8:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00"],9:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6"],10:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a"],11:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99"],12:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"]},Pastel1:{3:["#fbb4ae","#b3cde3","#ccebc5"],4:["#fbb4ae","#b3cde3","#ccebc5","#decbe4"],5:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6"],6:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc"],7:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd"],8:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec"],9:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Pastel2:{3:["#b3e2cd","#fdcdac","#cbd5e8"],4:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4"],5:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9"],6:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae"],7:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc"],8:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"]},Set1:{3:["#e41a1c","#377eb8","#4daf4a"],4:["#e41a1c","#377eb8","#4daf4a","#984ea3"],5:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00"],6:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33"],7:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628"],8:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf"],9:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"]},Set2:{3:["#66c2a5","#fc8d62","#8da0cb"],4:["#66c2a5","#fc8d62","#8da0cb","#e78ac3"],5:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854"],6:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f"],7:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494"],8:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"]},Set3:{3:["#8dd3c7","#ffffb3","#bebada"],4:["#8dd3c7","#ffffb3","#bebada","#fb8072"],5:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3"],6:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462"],7:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69"],8:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5"],9:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9"],10:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd"],11:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5"],12:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"]}},Kq=Qq});var t4={};Ra(t4,{default:()=>Jq});var Jq,n4=tt(()=>{G();Jq=function e(t){function r(s,f,d){var p,m={};if(Array.isArray(s))return s.concat(f);for(p in s)m[d?p.toLowerCase():p]=s[p];for(p in f){var y=d?p.toLowerCase():p,E=f[p];m[y]=y in m&&typeof E=="object"?r(m[y],E,y==="headers"):E}return m}function o(s,f,d,p){typeof s!="string"&&(s=(f=s).url);var m={config:f},y=r(t,f),E={},w=p||y.data;(y.transformRequest||[]).map(function(A){w=A(w,y.headers)||w}),w&&typeof w=="object"&&typeof w.append!="function"&&(w=JSON.stringify(w),E["content-type"]="application/json");var k=typeof document<"u"&&document.cookie.match(RegExp("(^|; )"+y.xsrfCookieName+"=([^;]*)"));if(k&&(E[y.xsrfHeaderName]=k[2]),y.auth&&(E.authorization=y.auth),y.baseURL&&(s=s.replace(/^(?!.*\/\/)\/?(.*)$/,y.baseURL+"/$1")),y.params){var O=~s.indexOf("?")?"&":"?";s+=O+(y.paramsSerializer?y.paramsSerializer(y.params):new URLSearchParams(y.params))}return(y.fetch||fetch)(s,{method:d||y.method,body:w,headers:r(y.headers,E,!0),credentials:y.withCredentials?"include":"same-origin"}).then(function(A){for(var W in A)typeof A[W]!="function"&&(m[W]=A[W]);var P=y.validateStatus?y.validateStatus(A.status):A.ok;return y.responseType=="stream"?(m.data=A.body,m):A[y.responseType||"text"]().then(function(R){m.data=R,m.data=JSON.parse(R)}).catch(Object).then(function(){return P?m:Promise.reject(m)})})}return t=t||{},o.request=o,o.get=function(s,f){return o(s,f,"get")},o.delete=function(s,f){return o(s,f,"delete")},o.head=function(s,f){return o(s,f,"head")},o.options=function(s,f){return o(s,f,"options")},o.post=function(s,f,d){return o(s,d,"post",f)},o.put=function(s,f,d){return o(s,d,"put",f)},o.patch=function(s,f,d){return o(s,d,"patch",f)},o.all=Promise.all.bind(Promise),o.spread=function(s){return function(f){return s.apply(this,f)}},o.CancelToken=typeof AbortController=="function"?AbortController:Object,o.defaults=t,o.create=e,o}()});var i4=Mt((oee,r4)=>{G();(function(){function e(T,M){M=M||[];for(var U=M.length,Y=0;Y<T.length;Y++)Array.isArray(T[Y])&&Array.isArray(T[Y][0])?(e(T[Y],M),U=M.length):M[U++]=T[Y];return Array.isArray(M[0])?M:[M]}function t(T){return Math.max.apply(null,T.map(function(M){return M[1]}))}function r(T){return Math.max.apply(null,T.map(function(M){return M[0]}))}function o(T){return Math.min.apply(null,T.map(function(M){return M[1]}))}function s(T){return Math.min.apply(null,T.map(function(M){return M[0]}))}function f(T){var M={minLng:s(T),minLat:o(T),maxLng:r(T),maxLat:t(T)};return{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[M.minLng,M.minLat],[M.minLng,M.maxLat],[M.maxLng,M.maxLat],[M.maxLng,M.minLat],[M.minLng,M.minLat]]]}}}function d(T){return[s(T),o(T),r(T),t(T)]}function p(T){for(var M={x:0,y:0},U=0,Y=0,F=0,ne=0,ue=0,Q=0,B=0;B<T.length-1;B++)Y=T[B][0],F=T[B][1],ne=T[B+1][0],ue=T[B+1][1],Q=Y*ue-ne*F,U+=Q,M.x+=(Y+ne)*Q,M.y+=(F+ue)*Q;return Y=T[T.length-1][0],F=T[T.length-1][1],ne=T[0][0],ue=T[0][1],Q=Y*ue-ne*F,U+=Q,M.x+=(Y+ne)*Q,M.y+=(F+ue)*Q,U=U*.5,M.x=M.x/(6*U),M.y=M.y/(6*U),[M.x,M.y]}function m(T){return e(T.geometry.coordinates)}function y(T){return e(T.features.map(m))}function E(T){return e(T.geometries.map(w))}function w(T){if(!T)return[];switch(T.type){case"Feature":return m(T);case"GeometryCollection":return E(T);case"FeatureCollection":return y(T);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiPolygon":case"MultiLineString":return e(T.coordinates);default:return[]}}function k(T){return f(w(T))}function O(T){return d(w(T))}function A(T){return p(w(T))}function W(T){return s(w(T))}function P(T){return r(w(T))}function R(T){return o(w(T))}function D(T){return t(w(T))}r4.exports={envelope:k,extent:O,centroid:A,xMin:W,xMax:P,yMin:R,yMax:D}})()});var a4=Mt((lee,Qy)=>{G();var Xq=function(){var e={km:6371,mile:3960,meter:6371e3,nmi:3440},t=function(o){return o*Math.PI/180},r=function(o,s){switch(o){case"[lat,lon]":return{latitude:s[0],longitude:s[1]};case"[lon,lat]":return{latitude:s[1],longitude:s[0]};case"{lon,lat}":return{latitude:s.lat,longitude:s.lon};case"{lat,lng}":return{latitude:s.lat,longitude:s.lng};case"geojson":return{latitude:s.geometry.coordinates[1],longitude:s.geometry.coordinates[0]};default:return s}};return function(s,f,d){d=d||{};var p=d.unit in e?e[d.unit]:e.km,m=r(d.format,s),y=r(d.format,f),E=t(y.latitude-m.latitude),w=t(y.longitude-m.longitude),k=t(m.latitude),O=t(y.latitude),A=Math.sin(E/2)*Math.sin(E/2)+Math.sin(w/2)*Math.sin(w/2)*Math.cos(k)*Math.cos(O),W=2*Math.atan2(Math.sqrt(A),Math.sqrt(1-A));return d.threshold?d.threshold>p*W:p*W}}();typeof Qy<"u"&&Qy.exports&&(Qy.exports=Xq)});var l4=Mt((see,Ky)=>{"use strict";G();var o4=i4(),eG=a4();function Wt(e){let t;if(e===null||typeof e>"u"){this.minlat=-90,this.minlon=-180,this.maxlat=90,this.maxlon=180;return}if(typeof e.getSouthWest=="function"){let o=e.getSouthWest().wrap(),s=e.getNorthEast().wrap();e={minlat:o.lat,minlon:o.lng,maxlat:s.lat,maxlon:s.lng}}if(e.type==="Feature"){let o;e.geometry.type==="GeometryCollection"?o=e.geometry.geometries.map(f=>{let d=new Wt({type:"Feature",geometry:f});return[d.minlon,d.minlat,d.maxlon,d.maxlat]}):["MultiPoint","MultiPolygon","MultiLineString"].includes(e.geometry.type)?o=e.geometry.coordinates.map(f=>o4.extent({type:"Feature",geometry:{type:e.geometry.type.substr(5),coordinates:f}})):o=[o4.extent(e)];let s=o.shift();this.minlat=s[1],this.minlon=s[0],this.maxlat=s[3],this.maxlon=s[2],o.forEach(f=>this.extend({minlat:f[1],minlon:f[0],maxlat:f[3],maxlon:f[2]})),this._wrap();return}else if(e.type==="FeatureCollection"){if(e.features.length===0)return;let o=new Wt(e.features[0]);for(let s=1;s<e.features.length;s++)o.extend(e.features[s]);this.minlat=o.minlat,this.minlon=o.minlon,this.maxlat=o.maxlat,this.maxlon=o.maxlon;return}"bounds"in e&&(e=e.bounds),e.lat&&(this.minlat=+e.lat,this.maxlat=+e.lat),e.lon&&(this.minlon=+e.lon,this.maxlon=+e.lon),e.latitude&&(this.minlat=+e.latitude,this.maxlat=+e.latitude,this.minlon=+e.longitude,this.maxlon=+e.longitude),Array.isArray(e)&&(this.minlat=+e[0],this.maxlat=+e[0],this.minlon=+e[1],this.maxlon=+e[1]),e.lng&&(this.minlon=+e.lng,this.maxlon=+e.lng);let r=["minlon","minlat","maxlon","maxlat"];for(let o=0;o<r.length;o++)t=r[o],t in e&&(this[t]=e[t]);this._wrap()}Wt.prototype.wrapMaxLon=function(){return this.minlon>this.maxlon?this.maxlon+360:this.maxlon};Wt.prototype.wrapMinLon=function(){return this.minlon>this.maxlon?this.minlon-360:this.minlon};Wt.prototype._wrap=function(){return(this.minlon<-180||this.minlon>180)&&(this.minlon=(this.minlon+180)%360-180),(this.maxlon<-180||this.maxlon>180)&&(this.maxlon=(this.maxlon+180)%360-180),this};Wt.prototype.intersects=function(e){return e instanceof Wt||(e=new Wt(e)),e.maxlat<this.minlat||e.minlat>this.maxlat?!1:this.wrapMaxLon()>=e.minlon&&this.minlon<=e.wrapMaxLon()||this.maxlon>=e.wrapMinLon()&&this.wrapMinLon()<=e.maxlon};Wt.prototype.within=function(e){return e instanceof Wt||(e=new Wt(e)),e.maxlat<this.maxlat||e.minlat>this.minlat?!1:this.wrapMinLon()>=e.wrapMinLon()&&this.maxlon<=e.maxlon||this.minlon>=e.minlon&&this.wrapMaxLon()<=e.wrapMaxLon()};Wt.prototype.toTile=function(){return new Wt({minlat:Math.floor(this.minlat*10)/10,minlon:Math.floor(this.minlon*10)/10,maxlat:Math.ceil(this.maxlat*10)/10,maxlon:Math.ceil(this.maxlon*10)/10})};Wt.prototype.toLonLatString=function(){return this.minlon+","+this.minlat+","+this.maxlon+","+this.maxlat};Wt.prototype.toBBoxString=Wt.prototype.toLonLatString;Wt.prototype.toLatLonString=function(){return this.minlat+","+this.minlon+","+this.maxlat+","+this.maxlon};Wt.prototype.diagonalLength=function(){let e=this.maxlat-this.minlat,t=this.wrapMaxLon()-this.minlon;return Math.sqrt(e*e+t*t)};Wt.prototype.diagonalDistance=function(e={}){return eG({latitude:this.minlat,longitude:this.minlon},{latitude:this.maxlat,longitude:this.maxlon},e)};Wt.prototype.getCenter=function(){let e=this.maxlat-this.minlat,t=this.wrapMaxLon()-this.minlon,r=this.minlon+t/2;return(r<-180||r>180)&&(r=(r+180)%360-180),{lat:this.minlat+e/2,lon:r}};Wt.prototype.getNorth=function(){return this.maxlat};Wt.prototype.getSouth=function(){return this.minlat};Wt.prototype.getEast=function(){return this.maxlon};Wt.prototype.getWest=function(){return this.minlon};Wt.prototype.extend=function(e){e instanceof Wt||(e=new Wt(e)),e.minlat<this.minlat&&(this.minlat=e.minlat),e.maxlat>this.maxlat&&(this.maxlat=e.maxlat);for(let f=-360;f<=360;f+=360)if(e.wrapMaxLon()+f>this.minlon&&e.minlon+f<this.wrapMaxLon()){this.minlon=Math.min(this.minlon,e.minlon+f),this.maxlon=Math.max(this.wrapMaxLon(),e.wrapMaxLon()+f),this._wrap();return}let t=Math.min(this.minlon,e.minlon),r=Math.max(this.minlon,e.minlon),o=Math.max(this.wrapMaxLon(),e.wrapMaxLon()),s=Math.min(this.wrapMaxLon(),e.wrapMaxLon());o-t<s-r+360?(this.minlon=t,this.maxlon=o):(this.minlon=r,this.maxlon=s),this._wrap()};Wt.prototype.toGeoJSON=function(){return this.minlon>this.maxlon?{type:"Feature",properties:{},geometry:{type:"MultiPolygon",coordinates:[[[[this.minlon,this.minlat],[180,this.minlat],[180,this.maxlat],[this.minlon,this.maxlat],[this.minlon,this.minlat]]],[[[-180,this.minlat],[this.maxlon,this.minlat],[this.maxlon,this.maxlat],[-180,this.maxlat],[-180,this.minlat]]]]}}:{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[this.minlon,this.minlat],[this.maxlon,this.minlat],[this.maxlon,this.maxlat],[this.minlon,this.maxlat],[this.minlon,this.minlat]]]}}};Wt.prototype.toLeaflet=function(e={}){return"shiftWorld"in e||(e.shiftWorld=[0,0]),L.latLngBounds(L.latLng(this.minlat,this.minlon+(this.minlon<0?e.shiftWorld[0]:e.shiftWorld[1])),L.latLng(this.maxlat,this.maxlon+(this.maxlon<0?e.shiftWorld[0]:e.shiftWorld[1])))};typeof Ky<"u"&&Ky.exports&&(Ky.exports=Wt);typeof window<"u"&&(window.BoundingBox=Wt)});var s4=Mt(Jy=>{G();var tG=function(){BITS=[16,8,4,2,1],BASE32="0123456789bcdefghjkmnpqrstuvwxyz",NEIGHBORS={right:{even:"bc01fg45238967deuvhjyznpkmstqrwx"},left:{even:"238967debc01fg45kmstqrwxuvhjyznp"},top:{even:"p0r21436x8zb9dcf5h7kjnmqesgutwvy"},bottom:{even:"14365h7k9dcfesgujnmqp0r2twvyx8zb"}},BORDERS={right:{even:"bcfguvyz"},left:{even:"0145hjnp"},top:{even:"prxz"},bottom:{even:"028b"}},NEIGHBORS.bottom.odd=NEIGHBORS.left.even,NEIGHBORS.top.odd=NEIGHBORS.right.even,NEIGHBORS.left.odd=NEIGHBORS.bottom.even,NEIGHBORS.right.odd=NEIGHBORS.top.even,BORDERS.bottom.odd=BORDERS.left.even,BORDERS.top.odd=BORDERS.right.even,BORDERS.left.odd=BORDERS.bottom.even,BORDERS.right.odd=BORDERS.top.even;var e=function(t,r,o){r&o?t[0]=(t[0]+t[1])/2:t[1]=(t[0]+t[1])/2};return{encodeGeoHash:function(t,r){var o=1,s=0,f=[],d=[],p=0,m=0,y=12;for(geohash="",f[0]=-90,f[1]=90,d[0]=-180,d[1]=180;geohash.length<y;)o?(mid=(d[0]+d[1])/2,r>mid?(m|=BITS[p],d[0]=mid):d[1]=mid):(mid=(f[0]+f[1])/2,t>mid?(m|=BITS[p],f[0]=mid):f[1]=mid),o=!o,p<4?p++:(geohash+=BASE32[m],p=0,m=0);return geohash},decodeGeoHash:function(t){var r=1,o=[],s=[];for(o[0]=-90,o[1]=90,s[0]=-180,s[1]=180,lat_err=90,lon_err=180,i=0;i<t.length;i++)for(c=t[i],cd=BASE32.indexOf(c),j=0;j<5;j++)mask=BITS[j],r?(lon_err/=2,e(s,cd,mask)):(lat_err/=2,e(o,cd,mask)),r=!r;return o[2]=(o[0]+o[1])/2,s[2]=(s[0]+s[1])/2,{latitude:o,longitude:s}},calculateAdjacent:function(t,r){t=t.toLowerCase();var o=t.charAt(t.length-1),s=t.length%2?"odd":"even",f=t.substring(0,t.length-1);return BORDERS[r][s].indexOf(o)!=-1&&(f=calculateAdjacent(f,r)),f+BASE32[NEIGHBORS[r][s].indexOf(o)]}}}();typeof Jy>"u"&&(Jy={});Jy.GeoHash=tG});var C4={};Ra(C4,{Immer:()=>E4,applyPatches:()=>vG,castDraft:()=>oG,castImmutable:()=>lG,createDraft:()=>mG,current:()=>g4,default:()=>yG,enableAllPlugins:()=>aG,enableES5:()=>y4,enableMapSet:()=>x4,enablePatches:()=>b4,finishDraft:()=>gG,freeze:()=>o0,immerable:()=>bf,isDraft:()=>go,isDraftable:()=>Na,nothing:()=>l0,original:()=>nG,produce:()=>w4,produceWithPatches:()=>dG,setAutoFreeze:()=>pG,setUseProxies:()=>hG});function Tn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(process.env.NODE_ENV!=="production"){var s=cG[e],f=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+f)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(d){return"'"+d+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function go(e){return!!e&&!!e[ht]}function Na(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===fG}(e)||Array.isArray(e)||!!e[bf]||!!e.constructor[bf]||i0(e)||a0(e))}function nG(e){return go(e)||Tn(23,e),e[ht].t}function Qo(e,t,r){r===void 0&&(r=!1),ps(e)===0?(r?Object.keys:xf)(e).forEach(function(o){r&&typeof o=="symbol"||t(o,e[o],e)}):e.forEach(function(o,s){return t(s,o,e)})}function ps(e){var t=e[ht];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:i0(e)?2:a0(e)?3:0}function ds(e,t){return ps(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function e0(e,t){return ps(e)===2?e.get(t):e[t]}function v4(e,t,r){var o=ps(e);o===2?e.set(t,r):o===3?(e.delete(t),e.add(r)):e[t]=r}function m4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function i0(e){return sG&&e instanceof Map}function a0(e){return uG&&e instanceof Set}function dr(e){return e.o||e.t}function IC(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=S4(e);delete t[ht];for(var r=xf(t),o=0;o<r.length;o++){var s=r[o],f=t[s];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(t[s]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function o0(e,t){return t===void 0&&(t=!1),UC(e)||go(e)||!Na(e)||(ps(e)>1&&(e.set=e.add=e.clear=e.delete=rG),Object.freeze(e),t&&Qo(e,function(r,o){return o0(o,!0)},!0)),e}function rG(){Tn(2)}function UC(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function mo(e){var t=zC[e];return t||Tn(18,e),t}function FC(e,t){zC[e]||(zC[e]=t)}function Mh(){return process.env.NODE_ENV==="production"||Sf||Tn(0),Sf}function OC(e,t){t&&(mo("Patches"),e.u=[],e.s=[],e.v=t)}function t0(e){NC(e),e.p.forEach(iG),e.p=null}function NC(e){e===Sf&&(Sf=e.l)}function u4(e){return Sf={p:[],l:Sf,h:e,m:!0,_:0}}function iG(e){var t=e[ht];t.i===0||t.i===1?t.j():t.O=!0}function DC(e,t){t._=t.p.length;var r=t.p[0],o=e!==void 0&&e!==r;return t.h.g||mo("ES5").S(t,e,o),o?(r[ht].P&&(t0(t),Tn(4)),Na(e)&&(e=n0(t,e),t.l||r0(t,e)),t.u&&mo("Patches").M(r[ht].t,e,t.u,t.s)):e=n0(t,r,[]),t0(t),t.u&&t.v(t.u,t.s),e!==l0?e:void 0}function n0(e,t,r){if(UC(t))return t;var o=t[ht];if(!o)return Qo(t,function(f,d){return c4(e,o,t,f,d,r)},!0),t;if(o.A!==e)return t;if(!o.P)return r0(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var s=o.i===4||o.i===5?o.o=IC(o.k):o.o;Qo(o.i===3?new Set(s):s,function(f,d){return c4(e,o,s,f,d,r)}),r0(e,s,!1),r&&e.u&&mo("Patches").R(o,r,e.u,e.s)}return o.o}function c4(e,t,r,o,s,f){if(process.env.NODE_ENV!=="production"&&s===r&&Tn(5),go(s)){var d=n0(e,s,f&&t&&t.i!==3&&!ds(t.D,o)?f.concat(o):void 0);if(v4(r,o,d),!go(d))return;e.m=!1}if(Na(s)&&!UC(s)){if(!e.h.F&&e._<1)return;n0(e,s),t&&t.A.l||r0(e,s)}}function r0(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&o0(t,r)}function PC(e,t){var r=e[ht];return(r?dr(r):e)[t]}function f4(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var o=Object.getOwnPropertyDescriptor(r,t);if(o)return o;r=Object.getPrototypeOf(r)}}function wi(e){e.P||(e.P=!0,e.l&&wi(e.l))}function AC(e){e.o||(e.o=IC(e.t))}function Th(e,t,r){var o=i0(t)?mo("MapSet").N(t,r):a0(t)?mo("MapSet").T(t,r):e.g?function(s,f){var d=Array.isArray(s),p={i:d?1:0,A:f?f.A:Mh(),P:!1,I:!1,D:{},l:f,t:s,k:null,o:null,j:null,C:!1},m=p,y=kh;d&&(m=[p],y=_h);var E=Proxy.revocable(m,y),w=E.revoke,k=E.proxy;return p.k=k,p.j=w,k}(t,r):mo("ES5").J(t,r);return(r?r.A:Mh()).p.push(o),o}function g4(e){return go(e)||Tn(22,e),function t(r){if(!Na(r))return r;var o,s=r[ht],f=ps(r);if(s){if(!s.P&&(s.i<4||!mo("ES5").K(s)))return s.t;s.I=!0,o=d4(r,f),s.I=!1}else o=d4(r,f);return Qo(o,function(d,p){s&&e0(s.t,d)===p||v4(o,d,t(p))}),f===3?new Set(o):o}(e)}function d4(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return IC(e)}function y4(){function e(d,p){var m=f[d];return m?m.enumerable=p:f[d]=m={configurable:!0,enumerable:p,get:function(){var y=this[ht];return process.env.NODE_ENV!=="production"&&s(y),kh.get(y,d)},set:function(y){var E=this[ht];process.env.NODE_ENV!=="production"&&s(E),kh.set(E,d,y)}},m}function t(d){for(var p=d.length-1;p>=0;p--){var m=d[p][ht];if(!m.P)switch(m.i){case 5:o(m)&&wi(m);break;case 4:r(m)&&wi(m)}}}function r(d){for(var p=d.t,m=d.k,y=xf(m),E=y.length-1;E>=0;E--){var w=y[E];if(w!==ht){var k=p[w];if(k===void 0&&!ds(p,w))return!0;var O=m[w],A=O&&O[ht];if(A?A.t!==k:!m4(O,k))return!0}}var W=!!p[ht];return y.length!==xf(p).length+(W?0:1)}function o(d){var p=d.k;if(p.length!==d.t.length)return!0;var m=Object.getOwnPropertyDescriptor(p,p.length-1);if(m&&!m.get)return!0;for(var y=0;y<p.length;y++)if(!p.hasOwnProperty(y))return!0;return!1}function s(d){d.O&&Tn(3,JSON.stringify(dr(d)))}var f={};FC("ES5",{J:function(d,p){var m=Array.isArray(d),y=function(w,k){if(w){for(var O=Array(k.length),A=0;A<k.length;A++)Object.defineProperty(O,""+A,e(A,!0));return O}var W=S4(k);delete W[ht];for(var P=xf(W),R=0;R<P.length;R++){var D=P[R];W[D]=e(D,w||!!W[D].enumerable)}return Object.create(Object.getPrototypeOf(k),W)}(m,d),E={i:m?5:4,A:p?p.A:Mh(),P:!1,I:!1,D:{},l:p,t:d,k:y,o:null,O:!1,C:!1};return Object.defineProperty(y,ht,{value:E,writable:!0}),y},S:function(d,p,m){m?go(p)&&p[ht].A===d&&t(d.p):(d.u&&function y(E){if(E&&typeof E=="object"){var w=E[ht];if(w){var k=w.t,O=w.k,A=w.D,W=w.i;if(W===4)Qo(O,function(M){M!==ht&&(k[M]!==void 0||ds(k,M)?A[M]||y(O[M]):(A[M]=!0,wi(w)))}),Qo(k,function(M){O[M]!==void 0||ds(O,M)||(A[M]=!1,wi(w))});else if(W===5){if(o(w)&&(wi(w),A.length=!0),O.length<k.length)for(var P=O.length;P<k.length;P++)A[P]=!1;else for(var R=k.length;R<O.length;R++)A[R]=!0;for(var D=Math.min(O.length,k.length),T=0;T<D;T++)O.hasOwnProperty(T)||(A[T]=!0),A[T]===void 0&&y(O[T])}}}}(d.p[0]),t(d.p))},K:function(d){return d.i===4?r(d):o(d)}})}function b4(){function e(o){if(!Na(o))return o;if(Array.isArray(o))return o.map(e);if(i0(o))return new Map(Array.from(o.entries()).map(function(d){return[d[0],e(d[1])]}));if(a0(o))return new Set(Array.from(o).map(e));var s=Object.create(Object.getPrototypeOf(o));for(var f in o)s[f]=e(o[f]);return ds(o,bf)&&(s[bf]=o[bf]),s}function t(o){return go(o)?e(o):o}var r="add";FC("Patches",{$:function(o,s){return s.forEach(function(f){for(var d=f.path,p=f.op,m=o,y=0;y<d.length-1;y++){var E=ps(m),w=""+d[y];E!==0&&E!==1||w!=="__proto__"&&w!=="constructor"||Tn(24),typeof m=="function"&&w==="prototype"&&Tn(24),typeof(m=e0(m,w))!="object"&&Tn(15,d.join("/"))}var k=ps(m),O=e(f.value),A=d[d.length-1];switch(p){case"replace":switch(k){case 2:return m.set(A,O);case 3:Tn(16);default:return m[A]=O}case r:switch(k){case 1:return A==="-"?m.push(O):m.splice(A,0,O);case 2:return m.set(A,O);case 3:return m.add(O);default:return m[A]=O}case"remove":switch(k){case 1:return m.splice(A,1);case 2:return m.delete(A);case 3:return m.delete(f.value);default:return delete m[A]}default:Tn(17,p)}}),o},R:function(o,s,f,d){switch(o.i){case 0:case 4:case 2:return function(p,m,y,E){var w=p.t,k=p.o;Qo(p.D,function(O,A){var W=e0(w,O),P=e0(k,O),R=A?ds(w,O)?"replace":r:"remove";if(W!==P||R!=="replace"){var D=m.concat(O);y.push(R==="remove"?{op:R,path:D}:{op:R,path:D,value:P}),E.push(R===r?{op:"remove",path:D}:R==="remove"?{op:r,path:D,value:t(W)}:{op:"replace",path:D,value:t(W)})}})}(o,s,f,d);case 5:case 1:return function(p,m,y,E){var w=p.t,k=p.D,O=p.o;if(O.length<w.length){var A=[O,w];w=A[0],O=A[1];var W=[E,y];y=W[0],E=W[1]}for(var P=0;P<w.length;P++)if(k[P]&&O[P]!==w[P]){var R=m.concat([P]);y.push({op:"replace",path:R,value:t(O[P])}),E.push({op:"replace",path:R,value:t(w[P])})}for(var D=w.length;D<O.length;D++){var T=m.concat([D]);y.push({op:r,path:T,value:t(O[D])})}w.length<O.length&&E.push({op:"replace",path:m.concat(["length"]),value:w.length})}(o,s,f,d);case 3:return function(p,m,y,E){var w=p.t,k=p.o,O=0;w.forEach(function(A){if(!k.has(A)){var W=m.concat([O]);y.push({op:"remove",path:W,value:A}),E.unshift({op:r,path:W,value:A})}O++}),O=0,k.forEach(function(A){if(!w.has(A)){var W=m.concat([O]);y.push({op:r,path:W,value:A}),E.unshift({op:"remove",path:W,value:A})}O++})}(o,s,f,d)}},M:function(o,s,f,d){f.push({op:"replace",path:[],value:s===l0?void 0:s}),d.push({op:"replace",path:[],value:o})}})}function x4(){function e(p,m){function y(){this.constructor=p}s(p,m),p.prototype=(y.prototype=m.prototype,new y)}function t(p){p.o||(p.D=new Map,p.o=new Map(p.t))}function r(p){p.o||(p.o=new Set,p.t.forEach(function(m){if(Na(m)){var y=Th(p.A.h,m,p);p.p.set(m,y),p.o.add(y)}else p.o.add(m)}))}function o(p){p.O&&Tn(3,JSON.stringify(dr(p)))}var s=function(p,m){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var w in E)E.hasOwnProperty(w)&&(y[w]=E[w])})(p,m)},f=function(){function p(y,E){return this[ht]={i:2,l:E,A:E?E.A:Mh(),P:!1,I:!1,o:void 0,D:void 0,t:y,k:this,C:!1,O:!1},this}e(p,Map);var m=p.prototype;return Object.defineProperty(m,"size",{get:function(){return dr(this[ht]).size}}),m.has=function(y){return dr(this[ht]).has(y)},m.set=function(y,E){var w=this[ht];return o(w),dr(w).has(y)&&dr(w).get(y)===E||(t(w),wi(w),w.D.set(y,!0),w.o.set(y,E),w.D.set(y,!0)),this},m.delete=function(y){if(!this.has(y))return!1;var E=this[ht];return o(E),t(E),wi(E),E.t.has(y)?E.D.set(y,!1):E.D.delete(y),E.o.delete(y),!0},m.clear=function(){var y=this[ht];o(y),dr(y).size&&(t(y),wi(y),y.D=new Map,Qo(y.t,function(E){y.D.set(E,!1)}),y.o.clear())},m.forEach=function(y,E){var w=this;dr(this[ht]).forEach(function(k,O){y.call(E,w.get(O),O,w)})},m.get=function(y){var E=this[ht];o(E);var w=dr(E).get(y);if(E.I||!Na(w)||w!==E.t.get(y))return w;var k=Th(E.A.h,w,E);return t(E),E.o.set(y,k),k},m.keys=function(){return dr(this[ht]).keys()},m.values=function(){var y,E=this,w=this.keys();return(y={})[Xy]=function(){return E.values()},y.next=function(){var k=w.next();return k.done?k:{done:!1,value:E.get(k.value)}},y},m.entries=function(){var y,E=this,w=this.keys();return(y={})[Xy]=function(){return E.entries()},y.next=function(){var k=w.next();if(k.done)return k;var O=E.get(k.value);return{done:!1,value:[k.value,O]}},y},m[Xy]=function(){return this.entries()},p}(),d=function(){function p(y,E){return this[ht]={i:3,l:E,A:E?E.A:Mh(),P:!1,I:!1,o:void 0,t:y,k:this,p:new Map,O:!1,C:!1},this}e(p,Set);var m=p.prototype;return Object.defineProperty(m,"size",{get:function(){return dr(this[ht]).size}}),m.has=function(y){var E=this[ht];return o(E),E.o?!!E.o.has(y)||!(!E.p.has(y)||!E.o.has(E.p.get(y))):E.t.has(y)},m.add=function(y){var E=this[ht];return o(E),this.has(y)||(r(E),wi(E),E.o.add(y)),this},m.delete=function(y){if(!this.has(y))return!1;var E=this[ht];return o(E),r(E),wi(E),E.o.delete(y)||!!E.p.has(y)&&E.o.delete(E.p.get(y))},m.clear=function(){var y=this[ht];o(y),dr(y).size&&(r(y),wi(y),y.o.clear())},m.values=function(){var y=this[ht];return o(y),r(y),y.o.values()},m.entries=function(){var y=this[ht];return o(y),r(y),y.o.entries()},m.keys=function(){return this.values()},m[Xy]=function(){return this.values()},m.forEach=function(y,E){for(var w=this.values(),k=w.next();!k.done;)y.call(E,k.value,k.value,this),k=w.next()},p}();FC("MapSet",{N:function(p,m){return new f(p,m)},T:function(p,m){return new d(p,m)}})}function aG(){y4(),x4(),b4()}function oG(e){return e}function lG(e){return e}var p4,Sf,jC,sG,uG,h4,l0,bf,ht,Xy,cG,fG,xf,S4,zC,kh,_h,E4,Vi,w4,dG,pG,hG,vG,mG,gG,yG,_4=tt(()=>{G();jC=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",sG=typeof Map<"u",uG=typeof Set<"u",h4=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",l0=jC?Symbol.for("immer-nothing"):((p4={})["immer-nothing"]=!0,p4),bf=jC?Symbol.for("immer-draftable"):"__$immer_draftable",ht=jC?Symbol.for("immer-state"):"__$immer_state",Xy=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",cG={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},fG=""+Object.prototype.constructor,xf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,S4=Object.getOwnPropertyDescriptors||function(e){var t={};return xf(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},zC={},kh={get:function(e,t){if(t===ht)return e;var r=dr(e);if(!ds(r,t))return function(s,f,d){var p,m=f4(f,d);return m?"value"in m?m.value:(p=m.get)===null||p===void 0?void 0:p.call(s.k):void 0}(e,r,t);var o=r[t];return e.I||!Na(o)?o:o===PC(e.t,t)?(AC(e),e.o[t]=Th(e.A.h,o,e)):o},has:function(e,t){return t in dr(e)},ownKeys:function(e){return Reflect.ownKeys(dr(e))},set:function(e,t,r){var o=f4(dr(e),t);if(o==null?void 0:o.set)return o.set.call(e.k,r),!0;if(!e.P){var s=PC(dr(e),t),f=s==null?void 0:s[ht];if(f&&f.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(m4(r,s)&&(r!==void 0||ds(e.t,t)))return!0;AC(e),wi(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return PC(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,AC(e),wi(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=dr(e),o=Reflect.getOwnPropertyDescriptor(r,t);return o&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:o.enumerable,value:r[t]}},defineProperty:function(){Tn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Tn(12)}},_h={};Qo(kh,function(e,t){_h[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),_h.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Tn(13),_h.set.call(this,e,t,void 0)},_h.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Tn(14),kh.set.call(this,e[0],t,r,e[0])};E4=function(){function e(r){var o=this;this.g=h4,this.F=!0,this.produce=function(s,f,d){if(typeof s=="function"&&typeof f!="function"){var p=f;f=s;var m=o;return function(W){var P=this;W===void 0&&(W=p);for(var R=arguments.length,D=Array(R>1?R-1:0),T=1;T<R;T++)D[T-1]=arguments[T];return m.produce(W,function(M){var U;return(U=f).call.apply(U,[P,M].concat(D))})}}var y;if(typeof f!="function"&&Tn(6),d!==void 0&&typeof d!="function"&&Tn(7),Na(s)){var E=u4(o),w=Th(o,s,void 0),k=!0;try{y=f(w),k=!1}finally{k?t0(E):NC(E)}return typeof Promise<"u"&&y instanceof Promise?y.then(function(W){return OC(E,d),DC(W,E)},function(W){throw t0(E),W}):(OC(E,d),DC(y,E))}if(!s||typeof s!="object"){if((y=f(s))===void 0&&(y=s),y===l0&&(y=void 0),o.F&&o0(y,!0),d){var O=[],A=[];mo("Patches").M(s,y,O,A),d(O,A)}return y}Tn(21,s)},this.produceWithPatches=function(s,f){if(typeof s=="function")return function(y){for(var E=arguments.length,w=Array(E>1?E-1:0),k=1;k<E;k++)w[k-1]=arguments[k];return o.produceWithPatches(y,function(O){return s.apply(void 0,[O].concat(w))})};var d,p,m=o.produce(s,f,function(y,E){d=y,p=E});return typeof Promise<"u"&&m instanceof Promise?m.then(function(y){return[y,d,p]}):[m,d,p]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Na(r)||Tn(8),go(r)&&(r=g4(r));var o=u4(this),s=Th(this,r,void 0);return s[ht].C=!0,NC(o),s},t.finishDraft=function(r,o){var s=r&&r[ht];process.env.NODE_ENV!=="production"&&(s&&s.C||Tn(9),s.I&&Tn(10));var f=s.A;return OC(f,o),DC(void 0,f)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!h4&&Tn(20),this.g=r},t.applyPatches=function(r,o){var s;for(s=o.length-1;s>=0;s--){var f=o[s];if(f.path.length===0&&f.op==="replace"){r=f.value;break}}s>-1&&(o=o.slice(s+1));var d=mo("Patches").$;return go(r)?d(r,o):this.produce(r,function(p){return d(p,o)})},e}(),Vi=new E4,w4=Vi.produce,dG=Vi.produceWithPatches.bind(Vi),pG=Vi.setAutoFreeze.bind(Vi),hG=Vi.setUseProxies.bind(Vi),vG=Vi.applyPatches.bind(Vi),mG=Vi.createDraft.bind(Vi),gG=Vi.finishDraft.bind(Vi),yG=w4});import{useRef as bG}from"react";function xG(e){var t=bG();return t.current||(t.current={v:e()}),t.current.v}var Rh,M4=tt(()=>{G();Rh=xG});var O4={};Ra(O4,{Panel:()=>TG,Tab:()=>MG,Tabs:()=>_G,usePanelState:()=>L4,useTabState:()=>R4});import T4,{createContext as k4,useState as SG,useContext as s0,useMemo as EG,isValidElement as wG,cloneElement as CG}from"react";var BC,HC,_G,R4,L4,MG,TG,D4=tt(()=>{G();M4();BC=k4(),HC=k4(),_G=({state:e,children:t})=>{let r=SG(0),o=Rh(()=>({tabs:0,panels:0})),s=e||r;return T4.createElement(HC.Provider,{value:o},T4.createElement(BC.Provider,{value:s},t))},R4=()=>{let[e,t]=s0(BC),r=s0(HC),o=Rh(()=>{let d=r.tabs;return r.tabs+=1,d}),s=Rh(()=>()=>t(o));return EG(()=>({isActive:e===o,onClick:s}),[e,s,o])},L4=()=>{let[e]=s0(BC),t=s0(HC);return Rh(()=>{let o=t.panels;return t.panels+=1,o})===e},MG=({children:e})=>{let t=R4();return typeof e=="function"?e(t):wG(e)?CG(e,t):e},TG=({active:e,children:t})=>L4()||e?t:null});var u0={};Ra(u0,{default:()=>kG});function P4(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=P4(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function kG(){for(var e=0,t,r,o="";e<arguments.length;)(t=arguments[e++])&&(r=P4(t))&&(o&&(o+=" "),o+=r);return o}var c0=tt(()=>{G()});var z4={};Ra(z4,{defaultRangeExtractor:()=>N4,useVirtual:()=>FG});import Yn from"react";function vu(){return vu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},vu.apply(this,arguments)}function RG(e,t){if(e==null)return{};var r={},o=Object.keys(e),s,f;for(f=0;f<o.length;f++)s=o[f],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function PG(e,t){return{observe:function(){var o=hs.size===0;hs.has(e)?hs.get(e).callbacks.push(t):hs.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),o&&DG()},unobserve:function(){var o=hs.get(e);if(o){var s=o.callbacks.indexOf(t);s>=0&&o.callbacks.splice(s,1),o.callbacks.length||hs.delete(e),hs.size||cancelAnimationFrame(A4)}}}}function AG(e,t){t===void 0&&(t={width:0,height:0});var r=Yn.useState(e.current),o=r[0],s=r[1],f=Yn.useReducer(NG,t),d=f[0],p=f[1],m=Yn.useRef(!1);return f0(function(){e.current!==o&&s(e.current)}),f0(function(){if(o&&!m.current){m.current=!0;var y=o.getBoundingClientRect();p({rect:y})}},[o]),Yn.useEffect(function(){if(!!o){var y=PG(o,function(E){p({rect:E})});return y.observe(),function(){y.unobserve()}}},[o]),d}function NG(e,t){var r=t.rect;return e.height!==r.height||e.width!==r.width?r:e}function FG(e){var t,r=e.size,o=r===void 0?0:r,s=e.estimateSize,f=s===void 0?zG:s,d=e.overscan,p=d===void 0?1:d,m=e.paddingStart,y=m===void 0?0:m,E=e.paddingEnd,w=E===void 0?0:E,k=e.parentRef,O=e.horizontal,A=e.scrollToFn,W=e.useObserver,P=e.initialRect,R=e.onScrollElement,D=e.scrollOffsetFn,T=e.keyExtractor,M=T===void 0?IG:T,U=e.measureSize,Y=U===void 0?UG:U,F=e.rangeExtractor,ne=F===void 0?N4:F,ue=O?"width":"height",Q=O?"scrollLeft":"scrollTop",B=Yn.useRef({scrollOffset:0,measurements:[]}),ae=Yn.useState(0),H=ae[0],K=ae[1];B.current.scrollOffset=H;var re=W||AG,le=re(k,P),se=le[ue];B.current.outerSize=se;var ce=Yn.useCallback(function(Tt){k.current&&(k.current[Q]=Tt)},[k,Q]),de=A||ce;A=Yn.useCallback(function(Tt){de(Tt,ce)},[ce,de]);var ve=Yn.useState({}),Ce=ve[0],_e=ve[1],Ae=Yn.useCallback(function(){return _e({})},[]),Ye=Yn.useRef([]),Ne=Yn.useMemo(function(){var Tt=Ye.current.length>0?Math.min.apply(Math,Ye.current):0;Ye.current=[];for(var Bt=B.current.measurements.slice(0,Tt),Ot=Tt;Ot<o;Ot++){var bn=M(Ot),sn=Ce[bn],rr=Bt[Ot-1]?Bt[Ot-1].end:y,sr=typeof sn=="number"?sn:f(Ot),zt=rr+sr;Bt[Ot]={index:Ot,start:rr,size:sr,end:zt,key:bn}}return Bt},[f,Ce,y,o,M]),ft=(((t=Ne[o-1])==null?void 0:t.end)||y)+w;B.current.measurements=Ne,B.current.totalSize=ft;var St=R?R.current:k.current,Yt=Yn.useRef(D);Yt.current=D,f0(function(){if(!St){K(0);return}var Tt=function(Ot){var bn=Yt.current?Yt.current(Ot):St[Q];K(bn)};return Tt(),St.addEventListener("scroll",Tt,{capture:!1,passive:!0}),function(){St.removeEventListener("scroll",Tt)}},[St,Q]);var $r=BG(B.current),mt=$r.start,Lt=$r.end,ze=Yn.useMemo(function(){return ne({start:mt,end:Lt,overscan:p,size:Ne.length})},[mt,Lt,p,Ne.length,ne]),jt=Yn.useRef(Y);jt.current=Y;var en=Yn.useMemo(function(){for(var Tt=[],Bt=function(rr,sr){var zt=ze[rr],tn=Ne[zt],un=vu(vu({},tn),{},{measureRef:function(ke){if(ke){var Ue=jt.current(ke,O);if(Ue!==un.size){var dt=B.current.scrollOffset;un.start<dt&&ce(dt+(Ue-un.size)),Ye.current.push(zt),_e(function(kt){var gt;return vu(vu({},kt),{},(gt={},gt[un.key]=Ue,gt))})}}}});Tt.push(un)},Ot=0,bn=ze.length;Ot<bn;Ot++)Bt(Ot);return Tt},[ze,ce,O,Ne]),nr=Yn.useRef(!1);f0(function(){nr.current&&_e({}),nr.current=!0},[f]);var qr=Yn.useCallback(function(Tt,Bt){var Ot=Bt===void 0?{}:Bt,bn=Ot.align,sn=bn===void 0?"start":bn,rr=B.current,sr=rr.scrollOffset,zt=rr.outerSize;sn==="auto"&&(Tt<=sr?sn="start":Tt>=sr+zt?sn="end":sn="start"),sn==="start"?A(Tt):sn==="end"?A(Tt-zt):sn==="center"&&A(Tt-zt/2)},[A]),lr=Yn.useCallback(function(Tt,Bt){var Ot=Bt===void 0?{}:Bt,bn=Ot.align,sn=bn===void 0?"auto":bn,rr=RG(Ot,["align"]),sr=B.current,zt=sr.measurements,tn=sr.scrollOffset,un=sr.outerSize,Fn=zt[Math.max(0,Math.min(Tt,o-1))];if(!!Fn){if(sn==="auto")if(Fn.end>=tn+un)sn="end";else if(Fn.start<=tn)sn="start";else return;var ke=sn==="center"?Fn.start+Fn.size/2:sn==="end"?Fn.end:Fn.start;qr(ke,vu({align:sn},rr))}},[qr,o]),Un=Yn.useCallback(function(){for(var Tt=arguments.length,Bt=new Array(Tt),Ot=0;Ot<Tt;Ot++)Bt[Ot]=arguments[Ot];lr.apply(void 0,Bt),requestAnimationFrame(function(){lr.apply(void 0,Bt)})},[lr]);return{virtualItems:en,totalSize:ft,scrollToOffset:qr,scrollToIndex:Un,measure:Ae}}function BG(e){for(var t=e.measurements,r=e.outerSize,o=e.scrollOffset,s=t.length-1,f=function(y){return t[y].start},d=jG(0,s,f,o),p=d;p<s&&t[p].end<o+r;)p++;return{start:d,end:p}}var LG,OG,hs,A4,DG,f0,zG,IG,UG,N4,jG,I4=tt(()=>{G();LG=["bottom","height","left","right","top","width"],OG=function(t,r){return t===void 0&&(t={}),r===void 0&&(r={}),LG.some(function(o){return t[o]!==r[o]})},hs=new Map,DG=function e(){var t=[];hs.forEach(function(r,o){var s=o.getBoundingClientRect();OG(s,r.rect)&&(r.rect=s,t.push(r))}),t.forEach(function(r){r.callbacks.forEach(function(o){return o(r.rect)})}),A4=window.requestAnimationFrame(e)};f0=typeof window<"u"?Yn.useLayoutEffect:Yn.useEffect;zG=function(){return 50},IG=function(t){return t},UG=function(t,r){var o=r?"offsetWidth":"offsetHeight";return t[o]},N4=function(t){for(var r=Math.max(t.start-t.overscan,0),o=Math.min(t.end+t.overscan,t.size-1),s=[],f=r;f<=o;f++)s.push(f);return s};jG=function(t,r,o,s){for(;t<=r;){var f=(t+r)/2|0,d=o(f);if(d<s)t=f+1;else if(d>s)r=f-1;else return f}return t>0?t-1:0}});var V4={};Ra(V4,{default:()=>QG});import{createElement as HG,PureComponent as VG}from"react";function ZG(e){var t=void 0,r=void 0,o=void 0,s=void 0,f=void 0,d=void 0,p=void 0,m=typeof document<"u"&&document.attachEvent;if(!m){d=function(M){var U=M.__resizeTriggers__,Y=U.firstElementChild,F=U.lastElementChild,ne=Y.firstElementChild;F.scrollLeft=F.scrollWidth,F.scrollTop=F.scrollHeight,ne.style.width=Y.offsetWidth+1+"px",ne.style.height=Y.offsetHeight+1+"px",Y.scrollLeft=Y.scrollWidth,Y.scrollTop=Y.scrollHeight},f=function(M){return M.offsetWidth!==M.__resizeLast__.width||M.offsetHeight!==M.__resizeLast__.height},p=function(M){if(!(M.target.className&&typeof M.target.className.indexOf=="function"&&M.target.className.indexOf("contract-trigger")<0&&M.target.className.indexOf("expand-trigger")<0)){var U=this;d(this),this.__resizeRAF__&&$C(this.__resizeRAF__),this.__resizeRAF__=qC(function(){f(U)&&(U.__resizeLast__.width=U.offsetWidth,U.__resizeLast__.height=U.offsetHeight,U.__resizeListeners__.forEach(function(ne){ne.call(U,M)}))})}};var y=!1,E="";o="animationstart";var w="Webkit Moz O ms".split(" "),k="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),O="";{var A=document.createElement("fakeelement");if(A.style.animationName!==void 0&&(y=!0),y===!1){for(var W=0;W<w.length;W++)if(A.style[w[W]+"AnimationName"]!==void 0){O=w[W],E="-"+O.toLowerCase()+"-",o=k[W],y=!0;break}}}r="resizeanim",t="@"+E+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",s=E+"animation: 1ms "+r+"; "}var P=function(M){if(!M.getElementById("detectElementResize")){var U=(t||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',Y=M.head||M.getElementsByTagName("head")[0],F=M.createElement("style");F.id="detectElementResize",F.type="text/css",e!=null&&F.setAttribute("nonce",e),F.styleSheet?F.styleSheet.cssText=U:F.appendChild(M.createTextNode(U)),Y.appendChild(F)}},R=function(M,U){if(m)M.attachEvent("onresize",U);else{if(!M.__resizeTriggers__){var Y=M.ownerDocument,F=da.getComputedStyle(M);F&&F.position==="static"&&(M.style.position="relative"),P(Y),M.__resizeLast__={},M.__resizeListeners__=[],(M.__resizeTriggers__=Y.createElement("div")).className="resize-triggers";var ne=Y.createElement("div");ne.className="expand-trigger",ne.appendChild(Y.createElement("div"));var ue=Y.createElement("div");ue.className="contract-trigger",M.__resizeTriggers__.appendChild(ne),M.__resizeTriggers__.appendChild(ue),M.appendChild(M.__resizeTriggers__),d(M),M.addEventListener("scroll",p,!0),o&&(M.__resizeTriggers__.__animationListener__=function(B){B.animationName===r&&d(M)},M.__resizeTriggers__.addEventListener(o,M.__resizeTriggers__.__animationListener__))}M.__resizeListeners__.push(U)}},D=function(M,U){if(m)M.detachEvent("onresize",U);else if(M.__resizeListeners__.splice(M.__resizeListeners__.indexOf(U),1),!M.__resizeListeners__.length){M.removeEventListener("scroll",p,!0),M.__resizeTriggers__.__animationListener__&&(M.__resizeTriggers__.removeEventListener(o,M.__resizeTriggers__.__animationListener__),M.__resizeTriggers__.__animationListener__=null);try{M.__resizeTriggers__=!M.removeChild(M.__resizeTriggers__)}catch{}}};return{addResizeListener:R,removeResizeListener:D}}var WG,$G,qG,GG,U4,YG,da,$C,qC,F4,VC,j4,WC,B4,H4,QG,W4=tt(()=>{G();WG=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$G=function(){function e(t,r){for(var o=0;o<r.length;o++){var s=r[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),qG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},GG=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},U4=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},YG=function(){function e(t,r){var o=[],s=!0,f=!1,d=void 0;try{for(var p=t[Symbol.iterator](),m;!(s=(m=p.next()).done)&&(o.push(m.value),!(r&&o.length===r));s=!0);}catch(y){f=!0,d=y}finally{try{!s&&p.return&&p.return()}finally{if(f)throw d}}return o}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),da=void 0;typeof window<"u"?da=window:typeof self<"u"?da=self:da=global;$C=null,qC=null,F4=20,VC=da.clearTimeout,j4=da.setTimeout,WC=da.cancelAnimationFrame||da.mozCancelAnimationFrame||da.webkitCancelAnimationFrame,B4=da.requestAnimationFrame||da.mozRequestAnimationFrame||da.webkitRequestAnimationFrame;WC==null||B4==null?($C=VC,qC=function(t){return j4(t,F4)}):($C=function(t){var r=YG(t,2),o=r[0],s=r[1];WC(o),VC(s)},qC=function(t){var r=B4(function(){VC(o),t()}),o=j4(function(){WC(r),t()},F4);return[r,o]});H4=function(e){GG(t,e);function t(){var r,o,s,f;WG(this,t);for(var d=arguments.length,p=Array(d),m=0;m<d;m++)p[m]=arguments[m];return f=(o=(s=U4(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(p))),s),s.state={height:s.props.defaultHeight||0,width:s.props.defaultWidth||0},s._onResize=function(){var y=s.props,E=y.disableHeight,w=y.disableWidth,k=y.onResize;if(s._parentNode){var O=s._parentNode.offsetHeight||0,A=s._parentNode.offsetWidth||0,W=window.getComputedStyle(s._parentNode)||{},P=parseInt(W.paddingLeft,10)||0,R=parseInt(W.paddingRight,10)||0,D=parseInt(W.paddingTop,10)||0,T=parseInt(W.paddingBottom,10)||0,M=O-D-T,U=A-P-R;(!E&&s.state.height!==M||!w&&s.state.width!==U)&&(s.setState({height:O-D-T,width:A-P-R}),k({height:O,width:A}))}},s._setRef=function(y){s._autoSizer=y},o),U4(s,f)}return $G(t,[{key:"componentDidMount",value:function(){var o=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=ZG(o),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var o=this.props,s=o.children,f=o.className,d=o.disableHeight,p=o.disableWidth,m=o.style,y=this.state,E=y.height,w=y.width,k={overflow:"visible"},O={},A=!1;return d||(E===0&&(A=!0),k.height=0,O.height=E),p||(w===0&&(A=!0),k.width=0,O.width=w),HG("div",{className:f,ref:this._setRef,style:qG({},k,m)},!A&&s(O))}}]),t}(VG);H4.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};QG=H4});function mu(){return mu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},mu.apply(this,arguments)}var $4=tt(()=>{G()});function GC(e){if(Array.isArray(e))return e}var q4=tt(()=>{G()});function YC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],s=!0,f=!1,d,p;try{for(r=r.call(e);!(s=(d=r.next()).done)&&(o.push(d.value),!(t&&o.length===t));s=!0);}catch(m){f=!0,p=m}finally{try{!s&&r.return!=null&&r.return()}finally{if(f)throw p}}return o}}var G4=tt(()=>{G()});function Ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var ZC=tt(()=>{G()});function Lh(e,t){if(!!e){if(typeof e=="string")return Ef(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ef(e,t)}}var QC=tt(()=>{G();ZC()});function KC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
152
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Y4=tt(()=>{G()});function d0(e,t){return GC(e)||YC(e,t)||Lh(e,t)||KC()}var Z4=tt(()=>{G();q4();G4();QC();Y4()});function Ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var JC=tt(()=>{G()});function Oh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&o.push.apply(o,Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),o.forEach(function(s){Ft(e,s,r[s])})}return e}var Q4=tt(()=>{G();JC()});function gu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var K4=tt(()=>{G()});function J4(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function yu(e,t,r){return t&&J4(e.prototype,t),r&&J4(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var X4=tt(()=>{G()});function Dh(e){return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dh(e)}var e6=tt(()=>{G()});function vt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var XC=tt(()=>{G()});function Ph(e,t){if(t&&(Dh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vt(e)}var t6=tt(()=>{G();e6();XC()});function bu(e){return bu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},bu(e)}var n6=tt(()=>{G()});function Ah(e,t){return Ah=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},Ah(e,t)}var r6=tt(()=>{G()});function Nh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ah(e,t)}var i6=tt(()=>{G();r6()});var o6=Mt((Hee,a6)=>{"use strict";G();var KG=process.env.NODE_ENV,JG=function(e,t,r,o,s,f,d,p){if(KG!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var m;if(t===void 0)m=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var y=[r,o,s,f,d,p],E=0;m=new Error(t.replace(/%s/g,function(){return y[E++]})),m.name="Invariant Violation"}throw m.framesToPop=1,m}};a6.exports=JG});function e_(e){if(Array.isArray(e))return Ef(e)}var l6=tt(()=>{G();ZC()});function t_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}var s6=tt(()=>{G()});function n_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
153
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u6=tt(()=>{G()});function r_(e){return e_(e)||t_(e)||Lh(e)||n_()}var c6=tt(()=>{G();l6();s6();QC();u6()});var d6=Mt(Jt=>{"use strict";G();var gr=typeof Symbol=="function"&&Symbol.for,i_=gr?Symbol.for("react.element"):60103,a_=gr?Symbol.for("react.portal"):60106,p0=gr?Symbol.for("react.fragment"):60107,h0=gr?Symbol.for("react.strict_mode"):60108,v0=gr?Symbol.for("react.profiler"):60114,m0=gr?Symbol.for("react.provider"):60109,g0=gr?Symbol.for("react.context"):60110,o_=gr?Symbol.for("react.async_mode"):60111,y0=gr?Symbol.for("react.concurrent_mode"):60111,b0=gr?Symbol.for("react.forward_ref"):60112,x0=gr?Symbol.for("react.suspense"):60113,XG=gr?Symbol.for("react.suspense_list"):60120,S0=gr?Symbol.for("react.memo"):60115,E0=gr?Symbol.for("react.lazy"):60116,eY=gr?Symbol.for("react.block"):60121,tY=gr?Symbol.for("react.fundamental"):60117,nY=gr?Symbol.for("react.responder"):60118,rY=gr?Symbol.for("react.scope"):60119;function Wi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case i_:switch(e=e.type,e){case o_:case y0:case p0:case v0:case h0:case x0:return e;default:switch(e=e&&e.$$typeof,e){case g0:case b0:case E0:case S0:case m0:return e;default:return t}}case a_:return t}}}function f6(e){return Wi(e)===y0}Jt.AsyncMode=o_;Jt.ConcurrentMode=y0;Jt.ContextConsumer=g0;Jt.ContextProvider=m0;Jt.Element=i_;Jt.ForwardRef=b0;Jt.Fragment=p0;Jt.Lazy=E0;Jt.Memo=S0;Jt.Portal=a_;Jt.Profiler=v0;Jt.StrictMode=h0;Jt.Suspense=x0;Jt.isAsyncMode=function(e){return f6(e)||Wi(e)===o_};Jt.isConcurrentMode=f6;Jt.isContextConsumer=function(e){return Wi(e)===g0};Jt.isContextProvider=function(e){return Wi(e)===m0};Jt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===i_};Jt.isForwardRef=function(e){return Wi(e)===b0};Jt.isFragment=function(e){return Wi(e)===p0};Jt.isLazy=function(e){return Wi(e)===E0};Jt.isMemo=function(e){return Wi(e)===S0};Jt.isPortal=function(e){return Wi(e)===a_};Jt.isProfiler=function(e){return Wi(e)===v0};Jt.isStrictMode=function(e){return Wi(e)===h0};Jt.isSuspense=function(e){return Wi(e)===x0};Jt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===p0||e===y0||e===v0||e===h0||e===x0||e===XG||typeof e=="object"&&e!==null&&(e.$$typeof===E0||e.$$typeof===S0||e.$$typeof===m0||e.$$typeof===g0||e.$$typeof===b0||e.$$typeof===tY||e.$$typeof===nY||e.$$typeof===rY||e.$$typeof===eY)};Jt.typeOf=Wi});var p6=Mt(Xt=>{"use strict";G();process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,y=e?Symbol.for("react.concurrent_mode"):60111,E=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,k=e?Symbol.for("react.suspense_list"):60120,O=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,W=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function T(ze){return typeof ze=="string"||typeof ze=="function"||ze===o||ze===y||ze===f||ze===s||ze===w||ze===k||typeof ze=="object"&&ze!==null&&(ze.$$typeof===A||ze.$$typeof===O||ze.$$typeof===d||ze.$$typeof===p||ze.$$typeof===E||ze.$$typeof===P||ze.$$typeof===R||ze.$$typeof===D||ze.$$typeof===W)}function M(ze){if(typeof ze=="object"&&ze!==null){var jt=ze.$$typeof;switch(jt){case t:var en=ze.type;switch(en){case m:case y:case o:case f:case s:case w:return en;default:var nr=en&&en.$$typeof;switch(nr){case p:case E:case A:case O:case d:return nr;default:return jt}}case r:return jt}}}var U=m,Y=y,F=p,ne=d,ue=t,Q=E,B=o,ae=A,H=O,K=r,re=f,le=s,se=w,ce=!1;function de(ze){return ce||(ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ve(ze)||M(ze)===m}function ve(ze){return M(ze)===y}function Ce(ze){return M(ze)===p}function _e(ze){return M(ze)===d}function Ae(ze){return typeof ze=="object"&&ze!==null&&ze.$$typeof===t}function Ye(ze){return M(ze)===E}function Ne(ze){return M(ze)===o}function ft(ze){return M(ze)===A}function St(ze){return M(ze)===O}function Yt(ze){return M(ze)===r}function $r(ze){return M(ze)===f}function mt(ze){return M(ze)===s}function Lt(ze){return M(ze)===w}Xt.AsyncMode=U,Xt.ConcurrentMode=Y,Xt.ContextConsumer=F,Xt.ContextProvider=ne,Xt.Element=ue,Xt.ForwardRef=Q,Xt.Fragment=B,Xt.Lazy=ae,Xt.Memo=H,Xt.Portal=K,Xt.Profiler=re,Xt.StrictMode=le,Xt.Suspense=se,Xt.isAsyncMode=de,Xt.isConcurrentMode=ve,Xt.isContextConsumer=Ce,Xt.isContextProvider=_e,Xt.isElement=Ae,Xt.isForwardRef=Ye,Xt.isFragment=Ne,Xt.isLazy=ft,Xt.isMemo=St,Xt.isPortal=Yt,Xt.isProfiler=$r,Xt.isStrictMode=mt,Xt.isSuspense=Lt,Xt.isValidElementType=T,Xt.typeOf=M}()});var s_=Mt((ete,l_)=>{"use strict";G();process.env.NODE_ENV==="production"?l_.exports=d6():l_.exports=p6()});var w0=Mt((tte,h6)=>{"use strict";G();var iY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";h6.exports=iY});var u_=Mt((nte,v6)=>{G();v6.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var x6=Mt((rte,b6)=>{"use strict";G();var c_=function(){};process.env.NODE_ENV!=="production"&&(m6=w0(),C0={},g6=u_(),c_=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});var m6,C0,g6;function y6(e,t,r,o,s){if(process.env.NODE_ENV!=="production"){for(var f in e)if(g6(e,f)){var d;try{if(typeof e[f]!="function"){var p=Error((o||"React class")+": "+r+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}d=e[f](t,f,o,r,null,m6)}catch(y){d=y}if(d&&!(d instanceof Error)&&c_((o||"React class")+": type specification of "+r+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in C0)){C0[d.message]=!0;var m=s?s():"";c_("Failed "+r+" type: "+d.message+(m!=null?m:""))}}}}y6.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(C0={})};b6.exports=y6});var w6=Mt((ite,E6)=>{"use strict";G();var aY=s_(),oY=ag(),wf=w0(),f_=u_(),S6=x6(),Cf=function(){};process.env.NODE_ENV!=="production"&&(Cf=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}});function _0(){return null}E6.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function s(H){var K=H&&(r&&H[r]||H[o]);if(typeof K=="function")return K}var f="<<anonymous>>",d={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:w(),arrayOf:k,element:O(),elementType:A(),instanceOf:W,node:T(),objectOf:R,oneOf:P,oneOfType:D,shape:U,exact:Y};function p(H,K){return H===K?H!==0||1/H===1/K:H!==H&&K!==K}function m(H,K){this.message=H,this.data=K&&typeof K=="object"?K:{},this.stack=""}m.prototype=Error.prototype;function y(H){if(process.env.NODE_ENV!=="production")var K={},re=0;function le(ce,de,ve,Ce,_e,Ae,Ye){if(Ce=Ce||f,Ae=Ae||ve,Ye!==wf){if(t){var Ne=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ne.name="Invariant Violation",Ne}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ft=Ce+":"+ve;!K[ft]&&re<3&&(Cf("You are manually calling a React.PropTypes validation function for the `"+Ae+"` prop on `"+Ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),K[ft]=!0,re++)}}return de[ve]==null?ce?de[ve]===null?new m("The "+_e+" `"+Ae+"` is marked as required "+("in `"+Ce+"`, but its value is `null`.")):new m("The "+_e+" `"+Ae+"` is marked as required in "+("`"+Ce+"`, but its value is `undefined`.")):null:H(de,ve,Ce,_e,Ae)}var se=le.bind(null,!1);return se.isRequired=le.bind(null,!0),se}function E(H){function K(re,le,se,ce,de,ve){var Ce=re[le],_e=ue(Ce);if(_e!==H){var Ae=Q(Ce);return new m("Invalid "+ce+" `"+de+"` of type "+("`"+Ae+"` supplied to `"+se+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return y(K)}function w(){return y(_0)}function k(H){function K(re,le,se,ce,de){if(typeof H!="function")return new m("Property `"+de+"` of component `"+se+"` has invalid PropType notation inside arrayOf.");var ve=re[le];if(!Array.isArray(ve)){var Ce=ue(ve);return new m("Invalid "+ce+" `"+de+"` of type "+("`"+Ce+"` supplied to `"+se+"`, expected an array."))}for(var _e=0;_e<ve.length;_e++){var Ae=H(ve,_e,se,ce,de+"["+_e+"]",wf);if(Ae instanceof Error)return Ae}return null}return y(K)}function O(){function H(K,re,le,se,ce){var de=K[re];if(!e(de)){var ve=ue(de);return new m("Invalid "+se+" `"+ce+"` of type "+("`"+ve+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return y(H)}function A(){function H(K,re,le,se,ce){var de=K[re];if(!aY.isValidElementType(de)){var ve=ue(de);return new m("Invalid "+se+" `"+ce+"` of type "+("`"+ve+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return y(H)}function W(H){function K(re,le,se,ce,de){if(!(re[le]instanceof H)){var ve=H.name||f,Ce=ae(re[le]);return new m("Invalid "+ce+" `"+de+"` of type "+("`"+Ce+"` supplied to `"+se+"`, expected ")+("instance of `"+ve+"`."))}return null}return y(K)}function P(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Cf("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):Cf("Invalid argument supplied to oneOf, expected an array.")),_0;function K(re,le,se,ce,de){for(var ve=re[le],Ce=0;Ce<H.length;Ce++)if(p(ve,H[Ce]))return null;var _e=JSON.stringify(H,function(Ye,Ne){var ft=Q(Ne);return ft==="symbol"?String(Ne):Ne});return new m("Invalid "+ce+" `"+de+"` of value `"+String(ve)+"` "+("supplied to `"+se+"`, expected one of "+_e+"."))}return y(K)}function R(H){function K(re,le,se,ce,de){if(typeof H!="function")return new m("Property `"+de+"` of component `"+se+"` has invalid PropType notation inside objectOf.");var ve=re[le],Ce=ue(ve);if(Ce!=="object")return new m("Invalid "+ce+" `"+de+"` of type "+("`"+Ce+"` supplied to `"+se+"`, expected an object."));for(var _e in ve)if(f_(ve,_e)){var Ae=H(ve,_e,se,ce,de+"."+_e,wf);if(Ae instanceof Error)return Ae}return null}return y(K)}function D(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&Cf("Invalid argument supplied to oneOfType, expected an instance of array."),_0;for(var K=0;K<H.length;K++){var re=H[K];if(typeof re!="function")return Cf("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(re)+" at index "+K+"."),_0}function le(se,ce,de,ve,Ce){for(var _e=[],Ae=0;Ae<H.length;Ae++){var Ye=H[Ae],Ne=Ye(se,ce,de,ve,Ce,wf);if(Ne==null)return null;Ne.data&&f_(Ne.data,"expectedType")&&_e.push(Ne.data.expectedType)}var ft=_e.length>0?", expected one of type ["+_e.join(", ")+"]":"";return new m("Invalid "+ve+" `"+Ce+"` supplied to "+("`"+de+"`"+ft+"."))}return y(le)}function T(){function H(K,re,le,se,ce){return F(K[re])?null:new m("Invalid "+se+" `"+ce+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return y(H)}function M(H,K,re,le,se){return new m((H||"React class")+": "+K+" type `"+re+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function U(H){function K(re,le,se,ce,de){var ve=re[le],Ce=ue(ve);if(Ce!=="object")return new m("Invalid "+ce+" `"+de+"` of type `"+Ce+"` "+("supplied to `"+se+"`, expected `object`."));for(var _e in H){var Ae=H[_e];if(typeof Ae!="function")return M(se,ce,de,_e,Q(Ae));var Ye=Ae(ve,_e,se,ce,de+"."+_e,wf);if(Ye)return Ye}return null}return y(K)}function Y(H){function K(re,le,se,ce,de){var ve=re[le],Ce=ue(ve);if(Ce!=="object")return new m("Invalid "+ce+" `"+de+"` of type `"+Ce+"` "+("supplied to `"+se+"`, expected `object`."));var _e=oY({},re[le],H);for(var Ae in _e){var Ye=H[Ae];if(f_(H,Ae)&&typeof Ye!="function")return M(se,ce,de,Ae,Q(Ye));if(!Ye)return new m("Invalid "+ce+" `"+de+"` key `"+Ae+"` supplied to `"+se+"`.\nBad object: "+JSON.stringify(re[le],null," ")+`
154
- Valid keys: `+JSON.stringify(Object.keys(H),null," "));var Ne=Ye(ve,Ae,se,ce,de+"."+Ae,wf);if(Ne)return Ne}return null}return y(K)}function F(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(F);if(H===null||e(H))return!0;var K=s(H);if(K){var re=K.call(H),le;if(K!==H.entries){for(;!(le=re.next()).done;)if(!F(le.value))return!1}else for(;!(le=re.next()).done;){var se=le.value;if(se&&!F(se[1]))return!1}}else return!1;return!0;default:return!1}}function ne(H,K){return H==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function ue(H){var K=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":ne(K,H)?"symbol":K}function Q(H){if(typeof H>"u"||H===null)return""+H;var K=ue(H);if(K==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return K}function B(H){var K=Q(H);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function ae(H){return!H.constructor||!H.constructor.name?f:H.constructor.name}return d.checkPropTypes=S6,d.resetWarningCache=S6.resetWarningCache,d.PropTypes=d,d}});var T6=Mt((ate,M6)=>{"use strict";G();var lY=w0();function C6(){}function _6(){}_6.resetWarningCache=C6;M6.exports=function(){function e(o,s,f,d,p,m){if(m!==lY){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:_6,resetWarningCache:C6};return r.PropTypes=r,r}});var L6=Mt((ote,d_)=>{G();process.env.NODE_ENV!=="production"?(k6=s_(),R6=!0,d_.exports=w6()(k6.isElement,R6)):d_.exports=T6()();var k6,R6});var y_={};Ra(y_,{SortableContainer:()=>TY,SortableElement:()=>RY,SortableHandle:()=>bY,arrayMove:()=>fY,sortableContainer:()=>TY,sortableElement:()=>RY,sortableHandle:()=>bY});import{createRef as v_,createElement as R0,Component as m_,createContext as sY}from"react";function cY(e,t){var r=e.node.sortableInfo.index,o=t.node.sortableInfo.index;return r-o}function fY(e,t,r){return process.env.NODE_ENV!=="production"&&typeof console<"u"&&console.warn("Deprecation warning: arrayMove will no longer be exported by 'react-sortable-hoc' in the next major release. Please install the `array-move` package locally instead. https://www.npmjs.com/package/array-move"),e=e.slice(),e.splice(r<0?e.length+r:r,0,e.splice(t,1)[0]),e}function A6(e,t){return Object.keys(e).reduce(function(r,o){return t.indexOf(o)===-1&&(r[o]=e[o]),r},{})}function M0(e,t){Object.keys(t).forEach(function(r){e.style[r]=t[r]})}function T0(e,t){e.style["".concat(N6,"Transform")]=t==null?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function p_(e,t){e.style["".concat(N6,"TransitionDuration")]=t==null?"":"".concat(t,"ms")}function Ih(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function O6(e,t,r){return Math.max(e,Math.min(r,t))}function Mf(e){return e.substr(-2)==="px"?parseFloat(e):0}function dY(e){var t=window.getComputedStyle(e);return{bottom:Mf(t.marginBottom),left:Mf(t.marginLeft),right:Mf(t.marginRight),top:Mf(t.marginTop)}}function g_(e,t){var r=t.displayName||t.name;return r?"".concat(e,"(").concat(r,")"):e}function h_(e,t){var r=e.getBoundingClientRect();return{top:r.top+t.top,left:r.left+t.left}}function zh(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function pY(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function k0(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!!e){var o={left:r.left+e.offsetLeft,top:r.top+e.offsetTop};return e.parentNode===t?o:k0(e.parentNode,t,o)}}function hY(e,t,r){return e<r&&e>t?e-1:e>r&&e<t?e+1:e}function D6(e){var t=e.lockOffset,r=e.width,o=e.height,s=t,f=t,d="px";if(typeof t=="string"){var p=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);(0,vs.default)(p!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),s=parseFloat(t),f=parseFloat(t),d=p[1]}return(0,vs.default)(isFinite(s)&&isFinite(f),"lockOffset value should be a finite. Given %s",t),d==="%"&&(s=s*r/100,f=f*o/100),{x:s,y:f}}function vY(e){var t=e.height,r=e.width,o=e.lockOffset,s=Array.isArray(o)?o:[o,o];(0,vs.default)(s.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",o);var f=d0(s,2),d=f[0],p=f[1];return[D6({height:t,lockOffset:d,width:r}),D6({height:t,lockOffset:p,width:r})]}function mY(e){var t=window.getComputedStyle(e),r=/(auto|scroll)/,o=["overflow","overflowX","overflowY"];return o.find(function(s){return r.test(t[s])})}function z6(e){return e instanceof HTMLElement?mY(e)?e:z6(e.parentNode):null}function gY(e){var t=window.getComputedStyle(e);return t.display==="grid"?{x:Mf(t.gridColumnGap),y:Mf(t.gridRowGap)}:{x:0,y:0}}function yY(e){var t="input, textarea, select, canvas, [contenteditable]",r=e.querySelectorAll(t),o=e.cloneNode(!0),s=r_(o.querySelectorAll(t));return s.forEach(function(f,d){if(f.type!=="file"&&(f.value=r[d].value),f.type==="radio"&&f.name&&(f.name="__sortableClone__".concat(f.name)),f.tagName===Su.Canvas&&r[d].width>0&&r[d].height>0){var p=f.getContext("2d");p.drawImage(r[d],0,0)}}),o}function bY(e){var t,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=t=function(s){Nh(f,s);function f(){var d,p;gu(this,f);for(var m=arguments.length,y=new Array(m),E=0;E<m;E++)y[E]=arguments[E];return p=Ph(this,(d=bu(f)).call.apply(d,[this].concat(y))),Ft(vt(vt(p)),"wrappedInstance",v_()),p}return yu(f,[{key:"componentDidMount",value:function(){var p=(0,L0.findDOMNode)(this);p.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return(0,vs.default)(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var p=o.withRef?this.wrappedInstance:null;return R0(e,mu({ref:p},this.props))}}]),f}(m_),Ft(t,"displayName",g_("sortableHandle",e)),r}function P6(e){return e.sortableHandle!=null}function SY(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}}function EY(e){var t=[Su.Input,Su.Textarea,Su.Select,Su.Option,Su.Button];return!!(t.indexOf(e.target.tagName)!==-1||Ih(e.target,function(r){return r.contentEditable==="true"}))}function _Y(e){(0,vs.default)(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function MY(e,t){try{var r=e()}catch(o){return t(!0,o)}return r&&r.then?r.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}function TY(e){var t,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=t=function(s){Nh(f,s);function f(d){var p;gu(this,f),p=Ph(this,bu(f).call(this,d)),Ft(vt(vt(p)),"state",{}),Ft(vt(vt(p)),"handleStart",function(y){var E=p.props,w=E.distance,k=E.shouldCancelStart;if(!(y.button===2||k(y))){p.touched=!0,p.position=zh(y);var O=Ih(y.target,function(T){return T.sortableInfo!=null});if(O&&O.sortableInfo&&p.nodeIsChild(O)&&!p.state.sorting){var A=p.props.useDragHandle,W=O.sortableInfo,P=W.index,R=W.collection,D=W.disabled;if(D||A&&!Ih(y.target,P6))return;p.manager.active={collection:R,index:P},!pY(y)&&y.target.tagName===Su.Anchor&&y.preventDefault(),w||(p.props.pressDelay===0?p.handlePress(y):p.pressTimer=setTimeout(function(){return p.handlePress(y)},p.props.pressDelay))}}}),Ft(vt(vt(p)),"nodeIsChild",function(y){return y.sortableInfo.manager===p.manager}),Ft(vt(vt(p)),"handleMove",function(y){var E=p.props,w=E.distance,k=E.pressThreshold;if(!p.state.sorting&&p.touched&&!p._awaitingUpdateBeforeSortStart){var O=zh(y),A={x:p.position.x-O.x,y:p.position.y-O.y},W=Math.abs(A.x)+Math.abs(A.y);p.delta=A,!w&&(!k||W>=k)?(clearTimeout(p.cancelTimer),p.cancelTimer=setTimeout(p.cancel,0)):w&&W>=w&&p.manager.isActive()&&p.handlePress(y)}}),Ft(vt(vt(p)),"handleEnd",function(){p.touched=!1,p.cancel()}),Ft(vt(vt(p)),"cancel",function(){var y=p.props.distance,E=p.state.sorting;E||(y||clearTimeout(p.pressTimer),p.manager.active=null)}),Ft(vt(vt(p)),"handlePress",function(y){try{var E=p.manager.getActive(),w=function(){if(E){var k=function(){var Q=U.sortableInfo.index,B=dY(U),ae=gY(p.container),H=p.scrollContainer.getBoundingClientRect(),K=W({index:Q,node:U,collection:Y});if(p.node=U,p.margin=B,p.gridGap=ae,p.width=K.width,p.height=K.height,p.marginOffset={x:p.margin.left+p.margin.right+p.gridGap.x,y:Math.max(p.margin.top,p.margin.bottom,p.gridGap.y)},p.boundingClientRect=U.getBoundingClientRect(),p.containerBoundingRect=H,p.index=Q,p.newIndex=Q,p.axis={x:A.indexOf("x")>=0,y:A.indexOf("y")>=0},p.offsetEdge=k0(U,p.container),F?p.initialOffset=zh(Oh({},y,{pageX:p.boundingClientRect.left,pageY:p.boundingClientRect.top})):p.initialOffset=zh(y),p.initialScroll={left:p.scrollContainer.scrollLeft,top:p.scrollContainer.scrollTop},p.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},p.helper=p.helperContainer.appendChild(yY(U)),M0(p.helper,{boxSizing:"border-box",height:"".concat(p.height,"px"),left:"".concat(p.boundingClientRect.left-B.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(p.boundingClientRect.top-B.top,"px"),width:"".concat(p.width,"px")}),F&&p.helper.focus(),R&&(p.sortableGhost=U,M0(U,{opacity:0,visibility:"hidden"})),p.minTranslate={},p.maxTranslate={},F){var re=M?{top:0,left:0,width:p.contentWindow.innerWidth,height:p.contentWindow.innerHeight}:p.containerBoundingRect,le=re.top,se=re.left,ce=re.width,de=re.height,ve=le+de,Ce=se+ce;p.axis.x&&(p.minTranslate.x=se-p.boundingClientRect.left,p.maxTranslate.x=Ce-(p.boundingClientRect.left+p.width)),p.axis.y&&(p.minTranslate.y=le-p.boundingClientRect.top,p.maxTranslate.y=ve-(p.boundingClientRect.top+p.height))}else p.axis.x&&(p.minTranslate.x=(M?0:H.left)-p.boundingClientRect.left-p.width/2,p.maxTranslate.x=(M?p.contentWindow.innerWidth:H.left+H.width)-p.boundingClientRect.left-p.width/2),p.axis.y&&(p.minTranslate.y=(M?0:H.top)-p.boundingClientRect.top-p.height/2,p.maxTranslate.y=(M?p.contentWindow.innerHeight:H.top+H.height)-p.boundingClientRect.top-p.height/2);P&&P.split(" ").forEach(function(_e){return p.helper.classList.add(_e)}),p.listenerNode=y.touches?y.target:p.contentWindow,F?(p.listenerNode.addEventListener("wheel",p.handleKeyEnd,!0),p.listenerNode.addEventListener("mousedown",p.handleKeyEnd,!0),p.listenerNode.addEventListener("keydown",p.handleKeyDown)):(_f.move.forEach(function(_e){return p.listenerNode.addEventListener(_e,p.handleSortMove,!1)}),_f.end.forEach(function(_e){return p.listenerNode.addEventListener(_e,p.handleSortEnd,!1)})),p.setState({sorting:!0,sortingIndex:Q}),T&&T({node:U,index:Q,collection:Y,isKeySorting:F,nodes:p.manager.getOrderedRefs(),helper:p.helper},y),F&&p.keyMove(0)},O=p.props,A=O.axis,W=O.getHelperDimensions,P=O.helperClass,R=O.hideSortableGhost,D=O.updateBeforeSortStart,T=O.onSortStart,M=O.useWindowAsScrollContainer,U=E.node,Y=E.collection,F=p.manager.isKeySorting,ne=function(){if(typeof D=="function"){p._awaitingUpdateBeforeSortStart=!0;var ue=MY(function(){var Q=U.sortableInfo.index;return Promise.resolve(D({collection:Y,index:Q,node:U,isKeySorting:F},y)).then(function(){})},function(Q,B){if(p._awaitingUpdateBeforeSortStart=!1,Q)throw B;return B});if(ue&&ue.then)return ue.then(function(){})}}();return ne&&ne.then?ne.then(k):k(ne)}}();return Promise.resolve(w&&w.then?w.then(function(){}):void 0)}catch(k){return Promise.reject(k)}}),Ft(vt(vt(p)),"handleSortMove",function(y){var E=p.props.onSortMove;typeof y.preventDefault=="function"&&y.cancelable&&y.preventDefault(),p.updateHelperPosition(y),p.animateNodes(),p.autoscroll(),E&&E(y)}),Ft(vt(vt(p)),"handleSortEnd",function(y){var E=p.props,w=E.hideSortableGhost,k=E.onSortEnd,O=p.manager,A=O.active.collection,W=O.isKeySorting,P=p.manager.getOrderedRefs();p.listenerNode&&(W?(p.listenerNode.removeEventListener("wheel",p.handleKeyEnd,!0),p.listenerNode.removeEventListener("mousedown",p.handleKeyEnd,!0),p.listenerNode.removeEventListener("keydown",p.handleKeyDown)):(_f.move.forEach(function(U){return p.listenerNode.removeEventListener(U,p.handleSortMove)}),_f.end.forEach(function(U){return p.listenerNode.removeEventListener(U,p.handleSortEnd)}))),p.helper.parentNode.removeChild(p.helper),w&&p.sortableGhost&&M0(p.sortableGhost,{opacity:"",visibility:""});for(var R=0,D=P.length;R<D;R++){var T=P[R],M=T.node;T.edgeOffset=null,T.boundingClientRect=null,T0(M,null),p_(M,null),T.translate=null}p.autoScroller.clear(),p.manager.active=null,p.manager.isKeySorting=!1,p.setState({sorting:!1,sortingIndex:null}),typeof k=="function"&&k({collection:A,newIndex:p.newIndex,oldIndex:p.index,isKeySorting:W,nodes:P},y),p.touched=!1}),Ft(vt(vt(p)),"autoscroll",function(){var y=p.props.disableAutoscroll,E=p.manager.isKeySorting;if(y){p.autoScroller.clear();return}if(E){var w=Oh({},p.translate),k=0,O=0;p.axis.x&&(w.x=Math.min(p.maxTranslate.x,Math.max(p.minTranslate.x,p.translate.x)),k=p.translate.x-w.x),p.axis.y&&(w.y=Math.min(p.maxTranslate.y,Math.max(p.minTranslate.y,p.translate.y)),O=p.translate.y-w.y),p.translate=w,T0(p.helper,p.translate),p.scrollContainer.scrollLeft+=k,p.scrollContainer.scrollTop+=O;return}p.autoScroller.update({height:p.height,maxTranslate:p.maxTranslate,minTranslate:p.minTranslate,translate:p.translate,width:p.width})}),Ft(vt(vt(p)),"onAutoScroll",function(y){p.translate.x+=y.left,p.translate.y+=y.top,p.animateNodes()}),Ft(vt(vt(p)),"handleKeyDown",function(y){var E=y.keyCode,w=p.props,k=w.shouldCancelStart,O=w.keyCodes,A=O===void 0?{}:O,W=Oh({},U6,A);p.manager.active&&!p.manager.isKeySorting||!p.manager.active&&(!W.lift.includes(E)||k(y)||!p.isValidSortingTarget(y))||(y.stopPropagation(),y.preventDefault(),W.lift.includes(E)&&!p.manager.active?p.keyLift(y):W.drop.includes(E)&&p.manager.active?p.keyDrop(y):W.cancel.includes(E)?(p.newIndex=p.manager.active.index,p.keyDrop(y)):W.up.includes(E)?p.keyMove(-1):W.down.includes(E)&&p.keyMove(1))}),Ft(vt(vt(p)),"keyLift",function(y){var E=y.target,w=Ih(E,function(W){return W.sortableInfo!=null}),k=w.sortableInfo,O=k.index,A=k.collection;p.initialFocusedNode=E,p.manager.isKeySorting=!0,p.manager.active={index:O,collection:A},p.handlePress(y)}),Ft(vt(vt(p)),"keyMove",function(y){var E=p.manager.getOrderedRefs(),w=E[E.length-1].node.sortableInfo.index,k=p.newIndex+y,O=p.newIndex;if(!(k<0||k>w)){p.prevIndex=O,p.newIndex=k;var A=hY(p.newIndex,p.prevIndex,p.index),W=E.find(function(F){var ne=F.node;return ne.sortableInfo.index===A}),P=W.node,R=p.containerScrollDelta,D=W.boundingClientRect||h_(P,R),T=W.translate||{x:0,y:0},M={top:D.top+T.y-R.top,left:D.left+T.x-R.left},U=O<k,Y={x:U&&p.axis.x?P.offsetWidth-p.width:0,y:U&&p.axis.y?P.offsetHeight-p.height:0};p.handleSortMove({pageX:M.left+Y.x,pageY:M.top+Y.y,ignoreTransition:y===0})}}),Ft(vt(vt(p)),"keyDrop",function(y){p.handleSortEnd(y),p.initialFocusedNode&&p.initialFocusedNode.focus()}),Ft(vt(vt(p)),"handleKeyEnd",function(y){p.manager.active&&p.keyDrop(y)}),Ft(vt(vt(p)),"isValidSortingTarget",function(y){var E=p.props.useDragHandle,w=y.target,k=Ih(w,function(O){return O.sortableInfo!=null});return k&&k.sortableInfo&&!k.sortableInfo.disabled&&(E?P6(w):w.sortableInfo)});var m=new uY;return _Y(d),p.manager=m,p.wrappedInstance=v_(),p.sortableContextValue={manager:m},p.events={end:p.handleEnd,move:p.handleMove,start:p.handleStart},p}return yu(f,[{key:"componentDidMount",value:function(){var p=this,m=this.props.useWindowAsScrollContainer,y=this.getContainer();Promise.resolve(y).then(function(E){p.container=E,p.document=p.container.ownerDocument||document;var w=p.props.contentWindow||p.document.defaultView||window;p.contentWindow=typeof w=="function"?w():w,p.scrollContainer=m?p.document.scrollingElement||p.document.documentElement:z6(p.container)||p.container,p.autoScroller=new xY(p.scrollContainer,p.onAutoScroll),Object.keys(p.events).forEach(function(k){return _f[k].forEach(function(O){return p.container.addEventListener(O,p.events[k],!1)})}),p.container.addEventListener("keydown",p.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var p=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!!this.container&&(Object.keys(this.events).forEach(function(m){return _f[m].forEach(function(y){return p.container.removeEventListener(y,p.events[m])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(p){var m=this.props,y=m.lockAxis,E=m.lockOffset,w=m.lockToContainerEdges,k=m.transitionDuration,O=m.keyboardSortingTransitionDuration,A=O===void 0?k:O,W=this.manager.isKeySorting,P=p.ignoreTransition,R=zh(p),D={x:R.x-this.initialOffset.x,y:R.y-this.initialOffset.y};if(D.y-=window.pageYOffset-this.initialWindowScroll.top,D.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=D,w){var T=vY({height:this.height,lockOffset:E,width:this.width}),M=d0(T,2),U=M[0],Y=M[1],F={x:this.width/2-U.x,y:this.height/2-U.y},ne={x:this.width/2-Y.x,y:this.height/2-Y.y};D.x=O6(this.minTranslate.x+F.x,this.maxTranslate.x-ne.x,D.x),D.y=O6(this.minTranslate.y+F.y,this.maxTranslate.y-ne.y,D.y)}y==="x"?D.y=0:y==="y"&&(D.x=0),W&&A&&!P&&p_(this.helper,A),T0(this.helper,D)}},{key:"animateNodes",value:function(){var p=this.props,m=p.transitionDuration,y=p.hideSortableGhost,E=p.onSortOver,w=this.containerScrollDelta,k=this.windowScrollDelta,O=this.manager.getOrderedRefs(),A={left:this.offsetEdge.left+this.translate.x+w.left,top:this.offsetEdge.top+this.translate.y+w.top},W=this.manager.isKeySorting,P=this.newIndex;this.newIndex=null;for(var R=0,D=O.length;R<D;R++){var T=O[R].node,M=T.sortableInfo.index,U=T.offsetWidth,Y=T.offsetHeight,F={height:this.height>Y?Y/2:this.height/2,width:this.width>U?U/2:this.width/2},ne=W&&M>this.index&&M<=P,ue=W&&M<this.index&&M>=P,Q={x:0,y:0},B=O[R].edgeOffset;B||(B=k0(T,this.container),O[R].edgeOffset=B,W&&(O[R].boundingClientRect=h_(T,w)));var ae=R<O.length-1&&O[R+1],H=R>0&&O[R-1];if(ae&&!ae.edgeOffset&&(ae.edgeOffset=k0(ae.node,this.container),W&&(ae.boundingClientRect=h_(ae.node,w))),M===this.index){y&&(this.sortableGhost=T,M0(T,{opacity:0,visibility:"hidden"}));continue}m&&p_(T,m),this.axis.x?this.axis.y?ue||M<this.index&&(A.left+k.left-F.width<=B.left&&A.top+k.top<=B.top+F.height||A.top+k.top+F.height<=B.top)?(Q.x=this.width+this.marginOffset.x,B.left+Q.x>this.containerBoundingRect.width-F.width&&ae&&(Q.x=ae.edgeOffset.left-B.left,Q.y=ae.edgeOffset.top-B.top),this.newIndex===null&&(this.newIndex=M)):(ne||M>this.index&&(A.left+k.left+F.width>=B.left&&A.top+k.top+F.height>=B.top||A.top+k.top+F.height>=B.top+Y))&&(Q.x=-(this.width+this.marginOffset.x),B.left+Q.x<this.containerBoundingRect.left+F.width&&H&&(Q.x=H.edgeOffset.left-B.left,Q.y=H.edgeOffset.top-B.top),this.newIndex=M):ne||M>this.index&&A.left+k.left+F.width>=B.left?(Q.x=-(this.width+this.marginOffset.x),this.newIndex=M):(ue||M<this.index&&A.left+k.left<=B.left+F.width)&&(Q.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=M)):this.axis.y&&(ne||M>this.index&&A.top+k.top+F.height>=B.top?(Q.y=-(this.height+this.marginOffset.y),this.newIndex=M):(ue||M<this.index&&A.top+k.top<=B.top+F.height)&&(Q.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=M))),T0(T,Q),O[R].translate=Q}this.newIndex==null&&(this.newIndex=this.index),W&&(this.newIndex=P);var K=W?this.prevIndex:P;E&&this.newIndex!==K&&E({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:K,isKeySorting:W,nodes:O,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return(0,vs.default)(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var p=this.props.getContainer;return typeof p!="function"?(0,L0.findDOMNode)(this):p(o.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var p=o.withRef?this.wrappedInstance:null;return R0(F6.Provider,{value:this.sortableContextValue},R0(e,mu({ref:p},A6(this.props,CY))))}},{key:"helperContainer",get:function(){var p=this.props.helperContainer;return typeof p=="function"?p():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var p=this.props.useWindowAsScrollContainer;return p?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),f}(m_),Ft(t,"displayName",g_("sortableList",e)),Ft(t,"defaultProps",wY),Ft(t,"propTypes",I6),r}function RY(e){var t,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=t=function(s){Nh(f,s);function f(){var d,p;gu(this,f);for(var m=arguments.length,y=new Array(m),E=0;E<m;E++)y[E]=arguments[E];return p=Ph(this,(d=bu(f)).call.apply(d,[this].concat(y))),Ft(vt(vt(p)),"wrappedInstance",v_()),p}return yu(f,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(p){this.node&&(p.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),p.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),p.collection!==this.props.collection&&(this.unregister(p.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var p=this.props,m=p.collection,y=p.disabled,E=p.index,w=(0,L0.findDOMNode)(this);w.sortableInfo={collection:m,disabled:y,index:E,manager:this.context.manager},this.node=w,this.ref={node:w},this.context.manager.add(m,this.ref)}},{key:"unregister",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(p,this.ref)}},{key:"getWrappedInstance",value:function(){return(0,vs.default)(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var p=o.withRef?this.wrappedInstance:null;return R0(e,mu({ref:p},A6(this.props,kY)))}}]),f}(m_),Ft(t,"displayName",g_("sortableElement",e)),Ft(t,"contextType",F6),Ft(t,"propTypes",j6),Ft(t,"defaultProps",{collection:0}),r}var L0,vs,lt,uY,_f,N6,xu,Su,xY,I6,U6,wY,CY,F6,j6,kY,b_=tt(()=>{G();$4();Z4();Q4();K4();X4();t6();n6();i6();XC();JC();L0=Fi(oh()),vs=Fi(o6());c6();lt=Fi(L6()),uY=function(){function e(){gu(this,e),Ft(this,"refs",{})}return yu(e,[{key:"add",value:function(r,o){this.refs[r]||(this.refs[r]=[]),this.refs[r].push(o)}},{key:"remove",value:function(r,o){var s=this.getIndex(r,o);s!==-1&&this.refs[r].splice(s,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var r=this;return this.refs[this.active.collection].find(function(o){var s=o.node;return s.sortableInfo.index==r.active.index})}},{key:"getIndex",value:function(r,o){return this.refs[r].indexOf(o)}},{key:"getOrderedRefs",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[r].sort(cY)}}]),e}();_f={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},N6=function(){if(typeof window>"u"||typeof document>"u")return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||e.OLink===""&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();xu={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},Su={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};xY=function(){function e(t,r){gu(this,e),this.container=t,this.onScrollCallback=r}return yu(e,[{key:"clear",value:function(){this.interval!=null&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(r){var o=this,s=r.translate,f=r.minTranslate,d=r.maxTranslate,p=r.width,m=r.height,y={x:0,y:0},E={x:1,y:1},w={x:10,y:10},k=this.container,O=k.scrollTop,A=k.scrollLeft,W=k.scrollHeight,P=k.scrollWidth,R=k.clientHeight,D=k.clientWidth,T=O===0,M=W-O-R===0,U=A===0,Y=P-A-D===0;s.y>=d.y-m/2&&!M?(y.y=1,E.y=w.y*Math.abs((d.y-m/2-s.y)/m)):s.x>=d.x-p/2&&!Y?(y.x=1,E.x=w.x*Math.abs((d.x-p/2-s.x)/p)):s.y<=f.y+m/2&&!T?(y.y=-1,E.y=w.y*Math.abs((s.y-m/2-f.y)/m)):s.x<=f.x+p/2&&!U&&(y.x=-1,E.x=w.x*Math.abs((s.x-p/2-f.x)/p)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(y.x!==0||y.y!==0)&&(this.interval=setInterval(function(){o.isAutoScrolling=!0;var F={left:E.x*y.x,top:E.y*y.y};o.container.scrollTop+=F.top,o.container.scrollLeft+=F.left,o.onScrollCallback(F)},5))}}]),e}();I6={axis:lt.default.oneOf(["x","y","xy"]),contentWindow:lt.default.any,disableAutoscroll:lt.default.bool,distance:lt.default.number,getContainer:lt.default.func,getHelperDimensions:lt.default.func,helperClass:lt.default.string,helperContainer:lt.default.oneOfType([lt.default.func,typeof HTMLElement>"u"?lt.default.any:lt.default.instanceOf(HTMLElement)]),hideSortableGhost:lt.default.bool,keyboardSortingTransitionDuration:lt.default.number,lockAxis:lt.default.string,lockOffset:lt.default.oneOfType([lt.default.number,lt.default.string,lt.default.arrayOf(lt.default.oneOfType([lt.default.number,lt.default.string]))]),lockToContainerEdges:lt.default.bool,onSortEnd:lt.default.func,onSortMove:lt.default.func,onSortOver:lt.default.func,onSortStart:lt.default.func,pressDelay:lt.default.number,pressThreshold:lt.default.number,keyCodes:lt.default.shape({lift:lt.default.arrayOf(lt.default.number),drop:lt.default.arrayOf(lt.default.number),cancel:lt.default.arrayOf(lt.default.number),up:lt.default.arrayOf(lt.default.number),down:lt.default.arrayOf(lt.default.number)}),shouldCancelStart:lt.default.func,transitionDuration:lt.default.number,updateBeforeSortStart:lt.default.func,useDragHandle:lt.default.bool,useWindowAsScrollContainer:lt.default.bool},U6={lift:[xu.SPACE],drop:[xu.SPACE],cancel:[xu.ESC],up:[xu.UP,xu.LEFT],down:[xu.DOWN,xu.RIGHT]},wY={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:SY,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:U6,shouldCancelStart:EY,transitionDuration:300,useWindowAsScrollContainer:!1},CY=Object.keys(I6);F6=sY({manager:{}});j6={index:lt.default.number.isRequired,collection:lt.default.oneOfType([lt.default.number,lt.default.string]),disabled:lt.default.bool},kY=Object.keys(j6)});var lA=Mt((bte,oA)=>{G();var LY=Object.create,Vh=Object.defineProperty,OY=Object.defineProperties,DY=Object.getOwnPropertyDescriptor,PY=Object.getOwnPropertyDescriptors,AY=Object.getOwnPropertyNames,B6=Object.getOwnPropertySymbols,NY=Object.getPrototypeOf,J6=Object.prototype.hasOwnProperty,zY=Object.prototype.propertyIsEnumerable,H6=(e,t,r)=>t in e?Vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ci=(e,t)=>{for(var r in t||(t={}))J6.call(t,r)&&H6(e,r,t[r]);if(B6)for(var r of B6(t))zY.call(t,r)&&H6(e,r,t[r]);return e},Df=(e,t)=>OY(e,PY(t)),X6=e=>Vh(e,"__esModule",{value:!0}),IY=(e,t)=>{for(var r in t)Vh(e,r,{get:t[r],enumerable:!0})},eA=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of AY(t))!J6.call(e,s)&&(r||s!=="default")&&Vh(e,s,{get:()=>t[s],enumerable:!(o=DY(t,s))||o.enumerable});return e},Nt=(e,t)=>eA(X6(Vh(e!=null?LY(NY(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),UY=(e=>(t,r)=>e&&e.get(t)||(r=eA(X6({}),t,1),e&&e.set(t,r),r))(typeof WeakMap<"u"?new WeakMap:0),tA={};IY(tA,{NakshaMapboxList:()=>qK});var FY=Er(),Uh=Nt(ct("react")),jY=(Si(),on(xi)),BY="Are you sure?",HY="Base Style",VY="Created By",WY="Created On",$Y="Delete",qY="Download",GY="Find layer by name",YY="Attributes at Clicked Location",ZY="Information",QY="Layers",KY="Legend",JY="Less \u2BC5",XY="List Layers",eZ="More \u2BC6",tZ="Pending",nZ="Publish",rZ="Remove",iZ="Selected",aZ="Settings",oZ="Square",lZ="Toggle Publishing",sZ="Uploaded",uZ="URL",cZ="Layer Selection",fZ="Top Layer Only",dZ="All Layers",pZ={are_you_sure:BY,base_style:HY,created_by:VY,created_on:WY,delete:$Y,download:qY,find_layer_by_name:GY,infobar:YY,information:ZY,layers:QY,legend:KY,less:JY,list_layers:XY,more:eZ,pending:tZ,publish:nZ,remove:rZ,selected:iZ,settings:aZ,square:oZ,toggle:lZ,uploaded:sZ,url:uZ,layer_selection:cZ,layer_selection_top:fZ,layer_selection_all:dZ},hZ="\xCAtes-vous s\xFBr?",vZ="Style de base",mZ="Cr\xE9\xE9 par",gZ="Cr\xE9\xE9 sur",yZ="Effacer",bZ="T\xE9l\xE9charger",xZ="Trouver la couche par nom",SZ="Attributs \xE0 l'emplacement cliqu\xE9",EZ="Informations",wZ="Couches",CZ="L\xE9gende",_Z="Moins \u2BC5",MZ="Liste des couches",TZ="Suite \u2BC6",kZ="Plus d'informations",RZ="En attente",LZ="Publier",OZ="Supprimer",DZ="Choisie",PZ="Param\xE8tres",AZ="Carr\xE9",NZ="Basculer la publication",zZ="T\xE9l\xE9charg\xE9",IZ="url",UZ="S\xE9lection de calque",FZ="Couche sup\xE9rieure uniquement",jZ="Toutes les couches",BZ={are_you_sure:hZ,base_style:vZ,created_by:mZ,created_on:gZ,delete:yZ,download:bZ,find_layer_by_name:xZ,infobar:SZ,information:EZ,layers:wZ,legend:CZ,less:_Z,list_layers:MZ,more:TZ,more_info:kZ,pending:RZ,publish:LZ,remove:OZ,selected:DZ,settings:PZ,square:AZ,toggle:NZ,uploaded:zZ,url:IZ,layer_selection:UZ,layer_selection_top:FZ,layer_selection_all:jZ},HZ="\u0915\u094D\u092F\u093E \u0906\u092A\u0915\u094B \u092F\u0915\u0940\u0928 \u0939\u0948?",VZ="\u0906\u0927\u093E\u0930 \u0936\u0948\u0932\u0940",WZ="\u0915\u0947 \u0926\u094D\u0935\u093E\u0930\u093E \u092C\u0928\u093E\u0908 \u0917\u0908",$Z="\u092A\u0930 \u092C\u0928\u093E\u092F\u093E",qZ="\u0939\u091F\u093E\u090F\u0902",GZ="\u0921\u093E\u0909\u0928\u0932\u094B\u0921",YZ="\u0928\u093E\u092E \u0938\u0947 \u092A\u0930\u0924 \u0916\u094B\u091C\u0947\u0902",ZZ="\u0915\u094D\u0932\u093F\u0915 \u0915\u093F\u090F \u0917\u090F \u0938\u094D\u0925\u093E\u0928 \u092A\u0930 \u0935\u093F\u0936\u0947\u0937\u0924\u093E\u090F\u0902",QZ="\u091C\u093E\u0928\u0915\u093E\u0930\u0940",KZ="\u092A\u0930\u0924\u0947\u0902",JZ="\u0915\u093F\u0902\u0935\u0926\u0902\u0924\u0940",XZ="\u0915\u092E \u2BC5",eQ="\u0938\u0942\u091A\u0940 \u092A\u0930\u0924\u0947\u0902",tQ="\u091C\u094D\u092F\u093E\u0926\u093E \u2BC6",nQ="\u0914\u0930 \u091C\u093E\u0928\u0915\u093E\u0930\u0940",rQ="\u0932\u0902\u092C\u093F\u0924",iQ="\u092A\u094D\u0930\u0915\u093E\u0936\u093F\u0924",aQ="\u0939\u091F\u093E\u0928\u093E",oQ="\u091A\u092F\u0928\u093F\u0924",lQ="\u0938\u092E\u093E\u092F\u094B\u091C\u0928",sQ="\u0938\u094D\u0915\u094D\u0935\u093E\u092F\u0930",uQ="\u092A\u094D\u0930\u0915\u093E\u0936\u0928 \u091F\u0949\u0917\u0932 \u0915\u0930\u0947\u0902",cQ="\u0905\u092A\u0932\u094B\u0921 \u0915\u093F\u092F\u093E \u0917\u092F\u093E",fQ="\u092F\u0942\u0906\u0930\u090F\u0932",dQ="\u092A\u0930\u0924 \u091A\u092F\u0928",pQ="\u0915\u0947\u0935\u0932 \u0936\u0940\u0930\u094D\u0937 \u092A\u0930\u0924",hQ="\u0938\u092D\u0940 \u092A\u0930\u0924\u0947\u0902",vQ={are_you_sure:HZ,base_style:VZ,created_by:WZ,created_on:$Z,delete:qZ,download:GZ,find_layer_by_name:YZ,infobar:ZZ,information:QZ,layers:KZ,legend:JZ,less:XZ,list_layers:eQ,more:tQ,more_info:nQ,pending:rQ,publish:iQ,remove:aQ,selected:oQ,settings:lQ,square:sQ,toggle:uQ,uploaded:cQ,url:fQ,layer_selection:dQ,layer_selection_top:pQ,layer_selection_all:hQ},mQ={en:pZ,fr:BZ,hi:vQ},gQ=Er(),Ko=Nt(ct("react")),R_=Nt((Si(),on(xi))),yQ=Mr(),V6=Er(),$i=Nt(ct("react")),bQ=(Si(),on(xi)),xQ=Nt((e4(),on(XP))),Wh=Nt((n4(),on(t4))),nA=Nt(l4()),L_=s4(),W6=Er(),SQ={defaultViewState:W6.defaultViewState,mapboxAccessToken:"pk.xxx",nakshaApiEndpoint:"/naksha-api/api",geoserver:{endpoint:"/geoserver",workspace:"biodiv",store:"ibp"},mapStyle:W6.MapStyles.MAP_STREETS,layers:[],selectedLayers:[]},EQ="data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath fill='%23fff' d='M0 0h72v72H0z'/%3E%3Cpath d='M35.981 48.293l-13.853-10.77-3.045 2.368L36 53.048l16.917-13.157-3.064-2.387-13.872 10.789zM36 43.519l13.834-10.77 3.083-2.388L36 17.204 19.083 30.36l3.064 2.387L36 43.518z' fill='%23A0AEC0'/%3E%3C/svg%3E",P_={display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",wordBreak:"break-word"},wQ=Df(Ci({},P_),{WebkitLineClamp:2}),Lf="ogc_fid",x_={ACTIVE:"Active",PENDING:"Pending"},A_={TOP:"layer_selection_top",ALL:"layer_selection_all"},CQ=e=>e<6?[4,1,39.2]:e<7?[5,0,19.6]:e<8?[5,1,9.8]:e<9?[5,-1,4.9]:e<10?[6,0,2.45]:e<11?[6,1,1.225]:e<12?[7,0,.612]:e<13?[7,1,.306]:e<14?[7,-1,.153]:e<15?[8,0,.077]:[8,1,.039],S_="0123456789bcdefghjkmnpqrstuvwxyz",_Q=(e,t,r)=>{r=r||16/2**(1-e.length&1)/4**t;let o=e.slice(0,-1),s=~~(S_.indexOf(e.slice(-1))/r);return[o+S_[r*s],o+S_[r*(s+1)-1]]},MQ=function(e,t){var r=new Map,o=new Map;let s=[];for(let[f,d]of Object.entries(e)){let[p,m]=_Q(f,t);o.set(p,m),r.has(p)||r.set(p,0),r.set(p,r.get(p)+d)}return r.forEach((f,d)=>{let p=L_.GeoHash.decodeGeoHash(d),m=L_.GeoHash.decodeGeoHash(o.get(d)),y=new nA.default({minlat:p.latitude[0],minlon:p.longitude[0],maxlat:m.latitude[1],maxlon:m.longitude[1]}).toGeoJSON();s.push(Df(Ci({},y),{properties:{count:f,[Lf]:d}}))}),s},TQ=e=>{let t=[];for(let[r,o]of Object.entries(e)){let s=L_.GeoHash.decodeGeoHash(r),f=new nA.default({minlat:s.latitude[0],minlon:s.longitude[0],maxlat:s.latitude[1],maxlon:s.longitude[1]}).toGeoJSON();t.push(Df(Ci({},f),{properties:{count:o,[Lf]:r}}))}return t},kQ=(e,t)=>({type:"FeatureCollection",features:Object.keys(e).length===0?[]:t===-1?TQ(e):MQ(e,t)}),RQ=(e,t)=>{let r=Object.values(e).sort((f,d)=>f-d),o=Math.floor(r.length/t),s=new Array(t-1).fill(0).map((f,d)=>r[o*(d+1)]);return s.push(r[r.length-1]),s},LQ=Nt((_4(),on(C4))),OQ=(e,t,r,o,s)=>{let f=s.map(({id:d})=>d);return e.map((d,p)=>Df(Ci({},d),{index:p,id:d.name,thumbnail:t+d.thumbnail,source:{type:"vector",scheme:"tms",tiles:[`${r}/gwc/service/tms/1.0.0/${o}:${d.name}@EPSG%3A900913@pbf/{z}/{x}/{y}.pbf`]},data:{styles:[]},isAdded:f.includes(d.name)}))},DQ=async(e,t,r,o)=>(0,LQ.default)(e.data,async s=>{if(s.styles.length===0){let{success:f,data:d}=await AQ(e.id,r);f&&(s.layerName=d.layerName,s.styles=d.styles,s.summaryColumn=d.summaryColumn,s.titleColumn=d.titleColumn,s.propertyMap=Object.fromEntries(d.styles.map(p=>[p.styleName,p.styleTitle])))}s.styles[t].colors||(s.styles[t].colors=await IQ(e.id,o==null?void 0:o.workspace,s.styles[t].styleName,r)),s.styleIndex=t}),PQ=async(e,t,r,o)=>{try{let s=await Wh.default.get(`${t}/layer/all`,{headers:{Authorization:e}});return OQ(s.data,t,r.endpoint,r.workspace,o)}catch(s){return console.error(s),[]}},AQ=async(e,t)=>{try{let{data:r}=await Wh.default.get(`${t}/layer/onClick/${e}`);return{success:!0,data:r}}catch(r){return console.error(r),{success:!1}}},NQ=async(e,t,r,o)=>{try{return await Wh.default.put(`${t}/layer/${o?"active":"pending"}/${r}`,{},{headers:{Authorization:e}}),!0}catch(s){return console.error(s),!1}},zQ=async(e,t,r)=>{try{return await Wh.default.delete(`${t}/layer/${r}`,{headers:{Authorization:e}}),!0}catch(o){return console.error(o),!1}},IQ=async(e,t,r,o)=>{var s,f;try{return(f=(s=(await Wh.default.get(`${o}/geoserver/workspaces/${t}/styles/${e}_${r}.mbstyle`)).data)==null?void 0:s.layers)==null?void 0:f[0]}catch(d){return console.error(d),{}}},UQ=async(e,t,r,o=6,s="YlOrRd")=>{try{let[f,d,p]=CQ(r),{_ne:m,_sw:y}=t,E={top:m.lat,left:y.lng,bottom:y.lat,right:m.lng,geoAggegationPrecision:f},w=await e(E),k=kQ(w,d),O=RQ(w,o).map((A,W)=>[A,xQ.default[s][o][W]]);return{success:!0,geojson:k,paint:{"fill-color":{property:"count",default:"yellow",stops:O},"fill-outline-color":"rgba(0,0,0,0.2)","fill-opacity":.7},stops:O,squareSize:p}}catch(f){return console.error(f),{success:!1,geojson:{},paint:{},stops:[],squareSize:0}}},rA=(0,$i.createContext)({}),FQ=({mp:e,children:t})=>{let[r,o]=(0,$i.useState)(e),{mapl:s}=(0,bQ.useMap)(),[f,d]=(0,$i.useState)(""),p=(0,V6.useDebounce)(f,500),[m,y]=(0,$i.useState)(V6.defaultMapStyles[(r==null?void 0:r.mapStyle)||0].style),[E,w]=(0,$i.useState)(A_.TOP),[k,O]=(0,$i.useState)(e.layers||[]),[A,W]=(0,$i.useState)(r.selectedLayers||[]),[P,R]=(0,$i.useState)(),[D,T]=(0,$i.useState)(),M=(0,$i.useMemo)(()=>{var re;let le={};for(let se of D||[])le[se.sourceLayer]=[...le[se.sourceLayer]||[],(re=se==null?void 0:se.properties)==null?void 0:re[Lf]];return Object.keys(le).length?le:void 0},[D]),U=$i.default.useMemo(()=>{let re=k.filter(se=>A.includes(se.id)),le=new Array(A.length);for(let se of re){let ce=A.findIndex(de=>se.id===de);ce>-1&&(le[ce]=se)}return le},[k,A]),Y=re=>k.findIndex(le=>le.id===re),F=(re,le)=>O(k.map(se=>se.id===re?Ci(Ci({},se),le):se)),ne=async(re,le,se)=>{let ce=k[re],de=await DQ(ce,le,r.nakshaApiEndpoint,r.geoserver);F(ce.id,{data:de}),se&&s.fitBounds(ce.bbox,{padding:40,duration:1e3})},ue=async(re,le)=>{let se=Y(re);ne(se,le,!1)},Q=async re=>{var le,se,ce,de;if(!A.length)return;let ve=A[0],Ce=s.queryRenderedFeatures(re.point,{layers:[ve]});if(Ce.length){let _e=((le=Ce[0])==null?void 0:le.id)||((ce=(se=Ce[0])==null?void 0:se.properties)==null?void 0:ce[Lf]);if(_e===(P==null?void 0:P.id))return;let Ae=k[Y(ve)],Ye=(de=Ae==null?void 0:Ae.data)==null?void 0:de.summaryColumn.map(Ne=>{var ft,St,Yt;return[((St=(ft=Ae.data)==null?void 0:ft.propertyMap)==null?void 0:St[Ne])||Ne,(Yt=Ce[0].properties)==null?void 0:Yt[Ne]]});R({id:_e,title:Ae.title,data:Ye})}else R(void 0)},B=async({layerId:re,add:le,styleIndex:se=0,focus:ce=!0})=>{var de;if(!le){W(A.filter(_e=>re!==_e));return}let ve=Y(re),Ce=(de=k[ve])==null?void 0:de.source.type;Ce==="vector"?await ne(ve,se,ce):console.error(`unknown layer type: ${Ce}`),W([re,...A.filter(_e=>_e!==re)])},ae=(re,le)=>{o(Df(Ci({},r),{[re]:le}))},H=(re,le)=>{let se=le===x_.PENDING;NQ(r.nakshaEndpointToken,r.nakshaApiEndpoint,re,se),F(re,{layerStatus:se?x_.ACTIVE:x_.PENDING})},K=async(re,le)=>{confirm(le)&&(zQ(r.nakshaEndpointToken,r.nakshaApiEndpoint,re),O(k.filter(se=>se.id!==re)))};return $i.default.createElement(rA.Provider,{value:{mp:r,updateMP:ae,layer:{mapStyle:m,setMapStyle:y,all:k,setAll:O,selectedIds:A,setSelectedIds:W,selectedLayers:U,toggle:B,updateStyle:ue,selectedFeatures:D,selectedFeaturesId:M,setSelectedFeatures:T,togglePublish:H,delete:K,selectionStyle:E,setSelectionStyle:w},query:{term:p,setTerm:d},hover:{onHover:Q,features:P}}},t)};function ha(){return(0,$i.useContext)(rA)}var jQ=Er(),Fh=Nt(ct("react")),E_=Mr(),pa=Nt(ct("react")),Of=Mr(),yt=Nt(ct("react")),BQ=Mr(),HQ=()=>yt.default.createElement("svg",{fill:"none",className:BQ.tw`w-5 h-5 text-gray-400`,width:"24",height:"24",viewBox:"0 0 24 24"},yt.default.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})),$6=()=>yt.default.createElement("svg",{width:"18",height:"18",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24"},yt.default.createElement("path",{d:"M12 2L2 7 12 12 22 7 12 2z"}),yt.default.createElement("path",{d:"M2 17L12 22 22 17"}),yt.default.createElement("path",{d:"M2 12L12 17 22 12"})),VQ=()=>yt.default.createElement("svg",{width:"18",height:"18",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24"},yt.default.createElement("path",{d:"M4 21L4 14"}),yt.default.createElement("path",{d:"M4 10L4 3"}),yt.default.createElement("path",{d:"M12 21L12 12"}),yt.default.createElement("path",{d:"M12 8L12 3"}),yt.default.createElement("path",{d:"M20 21L20 16"}),yt.default.createElement("path",{d:"M20 12L20 3"}),yt.default.createElement("path",{d:"M1 14L7 14"}),yt.default.createElement("path",{d:"M9 8L15 8"}),yt.default.createElement("path",{d:"M17 16L23 16"}));function WQ(){return yt.default.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",style:{display:"inline-block"}},yt.default.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M5.5 3.5a2 2 0 100 4 2 2 0 000-4zM2 5.5a3.5 3.5 0 115.898 2.549 5.507 5.507 0 013.034 4.084.75.75 0 11-1.482.235 4.001 4.001 0 00-7.9 0 .75.75 0 01-1.482-.236A5.507 5.507 0 013.102 8.05 3.49 3.49 0 012 5.5zM11 4a.75.75 0 100 1.5 1.5 1.5 0 01.666 2.844.75.75 0 00-.416.672v.352a.75.75 0 00.574.73c1.2.289 2.162 1.2 2.522 2.372a.75.75 0 101.434-.44 5.01 5.01 0 00-2.56-3.012A3 3 0 0011 4z"}))}function $Q(){return yt.default.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",style:{display:"inline-block"}},yt.default.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M2.5 7.775V2.75a.25.25 0 01.25-.25h5.025a.25.25 0 01.177.073l6.25 6.25a.25.25 0 010 .354l-5.025 5.025a.25.25 0 01-.354 0l-6.25-6.25a.25.25 0 01-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 010 2.474l-5.026 5.026a1.75 1.75 0 01-2.474 0l-6.25-6.25A1.75 1.75 0 011 7.775zM6 5a1 1 0 100 2 1 1 0 000-2z"}))}function qQ(){return yt.default.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",style:{display:"inline-block"}},yt.default.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M8.75.75a.75.75 0 00-1.5 0V2h-.984c-.305 0-.604.08-.869.23l-1.288.737A.25.25 0 013.984 3H1.75a.75.75 0 000 1.5h.428L.066 9.192a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.514 3.514 0 00.686.45A4.492 4.492 0 003 11c.88 0 1.556-.22 2.023-.454a3.515 3.515 0 00.686-.45l.045-.04.016-.015.006-.006.002-.002.001-.002L5.25 9.5l.53.53a.75.75 0 00.154-.838L3.822 4.5h.162c.305 0 .604-.08.869-.23l1.289-.737a.25.25 0 01.124-.033h.984V13h-2.5a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-2.5V3.5h.984a.25.25 0 01.124.033l1.29.736c.264.152.563.231.868.231h.162l-2.112 4.692a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.517 3.517 0 00.686.45A4.492 4.492 0 0013 11c.88 0 1.556-.22 2.023-.454a3.512 3.512 0 00.686-.45l.045-.04.01-.01.006-.005.006-.006.002-.002.001-.002-.529-.531.53.53a.75.75 0 00.154-.838L13.823 4.5h.427a.75.75 0 000-1.5h-2.234a.25.25 0 01-.124-.033l-1.29-.736A1.75 1.75 0 009.735 2H8.75V.75zM1.695 9.227c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327l-1.305 2.9zm10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327l-1.305 2.9z"}))}function GQ(){return yt.default.createElement("svg",{viewBox:"0 0 16 16",width:"14",height:"14",style:{display:"inline-block"}},yt.default.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M1.679 7.932c.412-.621 1.242-1.75 2.366-2.717C5.175 4.242 6.527 3.5 8 3.5c1.473 0 2.824.742 3.955 1.715 1.124.967 1.954 2.096 2.366 2.717a.119.119 0 010 .136c-.412.621-1.242 1.75-2.366 2.717C10.825 11.758 9.473 12.5 8 12.5c-1.473 0-2.824-.742-3.955-1.715C2.92 9.818 2.09 8.69 1.679 8.068a.119.119 0 010-.136zM8 2c-1.981 0-3.67.992-4.933 2.078C1.797 5.169.88 6.423.43 7.1a1.619 1.619 0 000 1.798c.45.678 1.367 1.932 2.637 3.024C4.329 13.008 6.019 14 8 14c1.981 0 3.67-.992 4.933-2.078 1.27-1.091 2.187-2.345 2.637-3.023a1.619 1.619 0 000-1.798c-.45-.678-1.367-1.932-2.637-3.023C11.671 2.992 9.981 2 8 2zm0 8a2 2 0 100-4 2 2 0 000 4z"}))}function YQ(){return yt.default.createElement("svg",{viewBox:"0 0 16 16",width:"14",height:"14",style:{display:"inline-block"}},yt.default.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"}))}function ZQ(){return yt.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",style:{display:"inline-block"}},yt.default.createElement("path",{fillRule:"evenodd",fill:"currentColor",d:"M7.47 10.78a.75.75 0 001.06 0l3.75-3.75a.75.75 0 00-1.06-1.06L8.75 8.44V1.75a.75.75 0 00-1.5 0v6.69L4.78 5.97a.75.75 0 00-1.06 1.06l3.75 3.75zM3.75 13a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5z"}))}function QQ(){return yt.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",style:{display:"inline-block"}},yt.default.createElement("path",{fillRule:"evenodd",d:"M10 13a1 1 0 100-2 1 1 0 000 2zm-4 0a1 1 0 100-2 1 1 0 000 2zm1-5a1 1 0 11-2 0 1 1 0 012 0zm3 1a1 1 0 100-2 1 1 0 000 2zm1-5a1 1 0 11-2 0 1 1 0 012 0zM6 5a1 1 0 100-2 1 1 0 000 2z"}))}function KQ(){return yt.default.createElement("svg",{style:{display:"inline-block"},width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},yt.default.createElement("circle",{cx:"12",cy:"12",r:"10"}),yt.default.createElement("line",{x1:"22",y1:"12",x2:"18",y2:"12"}),yt.default.createElement("line",{x1:"6",y1:"12",x2:"2",y2:"12"}),yt.default.createElement("line",{x1:"12",y1:"6",x2:"12",y2:"2"}),yt.default.createElement("line",{x1:"12",y1:"22",x2:"12",y2:"18"}))}function JQ(){return yt.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"inline-block"}},yt.default.createElement("polyline",{points:"6 9 12 15 18 9"}))}function XQ(){return yt.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"inline-block"}},yt.default.createElement("polyline",{points:"18 15 12 9 6 15"}))}var O_=e=>pa.default.createElement("div",null,e.label&&pa.default.createElement("label",{className:Of.tw`text-gray-700`,htmlFor:e.name},e.label),pa.default.createElement("select",Ci({id:e.name,name:e.name,className:Of.tw`block w-full px-4 py-2 mt-2 text-gray-700 bg-white border border-gray-200 rounded-md focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 focus:outline-none focus:ring`},e))),eK=e=>pa.default.createElement("div",{className:"relative"},pa.default.createElement("span",{className:Of.tw`absolute inset-y-0 left-0 flex items-center pl-3`},pa.default.createElement(HQ,null)),pa.default.createElement("input",Ci({type:"search",className:Of.tw`w-full py-2 pl-10 pr-4 text-gray-700 bg-white border rounded-md focus:border-blue-400 focus:ring-blue-300 focus:ring-opacity-40 dark:focus:border-blue-300 focus:outline-none focus:ring`},e))),tK=e=>e.isLoading?pa.default.createElement("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",className:Of.tw`inline text-gray-200 animate-spin dark:text-gray-600`},pa.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},pa.default.createElement("g",{fill:"#212121",fillRule:"nonzero"},pa.default.createElement("path",{d:"M10,3 C6.13401,3 3,6.13401 3,10 C3,10.2761 2.77614,10.5 2.5,10.5 C2.22386,10.5 2,10.2761 2,10 C2,5.58172 5.58172,2 10,2 C14.4183,2 18,5.58172 18,10 C18,14.4183 14.4183,18 10,18 C9.72386,18 9.5,17.7761 9.5,17.5 C9.5,17.2239 9.72386,17 10,17 C13.866,17 17,13.866 17,10 C17,6.13401 13.866,3 10,3 Z"})))):pa.default.createElement("input",{type:"checkbox",className:Of.tw`w-5 h-5 border-gray-100 focus:outline-none focus:ring focus:ring-blue-300 focus:ring-opacity-80`,name:e.name,checked:e.checked,onChange:e.onChange}),N_=(D4(),on(O4)),nK=Nt((c0(),on(u0))),A0=Nt(ct("react")),N0=Mr(),w_=({children:e,icon:t})=>{let{onClick:r,isActive:o}=(0,N_.useTabState)(),s=(0,nK.default)(["flex items-center justify-center h-12 px-2 py-2 -mb-px border-b-2 -px-1 whitespace-nowrap focus:outline-none w-full focus:ring",{"text-blue-600 border-blue-500":o,"text-gray-700 hover:border-gray-400":!o}]);return A0.default.createElement("button",{className:(0,N0.tw)(s),onClick:r},t,A0.default.createElement("span",{className:N0.tw`ml-2`},e))},C_=({children:e})=>(0,N_.usePanelState)()?A0.default.createElement("div",{className:N0.tw`w-full flex flex-grow-1 overflow-auto`},e):null,rK=({children:e})=>A0.default.createElement("div",{className:N0.tw`flex flex-shrink-0 border-b border-gray-200 justify-around`},e),iK=Nt((c0(),on(u0))),za=Nt(ct("react")),O0=Mr();function aK({data:e}){let[t,r]=(0,za.useState)(!1),[o,s]=(0,za.useState)({title:e.sourceLayer,properties:[]}),{layer:f}=ha(),d=async()=>{let p=f.selectedLayers.find(y=>y.id===e.sourceLayer),m=Object.entries(p.data.propertyMap).map(([y,E])=>[E,e.properties[y]]);s({title:p.title,properties:m})};return(0,za.useEffect)(()=>{d()},[]),za.default.createElement("div",{className:O0.tw`bg-gray-100 rounded-lg`},za.default.createElement("button",{className:(0,O0.tw)((0,iK.default)(["px-4 h-10 flex items-center justify-between bg-gray-100 hover:bg-gray-200 transition-colors cursor-pointer w-full focus:outline-none focus:ring",{"bg-gray-200 rounded-t-lg":t,"rounded-lg":!t}])),onClick:()=>r(!t)},o.title," ",t?za.default.createElement(XQ,null):za.default.createElement(JQ,null)),t&&za.default.createElement("div",{className:O0.tw`px-4 py-3 flex flex-col gap-3`},o.properties.map(([p,m])=>za.default.createElement("div",{key:p+m},za.default.createElement("div",{className:O0.tw`text-gray-600`},p),za.default.createElement("div",null,m)))))}function oK(){let{layer:e}=ha(),{t}=(0,jQ.useT)();return Fh.default.createElement("div",{className:E_.tw`absolute top-4 right-4 bottom-4 bg-white rounded-lg shadow-md max-w-sm w-full z-10 flex flex-col`},Fh.default.createElement("div",{className:E_.tw`border-b-2 h-12 px-4 flex items-center gap-3 flex-shrink-0`},Fh.default.createElement(KQ,null)," ",t("infobar")),Fh.default.createElement("div",{className:E_.tw`flex flex-col flex-grow overflow-auto gap-3 p-4`},e.selectedFeatures.map(r=>Fh.default.createElement(aK,{key:r.sourceLayer+r.properties[Lf],data:r}))))}var lK=Er(),Tr=Nt(ct("react")),q6=Mr(),__=Nt(ct("react")),sK=Mr(),Jo=Nt(ct("react")),uK=(I4(),on(z4)),cK=Nt((W4(),on(V4))),G6=Mr(),Y6=Er(),wt=Nt(ct("react")),fK=(b_(),on(y_)),qi=Mr(),Tf=Nt(ct("react")),dK=({text:e="",highlight:t=""})=>{if(!t.trim())return Tf.default.createElement(Tf.default.Fragment,null,e);let r=new RegExp(`(${t})`,"gi"),o=e.split(r);return Tf.default.createElement(Tf.default.Fragment,null,o.filter(s=>s).map((s,f)=>r.test(s)?Tf.default.createElement("mark",{key:f},s):Tf.default.createElement("span",{key:f},s)))},jh=Nt(ct("react")),pK=Mr(),hK=Er(),M_=Nt(ct("react")),vK=Mr();function mK({children:e}){let[t,r]=(0,M_.useState)(!1),{t:o}=(0,hK.useT)();return M_.default.createElement("div",null,t&&e,M_.default.createElement("button",{onClick:()=>r(!t),className:vK.tw`text-blue-600 focus:outline-none focus:outline focus:ring`},o(t?"less":"more")))}var kf=Nt(ct("react")),gK=Mr();function yK({item:e}){let t=(0,kf.useMemo)(()=>{var r,o,s,f,d,p,m,y,E,w,k,O;return((p=(d=(f=(s=(o=(r=e==null?void 0:e.data)==null?void 0:r.styles)==null?void 0:o[e.data.styleIndex])==null?void 0:s.colors)==null?void 0:f.paint)==null?void 0:d["fill-color"])==null?void 0:p.stops)||((O=(k=(w=(E=(y=(m=e==null?void 0:e.data)==null?void 0:m.styles)==null?void 0:y[e.data.styleIndex])==null?void 0:E.colors)==null?void 0:w.paint)==null?void 0:k["circle-color"])==null?void 0:O.stops)||[]},[e]);return kf.default.createElement("ul",null,t.map(([r,o])=>kf.default.createElement("li",{className:gK.tw`flex gap-2 items-center mb-1`,key:o},kf.default.createElement("svg",{viewBox:"0 0 24 24",height:"14",width:"14",focusable:"false"},kf.default.createElement("circle",{cx:"12",fill:o,cy:"12",r:"12",stroke:"none"})),kf.default.createElement("div",null,r))))}function bK({item:e}){var t,r;if(!((t=e.data)==null?void 0:t.styles))return null;let{layer:o}=ha(),s=f=>{o.updateStyle(e.id,Number(f.target.value))};return jh.default.createElement("div",{className:pK.tw`flex flex-col gap-4 pt-2`},jh.default.createElement(O_,{onChange:s},(r=e.data)==null?void 0:r.styles.map((f,d)=>jh.default.createElement("option",{key:d,value:d},f.styleTitle))),jh.default.createElement(mK,null,jh.default.createElement(yK,{item:e})))}var Rf=({icon:e,title:t,link:r,children:o})=>{let s=wt.default.createElement("span",{style:P_},o||"-");return wt.default.createElement("div",{className:qi.tw`flex gap-3 text-sm text-gray-600`,title:t},wt.default.createElement("div",null,e),r?wt.default.createElement("a",{className:qi.tw`text-blue-700 focus:outline-none focus:ring`,target:"_blank",rel:"noopener",href:r},s):s)},xK=(0,fK.SortableHandle)(()=>wt.default.createElement("div",{className:qi.tw`mt-1 w-5 text-center cursor-move`},wt.default.createElement(QQ,null)));function iA({item:e,extended:t}){var r,o;let{t:s}=(0,Y6.useT)(),{layer:f,query:d,mp:p}=ha(),[m,y]=(0,wt.useState)(f.selectedIds.includes(e.id)),[E,w]=(0,wt.useState)(!1),k=async()=>{w(!0),await f.toggle({layerId:e.id,add:!m}),y(!m),w(!1)};return wt.default.createElement("div",{className:qi.tw`z-20 p-3 border-t bg-white`},wt.default.createElement("div",{className:qi.tw`flex gap-3`},wt.default.createElement("div",{className:qi.tw`flex-shrink-0`},wt.default.createElement(tK,{name:e.id,checked:m,onChange:k,isLoading:E}),t&&wt.default.createElement(xK,null)),wt.default.createElement("img",{className:qi.tw`flex-shrink-0 overflow-hidden h-16 w-16 p-1 mb-2 object-cover border border-gray-200 rounded`,src:e.thumbnail||EQ}),wt.default.createElement("div",null,wt.default.createElement("div",{title:e.title,className:qi.tw`mb-1 leading-tight`,style:P_},wt.default.createElement(dK,{text:e.title,highlight:d.term})),wt.default.createElement("p",{title:e.description,className:qi.tw`text-gray-600 text-sm`,style:wQ},e.description))),wt.default.createElement("div",{className:qi.tw`flex flex-col gap-1`},wt.default.createElement(Rf,{icon:wt.default.createElement(GQ,null),title:e.layerStatus},e.layerStatus,e.layerStatus&&wt.default.createElement(wt.default.Fragment,null,wt.default.createElement("button",{className:qi.tw`text-blue-600 focus:outline-none ml-4`,onClick:()=>f.togglePublish(e.id,e==null?void 0:e.layerStatus)},s("toggle")),wt.default.createElement("button",{className:qi.tw`text-red-600 focus:outline-none ml-4`,onClick:()=>f.delete(e.id,s("are_you_sure"))},s("delete")))),wt.default.createElement(Rf,{icon:wt.default.createElement(WQ,null),link:e.url,title:[e.createdBy,e.attribution].join(`
155
- `)},e.createdBy,", ",e.attribution),wt.default.createElement(Rf,{icon:wt.default.createElement(YQ,null)},(e==null?void 0:e.createdDate)&&new Date(e.createdDate).toDateString()),wt.default.createElement(Rf,{icon:wt.default.createElement($Q,null),title:(r=e.tags)==null?void 0:r.join(", "),children:(o=e.tags)==null?void 0:o.join(", ")}),wt.default.createElement(Rf,{link:e.license&&Y6.LICENSES[e.license],icon:wt.default.createElement(qQ,null)},e.license),wt.default.createElement(Rf,{icon:wt.default.createElement(ZQ,null)},e.isDownloadable?wt.default.createElement("button",{className:qi.tw`text-blue-600`,onClick:()=>p==null?void 0:p.onLayerDownload(e.id)},s("download")):"Unavailable")),t&&wt.default.createElement(bK,{item:e}))}function SK(){let{layer:e,query:t}=ha(),r=(0,Jo.useMemo)(()=>t.term?e.all.filter(f=>f.title.toLowerCase().includes(t.term.toLowerCase())):e.all,[e.all,t.term]),o=Jo.default.useRef(),s=(0,uK.useVirtual)({size:r.length,parentRef:o});return Jo.default.createElement("div",{className:G6.tw`flex-grow-1 relative`},Jo.default.createElement(cK.default,{disableWidth:!0},f=>Jo.default.createElement("div",{ref:o,className:"List",style:{height:f.height,overflow:"auto"}},Jo.default.createElement("div",{style:{height:s.totalSize,width:"100%",position:"relative"}},s.virtualItems.map(d=>Jo.default.createElement("div",{key:d.index,ref:d.measureRef,className:G6.tw`absolute top-0 left-0 w-full`,style:{transform:`translateY(${d.start}px)`}},Jo.default.createElement("div",{style:{height:240}},Jo.default.createElement(iA,{item:r[d.index]}))))))))}var EK=Er(),Z6=Nt(ct("react")),wK=Mr();function CK(){let{t:e}=(0,EK.useT)(),{query:t}=ha(),r=o=>t.setTerm(o.target.value);return Z6.default.createElement("div",{className:wK.tw`flex-shrink-0 border-b-2 p-4`},Z6.default.createElement(eK,{name:"lyr_search",placeholder:e("find_layer_by_name"),onChange:r}))}function _K(){return __.default.createElement("div",{className:sK.tw`flex flex-col w-full`},__.default.createElement(CK,null),__.default.createElement(SK,null))}function MK(e,t,r){let o=t<0?e.length+t:t;if(o>=0&&o<e.length){let s=r<0?e.length+r:r,[f]=e.splice(t,1);e.splice(s,0,f)}}function TK(e,t,r){return e=[...e],MK(e,t,r),e}var kK=Nt(ct("react")),D_=Nt(ct("react")),aA=(b_(),on(y_)),RK=(0,aA.SortableElement)(({item:e,extended:t})=>D_.default.createElement(iA,{item:e,extended:t})),LK=(0,aA.SortableContainer)(({layerList:e})=>D_.default.createElement("div",null,e.map((t,r)=>D_.default.createElement(RK,{key:t.id,index:r,item:t,extended:!0}))));function OK(){let{layer:e}=ha(),t=({oldIndex:r,newIndex:o})=>{e.setSelectedIds(TK(e.selectedIds,r,o))};return kK.default.createElement(LK,{layerList:e.selectedLayers,useDragHandle:!0,onSortEnd:t})}var Q6=Er(),Bh=Nt(ct("react")),DK=Mr();function PK(){let{layer:e}=ha(),{t}=(0,Q6.useT)(),r=s=>e.setMapStyle(s.target.value),o=s=>e.setSelectionStyle(s.target.value);return Bh.default.createElement("div",{className:DK.tw`w-full p-4 flex flex-col gap-4`},Bh.default.createElement(O_,{name:"base_style",label:t("base_style"),defaultValue:e.mapStyle,onChange:r},Q6.defaultMapStyles.map(s=>Bh.default.createElement("option",{key:s.key,value:s.style},s.text))),Bh.default.createElement(O_,{name:"layer_selection",label:t("layer_selection"),defaultValue:e.mapStyle,onChange:o},Object.values(A_).map(s=>Bh.default.createElement("option",{key:s,value:s},t(s)))))}function AK(){let{mp:e,layer:t}=ha(),{t:r}=(0,lK.useT)(),o=async()=>{let s=await PQ(e.nakshaEndpointToken,e.nakshaApiEndpoint,e.geoserver,e.selectedLayers),f=[...e.layers||[],...s];t.setAll(f)};return(0,Tr.useEffect)(()=>{e.loadToC&&o()},[]),Tr.default.createElement("div",{className:q6.tw`absolute top-4 left-4 bottom-4 bg-white rounded-lg shadow-md max-w-sm w-full z-10`},Tr.default.createElement("div",{className:q6.tw`flex flex-col h-full`},Tr.default.createElement(N_.Tabs,null,Tr.default.createElement(rK,null,Tr.default.createElement(w_,{icon:Tr.default.createElement($6,null)},r("layers")),Tr.default.createElement(w_,{icon:Tr.default.createElement($6,null)},r("selected")),Tr.default.createElement(w_,{icon:Tr.default.createElement(VQ,null)},r("settings"))),Tr.default.createElement(C_,null,Tr.default.createElement(_K,null)),Tr.default.createElement(C_,null,Tr.default.createElement(OK,null)),Tr.default.createElement(C_,null,Tr.default.createElement(PK,null)))))}var K6=Nt(ct("react")),NK=(Si(),on(xi)),D0=Nt(ct("react")),T_=(Si(),on(xi));function zK({layer:e,beforeId:t}){let{mapl:r}=(0,T_.useMap)(),[o,s]=(0,D0.useState)({geojson:{},paint:{}}),f=async()=>{let{success:d,geojson:p,paint:m,stops:y,squareSize:E}=await UQ(e.source.fetcher,r.getBounds(),r.getZoom());d&&s({geojson:p,paint:m})};return(0,D0.useEffect)(()=>{r.on("idle",f)},[]),D0.default.createElement(T_.Source,{id:e.id,type:"geojson",data:o.geojson},D0.default.createElement(T_.Layer,{beforeId:t,id:e.id,type:"fill",paint:o.paint}))}var P0=Nt(ct("react")),k_=(Si(),on(xi)),IK={fill:{"fill-outline-color":"red","fill-color":"transparent","fill-opacity":1},circle:{"circle-stroke-color":"red","circle-stroke-width":1,"circle-opacity":0}};function UK({layer:e,beforeId:t}){var r;let{layer:o}=ha(),s=(0,P0.useMemo)(()=>{var d,p,m;return(m=(d=e.data)==null?void 0:d.styles)==null?void 0:m[(p=e.data)==null?void 0:p.styleIndex].colors},[e,o.selectedFeatures]),f=(r=o.selectedFeaturesId)==null?void 0:r[e.id];return P0.default.createElement(k_.Source,Ci({},e.source),P0.default.createElement(k_.Layer,Ci({beforeId:t},s)),f&&P0.default.createElement(k_.Layer,Df(Ci({},s),{beforeId:t,id:`hl_${e.id}`,filter:["in",Lf,...f],paint:IK[s.type]})))}function FK({layer:e,beforeId:t}){let{mapl:r}=(0,NK.useMap)();if(!r)return null;switch(e.source.type){case"vector":return K6.default.createElement(UK,{beforeId:t,layer:e});case"grid":return K6.default.createElement(zK,{beforeId:t,layer:e});default:return null}}var jK=Nt((c0(),on(u0))),Xo=Nt(ct("react")),BK=(Si(),on(xi)),Hh=Mr(),HK=BK.Popup;function VK({coordinates:e}){let{hover:t}=ha();return(e==null?void 0:e.lat)&&t.features?Xo.default.createElement(HK,{latitude:e.lat,longitude:e.lng,closeButton:!1},Xo.default.createElement("table",{className:Hh.tw`table-auto border`},Xo.default.createElement("thead",null,Xo.default.createElement("tr",null,Xo.default.createElement("th",{className:Hh.tw`bg-gray-200 py-1 px-2`,colSpan:2},t.features.title))),Xo.default.createElement("tbody",null,t.features.data.map(([r,o],s)=>Xo.default.createElement("tr",{key:r+o,className:(0,Hh.tw)((0,jK.default)({"bg-gray-50":s%2===0,"border-t":1}))},Xo.default.createElement("td",{className:Hh.tw`py-1 px-2`},r),Xo.default.createElement("td",{className:Hh.tw`py-1 px-2 border-l`},o)))))):null}var WK=R_.NavigationControl;function $K(){var e;let{mp:t,layer:r,hover:o}=ha(),{mapl:s}=(0,R_.useMap)(),[f,d]=(0,Ko.useState)(),p=(0,Ko.useMemo)(()=>t.defaultViewState||gQ.defaultViewState,[t.defaultViewState]),m=E=>{r.setSelectedFeatures(s.queryRenderedFeatures(E.point,{layers:r.selectionStyle===A_.TOP?[r.selectedIds[0]]:r.selectedIds}))},y=E=>{d(E.lngLat),o.onHover(E)};return Ko.default.createElement("div",{className:yQ.tw`h-full w-full relative bg-gray-100`},t.loadToC&&Ko.default.createElement(AK,null),((e=r.selectedFeatures)==null?void 0:e.length)>0&&Ko.default.createElement(oK,null),Ko.default.createElement(R_.default,{id:"mapl",cursor:"default",initialViewState:p,mapboxAccessToken:t.mapboxAccessToken,style:{width:"100%",height:"100%"},mapStyle:r.mapStyle,onClick:m,onMouseMove:y},Ko.default.createElement(WK,{position:"top-right",showZoom:!0,showCompass:!0}),r.selectedLayers.map((E,w)=>{let k=w>0?r.selectedIds[w-1]:void 0;return Ko.default.createElement(FK,{key:E.id,layer:E,beforeId:k})}),Ko.default.createElement(VK,{key:"popup",coordinates:f})))}var qK=e=>{let t=Uh.default.useMemo(()=>Ci(Ci({},SQ),e),[e]);return Uh.default.createElement(jY.MapProvider,null,Uh.default.createElement(FY.TranslationProvider,{localeStrings:mQ,lang:t.lang},Uh.default.createElement(FQ,{mp:t},Uh.default.createElement($K,null))))};oA.exports=UY(tA)});var gA=Mt((xte,mA)=>{G();var GK=Object.create,$h=Object.defineProperty,YK=Object.getOwnPropertyDescriptor,ZK=Object.getOwnPropertyNames,sA=Object.getOwnPropertySymbols,QK=Object.getPrototypeOf,dA=Object.prototype.hasOwnProperty,KK=Object.prototype.propertyIsEnumerable,uA=(e,t,r)=>t in e?$h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z0=(e,t)=>{for(var r in t||(t={}))dA.call(t,r)&&uA(e,r,t[r]);if(sA)for(var r of sA(t))KK.call(t,r)&&uA(e,r,t[r]);return e},pA=e=>$h(e,"__esModule",{value:!0}),JK=(e,t)=>{for(var r in t)$h(e,r,{get:t[r],enumerable:!0})},hA=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ZK(t))!dA.call(e,s)&&(r||s!=="default")&&$h(e,s,{get:()=>t[s],enumerable:!(o=YK(t,s))||o.enumerable});return e},I0=(e,t)=>hA(pA($h(e!=null?GK(QK(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),XK=(e=>(t,r)=>e&&e.get(t)||(r=hA(pA({}),t,1),e&&e.set(t,r),r))(typeof WeakMap<"u"?new WeakMap:0),vA={};JK(vA,{NakshaMapboxView:()=>lJ});var cA=I0(ct("react")),eJ=(Si(),on(xi)),fA=Er(),el=I0(ct("react")),Eu=I0((Si(),on(xi))),tJ={id:"data",type:"fill",paint:{"fill-color":"#f03b20","fill-opacity":.2},filter:["==",["geometry-type"],"Polygon"]},nJ={type:"circle",paint:{"circle-radius":8,"circle-color":"#f03b20","circle-opacity":.8},filter:["==",["geometry-type"],"Point"]},rJ={type:"line",paint:{"line-color":"#f03b20","line-width":1.6,"line-dasharray":[6,3],"line-opacity":.8},filter:["==",["geometry-type"],"LineString"]},iJ=I0(dh()),aJ=Eu.NavigationControl;function oJ(e){let{mapv:t}=(0,Eu.useMap)(),[r]=(0,el.useState)(fA.defaultMapStyles[(e==null?void 0:e.mapStyle)||0].style),[o]=(0,el.useState)(e.defaultViewState||fA.defaultViewState),s=()=>{if(!e.data||!t)return;let f=(0,iJ.default)(e.data);t.fitBounds(f,{padding:40,duration:1e3})};return(0,el.useEffect)(()=>{s()},[e.data]),el.default.createElement(Eu.default,{id:"mapv",cursor:"default",initialViewState:o,mapboxAccessToken:e.mapboxAccessToken,style:{width:"100%",height:"100%"},mapStyle:r,onLoad:s},el.default.createElement(aJ,{position:"top-right",showZoom:!0,showCompass:!0}),e.data&&el.default.createElement(Eu.Source,{type:"geojson",data:e.data},el.default.createElement(Eu.Layer,z0({},nJ)),el.default.createElement(Eu.Layer,z0({},rJ)),el.default.createElement(Eu.Layer,z0({},tJ))))}var lJ=e=>cA.default.createElement(eJ.MapProvider,null,cA.default.createElement(oJ,z0({},e)));mA.exports=XK(vA)});var nt={};G();rt(nt,Fi(Er()));rt(nt,Fi(G5()));rt(nt,Fi(a9()));rt(nt,Fi(hP()));rt(nt,Fi(lA()));rt(nt,Fi(gA()));
156
- /*
157
- object-assign
158
- (c) Sindre Sorhus
159
- @license MIT
160
- */
161
- /*! *****************************************************************************
162
- Copyright (c) Microsoft Corporation.
163
-
164
- Permission to use, copy, modify, and/or distribute this software for any
165
- purpose with or without fee is hereby granted.
166
-
167
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
168
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
169
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
170
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
171
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
172
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
173
- PERFORMANCE OF THIS SOFTWARE.
174
- ***************************************************************************** */
175
- /**
176
- * Checks if an event is supported in the current execution environment.
177
- *
178
- * NOTE: This will not work correctly for non-generic events such as `change`,
179
- * `reset`, `load`, `error`, and `select`.
180
- *
181
- * Borrows from Modernizr.
182
- *
183
- * @param {string} eventNameSuffix Event name, e.g. "click".
184
- * @return {boolean} True if the event is supported.
185
- * @internal
186
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
187
- */
188
- /** @license React v0.20.2
189
- * scheduler-tracing.development.js
190
- *
191
- * Copyright (c) Facebook, Inc. and its affiliates.
192
- *
193
- * This source code is licensed under the MIT license found in the
194
- * LICENSE file in the root directory of this source tree.
195
- */
196
- /** @license React v0.20.2
197
- * scheduler-tracing.production.min.js
198
- *
199
- * Copyright (c) Facebook, Inc. and its affiliates.
200
- *
201
- * This source code is licensed under the MIT license found in the
202
- * LICENSE file in the root directory of this source tree.
203
- */
204
- /** @license React v0.20.2
205
- * scheduler.development.js
206
- *
207
- * Copyright (c) Facebook, Inc. and its affiliates.
208
- *
209
- * This source code is licensed under the MIT license found in the
210
- * LICENSE file in the root directory of this source tree.
211
- */
212
- /** @license React v0.20.2
213
- * scheduler.production.min.js
214
- *
215
- * Copyright (c) Facebook, Inc. and its affiliates.
216
- *
217
- * This source code is licensed under the MIT license found in the
218
- * LICENSE file in the root directory of this source tree.
219
- */
220
- /** @license React v16.13.1
221
- * react-is.development.js
222
- *
223
- * Copyright (c) Facebook, Inc. and its affiliates.
224
- *
225
- * This source code is licensed under the MIT license found in the
226
- * LICENSE file in the root directory of this source tree.
227
- */
228
- /** @license React v16.13.1
229
- * react-is.production.min.js
230
- *
231
- * Copyright (c) Facebook, Inc. and its affiliates.
232
- *
233
- * This source code is licensed under the MIT license found in the
234
- * LICENSE file in the root directory of this source tree.
235
- */
236
- /** @license React v17.0.2
237
- * react-dom.development.js
238
- *
239
- * Copyright (c) Facebook, Inc. and its affiliates.
240
- *
241
- * This source code is licensed under the MIT license found in the
242
- * LICENSE file in the root directory of this source tree.
243
- */
244
- /** @license React v17.0.2
245
- * react-dom.production.min.js
246
- *
247
- * Copyright (c) Facebook, Inc. and its affiliates.
248
- *
249
- * This source code is licensed under the MIT license found in the
250
- * LICENSE file in the root directory of this source tree.
251
- */
1
+ var x=Object.create;var c=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var D=e=>c(e,"__esModule",{value:!0});var p=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var n=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of M(t))!A.call(e,o)&&(r||o!=="default")&&c(e,o,{get:()=>t[o],enumerable:!(a=T(t,o))||a.enumerable});return e},w=(e,t)=>n(D(c(e!=null?x(O(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var i=C(()=>{});var E=L((ee,P)=>{i();var I=Object.create,u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,G=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty,d=e=>u(e,"__esModule",{value:!0}),j=(e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0})},_=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of N(t))!R.call(e,o)&&(r||o!=="default")&&u(e,o,{get:()=>t[o],enumerable:!(a=h(t,o))||a.enumerable});return e},V=(e,t)=>_(d(u(e!=null?I(G(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),Y=(e=>(t,r)=>e&&e.get(t)||(r=_(d({}),t,1),e&&e.set(t,r),r))(typeof WeakMap<"u"?new WeakMap:0),S={};j(S,{GMAPS_AUTOCOMPLETE_FIELDS:()=>F,GMAPS_LIBRARIES:()=>U,LICENSES:()=>$,MapStyles:()=>g,TranslationProvider:()=>W,adminBoundries:()=>z,defaultMapStyles:()=>q,defaultViewState:()=>y,formatDate:()=>Q,getByPath:()=>b,mapboxToGmapsViewState:()=>H,useDebounce:()=>K,useT:()=>J});var F=["formatted_address","geometry","name"],U={DEFAULT:["drawing","places"],AUTOCOMPLETE:["drawing","places"]},$={"CC-BY":"//creativecommons.org/licenses/by/4.0","BY-SA":"//creativecommons.org/licenses/by-sa/4.0","BY-ND":"//creativecommons.org/licenses/by-nd/4.0","BY-NC":"//creativecommons.org/licenses/by-nc/4.0","BY-NC-SA":"//creativecommons.org/licenses/by-nc-sa/4.0","BY-NC-ND":"//creativecommons.org/licenses/by-nc-nd/4.0"},g=(e=>(e.MAP_STREETS="0",e.MAP_SATELLITE="1",e.MAP_DARK="2",e.MAP_OSM="3",e))(g||{}),y={latitude:22.5,longitude:79,zoom:3,bearing:0,pitch:0},q=[{text:"Streets",key:"0",style:"mapbox://styles/biodiv/cku4aoj5k1g9h17o5r3tjsntn"},{text:"Satellite",key:"1",style:"mapbox://styles/biodiv/cku49ca8q1esz18o7gxfjmh5r"},{text:"Dark",key:"2",style:"mapbox://styles/biodiv/cku4a35961fgo17mykoq76se1"},{text:"OSM",key:"3",style:"https://unpkg.com/maplibre-gl-styles@0.0.1/styles/osm-mapnik/v8/india.json"}],z=["admin-0-boundary","admin-1-boundary","admin-0-boundary-disputed","admin-1-boundary-bg","admin-0-boundary-bg"],m=V(p("react")),b=(e,t)=>(t.split(".").forEach(function(r){!e||(e=e[r])}),e),v=(0,m.createContext)({}),W=({localeStrings:e,lang:t="en",children:r})=>{let a=o=>{let l=b(e[t],o);return l||console.warn(`Translation '${o}' for locale '${t}' not found.`),l};return m.default.createElement(v.Provider,{value:{t:a}},r)};function J(){return(0,m.useContext)(v)}var f=p("react");function K(e,t){let[r,a]=(0,f.useState)(e);return(0,f.useEffect)(()=>{let o=setTimeout(()=>{a(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}var H=(e=y,t=1)=>({center:{lat:e.latitude,lng:e.longitude},zoom:e.zoom+t}),Q=e=>{let t=e.getFullYear().toString(),r=(e.getMonth()+101).toString().substring(1),a=(e.getDate()+100).toString().substring(1);return`${t}-${r}-${a}`};P.exports=Y(S)});var s={};i();n(s,w(E()));export*from"@ibp/naksha-gmaps-draw";export*from"@ibp/naksha-gmaps-view";export*from"@ibp/naksha-mapbox-draw";export*from"@ibp/naksha-mapbox-list";export*from"@ibp/naksha-mapbox-view";