vzcode 2.8.0 → 2.10.0

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.
@@ -34,13 +34,13 @@ function kZ(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&
34
34
  `+B+m}var j=!1;function ne(m,v){if(!m||j)return"";j=!0;var w=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(v)if(v=function(){throw Error()},Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(Ue){var C=Ue}Reflect.construct(m,[],v)}else{try{v.call()}catch(Ue){C=Ue}m.call(v.prototype)}else{try{throw Error()}catch(Ue){C=Ue}m()}}catch(Ue){if(Ue&&C&&typeof Ue.stack=="string"){for(var $=Ue.stack.split(`
35
35
  `),F=C.stack.split(`
36
36
  `),te=$.length-1,he=F.length-1;1<=te&&0<=he&&$[te]!==F[he];)he--;for(;1<=te&&0<=he;te--,he--)if($[te]!==F[he]){if(te!==1||he!==1)do if(te--,he--,0>he||$[te]!==F[he]){var xe=`
37
- `+$[te].replace(" at new "," at ");return m.displayName&&xe.includes("<anonymous>")&&(xe=xe.replace("<anonymous>",m.displayName)),xe}while(1<=te&&0<=he);break}}}finally{j=!1,Error.prepareStackTrace=w}return(m=m?m.displayName||m.name:"")?Y(m):""}function ee(m){switch(m.tag){case 5:return Y(m.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return m=ne(m.type,!1),m;case 11:return m=ne(m.type.render,!1),m;case 1:return m=ne(m.type,!0),m;default:return""}}function ue(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case I:return"Fragment";case _:return"Portal";case P:return"Profiler";case M:return"StrictMode";case L:return"Suspense";case A:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case R:return(m.displayName||"Context")+".Consumer";case E:return(m._context.displayName||"Context")+".Provider";case T:var v=m.render;return m=m.displayName,m||(m=v.displayName||v.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case H:return v=m.displayName||null,v!==null?v:ue(m.type)||"Memo";case W:v=m._payload,m=m._init;try{return ue(m(v))}catch{}}return null}function z(m){var v=m.type;switch(m.tag){case 24:return"Cache";case 9:return(v.displayName||"Context")+".Consumer";case 10:return(v._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=v.render,m=m.displayName||m.name||"",v.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return v;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ue(v);case 8:return v===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v}return null}function X(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function J(m){var v=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(v==="checkbox"||v==="radio")}function fe(m){var v=J(m)?"checked":"value",w=Object.getOwnPropertyDescriptor(m.constructor.prototype,v),C=""+m[v];if(!m.hasOwnProperty(v)&&typeof w<"u"&&typeof w.get=="function"&&typeof w.set=="function"){var $=w.get,F=w.set;return Object.defineProperty(m,v,{configurable:!0,get:function(){return $.call(this)},set:function(te){C=""+te,F.call(this,te)}}),Object.defineProperty(m,v,{enumerable:w.enumerable}),{getValue:function(){return C},setValue:function(te){C=""+te},stopTracking:function(){m._valueTracker=null,delete m[v]}}}}function we(m){m._valueTracker||(m._valueTracker=fe(m))}function Te(m){if(!m)return!1;var v=m._valueTracker;if(!v)return!0;var w=v.getValue(),C="";return m&&(C=J(m)?m.checked?"true":"false":m.value),m=C,m!==w?(v.setValue(m),!0):!1}function Re(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Q(m,v){var w=v.checked;return U({},v,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:w??m._wrapperState.initialChecked})}function ve(m,v){var w=v.defaultValue==null?"":v.defaultValue,C=v.checked!=null?v.checked:v.defaultChecked;w=X(v.value!=null?v.value:w),m._wrapperState={initialChecked:C,initialValue:w,controlled:v.type==="checkbox"||v.type==="radio"?v.checked!=null:v.value!=null}}function ge(m,v){v=v.checked,v!=null&&S(m,"checked",v,!1)}function ie(m,v){ge(m,v);var w=X(v.value),C=v.type;if(w!=null)C==="number"?(w===0&&m.value===""||m.value!=w)&&(m.value=""+w):m.value!==""+w&&(m.value=""+w);else if(C==="submit"||C==="reset"){m.removeAttribute("value");return}v.hasOwnProperty("value")?me(m,v.type,w):v.hasOwnProperty("defaultValue")&&me(m,v.type,X(v.defaultValue)),v.checked==null&&v.defaultChecked!=null&&(m.defaultChecked=!!v.defaultChecked)}function oe(m,v,w){if(v.hasOwnProperty("value")||v.hasOwnProperty("defaultValue")){var C=v.type;if(!(C!=="submit"&&C!=="reset"||v.value!==void 0&&v.value!==null))return;v=""+m._wrapperState.initialValue,w||v===m.value||(m.value=v),m.defaultValue=v}w=m.name,w!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,w!==""&&(m.name=w)}function me(m,v,w){(v!=="number"||Re(m.ownerDocument)!==m)&&(w==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+w&&(m.defaultValue=""+w))}var $e=Array.isArray;function Fe(m,v,w,C){if(m=m.options,v){v={};for(var $=0;$<w.length;$++)v["$"+w[$]]=!0;for(w=0;w<m.length;w++)$=v.hasOwnProperty("$"+m[w].value),m[w].selected!==$&&(m[w].selected=$),$&&C&&(m[w].defaultSelected=!0)}else{for(w=""+X(w),v=null,$=0;$<m.length;$++){if(m[$].value===w){m[$].selected=!0,C&&(m[$].defaultSelected=!0);return}v!==null||m[$].disabled||(v=m[$])}v!==null&&(v.selected=!0)}}function Pe(m,v){if(v.dangerouslySetInnerHTML!=null)throw Error(n(91));return U({},v,{value:void 0,defaultValue:void 0,children:""+m._wrapperState.initialValue})}function V(m,v){var w=v.value;if(w==null){if(w=v.children,v=v.defaultValue,w!=null){if(v!=null)throw Error(n(92));if($e(w)){if(1<w.length)throw Error(n(93));w=w[0]}v=w}v==null&&(v=""),w=v}m._wrapperState={initialValue:X(w)}}function ye(m,v){var w=X(v.value),C=X(v.defaultValue);w!=null&&(w=""+w,w!==m.value&&(m.value=w),v.defaultValue==null&&m.defaultValue!==w&&(m.defaultValue=w)),C!=null&&(m.defaultValue=""+C)}function _e(m){var v=m.textContent;v===m._wrapperState.initialValue&&v!==""&&v!==null&&(m.value=v)}function de(m){switch(m){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 Se(m,v){return m==null||m==="http://www.w3.org/1999/xhtml"?de(v):m==="http://www.w3.org/2000/svg"&&v==="foreignObject"?"http://www.w3.org/1999/xhtml":m}var Me,et=function(m){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(v,w,C,$){MSApp.execUnsafeLocalFunction(function(){return m(v,w,C,$)})}:m}(function(m,v){if(m.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in m)m.innerHTML=v;else{for(Me=Me||document.createElement("div"),Me.innerHTML="<svg>"+v.valueOf().toString()+"</svg>",v=Me.firstChild;m.firstChild;)m.removeChild(m.firstChild);for(;v.firstChild;)m.appendChild(v.firstChild)}});function st(m,v){if(v){var w=m.firstChild;if(w&&w===m.lastChild&&w.nodeType===3){w.nodeValue=v;return}}m.textContent=v}var Le={animationIterationCount:!0,aspectRatio:!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},at=["Webkit","ms","Moz","O"];Object.keys(Le).forEach(function(m){at.forEach(function(v){v=v+m.charAt(0).toUpperCase()+m.substring(1),Le[v]=Le[m]})});function We(m,v,w){return v==null||typeof v=="boolean"||v===""?"":w||typeof v!="number"||v===0||Le.hasOwnProperty(m)&&Le[m]?(""+v).trim():v+"px"}function dt(m,v){m=m.style;for(var w in v)if(v.hasOwnProperty(w)){var C=w.indexOf("--")===0,$=We(w,v[w],C);w==="float"&&(w="cssFloat"),C?m.setProperty(w,$):m[w]=$}}var wt=U({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 pt(m,v){if(v){if(wt[m]&&(v.children!=null||v.dangerouslySetInnerHTML!=null))throw Error(n(137,m));if(v.dangerouslySetInnerHTML!=null){if(v.children!=null)throw Error(n(60));if(typeof v.dangerouslySetInnerHTML!="object"||!("__html"in v.dangerouslySetInnerHTML))throw Error(n(61))}if(v.style!=null&&typeof v.style!="object")throw Error(n(62))}}function It(m,v){if(m.indexOf("-")===-1)return typeof v.is=="string";switch(m){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 nt=null;function Rt(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var un=null,Tt=null,qt=null;function On(m){if(m=wh(m)){if(typeof un!="function")throw Error(n(280));var v=m.stateNode;v&&(v=pg(v),un(m.stateNode,m.type,v))}}function Tn(m){Tt?qt?qt.push(m):qt=[m]:Tt=m}function bn(){if(Tt){var m=Tt,v=qt;if(qt=Tt=null,On(m),v)for(m=0;m<v.length;m++)On(v[m])}}function Rn(m,v){return m(v)}function ir(){}var pe=!1;function Ee(m,v,w){if(pe)return m(v,w);pe=!0;try{return Rn(m,v,w)}finally{pe=!1,(Tt!==null||qt!==null)&&(ir(),bn())}}function De(m,v){var w=m.stateNode;if(w===null)return null;var C=pg(w);if(C===null)return null;w=C[v];e:switch(v){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(m=m.type,C=!(m==="button"||m==="input"||m==="select"||m==="textarea")),m=!C;break e;default:m=!1}if(m)return null;if(w&&typeof w!="function")throw Error(n(231,v,typeof w));return w}var rt=!1;if(a)try{var ct={};Object.defineProperty(ct,"passive",{get:function(){rt=!0}}),window.addEventListener("test",ct,ct),window.removeEventListener("test",ct,ct)}catch{rt=!1}function ht(m,v,w,C,$,F,te,he,xe){var Ue=Array.prototype.slice.call(arguments,3);try{v.apply(w,Ue)}catch(vt){this.onError(vt)}}var Ve=!1,Ye=null,Je=!1,Ze=null,Ne={onError:function(m){Ve=!0,Ye=m}};function lt(m,v,w,C,$,F,te,he,xe){Ve=!1,Ye=null,ht.apply(Ne,arguments)}function Pt(m,v,w,C,$,F,te,he,xe){if(lt.apply(this,arguments),Ve){if(Ve){var Ue=Ye;Ve=!1,Ye=null}else throw Error(n(198));Je||(Je=!0,Ze=Ue)}}function Nt(m){var v=m,w=m;if(m.alternate)for(;v.return;)v=v.return;else{m=v;do v=m,(v.flags&4098)!==0&&(w=v.return),m=v.return;while(m)}return v.tag===3?w:null}function hn(m){if(m.tag===13){var v=m.memoizedState;if(v===null&&(m=m.alternate,m!==null&&(v=m.memoizedState)),v!==null)return v.dehydrated}return null}function cn(m){if(Nt(m)!==m)throw Error(n(188))}function Kt(m){var v=m.alternate;if(!v){if(v=Nt(m),v===null)throw Error(n(188));return v!==m?null:m}for(var w=m,C=v;;){var $=w.return;if($===null)break;var F=$.alternate;if(F===null){if(C=$.return,C!==null){w=C;continue}break}if($.child===F.child){for(F=$.child;F;){if(F===w)return cn($),m;if(F===C)return cn($),v;F=F.sibling}throw Error(n(188))}if(w.return!==C.return)w=$,C=F;else{for(var te=!1,he=$.child;he;){if(he===w){te=!0,w=$,C=F;break}if(he===C){te=!0,C=$,w=F;break}he=he.sibling}if(!te){for(he=F.child;he;){if(he===w){te=!0,w=F,C=$;break}if(he===C){te=!0,C=F,w=$;break}he=he.sibling}if(!te)throw Error(n(189))}}if(w.alternate!==C)throw Error(n(190))}if(w.tag!==3)throw Error(n(188));return w.stateNode.current===w?m:v}function sn(m){return m=Kt(m),m!==null?nn(m):null}function nn(m){if(m.tag===5||m.tag===6)return m;for(m=m.child;m!==null;){var v=nn(m);if(v!==null)return v;m=m.sibling}return null}var Yt=e.unstable_scheduleCallback,Ct=e.unstable_cancelCallback,ln=e.unstable_shouldYield,or=e.unstable_requestPaint,wn=e.unstable_now,fr=e.unstable_getCurrentPriorityLevel,lr=e.unstable_ImmediatePriority,ce=e.unstable_UserBlockingPriority,le=e.unstable_NormalPriority,Oe=e.unstable_LowPriority,Xe=e.unstable_IdlePriority,Ae=null,ze=null;function bt(m){if(ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(Ae,m,void 0,(m.current.flags&128)===128)}catch{}}var ot=Math.clz32?Math.clz32:At,yt=Math.log,zt=Math.LN2;function At(m){return m>>>=0,m===0?32:31-(yt(m)/zt|0)|0}var Cn=64,jn=4194304;function tn(m){switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function Sn(m,v){var w=m.pendingLanes;if(w===0)return 0;var C=0,$=m.suspendedLanes,F=m.pingedLanes,te=w&268435455;if(te!==0){var he=te&~$;he!==0?C=tn(he):(F&=te,F!==0&&(C=tn(F)))}else te=w&~$,te!==0?C=tn(te):F!==0&&(C=tn(F));if(C===0)return 0;if(v!==0&&v!==C&&(v&$)===0&&($=C&-C,F=v&-v,$>=F||$===16&&(F&4194240)!==0))return v;if((C&4)!==0&&(C|=w&16),v=m.entangledLanes,v!==0)for(m=m.entanglements,v&=C;0<v;)w=31-ot(v),$=1<<w,C|=m[w],v&=~$;return C}function Pn(m,v){switch(m){case 1:case 2:case 4:return v+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return v+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qt(m,v){for(var w=m.suspendedLanes,C=m.pingedLanes,$=m.expirationTimes,F=m.pendingLanes;0<F;){var te=31-ot(F),he=1<<te,xe=$[te];xe===-1?((he&w)===0||(he&C)!==0)&&($[te]=Pn(he,v)):xe<=v&&(m.expiredLanes|=he),F&=~he}}function fn(m){return m=m.pendingLanes&-1073741825,m!==0?m:m&1073741824?1073741824:0}function Dn(){var m=Cn;return Cn<<=1,(Cn&4194240)===0&&(Cn=64),m}function Fn(m){for(var v=[],w=0;31>w;w++)v.push(m);return v}function Ft(m,v,w){m.pendingLanes|=v,v!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,v=31-ot(v),m[v]=w}function Bn(m,v){var w=m.pendingLanes&~v;m.pendingLanes=v,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=v,m.mutableReadLanes&=v,m.entangledLanes&=v,v=m.entanglements;var C=m.eventTimes;for(m=m.expirationTimes;0<w;){var $=31-ot(w),F=1<<$;v[$]=0,C[$]=-1,m[$]=-1,w&=~F}}function In(m,v){var w=m.entangledLanes|=v;for(m=m.entanglements;w;){var C=31-ot(w),$=1<<C;$&v|m[C]&v&&(m[C]|=v),w&=~$}}var dn=0;function Xr(m){return m&=-m,1<m?4<m?(m&268435455)!==0?16:536870912:4:1}var jr,gr,Hr,zi,ei,Wi=!1,$i=[],Tr=null,Qr=null,ao=null,Zi=new Map,ps=new Map,lo=[],tl="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 da(m,v){switch(m){case"focusin":case"focusout":Tr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":ao=null;break;case"pointerover":case"pointerout":Zi.delete(v.pointerId);break;case"gotpointercapture":case"lostpointercapture":ps.delete(v.pointerId)}}function uo(m,v,w,C,$,F){return m===null||m.nativeEvent!==F?(m={blockedOn:v,domEventName:w,eventSystemFlags:C,nativeEvent:F,targetContainers:[$]},v!==null&&(v=wh(v),v!==null&&gr(v)),m):(m.eventSystemFlags|=C,v=m.targetContainers,$!==null&&v.indexOf($)===-1&&v.push($),m)}function ko(m,v,w,C,$){switch(v){case"focusin":return Tr=uo(Tr,m,v,w,C,$),!0;case"dragenter":return Qr=uo(Qr,m,v,w,C,$),!0;case"mouseover":return ao=uo(ao,m,v,w,C,$),!0;case"pointerover":var F=$.pointerId;return Zi.set(F,uo(Zi.get(F)||null,m,v,w,C,$)),!0;case"gotpointercapture":return F=$.pointerId,ps.set(F,uo(ps.get(F)||null,m,v,w,C,$)),!0}return!1}function Ns(m){var v=sc(m.target);if(v!==null){var w=Nt(v);if(w!==null){if(v=w.tag,v===13){if(v=hn(w),v!==null){m.blockedOn=v,ei(m.priority,function(){Hr(w)});return}}else if(v===3&&w.stateNode.current.memoizedState.isDehydrated){m.blockedOn=w.tag===3?w.stateNode.containerInfo:null;return}}}m.blockedOn=null}function xo(m){if(m.blockedOn!==null)return!1;for(var v=m.targetContainers;0<v.length;){var w=Bl(m.domEventName,m.eventSystemFlags,v[0],m.nativeEvent);if(w===null){w=m.nativeEvent;var C=new w.constructor(w.type,w);nt=C,w.target.dispatchEvent(C),nt=null}else return v=wh(w),v!==null&&gr(v),m.blockedOn=w,!1;v.shift()}return!0}function ms(m,v,w){xo(m)&&w.delete(v)}function Ql(){Wi=!1,Tr!==null&&xo(Tr)&&(Tr=null),Qr!==null&&xo(Qr)&&(Qr=null),ao!==null&&xo(ao)&&(ao=null),Zi.forEach(ms),ps.forEach(ms)}function ha(m,v){m.blockedOn===v&&(m.blockedOn=null,Wi||(Wi=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ql)))}function Ls(m){function v($){return ha($,m)}if(0<$i.length){ha($i[0],m);for(var w=1;w<$i.length;w++){var C=$i[w];C.blockedOn===m&&(C.blockedOn=null)}}for(Tr!==null&&ha(Tr,m),Qr!==null&&ha(Qr,m),ao!==null&&ha(ao,m),Zi.forEach(v),ps.forEach(v),w=0;w<lo.length;w++)C=lo[w],C.blockedOn===m&&(C.blockedOn=null);for(;0<lo.length&&(w=lo[0],w.blockedOn===null);)Ns(w),w.blockedOn===null&&lo.shift()}var Ho=k.ReactCurrentBatchConfig,nl=!0;function Fl(m,v,w,C){var $=dn,F=Ho.transition;Ho.transition=null;try{dn=1,js(m,v,w,C)}finally{dn=$,Ho.transition=F}}function ch(m,v,w,C){var $=dn,F=Ho.transition;Ho.transition=null;try{dn=4,js(m,v,w,C)}finally{dn=$,Ho.transition=F}}function js(m,v,w,C){if(nl){var $=Bl(m,v,w,C);if($===null)fb(m,v,C,rl,w),da(m,C);else if(ko($,m,v,w,C))C.stopPropagation();else if(da(m,C),v&4&&-1<tl.indexOf(m)){for(;$!==null;){var F=wh($);if(F!==null&&jr(F),F=Bl(m,v,w,C),F===null&&fb(m,v,C,rl,w),F===$)break;$=F}$!==null&&C.stopPropagation()}else fb(m,v,C,null,w)}}var rl=null;function Bl(m,v,w,C){if(rl=null,m=Rt(C),m=sc(m),m!==null)if(v=Nt(m),v===null)m=null;else if(w=v.tag,w===13){if(m=hn(v),m!==null)return m;m=null}else if(w===3){if(v.stateNode.current.memoizedState.isDehydrated)return v.tag===3?v.stateNode.containerInfo:null;m=null}else v!==m&&(m=null);return rl=m,null}function rc(m){switch(m){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(fr()){case lr:return 1;case ce:return 4;case le:case Oe:return 16;case Xe:return 536870912;default:return 16}default:return 16}}var _i=null,Yo=null,pa=null;function Ul(){if(pa)return pa;var m,v=Yo,w=v.length,C,$="value"in _i?_i.value:_i.textContent,F=$.length;for(m=0;m<w&&v[m]===$[m];m++);var te=w-m;for(C=1;C<=te&&v[w-C]===$[F-C];C++);return pa=$.slice(m,1<C?1-C:void 0)}function Qs(m){var v=m.keyCode;return"charCode"in m?(m=m.charCode,m===0&&v===13&&(m=13)):m=v,m===10&&(m=13),32<=m||m===13?m:0}function il(){return!0}function ql(){return!1}function gi(m){function v(w,C,$,F,te){this._reactName=w,this._targetInst=$,this.type=C,this.nativeEvent=F,this.target=te,this.currentTarget=null;for(var he in m)m.hasOwnProperty(he)&&(w=m[he],this[he]=w?w(F):F[he]);return this.isDefaultPrevented=(F.defaultPrevented!=null?F.defaultPrevented:F.returnValue===!1)?il:ql,this.isPropagationStopped=ql,this}return U(v.prototype,{preventDefault:function(){this.defaultPrevented=!0;var w=this.nativeEvent;w&&(w.preventDefault?w.preventDefault():typeof w.returnValue!="unknown"&&(w.returnValue=!1),this.isDefaultPrevented=il)},stopPropagation:function(){var w=this.nativeEvent;w&&(w.stopPropagation?w.stopPropagation():typeof w.cancelBubble!="unknown"&&(w.cancelBubble=!0),this.isPropagationStopped=il)},persist:function(){},isPersistent:il}),v}var Fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(m){return m.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ol=gi(Fs),Vl=U({},Fs,{view:0,detail:0}),eb=gi(Vl),lf,fh,se,re=U({},Vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,button:0,buttons:0,relatedTarget:function(m){return m.relatedTarget===void 0?m.fromElement===m.srcElement?m.toElement:m.fromElement:m.relatedTarget},movementX:function(m){return"movementX"in m?m.movementX:(m!==se&&(se&&m.type==="mousemove"?(lf=m.screenX-se.screenX,fh=m.screenY-se.screenY):fh=lf=0,se=m),lf)},movementY:function(m){return"movementY"in m?m.movementY:fh}}),ae=gi(re),ke=U({},re,{dataTransfer:0}),Qe=gi(ke),Be=U({},Vl,{relatedTarget:0}),He=gi(Be),Ge=U({},Fs,{animationName:0,elapsedTime:0,pseudoElement:0}),mt=gi(Ge),Jt=U({},Fs,{clipboardData:function(m){return"clipboardData"in m?m.clipboardData:window.clipboardData}}),Un=gi(Jt),Gn=U({},Fs,{data:0}),qn=gi(Gn),_o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zl={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"},sl={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ic(m){var v=this.nativeEvent;return v.getModifierState?v.getModifierState(m):(m=sl[m])?!!v[m]:!1}function Xn(){return ic}var pn=U({},Vl,{key:function(m){if(m.key){var v=_o[m.key]||m.key;if(v!=="Unidentified")return v}return m.type==="keypress"?(m=Qs(m),m===13?"Enter":String.fromCharCode(m)):m.type==="keydown"||m.type==="keyup"?zl[m.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(m){return m.type==="keypress"?Qs(m):0},keyCode:function(m){return m.type==="keydown"||m.type==="keyup"?m.keyCode:0},which:function(m){return m.type==="keypress"?Qs(m):m.type==="keydown"||m.type==="keyup"?m.keyCode:0}}),Gt=gi(pn),mn=U({},re,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vn=gi(mn),kr=U({},Vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn}),oi=gi(kr),Po=U({},Fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wl=gi(Po),al=U({},re,{deltaX:function(m){return"deltaX"in m?m.deltaX:"wheelDeltaX"in m?-m.wheelDeltaX:0},deltaY:function(m){return"deltaY"in m?m.deltaY:"wheelDeltaY"in m?-m.wheelDeltaY:"wheelDelta"in m?-m.wheelDelta:0},deltaZ:0,deltaMode:0}),oc=gi(al),yW=[9,13,27,32],tb=a&&"CompositionEvent"in window,dh=null;a&&"documentMode"in document&&(dh=document.documentMode);var OW=a&&"TextEvent"in window&&!dh,mR=a&&(!tb||dh&&8<dh&&11>=dh),gR=" ",vR=!1;function yR(m,v){switch(m){case"keyup":return yW.indexOf(v.keyCode)!==-1;case"keydown":return v.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OR(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var uf=!1;function bW(m,v){switch(m){case"compositionend":return OR(v);case"keypress":return v.which!==32?null:(vR=!0,gR);case"textInput":return m=v.data,m===gR&&vR?null:m;default:return null}}function wW(m,v){if(uf)return m==="compositionend"||!tb&&yR(m,v)?(m=Ul(),pa=Yo=_i=null,uf=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(v.ctrlKey||v.altKey||v.metaKey)||v.ctrlKey&&v.altKey){if(v.char&&1<v.char.length)return v.char;if(v.which)return String.fromCharCode(v.which)}return null;case"compositionend":return mR&&v.locale!=="ko"?null:v.data;default:return null}}var SW={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 bR(m){var v=m&&m.nodeName&&m.nodeName.toLowerCase();return v==="input"?!!SW[m.type]:v==="textarea"}function wR(m,v,w,C){Tn(C),v=fg(v,"onChange"),0<v.length&&(w=new ol("onChange","change",null,w,C),m.push({event:w,listeners:v}))}var hh=null,ph=null;function kW(m){QR(m,0)}function ag(m){var v=pf(m);if(Te(v))return m}function xW(m,v){if(m==="change")return v}var SR=!1;if(a){var nb;if(a){var rb="oninput"in document;if(!rb){var kR=document.createElement("div");kR.setAttribute("oninput","return;"),rb=typeof kR.oninput=="function"}nb=rb}else nb=!1;SR=nb&&(!document.documentMode||9<document.documentMode)}function xR(){hh&&(hh.detachEvent("onpropertychange",_R),ph=hh=null)}function _R(m){if(m.propertyName==="value"&&ag(ph)){var v=[];wR(v,ph,m,Rt(m)),Ee(kW,v)}}function _W(m,v,w){m==="focusin"?(xR(),hh=v,ph=w,hh.attachEvent("onpropertychange",_R)):m==="focusout"&&xR()}function PW(m){if(m==="selectionchange"||m==="keyup"||m==="keydown")return ag(ph)}function CW(m,v){if(m==="click")return ag(v)}function EW(m,v){if(m==="input"||m==="change")return ag(v)}function TW(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var Bs=typeof Object.is=="function"?Object.is:TW;function mh(m,v){if(Bs(m,v))return!0;if(typeof m!="object"||m===null||typeof v!="object"||v===null)return!1;var w=Object.keys(m),C=Object.keys(v);if(w.length!==C.length)return!1;for(C=0;C<w.length;C++){var $=w[C];if(!l.call(v,$)||!Bs(m[$],v[$]))return!1}return!0}function PR(m){for(;m&&m.firstChild;)m=m.firstChild;return m}function CR(m,v){var w=PR(m);m=0;for(var C;w;){if(w.nodeType===3){if(C=m+w.textContent.length,m<=v&&C>=v)return{node:w,offset:v-m};m=C}e:{for(;w;){if(w.nextSibling){w=w.nextSibling;break e}w=w.parentNode}w=void 0}w=PR(w)}}function ER(m,v){return m&&v?m===v?!0:m&&m.nodeType===3?!1:v&&v.nodeType===3?ER(m,v.parentNode):"contains"in m?m.contains(v):m.compareDocumentPosition?!!(m.compareDocumentPosition(v)&16):!1:!1}function TR(){for(var m=window,v=Re();v instanceof m.HTMLIFrameElement;){try{var w=typeof v.contentWindow.location.href=="string"}catch{w=!1}if(w)m=v.contentWindow;else break;v=Re(m.document)}return v}function ib(m){var v=m&&m.nodeName&&m.nodeName.toLowerCase();return v&&(v==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||v==="textarea"||m.contentEditable==="true")}function RW(m){var v=TR(),w=m.focusedElem,C=m.selectionRange;if(v!==w&&w&&w.ownerDocument&&ER(w.ownerDocument.documentElement,w)){if(C!==null&&ib(w)){if(v=C.start,m=C.end,m===void 0&&(m=v),"selectionStart"in w)w.selectionStart=v,w.selectionEnd=Math.min(m,w.value.length);else if(m=(v=w.ownerDocument||document)&&v.defaultView||window,m.getSelection){m=m.getSelection();var $=w.textContent.length,F=Math.min(C.start,$);C=C.end===void 0?F:Math.min(C.end,$),!m.extend&&F>C&&($=C,C=F,F=$),$=CR(w,F);var te=CR(w,C);$&&te&&(m.rangeCount!==1||m.anchorNode!==$.node||m.anchorOffset!==$.offset||m.focusNode!==te.node||m.focusOffset!==te.offset)&&(v=v.createRange(),v.setStart($.node,$.offset),m.removeAllRanges(),F>C?(m.addRange(v),m.extend(te.node,te.offset)):(v.setEnd(te.node,te.offset),m.addRange(v)))}}for(v=[],m=w;m=m.parentNode;)m.nodeType===1&&v.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<v.length;w++)m=v[w],m.element.scrollLeft=m.left,m.element.scrollTop=m.top}}var AW=a&&"documentMode"in document&&11>=document.documentMode,cf=null,ob=null,gh=null,sb=!1;function RR(m,v,w){var C=w.window===w?w.document:w.nodeType===9?w:w.ownerDocument;sb||cf==null||cf!==Re(C)||(C=cf,"selectionStart"in C&&ib(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),gh&&mh(gh,C)||(gh=C,C=fg(ob,"onSelect"),0<C.length&&(v=new ol("onSelect","select",null,v,w),m.push({event:v,listeners:C}),v.target=cf)))}function lg(m,v){var w={};return w[m.toLowerCase()]=v.toLowerCase(),w["Webkit"+m]="webkit"+v,w["Moz"+m]="moz"+v,w}var ff={animationend:lg("Animation","AnimationEnd"),animationiteration:lg("Animation","AnimationIteration"),animationstart:lg("Animation","AnimationStart"),transitionend:lg("Transition","TransitionEnd")},ab={},AR={};a&&(AR=document.createElement("div").style,"AnimationEvent"in window||(delete ff.animationend.animation,delete ff.animationiteration.animation,delete ff.animationstart.animation),"TransitionEvent"in window||delete ff.transitionend.transition);function ug(m){if(ab[m])return ab[m];if(!ff[m])return m;var v=ff[m],w;for(w in v)if(v.hasOwnProperty(w)&&w in AR)return ab[m]=v[w];return m}var MR=ug("animationend"),DR=ug("animationiteration"),IR=ug("animationstart"),$R=ug("transitionend"),NR=new Map,LR="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zl(m,v){NR.set(m,v),o(v,[m])}for(var lb=0;lb<LR.length;lb++){var ub=LR[lb],MW=ub.toLowerCase(),DW=ub[0].toUpperCase()+ub.slice(1);Zl(MW,"on"+DW)}Zl(MR,"onAnimationEnd"),Zl(DR,"onAnimationIteration"),Zl(IR,"onAnimationStart"),Zl("dblclick","onDoubleClick"),Zl("focusin","onFocus"),Zl("focusout","onBlur"),Zl($R,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),IW=new Set("cancel close invalid load scroll toggle".split(" ").concat(vh));function jR(m,v,w){var C=m.type||"unknown-event";m.currentTarget=w,Pt(C,v,void 0,m),m.currentTarget=null}function QR(m,v){v=(v&4)!==0;for(var w=0;w<m.length;w++){var C=m[w],$=C.event;C=C.listeners;e:{var F=void 0;if(v)for(var te=C.length-1;0<=te;te--){var he=C[te],xe=he.instance,Ue=he.currentTarget;if(he=he.listener,xe!==F&&$.isPropagationStopped())break e;jR($,he,Ue),F=xe}else for(te=0;te<C.length;te++){if(he=C[te],xe=he.instance,Ue=he.currentTarget,he=he.listener,xe!==F&&$.isPropagationStopped())break e;jR($,he,Ue),F=xe}}}if(Je)throw m=Ze,Je=!1,Ze=null,m}function Rr(m,v){var w=v[vb];w===void 0&&(w=v[vb]=new Set);var C=m+"__bubble";w.has(C)||(FR(v,m,2,!1),w.add(C))}function cb(m,v,w){var C=0;v&&(C|=4),FR(w,m,C,v)}var cg="_reactListening"+Math.random().toString(36).slice(2);function yh(m){if(!m[cg]){m[cg]=!0,r.forEach(function(w){w!=="selectionchange"&&(IW.has(w)||cb(w,!1,m),cb(w,!0,m))});var v=m.nodeType===9?m:m.ownerDocument;v===null||v[cg]||(v[cg]=!0,cb("selectionchange",!1,v))}}function FR(m,v,w,C){switch(rc(v)){case 1:var $=Fl;break;case 4:$=ch;break;default:$=js}w=$.bind(null,v,w,m),$=void 0,!rt||v!=="touchstart"&&v!=="touchmove"&&v!=="wheel"||($=!0),C?$!==void 0?m.addEventListener(v,w,{capture:!0,passive:$}):m.addEventListener(v,w,!0):$!==void 0?m.addEventListener(v,w,{passive:$}):m.addEventListener(v,w,!1)}function fb(m,v,w,C,$){var F=C;if((v&1)===0&&(v&2)===0&&C!==null)e:for(;;){if(C===null)return;var te=C.tag;if(te===3||te===4){var he=C.stateNode.containerInfo;if(he===$||he.nodeType===8&&he.parentNode===$)break;if(te===4)for(te=C.return;te!==null;){var xe=te.tag;if((xe===3||xe===4)&&(xe=te.stateNode.containerInfo,xe===$||xe.nodeType===8&&xe.parentNode===$))return;te=te.return}for(;he!==null;){if(te=sc(he),te===null)return;if(xe=te.tag,xe===5||xe===6){C=F=te;continue e}he=he.parentNode}}C=C.return}Ee(function(){var Ue=F,vt=Rt(w),Ot=[];e:{var gt=NR.get(m);if(gt!==void 0){var Bt=ol,Zt=m;switch(m){case"keypress":if(Qs(w)===0)break e;case"keydown":case"keyup":Bt=Gt;break;case"focusin":Zt="focus",Bt=He;break;case"focusout":Zt="blur",Bt=He;break;case"beforeblur":case"afterblur":Bt=He;break;case"click":if(w.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Bt=ae;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Bt=Qe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Bt=oi;break;case MR:case DR:case IR:Bt=mt;break;case $R:Bt=Wl;break;case"scroll":Bt=eb;break;case"wheel":Bt=oc;break;case"copy":case"cut":case"paste":Bt=Un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Bt=Vn}var en=(v&4)!==0,ti=!en&&m==="scroll",Ie=en?gt!==null?gt+"Capture":null:gt;en=[];for(var Ce=Ue,je;Ce!==null;){je=Ce;var xt=je.stateNode;if(je.tag===5&&xt!==null&&(je=xt,Ie!==null&&(xt=De(Ce,Ie),xt!=null&&en.push(Oh(Ce,xt,je)))),ti)break;Ce=Ce.return}0<en.length&&(gt=new Bt(gt,Zt,null,w,vt),Ot.push({event:gt,listeners:en}))}}if((v&7)===0){e:{if(gt=m==="mouseover"||m==="pointerover",Bt=m==="mouseout"||m==="pointerout",gt&&w!==nt&&(Zt=w.relatedTarget||w.fromElement)&&(sc(Zt)||Zt[ll]))break e;if((Bt||gt)&&(gt=vt.window===vt?vt:(gt=vt.ownerDocument)?gt.defaultView||gt.parentWindow:window,Bt?(Zt=w.relatedTarget||w.toElement,Bt=Ue,Zt=Zt?sc(Zt):null,Zt!==null&&(ti=Nt(Zt),Zt!==ti||Zt.tag!==5&&Zt.tag!==6)&&(Zt=null)):(Bt=null,Zt=Ue),Bt!==Zt)){if(en=ae,xt="onMouseLeave",Ie="onMouseEnter",Ce="mouse",(m==="pointerout"||m==="pointerover")&&(en=Vn,xt="onPointerLeave",Ie="onPointerEnter",Ce="pointer"),ti=Bt==null?gt:pf(Bt),je=Zt==null?gt:pf(Zt),gt=new en(xt,Ce+"leave",Bt,w,vt),gt.target=ti,gt.relatedTarget=je,xt=null,sc(vt)===Ue&&(en=new en(Ie,Ce+"enter",Zt,w,vt),en.target=je,en.relatedTarget=ti,xt=en),ti=xt,Bt&&Zt)t:{for(en=Bt,Ie=Zt,Ce=0,je=en;je;je=df(je))Ce++;for(je=0,xt=Ie;xt;xt=df(xt))je++;for(;0<Ce-je;)en=df(en),Ce--;for(;0<je-Ce;)Ie=df(Ie),je--;for(;Ce--;){if(en===Ie||Ie!==null&&en===Ie.alternate)break t;en=df(en),Ie=df(Ie)}en=null}else en=null;Bt!==null&&BR(Ot,gt,Bt,en,!1),Zt!==null&&ti!==null&&BR(Ot,ti,Zt,en,!0)}}e:{if(gt=Ue?pf(Ue):window,Bt=gt.nodeName&&gt.nodeName.toLowerCase(),Bt==="select"||Bt==="input"&&gt.type==="file")var rn=xW;else if(bR(gt))if(SR)rn=EW;else{rn=PW;var gn=_W}else(Bt=gt.nodeName)&&Bt.toLowerCase()==="input"&&(gt.type==="checkbox"||gt.type==="radio")&&(rn=CW);if(rn&&(rn=rn(m,Ue))){wR(Ot,rn,w,vt);break e}gn&&gn(m,gt,Ue),m==="focusout"&&(gn=gt._wrapperState)&&gn.controlled&&gt.type==="number"&&me(gt,"number",gt.value)}switch(gn=Ue?pf(Ue):window,m){case"focusin":(bR(gn)||gn.contentEditable==="true")&&(cf=gn,ob=Ue,gh=null);break;case"focusout":gh=ob=cf=null;break;case"mousedown":sb=!0;break;case"contextmenu":case"mouseup":case"dragend":sb=!1,RR(Ot,w,vt);break;case"selectionchange":if(AW)break;case"keydown":case"keyup":RR(Ot,w,vt)}var vn;if(tb)e:{switch(m){case"compositionstart":var kn="onCompositionStart";break e;case"compositionend":kn="onCompositionEnd";break e;case"compositionupdate":kn="onCompositionUpdate";break e}kn=void 0}else uf?yR(m,w)&&(kn="onCompositionEnd"):m==="keydown"&&w.keyCode===229&&(kn="onCompositionStart");kn&&(mR&&w.locale!=="ko"&&(uf||kn!=="onCompositionStart"?kn==="onCompositionEnd"&&uf&&(vn=Ul()):(_i=vt,Yo="value"in _i?_i.value:_i.textContent,uf=!0)),gn=fg(Ue,kn),0<gn.length&&(kn=new qn(kn,m,null,w,vt),Ot.push({event:kn,listeners:gn}),vn?kn.data=vn:(vn=OR(w),vn!==null&&(kn.data=vn)))),(vn=OW?bW(m,w):wW(m,w))&&(Ue=fg(Ue,"onBeforeInput"),0<Ue.length&&(vt=new qn("onBeforeInput","beforeinput",null,w,vt),Ot.push({event:vt,listeners:Ue}),vt.data=vn))}QR(Ot,v)})}function Oh(m,v,w){return{instance:m,listener:v,currentTarget:w}}function fg(m,v){for(var w=v+"Capture",C=[];m!==null;){var $=m,F=$.stateNode;$.tag===5&&F!==null&&($=F,F=De(m,w),F!=null&&C.unshift(Oh(m,F,$)),F=De(m,v),F!=null&&C.push(Oh(m,F,$))),m=m.return}return C}function df(m){if(m===null)return null;do m=m.return;while(m&&m.tag!==5);return m||null}function BR(m,v,w,C,$){for(var F=v._reactName,te=[];w!==null&&w!==C;){var he=w,xe=he.alternate,Ue=he.stateNode;if(xe!==null&&xe===C)break;he.tag===5&&Ue!==null&&(he=Ue,$?(xe=De(w,F),xe!=null&&te.unshift(Oh(w,xe,he))):$||(xe=De(w,F),xe!=null&&te.push(Oh(w,xe,he)))),w=w.return}te.length!==0&&m.push({event:v,listeners:te})}var $W=/\r\n?/g,NW=/\u0000|\uFFFD/g;function UR(m){return(typeof m=="string"?m:""+m).replace($W,`
38
- `).replace(NW,"")}function dg(m,v,w){if(v=UR(v),UR(m)!==v&&w)throw Error(n(425))}function hg(){}var db=null,hb=null;function pb(m,v){return m==="textarea"||m==="noscript"||typeof v.children=="string"||typeof v.children=="number"||typeof v.dangerouslySetInnerHTML=="object"&&v.dangerouslySetInnerHTML!==null&&v.dangerouslySetInnerHTML.__html!=null}var mb=typeof setTimeout=="function"?setTimeout:void 0,LW=typeof clearTimeout=="function"?clearTimeout:void 0,qR=typeof Promise=="function"?Promise:void 0,jW=typeof queueMicrotask=="function"?queueMicrotask:typeof qR<"u"?function(m){return qR.resolve(null).then(m).catch(QW)}:mb;function QW(m){setTimeout(function(){throw m})}function gb(m,v){var w=v,C=0;do{var $=w.nextSibling;if(m.removeChild(w),$&&$.nodeType===8)if(w=$.data,w==="/$"){if(C===0){m.removeChild($),Ls(v);return}C--}else w!=="$"&&w!=="$?"&&w!=="$!"||C++;w=$}while(w);Ls(v)}function Xl(m){for(;m!=null;m=m.nextSibling){var v=m.nodeType;if(v===1||v===3)break;if(v===8){if(v=m.data,v==="$"||v==="$!"||v==="$?")break;if(v==="/$")return null}}return m}function VR(m){m=m.previousSibling;for(var v=0;m;){if(m.nodeType===8){var w=m.data;if(w==="$"||w==="$!"||w==="$?"){if(v===0)return m;v--}else w==="/$"&&v++}m=m.previousSibling}return null}var hf=Math.random().toString(36).slice(2),ma="__reactFiber$"+hf,bh="__reactProps$"+hf,ll="__reactContainer$"+hf,vb="__reactEvents$"+hf,FW="__reactListeners$"+hf,BW="__reactHandles$"+hf;function sc(m){var v=m[ma];if(v)return v;for(var w=m.parentNode;w;){if(v=w[ll]||w[ma]){if(w=v.alternate,v.child!==null||w!==null&&w.child!==null)for(m=VR(m);m!==null;){if(w=m[ma])return w;m=VR(m)}return v}m=w,w=m.parentNode}return null}function wh(m){return m=m[ma]||m[ll],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function pf(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(n(33))}function pg(m){return m[bh]||null}var yb=[],mf=-1;function Hl(m){return{current:m}}function Ar(m){0>mf||(m.current=yb[mf],yb[mf]=null,mf--)}function xr(m,v){mf++,yb[mf]=m.current,m.current=v}var Yl={},Xi=Hl(Yl),Co=Hl(!1),ac=Yl;function gf(m,v){var w=m.type.contextTypes;if(!w)return Yl;var C=m.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===v)return C.__reactInternalMemoizedMaskedChildContext;var $={},F;for(F in w)$[F]=v[F];return C&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=v,m.__reactInternalMemoizedMaskedChildContext=$),$}function Eo(m){return m=m.childContextTypes,m!=null}function mg(){Ar(Co),Ar(Xi)}function zR(m,v,w){if(Xi.current!==Yl)throw Error(n(168));xr(Xi,v),xr(Co,w)}function WR(m,v,w){var C=m.stateNode;if(v=v.childContextTypes,typeof C.getChildContext!="function")return w;C=C.getChildContext();for(var $ in C)if(!($ in v))throw Error(n(108,z(m)||"Unknown",$));return U({},w,C)}function gg(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||Yl,ac=Xi.current,xr(Xi,m),xr(Co,Co.current),!0}function ZR(m,v,w){var C=m.stateNode;if(!C)throw Error(n(169));w?(m=WR(m,v,ac),C.__reactInternalMemoizedMergedChildContext=m,Ar(Co),Ar(Xi),xr(Xi,m)):Ar(Co),xr(Co,w)}var ul=null,vg=!1,Ob=!1;function XR(m){ul===null?ul=[m]:ul.push(m)}function UW(m){vg=!0,XR(m)}function Gl(){if(!Ob&&ul!==null){Ob=!0;var m=0,v=dn;try{var w=ul;for(dn=1;m<w.length;m++){var C=w[m];do C=C(!0);while(C!==null)}ul=null,vg=!1}catch($){throw ul!==null&&(ul=ul.slice(m+1)),Yt(lr,Gl),$}finally{dn=v,Ob=!1}}return null}var vf=[],yf=0,yg=null,Og=0,gs=[],vs=0,lc=null,cl=1,fl="";function uc(m,v){vf[yf++]=Og,vf[yf++]=yg,yg=m,Og=v}function HR(m,v,w){gs[vs++]=cl,gs[vs++]=fl,gs[vs++]=lc,lc=m;var C=cl;m=fl;var $=32-ot(C)-1;C&=~(1<<$),w+=1;var F=32-ot(v)+$;if(30<F){var te=$-$%5;F=(C&(1<<te)-1).toString(32),C>>=te,$-=te,cl=1<<32-ot(v)+$|w<<$|C,fl=F+m}else cl=1<<F|w<<$|C,fl=m}function bb(m){m.return!==null&&(uc(m,1),HR(m,1,0))}function wb(m){for(;m===yg;)yg=vf[--yf],vf[yf]=null,Og=vf[--yf],vf[yf]=null;for(;m===lc;)lc=gs[--vs],gs[vs]=null,fl=gs[--vs],gs[vs]=null,cl=gs[--vs],gs[vs]=null}var Go=null,Ko=null,Fr=!1,Us=null;function YR(m,v){var w=ws(5,null,null,0);w.elementType="DELETED",w.stateNode=v,w.return=m,v=m.deletions,v===null?(m.deletions=[w],m.flags|=16):v.push(w)}function GR(m,v){switch(m.tag){case 5:var w=m.type;return v=v.nodeType!==1||w.toLowerCase()!==v.nodeName.toLowerCase()?null:v,v!==null?(m.stateNode=v,Go=m,Ko=Xl(v.firstChild),!0):!1;case 6:return v=m.pendingProps===""||v.nodeType!==3?null:v,v!==null?(m.stateNode=v,Go=m,Ko=null,!0):!1;case 13:return v=v.nodeType!==8?null:v,v!==null?(w=lc!==null?{id:cl,overflow:fl}:null,m.memoizedState={dehydrated:v,treeContext:w,retryLane:1073741824},w=ws(18,null,null,0),w.stateNode=v,w.return=m,m.child=w,Go=m,Ko=null,!0):!1;default:return!1}}function Sb(m){return(m.mode&1)!==0&&(m.flags&128)===0}function kb(m){if(Fr){var v=Ko;if(v){var w=v;if(!GR(m,v)){if(Sb(m))throw Error(n(418));v=Xl(w.nextSibling);var C=Go;v&&GR(m,v)?YR(C,w):(m.flags=m.flags&-4097|2,Fr=!1,Go=m)}}else{if(Sb(m))throw Error(n(418));m.flags=m.flags&-4097|2,Fr=!1,Go=m}}}function KR(m){for(m=m.return;m!==null&&m.tag!==5&&m.tag!==3&&m.tag!==13;)m=m.return;Go=m}function bg(m){if(m!==Go)return!1;if(!Fr)return KR(m),Fr=!0,!1;var v;if((v=m.tag!==3)&&!(v=m.tag!==5)&&(v=m.type,v=v!=="head"&&v!=="body"&&!pb(m.type,m.memoizedProps)),v&&(v=Ko)){if(Sb(m))throw JR(),Error(n(418));for(;v;)YR(m,v),v=Xl(v.nextSibling)}if(KR(m),m.tag===13){if(m=m.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));e:{for(m=m.nextSibling,v=0;m;){if(m.nodeType===8){var w=m.data;if(w==="/$"){if(v===0){Ko=Xl(m.nextSibling);break e}v--}else w!=="$"&&w!=="$!"&&w!=="$?"||v++}m=m.nextSibling}Ko=null}}else Ko=Go?Xl(m.stateNode.nextSibling):null;return!0}function JR(){for(var m=Ko;m;)m=Xl(m.nextSibling)}function Of(){Ko=Go=null,Fr=!1}function xb(m){Us===null?Us=[m]:Us.push(m)}var qW=k.ReactCurrentBatchConfig;function Sh(m,v,w){if(m=w.ref,m!==null&&typeof m!="function"&&typeof m!="object"){if(w._owner){if(w=w._owner,w){if(w.tag!==1)throw Error(n(309));var C=w.stateNode}if(!C)throw Error(n(147,m));var $=C,F=""+m;return v!==null&&v.ref!==null&&typeof v.ref=="function"&&v.ref._stringRef===F?v.ref:(v=function(te){var he=$.refs;te===null?delete he[F]:he[F]=te},v._stringRef=F,v)}if(typeof m!="string")throw Error(n(284));if(!w._owner)throw Error(n(290,m))}return m}function wg(m,v){throw m=Object.prototype.toString.call(v),Error(n(31,m==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":m))}function e2(m){var v=m._init;return v(m._payload)}function t2(m){function v(Ie,Ce){if(m){var je=Ie.deletions;je===null?(Ie.deletions=[Ce],Ie.flags|=16):je.push(Ce)}}function w(Ie,Ce){if(!m)return null;for(;Ce!==null;)v(Ie,Ce),Ce=Ce.sibling;return null}function C(Ie,Ce){for(Ie=new Map;Ce!==null;)Ce.key!==null?Ie.set(Ce.key,Ce):Ie.set(Ce.index,Ce),Ce=Ce.sibling;return Ie}function $(Ie,Ce){return Ie=ou(Ie,Ce),Ie.index=0,Ie.sibling=null,Ie}function F(Ie,Ce,je){return Ie.index=je,m?(je=Ie.alternate,je!==null?(je=je.index,je<Ce?(Ie.flags|=2,Ce):je):(Ie.flags|=2,Ce)):(Ie.flags|=1048576,Ce)}function te(Ie){return m&&Ie.alternate===null&&(Ie.flags|=2),Ie}function he(Ie,Ce,je,xt){return Ce===null||Ce.tag!==6?(Ce=mw(je,Ie.mode,xt),Ce.return=Ie,Ce):(Ce=$(Ce,je),Ce.return=Ie,Ce)}function xe(Ie,Ce,je,xt){var rn=je.type;return rn===I?vt(Ie,Ce,je.props.children,xt,je.key):Ce!==null&&(Ce.elementType===rn||typeof rn=="object"&&rn!==null&&rn.$$typeof===W&&e2(rn)===Ce.type)?(xt=$(Ce,je.props),xt.ref=Sh(Ie,Ce,je),xt.return=Ie,xt):(xt=zg(je.type,je.key,je.props,null,Ie.mode,xt),xt.ref=Sh(Ie,Ce,je),xt.return=Ie,xt)}function Ue(Ie,Ce,je,xt){return Ce===null||Ce.tag!==4||Ce.stateNode.containerInfo!==je.containerInfo||Ce.stateNode.implementation!==je.implementation?(Ce=gw(je,Ie.mode,xt),Ce.return=Ie,Ce):(Ce=$(Ce,je.children||[]),Ce.return=Ie,Ce)}function vt(Ie,Ce,je,xt,rn){return Ce===null||Ce.tag!==7?(Ce=vc(je,Ie.mode,xt,rn),Ce.return=Ie,Ce):(Ce=$(Ce,je),Ce.return=Ie,Ce)}function Ot(Ie,Ce,je){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number")return Ce=mw(""+Ce,Ie.mode,je),Ce.return=Ie,Ce;if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case x:return je=zg(Ce.type,Ce.key,Ce.props,null,Ie.mode,je),je.ref=Sh(Ie,null,Ce),je.return=Ie,je;case _:return Ce=gw(Ce,Ie.mode,je),Ce.return=Ie,Ce;case W:var xt=Ce._init;return Ot(Ie,xt(Ce._payload),je)}if($e(Ce)||K(Ce))return Ce=vc(Ce,Ie.mode,je,null),Ce.return=Ie,Ce;wg(Ie,Ce)}return null}function gt(Ie,Ce,je,xt){var rn=Ce!==null?Ce.key:null;if(typeof je=="string"&&je!==""||typeof je=="number")return rn!==null?null:he(Ie,Ce,""+je,xt);if(typeof je=="object"&&je!==null){switch(je.$$typeof){case x:return je.key===rn?xe(Ie,Ce,je,xt):null;case _:return je.key===rn?Ue(Ie,Ce,je,xt):null;case W:return rn=je._init,gt(Ie,Ce,rn(je._payload),xt)}if($e(je)||K(je))return rn!==null?null:vt(Ie,Ce,je,xt,null);wg(Ie,je)}return null}function Bt(Ie,Ce,je,xt,rn){if(typeof xt=="string"&&xt!==""||typeof xt=="number")return Ie=Ie.get(je)||null,he(Ce,Ie,""+xt,rn);if(typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case x:return Ie=Ie.get(xt.key===null?je:xt.key)||null,xe(Ce,Ie,xt,rn);case _:return Ie=Ie.get(xt.key===null?je:xt.key)||null,Ue(Ce,Ie,xt,rn);case W:var gn=xt._init;return Bt(Ie,Ce,je,gn(xt._payload),rn)}if($e(xt)||K(xt))return Ie=Ie.get(je)||null,vt(Ce,Ie,xt,rn,null);wg(Ce,xt)}return null}function Zt(Ie,Ce,je,xt){for(var rn=null,gn=null,vn=Ce,kn=Ce=0,Ei=null;vn!==null&&kn<je.length;kn++){vn.index>kn?(Ei=vn,vn=null):Ei=vn.sibling;var sr=gt(Ie,vn,je[kn],xt);if(sr===null){vn===null&&(vn=Ei);break}m&&vn&&sr.alternate===null&&v(Ie,vn),Ce=F(sr,Ce,kn),gn===null?rn=sr:gn.sibling=sr,gn=sr,vn=Ei}if(kn===je.length)return w(Ie,vn),Fr&&uc(Ie,kn),rn;if(vn===null){for(;kn<je.length;kn++)vn=Ot(Ie,je[kn],xt),vn!==null&&(Ce=F(vn,Ce,kn),gn===null?rn=vn:gn.sibling=vn,gn=vn);return Fr&&uc(Ie,kn),rn}for(vn=C(Ie,vn);kn<je.length;kn++)Ei=Bt(vn,Ie,kn,je[kn],xt),Ei!==null&&(m&&Ei.alternate!==null&&vn.delete(Ei.key===null?kn:Ei.key),Ce=F(Ei,Ce,kn),gn===null?rn=Ei:gn.sibling=Ei,gn=Ei);return m&&vn.forEach(function(su){return v(Ie,su)}),Fr&&uc(Ie,kn),rn}function en(Ie,Ce,je,xt){var rn=K(je);if(typeof rn!="function")throw Error(n(150));if(je=rn.call(je),je==null)throw Error(n(151));for(var gn=rn=null,vn=Ce,kn=Ce=0,Ei=null,sr=je.next();vn!==null&&!sr.done;kn++,sr=je.next()){vn.index>kn?(Ei=vn,vn=null):Ei=vn.sibling;var su=gt(Ie,vn,sr.value,xt);if(su===null){vn===null&&(vn=Ei);break}m&&vn&&su.alternate===null&&v(Ie,vn),Ce=F(su,Ce,kn),gn===null?rn=su:gn.sibling=su,gn=su,vn=Ei}if(sr.done)return w(Ie,vn),Fr&&uc(Ie,kn),rn;if(vn===null){for(;!sr.done;kn++,sr=je.next())sr=Ot(Ie,sr.value,xt),sr!==null&&(Ce=F(sr,Ce,kn),gn===null?rn=sr:gn.sibling=sr,gn=sr);return Fr&&uc(Ie,kn),rn}for(vn=C(Ie,vn);!sr.done;kn++,sr=je.next())sr=Bt(vn,Ie,kn,sr.value,xt),sr!==null&&(m&&sr.alternate!==null&&vn.delete(sr.key===null?kn:sr.key),Ce=F(sr,Ce,kn),gn===null?rn=sr:gn.sibling=sr,gn=sr);return m&&vn.forEach(function(SZ){return v(Ie,SZ)}),Fr&&uc(Ie,kn),rn}function ti(Ie,Ce,je,xt){if(typeof je=="object"&&je!==null&&je.type===I&&je.key===null&&(je=je.props.children),typeof je=="object"&&je!==null){switch(je.$$typeof){case x:e:{for(var rn=je.key,gn=Ce;gn!==null;){if(gn.key===rn){if(rn=je.type,rn===I){if(gn.tag===7){w(Ie,gn.sibling),Ce=$(gn,je.props.children),Ce.return=Ie,Ie=Ce;break e}}else if(gn.elementType===rn||typeof rn=="object"&&rn!==null&&rn.$$typeof===W&&e2(rn)===gn.type){w(Ie,gn.sibling),Ce=$(gn,je.props),Ce.ref=Sh(Ie,gn,je),Ce.return=Ie,Ie=Ce;break e}w(Ie,gn);break}else v(Ie,gn);gn=gn.sibling}je.type===I?(Ce=vc(je.props.children,Ie.mode,xt,je.key),Ce.return=Ie,Ie=Ce):(xt=zg(je.type,je.key,je.props,null,Ie.mode,xt),xt.ref=Sh(Ie,Ce,je),xt.return=Ie,Ie=xt)}return te(Ie);case _:e:{for(gn=je.key;Ce!==null;){if(Ce.key===gn)if(Ce.tag===4&&Ce.stateNode.containerInfo===je.containerInfo&&Ce.stateNode.implementation===je.implementation){w(Ie,Ce.sibling),Ce=$(Ce,je.children||[]),Ce.return=Ie,Ie=Ce;break e}else{w(Ie,Ce);break}else v(Ie,Ce);Ce=Ce.sibling}Ce=gw(je,Ie.mode,xt),Ce.return=Ie,Ie=Ce}return te(Ie);case W:return gn=je._init,ti(Ie,Ce,gn(je._payload),xt)}if($e(je))return Zt(Ie,Ce,je,xt);if(K(je))return en(Ie,Ce,je,xt);wg(Ie,je)}return typeof je=="string"&&je!==""||typeof je=="number"?(je=""+je,Ce!==null&&Ce.tag===6?(w(Ie,Ce.sibling),Ce=$(Ce,je),Ce.return=Ie,Ie=Ce):(w(Ie,Ce),Ce=mw(je,Ie.mode,xt),Ce.return=Ie,Ie=Ce),te(Ie)):w(Ie,Ce)}return ti}var bf=t2(!0),n2=t2(!1),Sg=Hl(null),kg=null,wf=null,_b=null;function Pb(){_b=wf=kg=null}function Cb(m){var v=Sg.current;Ar(Sg),m._currentValue=v}function Eb(m,v,w){for(;m!==null;){var C=m.alternate;if((m.childLanes&v)!==v?(m.childLanes|=v,C!==null&&(C.childLanes|=v)):C!==null&&(C.childLanes&v)!==v&&(C.childLanes|=v),m===w)break;m=m.return}}function Sf(m,v){kg=m,_b=wf=null,m=m.dependencies,m!==null&&m.firstContext!==null&&((m.lanes&v)!==0&&(To=!0),m.firstContext=null)}function ys(m){var v=m._currentValue;if(_b!==m)if(m={context:m,memoizedValue:v,next:null},wf===null){if(kg===null)throw Error(n(308));wf=m,kg.dependencies={lanes:0,firstContext:m}}else wf=wf.next=m;return v}var cc=null;function Tb(m){cc===null?cc=[m]:cc.push(m)}function r2(m,v,w,C){var $=v.interleaved;return $===null?(w.next=w,Tb(v)):(w.next=$.next,$.next=w),v.interleaved=w,dl(m,C)}function dl(m,v){m.lanes|=v;var w=m.alternate;for(w!==null&&(w.lanes|=v),w=m,m=m.return;m!==null;)m.childLanes|=v,w=m.alternate,w!==null&&(w.childLanes|=v),w=m,m=m.return;return w.tag===3?w.stateNode:null}var Kl=!1;function Rb(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function i2(m,v){m=m.updateQueue,v.updateQueue===m&&(v.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects})}function hl(m,v){return{eventTime:m,lane:v,tag:0,payload:null,callback:null,next:null}}function Jl(m,v,w){var C=m.updateQueue;if(C===null)return null;if(C=C.shared,(rr&2)!==0){var $=C.pending;return $===null?v.next=v:(v.next=$.next,$.next=v),C.pending=v,dl(m,w)}return $=C.interleaved,$===null?(v.next=v,Tb(C)):(v.next=$.next,$.next=v),C.interleaved=v,dl(m,w)}function xg(m,v,w){if(v=v.updateQueue,v!==null&&(v=v.shared,(w&4194240)!==0)){var C=v.lanes;C&=m.pendingLanes,w|=C,v.lanes=w,In(m,w)}}function o2(m,v){var w=m.updateQueue,C=m.alternate;if(C!==null&&(C=C.updateQueue,w===C)){var $=null,F=null;if(w=w.firstBaseUpdate,w!==null){do{var te={eventTime:w.eventTime,lane:w.lane,tag:w.tag,payload:w.payload,callback:w.callback,next:null};F===null?$=F=te:F=F.next=te,w=w.next}while(w!==null);F===null?$=F=v:F=F.next=v}else $=F=v;w={baseState:C.baseState,firstBaseUpdate:$,lastBaseUpdate:F,shared:C.shared,effects:C.effects},m.updateQueue=w;return}m=w.lastBaseUpdate,m===null?w.firstBaseUpdate=v:m.next=v,w.lastBaseUpdate=v}function _g(m,v,w,C){var $=m.updateQueue;Kl=!1;var F=$.firstBaseUpdate,te=$.lastBaseUpdate,he=$.shared.pending;if(he!==null){$.shared.pending=null;var xe=he,Ue=xe.next;xe.next=null,te===null?F=Ue:te.next=Ue,te=xe;var vt=m.alternate;vt!==null&&(vt=vt.updateQueue,he=vt.lastBaseUpdate,he!==te&&(he===null?vt.firstBaseUpdate=Ue:he.next=Ue,vt.lastBaseUpdate=xe))}if(F!==null){var Ot=$.baseState;te=0,vt=Ue=xe=null,he=F;do{var gt=he.lane,Bt=he.eventTime;if((C&gt)===gt){vt!==null&&(vt=vt.next={eventTime:Bt,lane:0,tag:he.tag,payload:he.payload,callback:he.callback,next:null});e:{var Zt=m,en=he;switch(gt=v,Bt=w,en.tag){case 1:if(Zt=en.payload,typeof Zt=="function"){Ot=Zt.call(Bt,Ot,gt);break e}Ot=Zt;break e;case 3:Zt.flags=Zt.flags&-65537|128;case 0:if(Zt=en.payload,gt=typeof Zt=="function"?Zt.call(Bt,Ot,gt):Zt,gt==null)break e;Ot=U({},Ot,gt);break e;case 2:Kl=!0}}he.callback!==null&&he.lane!==0&&(m.flags|=64,gt=$.effects,gt===null?$.effects=[he]:gt.push(he))}else Bt={eventTime:Bt,lane:gt,tag:he.tag,payload:he.payload,callback:he.callback,next:null},vt===null?(Ue=vt=Bt,xe=Ot):vt=vt.next=Bt,te|=gt;if(he=he.next,he===null){if(he=$.shared.pending,he===null)break;gt=he,he=gt.next,gt.next=null,$.lastBaseUpdate=gt,$.shared.pending=null}}while(!0);if(vt===null&&(xe=Ot),$.baseState=xe,$.firstBaseUpdate=Ue,$.lastBaseUpdate=vt,v=$.shared.interleaved,v!==null){$=v;do te|=$.lane,$=$.next;while($!==v)}else F===null&&($.shared.lanes=0);hc|=te,m.lanes=te,m.memoizedState=Ot}}function s2(m,v,w){if(m=v.effects,v.effects=null,m!==null)for(v=0;v<m.length;v++){var C=m[v],$=C.callback;if($!==null){if(C.callback=null,C=w,typeof $!="function")throw Error(n(191,$));$.call(C)}}}var kh={},ga=Hl(kh),xh=Hl(kh),_h=Hl(kh);function fc(m){if(m===kh)throw Error(n(174));return m}function Ab(m,v){switch(xr(_h,v),xr(xh,m),xr(ga,kh),m=v.nodeType,m){case 9:case 11:v=(v=v.documentElement)?v.namespaceURI:Se(null,"");break;default:m=m===8?v.parentNode:v,v=m.namespaceURI||null,m=m.tagName,v=Se(v,m)}Ar(ga),xr(ga,v)}function kf(){Ar(ga),Ar(xh),Ar(_h)}function a2(m){fc(_h.current);var v=fc(ga.current),w=Se(v,m.type);v!==w&&(xr(xh,m),xr(ga,w))}function Mb(m){xh.current===m&&(Ar(ga),Ar(xh))}var Vr=Hl(0);function Pg(m){for(var v=m;v!==null;){if(v.tag===13){var w=v.memoizedState;if(w!==null&&(w=w.dehydrated,w===null||w.data==="$?"||w.data==="$!"))return v}else if(v.tag===19&&v.memoizedProps.revealOrder!==void 0){if((v.flags&128)!==0)return v}else if(v.child!==null){v.child.return=v,v=v.child;continue}if(v===m)break;for(;v.sibling===null;){if(v.return===null||v.return===m)return null;v=v.return}v.sibling.return=v.return,v=v.sibling}return null}var Db=[];function Ib(){for(var m=0;m<Db.length;m++)Db[m]._workInProgressVersionPrimary=null;Db.length=0}var Cg=k.ReactCurrentDispatcher,$b=k.ReactCurrentBatchConfig,dc=0,zr=null,vi=null,Pi=null,Eg=!1,Ph=!1,Ch=0,VW=0;function Hi(){throw Error(n(321))}function Nb(m,v){if(v===null)return!1;for(var w=0;w<v.length&&w<m.length;w++)if(!Bs(m[w],v[w]))return!1;return!0}function Lb(m,v,w,C,$,F){if(dc=F,zr=v,v.memoizedState=null,v.updateQueue=null,v.lanes=0,Cg.current=m===null||m.memoizedState===null?XW:HW,m=w(C,$),Ph){F=0;do{if(Ph=!1,Ch=0,25<=F)throw Error(n(301));F+=1,Pi=vi=null,v.updateQueue=null,Cg.current=YW,m=w(C,$)}while(Ph)}if(Cg.current=Ag,v=vi!==null&&vi.next!==null,dc=0,Pi=vi=zr=null,Eg=!1,v)throw Error(n(300));return m}function jb(){var m=Ch!==0;return Ch=0,m}function va(){var m={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pi===null?zr.memoizedState=Pi=m:Pi=Pi.next=m,Pi}function Os(){if(vi===null){var m=zr.alternate;m=m!==null?m.memoizedState:null}else m=vi.next;var v=Pi===null?zr.memoizedState:Pi.next;if(v!==null)Pi=v,vi=m;else{if(m===null)throw Error(n(310));vi=m,m={memoizedState:vi.memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},Pi===null?zr.memoizedState=Pi=m:Pi=Pi.next=m}return Pi}function Eh(m,v){return typeof v=="function"?v(m):v}function Qb(m){var v=Os(),w=v.queue;if(w===null)throw Error(n(311));w.lastRenderedReducer=m;var C=vi,$=C.baseQueue,F=w.pending;if(F!==null){if($!==null){var te=$.next;$.next=F.next,F.next=te}C.baseQueue=$=F,w.pending=null}if($!==null){F=$.next,C=C.baseState;var he=te=null,xe=null,Ue=F;do{var vt=Ue.lane;if((dc&vt)===vt)xe!==null&&(xe=xe.next={lane:0,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null}),C=Ue.hasEagerState?Ue.eagerState:m(C,Ue.action);else{var Ot={lane:vt,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null};xe===null?(he=xe=Ot,te=C):xe=xe.next=Ot,zr.lanes|=vt,hc|=vt}Ue=Ue.next}while(Ue!==null&&Ue!==F);xe===null?te=C:xe.next=he,Bs(C,v.memoizedState)||(To=!0),v.memoizedState=C,v.baseState=te,v.baseQueue=xe,w.lastRenderedState=C}if(m=w.interleaved,m!==null){$=m;do F=$.lane,zr.lanes|=F,hc|=F,$=$.next;while($!==m)}else $===null&&(w.lanes=0);return[v.memoizedState,w.dispatch]}function Fb(m){var v=Os(),w=v.queue;if(w===null)throw Error(n(311));w.lastRenderedReducer=m;var C=w.dispatch,$=w.pending,F=v.memoizedState;if($!==null){w.pending=null;var te=$=$.next;do F=m(F,te.action),te=te.next;while(te!==$);Bs(F,v.memoizedState)||(To=!0),v.memoizedState=F,v.baseQueue===null&&(v.baseState=F),w.lastRenderedState=F}return[F,C]}function l2(){}function u2(m,v){var w=zr,C=Os(),$=v(),F=!Bs(C.memoizedState,$);if(F&&(C.memoizedState=$,To=!0),C=C.queue,Bb(d2.bind(null,w,C,m),[m]),C.getSnapshot!==v||F||Pi!==null&&Pi.memoizedState.tag&1){if(w.flags|=2048,Th(9,f2.bind(null,w,C,$,v),void 0,null),Ci===null)throw Error(n(349));(dc&30)!==0||c2(w,v,$)}return $}function c2(m,v,w){m.flags|=16384,m={getSnapshot:v,value:w},v=zr.updateQueue,v===null?(v={lastEffect:null,stores:null},zr.updateQueue=v,v.stores=[m]):(w=v.stores,w===null?v.stores=[m]:w.push(m))}function f2(m,v,w,C){v.value=w,v.getSnapshot=C,h2(v)&&p2(m)}function d2(m,v,w){return w(function(){h2(v)&&p2(m)})}function h2(m){var v=m.getSnapshot;m=m.value;try{var w=v();return!Bs(m,w)}catch{return!0}}function p2(m){var v=dl(m,1);v!==null&&Ws(v,m,1,-1)}function m2(m){var v=va();return typeof m=="function"&&(m=m()),v.memoizedState=v.baseState=m,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Eh,lastRenderedState:m},v.queue=m,m=m.dispatch=ZW.bind(null,zr,m),[v.memoizedState,m]}function Th(m,v,w,C){return m={tag:m,create:v,destroy:w,deps:C,next:null},v=zr.updateQueue,v===null?(v={lastEffect:null,stores:null},zr.updateQueue=v,v.lastEffect=m.next=m):(w=v.lastEffect,w===null?v.lastEffect=m.next=m:(C=w.next,w.next=m,m.next=C,v.lastEffect=m)),m}function g2(){return Os().memoizedState}function Tg(m,v,w,C){var $=va();zr.flags|=m,$.memoizedState=Th(1|v,w,void 0,C===void 0?null:C)}function Rg(m,v,w,C){var $=Os();C=C===void 0?null:C;var F=void 0;if(vi!==null){var te=vi.memoizedState;if(F=te.destroy,C!==null&&Nb(C,te.deps)){$.memoizedState=Th(v,w,F,C);return}}zr.flags|=m,$.memoizedState=Th(1|v,w,F,C)}function v2(m,v){return Tg(8390656,8,m,v)}function Bb(m,v){return Rg(2048,8,m,v)}function y2(m,v){return Rg(4,2,m,v)}function O2(m,v){return Rg(4,4,m,v)}function b2(m,v){if(typeof v=="function")return m=m(),v(m),function(){v(null)};if(v!=null)return m=m(),v.current=m,function(){v.current=null}}function w2(m,v,w){return w=w!=null?w.concat([m]):null,Rg(4,4,b2.bind(null,v,m),w)}function Ub(){}function S2(m,v){var w=Os();v=v===void 0?null:v;var C=w.memoizedState;return C!==null&&v!==null&&Nb(v,C[1])?C[0]:(w.memoizedState=[m,v],m)}function k2(m,v){var w=Os();v=v===void 0?null:v;var C=w.memoizedState;return C!==null&&v!==null&&Nb(v,C[1])?C[0]:(m=m(),w.memoizedState=[m,v],m)}function x2(m,v,w){return(dc&21)===0?(m.baseState&&(m.baseState=!1,To=!0),m.memoizedState=w):(Bs(w,v)||(w=Dn(),zr.lanes|=w,hc|=w,m.baseState=!0),v)}function zW(m,v){var w=dn;dn=w!==0&&4>w?w:4,m(!0);var C=$b.transition;$b.transition={};try{m(!1),v()}finally{dn=w,$b.transition=C}}function _2(){return Os().memoizedState}function WW(m,v,w){var C=ru(m);if(w={lane:C,action:w,hasEagerState:!1,eagerState:null,next:null},P2(m))C2(v,w);else if(w=r2(m,v,w,C),w!==null){var $=fo();Ws(w,m,C,$),E2(w,v,C)}}function ZW(m,v,w){var C=ru(m),$={lane:C,action:w,hasEagerState:!1,eagerState:null,next:null};if(P2(m))C2(v,$);else{var F=m.alternate;if(m.lanes===0&&(F===null||F.lanes===0)&&(F=v.lastRenderedReducer,F!==null))try{var te=v.lastRenderedState,he=F(te,w);if($.hasEagerState=!0,$.eagerState=he,Bs(he,te)){var xe=v.interleaved;xe===null?($.next=$,Tb(v)):($.next=xe.next,xe.next=$),v.interleaved=$;return}}catch{}finally{}w=r2(m,v,$,C),w!==null&&($=fo(),Ws(w,m,C,$),E2(w,v,C))}}function P2(m){var v=m.alternate;return m===zr||v!==null&&v===zr}function C2(m,v){Ph=Eg=!0;var w=m.pending;w===null?v.next=v:(v.next=w.next,w.next=v),m.pending=v}function E2(m,v,w){if((w&4194240)!==0){var C=v.lanes;C&=m.pendingLanes,w|=C,v.lanes=w,In(m,w)}}var Ag={readContext:ys,useCallback:Hi,useContext:Hi,useEffect:Hi,useImperativeHandle:Hi,useInsertionEffect:Hi,useLayoutEffect:Hi,useMemo:Hi,useReducer:Hi,useRef:Hi,useState:Hi,useDebugValue:Hi,useDeferredValue:Hi,useTransition:Hi,useMutableSource:Hi,useSyncExternalStore:Hi,useId:Hi,unstable_isNewReconciler:!1},XW={readContext:ys,useCallback:function(m,v){return va().memoizedState=[m,v===void 0?null:v],m},useContext:ys,useEffect:v2,useImperativeHandle:function(m,v,w){return w=w!=null?w.concat([m]):null,Tg(4194308,4,b2.bind(null,v,m),w)},useLayoutEffect:function(m,v){return Tg(4194308,4,m,v)},useInsertionEffect:function(m,v){return Tg(4,2,m,v)},useMemo:function(m,v){var w=va();return v=v===void 0?null:v,m=m(),w.memoizedState=[m,v],m},useReducer:function(m,v,w){var C=va();return v=w!==void 0?w(v):v,C.memoizedState=C.baseState=v,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:v},C.queue=m,m=m.dispatch=WW.bind(null,zr,m),[C.memoizedState,m]},useRef:function(m){var v=va();return m={current:m},v.memoizedState=m},useState:m2,useDebugValue:Ub,useDeferredValue:function(m){return va().memoizedState=m},useTransition:function(){var m=m2(!1),v=m[0];return m=zW.bind(null,m[1]),va().memoizedState=m,[v,m]},useMutableSource:function(){},useSyncExternalStore:function(m,v,w){var C=zr,$=va();if(Fr){if(w===void 0)throw Error(n(407));w=w()}else{if(w=v(),Ci===null)throw Error(n(349));(dc&30)!==0||c2(C,v,w)}$.memoizedState=w;var F={value:w,getSnapshot:v};return $.queue=F,v2(d2.bind(null,C,F,m),[m]),C.flags|=2048,Th(9,f2.bind(null,C,F,w,v),void 0,null),w},useId:function(){var m=va(),v=Ci.identifierPrefix;if(Fr){var w=fl,C=cl;w=(C&~(1<<32-ot(C)-1)).toString(32)+w,v=":"+v+"R"+w,w=Ch++,0<w&&(v+="H"+w.toString(32)),v+=":"}else w=VW++,v=":"+v+"r"+w.toString(32)+":";return m.memoizedState=v},unstable_isNewReconciler:!1},HW={readContext:ys,useCallback:S2,useContext:ys,useEffect:Bb,useImperativeHandle:w2,useInsertionEffect:y2,useLayoutEffect:O2,useMemo:k2,useReducer:Qb,useRef:g2,useState:function(){return Qb(Eh)},useDebugValue:Ub,useDeferredValue:function(m){var v=Os();return x2(v,vi.memoizedState,m)},useTransition:function(){var m=Qb(Eh)[0],v=Os().memoizedState;return[m,v]},useMutableSource:l2,useSyncExternalStore:u2,useId:_2,unstable_isNewReconciler:!1},YW={readContext:ys,useCallback:S2,useContext:ys,useEffect:Bb,useImperativeHandle:w2,useInsertionEffect:y2,useLayoutEffect:O2,useMemo:k2,useReducer:Fb,useRef:g2,useState:function(){return Fb(Eh)},useDebugValue:Ub,useDeferredValue:function(m){var v=Os();return vi===null?v.memoizedState=m:x2(v,vi.memoizedState,m)},useTransition:function(){var m=Fb(Eh)[0],v=Os().memoizedState;return[m,v]},useMutableSource:l2,useSyncExternalStore:u2,useId:_2,unstable_isNewReconciler:!1};function qs(m,v){if(m&&m.defaultProps){v=U({},v),m=m.defaultProps;for(var w in m)v[w]===void 0&&(v[w]=m[w]);return v}return v}function qb(m,v,w,C){v=m.memoizedState,w=w(C,v),w=w==null?v:U({},v,w),m.memoizedState=w,m.lanes===0&&(m.updateQueue.baseState=w)}var Mg={isMounted:function(m){return(m=m._reactInternals)?Nt(m)===m:!1},enqueueSetState:function(m,v,w){m=m._reactInternals;var C=fo(),$=ru(m),F=hl(C,$);F.payload=v,w!=null&&(F.callback=w),v=Jl(m,F,$),v!==null&&(Ws(v,m,$,C),xg(v,m,$))},enqueueReplaceState:function(m,v,w){m=m._reactInternals;var C=fo(),$=ru(m),F=hl(C,$);F.tag=1,F.payload=v,w!=null&&(F.callback=w),v=Jl(m,F,$),v!==null&&(Ws(v,m,$,C),xg(v,m,$))},enqueueForceUpdate:function(m,v){m=m._reactInternals;var w=fo(),C=ru(m),$=hl(w,C);$.tag=2,v!=null&&($.callback=v),v=Jl(m,$,C),v!==null&&(Ws(v,m,C,w),xg(v,m,C))}};function T2(m,v,w,C,$,F,te){return m=m.stateNode,typeof m.shouldComponentUpdate=="function"?m.shouldComponentUpdate(C,F,te):v.prototype&&v.prototype.isPureReactComponent?!mh(w,C)||!mh($,F):!0}function R2(m,v,w){var C=!1,$=Yl,F=v.contextType;return typeof F=="object"&&F!==null?F=ys(F):($=Eo(v)?ac:Xi.current,C=v.contextTypes,F=(C=C!=null)?gf(m,$):Yl),v=new v(w,F),m.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Mg,m.stateNode=v,v._reactInternals=m,C&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=$,m.__reactInternalMemoizedMaskedChildContext=F),v}function A2(m,v,w,C){m=v.state,typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps(w,C),typeof v.UNSAFE_componentWillReceiveProps=="function"&&v.UNSAFE_componentWillReceiveProps(w,C),v.state!==m&&Mg.enqueueReplaceState(v,v.state,null)}function Vb(m,v,w,C){var $=m.stateNode;$.props=w,$.state=m.memoizedState,$.refs={},Rb(m);var F=v.contextType;typeof F=="object"&&F!==null?$.context=ys(F):(F=Eo(v)?ac:Xi.current,$.context=gf(m,F)),$.state=m.memoizedState,F=v.getDerivedStateFromProps,typeof F=="function"&&(qb(m,v,F,w),$.state=m.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(v=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),v!==$.state&&Mg.enqueueReplaceState($,$.state,null),_g(m,w,$,C),$.state=m.memoizedState),typeof $.componentDidMount=="function"&&(m.flags|=4194308)}function xf(m,v){try{var w="",C=v;do w+=ee(C),C=C.return;while(C);var $=w}catch(F){$=`
37
+ `+$[te].replace(" at new "," at ");return m.displayName&&xe.includes("<anonymous>")&&(xe=xe.replace("<anonymous>",m.displayName)),xe}while(1<=te&&0<=he);break}}}finally{j=!1,Error.prepareStackTrace=w}return(m=m?m.displayName||m.name:"")?Y(m):""}function ee(m){switch(m.tag){case 5:return Y(m.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return m=ne(m.type,!1),m;case 11:return m=ne(m.type.render,!1),m;case 1:return m=ne(m.type,!0),m;default:return""}}function ue(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case I:return"Fragment";case _:return"Portal";case P:return"Profiler";case M:return"StrictMode";case L:return"Suspense";case A:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case R:return(m.displayName||"Context")+".Consumer";case E:return(m._context.displayName||"Context")+".Provider";case T:var v=m.render;return m=m.displayName,m||(m=v.displayName||v.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case H:return v=m.displayName||null,v!==null?v:ue(m.type)||"Memo";case W:v=m._payload,m=m._init;try{return ue(m(v))}catch{}}return null}function z(m){var v=m.type;switch(m.tag){case 24:return"Cache";case 9:return(v.displayName||"Context")+".Consumer";case 10:return(v._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=v.render,m=m.displayName||m.name||"",v.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return v;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ue(v);case 8:return v===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v}return null}function X(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function J(m){var v=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(v==="checkbox"||v==="radio")}function fe(m){var v=J(m)?"checked":"value",w=Object.getOwnPropertyDescriptor(m.constructor.prototype,v),C=""+m[v];if(!m.hasOwnProperty(v)&&typeof w<"u"&&typeof w.get=="function"&&typeof w.set=="function"){var $=w.get,F=w.set;return Object.defineProperty(m,v,{configurable:!0,get:function(){return $.call(this)},set:function(te){C=""+te,F.call(this,te)}}),Object.defineProperty(m,v,{enumerable:w.enumerable}),{getValue:function(){return C},setValue:function(te){C=""+te},stopTracking:function(){m._valueTracker=null,delete m[v]}}}}function we(m){m._valueTracker||(m._valueTracker=fe(m))}function Te(m){if(!m)return!1;var v=m._valueTracker;if(!v)return!0;var w=v.getValue(),C="";return m&&(C=J(m)?m.checked?"true":"false":m.value),m=C,m!==w?(v.setValue(m),!0):!1}function Re(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Q(m,v){var w=v.checked;return U({},v,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:w??m._wrapperState.initialChecked})}function ve(m,v){var w=v.defaultValue==null?"":v.defaultValue,C=v.checked!=null?v.checked:v.defaultChecked;w=X(v.value!=null?v.value:w),m._wrapperState={initialChecked:C,initialValue:w,controlled:v.type==="checkbox"||v.type==="radio"?v.checked!=null:v.value!=null}}function ge(m,v){v=v.checked,v!=null&&S(m,"checked",v,!1)}function ie(m,v){ge(m,v);var w=X(v.value),C=v.type;if(w!=null)C==="number"?(w===0&&m.value===""||m.value!=w)&&(m.value=""+w):m.value!==""+w&&(m.value=""+w);else if(C==="submit"||C==="reset"){m.removeAttribute("value");return}v.hasOwnProperty("value")?me(m,v.type,w):v.hasOwnProperty("defaultValue")&&me(m,v.type,X(v.defaultValue)),v.checked==null&&v.defaultChecked!=null&&(m.defaultChecked=!!v.defaultChecked)}function oe(m,v,w){if(v.hasOwnProperty("value")||v.hasOwnProperty("defaultValue")){var C=v.type;if(!(C!=="submit"&&C!=="reset"||v.value!==void 0&&v.value!==null))return;v=""+m._wrapperState.initialValue,w||v===m.value||(m.value=v),m.defaultValue=v}w=m.name,w!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,w!==""&&(m.name=w)}function me(m,v,w){(v!=="number"||Re(m.ownerDocument)!==m)&&(w==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+w&&(m.defaultValue=""+w))}var $e=Array.isArray;function Fe(m,v,w,C){if(m=m.options,v){v={};for(var $=0;$<w.length;$++)v["$"+w[$]]=!0;for(w=0;w<m.length;w++)$=v.hasOwnProperty("$"+m[w].value),m[w].selected!==$&&(m[w].selected=$),$&&C&&(m[w].defaultSelected=!0)}else{for(w=""+X(w),v=null,$=0;$<m.length;$++){if(m[$].value===w){m[$].selected=!0,C&&(m[$].defaultSelected=!0);return}v!==null||m[$].disabled||(v=m[$])}v!==null&&(v.selected=!0)}}function Pe(m,v){if(v.dangerouslySetInnerHTML!=null)throw Error(n(91));return U({},v,{value:void 0,defaultValue:void 0,children:""+m._wrapperState.initialValue})}function V(m,v){var w=v.value;if(w==null){if(w=v.children,v=v.defaultValue,w!=null){if(v!=null)throw Error(n(92));if($e(w)){if(1<w.length)throw Error(n(93));w=w[0]}v=w}v==null&&(v=""),w=v}m._wrapperState={initialValue:X(w)}}function ye(m,v){var w=X(v.value),C=X(v.defaultValue);w!=null&&(w=""+w,w!==m.value&&(m.value=w),v.defaultValue==null&&m.defaultValue!==w&&(m.defaultValue=w)),C!=null&&(m.defaultValue=""+C)}function _e(m){var v=m.textContent;v===m._wrapperState.initialValue&&v!==""&&v!==null&&(m.value=v)}function de(m){switch(m){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 Se(m,v){return m==null||m==="http://www.w3.org/1999/xhtml"?de(v):m==="http://www.w3.org/2000/svg"&&v==="foreignObject"?"http://www.w3.org/1999/xhtml":m}var Me,et=function(m){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(v,w,C,$){MSApp.execUnsafeLocalFunction(function(){return m(v,w,C,$)})}:m}(function(m,v){if(m.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in m)m.innerHTML=v;else{for(Me=Me||document.createElement("div"),Me.innerHTML="<svg>"+v.valueOf().toString()+"</svg>",v=Me.firstChild;m.firstChild;)m.removeChild(m.firstChild);for(;v.firstChild;)m.appendChild(v.firstChild)}});function st(m,v){if(v){var w=m.firstChild;if(w&&w===m.lastChild&&w.nodeType===3){w.nodeValue=v;return}}m.textContent=v}var Le={animationIterationCount:!0,aspectRatio:!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},at=["Webkit","ms","Moz","O"];Object.keys(Le).forEach(function(m){at.forEach(function(v){v=v+m.charAt(0).toUpperCase()+m.substring(1),Le[v]=Le[m]})});function We(m,v,w){return v==null||typeof v=="boolean"||v===""?"":w||typeof v!="number"||v===0||Le.hasOwnProperty(m)&&Le[m]?(""+v).trim():v+"px"}function dt(m,v){m=m.style;for(var w in v)if(v.hasOwnProperty(w)){var C=w.indexOf("--")===0,$=We(w,v[w],C);w==="float"&&(w="cssFloat"),C?m.setProperty(w,$):m[w]=$}}var wt=U({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 pt(m,v){if(v){if(wt[m]&&(v.children!=null||v.dangerouslySetInnerHTML!=null))throw Error(n(137,m));if(v.dangerouslySetInnerHTML!=null){if(v.children!=null)throw Error(n(60));if(typeof v.dangerouslySetInnerHTML!="object"||!("__html"in v.dangerouslySetInnerHTML))throw Error(n(61))}if(v.style!=null&&typeof v.style!="object")throw Error(n(62))}}function It(m,v){if(m.indexOf("-")===-1)return typeof v.is=="string";switch(m){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 nt=null;function Rt(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var un=null,Tt=null,qt=null;function On(m){if(m=wh(m)){if(typeof un!="function")throw Error(n(280));var v=m.stateNode;v&&(v=pg(v),un(m.stateNode,m.type,v))}}function Tn(m){Tt?qt?qt.push(m):qt=[m]:Tt=m}function bn(){if(Tt){var m=Tt,v=qt;if(qt=Tt=null,On(m),v)for(m=0;m<v.length;m++)On(v[m])}}function Rn(m,v){return m(v)}function ir(){}var pe=!1;function Ee(m,v,w){if(pe)return m(v,w);pe=!0;try{return Rn(m,v,w)}finally{pe=!1,(Tt!==null||qt!==null)&&(ir(),bn())}}function De(m,v){var w=m.stateNode;if(w===null)return null;var C=pg(w);if(C===null)return null;w=C[v];e:switch(v){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(m=m.type,C=!(m==="button"||m==="input"||m==="select"||m==="textarea")),m=!C;break e;default:m=!1}if(m)return null;if(w&&typeof w!="function")throw Error(n(231,v,typeof w));return w}var rt=!1;if(a)try{var ct={};Object.defineProperty(ct,"passive",{get:function(){rt=!0}}),window.addEventListener("test",ct,ct),window.removeEventListener("test",ct,ct)}catch{rt=!1}function ht(m,v,w,C,$,F,te,he,xe){var Ue=Array.prototype.slice.call(arguments,3);try{v.apply(w,Ue)}catch(vt){this.onError(vt)}}var Ve=!1,Ye=null,Je=!1,Ze=null,Ne={onError:function(m){Ve=!0,Ye=m}};function lt(m,v,w,C,$,F,te,he,xe){Ve=!1,Ye=null,ht.apply(Ne,arguments)}function Pt(m,v,w,C,$,F,te,he,xe){if(lt.apply(this,arguments),Ve){if(Ve){var Ue=Ye;Ve=!1,Ye=null}else throw Error(n(198));Je||(Je=!0,Ze=Ue)}}function Nt(m){var v=m,w=m;if(m.alternate)for(;v.return;)v=v.return;else{m=v;do v=m,(v.flags&4098)!==0&&(w=v.return),m=v.return;while(m)}return v.tag===3?w:null}function hn(m){if(m.tag===13){var v=m.memoizedState;if(v===null&&(m=m.alternate,m!==null&&(v=m.memoizedState)),v!==null)return v.dehydrated}return null}function cn(m){if(Nt(m)!==m)throw Error(n(188))}function Kt(m){var v=m.alternate;if(!v){if(v=Nt(m),v===null)throw Error(n(188));return v!==m?null:m}for(var w=m,C=v;;){var $=w.return;if($===null)break;var F=$.alternate;if(F===null){if(C=$.return,C!==null){w=C;continue}break}if($.child===F.child){for(F=$.child;F;){if(F===w)return cn($),m;if(F===C)return cn($),v;F=F.sibling}throw Error(n(188))}if(w.return!==C.return)w=$,C=F;else{for(var te=!1,he=$.child;he;){if(he===w){te=!0,w=$,C=F;break}if(he===C){te=!0,C=$,w=F;break}he=he.sibling}if(!te){for(he=F.child;he;){if(he===w){te=!0,w=F,C=$;break}if(he===C){te=!0,C=F,w=$;break}he=he.sibling}if(!te)throw Error(n(189))}}if(w.alternate!==C)throw Error(n(190))}if(w.tag!==3)throw Error(n(188));return w.stateNode.current===w?m:v}function sn(m){return m=Kt(m),m!==null?nn(m):null}function nn(m){if(m.tag===5||m.tag===6)return m;for(m=m.child;m!==null;){var v=nn(m);if(v!==null)return v;m=m.sibling}return null}var Yt=e.unstable_scheduleCallback,Ct=e.unstable_cancelCallback,ln=e.unstable_shouldYield,or=e.unstable_requestPaint,wn=e.unstable_now,fr=e.unstable_getCurrentPriorityLevel,lr=e.unstable_ImmediatePriority,ce=e.unstable_UserBlockingPriority,le=e.unstable_NormalPriority,Oe=e.unstable_LowPriority,Xe=e.unstable_IdlePriority,Ae=null,ze=null;function bt(m){if(ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(Ae,m,void 0,(m.current.flags&128)===128)}catch{}}var ot=Math.clz32?Math.clz32:At,yt=Math.log,Vt=Math.LN2;function At(m){return m>>>=0,m===0?32:31-(yt(m)/Vt|0)|0}var Cn=64,jn=4194304;function tn(m){switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function Sn(m,v){var w=m.pendingLanes;if(w===0)return 0;var C=0,$=m.suspendedLanes,F=m.pingedLanes,te=w&268435455;if(te!==0){var he=te&~$;he!==0?C=tn(he):(F&=te,F!==0&&(C=tn(F)))}else te=w&~$,te!==0?C=tn(te):F!==0&&(C=tn(F));if(C===0)return 0;if(v!==0&&v!==C&&(v&$)===0&&($=C&-C,F=v&-v,$>=F||$===16&&(F&4194240)!==0))return v;if((C&4)!==0&&(C|=w&16),v=m.entangledLanes,v!==0)for(m=m.entanglements,v&=C;0<v;)w=31-ot(v),$=1<<w,C|=m[w],v&=~$;return C}function Pn(m,v){switch(m){case 1:case 2:case 4:return v+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return v+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qt(m,v){for(var w=m.suspendedLanes,C=m.pingedLanes,$=m.expirationTimes,F=m.pendingLanes;0<F;){var te=31-ot(F),he=1<<te,xe=$[te];xe===-1?((he&w)===0||(he&C)!==0)&&($[te]=Pn(he,v)):xe<=v&&(m.expiredLanes|=he),F&=~he}}function fn(m){return m=m.pendingLanes&-1073741825,m!==0?m:m&1073741824?1073741824:0}function Mn(){var m=Cn;return Cn<<=1,(Cn&4194240)===0&&(Cn=64),m}function Fn(m){for(var v=[],w=0;31>w;w++)v.push(m);return v}function Ft(m,v,w){m.pendingLanes|=v,v!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,v=31-ot(v),m[v]=w}function Bn(m,v){var w=m.pendingLanes&~v;m.pendingLanes=v,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=v,m.mutableReadLanes&=v,m.entangledLanes&=v,v=m.entanglements;var C=m.eventTimes;for(m=m.expirationTimes;0<w;){var $=31-ot(w),F=1<<$;v[$]=0,C[$]=-1,m[$]=-1,w&=~F}}function In(m,v){var w=m.entangledLanes|=v;for(m=m.entanglements;w;){var C=31-ot(w),$=1<<C;$&v|m[C]&v&&(m[C]|=v),w&=~$}}var dn=0;function Xr(m){return m&=-m,1<m?4<m?(m&268435455)!==0?16:536870912:4:1}var jr,gr,Hr,zi,ei,Wi=!1,$i=[],Tr=null,Qr=null,ao=null,Zi=new Map,ps=new Map,lo=[],tl="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 da(m,v){switch(m){case"focusin":case"focusout":Tr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":ao=null;break;case"pointerover":case"pointerout":Zi.delete(v.pointerId);break;case"gotpointercapture":case"lostpointercapture":ps.delete(v.pointerId)}}function uo(m,v,w,C,$,F){return m===null||m.nativeEvent!==F?(m={blockedOn:v,domEventName:w,eventSystemFlags:C,nativeEvent:F,targetContainers:[$]},v!==null&&(v=wh(v),v!==null&&gr(v)),m):(m.eventSystemFlags|=C,v=m.targetContainers,$!==null&&v.indexOf($)===-1&&v.push($),m)}function ko(m,v,w,C,$){switch(v){case"focusin":return Tr=uo(Tr,m,v,w,C,$),!0;case"dragenter":return Qr=uo(Qr,m,v,w,C,$),!0;case"mouseover":return ao=uo(ao,m,v,w,C,$),!0;case"pointerover":var F=$.pointerId;return Zi.set(F,uo(Zi.get(F)||null,m,v,w,C,$)),!0;case"gotpointercapture":return F=$.pointerId,ps.set(F,uo(ps.get(F)||null,m,v,w,C,$)),!0}return!1}function Ns(m){var v=sc(m.target);if(v!==null){var w=Nt(v);if(w!==null){if(v=w.tag,v===13){if(v=hn(w),v!==null){m.blockedOn=v,ei(m.priority,function(){Hr(w)});return}}else if(v===3&&w.stateNode.current.memoizedState.isDehydrated){m.blockedOn=w.tag===3?w.stateNode.containerInfo:null;return}}}m.blockedOn=null}function xo(m){if(m.blockedOn!==null)return!1;for(var v=m.targetContainers;0<v.length;){var w=Bl(m.domEventName,m.eventSystemFlags,v[0],m.nativeEvent);if(w===null){w=m.nativeEvent;var C=new w.constructor(w.type,w);nt=C,w.target.dispatchEvent(C),nt=null}else return v=wh(w),v!==null&&gr(v),m.blockedOn=w,!1;v.shift()}return!0}function ms(m,v,w){xo(m)&&w.delete(v)}function Ql(){Wi=!1,Tr!==null&&xo(Tr)&&(Tr=null),Qr!==null&&xo(Qr)&&(Qr=null),ao!==null&&xo(ao)&&(ao=null),Zi.forEach(ms),ps.forEach(ms)}function ha(m,v){m.blockedOn===v&&(m.blockedOn=null,Wi||(Wi=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ql)))}function Ls(m){function v($){return ha($,m)}if(0<$i.length){ha($i[0],m);for(var w=1;w<$i.length;w++){var C=$i[w];C.blockedOn===m&&(C.blockedOn=null)}}for(Tr!==null&&ha(Tr,m),Qr!==null&&ha(Qr,m),ao!==null&&ha(ao,m),Zi.forEach(v),ps.forEach(v),w=0;w<lo.length;w++)C=lo[w],C.blockedOn===m&&(C.blockedOn=null);for(;0<lo.length&&(w=lo[0],w.blockedOn===null);)Ns(w),w.blockedOn===null&&lo.shift()}var Ho=k.ReactCurrentBatchConfig,nl=!0;function Fl(m,v,w,C){var $=dn,F=Ho.transition;Ho.transition=null;try{dn=1,js(m,v,w,C)}finally{dn=$,Ho.transition=F}}function ch(m,v,w,C){var $=dn,F=Ho.transition;Ho.transition=null;try{dn=4,js(m,v,w,C)}finally{dn=$,Ho.transition=F}}function js(m,v,w,C){if(nl){var $=Bl(m,v,w,C);if($===null)fb(m,v,C,rl,w),da(m,C);else if(ko($,m,v,w,C))C.stopPropagation();else if(da(m,C),v&4&&-1<tl.indexOf(m)){for(;$!==null;){var F=wh($);if(F!==null&&jr(F),F=Bl(m,v,w,C),F===null&&fb(m,v,C,rl,w),F===$)break;$=F}$!==null&&C.stopPropagation()}else fb(m,v,C,null,w)}}var rl=null;function Bl(m,v,w,C){if(rl=null,m=Rt(C),m=sc(m),m!==null)if(v=Nt(m),v===null)m=null;else if(w=v.tag,w===13){if(m=hn(v),m!==null)return m;m=null}else if(w===3){if(v.stateNode.current.memoizedState.isDehydrated)return v.tag===3?v.stateNode.containerInfo:null;m=null}else v!==m&&(m=null);return rl=m,null}function rc(m){switch(m){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(fr()){case lr:return 1;case ce:return 4;case le:case Oe:return 16;case Xe:return 536870912;default:return 16}default:return 16}}var _i=null,Yo=null,pa=null;function Ul(){if(pa)return pa;var m,v=Yo,w=v.length,C,$="value"in _i?_i.value:_i.textContent,F=$.length;for(m=0;m<w&&v[m]===$[m];m++);var te=w-m;for(C=1;C<=te&&v[w-C]===$[F-C];C++);return pa=$.slice(m,1<C?1-C:void 0)}function Qs(m){var v=m.keyCode;return"charCode"in m?(m=m.charCode,m===0&&v===13&&(m=13)):m=v,m===10&&(m=13),32<=m||m===13?m:0}function il(){return!0}function ql(){return!1}function gi(m){function v(w,C,$,F,te){this._reactName=w,this._targetInst=$,this.type=C,this.nativeEvent=F,this.target=te,this.currentTarget=null;for(var he in m)m.hasOwnProperty(he)&&(w=m[he],this[he]=w?w(F):F[he]);return this.isDefaultPrevented=(F.defaultPrevented!=null?F.defaultPrevented:F.returnValue===!1)?il:ql,this.isPropagationStopped=ql,this}return U(v.prototype,{preventDefault:function(){this.defaultPrevented=!0;var w=this.nativeEvent;w&&(w.preventDefault?w.preventDefault():typeof w.returnValue!="unknown"&&(w.returnValue=!1),this.isDefaultPrevented=il)},stopPropagation:function(){var w=this.nativeEvent;w&&(w.stopPropagation?w.stopPropagation():typeof w.cancelBubble!="unknown"&&(w.cancelBubble=!0),this.isPropagationStopped=il)},persist:function(){},isPersistent:il}),v}var Fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(m){return m.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ol=gi(Fs),Vl=U({},Fs,{view:0,detail:0}),eb=gi(Vl),lf,fh,se,re=U({},Vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,button:0,buttons:0,relatedTarget:function(m){return m.relatedTarget===void 0?m.fromElement===m.srcElement?m.toElement:m.fromElement:m.relatedTarget},movementX:function(m){return"movementX"in m?m.movementX:(m!==se&&(se&&m.type==="mousemove"?(lf=m.screenX-se.screenX,fh=m.screenY-se.screenY):fh=lf=0,se=m),lf)},movementY:function(m){return"movementY"in m?m.movementY:fh}}),ae=gi(re),ke=U({},re,{dataTransfer:0}),Qe=gi(ke),Be=U({},Vl,{relatedTarget:0}),He=gi(Be),Ge=U({},Fs,{animationName:0,elapsedTime:0,pseudoElement:0}),mt=gi(Ge),Jt=U({},Fs,{clipboardData:function(m){return"clipboardData"in m?m.clipboardData:window.clipboardData}}),Un=gi(Jt),Gn=U({},Fs,{data:0}),qn=gi(Gn),_o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zl={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"},sl={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ic(m){var v=this.nativeEvent;return v.getModifierState?v.getModifierState(m):(m=sl[m])?!!v[m]:!1}function Xn(){return ic}var pn=U({},Vl,{key:function(m){if(m.key){var v=_o[m.key]||m.key;if(v!=="Unidentified")return v}return m.type==="keypress"?(m=Qs(m),m===13?"Enter":String.fromCharCode(m)):m.type==="keydown"||m.type==="keyup"?zl[m.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(m){return m.type==="keypress"?Qs(m):0},keyCode:function(m){return m.type==="keydown"||m.type==="keyup"?m.keyCode:0},which:function(m){return m.type==="keypress"?Qs(m):m.type==="keydown"||m.type==="keyup"?m.keyCode:0}}),Gt=gi(pn),mn=U({},re,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vn=gi(mn),kr=U({},Vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn}),oi=gi(kr),Po=U({},Fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wl=gi(Po),al=U({},re,{deltaX:function(m){return"deltaX"in m?m.deltaX:"wheelDeltaX"in m?-m.wheelDeltaX:0},deltaY:function(m){return"deltaY"in m?m.deltaY:"wheelDeltaY"in m?-m.wheelDeltaY:"wheelDelta"in m?-m.wheelDelta:0},deltaZ:0,deltaMode:0}),oc=gi(al),yW=[9,13,27,32],tb=a&&"CompositionEvent"in window,dh=null;a&&"documentMode"in document&&(dh=document.documentMode);var OW=a&&"TextEvent"in window&&!dh,mR=a&&(!tb||dh&&8<dh&&11>=dh),gR=" ",vR=!1;function yR(m,v){switch(m){case"keyup":return yW.indexOf(v.keyCode)!==-1;case"keydown":return v.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OR(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var uf=!1;function bW(m,v){switch(m){case"compositionend":return OR(v);case"keypress":return v.which!==32?null:(vR=!0,gR);case"textInput":return m=v.data,m===gR&&vR?null:m;default:return null}}function wW(m,v){if(uf)return m==="compositionend"||!tb&&yR(m,v)?(m=Ul(),pa=Yo=_i=null,uf=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(v.ctrlKey||v.altKey||v.metaKey)||v.ctrlKey&&v.altKey){if(v.char&&1<v.char.length)return v.char;if(v.which)return String.fromCharCode(v.which)}return null;case"compositionend":return mR&&v.locale!=="ko"?null:v.data;default:return null}}var SW={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 bR(m){var v=m&&m.nodeName&&m.nodeName.toLowerCase();return v==="input"?!!SW[m.type]:v==="textarea"}function wR(m,v,w,C){Tn(C),v=fg(v,"onChange"),0<v.length&&(w=new ol("onChange","change",null,w,C),m.push({event:w,listeners:v}))}var hh=null,ph=null;function kW(m){QR(m,0)}function ag(m){var v=pf(m);if(Te(v))return m}function xW(m,v){if(m==="change")return v}var SR=!1;if(a){var nb;if(a){var rb="oninput"in document;if(!rb){var kR=document.createElement("div");kR.setAttribute("oninput","return;"),rb=typeof kR.oninput=="function"}nb=rb}else nb=!1;SR=nb&&(!document.documentMode||9<document.documentMode)}function xR(){hh&&(hh.detachEvent("onpropertychange",_R),ph=hh=null)}function _R(m){if(m.propertyName==="value"&&ag(ph)){var v=[];wR(v,ph,m,Rt(m)),Ee(kW,v)}}function _W(m,v,w){m==="focusin"?(xR(),hh=v,ph=w,hh.attachEvent("onpropertychange",_R)):m==="focusout"&&xR()}function PW(m){if(m==="selectionchange"||m==="keyup"||m==="keydown")return ag(ph)}function CW(m,v){if(m==="click")return ag(v)}function EW(m,v){if(m==="input"||m==="change")return ag(v)}function TW(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var Bs=typeof Object.is=="function"?Object.is:TW;function mh(m,v){if(Bs(m,v))return!0;if(typeof m!="object"||m===null||typeof v!="object"||v===null)return!1;var w=Object.keys(m),C=Object.keys(v);if(w.length!==C.length)return!1;for(C=0;C<w.length;C++){var $=w[C];if(!l.call(v,$)||!Bs(m[$],v[$]))return!1}return!0}function PR(m){for(;m&&m.firstChild;)m=m.firstChild;return m}function CR(m,v){var w=PR(m);m=0;for(var C;w;){if(w.nodeType===3){if(C=m+w.textContent.length,m<=v&&C>=v)return{node:w,offset:v-m};m=C}e:{for(;w;){if(w.nextSibling){w=w.nextSibling;break e}w=w.parentNode}w=void 0}w=PR(w)}}function ER(m,v){return m&&v?m===v?!0:m&&m.nodeType===3?!1:v&&v.nodeType===3?ER(m,v.parentNode):"contains"in m?m.contains(v):m.compareDocumentPosition?!!(m.compareDocumentPosition(v)&16):!1:!1}function TR(){for(var m=window,v=Re();v instanceof m.HTMLIFrameElement;){try{var w=typeof v.contentWindow.location.href=="string"}catch{w=!1}if(w)m=v.contentWindow;else break;v=Re(m.document)}return v}function ib(m){var v=m&&m.nodeName&&m.nodeName.toLowerCase();return v&&(v==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||v==="textarea"||m.contentEditable==="true")}function RW(m){var v=TR(),w=m.focusedElem,C=m.selectionRange;if(v!==w&&w&&w.ownerDocument&&ER(w.ownerDocument.documentElement,w)){if(C!==null&&ib(w)){if(v=C.start,m=C.end,m===void 0&&(m=v),"selectionStart"in w)w.selectionStart=v,w.selectionEnd=Math.min(m,w.value.length);else if(m=(v=w.ownerDocument||document)&&v.defaultView||window,m.getSelection){m=m.getSelection();var $=w.textContent.length,F=Math.min(C.start,$);C=C.end===void 0?F:Math.min(C.end,$),!m.extend&&F>C&&($=C,C=F,F=$),$=CR(w,F);var te=CR(w,C);$&&te&&(m.rangeCount!==1||m.anchorNode!==$.node||m.anchorOffset!==$.offset||m.focusNode!==te.node||m.focusOffset!==te.offset)&&(v=v.createRange(),v.setStart($.node,$.offset),m.removeAllRanges(),F>C?(m.addRange(v),m.extend(te.node,te.offset)):(v.setEnd(te.node,te.offset),m.addRange(v)))}}for(v=[],m=w;m=m.parentNode;)m.nodeType===1&&v.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<v.length;w++)m=v[w],m.element.scrollLeft=m.left,m.element.scrollTop=m.top}}var AW=a&&"documentMode"in document&&11>=document.documentMode,cf=null,ob=null,gh=null,sb=!1;function RR(m,v,w){var C=w.window===w?w.document:w.nodeType===9?w:w.ownerDocument;sb||cf==null||cf!==Re(C)||(C=cf,"selectionStart"in C&&ib(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),gh&&mh(gh,C)||(gh=C,C=fg(ob,"onSelect"),0<C.length&&(v=new ol("onSelect","select",null,v,w),m.push({event:v,listeners:C}),v.target=cf)))}function lg(m,v){var w={};return w[m.toLowerCase()]=v.toLowerCase(),w["Webkit"+m]="webkit"+v,w["Moz"+m]="moz"+v,w}var ff={animationend:lg("Animation","AnimationEnd"),animationiteration:lg("Animation","AnimationIteration"),animationstart:lg("Animation","AnimationStart"),transitionend:lg("Transition","TransitionEnd")},ab={},AR={};a&&(AR=document.createElement("div").style,"AnimationEvent"in window||(delete ff.animationend.animation,delete ff.animationiteration.animation,delete ff.animationstart.animation),"TransitionEvent"in window||delete ff.transitionend.transition);function ug(m){if(ab[m])return ab[m];if(!ff[m])return m;var v=ff[m],w;for(w in v)if(v.hasOwnProperty(w)&&w in AR)return ab[m]=v[w];return m}var MR=ug("animationend"),DR=ug("animationiteration"),IR=ug("animationstart"),$R=ug("transitionend"),NR=new Map,LR="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zl(m,v){NR.set(m,v),o(v,[m])}for(var lb=0;lb<LR.length;lb++){var ub=LR[lb],MW=ub.toLowerCase(),DW=ub[0].toUpperCase()+ub.slice(1);Zl(MW,"on"+DW)}Zl(MR,"onAnimationEnd"),Zl(DR,"onAnimationIteration"),Zl(IR,"onAnimationStart"),Zl("dblclick","onDoubleClick"),Zl("focusin","onFocus"),Zl("focusout","onBlur"),Zl($R,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),IW=new Set("cancel close invalid load scroll toggle".split(" ").concat(vh));function jR(m,v,w){var C=m.type||"unknown-event";m.currentTarget=w,Pt(C,v,void 0,m),m.currentTarget=null}function QR(m,v){v=(v&4)!==0;for(var w=0;w<m.length;w++){var C=m[w],$=C.event;C=C.listeners;e:{var F=void 0;if(v)for(var te=C.length-1;0<=te;te--){var he=C[te],xe=he.instance,Ue=he.currentTarget;if(he=he.listener,xe!==F&&$.isPropagationStopped())break e;jR($,he,Ue),F=xe}else for(te=0;te<C.length;te++){if(he=C[te],xe=he.instance,Ue=he.currentTarget,he=he.listener,xe!==F&&$.isPropagationStopped())break e;jR($,he,Ue),F=xe}}}if(Je)throw m=Ze,Je=!1,Ze=null,m}function Rr(m,v){var w=v[vb];w===void 0&&(w=v[vb]=new Set);var C=m+"__bubble";w.has(C)||(FR(v,m,2,!1),w.add(C))}function cb(m,v,w){var C=0;v&&(C|=4),FR(w,m,C,v)}var cg="_reactListening"+Math.random().toString(36).slice(2);function yh(m){if(!m[cg]){m[cg]=!0,r.forEach(function(w){w!=="selectionchange"&&(IW.has(w)||cb(w,!1,m),cb(w,!0,m))});var v=m.nodeType===9?m:m.ownerDocument;v===null||v[cg]||(v[cg]=!0,cb("selectionchange",!1,v))}}function FR(m,v,w,C){switch(rc(v)){case 1:var $=Fl;break;case 4:$=ch;break;default:$=js}w=$.bind(null,v,w,m),$=void 0,!rt||v!=="touchstart"&&v!=="touchmove"&&v!=="wheel"||($=!0),C?$!==void 0?m.addEventListener(v,w,{capture:!0,passive:$}):m.addEventListener(v,w,!0):$!==void 0?m.addEventListener(v,w,{passive:$}):m.addEventListener(v,w,!1)}function fb(m,v,w,C,$){var F=C;if((v&1)===0&&(v&2)===0&&C!==null)e:for(;;){if(C===null)return;var te=C.tag;if(te===3||te===4){var he=C.stateNode.containerInfo;if(he===$||he.nodeType===8&&he.parentNode===$)break;if(te===4)for(te=C.return;te!==null;){var xe=te.tag;if((xe===3||xe===4)&&(xe=te.stateNode.containerInfo,xe===$||xe.nodeType===8&&xe.parentNode===$))return;te=te.return}for(;he!==null;){if(te=sc(he),te===null)return;if(xe=te.tag,xe===5||xe===6){C=F=te;continue e}he=he.parentNode}}C=C.return}Ee(function(){var Ue=F,vt=Rt(w),Ot=[];e:{var gt=NR.get(m);if(gt!==void 0){var Bt=ol,Zt=m;switch(m){case"keypress":if(Qs(w)===0)break e;case"keydown":case"keyup":Bt=Gt;break;case"focusin":Zt="focus",Bt=He;break;case"focusout":Zt="blur",Bt=He;break;case"beforeblur":case"afterblur":Bt=He;break;case"click":if(w.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Bt=ae;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Bt=Qe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Bt=oi;break;case MR:case DR:case IR:Bt=mt;break;case $R:Bt=Wl;break;case"scroll":Bt=eb;break;case"wheel":Bt=oc;break;case"copy":case"cut":case"paste":Bt=Un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Bt=Vn}var en=(v&4)!==0,ti=!en&&m==="scroll",Ie=en?gt!==null?gt+"Capture":null:gt;en=[];for(var Ce=Ue,je;Ce!==null;){je=Ce;var xt=je.stateNode;if(je.tag===5&&xt!==null&&(je=xt,Ie!==null&&(xt=De(Ce,Ie),xt!=null&&en.push(Oh(Ce,xt,je)))),ti)break;Ce=Ce.return}0<en.length&&(gt=new Bt(gt,Zt,null,w,vt),Ot.push({event:gt,listeners:en}))}}if((v&7)===0){e:{if(gt=m==="mouseover"||m==="pointerover",Bt=m==="mouseout"||m==="pointerout",gt&&w!==nt&&(Zt=w.relatedTarget||w.fromElement)&&(sc(Zt)||Zt[ll]))break e;if((Bt||gt)&&(gt=vt.window===vt?vt:(gt=vt.ownerDocument)?gt.defaultView||gt.parentWindow:window,Bt?(Zt=w.relatedTarget||w.toElement,Bt=Ue,Zt=Zt?sc(Zt):null,Zt!==null&&(ti=Nt(Zt),Zt!==ti||Zt.tag!==5&&Zt.tag!==6)&&(Zt=null)):(Bt=null,Zt=Ue),Bt!==Zt)){if(en=ae,xt="onMouseLeave",Ie="onMouseEnter",Ce="mouse",(m==="pointerout"||m==="pointerover")&&(en=Vn,xt="onPointerLeave",Ie="onPointerEnter",Ce="pointer"),ti=Bt==null?gt:pf(Bt),je=Zt==null?gt:pf(Zt),gt=new en(xt,Ce+"leave",Bt,w,vt),gt.target=ti,gt.relatedTarget=je,xt=null,sc(vt)===Ue&&(en=new en(Ie,Ce+"enter",Zt,w,vt),en.target=je,en.relatedTarget=ti,xt=en),ti=xt,Bt&&Zt)t:{for(en=Bt,Ie=Zt,Ce=0,je=en;je;je=df(je))Ce++;for(je=0,xt=Ie;xt;xt=df(xt))je++;for(;0<Ce-je;)en=df(en),Ce--;for(;0<je-Ce;)Ie=df(Ie),je--;for(;Ce--;){if(en===Ie||Ie!==null&&en===Ie.alternate)break t;en=df(en),Ie=df(Ie)}en=null}else en=null;Bt!==null&&BR(Ot,gt,Bt,en,!1),Zt!==null&&ti!==null&&BR(Ot,ti,Zt,en,!0)}}e:{if(gt=Ue?pf(Ue):window,Bt=gt.nodeName&&gt.nodeName.toLowerCase(),Bt==="select"||Bt==="input"&&gt.type==="file")var rn=xW;else if(bR(gt))if(SR)rn=EW;else{rn=PW;var gn=_W}else(Bt=gt.nodeName)&&Bt.toLowerCase()==="input"&&(gt.type==="checkbox"||gt.type==="radio")&&(rn=CW);if(rn&&(rn=rn(m,Ue))){wR(Ot,rn,w,vt);break e}gn&&gn(m,gt,Ue),m==="focusout"&&(gn=gt._wrapperState)&&gn.controlled&&gt.type==="number"&&me(gt,"number",gt.value)}switch(gn=Ue?pf(Ue):window,m){case"focusin":(bR(gn)||gn.contentEditable==="true")&&(cf=gn,ob=Ue,gh=null);break;case"focusout":gh=ob=cf=null;break;case"mousedown":sb=!0;break;case"contextmenu":case"mouseup":case"dragend":sb=!1,RR(Ot,w,vt);break;case"selectionchange":if(AW)break;case"keydown":case"keyup":RR(Ot,w,vt)}var vn;if(tb)e:{switch(m){case"compositionstart":var kn="onCompositionStart";break e;case"compositionend":kn="onCompositionEnd";break e;case"compositionupdate":kn="onCompositionUpdate";break e}kn=void 0}else uf?yR(m,w)&&(kn="onCompositionEnd"):m==="keydown"&&w.keyCode===229&&(kn="onCompositionStart");kn&&(mR&&w.locale!=="ko"&&(uf||kn!=="onCompositionStart"?kn==="onCompositionEnd"&&uf&&(vn=Ul()):(_i=vt,Yo="value"in _i?_i.value:_i.textContent,uf=!0)),gn=fg(Ue,kn),0<gn.length&&(kn=new qn(kn,m,null,w,vt),Ot.push({event:kn,listeners:gn}),vn?kn.data=vn:(vn=OR(w),vn!==null&&(kn.data=vn)))),(vn=OW?bW(m,w):wW(m,w))&&(Ue=fg(Ue,"onBeforeInput"),0<Ue.length&&(vt=new qn("onBeforeInput","beforeinput",null,w,vt),Ot.push({event:vt,listeners:Ue}),vt.data=vn))}QR(Ot,v)})}function Oh(m,v,w){return{instance:m,listener:v,currentTarget:w}}function fg(m,v){for(var w=v+"Capture",C=[];m!==null;){var $=m,F=$.stateNode;$.tag===5&&F!==null&&($=F,F=De(m,w),F!=null&&C.unshift(Oh(m,F,$)),F=De(m,v),F!=null&&C.push(Oh(m,F,$))),m=m.return}return C}function df(m){if(m===null)return null;do m=m.return;while(m&&m.tag!==5);return m||null}function BR(m,v,w,C,$){for(var F=v._reactName,te=[];w!==null&&w!==C;){var he=w,xe=he.alternate,Ue=he.stateNode;if(xe!==null&&xe===C)break;he.tag===5&&Ue!==null&&(he=Ue,$?(xe=De(w,F),xe!=null&&te.unshift(Oh(w,xe,he))):$||(xe=De(w,F),xe!=null&&te.push(Oh(w,xe,he)))),w=w.return}te.length!==0&&m.push({event:v,listeners:te})}var $W=/\r\n?/g,NW=/\u0000|\uFFFD/g;function UR(m){return(typeof m=="string"?m:""+m).replace($W,`
38
+ `).replace(NW,"")}function dg(m,v,w){if(v=UR(v),UR(m)!==v&&w)throw Error(n(425))}function hg(){}var db=null,hb=null;function pb(m,v){return m==="textarea"||m==="noscript"||typeof v.children=="string"||typeof v.children=="number"||typeof v.dangerouslySetInnerHTML=="object"&&v.dangerouslySetInnerHTML!==null&&v.dangerouslySetInnerHTML.__html!=null}var mb=typeof setTimeout=="function"?setTimeout:void 0,LW=typeof clearTimeout=="function"?clearTimeout:void 0,qR=typeof Promise=="function"?Promise:void 0,jW=typeof queueMicrotask=="function"?queueMicrotask:typeof qR<"u"?function(m){return qR.resolve(null).then(m).catch(QW)}:mb;function QW(m){setTimeout(function(){throw m})}function gb(m,v){var w=v,C=0;do{var $=w.nextSibling;if(m.removeChild(w),$&&$.nodeType===8)if(w=$.data,w==="/$"){if(C===0){m.removeChild($),Ls(v);return}C--}else w!=="$"&&w!=="$?"&&w!=="$!"||C++;w=$}while(w);Ls(v)}function Xl(m){for(;m!=null;m=m.nextSibling){var v=m.nodeType;if(v===1||v===3)break;if(v===8){if(v=m.data,v==="$"||v==="$!"||v==="$?")break;if(v==="/$")return null}}return m}function VR(m){m=m.previousSibling;for(var v=0;m;){if(m.nodeType===8){var w=m.data;if(w==="$"||w==="$!"||w==="$?"){if(v===0)return m;v--}else w==="/$"&&v++}m=m.previousSibling}return null}var hf=Math.random().toString(36).slice(2),ma="__reactFiber$"+hf,bh="__reactProps$"+hf,ll="__reactContainer$"+hf,vb="__reactEvents$"+hf,FW="__reactListeners$"+hf,BW="__reactHandles$"+hf;function sc(m){var v=m[ma];if(v)return v;for(var w=m.parentNode;w;){if(v=w[ll]||w[ma]){if(w=v.alternate,v.child!==null||w!==null&&w.child!==null)for(m=VR(m);m!==null;){if(w=m[ma])return w;m=VR(m)}return v}m=w,w=m.parentNode}return null}function wh(m){return m=m[ma]||m[ll],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function pf(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(n(33))}function pg(m){return m[bh]||null}var yb=[],mf=-1;function Hl(m){return{current:m}}function Ar(m){0>mf||(m.current=yb[mf],yb[mf]=null,mf--)}function xr(m,v){mf++,yb[mf]=m.current,m.current=v}var Yl={},Xi=Hl(Yl),Co=Hl(!1),ac=Yl;function gf(m,v){var w=m.type.contextTypes;if(!w)return Yl;var C=m.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===v)return C.__reactInternalMemoizedMaskedChildContext;var $={},F;for(F in w)$[F]=v[F];return C&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=v,m.__reactInternalMemoizedMaskedChildContext=$),$}function Eo(m){return m=m.childContextTypes,m!=null}function mg(){Ar(Co),Ar(Xi)}function zR(m,v,w){if(Xi.current!==Yl)throw Error(n(168));xr(Xi,v),xr(Co,w)}function WR(m,v,w){var C=m.stateNode;if(v=v.childContextTypes,typeof C.getChildContext!="function")return w;C=C.getChildContext();for(var $ in C)if(!($ in v))throw Error(n(108,z(m)||"Unknown",$));return U({},w,C)}function gg(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||Yl,ac=Xi.current,xr(Xi,m),xr(Co,Co.current),!0}function ZR(m,v,w){var C=m.stateNode;if(!C)throw Error(n(169));w?(m=WR(m,v,ac),C.__reactInternalMemoizedMergedChildContext=m,Ar(Co),Ar(Xi),xr(Xi,m)):Ar(Co),xr(Co,w)}var ul=null,vg=!1,Ob=!1;function XR(m){ul===null?ul=[m]:ul.push(m)}function UW(m){vg=!0,XR(m)}function Gl(){if(!Ob&&ul!==null){Ob=!0;var m=0,v=dn;try{var w=ul;for(dn=1;m<w.length;m++){var C=w[m];do C=C(!0);while(C!==null)}ul=null,vg=!1}catch($){throw ul!==null&&(ul=ul.slice(m+1)),Yt(lr,Gl),$}finally{dn=v,Ob=!1}}return null}var vf=[],yf=0,yg=null,Og=0,gs=[],vs=0,lc=null,cl=1,fl="";function uc(m,v){vf[yf++]=Og,vf[yf++]=yg,yg=m,Og=v}function HR(m,v,w){gs[vs++]=cl,gs[vs++]=fl,gs[vs++]=lc,lc=m;var C=cl;m=fl;var $=32-ot(C)-1;C&=~(1<<$),w+=1;var F=32-ot(v)+$;if(30<F){var te=$-$%5;F=(C&(1<<te)-1).toString(32),C>>=te,$-=te,cl=1<<32-ot(v)+$|w<<$|C,fl=F+m}else cl=1<<F|w<<$|C,fl=m}function bb(m){m.return!==null&&(uc(m,1),HR(m,1,0))}function wb(m){for(;m===yg;)yg=vf[--yf],vf[yf]=null,Og=vf[--yf],vf[yf]=null;for(;m===lc;)lc=gs[--vs],gs[vs]=null,fl=gs[--vs],gs[vs]=null,cl=gs[--vs],gs[vs]=null}var Go=null,Ko=null,Fr=!1,Us=null;function YR(m,v){var w=ws(5,null,null,0);w.elementType="DELETED",w.stateNode=v,w.return=m,v=m.deletions,v===null?(m.deletions=[w],m.flags|=16):v.push(w)}function GR(m,v){switch(m.tag){case 5:var w=m.type;return v=v.nodeType!==1||w.toLowerCase()!==v.nodeName.toLowerCase()?null:v,v!==null?(m.stateNode=v,Go=m,Ko=Xl(v.firstChild),!0):!1;case 6:return v=m.pendingProps===""||v.nodeType!==3?null:v,v!==null?(m.stateNode=v,Go=m,Ko=null,!0):!1;case 13:return v=v.nodeType!==8?null:v,v!==null?(w=lc!==null?{id:cl,overflow:fl}:null,m.memoizedState={dehydrated:v,treeContext:w,retryLane:1073741824},w=ws(18,null,null,0),w.stateNode=v,w.return=m,m.child=w,Go=m,Ko=null,!0):!1;default:return!1}}function Sb(m){return(m.mode&1)!==0&&(m.flags&128)===0}function kb(m){if(Fr){var v=Ko;if(v){var w=v;if(!GR(m,v)){if(Sb(m))throw Error(n(418));v=Xl(w.nextSibling);var C=Go;v&&GR(m,v)?YR(C,w):(m.flags=m.flags&-4097|2,Fr=!1,Go=m)}}else{if(Sb(m))throw Error(n(418));m.flags=m.flags&-4097|2,Fr=!1,Go=m}}}function KR(m){for(m=m.return;m!==null&&m.tag!==5&&m.tag!==3&&m.tag!==13;)m=m.return;Go=m}function bg(m){if(m!==Go)return!1;if(!Fr)return KR(m),Fr=!0,!1;var v;if((v=m.tag!==3)&&!(v=m.tag!==5)&&(v=m.type,v=v!=="head"&&v!=="body"&&!pb(m.type,m.memoizedProps)),v&&(v=Ko)){if(Sb(m))throw JR(),Error(n(418));for(;v;)YR(m,v),v=Xl(v.nextSibling)}if(KR(m),m.tag===13){if(m=m.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(n(317));e:{for(m=m.nextSibling,v=0;m;){if(m.nodeType===8){var w=m.data;if(w==="/$"){if(v===0){Ko=Xl(m.nextSibling);break e}v--}else w!=="$"&&w!=="$!"&&w!=="$?"||v++}m=m.nextSibling}Ko=null}}else Ko=Go?Xl(m.stateNode.nextSibling):null;return!0}function JR(){for(var m=Ko;m;)m=Xl(m.nextSibling)}function Of(){Ko=Go=null,Fr=!1}function xb(m){Us===null?Us=[m]:Us.push(m)}var qW=k.ReactCurrentBatchConfig;function Sh(m,v,w){if(m=w.ref,m!==null&&typeof m!="function"&&typeof m!="object"){if(w._owner){if(w=w._owner,w){if(w.tag!==1)throw Error(n(309));var C=w.stateNode}if(!C)throw Error(n(147,m));var $=C,F=""+m;return v!==null&&v.ref!==null&&typeof v.ref=="function"&&v.ref._stringRef===F?v.ref:(v=function(te){var he=$.refs;te===null?delete he[F]:he[F]=te},v._stringRef=F,v)}if(typeof m!="string")throw Error(n(284));if(!w._owner)throw Error(n(290,m))}return m}function wg(m,v){throw m=Object.prototype.toString.call(v),Error(n(31,m==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":m))}function e2(m){var v=m._init;return v(m._payload)}function t2(m){function v(Ie,Ce){if(m){var je=Ie.deletions;je===null?(Ie.deletions=[Ce],Ie.flags|=16):je.push(Ce)}}function w(Ie,Ce){if(!m)return null;for(;Ce!==null;)v(Ie,Ce),Ce=Ce.sibling;return null}function C(Ie,Ce){for(Ie=new Map;Ce!==null;)Ce.key!==null?Ie.set(Ce.key,Ce):Ie.set(Ce.index,Ce),Ce=Ce.sibling;return Ie}function $(Ie,Ce){return Ie=ou(Ie,Ce),Ie.index=0,Ie.sibling=null,Ie}function F(Ie,Ce,je){return Ie.index=je,m?(je=Ie.alternate,je!==null?(je=je.index,je<Ce?(Ie.flags|=2,Ce):je):(Ie.flags|=2,Ce)):(Ie.flags|=1048576,Ce)}function te(Ie){return m&&Ie.alternate===null&&(Ie.flags|=2),Ie}function he(Ie,Ce,je,xt){return Ce===null||Ce.tag!==6?(Ce=mw(je,Ie.mode,xt),Ce.return=Ie,Ce):(Ce=$(Ce,je),Ce.return=Ie,Ce)}function xe(Ie,Ce,je,xt){var rn=je.type;return rn===I?vt(Ie,Ce,je.props.children,xt,je.key):Ce!==null&&(Ce.elementType===rn||typeof rn=="object"&&rn!==null&&rn.$$typeof===W&&e2(rn)===Ce.type)?(xt=$(Ce,je.props),xt.ref=Sh(Ie,Ce,je),xt.return=Ie,xt):(xt=zg(je.type,je.key,je.props,null,Ie.mode,xt),xt.ref=Sh(Ie,Ce,je),xt.return=Ie,xt)}function Ue(Ie,Ce,je,xt){return Ce===null||Ce.tag!==4||Ce.stateNode.containerInfo!==je.containerInfo||Ce.stateNode.implementation!==je.implementation?(Ce=gw(je,Ie.mode,xt),Ce.return=Ie,Ce):(Ce=$(Ce,je.children||[]),Ce.return=Ie,Ce)}function vt(Ie,Ce,je,xt,rn){return Ce===null||Ce.tag!==7?(Ce=vc(je,Ie.mode,xt,rn),Ce.return=Ie,Ce):(Ce=$(Ce,je),Ce.return=Ie,Ce)}function Ot(Ie,Ce,je){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number")return Ce=mw(""+Ce,Ie.mode,je),Ce.return=Ie,Ce;if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case x:return je=zg(Ce.type,Ce.key,Ce.props,null,Ie.mode,je),je.ref=Sh(Ie,null,Ce),je.return=Ie,je;case _:return Ce=gw(Ce,Ie.mode,je),Ce.return=Ie,Ce;case W:var xt=Ce._init;return Ot(Ie,xt(Ce._payload),je)}if($e(Ce)||K(Ce))return Ce=vc(Ce,Ie.mode,je,null),Ce.return=Ie,Ce;wg(Ie,Ce)}return null}function gt(Ie,Ce,je,xt){var rn=Ce!==null?Ce.key:null;if(typeof je=="string"&&je!==""||typeof je=="number")return rn!==null?null:he(Ie,Ce,""+je,xt);if(typeof je=="object"&&je!==null){switch(je.$$typeof){case x:return je.key===rn?xe(Ie,Ce,je,xt):null;case _:return je.key===rn?Ue(Ie,Ce,je,xt):null;case W:return rn=je._init,gt(Ie,Ce,rn(je._payload),xt)}if($e(je)||K(je))return rn!==null?null:vt(Ie,Ce,je,xt,null);wg(Ie,je)}return null}function Bt(Ie,Ce,je,xt,rn){if(typeof xt=="string"&&xt!==""||typeof xt=="number")return Ie=Ie.get(je)||null,he(Ce,Ie,""+xt,rn);if(typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case x:return Ie=Ie.get(xt.key===null?je:xt.key)||null,xe(Ce,Ie,xt,rn);case _:return Ie=Ie.get(xt.key===null?je:xt.key)||null,Ue(Ce,Ie,xt,rn);case W:var gn=xt._init;return Bt(Ie,Ce,je,gn(xt._payload),rn)}if($e(xt)||K(xt))return Ie=Ie.get(je)||null,vt(Ce,Ie,xt,rn,null);wg(Ce,xt)}return null}function Zt(Ie,Ce,je,xt){for(var rn=null,gn=null,vn=Ce,kn=Ce=0,Ei=null;vn!==null&&kn<je.length;kn++){vn.index>kn?(Ei=vn,vn=null):Ei=vn.sibling;var sr=gt(Ie,vn,je[kn],xt);if(sr===null){vn===null&&(vn=Ei);break}m&&vn&&sr.alternate===null&&v(Ie,vn),Ce=F(sr,Ce,kn),gn===null?rn=sr:gn.sibling=sr,gn=sr,vn=Ei}if(kn===je.length)return w(Ie,vn),Fr&&uc(Ie,kn),rn;if(vn===null){for(;kn<je.length;kn++)vn=Ot(Ie,je[kn],xt),vn!==null&&(Ce=F(vn,Ce,kn),gn===null?rn=vn:gn.sibling=vn,gn=vn);return Fr&&uc(Ie,kn),rn}for(vn=C(Ie,vn);kn<je.length;kn++)Ei=Bt(vn,Ie,kn,je[kn],xt),Ei!==null&&(m&&Ei.alternate!==null&&vn.delete(Ei.key===null?kn:Ei.key),Ce=F(Ei,Ce,kn),gn===null?rn=Ei:gn.sibling=Ei,gn=Ei);return m&&vn.forEach(function(su){return v(Ie,su)}),Fr&&uc(Ie,kn),rn}function en(Ie,Ce,je,xt){var rn=K(je);if(typeof rn!="function")throw Error(n(150));if(je=rn.call(je),je==null)throw Error(n(151));for(var gn=rn=null,vn=Ce,kn=Ce=0,Ei=null,sr=je.next();vn!==null&&!sr.done;kn++,sr=je.next()){vn.index>kn?(Ei=vn,vn=null):Ei=vn.sibling;var su=gt(Ie,vn,sr.value,xt);if(su===null){vn===null&&(vn=Ei);break}m&&vn&&su.alternate===null&&v(Ie,vn),Ce=F(su,Ce,kn),gn===null?rn=su:gn.sibling=su,gn=su,vn=Ei}if(sr.done)return w(Ie,vn),Fr&&uc(Ie,kn),rn;if(vn===null){for(;!sr.done;kn++,sr=je.next())sr=Ot(Ie,sr.value,xt),sr!==null&&(Ce=F(sr,Ce,kn),gn===null?rn=sr:gn.sibling=sr,gn=sr);return Fr&&uc(Ie,kn),rn}for(vn=C(Ie,vn);!sr.done;kn++,sr=je.next())sr=Bt(vn,Ie,kn,sr.value,xt),sr!==null&&(m&&sr.alternate!==null&&vn.delete(sr.key===null?kn:sr.key),Ce=F(sr,Ce,kn),gn===null?rn=sr:gn.sibling=sr,gn=sr);return m&&vn.forEach(function(SZ){return v(Ie,SZ)}),Fr&&uc(Ie,kn),rn}function ti(Ie,Ce,je,xt){if(typeof je=="object"&&je!==null&&je.type===I&&je.key===null&&(je=je.props.children),typeof je=="object"&&je!==null){switch(je.$$typeof){case x:e:{for(var rn=je.key,gn=Ce;gn!==null;){if(gn.key===rn){if(rn=je.type,rn===I){if(gn.tag===7){w(Ie,gn.sibling),Ce=$(gn,je.props.children),Ce.return=Ie,Ie=Ce;break e}}else if(gn.elementType===rn||typeof rn=="object"&&rn!==null&&rn.$$typeof===W&&e2(rn)===gn.type){w(Ie,gn.sibling),Ce=$(gn,je.props),Ce.ref=Sh(Ie,gn,je),Ce.return=Ie,Ie=Ce;break e}w(Ie,gn);break}else v(Ie,gn);gn=gn.sibling}je.type===I?(Ce=vc(je.props.children,Ie.mode,xt,je.key),Ce.return=Ie,Ie=Ce):(xt=zg(je.type,je.key,je.props,null,Ie.mode,xt),xt.ref=Sh(Ie,Ce,je),xt.return=Ie,Ie=xt)}return te(Ie);case _:e:{for(gn=je.key;Ce!==null;){if(Ce.key===gn)if(Ce.tag===4&&Ce.stateNode.containerInfo===je.containerInfo&&Ce.stateNode.implementation===je.implementation){w(Ie,Ce.sibling),Ce=$(Ce,je.children||[]),Ce.return=Ie,Ie=Ce;break e}else{w(Ie,Ce);break}else v(Ie,Ce);Ce=Ce.sibling}Ce=gw(je,Ie.mode,xt),Ce.return=Ie,Ie=Ce}return te(Ie);case W:return gn=je._init,ti(Ie,Ce,gn(je._payload),xt)}if($e(je))return Zt(Ie,Ce,je,xt);if(K(je))return en(Ie,Ce,je,xt);wg(Ie,je)}return typeof je=="string"&&je!==""||typeof je=="number"?(je=""+je,Ce!==null&&Ce.tag===6?(w(Ie,Ce.sibling),Ce=$(Ce,je),Ce.return=Ie,Ie=Ce):(w(Ie,Ce),Ce=mw(je,Ie.mode,xt),Ce.return=Ie,Ie=Ce),te(Ie)):w(Ie,Ce)}return ti}var bf=t2(!0),n2=t2(!1),Sg=Hl(null),kg=null,wf=null,_b=null;function Pb(){_b=wf=kg=null}function Cb(m){var v=Sg.current;Ar(Sg),m._currentValue=v}function Eb(m,v,w){for(;m!==null;){var C=m.alternate;if((m.childLanes&v)!==v?(m.childLanes|=v,C!==null&&(C.childLanes|=v)):C!==null&&(C.childLanes&v)!==v&&(C.childLanes|=v),m===w)break;m=m.return}}function Sf(m,v){kg=m,_b=wf=null,m=m.dependencies,m!==null&&m.firstContext!==null&&((m.lanes&v)!==0&&(To=!0),m.firstContext=null)}function ys(m){var v=m._currentValue;if(_b!==m)if(m={context:m,memoizedValue:v,next:null},wf===null){if(kg===null)throw Error(n(308));wf=m,kg.dependencies={lanes:0,firstContext:m}}else wf=wf.next=m;return v}var cc=null;function Tb(m){cc===null?cc=[m]:cc.push(m)}function r2(m,v,w,C){var $=v.interleaved;return $===null?(w.next=w,Tb(v)):(w.next=$.next,$.next=w),v.interleaved=w,dl(m,C)}function dl(m,v){m.lanes|=v;var w=m.alternate;for(w!==null&&(w.lanes|=v),w=m,m=m.return;m!==null;)m.childLanes|=v,w=m.alternate,w!==null&&(w.childLanes|=v),w=m,m=m.return;return w.tag===3?w.stateNode:null}var Kl=!1;function Rb(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function i2(m,v){m=m.updateQueue,v.updateQueue===m&&(v.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects})}function hl(m,v){return{eventTime:m,lane:v,tag:0,payload:null,callback:null,next:null}}function Jl(m,v,w){var C=m.updateQueue;if(C===null)return null;if(C=C.shared,(rr&2)!==0){var $=C.pending;return $===null?v.next=v:(v.next=$.next,$.next=v),C.pending=v,dl(m,w)}return $=C.interleaved,$===null?(v.next=v,Tb(C)):(v.next=$.next,$.next=v),C.interleaved=v,dl(m,w)}function xg(m,v,w){if(v=v.updateQueue,v!==null&&(v=v.shared,(w&4194240)!==0)){var C=v.lanes;C&=m.pendingLanes,w|=C,v.lanes=w,In(m,w)}}function o2(m,v){var w=m.updateQueue,C=m.alternate;if(C!==null&&(C=C.updateQueue,w===C)){var $=null,F=null;if(w=w.firstBaseUpdate,w!==null){do{var te={eventTime:w.eventTime,lane:w.lane,tag:w.tag,payload:w.payload,callback:w.callback,next:null};F===null?$=F=te:F=F.next=te,w=w.next}while(w!==null);F===null?$=F=v:F=F.next=v}else $=F=v;w={baseState:C.baseState,firstBaseUpdate:$,lastBaseUpdate:F,shared:C.shared,effects:C.effects},m.updateQueue=w;return}m=w.lastBaseUpdate,m===null?w.firstBaseUpdate=v:m.next=v,w.lastBaseUpdate=v}function _g(m,v,w,C){var $=m.updateQueue;Kl=!1;var F=$.firstBaseUpdate,te=$.lastBaseUpdate,he=$.shared.pending;if(he!==null){$.shared.pending=null;var xe=he,Ue=xe.next;xe.next=null,te===null?F=Ue:te.next=Ue,te=xe;var vt=m.alternate;vt!==null&&(vt=vt.updateQueue,he=vt.lastBaseUpdate,he!==te&&(he===null?vt.firstBaseUpdate=Ue:he.next=Ue,vt.lastBaseUpdate=xe))}if(F!==null){var Ot=$.baseState;te=0,vt=Ue=xe=null,he=F;do{var gt=he.lane,Bt=he.eventTime;if((C&gt)===gt){vt!==null&&(vt=vt.next={eventTime:Bt,lane:0,tag:he.tag,payload:he.payload,callback:he.callback,next:null});e:{var Zt=m,en=he;switch(gt=v,Bt=w,en.tag){case 1:if(Zt=en.payload,typeof Zt=="function"){Ot=Zt.call(Bt,Ot,gt);break e}Ot=Zt;break e;case 3:Zt.flags=Zt.flags&-65537|128;case 0:if(Zt=en.payload,gt=typeof Zt=="function"?Zt.call(Bt,Ot,gt):Zt,gt==null)break e;Ot=U({},Ot,gt);break e;case 2:Kl=!0}}he.callback!==null&&he.lane!==0&&(m.flags|=64,gt=$.effects,gt===null?$.effects=[he]:gt.push(he))}else Bt={eventTime:Bt,lane:gt,tag:he.tag,payload:he.payload,callback:he.callback,next:null},vt===null?(Ue=vt=Bt,xe=Ot):vt=vt.next=Bt,te|=gt;if(he=he.next,he===null){if(he=$.shared.pending,he===null)break;gt=he,he=gt.next,gt.next=null,$.lastBaseUpdate=gt,$.shared.pending=null}}while(!0);if(vt===null&&(xe=Ot),$.baseState=xe,$.firstBaseUpdate=Ue,$.lastBaseUpdate=vt,v=$.shared.interleaved,v!==null){$=v;do te|=$.lane,$=$.next;while($!==v)}else F===null&&($.shared.lanes=0);hc|=te,m.lanes=te,m.memoizedState=Ot}}function s2(m,v,w){if(m=v.effects,v.effects=null,m!==null)for(v=0;v<m.length;v++){var C=m[v],$=C.callback;if($!==null){if(C.callback=null,C=w,typeof $!="function")throw Error(n(191,$));$.call(C)}}}var kh={},ga=Hl(kh),xh=Hl(kh),_h=Hl(kh);function fc(m){if(m===kh)throw Error(n(174));return m}function Ab(m,v){switch(xr(_h,v),xr(xh,m),xr(ga,kh),m=v.nodeType,m){case 9:case 11:v=(v=v.documentElement)?v.namespaceURI:Se(null,"");break;default:m=m===8?v.parentNode:v,v=m.namespaceURI||null,m=m.tagName,v=Se(v,m)}Ar(ga),xr(ga,v)}function kf(){Ar(ga),Ar(xh),Ar(_h)}function a2(m){fc(_h.current);var v=fc(ga.current),w=Se(v,m.type);v!==w&&(xr(xh,m),xr(ga,w))}function Mb(m){xh.current===m&&(Ar(ga),Ar(xh))}var Vr=Hl(0);function Pg(m){for(var v=m;v!==null;){if(v.tag===13){var w=v.memoizedState;if(w!==null&&(w=w.dehydrated,w===null||w.data==="$?"||w.data==="$!"))return v}else if(v.tag===19&&v.memoizedProps.revealOrder!==void 0){if((v.flags&128)!==0)return v}else if(v.child!==null){v.child.return=v,v=v.child;continue}if(v===m)break;for(;v.sibling===null;){if(v.return===null||v.return===m)return null;v=v.return}v.sibling.return=v.return,v=v.sibling}return null}var Db=[];function Ib(){for(var m=0;m<Db.length;m++)Db[m]._workInProgressVersionPrimary=null;Db.length=0}var Cg=k.ReactCurrentDispatcher,$b=k.ReactCurrentBatchConfig,dc=0,zr=null,vi=null,Pi=null,Eg=!1,Ph=!1,Ch=0,VW=0;function Hi(){throw Error(n(321))}function Nb(m,v){if(v===null)return!1;for(var w=0;w<v.length&&w<m.length;w++)if(!Bs(m[w],v[w]))return!1;return!0}function Lb(m,v,w,C,$,F){if(dc=F,zr=v,v.memoizedState=null,v.updateQueue=null,v.lanes=0,Cg.current=m===null||m.memoizedState===null?XW:HW,m=w(C,$),Ph){F=0;do{if(Ph=!1,Ch=0,25<=F)throw Error(n(301));F+=1,Pi=vi=null,v.updateQueue=null,Cg.current=YW,m=w(C,$)}while(Ph)}if(Cg.current=Ag,v=vi!==null&&vi.next!==null,dc=0,Pi=vi=zr=null,Eg=!1,v)throw Error(n(300));return m}function jb(){var m=Ch!==0;return Ch=0,m}function va(){var m={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pi===null?zr.memoizedState=Pi=m:Pi=Pi.next=m,Pi}function Os(){if(vi===null){var m=zr.alternate;m=m!==null?m.memoizedState:null}else m=vi.next;var v=Pi===null?zr.memoizedState:Pi.next;if(v!==null)Pi=v,vi=m;else{if(m===null)throw Error(n(310));vi=m,m={memoizedState:vi.memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},Pi===null?zr.memoizedState=Pi=m:Pi=Pi.next=m}return Pi}function Eh(m,v){return typeof v=="function"?v(m):v}function Qb(m){var v=Os(),w=v.queue;if(w===null)throw Error(n(311));w.lastRenderedReducer=m;var C=vi,$=C.baseQueue,F=w.pending;if(F!==null){if($!==null){var te=$.next;$.next=F.next,F.next=te}C.baseQueue=$=F,w.pending=null}if($!==null){F=$.next,C=C.baseState;var he=te=null,xe=null,Ue=F;do{var vt=Ue.lane;if((dc&vt)===vt)xe!==null&&(xe=xe.next={lane:0,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null}),C=Ue.hasEagerState?Ue.eagerState:m(C,Ue.action);else{var Ot={lane:vt,action:Ue.action,hasEagerState:Ue.hasEagerState,eagerState:Ue.eagerState,next:null};xe===null?(he=xe=Ot,te=C):xe=xe.next=Ot,zr.lanes|=vt,hc|=vt}Ue=Ue.next}while(Ue!==null&&Ue!==F);xe===null?te=C:xe.next=he,Bs(C,v.memoizedState)||(To=!0),v.memoizedState=C,v.baseState=te,v.baseQueue=xe,w.lastRenderedState=C}if(m=w.interleaved,m!==null){$=m;do F=$.lane,zr.lanes|=F,hc|=F,$=$.next;while($!==m)}else $===null&&(w.lanes=0);return[v.memoizedState,w.dispatch]}function Fb(m){var v=Os(),w=v.queue;if(w===null)throw Error(n(311));w.lastRenderedReducer=m;var C=w.dispatch,$=w.pending,F=v.memoizedState;if($!==null){w.pending=null;var te=$=$.next;do F=m(F,te.action),te=te.next;while(te!==$);Bs(F,v.memoizedState)||(To=!0),v.memoizedState=F,v.baseQueue===null&&(v.baseState=F),w.lastRenderedState=F}return[F,C]}function l2(){}function u2(m,v){var w=zr,C=Os(),$=v(),F=!Bs(C.memoizedState,$);if(F&&(C.memoizedState=$,To=!0),C=C.queue,Bb(d2.bind(null,w,C,m),[m]),C.getSnapshot!==v||F||Pi!==null&&Pi.memoizedState.tag&1){if(w.flags|=2048,Th(9,f2.bind(null,w,C,$,v),void 0,null),Ci===null)throw Error(n(349));(dc&30)!==0||c2(w,v,$)}return $}function c2(m,v,w){m.flags|=16384,m={getSnapshot:v,value:w},v=zr.updateQueue,v===null?(v={lastEffect:null,stores:null},zr.updateQueue=v,v.stores=[m]):(w=v.stores,w===null?v.stores=[m]:w.push(m))}function f2(m,v,w,C){v.value=w,v.getSnapshot=C,h2(v)&&p2(m)}function d2(m,v,w){return w(function(){h2(v)&&p2(m)})}function h2(m){var v=m.getSnapshot;m=m.value;try{var w=v();return!Bs(m,w)}catch{return!0}}function p2(m){var v=dl(m,1);v!==null&&Ws(v,m,1,-1)}function m2(m){var v=va();return typeof m=="function"&&(m=m()),v.memoizedState=v.baseState=m,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Eh,lastRenderedState:m},v.queue=m,m=m.dispatch=ZW.bind(null,zr,m),[v.memoizedState,m]}function Th(m,v,w,C){return m={tag:m,create:v,destroy:w,deps:C,next:null},v=zr.updateQueue,v===null?(v={lastEffect:null,stores:null},zr.updateQueue=v,v.lastEffect=m.next=m):(w=v.lastEffect,w===null?v.lastEffect=m.next=m:(C=w.next,w.next=m,m.next=C,v.lastEffect=m)),m}function g2(){return Os().memoizedState}function Tg(m,v,w,C){var $=va();zr.flags|=m,$.memoizedState=Th(1|v,w,void 0,C===void 0?null:C)}function Rg(m,v,w,C){var $=Os();C=C===void 0?null:C;var F=void 0;if(vi!==null){var te=vi.memoizedState;if(F=te.destroy,C!==null&&Nb(C,te.deps)){$.memoizedState=Th(v,w,F,C);return}}zr.flags|=m,$.memoizedState=Th(1|v,w,F,C)}function v2(m,v){return Tg(8390656,8,m,v)}function Bb(m,v){return Rg(2048,8,m,v)}function y2(m,v){return Rg(4,2,m,v)}function O2(m,v){return Rg(4,4,m,v)}function b2(m,v){if(typeof v=="function")return m=m(),v(m),function(){v(null)};if(v!=null)return m=m(),v.current=m,function(){v.current=null}}function w2(m,v,w){return w=w!=null?w.concat([m]):null,Rg(4,4,b2.bind(null,v,m),w)}function Ub(){}function S2(m,v){var w=Os();v=v===void 0?null:v;var C=w.memoizedState;return C!==null&&v!==null&&Nb(v,C[1])?C[0]:(w.memoizedState=[m,v],m)}function k2(m,v){var w=Os();v=v===void 0?null:v;var C=w.memoizedState;return C!==null&&v!==null&&Nb(v,C[1])?C[0]:(m=m(),w.memoizedState=[m,v],m)}function x2(m,v,w){return(dc&21)===0?(m.baseState&&(m.baseState=!1,To=!0),m.memoizedState=w):(Bs(w,v)||(w=Mn(),zr.lanes|=w,hc|=w,m.baseState=!0),v)}function zW(m,v){var w=dn;dn=w!==0&&4>w?w:4,m(!0);var C=$b.transition;$b.transition={};try{m(!1),v()}finally{dn=w,$b.transition=C}}function _2(){return Os().memoizedState}function WW(m,v,w){var C=ru(m);if(w={lane:C,action:w,hasEagerState:!1,eagerState:null,next:null},P2(m))C2(v,w);else if(w=r2(m,v,w,C),w!==null){var $=fo();Ws(w,m,C,$),E2(w,v,C)}}function ZW(m,v,w){var C=ru(m),$={lane:C,action:w,hasEagerState:!1,eagerState:null,next:null};if(P2(m))C2(v,$);else{var F=m.alternate;if(m.lanes===0&&(F===null||F.lanes===0)&&(F=v.lastRenderedReducer,F!==null))try{var te=v.lastRenderedState,he=F(te,w);if($.hasEagerState=!0,$.eagerState=he,Bs(he,te)){var xe=v.interleaved;xe===null?($.next=$,Tb(v)):($.next=xe.next,xe.next=$),v.interleaved=$;return}}catch{}finally{}w=r2(m,v,$,C),w!==null&&($=fo(),Ws(w,m,C,$),E2(w,v,C))}}function P2(m){var v=m.alternate;return m===zr||v!==null&&v===zr}function C2(m,v){Ph=Eg=!0;var w=m.pending;w===null?v.next=v:(v.next=w.next,w.next=v),m.pending=v}function E2(m,v,w){if((w&4194240)!==0){var C=v.lanes;C&=m.pendingLanes,w|=C,v.lanes=w,In(m,w)}}var Ag={readContext:ys,useCallback:Hi,useContext:Hi,useEffect:Hi,useImperativeHandle:Hi,useInsertionEffect:Hi,useLayoutEffect:Hi,useMemo:Hi,useReducer:Hi,useRef:Hi,useState:Hi,useDebugValue:Hi,useDeferredValue:Hi,useTransition:Hi,useMutableSource:Hi,useSyncExternalStore:Hi,useId:Hi,unstable_isNewReconciler:!1},XW={readContext:ys,useCallback:function(m,v){return va().memoizedState=[m,v===void 0?null:v],m},useContext:ys,useEffect:v2,useImperativeHandle:function(m,v,w){return w=w!=null?w.concat([m]):null,Tg(4194308,4,b2.bind(null,v,m),w)},useLayoutEffect:function(m,v){return Tg(4194308,4,m,v)},useInsertionEffect:function(m,v){return Tg(4,2,m,v)},useMemo:function(m,v){var w=va();return v=v===void 0?null:v,m=m(),w.memoizedState=[m,v],m},useReducer:function(m,v,w){var C=va();return v=w!==void 0?w(v):v,C.memoizedState=C.baseState=v,m={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:v},C.queue=m,m=m.dispatch=WW.bind(null,zr,m),[C.memoizedState,m]},useRef:function(m){var v=va();return m={current:m},v.memoizedState=m},useState:m2,useDebugValue:Ub,useDeferredValue:function(m){return va().memoizedState=m},useTransition:function(){var m=m2(!1),v=m[0];return m=zW.bind(null,m[1]),va().memoizedState=m,[v,m]},useMutableSource:function(){},useSyncExternalStore:function(m,v,w){var C=zr,$=va();if(Fr){if(w===void 0)throw Error(n(407));w=w()}else{if(w=v(),Ci===null)throw Error(n(349));(dc&30)!==0||c2(C,v,w)}$.memoizedState=w;var F={value:w,getSnapshot:v};return $.queue=F,v2(d2.bind(null,C,F,m),[m]),C.flags|=2048,Th(9,f2.bind(null,C,F,w,v),void 0,null),w},useId:function(){var m=va(),v=Ci.identifierPrefix;if(Fr){var w=fl,C=cl;w=(C&~(1<<32-ot(C)-1)).toString(32)+w,v=":"+v+"R"+w,w=Ch++,0<w&&(v+="H"+w.toString(32)),v+=":"}else w=VW++,v=":"+v+"r"+w.toString(32)+":";return m.memoizedState=v},unstable_isNewReconciler:!1},HW={readContext:ys,useCallback:S2,useContext:ys,useEffect:Bb,useImperativeHandle:w2,useInsertionEffect:y2,useLayoutEffect:O2,useMemo:k2,useReducer:Qb,useRef:g2,useState:function(){return Qb(Eh)},useDebugValue:Ub,useDeferredValue:function(m){var v=Os();return x2(v,vi.memoizedState,m)},useTransition:function(){var m=Qb(Eh)[0],v=Os().memoizedState;return[m,v]},useMutableSource:l2,useSyncExternalStore:u2,useId:_2,unstable_isNewReconciler:!1},YW={readContext:ys,useCallback:S2,useContext:ys,useEffect:Bb,useImperativeHandle:w2,useInsertionEffect:y2,useLayoutEffect:O2,useMemo:k2,useReducer:Fb,useRef:g2,useState:function(){return Fb(Eh)},useDebugValue:Ub,useDeferredValue:function(m){var v=Os();return vi===null?v.memoizedState=m:x2(v,vi.memoizedState,m)},useTransition:function(){var m=Fb(Eh)[0],v=Os().memoizedState;return[m,v]},useMutableSource:l2,useSyncExternalStore:u2,useId:_2,unstable_isNewReconciler:!1};function qs(m,v){if(m&&m.defaultProps){v=U({},v),m=m.defaultProps;for(var w in m)v[w]===void 0&&(v[w]=m[w]);return v}return v}function qb(m,v,w,C){v=m.memoizedState,w=w(C,v),w=w==null?v:U({},v,w),m.memoizedState=w,m.lanes===0&&(m.updateQueue.baseState=w)}var Mg={isMounted:function(m){return(m=m._reactInternals)?Nt(m)===m:!1},enqueueSetState:function(m,v,w){m=m._reactInternals;var C=fo(),$=ru(m),F=hl(C,$);F.payload=v,w!=null&&(F.callback=w),v=Jl(m,F,$),v!==null&&(Ws(v,m,$,C),xg(v,m,$))},enqueueReplaceState:function(m,v,w){m=m._reactInternals;var C=fo(),$=ru(m),F=hl(C,$);F.tag=1,F.payload=v,w!=null&&(F.callback=w),v=Jl(m,F,$),v!==null&&(Ws(v,m,$,C),xg(v,m,$))},enqueueForceUpdate:function(m,v){m=m._reactInternals;var w=fo(),C=ru(m),$=hl(w,C);$.tag=2,v!=null&&($.callback=v),v=Jl(m,$,C),v!==null&&(Ws(v,m,C,w),xg(v,m,C))}};function T2(m,v,w,C,$,F,te){return m=m.stateNode,typeof m.shouldComponentUpdate=="function"?m.shouldComponentUpdate(C,F,te):v.prototype&&v.prototype.isPureReactComponent?!mh(w,C)||!mh($,F):!0}function R2(m,v,w){var C=!1,$=Yl,F=v.contextType;return typeof F=="object"&&F!==null?F=ys(F):($=Eo(v)?ac:Xi.current,C=v.contextTypes,F=(C=C!=null)?gf(m,$):Yl),v=new v(w,F),m.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Mg,m.stateNode=v,v._reactInternals=m,C&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=$,m.__reactInternalMemoizedMaskedChildContext=F),v}function A2(m,v,w,C){m=v.state,typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps(w,C),typeof v.UNSAFE_componentWillReceiveProps=="function"&&v.UNSAFE_componentWillReceiveProps(w,C),v.state!==m&&Mg.enqueueReplaceState(v,v.state,null)}function Vb(m,v,w,C){var $=m.stateNode;$.props=w,$.state=m.memoizedState,$.refs={},Rb(m);var F=v.contextType;typeof F=="object"&&F!==null?$.context=ys(F):(F=Eo(v)?ac:Xi.current,$.context=gf(m,F)),$.state=m.memoizedState,F=v.getDerivedStateFromProps,typeof F=="function"&&(qb(m,v,F,w),$.state=m.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(v=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),v!==$.state&&Mg.enqueueReplaceState($,$.state,null),_g(m,w,$,C),$.state=m.memoizedState),typeof $.componentDidMount=="function"&&(m.flags|=4194308)}function xf(m,v){try{var w="",C=v;do w+=ee(C),C=C.return;while(C);var $=w}catch(F){$=`
39
39
  Error generating stack: `+F.message+`
40
- `+F.stack}return{value:m,source:v,stack:$,digest:null}}function zb(m,v,w){return{value:m,source:null,stack:w??null,digest:v??null}}function Wb(m,v){try{console.error(v.value)}catch(w){setTimeout(function(){throw w})}}var GW=typeof WeakMap=="function"?WeakMap:Map;function M2(m,v,w){w=hl(-1,w),w.tag=3,w.payload={element:null};var C=v.value;return w.callback=function(){Qg||(Qg=!0,aw=C),Wb(m,v)},w}function D2(m,v,w){w=hl(-1,w),w.tag=3;var C=m.type.getDerivedStateFromError;if(typeof C=="function"){var $=v.value;w.payload=function(){return C($)},w.callback=function(){Wb(m,v)}}var F=m.stateNode;return F!==null&&typeof F.componentDidCatch=="function"&&(w.callback=function(){Wb(m,v),typeof C!="function"&&(tu===null?tu=new Set([this]):tu.add(this));var te=v.stack;this.componentDidCatch(v.value,{componentStack:te!==null?te:""})}),w}function I2(m,v,w){var C=m.pingCache;if(C===null){C=m.pingCache=new GW;var $=new Set;C.set(v,$)}else $=C.get(v),$===void 0&&($=new Set,C.set(v,$));$.has(w)||($.add(w),m=fZ.bind(null,m,v,w),v.then(m,m))}function $2(m){do{var v;if((v=m.tag===13)&&(v=m.memoizedState,v=v!==null?v.dehydrated!==null:!0),v)return m;m=m.return}while(m!==null);return null}function N2(m,v,w,C,$){return(m.mode&1)===0?(m===v?m.flags|=65536:(m.flags|=128,w.flags|=131072,w.flags&=-52805,w.tag===1&&(w.alternate===null?w.tag=17:(v=hl(-1,1),v.tag=2,Jl(w,v,1))),w.lanes|=1),m):(m.flags|=65536,m.lanes=$,m)}var KW=k.ReactCurrentOwner,To=!1;function co(m,v,w,C){v.child=m===null?n2(v,null,w,C):bf(v,m.child,w,C)}function L2(m,v,w,C,$){w=w.render;var F=v.ref;return Sf(v,$),C=Lb(m,v,w,C,F,$),w=jb(),m!==null&&!To?(v.updateQueue=m.updateQueue,v.flags&=-2053,m.lanes&=~$,pl(m,v,$)):(Fr&&w&&bb(v),v.flags|=1,co(m,v,C,$),v.child)}function j2(m,v,w,C,$){if(m===null){var F=w.type;return typeof F=="function"&&!pw(F)&&F.defaultProps===void 0&&w.compare===null&&w.defaultProps===void 0?(v.tag=15,v.type=F,Q2(m,v,F,C,$)):(m=zg(w.type,null,C,v,v.mode,$),m.ref=v.ref,m.return=v,v.child=m)}if(F=m.child,(m.lanes&$)===0){var te=F.memoizedProps;if(w=w.compare,w=w!==null?w:mh,w(te,C)&&m.ref===v.ref)return pl(m,v,$)}return v.flags|=1,m=ou(F,C),m.ref=v.ref,m.return=v,v.child=m}function Q2(m,v,w,C,$){if(m!==null){var F=m.memoizedProps;if(mh(F,C)&&m.ref===v.ref)if(To=!1,v.pendingProps=C=F,(m.lanes&$)!==0)(m.flags&131072)!==0&&(To=!0);else return v.lanes=m.lanes,pl(m,v,$)}return Zb(m,v,w,C,$)}function F2(m,v,w){var C=v.pendingProps,$=C.children,F=m!==null?m.memoizedState:null;if(C.mode==="hidden")if((v.mode&1)===0)v.memoizedState={baseLanes:0,cachePool:null,transitions:null},xr(Pf,Jo),Jo|=w;else{if((w&1073741824)===0)return m=F!==null?F.baseLanes|w:w,v.lanes=v.childLanes=1073741824,v.memoizedState={baseLanes:m,cachePool:null,transitions:null},v.updateQueue=null,xr(Pf,Jo),Jo|=m,null;v.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=F!==null?F.baseLanes:w,xr(Pf,Jo),Jo|=C}else F!==null?(C=F.baseLanes|w,v.memoizedState=null):C=w,xr(Pf,Jo),Jo|=C;return co(m,v,$,w),v.child}function B2(m,v){var w=v.ref;(m===null&&w!==null||m!==null&&m.ref!==w)&&(v.flags|=512,v.flags|=2097152)}function Zb(m,v,w,C,$){var F=Eo(w)?ac:Xi.current;return F=gf(v,F),Sf(v,$),w=Lb(m,v,w,C,F,$),C=jb(),m!==null&&!To?(v.updateQueue=m.updateQueue,v.flags&=-2053,m.lanes&=~$,pl(m,v,$)):(Fr&&C&&bb(v),v.flags|=1,co(m,v,w,$),v.child)}function U2(m,v,w,C,$){if(Eo(w)){var F=!0;gg(v)}else F=!1;if(Sf(v,$),v.stateNode===null)Ig(m,v),R2(v,w,C),Vb(v,w,C,$),C=!0;else if(m===null){var te=v.stateNode,he=v.memoizedProps;te.props=he;var xe=te.context,Ue=w.contextType;typeof Ue=="object"&&Ue!==null?Ue=ys(Ue):(Ue=Eo(w)?ac:Xi.current,Ue=gf(v,Ue));var vt=w.getDerivedStateFromProps,Ot=typeof vt=="function"||typeof te.getSnapshotBeforeUpdate=="function";Ot||typeof te.UNSAFE_componentWillReceiveProps!="function"&&typeof te.componentWillReceiveProps!="function"||(he!==C||xe!==Ue)&&A2(v,te,C,Ue),Kl=!1;var gt=v.memoizedState;te.state=gt,_g(v,C,te,$),xe=v.memoizedState,he!==C||gt!==xe||Co.current||Kl?(typeof vt=="function"&&(qb(v,w,vt,C),xe=v.memoizedState),(he=Kl||T2(v,w,he,C,gt,xe,Ue))?(Ot||typeof te.UNSAFE_componentWillMount!="function"&&typeof te.componentWillMount!="function"||(typeof te.componentWillMount=="function"&&te.componentWillMount(),typeof te.UNSAFE_componentWillMount=="function"&&te.UNSAFE_componentWillMount()),typeof te.componentDidMount=="function"&&(v.flags|=4194308)):(typeof te.componentDidMount=="function"&&(v.flags|=4194308),v.memoizedProps=C,v.memoizedState=xe),te.props=C,te.state=xe,te.context=Ue,C=he):(typeof te.componentDidMount=="function"&&(v.flags|=4194308),C=!1)}else{te=v.stateNode,i2(m,v),he=v.memoizedProps,Ue=v.type===v.elementType?he:qs(v.type,he),te.props=Ue,Ot=v.pendingProps,gt=te.context,xe=w.contextType,typeof xe=="object"&&xe!==null?xe=ys(xe):(xe=Eo(w)?ac:Xi.current,xe=gf(v,xe));var Bt=w.getDerivedStateFromProps;(vt=typeof Bt=="function"||typeof te.getSnapshotBeforeUpdate=="function")||typeof te.UNSAFE_componentWillReceiveProps!="function"&&typeof te.componentWillReceiveProps!="function"||(he!==Ot||gt!==xe)&&A2(v,te,C,xe),Kl=!1,gt=v.memoizedState,te.state=gt,_g(v,C,te,$);var Zt=v.memoizedState;he!==Ot||gt!==Zt||Co.current||Kl?(typeof Bt=="function"&&(qb(v,w,Bt,C),Zt=v.memoizedState),(Ue=Kl||T2(v,w,Ue,C,gt,Zt,xe)||!1)?(vt||typeof te.UNSAFE_componentWillUpdate!="function"&&typeof te.componentWillUpdate!="function"||(typeof te.componentWillUpdate=="function"&&te.componentWillUpdate(C,Zt,xe),typeof te.UNSAFE_componentWillUpdate=="function"&&te.UNSAFE_componentWillUpdate(C,Zt,xe)),typeof te.componentDidUpdate=="function"&&(v.flags|=4),typeof te.getSnapshotBeforeUpdate=="function"&&(v.flags|=1024)):(typeof te.componentDidUpdate!="function"||he===m.memoizedProps&&gt===m.memoizedState||(v.flags|=4),typeof te.getSnapshotBeforeUpdate!="function"||he===m.memoizedProps&&gt===m.memoizedState||(v.flags|=1024),v.memoizedProps=C,v.memoizedState=Zt),te.props=C,te.state=Zt,te.context=xe,C=Ue):(typeof te.componentDidUpdate!="function"||he===m.memoizedProps&&gt===m.memoizedState||(v.flags|=4),typeof te.getSnapshotBeforeUpdate!="function"||he===m.memoizedProps&&gt===m.memoizedState||(v.flags|=1024),C=!1)}return Xb(m,v,w,C,F,$)}function Xb(m,v,w,C,$,F){B2(m,v);var te=(v.flags&128)!==0;if(!C&&!te)return $&&ZR(v,w,!1),pl(m,v,F);C=v.stateNode,KW.current=v;var he=te&&typeof w.getDerivedStateFromError!="function"?null:C.render();return v.flags|=1,m!==null&&te?(v.child=bf(v,m.child,null,F),v.child=bf(v,null,he,F)):co(m,v,he,F),v.memoizedState=C.state,$&&ZR(v,w,!0),v.child}function q2(m){var v=m.stateNode;v.pendingContext?zR(m,v.pendingContext,v.pendingContext!==v.context):v.context&&zR(m,v.context,!1),Ab(m,v.containerInfo)}function V2(m,v,w,C,$){return Of(),xb($),v.flags|=256,co(m,v,w,C),v.child}var Hb={dehydrated:null,treeContext:null,retryLane:0};function Yb(m){return{baseLanes:m,cachePool:null,transitions:null}}function z2(m,v,w){var C=v.pendingProps,$=Vr.current,F=!1,te=(v.flags&128)!==0,he;if((he=te)||(he=m!==null&&m.memoizedState===null?!1:($&2)!==0),he?(F=!0,v.flags&=-129):(m===null||m.memoizedState!==null)&&($|=1),xr(Vr,$&1),m===null)return kb(v),m=v.memoizedState,m!==null&&(m=m.dehydrated,m!==null)?((v.mode&1)===0?v.lanes=1:m.data==="$!"?v.lanes=8:v.lanes=1073741824,null):(te=C.children,m=C.fallback,F?(C=v.mode,F=v.child,te={mode:"hidden",children:te},(C&1)===0&&F!==null?(F.childLanes=0,F.pendingProps=te):F=Wg(te,C,0,null),m=vc(m,C,w,null),F.return=v,m.return=v,F.sibling=m,v.child=F,v.child.memoizedState=Yb(w),v.memoizedState=Hb,m):Gb(v,te));if($=m.memoizedState,$!==null&&(he=$.dehydrated,he!==null))return JW(m,v,te,C,he,$,w);if(F){F=C.fallback,te=v.mode,$=m.child,he=$.sibling;var xe={mode:"hidden",children:C.children};return(te&1)===0&&v.child!==$?(C=v.child,C.childLanes=0,C.pendingProps=xe,v.deletions=null):(C=ou($,xe),C.subtreeFlags=$.subtreeFlags&14680064),he!==null?F=ou(he,F):(F=vc(F,te,w,null),F.flags|=2),F.return=v,C.return=v,C.sibling=F,v.child=C,C=F,F=v.child,te=m.child.memoizedState,te=te===null?Yb(w):{baseLanes:te.baseLanes|w,cachePool:null,transitions:te.transitions},F.memoizedState=te,F.childLanes=m.childLanes&~w,v.memoizedState=Hb,C}return F=m.child,m=F.sibling,C=ou(F,{mode:"visible",children:C.children}),(v.mode&1)===0&&(C.lanes=w),C.return=v,C.sibling=null,m!==null&&(w=v.deletions,w===null?(v.deletions=[m],v.flags|=16):w.push(m)),v.child=C,v.memoizedState=null,C}function Gb(m,v){return v=Wg({mode:"visible",children:v},m.mode,0,null),v.return=m,m.child=v}function Dg(m,v,w,C){return C!==null&&xb(C),bf(v,m.child,null,w),m=Gb(v,v.pendingProps.children),m.flags|=2,v.memoizedState=null,m}function JW(m,v,w,C,$,F,te){if(w)return v.flags&256?(v.flags&=-257,C=zb(Error(n(422))),Dg(m,v,te,C)):v.memoizedState!==null?(v.child=m.child,v.flags|=128,null):(F=C.fallback,$=v.mode,C=Wg({mode:"visible",children:C.children},$,0,null),F=vc(F,$,te,null),F.flags|=2,C.return=v,F.return=v,C.sibling=F,v.child=C,(v.mode&1)!==0&&bf(v,m.child,null,te),v.child.memoizedState=Yb(te),v.memoizedState=Hb,F);if((v.mode&1)===0)return Dg(m,v,te,null);if($.data==="$!"){if(C=$.nextSibling&&$.nextSibling.dataset,C)var he=C.dgst;return C=he,F=Error(n(419)),C=zb(F,C,void 0),Dg(m,v,te,C)}if(he=(te&m.childLanes)!==0,To||he){if(C=Ci,C!==null){switch(te&-te){case 4:$=2;break;case 16:$=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:$=32;break;case 536870912:$=268435456;break;default:$=0}$=($&(C.suspendedLanes|te))!==0?0:$,$!==0&&$!==F.retryLane&&(F.retryLane=$,dl(m,$),Ws(C,m,$,-1))}return hw(),C=zb(Error(n(421))),Dg(m,v,te,C)}return $.data==="$?"?(v.flags|=128,v.child=m.child,v=dZ.bind(null,m),$._reactRetry=v,null):(m=F.treeContext,Ko=Xl($.nextSibling),Go=v,Fr=!0,Us=null,m!==null&&(gs[vs++]=cl,gs[vs++]=fl,gs[vs++]=lc,cl=m.id,fl=m.overflow,lc=v),v=Gb(v,C.children),v.flags|=4096,v)}function W2(m,v,w){m.lanes|=v;var C=m.alternate;C!==null&&(C.lanes|=v),Eb(m.return,v,w)}function Kb(m,v,w,C,$){var F=m.memoizedState;F===null?m.memoizedState={isBackwards:v,rendering:null,renderingStartTime:0,last:C,tail:w,tailMode:$}:(F.isBackwards=v,F.rendering=null,F.renderingStartTime=0,F.last=C,F.tail=w,F.tailMode=$)}function Z2(m,v,w){var C=v.pendingProps,$=C.revealOrder,F=C.tail;if(co(m,v,C.children,w),C=Vr.current,(C&2)!==0)C=C&1|2,v.flags|=128;else{if(m!==null&&(m.flags&128)!==0)e:for(m=v.child;m!==null;){if(m.tag===13)m.memoizedState!==null&&W2(m,w,v);else if(m.tag===19)W2(m,w,v);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===v)break e;for(;m.sibling===null;){if(m.return===null||m.return===v)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}C&=1}if(xr(Vr,C),(v.mode&1)===0)v.memoizedState=null;else switch($){case"forwards":for(w=v.child,$=null;w!==null;)m=w.alternate,m!==null&&Pg(m)===null&&($=w),w=w.sibling;w=$,w===null?($=v.child,v.child=null):($=w.sibling,w.sibling=null),Kb(v,!1,$,w,F);break;case"backwards":for(w=null,$=v.child,v.child=null;$!==null;){if(m=$.alternate,m!==null&&Pg(m)===null){v.child=$;break}m=$.sibling,$.sibling=w,w=$,$=m}Kb(v,!0,w,null,F);break;case"together":Kb(v,!1,null,null,void 0);break;default:v.memoizedState=null}return v.child}function Ig(m,v){(v.mode&1)===0&&m!==null&&(m.alternate=null,v.alternate=null,v.flags|=2)}function pl(m,v,w){if(m!==null&&(v.dependencies=m.dependencies),hc|=v.lanes,(w&v.childLanes)===0)return null;if(m!==null&&v.child!==m.child)throw Error(n(153));if(v.child!==null){for(m=v.child,w=ou(m,m.pendingProps),v.child=w,w.return=v;m.sibling!==null;)m=m.sibling,w=w.sibling=ou(m,m.pendingProps),w.return=v;w.sibling=null}return v.child}function eZ(m,v,w){switch(v.tag){case 3:q2(v),Of();break;case 5:a2(v);break;case 1:Eo(v.type)&&gg(v);break;case 4:Ab(v,v.stateNode.containerInfo);break;case 10:var C=v.type._context,$=v.memoizedProps.value;xr(Sg,C._currentValue),C._currentValue=$;break;case 13:if(C=v.memoizedState,C!==null)return C.dehydrated!==null?(xr(Vr,Vr.current&1),v.flags|=128,null):(w&v.child.childLanes)!==0?z2(m,v,w):(xr(Vr,Vr.current&1),m=pl(m,v,w),m!==null?m.sibling:null);xr(Vr,Vr.current&1);break;case 19:if(C=(w&v.childLanes)!==0,(m.flags&128)!==0){if(C)return Z2(m,v,w);v.flags|=128}if($=v.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),xr(Vr,Vr.current),C)break;return null;case 22:case 23:return v.lanes=0,F2(m,v,w)}return pl(m,v,w)}var X2,Jb,H2,Y2;X2=function(m,v){for(var w=v.child;w!==null;){if(w.tag===5||w.tag===6)m.appendChild(w.stateNode);else if(w.tag!==4&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===v)break;for(;w.sibling===null;){if(w.return===null||w.return===v)return;w=w.return}w.sibling.return=w.return,w=w.sibling}},Jb=function(){},H2=function(m,v,w,C){var $=m.memoizedProps;if($!==C){m=v.stateNode,fc(ga.current);var F=null;switch(w){case"input":$=Q(m,$),C=Q(m,C),F=[];break;case"select":$=U({},$,{value:void 0}),C=U({},C,{value:void 0}),F=[];break;case"textarea":$=Pe(m,$),C=Pe(m,C),F=[];break;default:typeof $.onClick!="function"&&typeof C.onClick=="function"&&(m.onclick=hg)}pt(w,C);var te;w=null;for(Ue in $)if(!C.hasOwnProperty(Ue)&&$.hasOwnProperty(Ue)&&$[Ue]!=null)if(Ue==="style"){var he=$[Ue];for(te in he)he.hasOwnProperty(te)&&(w||(w={}),w[te]="")}else Ue!=="dangerouslySetInnerHTML"&&Ue!=="children"&&Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&Ue!=="autoFocus"&&(i.hasOwnProperty(Ue)?F||(F=[]):(F=F||[]).push(Ue,null));for(Ue in C){var xe=C[Ue];if(he=$?.[Ue],C.hasOwnProperty(Ue)&&xe!==he&&(xe!=null||he!=null))if(Ue==="style")if(he){for(te in he)!he.hasOwnProperty(te)||xe&&xe.hasOwnProperty(te)||(w||(w={}),w[te]="");for(te in xe)xe.hasOwnProperty(te)&&he[te]!==xe[te]&&(w||(w={}),w[te]=xe[te])}else w||(F||(F=[]),F.push(Ue,w)),w=xe;else Ue==="dangerouslySetInnerHTML"?(xe=xe?xe.__html:void 0,he=he?he.__html:void 0,xe!=null&&he!==xe&&(F=F||[]).push(Ue,xe)):Ue==="children"?typeof xe!="string"&&typeof xe!="number"||(F=F||[]).push(Ue,""+xe):Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&(i.hasOwnProperty(Ue)?(xe!=null&&Ue==="onScroll"&&Rr("scroll",m),F||he===xe||(F=[])):(F=F||[]).push(Ue,xe))}w&&(F=F||[]).push("style",w);var Ue=F;(v.updateQueue=Ue)&&(v.flags|=4)}},Y2=function(m,v,w,C){w!==C&&(v.flags|=4)};function Rh(m,v){if(!Fr)switch(m.tailMode){case"hidden":v=m.tail;for(var w=null;v!==null;)v.alternate!==null&&(w=v),v=v.sibling;w===null?m.tail=null:w.sibling=null;break;case"collapsed":w=m.tail;for(var C=null;w!==null;)w.alternate!==null&&(C=w),w=w.sibling;C===null?v||m.tail===null?m.tail=null:m.tail.sibling=null:C.sibling=null}}function Yi(m){var v=m.alternate!==null&&m.alternate.child===m.child,w=0,C=0;if(v)for(var $=m.child;$!==null;)w|=$.lanes|$.childLanes,C|=$.subtreeFlags&14680064,C|=$.flags&14680064,$.return=m,$=$.sibling;else for($=m.child;$!==null;)w|=$.lanes|$.childLanes,C|=$.subtreeFlags,C|=$.flags,$.return=m,$=$.sibling;return m.subtreeFlags|=C,m.childLanes=w,v}function tZ(m,v,w){var C=v.pendingProps;switch(wb(v),v.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yi(v),null;case 1:return Eo(v.type)&&mg(),Yi(v),null;case 3:return C=v.stateNode,kf(),Ar(Co),Ar(Xi),Ib(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(m===null||m.child===null)&&(bg(v)?v.flags|=4:m===null||m.memoizedState.isDehydrated&&(v.flags&256)===0||(v.flags|=1024,Us!==null&&(cw(Us),Us=null))),Jb(m,v),Yi(v),null;case 5:Mb(v);var $=fc(_h.current);if(w=v.type,m!==null&&v.stateNode!=null)H2(m,v,w,C,$),m.ref!==v.ref&&(v.flags|=512,v.flags|=2097152);else{if(!C){if(v.stateNode===null)throw Error(n(166));return Yi(v),null}if(m=fc(ga.current),bg(v)){C=v.stateNode,w=v.type;var F=v.memoizedProps;switch(C[ma]=v,C[bh]=F,m=(v.mode&1)!==0,w){case"dialog":Rr("cancel",C),Rr("close",C);break;case"iframe":case"object":case"embed":Rr("load",C);break;case"video":case"audio":for($=0;$<vh.length;$++)Rr(vh[$],C);break;case"source":Rr("error",C);break;case"img":case"image":case"link":Rr("error",C),Rr("load",C);break;case"details":Rr("toggle",C);break;case"input":ve(C,F),Rr("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!F.multiple},Rr("invalid",C);break;case"textarea":V(C,F),Rr("invalid",C)}pt(w,F),$=null;for(var te in F)if(F.hasOwnProperty(te)){var he=F[te];te==="children"?typeof he=="string"?C.textContent!==he&&(F.suppressHydrationWarning!==!0&&dg(C.textContent,he,m),$=["children",he]):typeof he=="number"&&C.textContent!==""+he&&(F.suppressHydrationWarning!==!0&&dg(C.textContent,he,m),$=["children",""+he]):i.hasOwnProperty(te)&&he!=null&&te==="onScroll"&&Rr("scroll",C)}switch(w){case"input":we(C),oe(C,F,!0);break;case"textarea":we(C),_e(C);break;case"select":case"option":break;default:typeof F.onClick=="function"&&(C.onclick=hg)}C=$,v.updateQueue=C,C!==null&&(v.flags|=4)}else{te=$.nodeType===9?$:$.ownerDocument,m==="http://www.w3.org/1999/xhtml"&&(m=de(w)),m==="http://www.w3.org/1999/xhtml"?w==="script"?(m=te.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild)):typeof C.is=="string"?m=te.createElement(w,{is:C.is}):(m=te.createElement(w),w==="select"&&(te=m,C.multiple?te.multiple=!0:C.size&&(te.size=C.size))):m=te.createElementNS(m,w),m[ma]=v,m[bh]=C,X2(m,v,!1,!1),v.stateNode=m;e:{switch(te=It(w,C),w){case"dialog":Rr("cancel",m),Rr("close",m),$=C;break;case"iframe":case"object":case"embed":Rr("load",m),$=C;break;case"video":case"audio":for($=0;$<vh.length;$++)Rr(vh[$],m);$=C;break;case"source":Rr("error",m),$=C;break;case"img":case"image":case"link":Rr("error",m),Rr("load",m),$=C;break;case"details":Rr("toggle",m),$=C;break;case"input":ve(m,C),$=Q(m,C),Rr("invalid",m);break;case"option":$=C;break;case"select":m._wrapperState={wasMultiple:!!C.multiple},$=U({},C,{value:void 0}),Rr("invalid",m);break;case"textarea":V(m,C),$=Pe(m,C),Rr("invalid",m);break;default:$=C}pt(w,$),he=$;for(F in he)if(he.hasOwnProperty(F)){var xe=he[F];F==="style"?dt(m,xe):F==="dangerouslySetInnerHTML"?(xe=xe?xe.__html:void 0,xe!=null&&et(m,xe)):F==="children"?typeof xe=="string"?(w!=="textarea"||xe!=="")&&st(m,xe):typeof xe=="number"&&st(m,""+xe):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(i.hasOwnProperty(F)?xe!=null&&F==="onScroll"&&Rr("scroll",m):xe!=null&&S(m,F,xe,te))}switch(w){case"input":we(m),oe(m,C,!1);break;case"textarea":we(m),_e(m);break;case"option":C.value!=null&&m.setAttribute("value",""+X(C.value));break;case"select":m.multiple=!!C.multiple,F=C.value,F!=null?Fe(m,!!C.multiple,F,!1):C.defaultValue!=null&&Fe(m,!!C.multiple,C.defaultValue,!0);break;default:typeof $.onClick=="function"&&(m.onclick=hg)}switch(w){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(v.flags|=4)}v.ref!==null&&(v.flags|=512,v.flags|=2097152)}return Yi(v),null;case 6:if(m&&v.stateNode!=null)Y2(m,v,m.memoizedProps,C);else{if(typeof C!="string"&&v.stateNode===null)throw Error(n(166));if(w=fc(_h.current),fc(ga.current),bg(v)){if(C=v.stateNode,w=v.memoizedProps,C[ma]=v,(F=C.nodeValue!==w)&&(m=Go,m!==null))switch(m.tag){case 3:dg(C.nodeValue,w,(m.mode&1)!==0);break;case 5:m.memoizedProps.suppressHydrationWarning!==!0&&dg(C.nodeValue,w,(m.mode&1)!==0)}F&&(v.flags|=4)}else C=(w.nodeType===9?w:w.ownerDocument).createTextNode(C),C[ma]=v,v.stateNode=C}return Yi(v),null;case 13:if(Ar(Vr),C=v.memoizedState,m===null||m.memoizedState!==null&&m.memoizedState.dehydrated!==null){if(Fr&&Ko!==null&&(v.mode&1)!==0&&(v.flags&128)===0)JR(),Of(),v.flags|=98560,F=!1;else if(F=bg(v),C!==null&&C.dehydrated!==null){if(m===null){if(!F)throw Error(n(318));if(F=v.memoizedState,F=F!==null?F.dehydrated:null,!F)throw Error(n(317));F[ma]=v}else Of(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;Yi(v),F=!1}else Us!==null&&(cw(Us),Us=null),F=!0;if(!F)return v.flags&65536?v:null}return(v.flags&128)!==0?(v.lanes=w,v):(C=C!==null,C!==(m!==null&&m.memoizedState!==null)&&C&&(v.child.flags|=8192,(v.mode&1)!==0&&(m===null||(Vr.current&1)!==0?yi===0&&(yi=3):hw())),v.updateQueue!==null&&(v.flags|=4),Yi(v),null);case 4:return kf(),Jb(m,v),m===null&&yh(v.stateNode.containerInfo),Yi(v),null;case 10:return Cb(v.type._context),Yi(v),null;case 17:return Eo(v.type)&&mg(),Yi(v),null;case 19:if(Ar(Vr),F=v.memoizedState,F===null)return Yi(v),null;if(C=(v.flags&128)!==0,te=F.rendering,te===null)if(C)Rh(F,!1);else{if(yi!==0||m!==null&&(m.flags&128)!==0)for(m=v.child;m!==null;){if(te=Pg(m),te!==null){for(v.flags|=128,Rh(F,!1),C=te.updateQueue,C!==null&&(v.updateQueue=C,v.flags|=4),v.subtreeFlags=0,C=w,w=v.child;w!==null;)F=w,m=C,F.flags&=14680066,te=F.alternate,te===null?(F.childLanes=0,F.lanes=m,F.child=null,F.subtreeFlags=0,F.memoizedProps=null,F.memoizedState=null,F.updateQueue=null,F.dependencies=null,F.stateNode=null):(F.childLanes=te.childLanes,F.lanes=te.lanes,F.child=te.child,F.subtreeFlags=0,F.deletions=null,F.memoizedProps=te.memoizedProps,F.memoizedState=te.memoizedState,F.updateQueue=te.updateQueue,F.type=te.type,m=te.dependencies,F.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext}),w=w.sibling;return xr(Vr,Vr.current&1|2),v.child}m=m.sibling}F.tail!==null&&wn()>Cf&&(v.flags|=128,C=!0,Rh(F,!1),v.lanes=4194304)}else{if(!C)if(m=Pg(te),m!==null){if(v.flags|=128,C=!0,w=m.updateQueue,w!==null&&(v.updateQueue=w,v.flags|=4),Rh(F,!0),F.tail===null&&F.tailMode==="hidden"&&!te.alternate&&!Fr)return Yi(v),null}else 2*wn()-F.renderingStartTime>Cf&&w!==1073741824&&(v.flags|=128,C=!0,Rh(F,!1),v.lanes=4194304);F.isBackwards?(te.sibling=v.child,v.child=te):(w=F.last,w!==null?w.sibling=te:v.child=te,F.last=te)}return F.tail!==null?(v=F.tail,F.rendering=v,F.tail=v.sibling,F.renderingStartTime=wn(),v.sibling=null,w=Vr.current,xr(Vr,C?w&1|2:w&1),v):(Yi(v),null);case 22:case 23:return dw(),C=v.memoizedState!==null,m!==null&&m.memoizedState!==null!==C&&(v.flags|=8192),C&&(v.mode&1)!==0?(Jo&1073741824)!==0&&(Yi(v),v.subtreeFlags&6&&(v.flags|=8192)):Yi(v),null;case 24:return null;case 25:return null}throw Error(n(156,v.tag))}function nZ(m,v){switch(wb(v),v.tag){case 1:return Eo(v.type)&&mg(),m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 3:return kf(),Ar(Co),Ar(Xi),Ib(),m=v.flags,(m&65536)!==0&&(m&128)===0?(v.flags=m&-65537|128,v):null;case 5:return Mb(v),null;case 13:if(Ar(Vr),m=v.memoizedState,m!==null&&m.dehydrated!==null){if(v.alternate===null)throw Error(n(340));Of()}return m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 19:return Ar(Vr),null;case 4:return kf(),null;case 10:return Cb(v.type._context),null;case 22:case 23:return dw(),null;case 24:return null;default:return null}}var $g=!1,Gi=!1,rZ=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function _f(m,v){var w=m.ref;if(w!==null)if(typeof w=="function")try{w(null)}catch(C){Yr(m,v,C)}else w.current=null}function ew(m,v,w){try{w()}catch(C){Yr(m,v,C)}}var G2=!1;function iZ(m,v){if(db=nl,m=TR(),ib(m)){if("selectionStart"in m)var w={start:m.selectionStart,end:m.selectionEnd};else e:{w=(w=m.ownerDocument)&&w.defaultView||window;var C=w.getSelection&&w.getSelection();if(C&&C.rangeCount!==0){w=C.anchorNode;var $=C.anchorOffset,F=C.focusNode;C=C.focusOffset;try{w.nodeType,F.nodeType}catch{w=null;break e}var te=0,he=-1,xe=-1,Ue=0,vt=0,Ot=m,gt=null;t:for(;;){for(var Bt;Ot!==w||$!==0&&Ot.nodeType!==3||(he=te+$),Ot!==F||C!==0&&Ot.nodeType!==3||(xe=te+C),Ot.nodeType===3&&(te+=Ot.nodeValue.length),(Bt=Ot.firstChild)!==null;)gt=Ot,Ot=Bt;for(;;){if(Ot===m)break t;if(gt===w&&++Ue===$&&(he=te),gt===F&&++vt===C&&(xe=te),(Bt=Ot.nextSibling)!==null)break;Ot=gt,gt=Ot.parentNode}Ot=Bt}w=he===-1||xe===-1?null:{start:he,end:xe}}else w=null}w=w||{start:0,end:0}}else w=null;for(hb={focusedElem:m,selectionRange:w},nl=!1,Wt=v;Wt!==null;)if(v=Wt,m=v.child,(v.subtreeFlags&1028)!==0&&m!==null)m.return=v,Wt=m;else for(;Wt!==null;){v=Wt;try{var Zt=v.alternate;if((v.flags&1024)!==0)switch(v.tag){case 0:case 11:case 15:break;case 1:if(Zt!==null){var en=Zt.memoizedProps,ti=Zt.memoizedState,Ie=v.stateNode,Ce=Ie.getSnapshotBeforeUpdate(v.elementType===v.type?en:qs(v.type,en),ti);Ie.__reactInternalSnapshotBeforeUpdate=Ce}break;case 3:var je=v.stateNode.containerInfo;je.nodeType===1?je.textContent="":je.nodeType===9&&je.documentElement&&je.removeChild(je.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(xt){Yr(v,v.return,xt)}if(m=v.sibling,m!==null){m.return=v.return,Wt=m;break}Wt=v.return}return Zt=G2,G2=!1,Zt}function Ah(m,v,w){var C=v.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var $=C=C.next;do{if(($.tag&m)===m){var F=$.destroy;$.destroy=void 0,F!==void 0&&ew(v,w,F)}$=$.next}while($!==C)}}function Ng(m,v){if(v=v.updateQueue,v=v!==null?v.lastEffect:null,v!==null){var w=v=v.next;do{if((w.tag&m)===m){var C=w.create;w.destroy=C()}w=w.next}while(w!==v)}}function tw(m){var v=m.ref;if(v!==null){var w=m.stateNode;switch(m.tag){case 5:m=w;break;default:m=w}typeof v=="function"?v(m):v.current=m}}function K2(m){var v=m.alternate;v!==null&&(m.alternate=null,K2(v)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(v=m.stateNode,v!==null&&(delete v[ma],delete v[bh],delete v[vb],delete v[FW],delete v[BW])),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function J2(m){return m.tag===5||m.tag===3||m.tag===4}function eA(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||J2(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function nw(m,v,w){var C=m.tag;if(C===5||C===6)m=m.stateNode,v?w.nodeType===8?w.parentNode.insertBefore(m,v):w.insertBefore(m,v):(w.nodeType===8?(v=w.parentNode,v.insertBefore(m,w)):(v=w,v.appendChild(m)),w=w._reactRootContainer,w!=null||v.onclick!==null||(v.onclick=hg));else if(C!==4&&(m=m.child,m!==null))for(nw(m,v,w),m=m.sibling;m!==null;)nw(m,v,w),m=m.sibling}function rw(m,v,w){var C=m.tag;if(C===5||C===6)m=m.stateNode,v?w.insertBefore(m,v):w.appendChild(m);else if(C!==4&&(m=m.child,m!==null))for(rw(m,v,w),m=m.sibling;m!==null;)rw(m,v,w),m=m.sibling}var Ni=null,Vs=!1;function eu(m,v,w){for(w=w.child;w!==null;)tA(m,v,w),w=w.sibling}function tA(m,v,w){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(Ae,w)}catch{}switch(w.tag){case 5:Gi||_f(w,v);case 6:var C=Ni,$=Vs;Ni=null,eu(m,v,w),Ni=C,Vs=$,Ni!==null&&(Vs?(m=Ni,w=w.stateNode,m.nodeType===8?m.parentNode.removeChild(w):m.removeChild(w)):Ni.removeChild(w.stateNode));break;case 18:Ni!==null&&(Vs?(m=Ni,w=w.stateNode,m.nodeType===8?gb(m.parentNode,w):m.nodeType===1&&gb(m,w),Ls(m)):gb(Ni,w.stateNode));break;case 4:C=Ni,$=Vs,Ni=w.stateNode.containerInfo,Vs=!0,eu(m,v,w),Ni=C,Vs=$;break;case 0:case 11:case 14:case 15:if(!Gi&&(C=w.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){$=C=C.next;do{var F=$,te=F.destroy;F=F.tag,te!==void 0&&((F&2)!==0||(F&4)!==0)&&ew(w,v,te),$=$.next}while($!==C)}eu(m,v,w);break;case 1:if(!Gi&&(_f(w,v),C=w.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=w.memoizedProps,C.state=w.memoizedState,C.componentWillUnmount()}catch(he){Yr(w,v,he)}eu(m,v,w);break;case 21:eu(m,v,w);break;case 22:w.mode&1?(Gi=(C=Gi)||w.memoizedState!==null,eu(m,v,w),Gi=C):eu(m,v,w);break;default:eu(m,v,w)}}function nA(m){var v=m.updateQueue;if(v!==null){m.updateQueue=null;var w=m.stateNode;w===null&&(w=m.stateNode=new rZ),v.forEach(function(C){var $=hZ.bind(null,m,C);w.has(C)||(w.add(C),C.then($,$))})}}function zs(m,v){var w=v.deletions;if(w!==null)for(var C=0;C<w.length;C++){var $=w[C];try{var F=m,te=v,he=te;e:for(;he!==null;){switch(he.tag){case 5:Ni=he.stateNode,Vs=!1;break e;case 3:Ni=he.stateNode.containerInfo,Vs=!0;break e;case 4:Ni=he.stateNode.containerInfo,Vs=!0;break e}he=he.return}if(Ni===null)throw Error(n(160));tA(F,te,$),Ni=null,Vs=!1;var xe=$.alternate;xe!==null&&(xe.return=null),$.return=null}catch(Ue){Yr($,v,Ue)}}if(v.subtreeFlags&12854)for(v=v.child;v!==null;)rA(v,m),v=v.sibling}function rA(m,v){var w=m.alternate,C=m.flags;switch(m.tag){case 0:case 11:case 14:case 15:if(zs(v,m),ya(m),C&4){try{Ah(3,m,m.return),Ng(3,m)}catch(en){Yr(m,m.return,en)}try{Ah(5,m,m.return)}catch(en){Yr(m,m.return,en)}}break;case 1:zs(v,m),ya(m),C&512&&w!==null&&_f(w,w.return);break;case 5:if(zs(v,m),ya(m),C&512&&w!==null&&_f(w,w.return),m.flags&32){var $=m.stateNode;try{st($,"")}catch(en){Yr(m,m.return,en)}}if(C&4&&($=m.stateNode,$!=null)){var F=m.memoizedProps,te=w!==null?w.memoizedProps:F,he=m.type,xe=m.updateQueue;if(m.updateQueue=null,xe!==null)try{he==="input"&&F.type==="radio"&&F.name!=null&&ge($,F),It(he,te);var Ue=It(he,F);for(te=0;te<xe.length;te+=2){var vt=xe[te],Ot=xe[te+1];vt==="style"?dt($,Ot):vt==="dangerouslySetInnerHTML"?et($,Ot):vt==="children"?st($,Ot):S($,vt,Ot,Ue)}switch(he){case"input":ie($,F);break;case"textarea":ye($,F);break;case"select":var gt=$._wrapperState.wasMultiple;$._wrapperState.wasMultiple=!!F.multiple;var Bt=F.value;Bt!=null?Fe($,!!F.multiple,Bt,!1):gt!==!!F.multiple&&(F.defaultValue!=null?Fe($,!!F.multiple,F.defaultValue,!0):Fe($,!!F.multiple,F.multiple?[]:"",!1))}$[bh]=F}catch(en){Yr(m,m.return,en)}}break;case 6:if(zs(v,m),ya(m),C&4){if(m.stateNode===null)throw Error(n(162));$=m.stateNode,F=m.memoizedProps;try{$.nodeValue=F}catch(en){Yr(m,m.return,en)}}break;case 3:if(zs(v,m),ya(m),C&4&&w!==null&&w.memoizedState.isDehydrated)try{Ls(v.containerInfo)}catch(en){Yr(m,m.return,en)}break;case 4:zs(v,m),ya(m);break;case 13:zs(v,m),ya(m),$=m.child,$.flags&8192&&(F=$.memoizedState!==null,$.stateNode.isHidden=F,!F||$.alternate!==null&&$.alternate.memoizedState!==null||(sw=wn())),C&4&&nA(m);break;case 22:if(vt=w!==null&&w.memoizedState!==null,m.mode&1?(Gi=(Ue=Gi)||vt,zs(v,m),Gi=Ue):zs(v,m),ya(m),C&8192){if(Ue=m.memoizedState!==null,(m.stateNode.isHidden=Ue)&&!vt&&(m.mode&1)!==0)for(Wt=m,vt=m.child;vt!==null;){for(Ot=Wt=vt;Wt!==null;){switch(gt=Wt,Bt=gt.child,gt.tag){case 0:case 11:case 14:case 15:Ah(4,gt,gt.return);break;case 1:_f(gt,gt.return);var Zt=gt.stateNode;if(typeof Zt.componentWillUnmount=="function"){C=gt,w=gt.return;try{v=C,Zt.props=v.memoizedProps,Zt.state=v.memoizedState,Zt.componentWillUnmount()}catch(en){Yr(C,w,en)}}break;case 5:_f(gt,gt.return);break;case 22:if(gt.memoizedState!==null){sA(Ot);continue}}Bt!==null?(Bt.return=gt,Wt=Bt):sA(Ot)}vt=vt.sibling}e:for(vt=null,Ot=m;;){if(Ot.tag===5){if(vt===null){vt=Ot;try{$=Ot.stateNode,Ue?(F=$.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none"):(he=Ot.stateNode,xe=Ot.memoizedProps.style,te=xe!=null&&xe.hasOwnProperty("display")?xe.display:null,he.style.display=We("display",te))}catch(en){Yr(m,m.return,en)}}}else if(Ot.tag===6){if(vt===null)try{Ot.stateNode.nodeValue=Ue?"":Ot.memoizedProps}catch(en){Yr(m,m.return,en)}}else if((Ot.tag!==22&&Ot.tag!==23||Ot.memoizedState===null||Ot===m)&&Ot.child!==null){Ot.child.return=Ot,Ot=Ot.child;continue}if(Ot===m)break e;for(;Ot.sibling===null;){if(Ot.return===null||Ot.return===m)break e;vt===Ot&&(vt=null),Ot=Ot.return}vt===Ot&&(vt=null),Ot.sibling.return=Ot.return,Ot=Ot.sibling}}break;case 19:zs(v,m),ya(m),C&4&&nA(m);break;case 21:break;default:zs(v,m),ya(m)}}function ya(m){var v=m.flags;if(v&2){try{e:{for(var w=m.return;w!==null;){if(J2(w)){var C=w;break e}w=w.return}throw Error(n(160))}switch(C.tag){case 5:var $=C.stateNode;C.flags&32&&(st($,""),C.flags&=-33);var F=eA(m);rw(m,F,$);break;case 3:case 4:var te=C.stateNode.containerInfo,he=eA(m);nw(m,he,te);break;default:throw Error(n(161))}}catch(xe){Yr(m,m.return,xe)}m.flags&=-3}v&4096&&(m.flags&=-4097)}function oZ(m,v,w){Wt=m,iA(m)}function iA(m,v,w){for(var C=(m.mode&1)!==0;Wt!==null;){var $=Wt,F=$.child;if($.tag===22&&C){var te=$.memoizedState!==null||$g;if(!te){var he=$.alternate,xe=he!==null&&he.memoizedState!==null||Gi;he=$g;var Ue=Gi;if($g=te,(Gi=xe)&&!Ue)for(Wt=$;Wt!==null;)te=Wt,xe=te.child,te.tag===22&&te.memoizedState!==null?aA($):xe!==null?(xe.return=te,Wt=xe):aA($);for(;F!==null;)Wt=F,iA(F),F=F.sibling;Wt=$,$g=he,Gi=Ue}oA(m)}else($.subtreeFlags&8772)!==0&&F!==null?(F.return=$,Wt=F):oA(m)}}function oA(m){for(;Wt!==null;){var v=Wt;if((v.flags&8772)!==0){var w=v.alternate;try{if((v.flags&8772)!==0)switch(v.tag){case 0:case 11:case 15:Gi||Ng(5,v);break;case 1:var C=v.stateNode;if(v.flags&4&&!Gi)if(w===null)C.componentDidMount();else{var $=v.elementType===v.type?w.memoizedProps:qs(v.type,w.memoizedProps);C.componentDidUpdate($,w.memoizedState,C.__reactInternalSnapshotBeforeUpdate)}var F=v.updateQueue;F!==null&&s2(v,F,C);break;case 3:var te=v.updateQueue;if(te!==null){if(w=null,v.child!==null)switch(v.child.tag){case 5:w=v.child.stateNode;break;case 1:w=v.child.stateNode}s2(v,te,w)}break;case 5:var he=v.stateNode;if(w===null&&v.flags&4){w=he;var xe=v.memoizedProps;switch(v.type){case"button":case"input":case"select":case"textarea":xe.autoFocus&&w.focus();break;case"img":xe.src&&(w.src=xe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(v.memoizedState===null){var Ue=v.alternate;if(Ue!==null){var vt=Ue.memoizedState;if(vt!==null){var Ot=vt.dehydrated;Ot!==null&&Ls(Ot)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Gi||v.flags&512&&tw(v)}catch(gt){Yr(v,v.return,gt)}}if(v===m){Wt=null;break}if(w=v.sibling,w!==null){w.return=v.return,Wt=w;break}Wt=v.return}}function sA(m){for(;Wt!==null;){var v=Wt;if(v===m){Wt=null;break}var w=v.sibling;if(w!==null){w.return=v.return,Wt=w;break}Wt=v.return}}function aA(m){for(;Wt!==null;){var v=Wt;try{switch(v.tag){case 0:case 11:case 15:var w=v.return;try{Ng(4,v)}catch(xe){Yr(v,w,xe)}break;case 1:var C=v.stateNode;if(typeof C.componentDidMount=="function"){var $=v.return;try{C.componentDidMount()}catch(xe){Yr(v,$,xe)}}var F=v.return;try{tw(v)}catch(xe){Yr(v,F,xe)}break;case 5:var te=v.return;try{tw(v)}catch(xe){Yr(v,te,xe)}}}catch(xe){Yr(v,v.return,xe)}if(v===m){Wt=null;break}var he=v.sibling;if(he!==null){he.return=v.return,Wt=he;break}Wt=v.return}}var sZ=Math.ceil,Lg=k.ReactCurrentDispatcher,iw=k.ReactCurrentOwner,bs=k.ReactCurrentBatchConfig,rr=0,Ci=null,si=null,Li=0,Jo=0,Pf=Hl(0),yi=0,Mh=null,hc=0,jg=0,ow=0,Dh=null,Ro=null,sw=0,Cf=1/0,ml=null,Qg=!1,aw=null,tu=null,Fg=!1,nu=null,Bg=0,Ih=0,lw=null,Ug=-1,qg=0;function fo(){return(rr&6)!==0?wn():Ug!==-1?Ug:Ug=wn()}function ru(m){return(m.mode&1)===0?1:(rr&2)!==0&&Li!==0?Li&-Li:qW.transition!==null?(qg===0&&(qg=Dn()),qg):(m=dn,m!==0||(m=window.event,m=m===void 0?16:rc(m.type)),m)}function Ws(m,v,w,C){if(50<Ih)throw Ih=0,lw=null,Error(n(185));Ft(m,w,C),((rr&2)===0||m!==Ci)&&(m===Ci&&((rr&2)===0&&(jg|=w),yi===4&&iu(m,Li)),Ao(m,C),w===1&&rr===0&&(v.mode&1)===0&&(Cf=wn()+500,vg&&Gl()))}function Ao(m,v){var w=m.callbackNode;Qt(m,v);var C=Sn(m,m===Ci?Li:0);if(C===0)w!==null&&Ct(w),m.callbackNode=null,m.callbackPriority=0;else if(v=C&-C,m.callbackPriority!==v){if(w!=null&&Ct(w),v===1)m.tag===0?UW(uA.bind(null,m)):XR(uA.bind(null,m)),jW(function(){(rr&6)===0&&Gl()}),w=null;else{switch(Xr(C)){case 1:w=lr;break;case 4:w=ce;break;case 16:w=le;break;case 536870912:w=Xe;break;default:w=le}w=vA(w,lA.bind(null,m))}m.callbackPriority=v,m.callbackNode=w}}function lA(m,v){if(Ug=-1,qg=0,(rr&6)!==0)throw Error(n(327));var w=m.callbackNode;if(Ef()&&m.callbackNode!==w)return null;var C=Sn(m,m===Ci?Li:0);if(C===0)return null;if((C&30)!==0||(C&m.expiredLanes)!==0||v)v=Vg(m,C);else{v=C;var $=rr;rr|=2;var F=fA();(Ci!==m||Li!==v)&&(ml=null,Cf=wn()+500,mc(m,v));do try{uZ();break}catch(he){cA(m,he)}while(!0);Pb(),Lg.current=F,rr=$,si!==null?v=0:(Ci=null,Li=0,v=yi)}if(v!==0){if(v===2&&($=fn(m),$!==0&&(C=$,v=uw(m,$))),v===1)throw w=Mh,mc(m,0),iu(m,C),Ao(m,wn()),w;if(v===6)iu(m,C);else{if($=m.current.alternate,(C&30)===0&&!aZ($)&&(v=Vg(m,C),v===2&&(F=fn(m),F!==0&&(C=F,v=uw(m,F))),v===1))throw w=Mh,mc(m,0),iu(m,C),Ao(m,wn()),w;switch(m.finishedWork=$,m.finishedLanes=C,v){case 0:case 1:throw Error(n(345));case 2:gc(m,Ro,ml);break;case 3:if(iu(m,C),(C&130023424)===C&&(v=sw+500-wn(),10<v)){if(Sn(m,0)!==0)break;if($=m.suspendedLanes,($&C)!==C){fo(),m.pingedLanes|=m.suspendedLanes&$;break}m.timeoutHandle=mb(gc.bind(null,m,Ro,ml),v);break}gc(m,Ro,ml);break;case 4:if(iu(m,C),(C&4194240)===C)break;for(v=m.eventTimes,$=-1;0<C;){var te=31-ot(C);F=1<<te,te=v[te],te>$&&($=te),C&=~F}if(C=$,C=wn()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*sZ(C/1960))-C,10<C){m.timeoutHandle=mb(gc.bind(null,m,Ro,ml),C);break}gc(m,Ro,ml);break;case 5:gc(m,Ro,ml);break;default:throw Error(n(329))}}}return Ao(m,wn()),m.callbackNode===w?lA.bind(null,m):null}function uw(m,v){var w=Dh;return m.current.memoizedState.isDehydrated&&(mc(m,v).flags|=256),m=Vg(m,v),m!==2&&(v=Ro,Ro=w,v!==null&&cw(v)),m}function cw(m){Ro===null?Ro=m:Ro.push.apply(Ro,m)}function aZ(m){for(var v=m;;){if(v.flags&16384){var w=v.updateQueue;if(w!==null&&(w=w.stores,w!==null))for(var C=0;C<w.length;C++){var $=w[C],F=$.getSnapshot;$=$.value;try{if(!Bs(F(),$))return!1}catch{return!1}}}if(w=v.child,v.subtreeFlags&16384&&w!==null)w.return=v,v=w;else{if(v===m)break;for(;v.sibling===null;){if(v.return===null||v.return===m)return!0;v=v.return}v.sibling.return=v.return,v=v.sibling}}return!0}function iu(m,v){for(v&=~ow,v&=~jg,m.suspendedLanes|=v,m.pingedLanes&=~v,m=m.expirationTimes;0<v;){var w=31-ot(v),C=1<<w;m[w]=-1,v&=~C}}function uA(m){if((rr&6)!==0)throw Error(n(327));Ef();var v=Sn(m,0);if((v&1)===0)return Ao(m,wn()),null;var w=Vg(m,v);if(m.tag!==0&&w===2){var C=fn(m);C!==0&&(v=C,w=uw(m,C))}if(w===1)throw w=Mh,mc(m,0),iu(m,v),Ao(m,wn()),w;if(w===6)throw Error(n(345));return m.finishedWork=m.current.alternate,m.finishedLanes=v,gc(m,Ro,ml),Ao(m,wn()),null}function fw(m,v){var w=rr;rr|=1;try{return m(v)}finally{rr=w,rr===0&&(Cf=wn()+500,vg&&Gl())}}function pc(m){nu!==null&&nu.tag===0&&(rr&6)===0&&Ef();var v=rr;rr|=1;var w=bs.transition,C=dn;try{if(bs.transition=null,dn=1,m)return m()}finally{dn=C,bs.transition=w,rr=v,(rr&6)===0&&Gl()}}function dw(){Jo=Pf.current,Ar(Pf)}function mc(m,v){m.finishedWork=null,m.finishedLanes=0;var w=m.timeoutHandle;if(w!==-1&&(m.timeoutHandle=-1,LW(w)),si!==null)for(w=si.return;w!==null;){var C=w;switch(wb(C),C.tag){case 1:C=C.type.childContextTypes,C!=null&&mg();break;case 3:kf(),Ar(Co),Ar(Xi),Ib();break;case 5:Mb(C);break;case 4:kf();break;case 13:Ar(Vr);break;case 19:Ar(Vr);break;case 10:Cb(C.type._context);break;case 22:case 23:dw()}w=w.return}if(Ci=m,si=m=ou(m.current,null),Li=Jo=v,yi=0,Mh=null,ow=jg=hc=0,Ro=Dh=null,cc!==null){for(v=0;v<cc.length;v++)if(w=cc[v],C=w.interleaved,C!==null){w.interleaved=null;var $=C.next,F=w.pending;if(F!==null){var te=F.next;F.next=$,C.next=te}w.pending=C}cc=null}return m}function cA(m,v){do{var w=si;try{if(Pb(),Cg.current=Ag,Eg){for(var C=zr.memoizedState;C!==null;){var $=C.queue;$!==null&&($.pending=null),C=C.next}Eg=!1}if(dc=0,Pi=vi=zr=null,Ph=!1,Ch=0,iw.current=null,w===null||w.return===null){yi=1,Mh=v,si=null;break}e:{var F=m,te=w.return,he=w,xe=v;if(v=Li,he.flags|=32768,xe!==null&&typeof xe=="object"&&typeof xe.then=="function"){var Ue=xe,vt=he,Ot=vt.tag;if((vt.mode&1)===0&&(Ot===0||Ot===11||Ot===15)){var gt=vt.alternate;gt?(vt.updateQueue=gt.updateQueue,vt.memoizedState=gt.memoizedState,vt.lanes=gt.lanes):(vt.updateQueue=null,vt.memoizedState=null)}var Bt=$2(te);if(Bt!==null){Bt.flags&=-257,N2(Bt,te,he,F,v),Bt.mode&1&&I2(F,Ue,v),v=Bt,xe=Ue;var Zt=v.updateQueue;if(Zt===null){var en=new Set;en.add(xe),v.updateQueue=en}else Zt.add(xe);break e}else{if((v&1)===0){I2(F,Ue,v),hw();break e}xe=Error(n(426))}}else if(Fr&&he.mode&1){var ti=$2(te);if(ti!==null){(ti.flags&65536)===0&&(ti.flags|=256),N2(ti,te,he,F,v),xb(xf(xe,he));break e}}F=xe=xf(xe,he),yi!==4&&(yi=2),Dh===null?Dh=[F]:Dh.push(F),F=te;do{switch(F.tag){case 3:F.flags|=65536,v&=-v,F.lanes|=v;var Ie=M2(F,xe,v);o2(F,Ie);break e;case 1:he=xe;var Ce=F.type,je=F.stateNode;if((F.flags&128)===0&&(typeof Ce.getDerivedStateFromError=="function"||je!==null&&typeof je.componentDidCatch=="function"&&(tu===null||!tu.has(je)))){F.flags|=65536,v&=-v,F.lanes|=v;var xt=D2(F,he,v);o2(F,xt);break e}}F=F.return}while(F!==null)}hA(w)}catch(rn){v=rn,si===w&&w!==null&&(si=w=w.return);continue}break}while(!0)}function fA(){var m=Lg.current;return Lg.current=Ag,m===null?Ag:m}function hw(){(yi===0||yi===3||yi===2)&&(yi=4),Ci===null||(hc&268435455)===0&&(jg&268435455)===0||iu(Ci,Li)}function Vg(m,v){var w=rr;rr|=2;var C=fA();(Ci!==m||Li!==v)&&(ml=null,mc(m,v));do try{lZ();break}catch($){cA(m,$)}while(!0);if(Pb(),rr=w,Lg.current=C,si!==null)throw Error(n(261));return Ci=null,Li=0,yi}function lZ(){for(;si!==null;)dA(si)}function uZ(){for(;si!==null&&!ln();)dA(si)}function dA(m){var v=gA(m.alternate,m,Jo);m.memoizedProps=m.pendingProps,v===null?hA(m):si=v,iw.current=null}function hA(m){var v=m;do{var w=v.alternate;if(m=v.return,(v.flags&32768)===0){if(w=tZ(w,v,Jo),w!==null){si=w;return}}else{if(w=nZ(w,v),w!==null){w.flags&=32767,si=w;return}if(m!==null)m.flags|=32768,m.subtreeFlags=0,m.deletions=null;else{yi=6,si=null;return}}if(v=v.sibling,v!==null){si=v;return}si=v=m}while(v!==null);yi===0&&(yi=5)}function gc(m,v,w){var C=dn,$=bs.transition;try{bs.transition=null,dn=1,cZ(m,v,w,C)}finally{bs.transition=$,dn=C}return null}function cZ(m,v,w,C){do Ef();while(nu!==null);if((rr&6)!==0)throw Error(n(327));w=m.finishedWork;var $=m.finishedLanes;if(w===null)return null;if(m.finishedWork=null,m.finishedLanes=0,w===m.current)throw Error(n(177));m.callbackNode=null,m.callbackPriority=0;var F=w.lanes|w.childLanes;if(Bn(m,F),m===Ci&&(si=Ci=null,Li=0),(w.subtreeFlags&2064)===0&&(w.flags&2064)===0||Fg||(Fg=!0,vA(le,function(){return Ef(),null})),F=(w.flags&15990)!==0,(w.subtreeFlags&15990)!==0||F){F=bs.transition,bs.transition=null;var te=dn;dn=1;var he=rr;rr|=4,iw.current=null,iZ(m,w),rA(w,m),RW(hb),nl=!!db,hb=db=null,m.current=w,oZ(w),or(),rr=he,dn=te,bs.transition=F}else m.current=w;if(Fg&&(Fg=!1,nu=m,Bg=$),F=m.pendingLanes,F===0&&(tu=null),bt(w.stateNode),Ao(m,wn()),v!==null)for(C=m.onRecoverableError,w=0;w<v.length;w++)$=v[w],C($.value,{componentStack:$.stack,digest:$.digest});if(Qg)throw Qg=!1,m=aw,aw=null,m;return(Bg&1)!==0&&m.tag!==0&&Ef(),F=m.pendingLanes,(F&1)!==0?m===lw?Ih++:(Ih=0,lw=m):Ih=0,Gl(),null}function Ef(){if(nu!==null){var m=Xr(Bg),v=bs.transition,w=dn;try{if(bs.transition=null,dn=16>m?16:m,nu===null)var C=!1;else{if(m=nu,nu=null,Bg=0,(rr&6)!==0)throw Error(n(331));var $=rr;for(rr|=4,Wt=m.current;Wt!==null;){var F=Wt,te=F.child;if((Wt.flags&16)!==0){var he=F.deletions;if(he!==null){for(var xe=0;xe<he.length;xe++){var Ue=he[xe];for(Wt=Ue;Wt!==null;){var vt=Wt;switch(vt.tag){case 0:case 11:case 15:Ah(8,vt,F)}var Ot=vt.child;if(Ot!==null)Ot.return=vt,Wt=Ot;else for(;Wt!==null;){vt=Wt;var gt=vt.sibling,Bt=vt.return;if(K2(vt),vt===Ue){Wt=null;break}if(gt!==null){gt.return=Bt,Wt=gt;break}Wt=Bt}}}var Zt=F.alternate;if(Zt!==null){var en=Zt.child;if(en!==null){Zt.child=null;do{var ti=en.sibling;en.sibling=null,en=ti}while(en!==null)}}Wt=F}}if((F.subtreeFlags&2064)!==0&&te!==null)te.return=F,Wt=te;else e:for(;Wt!==null;){if(F=Wt,(F.flags&2048)!==0)switch(F.tag){case 0:case 11:case 15:Ah(9,F,F.return)}var Ie=F.sibling;if(Ie!==null){Ie.return=F.return,Wt=Ie;break e}Wt=F.return}}var Ce=m.current;for(Wt=Ce;Wt!==null;){te=Wt;var je=te.child;if((te.subtreeFlags&2064)!==0&&je!==null)je.return=te,Wt=je;else e:for(te=Ce;Wt!==null;){if(he=Wt,(he.flags&2048)!==0)try{switch(he.tag){case 0:case 11:case 15:Ng(9,he)}}catch(rn){Yr(he,he.return,rn)}if(he===te){Wt=null;break e}var xt=he.sibling;if(xt!==null){xt.return=he.return,Wt=xt;break e}Wt=he.return}}if(rr=$,Gl(),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(Ae,m)}catch{}C=!0}return C}finally{dn=w,bs.transition=v}}return!1}function pA(m,v,w){v=xf(w,v),v=M2(m,v,1),m=Jl(m,v,1),v=fo(),m!==null&&(Ft(m,1,v),Ao(m,v))}function Yr(m,v,w){if(m.tag===3)pA(m,m,w);else for(;v!==null;){if(v.tag===3){pA(v,m,w);break}else if(v.tag===1){var C=v.stateNode;if(typeof v.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(tu===null||!tu.has(C))){m=xf(w,m),m=D2(v,m,1),v=Jl(v,m,1),m=fo(),v!==null&&(Ft(v,1,m),Ao(v,m));break}}v=v.return}}function fZ(m,v,w){var C=m.pingCache;C!==null&&C.delete(v),v=fo(),m.pingedLanes|=m.suspendedLanes&w,Ci===m&&(Li&w)===w&&(yi===4||yi===3&&(Li&130023424)===Li&&500>wn()-sw?mc(m,0):ow|=w),Ao(m,v)}function mA(m,v){v===0&&((m.mode&1)===0?v=1:(v=jn,jn<<=1,(jn&130023424)===0&&(jn=4194304)));var w=fo();m=dl(m,v),m!==null&&(Ft(m,v,w),Ao(m,w))}function dZ(m){var v=m.memoizedState,w=0;v!==null&&(w=v.retryLane),mA(m,w)}function hZ(m,v){var w=0;switch(m.tag){case 13:var C=m.stateNode,$=m.memoizedState;$!==null&&(w=$.retryLane);break;case 19:C=m.stateNode;break;default:throw Error(n(314))}C!==null&&C.delete(v),mA(m,w)}var gA;gA=function(m,v,w){if(m!==null)if(m.memoizedProps!==v.pendingProps||Co.current)To=!0;else{if((m.lanes&w)===0&&(v.flags&128)===0)return To=!1,eZ(m,v,w);To=(m.flags&131072)!==0}else To=!1,Fr&&(v.flags&1048576)!==0&&HR(v,Og,v.index);switch(v.lanes=0,v.tag){case 2:var C=v.type;Ig(m,v),m=v.pendingProps;var $=gf(v,Xi.current);Sf(v,w),$=Lb(null,v,C,m,$,w);var F=jb();return v.flags|=1,typeof $=="object"&&$!==null&&typeof $.render=="function"&&$.$$typeof===void 0?(v.tag=1,v.memoizedState=null,v.updateQueue=null,Eo(C)?(F=!0,gg(v)):F=!1,v.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,Rb(v),$.updater=Mg,v.stateNode=$,$._reactInternals=v,Vb(v,C,m,w),v=Xb(null,v,C,!0,F,w)):(v.tag=0,Fr&&F&&bb(v),co(null,v,$,w),v=v.child),v;case 16:C=v.elementType;e:{switch(Ig(m,v),m=v.pendingProps,$=C._init,C=$(C._payload),v.type=C,$=v.tag=mZ(C),m=qs(C,m),$){case 0:v=Zb(null,v,C,m,w);break e;case 1:v=U2(null,v,C,m,w);break e;case 11:v=L2(null,v,C,m,w);break e;case 14:v=j2(null,v,C,qs(C.type,m),w);break e}throw Error(n(306,C,""))}return v;case 0:return C=v.type,$=v.pendingProps,$=v.elementType===C?$:qs(C,$),Zb(m,v,C,$,w);case 1:return C=v.type,$=v.pendingProps,$=v.elementType===C?$:qs(C,$),U2(m,v,C,$,w);case 3:e:{if(q2(v),m===null)throw Error(n(387));C=v.pendingProps,F=v.memoizedState,$=F.element,i2(m,v),_g(v,C,null,w);var te=v.memoizedState;if(C=te.element,F.isDehydrated)if(F={element:C,isDehydrated:!1,cache:te.cache,pendingSuspenseBoundaries:te.pendingSuspenseBoundaries,transitions:te.transitions},v.updateQueue.baseState=F,v.memoizedState=F,v.flags&256){$=xf(Error(n(423)),v),v=V2(m,v,C,w,$);break e}else if(C!==$){$=xf(Error(n(424)),v),v=V2(m,v,C,w,$);break e}else for(Ko=Xl(v.stateNode.containerInfo.firstChild),Go=v,Fr=!0,Us=null,w=n2(v,null,C,w),v.child=w;w;)w.flags=w.flags&-3|4096,w=w.sibling;else{if(Of(),C===$){v=pl(m,v,w);break e}co(m,v,C,w)}v=v.child}return v;case 5:return a2(v),m===null&&kb(v),C=v.type,$=v.pendingProps,F=m!==null?m.memoizedProps:null,te=$.children,pb(C,$)?te=null:F!==null&&pb(C,F)&&(v.flags|=32),B2(m,v),co(m,v,te,w),v.child;case 6:return m===null&&kb(v),null;case 13:return z2(m,v,w);case 4:return Ab(v,v.stateNode.containerInfo),C=v.pendingProps,m===null?v.child=bf(v,null,C,w):co(m,v,C,w),v.child;case 11:return C=v.type,$=v.pendingProps,$=v.elementType===C?$:qs(C,$),L2(m,v,C,$,w);case 7:return co(m,v,v.pendingProps,w),v.child;case 8:return co(m,v,v.pendingProps.children,w),v.child;case 12:return co(m,v,v.pendingProps.children,w),v.child;case 10:e:{if(C=v.type._context,$=v.pendingProps,F=v.memoizedProps,te=$.value,xr(Sg,C._currentValue),C._currentValue=te,F!==null)if(Bs(F.value,te)){if(F.children===$.children&&!Co.current){v=pl(m,v,w);break e}}else for(F=v.child,F!==null&&(F.return=v);F!==null;){var he=F.dependencies;if(he!==null){te=F.child;for(var xe=he.firstContext;xe!==null;){if(xe.context===C){if(F.tag===1){xe=hl(-1,w&-w),xe.tag=2;var Ue=F.updateQueue;if(Ue!==null){Ue=Ue.shared;var vt=Ue.pending;vt===null?xe.next=xe:(xe.next=vt.next,vt.next=xe),Ue.pending=xe}}F.lanes|=w,xe=F.alternate,xe!==null&&(xe.lanes|=w),Eb(F.return,w,v),he.lanes|=w;break}xe=xe.next}}else if(F.tag===10)te=F.type===v.type?null:F.child;else if(F.tag===18){if(te=F.return,te===null)throw Error(n(341));te.lanes|=w,he=te.alternate,he!==null&&(he.lanes|=w),Eb(te,w,v),te=F.sibling}else te=F.child;if(te!==null)te.return=F;else for(te=F;te!==null;){if(te===v){te=null;break}if(F=te.sibling,F!==null){F.return=te.return,te=F;break}te=te.return}F=te}co(m,v,$.children,w),v=v.child}return v;case 9:return $=v.type,C=v.pendingProps.children,Sf(v,w),$=ys($),C=C($),v.flags|=1,co(m,v,C,w),v.child;case 14:return C=v.type,$=qs(C,v.pendingProps),$=qs(C.type,$),j2(m,v,C,$,w);case 15:return Q2(m,v,v.type,v.pendingProps,w);case 17:return C=v.type,$=v.pendingProps,$=v.elementType===C?$:qs(C,$),Ig(m,v),v.tag=1,Eo(C)?(m=!0,gg(v)):m=!1,Sf(v,w),R2(v,C,$),Vb(v,C,$,w),Xb(null,v,C,!0,m,w);case 19:return Z2(m,v,w);case 22:return F2(m,v,w)}throw Error(n(156,v.tag))};function vA(m,v){return Yt(m,v)}function pZ(m,v,w,C){this.tag=m,this.key=w,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=v,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ws(m,v,w,C){return new pZ(m,v,w,C)}function pw(m){return m=m.prototype,!(!m||!m.isReactComponent)}function mZ(m){if(typeof m=="function")return pw(m)?1:0;if(m!=null){if(m=m.$$typeof,m===T)return 11;if(m===H)return 14}return 2}function ou(m,v){var w=m.alternate;return w===null?(w=ws(m.tag,v,m.key,m.mode),w.elementType=m.elementType,w.type=m.type,w.stateNode=m.stateNode,w.alternate=m,m.alternate=w):(w.pendingProps=v,w.type=m.type,w.flags=0,w.subtreeFlags=0,w.deletions=null),w.flags=m.flags&14680064,w.childLanes=m.childLanes,w.lanes=m.lanes,w.child=m.child,w.memoizedProps=m.memoizedProps,w.memoizedState=m.memoizedState,w.updateQueue=m.updateQueue,v=m.dependencies,w.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},w.sibling=m.sibling,w.index=m.index,w.ref=m.ref,w}function zg(m,v,w,C,$,F){var te=2;if(C=m,typeof m=="function")pw(m)&&(te=1);else if(typeof m=="string")te=5;else e:switch(m){case I:return vc(w.children,$,F,v);case M:te=8,$|=8;break;case P:return m=ws(12,w,v,$|2),m.elementType=P,m.lanes=F,m;case L:return m=ws(13,w,v,$),m.elementType=L,m.lanes=F,m;case A:return m=ws(19,w,v,$),m.elementType=A,m.lanes=F,m;case Z:return Wg(w,$,F,v);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case E:te=10;break e;case R:te=9;break e;case T:te=11;break e;case H:te=14;break e;case W:te=16,C=null;break e}throw Error(n(130,m==null?m:typeof m,""))}return v=ws(te,w,v,$),v.elementType=m,v.type=C,v.lanes=F,v}function vc(m,v,w,C){return m=ws(7,m,C,v),m.lanes=w,m}function Wg(m,v,w,C){return m=ws(22,m,C,v),m.elementType=Z,m.lanes=w,m.stateNode={isHidden:!1},m}function mw(m,v,w){return m=ws(6,m,null,v),m.lanes=w,m}function gw(m,v,w){return v=ws(4,m.children!==null?m.children:[],m.key,v),v.lanes=w,v.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},v}function gZ(m,v,w,C,$){this.tag=v,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fn(0),this.expirationTimes=Fn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fn(0),this.identifierPrefix=C,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function vw(m,v,w,C,$,F,te,he,xe){return m=new gZ(m,v,w,he,xe),v===1?(v=1,F===!0&&(v|=8)):v=0,F=ws(3,null,null,v),m.current=F,F.stateNode=m,F.memoizedState={element:C,isDehydrated:w,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rb(F),m}function vZ(m,v,w){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_,key:C==null?null:""+C,children:m,containerInfo:v,implementation:w}}function yA(m){if(!m)return Yl;m=m._reactInternals;e:{if(Nt(m)!==m||m.tag!==1)throw Error(n(170));var v=m;do{switch(v.tag){case 3:v=v.stateNode.context;break e;case 1:if(Eo(v.type)){v=v.stateNode.__reactInternalMemoizedMergedChildContext;break e}}v=v.return}while(v!==null);throw Error(n(171))}if(m.tag===1){var w=m.type;if(Eo(w))return WR(m,w,v)}return v}function OA(m,v,w,C,$,F,te,he,xe){return m=vw(w,C,!0,m,$,F,te,he,xe),m.context=yA(null),w=m.current,C=fo(),$=ru(w),F=hl(C,$),F.callback=v??null,Jl(w,F,$),m.current.lanes=$,Ft(m,$,C),Ao(m,C),m}function Zg(m,v,w,C){var $=v.current,F=fo(),te=ru($);return w=yA(w),v.context===null?v.context=w:v.pendingContext=w,v=hl(F,te),v.payload={element:m},C=C===void 0?null:C,C!==null&&(v.callback=C),m=Jl($,v,te),m!==null&&(Ws(m,$,te,F),xg(m,$,te)),te}function Xg(m){if(m=m.current,!m.child)return null;switch(m.child.tag){case 5:return m.child.stateNode;default:return m.child.stateNode}}function bA(m,v){if(m=m.memoizedState,m!==null&&m.dehydrated!==null){var w=m.retryLane;m.retryLane=w!==0&&w<v?w:v}}function yw(m,v){bA(m,v),(m=m.alternate)&&bA(m,v)}function yZ(){return null}var wA=typeof reportError=="function"?reportError:function(m){console.error(m)};function Ow(m){this._internalRoot=m}Hg.prototype.render=Ow.prototype.render=function(m){var v=this._internalRoot;if(v===null)throw Error(n(409));Zg(m,v,null,null)},Hg.prototype.unmount=Ow.prototype.unmount=function(){var m=this._internalRoot;if(m!==null){this._internalRoot=null;var v=m.containerInfo;pc(function(){Zg(null,m,null,null)}),v[ll]=null}};function Hg(m){this._internalRoot=m}Hg.prototype.unstable_scheduleHydration=function(m){if(m){var v=zi();m={blockedOn:null,target:m,priority:v};for(var w=0;w<lo.length&&v!==0&&v<lo[w].priority;w++);lo.splice(w,0,m),w===0&&Ns(m)}};function bw(m){return!(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)}function Yg(m){return!(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11&&(m.nodeType!==8||m.nodeValue!==" react-mount-point-unstable "))}function SA(){}function OZ(m,v,w,C,$){if($){if(typeof C=="function"){var F=C;C=function(){var Ue=Xg(te);F.call(Ue)}}var te=OA(v,C,m,0,null,!1,!1,"",SA);return m._reactRootContainer=te,m[ll]=te.current,yh(m.nodeType===8?m.parentNode:m),pc(),te}for(;$=m.lastChild;)m.removeChild($);if(typeof C=="function"){var he=C;C=function(){var Ue=Xg(xe);he.call(Ue)}}var xe=vw(m,0,!1,null,null,!1,!1,"",SA);return m._reactRootContainer=xe,m[ll]=xe.current,yh(m.nodeType===8?m.parentNode:m),pc(function(){Zg(v,xe,w,C)}),xe}function Gg(m,v,w,C,$){var F=w._reactRootContainer;if(F){var te=F;if(typeof $=="function"){var he=$;$=function(){var xe=Xg(te);he.call(xe)}}Zg(v,te,m,$)}else te=OZ(w,v,m,$,C);return Xg(te)}jr=function(m){switch(m.tag){case 3:var v=m.stateNode;if(v.current.memoizedState.isDehydrated){var w=tn(v.pendingLanes);w!==0&&(In(v,w|1),Ao(v,wn()),(rr&6)===0&&(Cf=wn()+500,Gl()))}break;case 13:pc(function(){var C=dl(m,1);if(C!==null){var $=fo();Ws(C,m,1,$)}}),yw(m,1)}},gr=function(m){if(m.tag===13){var v=dl(m,134217728);if(v!==null){var w=fo();Ws(v,m,134217728,w)}yw(m,134217728)}},Hr=function(m){if(m.tag===13){var v=ru(m),w=dl(m,v);if(w!==null){var C=fo();Ws(w,m,v,C)}yw(m,v)}},zi=function(){return dn},ei=function(m,v){var w=dn;try{return dn=m,v()}finally{dn=w}},un=function(m,v,w){switch(v){case"input":if(ie(m,w),v=w.name,w.type==="radio"&&v!=null){for(w=m;w.parentNode;)w=w.parentNode;for(w=w.querySelectorAll("input[name="+JSON.stringify(""+v)+'][type="radio"]'),v=0;v<w.length;v++){var C=w[v];if(C!==m&&C.form===m.form){var $=pg(C);if(!$)throw Error(n(90));Te(C),ie(C,$)}}}break;case"textarea":ye(m,w);break;case"select":v=w.value,v!=null&&Fe(m,!!w.multiple,v,!1)}},Rn=fw,ir=pc;var bZ={usingClientEntryPoint:!1,Events:[wh,pf,pg,Tn,bn,fw]},$h={findFiberByHostInstance:sc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wZ={bundleType:$h.bundleType,version:$h.version,rendererPackageName:$h.rendererPackageName,rendererConfig:$h.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(m){return m=sn(m),m===null?null:m.stateNode},findFiberByHostInstance:$h.findFiberByHostInstance||yZ,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kg.isDisabled&&Kg.supportsFiber)try{Ae=Kg.inject(wZ),ze=Kg}catch{}}return Mo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bZ,Mo.createPortal=function(m,v){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bw(v))throw Error(n(200));return vZ(m,v,null,w)},Mo.createRoot=function(m,v){if(!bw(m))throw Error(n(299));var w=!1,C="",$=wA;return v!=null&&(v.unstable_strictMode===!0&&(w=!0),v.identifierPrefix!==void 0&&(C=v.identifierPrefix),v.onRecoverableError!==void 0&&($=v.onRecoverableError)),v=vw(m,1,!1,null,null,w,!1,C,$),m[ll]=v.current,yh(m.nodeType===8?m.parentNode:m),new Ow(v)},Mo.findDOMNode=function(m){if(m==null)return null;if(m.nodeType===1)return m;var v=m._reactInternals;if(v===void 0)throw typeof m.render=="function"?Error(n(188)):(m=Object.keys(m).join(","),Error(n(268,m)));return m=sn(v),m=m===null?null:m.stateNode,m},Mo.flushSync=function(m){return pc(m)},Mo.hydrate=function(m,v,w){if(!Yg(v))throw Error(n(200));return Gg(null,m,v,!0,w)},Mo.hydrateRoot=function(m,v,w){if(!bw(m))throw Error(n(405));var C=w!=null&&w.hydratedSources||null,$=!1,F="",te=wA;if(w!=null&&(w.unstable_strictMode===!0&&($=!0),w.identifierPrefix!==void 0&&(F=w.identifierPrefix),w.onRecoverableError!==void 0&&(te=w.onRecoverableError)),v=OA(v,null,m,1,w??null,$,!1,F,te),m[ll]=v.current,yh(m),C)for(m=0;m<C.length;m++)w=C[m],$=w._getVersion,$=$(w._source),v.mutableSourceEagerHydrationData==null?v.mutableSourceEagerHydrationData=[w,$]:v.mutableSourceEagerHydrationData.push(w,$);return new Hg(v)},Mo.render=function(m,v,w){if(!Yg(v))throw Error(n(200));return Gg(null,m,v,!1,w)},Mo.unmountComponentAtNode=function(m){if(!Yg(m))throw Error(n(40));return m._reactRootContainer?(pc(function(){Gg(null,null,m,!1,function(){m._reactRootContainer=null,m[ll]=null})}),!0):!1},Mo.unstable_batchedUpdates=fw,Mo.unstable_renderSubtreeIntoContainer=function(m,v,w,C){if(!Yg(w))throw Error(n(200));if(m==null||m._reactInternals===void 0)throw Error(n(38));return Gg(m,v,w,!1,C)},Mo.version="18.3.1-next-f1338f8080-20240426",Mo}var RA;function Mm(){if(RA)return kw.exports;RA=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),kw.exports=TZ(),kw.exports}var AA;function RZ(){if(AA)return Jg;AA=1;var t=Mm();return Jg.createRoot=t.createRoot,Jg.hydrateRoot=t.hydrateRoot,Jg}var TQ=RZ();function Ps(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pw={exports:{}},MA;function AZ(){return MA||(MA=1,function(t,e){(function(n){t.exports=n()})(function(){return function(){function n(r,i,o){function s(u,c){if(!i[u]){if(!r[u]){var f=typeof Ps=="function"&&Ps;if(!c&&f)return f(u,!0);if(a)return a(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var h=i[u]={exports:{}};r[u][0].call(h.exports,function(p){var g=r[u][1][p];return s(g||p)},h,h.exports,n,r,i,o)}return i[u].exports}for(var a=typeof Ps=="function"&&Ps,l=0;l<o.length;l++)s(o[l]);return s}return n}()({1:[function(n,r,i){(function(o,s){(function(){(function(a,l){l(typeof i=="object"&&typeof r<"u"?i:a.async={})})(this,function(a){function l(se,...re){return(...ae)=>se(...re,...ae)}function u(se){return function(...re){var ae=re.pop();return se.call(this,re,ae)}}var c=typeof queueMicrotask=="function"&&queueMicrotask,f=typeof s=="function"&&s,d=typeof o=="object"&&typeof o.nextTick=="function";function h(se){setTimeout(se,0)}function p(se){return(re,...ae)=>se(()=>re(...ae))}var g;c?g=queueMicrotask:f?g=s:d?g=o.nextTick:g=h;var y=p(g);function O(se){return k(se)?function(...re){const ae=re.pop(),ke=se.apply(this,re);return b(ke,ae)}:u(function(re,ae){var ke;try{ke=se.apply(this,re)}catch(Qe){return ae(Qe)}if(ke&&typeof ke.then=="function")return b(ke,ae);ae(null,ke)})}function b(se,re){return se.then(ae=>{S(re,null,ae)},ae=>{S(re,ae&&ae.message?ae:new Error(ae))})}function S(se,re,ae){try{se(re,ae)}catch(ke){y(Qe=>{throw Qe},ke)}}function k(se){return se[Symbol.toStringTag]==="AsyncFunction"}function x(se){return se[Symbol.toStringTag]==="AsyncGenerator"}function _(se){return typeof se[Symbol.asyncIterator]=="function"}function I(se){if(typeof se!="function")throw new Error("expected a function");return k(se)?O(se):se}function M(se,re=se.length){if(!re)throw new Error("arity is undefined");function ae(...ke){return typeof ke[re-1]=="function"?se.apply(this,ke):new Promise((Qe,Be)=>{ke[re-1]=(He,...Ge)=>{if(He)return Be(He);Qe(Ge.length>1?Ge:Ge[0])},se.apply(this,ke)})}return ae}function P(se){return function(ae,...ke){return M(function(Be){var He=this;return se(ae,(Ge,mt)=>{I(Ge).apply(He,ke.concat(mt))},Be)})}}function E(se,re,ae,ke){re=re||[];var Qe=[],Be=0,He=I(ae);return se(re,(Ge,mt,Jt)=>{var Un=Be++;He(Ge,(Gn,qn)=>{Qe[Un]=qn,Jt(Gn)})},Ge=>{ke(Ge,Qe)})}function R(se){return se&&typeof se.length=="number"&&se.length>=0&&se.length%1===0}const T={};function L(se){function re(...ae){if(se!==null){var ke=se;se=null,ke.apply(this,ae)}}return Object.assign(re,se),re}function A(se){return se[Symbol.iterator]&&se[Symbol.iterator]()}function H(se){var re=-1,ae=se.length;return function(){return++re<ae?{value:se[re],key:re}:null}}function W(se){var re=-1;return function(){var ke=se.next();return ke.done?null:(re++,{value:ke.value,key:re})}}function Z(se){var re=se?Object.keys(se):[],ae=-1,ke=re.length;return function Qe(){var Be=re[++ae];return Be==="__proto__"?Qe():ae<ke?{value:se[Be],key:Be}:null}}function G(se){if(R(se))return H(se);var re=A(se);return re?W(re):Z(se)}function K(se){return function(...re){if(se===null)throw new Error("Callback was already called.");var ae=se;se=null,ae.apply(this,re)}}function U(se,re,ae,ke){let Qe=!1,Be=!1,He=!1,Ge=0,mt=0;function Jt(){Ge>=re||He||Qe||(He=!0,se.next().then(({value:qn,done:_o})=>{if(!(Be||Qe)){if(He=!1,_o){Qe=!0,Ge<=0&&ke(null);return}Ge++,ae(qn,mt,Un),mt++,Jt()}}).catch(Gn))}function Un(qn,_o){if(Ge-=1,!Be){if(qn)return Gn(qn);if(qn===!1){Qe=!0,Be=!0;return}if(_o===T||Qe&&Ge<=0)return Qe=!0,ke(null);Jt()}}function Gn(qn){Be||(He=!1,Qe=!0,ke(qn))}Jt()}var B=se=>(re,ae,ke)=>{if(ke=L(ke),se<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!re)return ke(null);if(x(re))return U(re,se,ae,ke);if(_(re))return U(re[Symbol.asyncIterator](),se,ae,ke);var Qe=G(re),Be=!1,He=!1,Ge=0,mt=!1;function Jt(Gn,qn){if(!He)if(Ge-=1,Gn)Be=!0,ke(Gn);else if(Gn===!1)Be=!0,He=!0;else{if(qn===T||Be&&Ge<=0)return Be=!0,ke(null);mt||Un()}}function Un(){for(mt=!0;Ge<se&&!Be;){var Gn=Qe();if(Gn===null){Be=!0,Ge<=0&&ke(null);return}Ge+=1,ae(Gn.value,Gn.key,K(Jt))}mt=!1}Un()};function Y(se,re,ae,ke){return B(re)(se,I(ae),ke)}var j=M(Y,4);function ne(se,re,ae){ae=L(ae);var ke=0,Qe=0,{length:Be}=se,He=!1;Be===0&&ae(null);function Ge(mt,Jt){mt===!1&&(He=!0),He!==!0&&(mt?ae(mt):(++Qe===Be||Jt===T)&&ae(null))}for(;ke<Be;ke++)re(se[ke],ke,K(Ge))}function ee(se,re,ae){return j(se,1/0,re,ae)}function ue(se,re,ae){var ke=R(se)?ne:ee;return ke(se,I(re),ae)}var z=M(ue,3);function X(se,re,ae){return E(z,se,re,ae)}var J=M(X,3),fe=P(J);function we(se,re,ae){return j(se,1,re,ae)}var Te=M(we,3);function Re(se,re,ae){return E(Te,se,re,ae)}var Q=M(Re,3),ve=P(Q);const ge=Symbol("promiseCallback");function ie(){let se,re;function ae(ke,...Qe){if(ke)return re(ke);se(Qe.length>1?Qe:Qe[0])}return ae[ge]=new Promise((ke,Qe)=>{se=ke,re=Qe}),ae}function oe(se,re,ae){typeof re!="number"&&(ae=re,re=null),ae=L(ae||ie());var ke=Object.keys(se).length;if(!ke)return ae(null);re||(re=ke);var Qe={},Be=0,He=!1,Ge=!1,mt=Object.create(null),Jt=[],Un=[],Gn={};Object.keys(se).forEach(Gt=>{var mn=se[Gt];if(!Array.isArray(mn)){qn(Gt,[mn]),Un.push(Gt);return}var Vn=mn.slice(0,mn.length-1),kr=Vn.length;if(kr===0){qn(Gt,mn),Un.push(Gt);return}Gn[Gt]=kr,Vn.forEach(oi=>{if(!se[oi])throw new Error("async.auto task `"+Gt+"` has a non-existent dependency `"+oi+"` in "+Vn.join(", "));zl(oi,()=>{kr--,kr===0&&qn(Gt,mn)})})}),Xn(),_o();function qn(Gt,mn){Jt.push(()=>ic(Gt,mn))}function _o(){if(!He){if(Jt.length===0&&Be===0)return ae(null,Qe);for(;Jt.length&&Be<re;){var Gt=Jt.shift();Gt()}}}function zl(Gt,mn){var Vn=mt[Gt];Vn||(Vn=mt[Gt]=[]),Vn.push(mn)}function sl(Gt){var mn=mt[Gt]||[];mn.forEach(Vn=>Vn()),_o()}function ic(Gt,mn){if(!Ge){var Vn=K((oi,...Po)=>{if(Be--,oi===!1){He=!0;return}if(Po.length<2&&([Po]=Po),oi){var Wl={};if(Object.keys(Qe).forEach(al=>{Wl[al]=Qe[al]}),Wl[Gt]=Po,Ge=!0,mt=Object.create(null),He)return;ae(oi,Wl)}else Qe[Gt]=Po,sl(Gt)});Be++;var kr=I(mn[mn.length-1]);mn.length>1?kr(Qe,Vn):kr(Vn)}}function Xn(){for(var Gt,mn=0;Un.length;)Gt=Un.pop(),mn++,pn(Gt).forEach(Vn=>{--Gn[Vn]===0&&Un.push(Vn)});if(mn!==ke)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function pn(Gt){var mn=[];return Object.keys(se).forEach(Vn=>{const kr=se[Vn];Array.isArray(kr)&&kr.indexOf(Gt)>=0&&mn.push(Vn)}),mn}return ae[ge]}var me=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,$e=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,Fe=/,/,Pe=/(=.+)?(\s*)$/;function V(se){let re="",ae=0,ke=se.indexOf("*/");for(;ae<se.length;)if(se[ae]==="/"&&se[ae+1]==="/"){let Qe=se.indexOf(`
40
+ `+F.stack}return{value:m,source:v,stack:$,digest:null}}function zb(m,v,w){return{value:m,source:null,stack:w??null,digest:v??null}}function Wb(m,v){try{console.error(v.value)}catch(w){setTimeout(function(){throw w})}}var GW=typeof WeakMap=="function"?WeakMap:Map;function M2(m,v,w){w=hl(-1,w),w.tag=3,w.payload={element:null};var C=v.value;return w.callback=function(){Qg||(Qg=!0,aw=C),Wb(m,v)},w}function D2(m,v,w){w=hl(-1,w),w.tag=3;var C=m.type.getDerivedStateFromError;if(typeof C=="function"){var $=v.value;w.payload=function(){return C($)},w.callback=function(){Wb(m,v)}}var F=m.stateNode;return F!==null&&typeof F.componentDidCatch=="function"&&(w.callback=function(){Wb(m,v),typeof C!="function"&&(tu===null?tu=new Set([this]):tu.add(this));var te=v.stack;this.componentDidCatch(v.value,{componentStack:te!==null?te:""})}),w}function I2(m,v,w){var C=m.pingCache;if(C===null){C=m.pingCache=new GW;var $=new Set;C.set(v,$)}else $=C.get(v),$===void 0&&($=new Set,C.set(v,$));$.has(w)||($.add(w),m=fZ.bind(null,m,v,w),v.then(m,m))}function $2(m){do{var v;if((v=m.tag===13)&&(v=m.memoizedState,v=v!==null?v.dehydrated!==null:!0),v)return m;m=m.return}while(m!==null);return null}function N2(m,v,w,C,$){return(m.mode&1)===0?(m===v?m.flags|=65536:(m.flags|=128,w.flags|=131072,w.flags&=-52805,w.tag===1&&(w.alternate===null?w.tag=17:(v=hl(-1,1),v.tag=2,Jl(w,v,1))),w.lanes|=1),m):(m.flags|=65536,m.lanes=$,m)}var KW=k.ReactCurrentOwner,To=!1;function co(m,v,w,C){v.child=m===null?n2(v,null,w,C):bf(v,m.child,w,C)}function L2(m,v,w,C,$){w=w.render;var F=v.ref;return Sf(v,$),C=Lb(m,v,w,C,F,$),w=jb(),m!==null&&!To?(v.updateQueue=m.updateQueue,v.flags&=-2053,m.lanes&=~$,pl(m,v,$)):(Fr&&w&&bb(v),v.flags|=1,co(m,v,C,$),v.child)}function j2(m,v,w,C,$){if(m===null){var F=w.type;return typeof F=="function"&&!pw(F)&&F.defaultProps===void 0&&w.compare===null&&w.defaultProps===void 0?(v.tag=15,v.type=F,Q2(m,v,F,C,$)):(m=zg(w.type,null,C,v,v.mode,$),m.ref=v.ref,m.return=v,v.child=m)}if(F=m.child,(m.lanes&$)===0){var te=F.memoizedProps;if(w=w.compare,w=w!==null?w:mh,w(te,C)&&m.ref===v.ref)return pl(m,v,$)}return v.flags|=1,m=ou(F,C),m.ref=v.ref,m.return=v,v.child=m}function Q2(m,v,w,C,$){if(m!==null){var F=m.memoizedProps;if(mh(F,C)&&m.ref===v.ref)if(To=!1,v.pendingProps=C=F,(m.lanes&$)!==0)(m.flags&131072)!==0&&(To=!0);else return v.lanes=m.lanes,pl(m,v,$)}return Zb(m,v,w,C,$)}function F2(m,v,w){var C=v.pendingProps,$=C.children,F=m!==null?m.memoizedState:null;if(C.mode==="hidden")if((v.mode&1)===0)v.memoizedState={baseLanes:0,cachePool:null,transitions:null},xr(Pf,Jo),Jo|=w;else{if((w&1073741824)===0)return m=F!==null?F.baseLanes|w:w,v.lanes=v.childLanes=1073741824,v.memoizedState={baseLanes:m,cachePool:null,transitions:null},v.updateQueue=null,xr(Pf,Jo),Jo|=m,null;v.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=F!==null?F.baseLanes:w,xr(Pf,Jo),Jo|=C}else F!==null?(C=F.baseLanes|w,v.memoizedState=null):C=w,xr(Pf,Jo),Jo|=C;return co(m,v,$,w),v.child}function B2(m,v){var w=v.ref;(m===null&&w!==null||m!==null&&m.ref!==w)&&(v.flags|=512,v.flags|=2097152)}function Zb(m,v,w,C,$){var F=Eo(w)?ac:Xi.current;return F=gf(v,F),Sf(v,$),w=Lb(m,v,w,C,F,$),C=jb(),m!==null&&!To?(v.updateQueue=m.updateQueue,v.flags&=-2053,m.lanes&=~$,pl(m,v,$)):(Fr&&C&&bb(v),v.flags|=1,co(m,v,w,$),v.child)}function U2(m,v,w,C,$){if(Eo(w)){var F=!0;gg(v)}else F=!1;if(Sf(v,$),v.stateNode===null)Ig(m,v),R2(v,w,C),Vb(v,w,C,$),C=!0;else if(m===null){var te=v.stateNode,he=v.memoizedProps;te.props=he;var xe=te.context,Ue=w.contextType;typeof Ue=="object"&&Ue!==null?Ue=ys(Ue):(Ue=Eo(w)?ac:Xi.current,Ue=gf(v,Ue));var vt=w.getDerivedStateFromProps,Ot=typeof vt=="function"||typeof te.getSnapshotBeforeUpdate=="function";Ot||typeof te.UNSAFE_componentWillReceiveProps!="function"&&typeof te.componentWillReceiveProps!="function"||(he!==C||xe!==Ue)&&A2(v,te,C,Ue),Kl=!1;var gt=v.memoizedState;te.state=gt,_g(v,C,te,$),xe=v.memoizedState,he!==C||gt!==xe||Co.current||Kl?(typeof vt=="function"&&(qb(v,w,vt,C),xe=v.memoizedState),(he=Kl||T2(v,w,he,C,gt,xe,Ue))?(Ot||typeof te.UNSAFE_componentWillMount!="function"&&typeof te.componentWillMount!="function"||(typeof te.componentWillMount=="function"&&te.componentWillMount(),typeof te.UNSAFE_componentWillMount=="function"&&te.UNSAFE_componentWillMount()),typeof te.componentDidMount=="function"&&(v.flags|=4194308)):(typeof te.componentDidMount=="function"&&(v.flags|=4194308),v.memoizedProps=C,v.memoizedState=xe),te.props=C,te.state=xe,te.context=Ue,C=he):(typeof te.componentDidMount=="function"&&(v.flags|=4194308),C=!1)}else{te=v.stateNode,i2(m,v),he=v.memoizedProps,Ue=v.type===v.elementType?he:qs(v.type,he),te.props=Ue,Ot=v.pendingProps,gt=te.context,xe=w.contextType,typeof xe=="object"&&xe!==null?xe=ys(xe):(xe=Eo(w)?ac:Xi.current,xe=gf(v,xe));var Bt=w.getDerivedStateFromProps;(vt=typeof Bt=="function"||typeof te.getSnapshotBeforeUpdate=="function")||typeof te.UNSAFE_componentWillReceiveProps!="function"&&typeof te.componentWillReceiveProps!="function"||(he!==Ot||gt!==xe)&&A2(v,te,C,xe),Kl=!1,gt=v.memoizedState,te.state=gt,_g(v,C,te,$);var Zt=v.memoizedState;he!==Ot||gt!==Zt||Co.current||Kl?(typeof Bt=="function"&&(qb(v,w,Bt,C),Zt=v.memoizedState),(Ue=Kl||T2(v,w,Ue,C,gt,Zt,xe)||!1)?(vt||typeof te.UNSAFE_componentWillUpdate!="function"&&typeof te.componentWillUpdate!="function"||(typeof te.componentWillUpdate=="function"&&te.componentWillUpdate(C,Zt,xe),typeof te.UNSAFE_componentWillUpdate=="function"&&te.UNSAFE_componentWillUpdate(C,Zt,xe)),typeof te.componentDidUpdate=="function"&&(v.flags|=4),typeof te.getSnapshotBeforeUpdate=="function"&&(v.flags|=1024)):(typeof te.componentDidUpdate!="function"||he===m.memoizedProps&&gt===m.memoizedState||(v.flags|=4),typeof te.getSnapshotBeforeUpdate!="function"||he===m.memoizedProps&&gt===m.memoizedState||(v.flags|=1024),v.memoizedProps=C,v.memoizedState=Zt),te.props=C,te.state=Zt,te.context=xe,C=Ue):(typeof te.componentDidUpdate!="function"||he===m.memoizedProps&&gt===m.memoizedState||(v.flags|=4),typeof te.getSnapshotBeforeUpdate!="function"||he===m.memoizedProps&&gt===m.memoizedState||(v.flags|=1024),C=!1)}return Xb(m,v,w,C,F,$)}function Xb(m,v,w,C,$,F){B2(m,v);var te=(v.flags&128)!==0;if(!C&&!te)return $&&ZR(v,w,!1),pl(m,v,F);C=v.stateNode,KW.current=v;var he=te&&typeof w.getDerivedStateFromError!="function"?null:C.render();return v.flags|=1,m!==null&&te?(v.child=bf(v,m.child,null,F),v.child=bf(v,null,he,F)):co(m,v,he,F),v.memoizedState=C.state,$&&ZR(v,w,!0),v.child}function q2(m){var v=m.stateNode;v.pendingContext?zR(m,v.pendingContext,v.pendingContext!==v.context):v.context&&zR(m,v.context,!1),Ab(m,v.containerInfo)}function V2(m,v,w,C,$){return Of(),xb($),v.flags|=256,co(m,v,w,C),v.child}var Hb={dehydrated:null,treeContext:null,retryLane:0};function Yb(m){return{baseLanes:m,cachePool:null,transitions:null}}function z2(m,v,w){var C=v.pendingProps,$=Vr.current,F=!1,te=(v.flags&128)!==0,he;if((he=te)||(he=m!==null&&m.memoizedState===null?!1:($&2)!==0),he?(F=!0,v.flags&=-129):(m===null||m.memoizedState!==null)&&($|=1),xr(Vr,$&1),m===null)return kb(v),m=v.memoizedState,m!==null&&(m=m.dehydrated,m!==null)?((v.mode&1)===0?v.lanes=1:m.data==="$!"?v.lanes=8:v.lanes=1073741824,null):(te=C.children,m=C.fallback,F?(C=v.mode,F=v.child,te={mode:"hidden",children:te},(C&1)===0&&F!==null?(F.childLanes=0,F.pendingProps=te):F=Wg(te,C,0,null),m=vc(m,C,w,null),F.return=v,m.return=v,F.sibling=m,v.child=F,v.child.memoizedState=Yb(w),v.memoizedState=Hb,m):Gb(v,te));if($=m.memoizedState,$!==null&&(he=$.dehydrated,he!==null))return JW(m,v,te,C,he,$,w);if(F){F=C.fallback,te=v.mode,$=m.child,he=$.sibling;var xe={mode:"hidden",children:C.children};return(te&1)===0&&v.child!==$?(C=v.child,C.childLanes=0,C.pendingProps=xe,v.deletions=null):(C=ou($,xe),C.subtreeFlags=$.subtreeFlags&14680064),he!==null?F=ou(he,F):(F=vc(F,te,w,null),F.flags|=2),F.return=v,C.return=v,C.sibling=F,v.child=C,C=F,F=v.child,te=m.child.memoizedState,te=te===null?Yb(w):{baseLanes:te.baseLanes|w,cachePool:null,transitions:te.transitions},F.memoizedState=te,F.childLanes=m.childLanes&~w,v.memoizedState=Hb,C}return F=m.child,m=F.sibling,C=ou(F,{mode:"visible",children:C.children}),(v.mode&1)===0&&(C.lanes=w),C.return=v,C.sibling=null,m!==null&&(w=v.deletions,w===null?(v.deletions=[m],v.flags|=16):w.push(m)),v.child=C,v.memoizedState=null,C}function Gb(m,v){return v=Wg({mode:"visible",children:v},m.mode,0,null),v.return=m,m.child=v}function Dg(m,v,w,C){return C!==null&&xb(C),bf(v,m.child,null,w),m=Gb(v,v.pendingProps.children),m.flags|=2,v.memoizedState=null,m}function JW(m,v,w,C,$,F,te){if(w)return v.flags&256?(v.flags&=-257,C=zb(Error(n(422))),Dg(m,v,te,C)):v.memoizedState!==null?(v.child=m.child,v.flags|=128,null):(F=C.fallback,$=v.mode,C=Wg({mode:"visible",children:C.children},$,0,null),F=vc(F,$,te,null),F.flags|=2,C.return=v,F.return=v,C.sibling=F,v.child=C,(v.mode&1)!==0&&bf(v,m.child,null,te),v.child.memoizedState=Yb(te),v.memoizedState=Hb,F);if((v.mode&1)===0)return Dg(m,v,te,null);if($.data==="$!"){if(C=$.nextSibling&&$.nextSibling.dataset,C)var he=C.dgst;return C=he,F=Error(n(419)),C=zb(F,C,void 0),Dg(m,v,te,C)}if(he=(te&m.childLanes)!==0,To||he){if(C=Ci,C!==null){switch(te&-te){case 4:$=2;break;case 16:$=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:$=32;break;case 536870912:$=268435456;break;default:$=0}$=($&(C.suspendedLanes|te))!==0?0:$,$!==0&&$!==F.retryLane&&(F.retryLane=$,dl(m,$),Ws(C,m,$,-1))}return hw(),C=zb(Error(n(421))),Dg(m,v,te,C)}return $.data==="$?"?(v.flags|=128,v.child=m.child,v=dZ.bind(null,m),$._reactRetry=v,null):(m=F.treeContext,Ko=Xl($.nextSibling),Go=v,Fr=!0,Us=null,m!==null&&(gs[vs++]=cl,gs[vs++]=fl,gs[vs++]=lc,cl=m.id,fl=m.overflow,lc=v),v=Gb(v,C.children),v.flags|=4096,v)}function W2(m,v,w){m.lanes|=v;var C=m.alternate;C!==null&&(C.lanes|=v),Eb(m.return,v,w)}function Kb(m,v,w,C,$){var F=m.memoizedState;F===null?m.memoizedState={isBackwards:v,rendering:null,renderingStartTime:0,last:C,tail:w,tailMode:$}:(F.isBackwards=v,F.rendering=null,F.renderingStartTime=0,F.last=C,F.tail=w,F.tailMode=$)}function Z2(m,v,w){var C=v.pendingProps,$=C.revealOrder,F=C.tail;if(co(m,v,C.children,w),C=Vr.current,(C&2)!==0)C=C&1|2,v.flags|=128;else{if(m!==null&&(m.flags&128)!==0)e:for(m=v.child;m!==null;){if(m.tag===13)m.memoizedState!==null&&W2(m,w,v);else if(m.tag===19)W2(m,w,v);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===v)break e;for(;m.sibling===null;){if(m.return===null||m.return===v)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}C&=1}if(xr(Vr,C),(v.mode&1)===0)v.memoizedState=null;else switch($){case"forwards":for(w=v.child,$=null;w!==null;)m=w.alternate,m!==null&&Pg(m)===null&&($=w),w=w.sibling;w=$,w===null?($=v.child,v.child=null):($=w.sibling,w.sibling=null),Kb(v,!1,$,w,F);break;case"backwards":for(w=null,$=v.child,v.child=null;$!==null;){if(m=$.alternate,m!==null&&Pg(m)===null){v.child=$;break}m=$.sibling,$.sibling=w,w=$,$=m}Kb(v,!0,w,null,F);break;case"together":Kb(v,!1,null,null,void 0);break;default:v.memoizedState=null}return v.child}function Ig(m,v){(v.mode&1)===0&&m!==null&&(m.alternate=null,v.alternate=null,v.flags|=2)}function pl(m,v,w){if(m!==null&&(v.dependencies=m.dependencies),hc|=v.lanes,(w&v.childLanes)===0)return null;if(m!==null&&v.child!==m.child)throw Error(n(153));if(v.child!==null){for(m=v.child,w=ou(m,m.pendingProps),v.child=w,w.return=v;m.sibling!==null;)m=m.sibling,w=w.sibling=ou(m,m.pendingProps),w.return=v;w.sibling=null}return v.child}function eZ(m,v,w){switch(v.tag){case 3:q2(v),Of();break;case 5:a2(v);break;case 1:Eo(v.type)&&gg(v);break;case 4:Ab(v,v.stateNode.containerInfo);break;case 10:var C=v.type._context,$=v.memoizedProps.value;xr(Sg,C._currentValue),C._currentValue=$;break;case 13:if(C=v.memoizedState,C!==null)return C.dehydrated!==null?(xr(Vr,Vr.current&1),v.flags|=128,null):(w&v.child.childLanes)!==0?z2(m,v,w):(xr(Vr,Vr.current&1),m=pl(m,v,w),m!==null?m.sibling:null);xr(Vr,Vr.current&1);break;case 19:if(C=(w&v.childLanes)!==0,(m.flags&128)!==0){if(C)return Z2(m,v,w);v.flags|=128}if($=v.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),xr(Vr,Vr.current),C)break;return null;case 22:case 23:return v.lanes=0,F2(m,v,w)}return pl(m,v,w)}var X2,Jb,H2,Y2;X2=function(m,v){for(var w=v.child;w!==null;){if(w.tag===5||w.tag===6)m.appendChild(w.stateNode);else if(w.tag!==4&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===v)break;for(;w.sibling===null;){if(w.return===null||w.return===v)return;w=w.return}w.sibling.return=w.return,w=w.sibling}},Jb=function(){},H2=function(m,v,w,C){var $=m.memoizedProps;if($!==C){m=v.stateNode,fc(ga.current);var F=null;switch(w){case"input":$=Q(m,$),C=Q(m,C),F=[];break;case"select":$=U({},$,{value:void 0}),C=U({},C,{value:void 0}),F=[];break;case"textarea":$=Pe(m,$),C=Pe(m,C),F=[];break;default:typeof $.onClick!="function"&&typeof C.onClick=="function"&&(m.onclick=hg)}pt(w,C);var te;w=null;for(Ue in $)if(!C.hasOwnProperty(Ue)&&$.hasOwnProperty(Ue)&&$[Ue]!=null)if(Ue==="style"){var he=$[Ue];for(te in he)he.hasOwnProperty(te)&&(w||(w={}),w[te]="")}else Ue!=="dangerouslySetInnerHTML"&&Ue!=="children"&&Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&Ue!=="autoFocus"&&(i.hasOwnProperty(Ue)?F||(F=[]):(F=F||[]).push(Ue,null));for(Ue in C){var xe=C[Ue];if(he=$?.[Ue],C.hasOwnProperty(Ue)&&xe!==he&&(xe!=null||he!=null))if(Ue==="style")if(he){for(te in he)!he.hasOwnProperty(te)||xe&&xe.hasOwnProperty(te)||(w||(w={}),w[te]="");for(te in xe)xe.hasOwnProperty(te)&&he[te]!==xe[te]&&(w||(w={}),w[te]=xe[te])}else w||(F||(F=[]),F.push(Ue,w)),w=xe;else Ue==="dangerouslySetInnerHTML"?(xe=xe?xe.__html:void 0,he=he?he.__html:void 0,xe!=null&&he!==xe&&(F=F||[]).push(Ue,xe)):Ue==="children"?typeof xe!="string"&&typeof xe!="number"||(F=F||[]).push(Ue,""+xe):Ue!=="suppressContentEditableWarning"&&Ue!=="suppressHydrationWarning"&&(i.hasOwnProperty(Ue)?(xe!=null&&Ue==="onScroll"&&Rr("scroll",m),F||he===xe||(F=[])):(F=F||[]).push(Ue,xe))}w&&(F=F||[]).push("style",w);var Ue=F;(v.updateQueue=Ue)&&(v.flags|=4)}},Y2=function(m,v,w,C){w!==C&&(v.flags|=4)};function Rh(m,v){if(!Fr)switch(m.tailMode){case"hidden":v=m.tail;for(var w=null;v!==null;)v.alternate!==null&&(w=v),v=v.sibling;w===null?m.tail=null:w.sibling=null;break;case"collapsed":w=m.tail;for(var C=null;w!==null;)w.alternate!==null&&(C=w),w=w.sibling;C===null?v||m.tail===null?m.tail=null:m.tail.sibling=null:C.sibling=null}}function Yi(m){var v=m.alternate!==null&&m.alternate.child===m.child,w=0,C=0;if(v)for(var $=m.child;$!==null;)w|=$.lanes|$.childLanes,C|=$.subtreeFlags&14680064,C|=$.flags&14680064,$.return=m,$=$.sibling;else for($=m.child;$!==null;)w|=$.lanes|$.childLanes,C|=$.subtreeFlags,C|=$.flags,$.return=m,$=$.sibling;return m.subtreeFlags|=C,m.childLanes=w,v}function tZ(m,v,w){var C=v.pendingProps;switch(wb(v),v.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yi(v),null;case 1:return Eo(v.type)&&mg(),Yi(v),null;case 3:return C=v.stateNode,kf(),Ar(Co),Ar(Xi),Ib(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(m===null||m.child===null)&&(bg(v)?v.flags|=4:m===null||m.memoizedState.isDehydrated&&(v.flags&256)===0||(v.flags|=1024,Us!==null&&(cw(Us),Us=null))),Jb(m,v),Yi(v),null;case 5:Mb(v);var $=fc(_h.current);if(w=v.type,m!==null&&v.stateNode!=null)H2(m,v,w,C,$),m.ref!==v.ref&&(v.flags|=512,v.flags|=2097152);else{if(!C){if(v.stateNode===null)throw Error(n(166));return Yi(v),null}if(m=fc(ga.current),bg(v)){C=v.stateNode,w=v.type;var F=v.memoizedProps;switch(C[ma]=v,C[bh]=F,m=(v.mode&1)!==0,w){case"dialog":Rr("cancel",C),Rr("close",C);break;case"iframe":case"object":case"embed":Rr("load",C);break;case"video":case"audio":for($=0;$<vh.length;$++)Rr(vh[$],C);break;case"source":Rr("error",C);break;case"img":case"image":case"link":Rr("error",C),Rr("load",C);break;case"details":Rr("toggle",C);break;case"input":ve(C,F),Rr("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!F.multiple},Rr("invalid",C);break;case"textarea":V(C,F),Rr("invalid",C)}pt(w,F),$=null;for(var te in F)if(F.hasOwnProperty(te)){var he=F[te];te==="children"?typeof he=="string"?C.textContent!==he&&(F.suppressHydrationWarning!==!0&&dg(C.textContent,he,m),$=["children",he]):typeof he=="number"&&C.textContent!==""+he&&(F.suppressHydrationWarning!==!0&&dg(C.textContent,he,m),$=["children",""+he]):i.hasOwnProperty(te)&&he!=null&&te==="onScroll"&&Rr("scroll",C)}switch(w){case"input":we(C),oe(C,F,!0);break;case"textarea":we(C),_e(C);break;case"select":case"option":break;default:typeof F.onClick=="function"&&(C.onclick=hg)}C=$,v.updateQueue=C,C!==null&&(v.flags|=4)}else{te=$.nodeType===9?$:$.ownerDocument,m==="http://www.w3.org/1999/xhtml"&&(m=de(w)),m==="http://www.w3.org/1999/xhtml"?w==="script"?(m=te.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild)):typeof C.is=="string"?m=te.createElement(w,{is:C.is}):(m=te.createElement(w),w==="select"&&(te=m,C.multiple?te.multiple=!0:C.size&&(te.size=C.size))):m=te.createElementNS(m,w),m[ma]=v,m[bh]=C,X2(m,v,!1,!1),v.stateNode=m;e:{switch(te=It(w,C),w){case"dialog":Rr("cancel",m),Rr("close",m),$=C;break;case"iframe":case"object":case"embed":Rr("load",m),$=C;break;case"video":case"audio":for($=0;$<vh.length;$++)Rr(vh[$],m);$=C;break;case"source":Rr("error",m),$=C;break;case"img":case"image":case"link":Rr("error",m),Rr("load",m),$=C;break;case"details":Rr("toggle",m),$=C;break;case"input":ve(m,C),$=Q(m,C),Rr("invalid",m);break;case"option":$=C;break;case"select":m._wrapperState={wasMultiple:!!C.multiple},$=U({},C,{value:void 0}),Rr("invalid",m);break;case"textarea":V(m,C),$=Pe(m,C),Rr("invalid",m);break;default:$=C}pt(w,$),he=$;for(F in he)if(he.hasOwnProperty(F)){var xe=he[F];F==="style"?dt(m,xe):F==="dangerouslySetInnerHTML"?(xe=xe?xe.__html:void 0,xe!=null&&et(m,xe)):F==="children"?typeof xe=="string"?(w!=="textarea"||xe!=="")&&st(m,xe):typeof xe=="number"&&st(m,""+xe):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(i.hasOwnProperty(F)?xe!=null&&F==="onScroll"&&Rr("scroll",m):xe!=null&&S(m,F,xe,te))}switch(w){case"input":we(m),oe(m,C,!1);break;case"textarea":we(m),_e(m);break;case"option":C.value!=null&&m.setAttribute("value",""+X(C.value));break;case"select":m.multiple=!!C.multiple,F=C.value,F!=null?Fe(m,!!C.multiple,F,!1):C.defaultValue!=null&&Fe(m,!!C.multiple,C.defaultValue,!0);break;default:typeof $.onClick=="function"&&(m.onclick=hg)}switch(w){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(v.flags|=4)}v.ref!==null&&(v.flags|=512,v.flags|=2097152)}return Yi(v),null;case 6:if(m&&v.stateNode!=null)Y2(m,v,m.memoizedProps,C);else{if(typeof C!="string"&&v.stateNode===null)throw Error(n(166));if(w=fc(_h.current),fc(ga.current),bg(v)){if(C=v.stateNode,w=v.memoizedProps,C[ma]=v,(F=C.nodeValue!==w)&&(m=Go,m!==null))switch(m.tag){case 3:dg(C.nodeValue,w,(m.mode&1)!==0);break;case 5:m.memoizedProps.suppressHydrationWarning!==!0&&dg(C.nodeValue,w,(m.mode&1)!==0)}F&&(v.flags|=4)}else C=(w.nodeType===9?w:w.ownerDocument).createTextNode(C),C[ma]=v,v.stateNode=C}return Yi(v),null;case 13:if(Ar(Vr),C=v.memoizedState,m===null||m.memoizedState!==null&&m.memoizedState.dehydrated!==null){if(Fr&&Ko!==null&&(v.mode&1)!==0&&(v.flags&128)===0)JR(),Of(),v.flags|=98560,F=!1;else if(F=bg(v),C!==null&&C.dehydrated!==null){if(m===null){if(!F)throw Error(n(318));if(F=v.memoizedState,F=F!==null?F.dehydrated:null,!F)throw Error(n(317));F[ma]=v}else Of(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;Yi(v),F=!1}else Us!==null&&(cw(Us),Us=null),F=!0;if(!F)return v.flags&65536?v:null}return(v.flags&128)!==0?(v.lanes=w,v):(C=C!==null,C!==(m!==null&&m.memoizedState!==null)&&C&&(v.child.flags|=8192,(v.mode&1)!==0&&(m===null||(Vr.current&1)!==0?yi===0&&(yi=3):hw())),v.updateQueue!==null&&(v.flags|=4),Yi(v),null);case 4:return kf(),Jb(m,v),m===null&&yh(v.stateNode.containerInfo),Yi(v),null;case 10:return Cb(v.type._context),Yi(v),null;case 17:return Eo(v.type)&&mg(),Yi(v),null;case 19:if(Ar(Vr),F=v.memoizedState,F===null)return Yi(v),null;if(C=(v.flags&128)!==0,te=F.rendering,te===null)if(C)Rh(F,!1);else{if(yi!==0||m!==null&&(m.flags&128)!==0)for(m=v.child;m!==null;){if(te=Pg(m),te!==null){for(v.flags|=128,Rh(F,!1),C=te.updateQueue,C!==null&&(v.updateQueue=C,v.flags|=4),v.subtreeFlags=0,C=w,w=v.child;w!==null;)F=w,m=C,F.flags&=14680066,te=F.alternate,te===null?(F.childLanes=0,F.lanes=m,F.child=null,F.subtreeFlags=0,F.memoizedProps=null,F.memoizedState=null,F.updateQueue=null,F.dependencies=null,F.stateNode=null):(F.childLanes=te.childLanes,F.lanes=te.lanes,F.child=te.child,F.subtreeFlags=0,F.deletions=null,F.memoizedProps=te.memoizedProps,F.memoizedState=te.memoizedState,F.updateQueue=te.updateQueue,F.type=te.type,m=te.dependencies,F.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext}),w=w.sibling;return xr(Vr,Vr.current&1|2),v.child}m=m.sibling}F.tail!==null&&wn()>Cf&&(v.flags|=128,C=!0,Rh(F,!1),v.lanes=4194304)}else{if(!C)if(m=Pg(te),m!==null){if(v.flags|=128,C=!0,w=m.updateQueue,w!==null&&(v.updateQueue=w,v.flags|=4),Rh(F,!0),F.tail===null&&F.tailMode==="hidden"&&!te.alternate&&!Fr)return Yi(v),null}else 2*wn()-F.renderingStartTime>Cf&&w!==1073741824&&(v.flags|=128,C=!0,Rh(F,!1),v.lanes=4194304);F.isBackwards?(te.sibling=v.child,v.child=te):(w=F.last,w!==null?w.sibling=te:v.child=te,F.last=te)}return F.tail!==null?(v=F.tail,F.rendering=v,F.tail=v.sibling,F.renderingStartTime=wn(),v.sibling=null,w=Vr.current,xr(Vr,C?w&1|2:w&1),v):(Yi(v),null);case 22:case 23:return dw(),C=v.memoizedState!==null,m!==null&&m.memoizedState!==null!==C&&(v.flags|=8192),C&&(v.mode&1)!==0?(Jo&1073741824)!==0&&(Yi(v),v.subtreeFlags&6&&(v.flags|=8192)):Yi(v),null;case 24:return null;case 25:return null}throw Error(n(156,v.tag))}function nZ(m,v){switch(wb(v),v.tag){case 1:return Eo(v.type)&&mg(),m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 3:return kf(),Ar(Co),Ar(Xi),Ib(),m=v.flags,(m&65536)!==0&&(m&128)===0?(v.flags=m&-65537|128,v):null;case 5:return Mb(v),null;case 13:if(Ar(Vr),m=v.memoizedState,m!==null&&m.dehydrated!==null){if(v.alternate===null)throw Error(n(340));Of()}return m=v.flags,m&65536?(v.flags=m&-65537|128,v):null;case 19:return Ar(Vr),null;case 4:return kf(),null;case 10:return Cb(v.type._context),null;case 22:case 23:return dw(),null;case 24:return null;default:return null}}var $g=!1,Gi=!1,rZ=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function _f(m,v){var w=m.ref;if(w!==null)if(typeof w=="function")try{w(null)}catch(C){Yr(m,v,C)}else w.current=null}function ew(m,v,w){try{w()}catch(C){Yr(m,v,C)}}var G2=!1;function iZ(m,v){if(db=nl,m=TR(),ib(m)){if("selectionStart"in m)var w={start:m.selectionStart,end:m.selectionEnd};else e:{w=(w=m.ownerDocument)&&w.defaultView||window;var C=w.getSelection&&w.getSelection();if(C&&C.rangeCount!==0){w=C.anchorNode;var $=C.anchorOffset,F=C.focusNode;C=C.focusOffset;try{w.nodeType,F.nodeType}catch{w=null;break e}var te=0,he=-1,xe=-1,Ue=0,vt=0,Ot=m,gt=null;t:for(;;){for(var Bt;Ot!==w||$!==0&&Ot.nodeType!==3||(he=te+$),Ot!==F||C!==0&&Ot.nodeType!==3||(xe=te+C),Ot.nodeType===3&&(te+=Ot.nodeValue.length),(Bt=Ot.firstChild)!==null;)gt=Ot,Ot=Bt;for(;;){if(Ot===m)break t;if(gt===w&&++Ue===$&&(he=te),gt===F&&++vt===C&&(xe=te),(Bt=Ot.nextSibling)!==null)break;Ot=gt,gt=Ot.parentNode}Ot=Bt}w=he===-1||xe===-1?null:{start:he,end:xe}}else w=null}w=w||{start:0,end:0}}else w=null;for(hb={focusedElem:m,selectionRange:w},nl=!1,Wt=v;Wt!==null;)if(v=Wt,m=v.child,(v.subtreeFlags&1028)!==0&&m!==null)m.return=v,Wt=m;else for(;Wt!==null;){v=Wt;try{var Zt=v.alternate;if((v.flags&1024)!==0)switch(v.tag){case 0:case 11:case 15:break;case 1:if(Zt!==null){var en=Zt.memoizedProps,ti=Zt.memoizedState,Ie=v.stateNode,Ce=Ie.getSnapshotBeforeUpdate(v.elementType===v.type?en:qs(v.type,en),ti);Ie.__reactInternalSnapshotBeforeUpdate=Ce}break;case 3:var je=v.stateNode.containerInfo;je.nodeType===1?je.textContent="":je.nodeType===9&&je.documentElement&&je.removeChild(je.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(xt){Yr(v,v.return,xt)}if(m=v.sibling,m!==null){m.return=v.return,Wt=m;break}Wt=v.return}return Zt=G2,G2=!1,Zt}function Ah(m,v,w){var C=v.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var $=C=C.next;do{if(($.tag&m)===m){var F=$.destroy;$.destroy=void 0,F!==void 0&&ew(v,w,F)}$=$.next}while($!==C)}}function Ng(m,v){if(v=v.updateQueue,v=v!==null?v.lastEffect:null,v!==null){var w=v=v.next;do{if((w.tag&m)===m){var C=w.create;w.destroy=C()}w=w.next}while(w!==v)}}function tw(m){var v=m.ref;if(v!==null){var w=m.stateNode;switch(m.tag){case 5:m=w;break;default:m=w}typeof v=="function"?v(m):v.current=m}}function K2(m){var v=m.alternate;v!==null&&(m.alternate=null,K2(v)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(v=m.stateNode,v!==null&&(delete v[ma],delete v[bh],delete v[vb],delete v[FW],delete v[BW])),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function J2(m){return m.tag===5||m.tag===3||m.tag===4}function eA(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||J2(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function nw(m,v,w){var C=m.tag;if(C===5||C===6)m=m.stateNode,v?w.nodeType===8?w.parentNode.insertBefore(m,v):w.insertBefore(m,v):(w.nodeType===8?(v=w.parentNode,v.insertBefore(m,w)):(v=w,v.appendChild(m)),w=w._reactRootContainer,w!=null||v.onclick!==null||(v.onclick=hg));else if(C!==4&&(m=m.child,m!==null))for(nw(m,v,w),m=m.sibling;m!==null;)nw(m,v,w),m=m.sibling}function rw(m,v,w){var C=m.tag;if(C===5||C===6)m=m.stateNode,v?w.insertBefore(m,v):w.appendChild(m);else if(C!==4&&(m=m.child,m!==null))for(rw(m,v,w),m=m.sibling;m!==null;)rw(m,v,w),m=m.sibling}var Ni=null,Vs=!1;function eu(m,v,w){for(w=w.child;w!==null;)tA(m,v,w),w=w.sibling}function tA(m,v,w){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(Ae,w)}catch{}switch(w.tag){case 5:Gi||_f(w,v);case 6:var C=Ni,$=Vs;Ni=null,eu(m,v,w),Ni=C,Vs=$,Ni!==null&&(Vs?(m=Ni,w=w.stateNode,m.nodeType===8?m.parentNode.removeChild(w):m.removeChild(w)):Ni.removeChild(w.stateNode));break;case 18:Ni!==null&&(Vs?(m=Ni,w=w.stateNode,m.nodeType===8?gb(m.parentNode,w):m.nodeType===1&&gb(m,w),Ls(m)):gb(Ni,w.stateNode));break;case 4:C=Ni,$=Vs,Ni=w.stateNode.containerInfo,Vs=!0,eu(m,v,w),Ni=C,Vs=$;break;case 0:case 11:case 14:case 15:if(!Gi&&(C=w.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){$=C=C.next;do{var F=$,te=F.destroy;F=F.tag,te!==void 0&&((F&2)!==0||(F&4)!==0)&&ew(w,v,te),$=$.next}while($!==C)}eu(m,v,w);break;case 1:if(!Gi&&(_f(w,v),C=w.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=w.memoizedProps,C.state=w.memoizedState,C.componentWillUnmount()}catch(he){Yr(w,v,he)}eu(m,v,w);break;case 21:eu(m,v,w);break;case 22:w.mode&1?(Gi=(C=Gi)||w.memoizedState!==null,eu(m,v,w),Gi=C):eu(m,v,w);break;default:eu(m,v,w)}}function nA(m){var v=m.updateQueue;if(v!==null){m.updateQueue=null;var w=m.stateNode;w===null&&(w=m.stateNode=new rZ),v.forEach(function(C){var $=hZ.bind(null,m,C);w.has(C)||(w.add(C),C.then($,$))})}}function zs(m,v){var w=v.deletions;if(w!==null)for(var C=0;C<w.length;C++){var $=w[C];try{var F=m,te=v,he=te;e:for(;he!==null;){switch(he.tag){case 5:Ni=he.stateNode,Vs=!1;break e;case 3:Ni=he.stateNode.containerInfo,Vs=!0;break e;case 4:Ni=he.stateNode.containerInfo,Vs=!0;break e}he=he.return}if(Ni===null)throw Error(n(160));tA(F,te,$),Ni=null,Vs=!1;var xe=$.alternate;xe!==null&&(xe.return=null),$.return=null}catch(Ue){Yr($,v,Ue)}}if(v.subtreeFlags&12854)for(v=v.child;v!==null;)rA(v,m),v=v.sibling}function rA(m,v){var w=m.alternate,C=m.flags;switch(m.tag){case 0:case 11:case 14:case 15:if(zs(v,m),ya(m),C&4){try{Ah(3,m,m.return),Ng(3,m)}catch(en){Yr(m,m.return,en)}try{Ah(5,m,m.return)}catch(en){Yr(m,m.return,en)}}break;case 1:zs(v,m),ya(m),C&512&&w!==null&&_f(w,w.return);break;case 5:if(zs(v,m),ya(m),C&512&&w!==null&&_f(w,w.return),m.flags&32){var $=m.stateNode;try{st($,"")}catch(en){Yr(m,m.return,en)}}if(C&4&&($=m.stateNode,$!=null)){var F=m.memoizedProps,te=w!==null?w.memoizedProps:F,he=m.type,xe=m.updateQueue;if(m.updateQueue=null,xe!==null)try{he==="input"&&F.type==="radio"&&F.name!=null&&ge($,F),It(he,te);var Ue=It(he,F);for(te=0;te<xe.length;te+=2){var vt=xe[te],Ot=xe[te+1];vt==="style"?dt($,Ot):vt==="dangerouslySetInnerHTML"?et($,Ot):vt==="children"?st($,Ot):S($,vt,Ot,Ue)}switch(he){case"input":ie($,F);break;case"textarea":ye($,F);break;case"select":var gt=$._wrapperState.wasMultiple;$._wrapperState.wasMultiple=!!F.multiple;var Bt=F.value;Bt!=null?Fe($,!!F.multiple,Bt,!1):gt!==!!F.multiple&&(F.defaultValue!=null?Fe($,!!F.multiple,F.defaultValue,!0):Fe($,!!F.multiple,F.multiple?[]:"",!1))}$[bh]=F}catch(en){Yr(m,m.return,en)}}break;case 6:if(zs(v,m),ya(m),C&4){if(m.stateNode===null)throw Error(n(162));$=m.stateNode,F=m.memoizedProps;try{$.nodeValue=F}catch(en){Yr(m,m.return,en)}}break;case 3:if(zs(v,m),ya(m),C&4&&w!==null&&w.memoizedState.isDehydrated)try{Ls(v.containerInfo)}catch(en){Yr(m,m.return,en)}break;case 4:zs(v,m),ya(m);break;case 13:zs(v,m),ya(m),$=m.child,$.flags&8192&&(F=$.memoizedState!==null,$.stateNode.isHidden=F,!F||$.alternate!==null&&$.alternate.memoizedState!==null||(sw=wn())),C&4&&nA(m);break;case 22:if(vt=w!==null&&w.memoizedState!==null,m.mode&1?(Gi=(Ue=Gi)||vt,zs(v,m),Gi=Ue):zs(v,m),ya(m),C&8192){if(Ue=m.memoizedState!==null,(m.stateNode.isHidden=Ue)&&!vt&&(m.mode&1)!==0)for(Wt=m,vt=m.child;vt!==null;){for(Ot=Wt=vt;Wt!==null;){switch(gt=Wt,Bt=gt.child,gt.tag){case 0:case 11:case 14:case 15:Ah(4,gt,gt.return);break;case 1:_f(gt,gt.return);var Zt=gt.stateNode;if(typeof Zt.componentWillUnmount=="function"){C=gt,w=gt.return;try{v=C,Zt.props=v.memoizedProps,Zt.state=v.memoizedState,Zt.componentWillUnmount()}catch(en){Yr(C,w,en)}}break;case 5:_f(gt,gt.return);break;case 22:if(gt.memoizedState!==null){sA(Ot);continue}}Bt!==null?(Bt.return=gt,Wt=Bt):sA(Ot)}vt=vt.sibling}e:for(vt=null,Ot=m;;){if(Ot.tag===5){if(vt===null){vt=Ot;try{$=Ot.stateNode,Ue?(F=$.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none"):(he=Ot.stateNode,xe=Ot.memoizedProps.style,te=xe!=null&&xe.hasOwnProperty("display")?xe.display:null,he.style.display=We("display",te))}catch(en){Yr(m,m.return,en)}}}else if(Ot.tag===6){if(vt===null)try{Ot.stateNode.nodeValue=Ue?"":Ot.memoizedProps}catch(en){Yr(m,m.return,en)}}else if((Ot.tag!==22&&Ot.tag!==23||Ot.memoizedState===null||Ot===m)&&Ot.child!==null){Ot.child.return=Ot,Ot=Ot.child;continue}if(Ot===m)break e;for(;Ot.sibling===null;){if(Ot.return===null||Ot.return===m)break e;vt===Ot&&(vt=null),Ot=Ot.return}vt===Ot&&(vt=null),Ot.sibling.return=Ot.return,Ot=Ot.sibling}}break;case 19:zs(v,m),ya(m),C&4&&nA(m);break;case 21:break;default:zs(v,m),ya(m)}}function ya(m){var v=m.flags;if(v&2){try{e:{for(var w=m.return;w!==null;){if(J2(w)){var C=w;break e}w=w.return}throw Error(n(160))}switch(C.tag){case 5:var $=C.stateNode;C.flags&32&&(st($,""),C.flags&=-33);var F=eA(m);rw(m,F,$);break;case 3:case 4:var te=C.stateNode.containerInfo,he=eA(m);nw(m,he,te);break;default:throw Error(n(161))}}catch(xe){Yr(m,m.return,xe)}m.flags&=-3}v&4096&&(m.flags&=-4097)}function oZ(m,v,w){Wt=m,iA(m)}function iA(m,v,w){for(var C=(m.mode&1)!==0;Wt!==null;){var $=Wt,F=$.child;if($.tag===22&&C){var te=$.memoizedState!==null||$g;if(!te){var he=$.alternate,xe=he!==null&&he.memoizedState!==null||Gi;he=$g;var Ue=Gi;if($g=te,(Gi=xe)&&!Ue)for(Wt=$;Wt!==null;)te=Wt,xe=te.child,te.tag===22&&te.memoizedState!==null?aA($):xe!==null?(xe.return=te,Wt=xe):aA($);for(;F!==null;)Wt=F,iA(F),F=F.sibling;Wt=$,$g=he,Gi=Ue}oA(m)}else($.subtreeFlags&8772)!==0&&F!==null?(F.return=$,Wt=F):oA(m)}}function oA(m){for(;Wt!==null;){var v=Wt;if((v.flags&8772)!==0){var w=v.alternate;try{if((v.flags&8772)!==0)switch(v.tag){case 0:case 11:case 15:Gi||Ng(5,v);break;case 1:var C=v.stateNode;if(v.flags&4&&!Gi)if(w===null)C.componentDidMount();else{var $=v.elementType===v.type?w.memoizedProps:qs(v.type,w.memoizedProps);C.componentDidUpdate($,w.memoizedState,C.__reactInternalSnapshotBeforeUpdate)}var F=v.updateQueue;F!==null&&s2(v,F,C);break;case 3:var te=v.updateQueue;if(te!==null){if(w=null,v.child!==null)switch(v.child.tag){case 5:w=v.child.stateNode;break;case 1:w=v.child.stateNode}s2(v,te,w)}break;case 5:var he=v.stateNode;if(w===null&&v.flags&4){w=he;var xe=v.memoizedProps;switch(v.type){case"button":case"input":case"select":case"textarea":xe.autoFocus&&w.focus();break;case"img":xe.src&&(w.src=xe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(v.memoizedState===null){var Ue=v.alternate;if(Ue!==null){var vt=Ue.memoizedState;if(vt!==null){var Ot=vt.dehydrated;Ot!==null&&Ls(Ot)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Gi||v.flags&512&&tw(v)}catch(gt){Yr(v,v.return,gt)}}if(v===m){Wt=null;break}if(w=v.sibling,w!==null){w.return=v.return,Wt=w;break}Wt=v.return}}function sA(m){for(;Wt!==null;){var v=Wt;if(v===m){Wt=null;break}var w=v.sibling;if(w!==null){w.return=v.return,Wt=w;break}Wt=v.return}}function aA(m){for(;Wt!==null;){var v=Wt;try{switch(v.tag){case 0:case 11:case 15:var w=v.return;try{Ng(4,v)}catch(xe){Yr(v,w,xe)}break;case 1:var C=v.stateNode;if(typeof C.componentDidMount=="function"){var $=v.return;try{C.componentDidMount()}catch(xe){Yr(v,$,xe)}}var F=v.return;try{tw(v)}catch(xe){Yr(v,F,xe)}break;case 5:var te=v.return;try{tw(v)}catch(xe){Yr(v,te,xe)}}}catch(xe){Yr(v,v.return,xe)}if(v===m){Wt=null;break}var he=v.sibling;if(he!==null){he.return=v.return,Wt=he;break}Wt=v.return}}var sZ=Math.ceil,Lg=k.ReactCurrentDispatcher,iw=k.ReactCurrentOwner,bs=k.ReactCurrentBatchConfig,rr=0,Ci=null,si=null,Li=0,Jo=0,Pf=Hl(0),yi=0,Mh=null,hc=0,jg=0,ow=0,Dh=null,Ro=null,sw=0,Cf=1/0,ml=null,Qg=!1,aw=null,tu=null,Fg=!1,nu=null,Bg=0,Ih=0,lw=null,Ug=-1,qg=0;function fo(){return(rr&6)!==0?wn():Ug!==-1?Ug:Ug=wn()}function ru(m){return(m.mode&1)===0?1:(rr&2)!==0&&Li!==0?Li&-Li:qW.transition!==null?(qg===0&&(qg=Mn()),qg):(m=dn,m!==0||(m=window.event,m=m===void 0?16:rc(m.type)),m)}function Ws(m,v,w,C){if(50<Ih)throw Ih=0,lw=null,Error(n(185));Ft(m,w,C),((rr&2)===0||m!==Ci)&&(m===Ci&&((rr&2)===0&&(jg|=w),yi===4&&iu(m,Li)),Ao(m,C),w===1&&rr===0&&(v.mode&1)===0&&(Cf=wn()+500,vg&&Gl()))}function Ao(m,v){var w=m.callbackNode;Qt(m,v);var C=Sn(m,m===Ci?Li:0);if(C===0)w!==null&&Ct(w),m.callbackNode=null,m.callbackPriority=0;else if(v=C&-C,m.callbackPriority!==v){if(w!=null&&Ct(w),v===1)m.tag===0?UW(uA.bind(null,m)):XR(uA.bind(null,m)),jW(function(){(rr&6)===0&&Gl()}),w=null;else{switch(Xr(C)){case 1:w=lr;break;case 4:w=ce;break;case 16:w=le;break;case 536870912:w=Xe;break;default:w=le}w=vA(w,lA.bind(null,m))}m.callbackPriority=v,m.callbackNode=w}}function lA(m,v){if(Ug=-1,qg=0,(rr&6)!==0)throw Error(n(327));var w=m.callbackNode;if(Ef()&&m.callbackNode!==w)return null;var C=Sn(m,m===Ci?Li:0);if(C===0)return null;if((C&30)!==0||(C&m.expiredLanes)!==0||v)v=Vg(m,C);else{v=C;var $=rr;rr|=2;var F=fA();(Ci!==m||Li!==v)&&(ml=null,Cf=wn()+500,mc(m,v));do try{uZ();break}catch(he){cA(m,he)}while(!0);Pb(),Lg.current=F,rr=$,si!==null?v=0:(Ci=null,Li=0,v=yi)}if(v!==0){if(v===2&&($=fn(m),$!==0&&(C=$,v=uw(m,$))),v===1)throw w=Mh,mc(m,0),iu(m,C),Ao(m,wn()),w;if(v===6)iu(m,C);else{if($=m.current.alternate,(C&30)===0&&!aZ($)&&(v=Vg(m,C),v===2&&(F=fn(m),F!==0&&(C=F,v=uw(m,F))),v===1))throw w=Mh,mc(m,0),iu(m,C),Ao(m,wn()),w;switch(m.finishedWork=$,m.finishedLanes=C,v){case 0:case 1:throw Error(n(345));case 2:gc(m,Ro,ml);break;case 3:if(iu(m,C),(C&130023424)===C&&(v=sw+500-wn(),10<v)){if(Sn(m,0)!==0)break;if($=m.suspendedLanes,($&C)!==C){fo(),m.pingedLanes|=m.suspendedLanes&$;break}m.timeoutHandle=mb(gc.bind(null,m,Ro,ml),v);break}gc(m,Ro,ml);break;case 4:if(iu(m,C),(C&4194240)===C)break;for(v=m.eventTimes,$=-1;0<C;){var te=31-ot(C);F=1<<te,te=v[te],te>$&&($=te),C&=~F}if(C=$,C=wn()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*sZ(C/1960))-C,10<C){m.timeoutHandle=mb(gc.bind(null,m,Ro,ml),C);break}gc(m,Ro,ml);break;case 5:gc(m,Ro,ml);break;default:throw Error(n(329))}}}return Ao(m,wn()),m.callbackNode===w?lA.bind(null,m):null}function uw(m,v){var w=Dh;return m.current.memoizedState.isDehydrated&&(mc(m,v).flags|=256),m=Vg(m,v),m!==2&&(v=Ro,Ro=w,v!==null&&cw(v)),m}function cw(m){Ro===null?Ro=m:Ro.push.apply(Ro,m)}function aZ(m){for(var v=m;;){if(v.flags&16384){var w=v.updateQueue;if(w!==null&&(w=w.stores,w!==null))for(var C=0;C<w.length;C++){var $=w[C],F=$.getSnapshot;$=$.value;try{if(!Bs(F(),$))return!1}catch{return!1}}}if(w=v.child,v.subtreeFlags&16384&&w!==null)w.return=v,v=w;else{if(v===m)break;for(;v.sibling===null;){if(v.return===null||v.return===m)return!0;v=v.return}v.sibling.return=v.return,v=v.sibling}}return!0}function iu(m,v){for(v&=~ow,v&=~jg,m.suspendedLanes|=v,m.pingedLanes&=~v,m=m.expirationTimes;0<v;){var w=31-ot(v),C=1<<w;m[w]=-1,v&=~C}}function uA(m){if((rr&6)!==0)throw Error(n(327));Ef();var v=Sn(m,0);if((v&1)===0)return Ao(m,wn()),null;var w=Vg(m,v);if(m.tag!==0&&w===2){var C=fn(m);C!==0&&(v=C,w=uw(m,C))}if(w===1)throw w=Mh,mc(m,0),iu(m,v),Ao(m,wn()),w;if(w===6)throw Error(n(345));return m.finishedWork=m.current.alternate,m.finishedLanes=v,gc(m,Ro,ml),Ao(m,wn()),null}function fw(m,v){var w=rr;rr|=1;try{return m(v)}finally{rr=w,rr===0&&(Cf=wn()+500,vg&&Gl())}}function pc(m){nu!==null&&nu.tag===0&&(rr&6)===0&&Ef();var v=rr;rr|=1;var w=bs.transition,C=dn;try{if(bs.transition=null,dn=1,m)return m()}finally{dn=C,bs.transition=w,rr=v,(rr&6)===0&&Gl()}}function dw(){Jo=Pf.current,Ar(Pf)}function mc(m,v){m.finishedWork=null,m.finishedLanes=0;var w=m.timeoutHandle;if(w!==-1&&(m.timeoutHandle=-1,LW(w)),si!==null)for(w=si.return;w!==null;){var C=w;switch(wb(C),C.tag){case 1:C=C.type.childContextTypes,C!=null&&mg();break;case 3:kf(),Ar(Co),Ar(Xi),Ib();break;case 5:Mb(C);break;case 4:kf();break;case 13:Ar(Vr);break;case 19:Ar(Vr);break;case 10:Cb(C.type._context);break;case 22:case 23:dw()}w=w.return}if(Ci=m,si=m=ou(m.current,null),Li=Jo=v,yi=0,Mh=null,ow=jg=hc=0,Ro=Dh=null,cc!==null){for(v=0;v<cc.length;v++)if(w=cc[v],C=w.interleaved,C!==null){w.interleaved=null;var $=C.next,F=w.pending;if(F!==null){var te=F.next;F.next=$,C.next=te}w.pending=C}cc=null}return m}function cA(m,v){do{var w=si;try{if(Pb(),Cg.current=Ag,Eg){for(var C=zr.memoizedState;C!==null;){var $=C.queue;$!==null&&($.pending=null),C=C.next}Eg=!1}if(dc=0,Pi=vi=zr=null,Ph=!1,Ch=0,iw.current=null,w===null||w.return===null){yi=1,Mh=v,si=null;break}e:{var F=m,te=w.return,he=w,xe=v;if(v=Li,he.flags|=32768,xe!==null&&typeof xe=="object"&&typeof xe.then=="function"){var Ue=xe,vt=he,Ot=vt.tag;if((vt.mode&1)===0&&(Ot===0||Ot===11||Ot===15)){var gt=vt.alternate;gt?(vt.updateQueue=gt.updateQueue,vt.memoizedState=gt.memoizedState,vt.lanes=gt.lanes):(vt.updateQueue=null,vt.memoizedState=null)}var Bt=$2(te);if(Bt!==null){Bt.flags&=-257,N2(Bt,te,he,F,v),Bt.mode&1&&I2(F,Ue,v),v=Bt,xe=Ue;var Zt=v.updateQueue;if(Zt===null){var en=new Set;en.add(xe),v.updateQueue=en}else Zt.add(xe);break e}else{if((v&1)===0){I2(F,Ue,v),hw();break e}xe=Error(n(426))}}else if(Fr&&he.mode&1){var ti=$2(te);if(ti!==null){(ti.flags&65536)===0&&(ti.flags|=256),N2(ti,te,he,F,v),xb(xf(xe,he));break e}}F=xe=xf(xe,he),yi!==4&&(yi=2),Dh===null?Dh=[F]:Dh.push(F),F=te;do{switch(F.tag){case 3:F.flags|=65536,v&=-v,F.lanes|=v;var Ie=M2(F,xe,v);o2(F,Ie);break e;case 1:he=xe;var Ce=F.type,je=F.stateNode;if((F.flags&128)===0&&(typeof Ce.getDerivedStateFromError=="function"||je!==null&&typeof je.componentDidCatch=="function"&&(tu===null||!tu.has(je)))){F.flags|=65536,v&=-v,F.lanes|=v;var xt=D2(F,he,v);o2(F,xt);break e}}F=F.return}while(F!==null)}hA(w)}catch(rn){v=rn,si===w&&w!==null&&(si=w=w.return);continue}break}while(!0)}function fA(){var m=Lg.current;return Lg.current=Ag,m===null?Ag:m}function hw(){(yi===0||yi===3||yi===2)&&(yi=4),Ci===null||(hc&268435455)===0&&(jg&268435455)===0||iu(Ci,Li)}function Vg(m,v){var w=rr;rr|=2;var C=fA();(Ci!==m||Li!==v)&&(ml=null,mc(m,v));do try{lZ();break}catch($){cA(m,$)}while(!0);if(Pb(),rr=w,Lg.current=C,si!==null)throw Error(n(261));return Ci=null,Li=0,yi}function lZ(){for(;si!==null;)dA(si)}function uZ(){for(;si!==null&&!ln();)dA(si)}function dA(m){var v=gA(m.alternate,m,Jo);m.memoizedProps=m.pendingProps,v===null?hA(m):si=v,iw.current=null}function hA(m){var v=m;do{var w=v.alternate;if(m=v.return,(v.flags&32768)===0){if(w=tZ(w,v,Jo),w!==null){si=w;return}}else{if(w=nZ(w,v),w!==null){w.flags&=32767,si=w;return}if(m!==null)m.flags|=32768,m.subtreeFlags=0,m.deletions=null;else{yi=6,si=null;return}}if(v=v.sibling,v!==null){si=v;return}si=v=m}while(v!==null);yi===0&&(yi=5)}function gc(m,v,w){var C=dn,$=bs.transition;try{bs.transition=null,dn=1,cZ(m,v,w,C)}finally{bs.transition=$,dn=C}return null}function cZ(m,v,w,C){do Ef();while(nu!==null);if((rr&6)!==0)throw Error(n(327));w=m.finishedWork;var $=m.finishedLanes;if(w===null)return null;if(m.finishedWork=null,m.finishedLanes=0,w===m.current)throw Error(n(177));m.callbackNode=null,m.callbackPriority=0;var F=w.lanes|w.childLanes;if(Bn(m,F),m===Ci&&(si=Ci=null,Li=0),(w.subtreeFlags&2064)===0&&(w.flags&2064)===0||Fg||(Fg=!0,vA(le,function(){return Ef(),null})),F=(w.flags&15990)!==0,(w.subtreeFlags&15990)!==0||F){F=bs.transition,bs.transition=null;var te=dn;dn=1;var he=rr;rr|=4,iw.current=null,iZ(m,w),rA(w,m),RW(hb),nl=!!db,hb=db=null,m.current=w,oZ(w),or(),rr=he,dn=te,bs.transition=F}else m.current=w;if(Fg&&(Fg=!1,nu=m,Bg=$),F=m.pendingLanes,F===0&&(tu=null),bt(w.stateNode),Ao(m,wn()),v!==null)for(C=m.onRecoverableError,w=0;w<v.length;w++)$=v[w],C($.value,{componentStack:$.stack,digest:$.digest});if(Qg)throw Qg=!1,m=aw,aw=null,m;return(Bg&1)!==0&&m.tag!==0&&Ef(),F=m.pendingLanes,(F&1)!==0?m===lw?Ih++:(Ih=0,lw=m):Ih=0,Gl(),null}function Ef(){if(nu!==null){var m=Xr(Bg),v=bs.transition,w=dn;try{if(bs.transition=null,dn=16>m?16:m,nu===null)var C=!1;else{if(m=nu,nu=null,Bg=0,(rr&6)!==0)throw Error(n(331));var $=rr;for(rr|=4,Wt=m.current;Wt!==null;){var F=Wt,te=F.child;if((Wt.flags&16)!==0){var he=F.deletions;if(he!==null){for(var xe=0;xe<he.length;xe++){var Ue=he[xe];for(Wt=Ue;Wt!==null;){var vt=Wt;switch(vt.tag){case 0:case 11:case 15:Ah(8,vt,F)}var Ot=vt.child;if(Ot!==null)Ot.return=vt,Wt=Ot;else for(;Wt!==null;){vt=Wt;var gt=vt.sibling,Bt=vt.return;if(K2(vt),vt===Ue){Wt=null;break}if(gt!==null){gt.return=Bt,Wt=gt;break}Wt=Bt}}}var Zt=F.alternate;if(Zt!==null){var en=Zt.child;if(en!==null){Zt.child=null;do{var ti=en.sibling;en.sibling=null,en=ti}while(en!==null)}}Wt=F}}if((F.subtreeFlags&2064)!==0&&te!==null)te.return=F,Wt=te;else e:for(;Wt!==null;){if(F=Wt,(F.flags&2048)!==0)switch(F.tag){case 0:case 11:case 15:Ah(9,F,F.return)}var Ie=F.sibling;if(Ie!==null){Ie.return=F.return,Wt=Ie;break e}Wt=F.return}}var Ce=m.current;for(Wt=Ce;Wt!==null;){te=Wt;var je=te.child;if((te.subtreeFlags&2064)!==0&&je!==null)je.return=te,Wt=je;else e:for(te=Ce;Wt!==null;){if(he=Wt,(he.flags&2048)!==0)try{switch(he.tag){case 0:case 11:case 15:Ng(9,he)}}catch(rn){Yr(he,he.return,rn)}if(he===te){Wt=null;break e}var xt=he.sibling;if(xt!==null){xt.return=he.return,Wt=xt;break e}Wt=he.return}}if(rr=$,Gl(),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(Ae,m)}catch{}C=!0}return C}finally{dn=w,bs.transition=v}}return!1}function pA(m,v,w){v=xf(w,v),v=M2(m,v,1),m=Jl(m,v,1),v=fo(),m!==null&&(Ft(m,1,v),Ao(m,v))}function Yr(m,v,w){if(m.tag===3)pA(m,m,w);else for(;v!==null;){if(v.tag===3){pA(v,m,w);break}else if(v.tag===1){var C=v.stateNode;if(typeof v.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(tu===null||!tu.has(C))){m=xf(w,m),m=D2(v,m,1),v=Jl(v,m,1),m=fo(),v!==null&&(Ft(v,1,m),Ao(v,m));break}}v=v.return}}function fZ(m,v,w){var C=m.pingCache;C!==null&&C.delete(v),v=fo(),m.pingedLanes|=m.suspendedLanes&w,Ci===m&&(Li&w)===w&&(yi===4||yi===3&&(Li&130023424)===Li&&500>wn()-sw?mc(m,0):ow|=w),Ao(m,v)}function mA(m,v){v===0&&((m.mode&1)===0?v=1:(v=jn,jn<<=1,(jn&130023424)===0&&(jn=4194304)));var w=fo();m=dl(m,v),m!==null&&(Ft(m,v,w),Ao(m,w))}function dZ(m){var v=m.memoizedState,w=0;v!==null&&(w=v.retryLane),mA(m,w)}function hZ(m,v){var w=0;switch(m.tag){case 13:var C=m.stateNode,$=m.memoizedState;$!==null&&(w=$.retryLane);break;case 19:C=m.stateNode;break;default:throw Error(n(314))}C!==null&&C.delete(v),mA(m,w)}var gA;gA=function(m,v,w){if(m!==null)if(m.memoizedProps!==v.pendingProps||Co.current)To=!0;else{if((m.lanes&w)===0&&(v.flags&128)===0)return To=!1,eZ(m,v,w);To=(m.flags&131072)!==0}else To=!1,Fr&&(v.flags&1048576)!==0&&HR(v,Og,v.index);switch(v.lanes=0,v.tag){case 2:var C=v.type;Ig(m,v),m=v.pendingProps;var $=gf(v,Xi.current);Sf(v,w),$=Lb(null,v,C,m,$,w);var F=jb();return v.flags|=1,typeof $=="object"&&$!==null&&typeof $.render=="function"&&$.$$typeof===void 0?(v.tag=1,v.memoizedState=null,v.updateQueue=null,Eo(C)?(F=!0,gg(v)):F=!1,v.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,Rb(v),$.updater=Mg,v.stateNode=$,$._reactInternals=v,Vb(v,C,m,w),v=Xb(null,v,C,!0,F,w)):(v.tag=0,Fr&&F&&bb(v),co(null,v,$,w),v=v.child),v;case 16:C=v.elementType;e:{switch(Ig(m,v),m=v.pendingProps,$=C._init,C=$(C._payload),v.type=C,$=v.tag=mZ(C),m=qs(C,m),$){case 0:v=Zb(null,v,C,m,w);break e;case 1:v=U2(null,v,C,m,w);break e;case 11:v=L2(null,v,C,m,w);break e;case 14:v=j2(null,v,C,qs(C.type,m),w);break e}throw Error(n(306,C,""))}return v;case 0:return C=v.type,$=v.pendingProps,$=v.elementType===C?$:qs(C,$),Zb(m,v,C,$,w);case 1:return C=v.type,$=v.pendingProps,$=v.elementType===C?$:qs(C,$),U2(m,v,C,$,w);case 3:e:{if(q2(v),m===null)throw Error(n(387));C=v.pendingProps,F=v.memoizedState,$=F.element,i2(m,v),_g(v,C,null,w);var te=v.memoizedState;if(C=te.element,F.isDehydrated)if(F={element:C,isDehydrated:!1,cache:te.cache,pendingSuspenseBoundaries:te.pendingSuspenseBoundaries,transitions:te.transitions},v.updateQueue.baseState=F,v.memoizedState=F,v.flags&256){$=xf(Error(n(423)),v),v=V2(m,v,C,w,$);break e}else if(C!==$){$=xf(Error(n(424)),v),v=V2(m,v,C,w,$);break e}else for(Ko=Xl(v.stateNode.containerInfo.firstChild),Go=v,Fr=!0,Us=null,w=n2(v,null,C,w),v.child=w;w;)w.flags=w.flags&-3|4096,w=w.sibling;else{if(Of(),C===$){v=pl(m,v,w);break e}co(m,v,C,w)}v=v.child}return v;case 5:return a2(v),m===null&&kb(v),C=v.type,$=v.pendingProps,F=m!==null?m.memoizedProps:null,te=$.children,pb(C,$)?te=null:F!==null&&pb(C,F)&&(v.flags|=32),B2(m,v),co(m,v,te,w),v.child;case 6:return m===null&&kb(v),null;case 13:return z2(m,v,w);case 4:return Ab(v,v.stateNode.containerInfo),C=v.pendingProps,m===null?v.child=bf(v,null,C,w):co(m,v,C,w),v.child;case 11:return C=v.type,$=v.pendingProps,$=v.elementType===C?$:qs(C,$),L2(m,v,C,$,w);case 7:return co(m,v,v.pendingProps,w),v.child;case 8:return co(m,v,v.pendingProps.children,w),v.child;case 12:return co(m,v,v.pendingProps.children,w),v.child;case 10:e:{if(C=v.type._context,$=v.pendingProps,F=v.memoizedProps,te=$.value,xr(Sg,C._currentValue),C._currentValue=te,F!==null)if(Bs(F.value,te)){if(F.children===$.children&&!Co.current){v=pl(m,v,w);break e}}else for(F=v.child,F!==null&&(F.return=v);F!==null;){var he=F.dependencies;if(he!==null){te=F.child;for(var xe=he.firstContext;xe!==null;){if(xe.context===C){if(F.tag===1){xe=hl(-1,w&-w),xe.tag=2;var Ue=F.updateQueue;if(Ue!==null){Ue=Ue.shared;var vt=Ue.pending;vt===null?xe.next=xe:(xe.next=vt.next,vt.next=xe),Ue.pending=xe}}F.lanes|=w,xe=F.alternate,xe!==null&&(xe.lanes|=w),Eb(F.return,w,v),he.lanes|=w;break}xe=xe.next}}else if(F.tag===10)te=F.type===v.type?null:F.child;else if(F.tag===18){if(te=F.return,te===null)throw Error(n(341));te.lanes|=w,he=te.alternate,he!==null&&(he.lanes|=w),Eb(te,w,v),te=F.sibling}else te=F.child;if(te!==null)te.return=F;else for(te=F;te!==null;){if(te===v){te=null;break}if(F=te.sibling,F!==null){F.return=te.return,te=F;break}te=te.return}F=te}co(m,v,$.children,w),v=v.child}return v;case 9:return $=v.type,C=v.pendingProps.children,Sf(v,w),$=ys($),C=C($),v.flags|=1,co(m,v,C,w),v.child;case 14:return C=v.type,$=qs(C,v.pendingProps),$=qs(C.type,$),j2(m,v,C,$,w);case 15:return Q2(m,v,v.type,v.pendingProps,w);case 17:return C=v.type,$=v.pendingProps,$=v.elementType===C?$:qs(C,$),Ig(m,v),v.tag=1,Eo(C)?(m=!0,gg(v)):m=!1,Sf(v,w),R2(v,C,$),Vb(v,C,$,w),Xb(null,v,C,!0,m,w);case 19:return Z2(m,v,w);case 22:return F2(m,v,w)}throw Error(n(156,v.tag))};function vA(m,v){return Yt(m,v)}function pZ(m,v,w,C){this.tag=m,this.key=w,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=v,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ws(m,v,w,C){return new pZ(m,v,w,C)}function pw(m){return m=m.prototype,!(!m||!m.isReactComponent)}function mZ(m){if(typeof m=="function")return pw(m)?1:0;if(m!=null){if(m=m.$$typeof,m===T)return 11;if(m===H)return 14}return 2}function ou(m,v){var w=m.alternate;return w===null?(w=ws(m.tag,v,m.key,m.mode),w.elementType=m.elementType,w.type=m.type,w.stateNode=m.stateNode,w.alternate=m,m.alternate=w):(w.pendingProps=v,w.type=m.type,w.flags=0,w.subtreeFlags=0,w.deletions=null),w.flags=m.flags&14680064,w.childLanes=m.childLanes,w.lanes=m.lanes,w.child=m.child,w.memoizedProps=m.memoizedProps,w.memoizedState=m.memoizedState,w.updateQueue=m.updateQueue,v=m.dependencies,w.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},w.sibling=m.sibling,w.index=m.index,w.ref=m.ref,w}function zg(m,v,w,C,$,F){var te=2;if(C=m,typeof m=="function")pw(m)&&(te=1);else if(typeof m=="string")te=5;else e:switch(m){case I:return vc(w.children,$,F,v);case M:te=8,$|=8;break;case P:return m=ws(12,w,v,$|2),m.elementType=P,m.lanes=F,m;case L:return m=ws(13,w,v,$),m.elementType=L,m.lanes=F,m;case A:return m=ws(19,w,v,$),m.elementType=A,m.lanes=F,m;case Z:return Wg(w,$,F,v);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case E:te=10;break e;case R:te=9;break e;case T:te=11;break e;case H:te=14;break e;case W:te=16,C=null;break e}throw Error(n(130,m==null?m:typeof m,""))}return v=ws(te,w,v,$),v.elementType=m,v.type=C,v.lanes=F,v}function vc(m,v,w,C){return m=ws(7,m,C,v),m.lanes=w,m}function Wg(m,v,w,C){return m=ws(22,m,C,v),m.elementType=Z,m.lanes=w,m.stateNode={isHidden:!1},m}function mw(m,v,w){return m=ws(6,m,null,v),m.lanes=w,m}function gw(m,v,w){return v=ws(4,m.children!==null?m.children:[],m.key,v),v.lanes=w,v.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},v}function gZ(m,v,w,C,$){this.tag=v,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fn(0),this.expirationTimes=Fn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fn(0),this.identifierPrefix=C,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function vw(m,v,w,C,$,F,te,he,xe){return m=new gZ(m,v,w,he,xe),v===1?(v=1,F===!0&&(v|=8)):v=0,F=ws(3,null,null,v),m.current=F,F.stateNode=m,F.memoizedState={element:C,isDehydrated:w,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rb(F),m}function vZ(m,v,w){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_,key:C==null?null:""+C,children:m,containerInfo:v,implementation:w}}function yA(m){if(!m)return Yl;m=m._reactInternals;e:{if(Nt(m)!==m||m.tag!==1)throw Error(n(170));var v=m;do{switch(v.tag){case 3:v=v.stateNode.context;break e;case 1:if(Eo(v.type)){v=v.stateNode.__reactInternalMemoizedMergedChildContext;break e}}v=v.return}while(v!==null);throw Error(n(171))}if(m.tag===1){var w=m.type;if(Eo(w))return WR(m,w,v)}return v}function OA(m,v,w,C,$,F,te,he,xe){return m=vw(w,C,!0,m,$,F,te,he,xe),m.context=yA(null),w=m.current,C=fo(),$=ru(w),F=hl(C,$),F.callback=v??null,Jl(w,F,$),m.current.lanes=$,Ft(m,$,C),Ao(m,C),m}function Zg(m,v,w,C){var $=v.current,F=fo(),te=ru($);return w=yA(w),v.context===null?v.context=w:v.pendingContext=w,v=hl(F,te),v.payload={element:m},C=C===void 0?null:C,C!==null&&(v.callback=C),m=Jl($,v,te),m!==null&&(Ws(m,$,te,F),xg(m,$,te)),te}function Xg(m){if(m=m.current,!m.child)return null;switch(m.child.tag){case 5:return m.child.stateNode;default:return m.child.stateNode}}function bA(m,v){if(m=m.memoizedState,m!==null&&m.dehydrated!==null){var w=m.retryLane;m.retryLane=w!==0&&w<v?w:v}}function yw(m,v){bA(m,v),(m=m.alternate)&&bA(m,v)}function yZ(){return null}var wA=typeof reportError=="function"?reportError:function(m){console.error(m)};function Ow(m){this._internalRoot=m}Hg.prototype.render=Ow.prototype.render=function(m){var v=this._internalRoot;if(v===null)throw Error(n(409));Zg(m,v,null,null)},Hg.prototype.unmount=Ow.prototype.unmount=function(){var m=this._internalRoot;if(m!==null){this._internalRoot=null;var v=m.containerInfo;pc(function(){Zg(null,m,null,null)}),v[ll]=null}};function Hg(m){this._internalRoot=m}Hg.prototype.unstable_scheduleHydration=function(m){if(m){var v=zi();m={blockedOn:null,target:m,priority:v};for(var w=0;w<lo.length&&v!==0&&v<lo[w].priority;w++);lo.splice(w,0,m),w===0&&Ns(m)}};function bw(m){return!(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)}function Yg(m){return!(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11&&(m.nodeType!==8||m.nodeValue!==" react-mount-point-unstable "))}function SA(){}function OZ(m,v,w,C,$){if($){if(typeof C=="function"){var F=C;C=function(){var Ue=Xg(te);F.call(Ue)}}var te=OA(v,C,m,0,null,!1,!1,"",SA);return m._reactRootContainer=te,m[ll]=te.current,yh(m.nodeType===8?m.parentNode:m),pc(),te}for(;$=m.lastChild;)m.removeChild($);if(typeof C=="function"){var he=C;C=function(){var Ue=Xg(xe);he.call(Ue)}}var xe=vw(m,0,!1,null,null,!1,!1,"",SA);return m._reactRootContainer=xe,m[ll]=xe.current,yh(m.nodeType===8?m.parentNode:m),pc(function(){Zg(v,xe,w,C)}),xe}function Gg(m,v,w,C,$){var F=w._reactRootContainer;if(F){var te=F;if(typeof $=="function"){var he=$;$=function(){var xe=Xg(te);he.call(xe)}}Zg(v,te,m,$)}else te=OZ(w,v,m,$,C);return Xg(te)}jr=function(m){switch(m.tag){case 3:var v=m.stateNode;if(v.current.memoizedState.isDehydrated){var w=tn(v.pendingLanes);w!==0&&(In(v,w|1),Ao(v,wn()),(rr&6)===0&&(Cf=wn()+500,Gl()))}break;case 13:pc(function(){var C=dl(m,1);if(C!==null){var $=fo();Ws(C,m,1,$)}}),yw(m,1)}},gr=function(m){if(m.tag===13){var v=dl(m,134217728);if(v!==null){var w=fo();Ws(v,m,134217728,w)}yw(m,134217728)}},Hr=function(m){if(m.tag===13){var v=ru(m),w=dl(m,v);if(w!==null){var C=fo();Ws(w,m,v,C)}yw(m,v)}},zi=function(){return dn},ei=function(m,v){var w=dn;try{return dn=m,v()}finally{dn=w}},un=function(m,v,w){switch(v){case"input":if(ie(m,w),v=w.name,w.type==="radio"&&v!=null){for(w=m;w.parentNode;)w=w.parentNode;for(w=w.querySelectorAll("input[name="+JSON.stringify(""+v)+'][type="radio"]'),v=0;v<w.length;v++){var C=w[v];if(C!==m&&C.form===m.form){var $=pg(C);if(!$)throw Error(n(90));Te(C),ie(C,$)}}}break;case"textarea":ye(m,w);break;case"select":v=w.value,v!=null&&Fe(m,!!w.multiple,v,!1)}},Rn=fw,ir=pc;var bZ={usingClientEntryPoint:!1,Events:[wh,pf,pg,Tn,bn,fw]},$h={findFiberByHostInstance:sc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},wZ={bundleType:$h.bundleType,version:$h.version,rendererPackageName:$h.rendererPackageName,rendererConfig:$h.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(m){return m=sn(m),m===null?null:m.stateNode},findFiberByHostInstance:$h.findFiberByHostInstance||yZ,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kg.isDisabled&&Kg.supportsFiber)try{Ae=Kg.inject(wZ),ze=Kg}catch{}}return Mo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bZ,Mo.createPortal=function(m,v){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bw(v))throw Error(n(200));return vZ(m,v,null,w)},Mo.createRoot=function(m,v){if(!bw(m))throw Error(n(299));var w=!1,C="",$=wA;return v!=null&&(v.unstable_strictMode===!0&&(w=!0),v.identifierPrefix!==void 0&&(C=v.identifierPrefix),v.onRecoverableError!==void 0&&($=v.onRecoverableError)),v=vw(m,1,!1,null,null,w,!1,C,$),m[ll]=v.current,yh(m.nodeType===8?m.parentNode:m),new Ow(v)},Mo.findDOMNode=function(m){if(m==null)return null;if(m.nodeType===1)return m;var v=m._reactInternals;if(v===void 0)throw typeof m.render=="function"?Error(n(188)):(m=Object.keys(m).join(","),Error(n(268,m)));return m=sn(v),m=m===null?null:m.stateNode,m},Mo.flushSync=function(m){return pc(m)},Mo.hydrate=function(m,v,w){if(!Yg(v))throw Error(n(200));return Gg(null,m,v,!0,w)},Mo.hydrateRoot=function(m,v,w){if(!bw(m))throw Error(n(405));var C=w!=null&&w.hydratedSources||null,$=!1,F="",te=wA;if(w!=null&&(w.unstable_strictMode===!0&&($=!0),w.identifierPrefix!==void 0&&(F=w.identifierPrefix),w.onRecoverableError!==void 0&&(te=w.onRecoverableError)),v=OA(v,null,m,1,w??null,$,!1,F,te),m[ll]=v.current,yh(m),C)for(m=0;m<C.length;m++)w=C[m],$=w._getVersion,$=$(w._source),v.mutableSourceEagerHydrationData==null?v.mutableSourceEagerHydrationData=[w,$]:v.mutableSourceEagerHydrationData.push(w,$);return new Hg(v)},Mo.render=function(m,v,w){if(!Yg(v))throw Error(n(200));return Gg(null,m,v,!1,w)},Mo.unmountComponentAtNode=function(m){if(!Yg(m))throw Error(n(40));return m._reactRootContainer?(pc(function(){Gg(null,null,m,!1,function(){m._reactRootContainer=null,m[ll]=null})}),!0):!1},Mo.unstable_batchedUpdates=fw,Mo.unstable_renderSubtreeIntoContainer=function(m,v,w,C){if(!Yg(w))throw Error(n(200));if(m==null||m._reactInternals===void 0)throw Error(n(38));return Gg(m,v,w,!1,C)},Mo.version="18.3.1-next-f1338f8080-20240426",Mo}var RA;function Mm(){if(RA)return kw.exports;RA=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),kw.exports=TZ(),kw.exports}var AA;function RZ(){if(AA)return Jg;AA=1;var t=Mm();return Jg.createRoot=t.createRoot,Jg.hydrateRoot=t.hydrateRoot,Jg}var TQ=RZ();function Ps(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pw={exports:{}},MA;function AZ(){return MA||(MA=1,function(t,e){(function(n){t.exports=n()})(function(){return function(){function n(r,i,o){function s(u,c){if(!i[u]){if(!r[u]){var f=typeof Ps=="function"&&Ps;if(!c&&f)return f(u,!0);if(a)return a(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var h=i[u]={exports:{}};r[u][0].call(h.exports,function(p){var g=r[u][1][p];return s(g||p)},h,h.exports,n,r,i,o)}return i[u].exports}for(var a=typeof Ps=="function"&&Ps,l=0;l<o.length;l++)s(o[l]);return s}return n}()({1:[function(n,r,i){(function(o,s){(function(){(function(a,l){l(typeof i=="object"&&typeof r<"u"?i:a.async={})})(this,function(a){function l(se,...re){return(...ae)=>se(...re,...ae)}function u(se){return function(...re){var ae=re.pop();return se.call(this,re,ae)}}var c=typeof queueMicrotask=="function"&&queueMicrotask,f=typeof s=="function"&&s,d=typeof o=="object"&&typeof o.nextTick=="function";function h(se){setTimeout(se,0)}function p(se){return(re,...ae)=>se(()=>re(...ae))}var g;c?g=queueMicrotask:f?g=s:d?g=o.nextTick:g=h;var y=p(g);function O(se){return k(se)?function(...re){const ae=re.pop(),ke=se.apply(this,re);return b(ke,ae)}:u(function(re,ae){var ke;try{ke=se.apply(this,re)}catch(Qe){return ae(Qe)}if(ke&&typeof ke.then=="function")return b(ke,ae);ae(null,ke)})}function b(se,re){return se.then(ae=>{S(re,null,ae)},ae=>{S(re,ae&&ae.message?ae:new Error(ae))})}function S(se,re,ae){try{se(re,ae)}catch(ke){y(Qe=>{throw Qe},ke)}}function k(se){return se[Symbol.toStringTag]==="AsyncFunction"}function x(se){return se[Symbol.toStringTag]==="AsyncGenerator"}function _(se){return typeof se[Symbol.asyncIterator]=="function"}function I(se){if(typeof se!="function")throw new Error("expected a function");return k(se)?O(se):se}function M(se,re=se.length){if(!re)throw new Error("arity is undefined");function ae(...ke){return typeof ke[re-1]=="function"?se.apply(this,ke):new Promise((Qe,Be)=>{ke[re-1]=(He,...Ge)=>{if(He)return Be(He);Qe(Ge.length>1?Ge:Ge[0])},se.apply(this,ke)})}return ae}function P(se){return function(ae,...ke){return M(function(Be){var He=this;return se(ae,(Ge,mt)=>{I(Ge).apply(He,ke.concat(mt))},Be)})}}function E(se,re,ae,ke){re=re||[];var Qe=[],Be=0,He=I(ae);return se(re,(Ge,mt,Jt)=>{var Un=Be++;He(Ge,(Gn,qn)=>{Qe[Un]=qn,Jt(Gn)})},Ge=>{ke(Ge,Qe)})}function R(se){return se&&typeof se.length=="number"&&se.length>=0&&se.length%1===0}const T={};function L(se){function re(...ae){if(se!==null){var ke=se;se=null,ke.apply(this,ae)}}return Object.assign(re,se),re}function A(se){return se[Symbol.iterator]&&se[Symbol.iterator]()}function H(se){var re=-1,ae=se.length;return function(){return++re<ae?{value:se[re],key:re}:null}}function W(se){var re=-1;return function(){var ke=se.next();return ke.done?null:(re++,{value:ke.value,key:re})}}function Z(se){var re=se?Object.keys(se):[],ae=-1,ke=re.length;return function Qe(){var Be=re[++ae];return Be==="__proto__"?Qe():ae<ke?{value:se[Be],key:Be}:null}}function G(se){if(R(se))return H(se);var re=A(se);return re?W(re):Z(se)}function K(se){return function(...re){if(se===null)throw new Error("Callback was already called.");var ae=se;se=null,ae.apply(this,re)}}function U(se,re,ae,ke){let Qe=!1,Be=!1,He=!1,Ge=0,mt=0;function Jt(){Ge>=re||He||Qe||(He=!0,se.next().then(({value:qn,done:_o})=>{if(!(Be||Qe)){if(He=!1,_o){Qe=!0,Ge<=0&&ke(null);return}Ge++,ae(qn,mt,Un),mt++,Jt()}}).catch(Gn))}function Un(qn,_o){if(Ge-=1,!Be){if(qn)return Gn(qn);if(qn===!1){Qe=!0,Be=!0;return}if(_o===T||Qe&&Ge<=0)return Qe=!0,ke(null);Jt()}}function Gn(qn){Be||(He=!1,Qe=!0,ke(qn))}Jt()}var B=se=>(re,ae,ke)=>{if(ke=L(ke),se<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!re)return ke(null);if(x(re))return U(re,se,ae,ke);if(_(re))return U(re[Symbol.asyncIterator](),se,ae,ke);var Qe=G(re),Be=!1,He=!1,Ge=0,mt=!1;function Jt(Gn,qn){if(!He)if(Ge-=1,Gn)Be=!0,ke(Gn);else if(Gn===!1)Be=!0,He=!0;else{if(qn===T||Be&&Ge<=0)return Be=!0,ke(null);mt||Un()}}function Un(){for(mt=!0;Ge<se&&!Be;){var Gn=Qe();if(Gn===null){Be=!0,Ge<=0&&ke(null);return}Ge+=1,ae(Gn.value,Gn.key,K(Jt))}mt=!1}Un()};function Y(se,re,ae,ke){return B(re)(se,I(ae),ke)}var j=M(Y,4);function ne(se,re,ae){ae=L(ae);var ke=0,Qe=0,{length:Be}=se,He=!1;Be===0&&ae(null);function Ge(mt,Jt){mt===!1&&(He=!0),He!==!0&&(mt?ae(mt):(++Qe===Be||Jt===T)&&ae(null))}for(;ke<Be;ke++)re(se[ke],ke,K(Ge))}function ee(se,re,ae){return j(se,1/0,re,ae)}function ue(se,re,ae){var ke=R(se)?ne:ee;return ke(se,I(re),ae)}var z=M(ue,3);function X(se,re,ae){return E(z,se,re,ae)}var J=M(X,3),fe=P(J);function we(se,re,ae){return j(se,1,re,ae)}var Te=M(we,3);function Re(se,re,ae){return E(Te,se,re,ae)}var Q=M(Re,3),ve=P(Q);const ge=Symbol("promiseCallback");function ie(){let se,re;function ae(ke,...Qe){if(ke)return re(ke);se(Qe.length>1?Qe:Qe[0])}return ae[ge]=new Promise((ke,Qe)=>{se=ke,re=Qe}),ae}function oe(se,re,ae){typeof re!="number"&&(ae=re,re=null),ae=L(ae||ie());var ke=Object.keys(se).length;if(!ke)return ae(null);re||(re=ke);var Qe={},Be=0,He=!1,Ge=!1,mt=Object.create(null),Jt=[],Un=[],Gn={};Object.keys(se).forEach(Gt=>{var mn=se[Gt];if(!Array.isArray(mn)){qn(Gt,[mn]),Un.push(Gt);return}var Vn=mn.slice(0,mn.length-1),kr=Vn.length;if(kr===0){qn(Gt,mn),Un.push(Gt);return}Gn[Gt]=kr,Vn.forEach(oi=>{if(!se[oi])throw new Error("async.auto task `"+Gt+"` has a non-existent dependency `"+oi+"` in "+Vn.join(", "));zl(oi,()=>{kr--,kr===0&&qn(Gt,mn)})})}),Xn(),_o();function qn(Gt,mn){Jt.push(()=>ic(Gt,mn))}function _o(){if(!He){if(Jt.length===0&&Be===0)return ae(null,Qe);for(;Jt.length&&Be<re;){var Gt=Jt.shift();Gt()}}}function zl(Gt,mn){var Vn=mt[Gt];Vn||(Vn=mt[Gt]=[]),Vn.push(mn)}function sl(Gt){var mn=mt[Gt]||[];mn.forEach(Vn=>Vn()),_o()}function ic(Gt,mn){if(!Ge){var Vn=K((oi,...Po)=>{if(Be--,oi===!1){He=!0;return}if(Po.length<2&&([Po]=Po),oi){var Wl={};if(Object.keys(Qe).forEach(al=>{Wl[al]=Qe[al]}),Wl[Gt]=Po,Ge=!0,mt=Object.create(null),He)return;ae(oi,Wl)}else Qe[Gt]=Po,sl(Gt)});Be++;var kr=I(mn[mn.length-1]);mn.length>1?kr(Qe,Vn):kr(Vn)}}function Xn(){for(var Gt,mn=0;Un.length;)Gt=Un.pop(),mn++,pn(Gt).forEach(Vn=>{--Gn[Vn]===0&&Un.push(Vn)});if(mn!==ke)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function pn(Gt){var mn=[];return Object.keys(se).forEach(Vn=>{const kr=se[Vn];Array.isArray(kr)&&kr.indexOf(Gt)>=0&&mn.push(Vn)}),mn}return ae[ge]}var me=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,$e=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,Fe=/,/,Pe=/(=.+)?(\s*)$/;function V(se){let re="",ae=0,ke=se.indexOf("*/");for(;ae<se.length;)if(se[ae]==="/"&&se[ae+1]==="/"){let Qe=se.indexOf(`
41
41
  `,ae);ae=Qe===-1?se.length:Qe}else if(ke!==-1&&se[ae]==="/"&&se[ae+1]==="*"){let Qe=se.indexOf("*/",ae);Qe!==-1?(ae=Qe+2,ke=se.indexOf("*/",ae)):(re+=se[ae],ae++)}else re+=se[ae],ae++;return re}function ye(se){const re=V(se.toString());let ae=re.match(me);if(ae||(ae=re.match($e)),!ae)throw new Error(`could not parse args in autoInject
42
42
  Source:
43
- `+re);let[,ke]=ae;return ke.replace(/\s/g,"").split(Fe).map(Qe=>Qe.replace(Pe,"").trim())}function _e(se,re){var ae={};return Object.keys(se).forEach(ke=>{var Qe=se[ke],Be,He=k(Qe),Ge=!He&&Qe.length===1||He&&Qe.length===0;if(Array.isArray(Qe))Be=[...Qe],Qe=Be.pop(),ae[ke]=Be.concat(Be.length>0?mt:Qe);else if(Ge)ae[ke]=Qe;else{if(Be=ye(Qe),Qe.length===0&&!He&&Be.length===0)throw new Error("autoInject task functions require explicit parameters.");He||Be.pop(),ae[ke]=Be.concat(mt)}function mt(Jt,Un){var Gn=Be.map(qn=>Jt[qn]);Gn.push(Un),I(Qe)(...Gn)}}),oe(ae,re)}class de{constructor(){this.head=this.tail=null,this.length=0}removeLink(re){return re.prev?re.prev.next=re.next:this.head=re.next,re.next?re.next.prev=re.prev:this.tail=re.prev,re.prev=re.next=null,this.length-=1,re}empty(){for(;this.head;)this.shift();return this}insertAfter(re,ae){ae.prev=re,ae.next=re.next,re.next?re.next.prev=ae:this.tail=ae,re.next=ae,this.length+=1}insertBefore(re,ae){ae.prev=re.prev,ae.next=re,re.prev?re.prev.next=ae:this.head=ae,re.prev=ae,this.length+=1}unshift(re){this.head?this.insertBefore(this.head,re):Se(this,re)}push(re){this.tail?this.insertAfter(this.tail,re):Se(this,re)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var re=this.head;re;)yield re.data,re=re.next}remove(re){for(var ae=this.head;ae;){var{next:ke}=ae;re(ae)&&this.removeLink(ae),ae=ke}return this}}function Se(se,re){se.length=1,se.head=se.tail=re}function Me(se,re,ae){if(re==null)re=1;else if(re===0)throw new RangeError("Concurrency must not be zero");var ke=I(se),Qe=0,Be=[];const He={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Ge(pn,Gt){He[pn].push(Gt)}function mt(pn,Gt){const mn=(...Vn)=>{Jt(pn,mn),Gt(...Vn)};He[pn].push(mn)}function Jt(pn,Gt){if(!pn)return Object.keys(He).forEach(mn=>He[mn]=[]);if(!Gt)return He[pn]=[];He[pn]=He[pn].filter(mn=>mn!==Gt)}function Un(pn,...Gt){He[pn].forEach(mn=>mn(...Gt))}var Gn=!1;function qn(pn,Gt,mn,Vn){if(Vn!=null&&typeof Vn!="function")throw new Error("task callback must be a function");Xn.started=!0;var kr,oi;function Po(al,...oc){if(al)return mn?oi(al):kr();if(oc.length<=1)return kr(oc[0]);kr(oc)}var Wl=Xn._createTaskItem(pn,mn?Po:Vn||Po);if(Gt?Xn._tasks.unshift(Wl):Xn._tasks.push(Wl),Gn||(Gn=!0,y(()=>{Gn=!1,Xn.process()})),mn||!Vn)return new Promise((al,oc)=>{kr=al,oi=oc})}function _o(pn){return function(Gt,...mn){Qe-=1;for(var Vn=0,kr=pn.length;Vn<kr;Vn++){var oi=pn[Vn],Po=Be.indexOf(oi);Po===0?Be.shift():Po>0&&Be.splice(Po,1),oi.callback(Gt,...mn),Gt!=null&&Un("error",Gt,oi.data)}Qe<=Xn.concurrency-Xn.buffer&&Un("unsaturated"),Xn.idle()&&Un("drain"),Xn.process()}}function zl(pn){return pn.length===0&&Xn.idle()?(y(()=>Un("drain")),!0):!1}const sl=pn=>Gt=>{if(!Gt)return new Promise((mn,Vn)=>{mt(pn,(kr,oi)=>{if(kr)return Vn(kr);mn(oi)})});Jt(pn),Ge(pn,Gt)};var ic=!1,Xn={_tasks:new de,_createTaskItem(pn,Gt){return{data:pn,callback:Gt}},*[Symbol.iterator](){yield*Xn._tasks[Symbol.iterator]()},concurrency:re,payload:ae,buffer:re/4,started:!1,paused:!1,push(pn,Gt){return Array.isArray(pn)?zl(pn)?void 0:pn.map(mn=>qn(mn,!1,!1,Gt)):qn(pn,!1,!1,Gt)},pushAsync(pn,Gt){return Array.isArray(pn)?zl(pn)?void 0:pn.map(mn=>qn(mn,!1,!0,Gt)):qn(pn,!1,!0,Gt)},kill(){Jt(),Xn._tasks.empty()},unshift(pn,Gt){return Array.isArray(pn)?zl(pn)?void 0:pn.map(mn=>qn(mn,!0,!1,Gt)):qn(pn,!0,!1,Gt)},unshiftAsync(pn,Gt){return Array.isArray(pn)?zl(pn)?void 0:pn.map(mn=>qn(mn,!0,!0,Gt)):qn(pn,!0,!0,Gt)},remove(pn){Xn._tasks.remove(pn)},process(){if(!ic){for(ic=!0;!Xn.paused&&Qe<Xn.concurrency&&Xn._tasks.length;){var pn=[],Gt=[],mn=Xn._tasks.length;Xn.payload&&(mn=Math.min(mn,Xn.payload));for(var Vn=0;Vn<mn;Vn++){var kr=Xn._tasks.shift();pn.push(kr),Be.push(kr),Gt.push(kr.data)}Qe+=1,Xn._tasks.length===0&&Un("empty"),Qe===Xn.concurrency&&Un("saturated");var oi=K(_o(pn));ke(Gt,oi)}ic=!1}},length(){return Xn._tasks.length},running(){return Qe},workersList(){return Be},idle(){return Xn._tasks.length+Qe===0},pause(){Xn.paused=!0},resume(){Xn.paused!==!1&&(Xn.paused=!1,y(Xn.process))}};return Object.defineProperties(Xn,{saturated:{writable:!1,value:sl("saturated")},unsaturated:{writable:!1,value:sl("unsaturated")},empty:{writable:!1,value:sl("empty")},drain:{writable:!1,value:sl("drain")},error:{writable:!1,value:sl("error")}}),Xn}function et(se,re){return Me(se,1,re)}function st(se,re,ae){return Me(se,re,ae)}function Le(se,re,ae,ke){ke=L(ke);var Qe=I(ae);return Te(se,(Be,He,Ge)=>{Qe(re,Be,(mt,Jt)=>{re=Jt,Ge(mt)})},Be=>ke(Be,re))}var at=M(Le,4);function We(...se){var re=se.map(I);return function(...ae){var ke=this,Qe=ae[ae.length-1];return typeof Qe=="function"?ae.pop():Qe=ie(),at(re,ae,(Be,He,Ge)=>{He.apply(ke,Be.concat((mt,...Jt)=>{Ge(mt,Jt)}))},(Be,He)=>Qe(Be,...He)),Qe[ge]}}function dt(...se){return We(...se.reverse())}function wt(se,re,ae,ke){return E(B(re),se,ae,ke)}var pt=M(wt,4);function It(se,re,ae,ke){var Qe=I(ae);return pt(se,re,(Be,He)=>{Qe(Be,(Ge,...mt)=>Ge?He(Ge):He(Ge,mt))},(Be,He)=>{for(var Ge=[],mt=0;mt<He.length;mt++)He[mt]&&(Ge=Ge.concat(...He[mt]));return ke(Be,Ge)})}var nt=M(It,4);function Rt(se,re,ae){return nt(se,1/0,re,ae)}var un=M(Rt,3);function Tt(se,re,ae){return nt(se,1,re,ae)}var qt=M(Tt,3);function On(...se){return function(...re){var ae=re.pop();return ae(null,...se)}}function Tn(se,re){return(ae,ke,Qe,Be)=>{var He=!1,Ge;const mt=I(Qe);ae(ke,(Jt,Un,Gn)=>{mt(Jt,(qn,_o)=>{if(qn||qn===!1)return Gn(qn);if(se(_o)&&!Ge)return He=!0,Ge=re(!0,Jt),Gn(null,T);Gn()})},Jt=>{if(Jt)return Be(Jt);Be(null,He?Ge:re(!1))})}}function bn(se,re,ae){return Tn(ke=>ke,(ke,Qe)=>Qe)(z,se,re,ae)}var Rn=M(bn,3);function ir(se,re,ae,ke){return Tn(Qe=>Qe,(Qe,Be)=>Be)(B(re),se,ae,ke)}var pe=M(ir,4);function Ee(se,re,ae){return Tn(ke=>ke,(ke,Qe)=>Qe)(B(1),se,re,ae)}var De=M(Ee,3);function rt(se){return(re,...ae)=>I(re)(...ae,(ke,...Qe)=>{typeof console=="object"&&(ke?console.error&&console.error(ke):console[se]&&Qe.forEach(Be=>console[se](Be)))})}var ct=rt("dir");function ht(se,re,ae){ae=K(ae);var ke=I(se),Qe=I(re),Be;function He(mt,...Jt){if(mt)return ae(mt);mt!==!1&&(Be=Jt,Qe(...Jt,Ge))}function Ge(mt,Jt){if(mt)return ae(mt);if(mt!==!1){if(!Jt)return ae(null,...Be);ke(He)}}return Ge(null,!0)}var Ve=M(ht,3);function Ye(se,re,ae){const ke=I(re);return Ve(se,(...Qe)=>{const Be=Qe.pop();ke(...Qe,(He,Ge)=>Be(He,!Ge))},ae)}function Je(se){return(re,ae,ke)=>se(re,ke)}function Ze(se,re,ae){return z(se,Je(I(re)),ae)}var Ne=M(Ze,3);function lt(se,re,ae,ke){return B(re)(se,Je(I(ae)),ke)}var Pt=M(lt,4);function Nt(se,re,ae){return Pt(se,1,re,ae)}var hn=M(Nt,3);function cn(se){return k(se)?se:function(...re){var ae=re.pop(),ke=!0;re.push((...Qe)=>{ke?y(()=>ae(...Qe)):ae(...Qe)}),se.apply(this,re),ke=!1}}function Kt(se,re,ae){return Tn(ke=>!ke,ke=>!ke)(z,se,re,ae)}var sn=M(Kt,3);function nn(se,re,ae,ke){return Tn(Qe=>!Qe,Qe=>!Qe)(B(re),se,ae,ke)}var Yt=M(nn,4);function Ct(se,re,ae){return Tn(ke=>!ke,ke=>!ke)(Te,se,re,ae)}var ln=M(Ct,3);function or(se,re,ae,ke){var Qe=new Array(re.length);se(re,(Be,He,Ge)=>{ae(Be,(mt,Jt)=>{Qe[He]=!!Jt,Ge(mt)})},Be=>{if(Be)return ke(Be);for(var He=[],Ge=0;Ge<re.length;Ge++)Qe[Ge]&&He.push(re[Ge]);ke(null,He)})}function wn(se,re,ae,ke){var Qe=[];se(re,(Be,He,Ge)=>{ae(Be,(mt,Jt)=>{if(mt)return Ge(mt);Jt&&Qe.push({index:He,value:Be}),Ge(mt)})},Be=>{if(Be)return ke(Be);ke(null,Qe.sort((He,Ge)=>He.index-Ge.index).map(He=>He.value))})}function fr(se,re,ae,ke){var Qe=R(re)?or:wn;return Qe(se,re,I(ae),ke)}function lr(se,re,ae){return fr(z,se,re,ae)}var ce=M(lr,3);function le(se,re,ae,ke){return fr(B(re),se,ae,ke)}var Oe=M(le,4);function Xe(se,re,ae){return fr(Te,se,re,ae)}var Ae=M(Xe,3);function ze(se,re){var ae=K(re),ke=I(cn(se));function Qe(Be){if(Be)return ae(Be);Be!==!1&&ke(Qe)}return Qe()}var bt=M(ze,2);function ot(se,re,ae,ke){var Qe=I(ae);return pt(se,re,(Be,He)=>{Qe(Be,(Ge,mt)=>Ge?He(Ge):He(Ge,{key:mt,val:Be}))},(Be,He)=>{for(var Ge={},{hasOwnProperty:mt}=Object.prototype,Jt=0;Jt<He.length;Jt++)if(He[Jt]){var{key:Un}=He[Jt],{val:Gn}=He[Jt];mt.call(Ge,Un)?Ge[Un].push(Gn):Ge[Un]=[Gn]}return ke(Be,Ge)})}var yt=M(ot,4);function zt(se,re,ae){return yt(se,1/0,re,ae)}function At(se,re,ae){return yt(se,1,re,ae)}var Cn=rt("log");function jn(se,re,ae,ke){ke=L(ke);var Qe={},Be=I(ae);return B(re)(se,(He,Ge,mt)=>{Be(He,Ge,(Jt,Un)=>{if(Jt)return mt(Jt);Qe[Ge]=Un,mt(Jt)})},He=>ke(He,Qe))}var tn=M(jn,4);function Sn(se,re,ae){return tn(se,1/0,re,ae)}function Pn(se,re,ae){return tn(se,1,re,ae)}function Qt(se,re=ae=>ae){var ae=Object.create(null),ke=Object.create(null),Qe=I(se),Be=u((He,Ge)=>{var mt=re(...He);mt in ae?y(()=>Ge(null,...ae[mt])):mt in ke?ke[mt].push(Ge):(ke[mt]=[Ge],Qe(...He,(Jt,...Un)=>{Jt||(ae[mt]=Un);var Gn=ke[mt];delete ke[mt];for(var qn=0,_o=Gn.length;qn<_o;qn++)Gn[qn](Jt,...Un)}))});return Be.memo=ae,Be.unmemoized=se,Be}var fn;d?fn=o.nextTick:f?fn=s:fn=h;var Dn=p(fn),Fn=M((se,re,ae)=>{var ke=R(re)?[]:{};se(re,(Qe,Be,He)=>{I(Qe)((Ge,...mt)=>{mt.length<2&&([mt]=mt),ke[Be]=mt,He(Ge)})},Qe=>ae(Qe,ke))},3);function Ft(se,re){return Fn(z,se,re)}function Bn(se,re,ae){return Fn(B(re),se,ae)}function In(se,re){var ae=I(se);return Me((ke,Qe)=>{ae(ke[0],Qe)},re,1)}class dn{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(re){let ae;for(;re>0&&gr(this.heap[re],this.heap[ae=jr(re)]);){let ke=this.heap[re];this.heap[re]=this.heap[ae],this.heap[ae]=ke,re=ae}}percDown(re){let ae;for(;(ae=Xr(re))<this.heap.length&&(ae+1<this.heap.length&&gr(this.heap[ae+1],this.heap[ae])&&(ae=ae+1),!gr(this.heap[re],this.heap[ae]));){let ke=this.heap[re];this.heap[re]=this.heap[ae],this.heap[ae]=ke,re=ae}}push(re){re.pushCount=++this.pushCount,this.heap.push(re),this.percUp(this.heap.length-1)}unshift(re){return this.heap.push(re)}shift(){let[re]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),re}toArray(){return[...this]}*[Symbol.iterator](){for(let re=0;re<this.heap.length;re++)yield this.heap[re].data}remove(re){let ae=0;for(let ke=0;ke<this.heap.length;ke++)re(this.heap[ke])||(this.heap[ae]=this.heap[ke],ae++);this.heap.splice(ae);for(let ke=jr(this.heap.length-1);ke>=0;ke--)this.percDown(ke);return this}}function Xr(se){return(se<<1)+1}function jr(se){return(se+1>>1)-1}function gr(se,re){return se.priority!==re.priority?se.priority<re.priority:se.pushCount<re.pushCount}function Hr(se,re){var ae=In(se,re),{push:ke,pushAsync:Qe}=ae;ae._tasks=new dn,ae._createTaskItem=({data:He,priority:Ge},mt)=>({data:He,priority:Ge,callback:mt});function Be(He,Ge){return Array.isArray(He)?He.map(mt=>({data:mt,priority:Ge})):{data:He,priority:Ge}}return ae.push=function(He,Ge=0,mt){return ke(Be(He,Ge),mt)},ae.pushAsync=function(He,Ge=0,mt){return Qe(Be(He,Ge),mt)},delete ae.unshift,delete ae.unshiftAsync,ae}function zi(se,re){if(re=L(re),!Array.isArray(se))return re(new TypeError("First argument to race must be an array of functions"));if(!se.length)return re();for(var ae=0,ke=se.length;ae<ke;ae++)I(se[ae])(re)}var ei=M(zi,2);function Wi(se,re,ae,ke){var Qe=[...se].reverse();return at(Qe,re,ae,ke)}function $i(se){var re=I(se);return u(function(ke,Qe){return ke.push((Be,...He)=>{let Ge={};if(Be&&(Ge.error=Be),He.length>0){var mt=He;He.length<=1&&([mt]=He),Ge.value=mt}Qe(null,Ge)}),re.apply(this,ke)})}function Tr(se){var re;return Array.isArray(se)?re=se.map($i):(re={},Object.keys(se).forEach(ae=>{re[ae]=$i.call(this,se[ae])})),re}function Qr(se,re,ae,ke){const Qe=I(ae);return fr(se,re,(Be,He)=>{Qe(Be,(Ge,mt)=>{He(Ge,!mt)})},ke)}function ao(se,re,ae){return Qr(z,se,re,ae)}var Zi=M(ao,3);function ps(se,re,ae,ke){return Qr(B(re),se,ae,ke)}var lo=M(ps,4);function tl(se,re,ae){return Qr(Te,se,re,ae)}var da=M(tl,3);function uo(se){return function(){return se}}const ko=5,Ns=0;function xo(se,re,ae){var ke={times:ko,intervalFunc:uo(Ns)};if(arguments.length<3&&typeof se=="function"?(ae=re||ie(),re=se):(ms(ke,se),ae=ae||ie()),typeof re!="function")throw new Error("Invalid arguments for async.retry");var Qe=I(re),Be=1;function He(){Qe((Ge,...mt)=>{Ge!==!1&&(Ge&&Be++<ke.times&&(typeof ke.errorFilter!="function"||ke.errorFilter(Ge))?setTimeout(He,ke.intervalFunc(Be-1)):ae(Ge,...mt))})}return He(),ae[ge]}function ms(se,re){if(typeof re=="object")se.times=+re.times||ko,se.intervalFunc=typeof re.interval=="function"?re.interval:uo(+re.interval||Ns),se.errorFilter=re.errorFilter;else if(typeof re=="number"||typeof re=="string")se.times=+re||ko;else throw new Error("Invalid arguments for async.retry")}function Ql(se,re){re||(re=se,se=null);let ae=se&&se.arity||re.length;k(re)&&(ae+=1);var ke=I(re);return u((Qe,Be)=>{(Qe.length<ae-1||Be==null)&&(Qe.push(Be),Be=ie());function He(Ge){ke(...Qe,Ge)}return se?xo(se,He,Be):xo(He,Be),Be[ge]})}function ha(se,re){return Fn(Te,se,re)}function Ls(se,re,ae){return Tn(Boolean,ke=>ke)(z,se,re,ae)}var Ho=M(Ls,3);function nl(se,re,ae,ke){return Tn(Boolean,Qe=>Qe)(B(re),se,ae,ke)}var Fl=M(nl,4);function ch(se,re,ae){return Tn(Boolean,ke=>ke)(Te,se,re,ae)}var js=M(ch,3);function rl(se,re,ae){var ke=I(re);return J(se,(Be,He)=>{ke(Be,(Ge,mt)=>{if(Ge)return He(Ge);He(Ge,{value:Be,criteria:mt})})},(Be,He)=>{if(Be)return ae(Be);ae(null,He.sort(Qe).map(Ge=>Ge.value))});function Qe(Be,He){var Ge=Be.criteria,mt=He.criteria;return Ge<mt?-1:Ge>mt?1:0}}var Bl=M(rl,3);function rc(se,re,ae){var ke=I(se);return u((Qe,Be)=>{var He=!1,Ge;function mt(){var Jt=se.name||"anonymous",Un=new Error('Callback function "'+Jt+'" timed out.');Un.code="ETIMEDOUT",ae&&(Un.info=ae),He=!0,Be(Un)}Qe.push((...Jt)=>{He||(Be(...Jt),clearTimeout(Ge))}),Ge=setTimeout(mt,re),ke(...Qe)})}function _i(se){for(var re=Array(se);se--;)re[se]=se;return re}function Yo(se,re,ae,ke){var Qe=I(ae);return pt(_i(se),re,Qe,ke)}function pa(se,re,ae){return Yo(se,1/0,re,ae)}function Ul(se,re,ae){return Yo(se,1,re,ae)}function Qs(se,re,ae,ke){arguments.length<=3&&typeof re=="function"&&(ke=ae,ae=re,re=Array.isArray(se)?[]:{}),ke=L(ke||ie());var Qe=I(ae);return z(se,(Be,He,Ge)=>{Qe(re,Be,He,Ge)},Be=>ke(Be,re)),ke[ge]}function il(se,re){var ae=null,ke;return hn(se,(Qe,Be)=>{I(Qe)((He,...Ge)=>{if(He===!1)return Be(He);Ge.length<2?[ke]=Ge:ke=Ge,ae=He,Be(He?null:{})})},()=>re(ae,ke))}var ql=M(il);function gi(se){return(...re)=>(se.unmemoized||se)(...re)}function Fs(se,re,ae){ae=K(ae);var ke=I(re),Qe=I(se),Be=[];function He(mt,...Jt){if(mt)return ae(mt);Be=Jt,mt!==!1&&Qe(Ge)}function Ge(mt,Jt){if(mt)return ae(mt);if(mt!==!1){if(!Jt)return ae(null,...Be);ke(He)}}return Qe(Ge)}var ol=M(Fs,3);function Vl(se,re,ae){const ke=I(se);return ol(Qe=>ke((Be,He)=>Qe(Be,!He)),re,ae)}function eb(se,re){if(re=L(re),!Array.isArray(se))return re(new Error("First argument to waterfall must be an array of functions"));if(!se.length)return re();var ae=0;function ke(Be){var He=I(se[ae++]);He(...Be,K(Qe))}function Qe(Be,...He){if(Be!==!1){if(Be||ae===se.length)return re(Be,...He);ke(He)}}ke([])}var lf=M(eb),fh={apply:l,applyEach:fe,applyEachSeries:ve,asyncify:O,auto:oe,autoInject:_e,cargo:et,cargoQueue:st,compose:dt,concat:un,concatLimit:nt,concatSeries:qt,constant:On,detect:Rn,detectLimit:pe,detectSeries:De,dir:ct,doUntil:Ye,doWhilst:Ve,each:Ne,eachLimit:Pt,eachOf:z,eachOfLimit:j,eachOfSeries:Te,eachSeries:hn,ensureAsync:cn,every:sn,everyLimit:Yt,everySeries:ln,filter:ce,filterLimit:Oe,filterSeries:Ae,forever:bt,groupBy:zt,groupByLimit:yt,groupBySeries:At,log:Cn,map:J,mapLimit:pt,mapSeries:Q,mapValues:Sn,mapValuesLimit:tn,mapValuesSeries:Pn,memoize:Qt,nextTick:Dn,parallel:Ft,parallelLimit:Bn,priorityQueue:Hr,queue:In,race:ei,reduce:at,reduceRight:Wi,reflect:$i,reflectAll:Tr,reject:Zi,rejectLimit:lo,rejectSeries:da,retry:xo,retryable:Ql,seq:We,series:ha,setImmediate:y,some:Ho,someLimit:Fl,someSeries:js,sortBy:Bl,timeout:rc,times:pa,timesLimit:Yo,timesSeries:Ul,transform:Qs,tryEach:ql,unmemoize:gi,until:Vl,waterfall:lf,whilst:ol,all:sn,allLimit:Yt,allSeries:ln,any:Ho,anyLimit:Fl,anySeries:js,find:Rn,findLimit:pe,findSeries:De,flatMap:un,flatMapLimit:nt,flatMapSeries:qt,forEach:Ne,forEachSeries:hn,forEachLimit:Pt,forEachOf:z,forEachOfSeries:Te,forEachOfLimit:j,inject:at,foldl:at,foldr:Wi,select:ce,selectLimit:Oe,selectSeries:Ae,wrapSync:O,during:ol,doDuring:Ve};a.default=fh,a.apply=l,a.applyEach=fe,a.applyEachSeries=ve,a.asyncify=O,a.auto=oe,a.autoInject=_e,a.cargo=et,a.cargoQueue=st,a.compose=dt,a.concat=un,a.concatLimit=nt,a.concatSeries=qt,a.constant=On,a.detect=Rn,a.detectLimit=pe,a.detectSeries=De,a.dir=ct,a.doUntil=Ye,a.doWhilst=Ve,a.each=Ne,a.eachLimit=Pt,a.eachOf=z,a.eachOfLimit=j,a.eachOfSeries=Te,a.eachSeries=hn,a.ensureAsync=cn,a.every=sn,a.everyLimit=Yt,a.everySeries=ln,a.filter=ce,a.filterLimit=Oe,a.filterSeries=Ae,a.forever=bt,a.groupBy=zt,a.groupByLimit=yt,a.groupBySeries=At,a.log=Cn,a.map=J,a.mapLimit=pt,a.mapSeries=Q,a.mapValues=Sn,a.mapValuesLimit=tn,a.mapValuesSeries=Pn,a.memoize=Qt,a.nextTick=Dn,a.parallel=Ft,a.parallelLimit=Bn,a.priorityQueue=Hr,a.queue=In,a.race=ei,a.reduce=at,a.reduceRight=Wi,a.reflect=$i,a.reflectAll=Tr,a.reject=Zi,a.rejectLimit=lo,a.rejectSeries=da,a.retry=xo,a.retryable=Ql,a.seq=We,a.series=ha,a.setImmediate=y,a.some=Ho,a.someLimit=Fl,a.someSeries=js,a.sortBy=Bl,a.timeout=rc,a.times=pa,a.timesLimit=Yo,a.timesSeries=Ul,a.transform=Qs,a.tryEach=ql,a.unmemoize=gi,a.until=Vl,a.waterfall=lf,a.whilst=ol,a.all=sn,a.allLimit=Yt,a.allSeries=ln,a.any=Ho,a.anyLimit=Fl,a.anySeries=js,a.find=Rn,a.findLimit=pe,a.findSeries=De,a.flatMap=un,a.flatMapLimit=nt,a.flatMapSeries=qt,a.forEach=Ne,a.forEachSeries=hn,a.forEachLimit=Pt,a.forEachOf=z,a.forEachOfSeries=Te,a.forEachOfLimit=j,a.inject=at,a.foldl=at,a.foldr=Wi,a.select=ce,a.selectLimit=Oe,a.selectSeries=Ae,a.wrapSync=O,a.during=ol,a.doDuring=Ve,Object.defineProperty(a,"__esModule",{value:!0})})}).call(this)}).call(this,n("_process"),n("timers").setImmediate)},{_process:26,timers:52}],2:[function(n,r,i){(function(o){(function(){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a=typeof globalThis>"u"?o:globalThis;r.exports=function(){for(var u=[],c=0;c<s.length;c++)typeof a[s[c]]=="function"&&(u[u.length]=s[c]);return u}}).call(this)}).call(this,typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(n,r,i){var o=n("get-intrinsic"),s=n("./"),a=s(o("String.prototype.indexOf"));r.exports=function(u,c){var f=o(u,!!c);return typeof f=="function"&&a(u,".prototype.")>-1?s(f):f}},{"./":4,"get-intrinsic":10}],4:[function(n,r,i){var o=n("function-bind"),s=n("get-intrinsic"),a=s("%Function.prototype.apply%"),l=s("%Function.prototype.call%"),u=s("%Reflect.apply%",!0)||o.call(l,a),c=s("%Object.getOwnPropertyDescriptor%",!0),f=s("%Object.defineProperty%",!0),d=s("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}r.exports=function(g){var y=u(o,l,arguments);if(c&&f){var O=c(y,"length");O.configurable&&f(y,"length",{value:1+d(0,g.length-(arguments.length-1))})}return y};var h=function(){return u(o,a,arguments)};f?f(r.exports,"apply",{value:h}):r.exports.apply=h},{"function-bind":9,"get-intrinsic":10}],5:[function(n,r,i){var o=typeof Reflect=="object"?Reflect:null,s=o&&typeof o.apply=="function"?o.apply:function(E,R,T){return Function.prototype.apply.call(E,R,T)},a;o&&typeof o.ownKeys=="function"?a=o.ownKeys:Object.getOwnPropertySymbols?a=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:a=function(E){return Object.getOwnPropertyNames(E)};function l(P){console&&console.warn&&console.warn(P)}var u=Number.isNaN||function(E){return E!==E};function c(){c.init.call(this)}r.exports=c,r.exports.once=_,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function d(P){if(typeof P!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return f},set:function(P){if(typeof P!="number"||P<0||u(P))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+P+".");f=P}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||u(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function h(P){return P._maxListeners===void 0?c.defaultMaxListeners:P._maxListeners}c.prototype.getMaxListeners=function(){return h(this)},c.prototype.emit=function(E){for(var R=[],T=1;T<arguments.length;T++)R.push(arguments[T]);var L=E==="error",A=this._events;if(A!==void 0)L=L&&A.error===void 0;else if(!L)return!1;if(L){var H;if(R.length>0&&(H=R[0]),H instanceof Error)throw H;var W=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw W.context=H,W}var Z=A[E];if(Z===void 0)return!1;if(typeof Z=="function")s(Z,this,R);else for(var G=Z.length,K=S(Z,G),T=0;T<G;++T)s(K[T],this,R);return!0};function p(P,E,R,T){var L,A,H;if(d(R),A=P._events,A===void 0?(A=P._events=Object.create(null),P._eventsCount=0):(A.newListener!==void 0&&(P.emit("newListener",E,R.listener?R.listener:R),A=P._events),H=A[E]),H===void 0)H=A[E]=R,++P._eventsCount;else if(typeof H=="function"?H=A[E]=T?[R,H]:[H,R]:T?H.unshift(R):H.push(R),L=h(P),L>0&&H.length>L&&!H.warned){H.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=P,W.type=E,W.count=H.length,l(W)}return P}c.prototype.addListener=function(E,R){return p(this,E,R,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(E,R){return p(this,E,R,!0)};function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(P,E,R){var T={fired:!1,wrapFn:void 0,target:P,type:E,listener:R},L=g.bind(T);return L.listener=R,T.wrapFn=L,L}c.prototype.once=function(E,R){return d(R),this.on(E,y(this,E,R)),this},c.prototype.prependOnceListener=function(E,R){return d(R),this.prependListener(E,y(this,E,R)),this},c.prototype.removeListener=function(E,R){var T,L,A,H,W;if(d(R),L=this._events,L===void 0)return this;if(T=L[E],T===void 0)return this;if(T===R||T.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete L[E],L.removeListener&&this.emit("removeListener",E,T.listener||R));else if(typeof T!="function"){for(A=-1,H=T.length-1;H>=0;H--)if(T[H]===R||T[H].listener===R){W=T[H].listener,A=H;break}if(A<0)return this;A===0?T.shift():k(T,A),T.length===1&&(L[E]=T[0]),L.removeListener!==void 0&&this.emit("removeListener",E,W||R)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(E){var R,T,L;if(T=this._events,T===void 0)return this;if(T.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):T[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete T[E]),this;if(arguments.length===0){var A=Object.keys(T),H;for(L=0;L<A.length;++L)H=A[L],H!=="removeListener"&&this.removeAllListeners(H);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=T[E],typeof R=="function")this.removeListener(E,R);else if(R!==void 0)for(L=R.length-1;L>=0;L--)this.removeListener(E,R[L]);return this};function O(P,E,R){var T=P._events;if(T===void 0)return[];var L=T[E];return L===void 0?[]:typeof L=="function"?R?[L.listener||L]:[L]:R?x(L):S(L,L.length)}c.prototype.listeners=function(E){return O(this,E,!0)},c.prototype.rawListeners=function(E){return O(this,E,!1)},c.listenerCount=function(P,E){return typeof P.listenerCount=="function"?P.listenerCount(E):b.call(P,E)},c.prototype.listenerCount=b;function b(P){var E=this._events;if(E!==void 0){var R=E[P];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function S(P,E){for(var R=new Array(E),T=0;T<E;++T)R[T]=P[T];return R}function k(P,E){for(;E+1<P.length;E++)P[E]=P[E+1];P.pop()}function x(P){for(var E=new Array(P.length),R=0;R<E.length;++R)E[R]=P[R].listener||P[R];return E}function _(P,E){return new Promise(function(R,T){function L(H){P.removeListener(E,A),T(H)}function A(){typeof P.removeListener=="function"&&P.removeListener("error",L),R([].slice.call(arguments))}M(P,E,A,{once:!0}),E!=="error"&&I(P,L,{once:!0})})}function I(P,E,R){typeof P.on=="function"&&M(P,"error",E,R)}function M(P,E,R,T){if(typeof P.on=="function")T.once?P.once(E,R):P.on(E,R);else if(typeof P.addEventListener=="function")P.addEventListener(E,function L(A){T.once&&P.removeEventListener(E,L),R(A)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof P)}},{}],6:[function(n,r,i){r.exports=function o(s,a){if(s===a)return!0;if(s&&a&&typeof s=="object"&&typeof a=="object"){if(s.constructor!==a.constructor)return!1;var l,u,c;if(Array.isArray(s)){if(l=s.length,l!=a.length)return!1;for(u=l;u--!==0;)if(!o(s[u],a[u]))return!1;return!0}if(s.constructor===RegExp)return s.source===a.source&&s.flags===a.flags;if(s.valueOf!==Object.prototype.valueOf)return s.valueOf()===a.valueOf();if(s.toString!==Object.prototype.toString)return s.toString()===a.toString();if(c=Object.keys(s),l=c.length,l!==Object.keys(a).length)return!1;for(u=l;u--!==0;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;for(u=l;u--!==0;){var f=c[u];if(!o(s[f],a[f]))return!1}return!0}return s!==s&&a!==a}},{}],7:[function(n,r,i){var o=n("is-callable"),s=Object.prototype.toString,a=Object.prototype.hasOwnProperty,l=function(h,p,g){for(var y=0,O=h.length;y<O;y++)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},u=function(h,p,g){for(var y=0,O=h.length;y<O;y++)g==null?p(h.charAt(y),y,h):p.call(g,h.charAt(y),y,h)},c=function(h,p,g){for(var y in h)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},f=function(h,p,g){if(!o(p))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=g),s.call(h)==="[object Array]"?l(h,p,y):typeof h=="string"?u(h,p,y):c(h,p,y)};r.exports=f},{"is-callable":19}],8:[function(n,r,i){var o="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,a=Math.max,l="[object Function]",u=function(h,p){for(var g=[],y=0;y<h.length;y+=1)g[y]=h[y];for(var O=0;O<p.length;O+=1)g[O+h.length]=p[O];return g},c=function(h,p){for(var g=[],y=p,O=0;y<h.length;y+=1,O+=1)g[O]=h[y];return g},f=function(d,h){for(var p="",g=0;g<d.length;g+=1)p+=d[g],g+1<d.length&&(p+=h);return p};r.exports=function(h){var p=this;if(typeof p!="function"||s.apply(p)!==l)throw new TypeError(o+p);for(var g=c(arguments,1),y,O=function(){if(this instanceof y){var _=p.apply(this,u(g,arguments));return Object(_)===_?_:this}return p.apply(h,u(g,arguments))},b=a(0,p.length-g.length),S=[],k=0;k<b;k++)S[k]="$"+k;if(y=Function("binder","return function ("+f(S,",")+"){ return binder.apply(this,arguments); }")(O),p.prototype){var x=function(){};x.prototype=p.prototype,y.prototype=new x,x.prototype=null}return y}},{}],9:[function(n,r,i){var o=n("./implementation");r.exports=Function.prototype.bind||o},{"./implementation":8}],10:[function(n,r,i){var o,s=SyntaxError,a=Function,l=TypeError,u=function(W){try{return a('"use strict"; return ('+W+").constructor;")()}catch{}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch{c=null}var f=function(){throw new l},d=c?function(){try{return arguments.callee,f}catch{try{return c(arguments,"callee").get}catch{return f}}}():f,h=n("has-symbols")(),p=Object.getPrototypeOf||function(W){return W.__proto__},g={},y=typeof Uint8Array>"u"?o:p(Uint8Array),O={"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":h?p([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?p(p([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map>"u"||!h?o:p(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set>"u"||!h?o:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?p(""[Symbol.iterator]()):o,"%Symbol%":h?Symbol:o,"%SyntaxError%":s,"%ThrowTypeError%":d,"%TypedArray%":y,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet};try{null.error}catch(W){var b=p(p(W));O["%Error.prototype%"]=b}var S=function W(Z){var G;if(Z==="%AsyncFunction%")G=u("async function () {}");else if(Z==="%GeneratorFunction%")G=u("function* () {}");else if(Z==="%AsyncGeneratorFunction%")G=u("async function* () {}");else if(Z==="%AsyncGenerator%"){var K=W("%AsyncGeneratorFunction%");K&&(G=K.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var U=W("%AsyncGenerator%");U&&(G=p(U.prototype))}return O[Z]=G,G},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=n("function-bind"),_=n("has"),I=x.call(Function.call,Array.prototype.concat),M=x.call(Function.apply,Array.prototype.splice),P=x.call(Function.call,String.prototype.replace),E=x.call(Function.call,String.prototype.slice),R=x.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,A=function(Z){var G=E(Z,0,1),K=E(Z,-1);if(G==="%"&&K!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(K==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var U=[];return P(Z,T,function(B,Y,j,ne){U[U.length]=j?P(ne,L,"$1"):Y||B}),U},H=function(Z,G){var K=Z,U;if(_(k,K)&&(U=k[K],K="%"+U[0]+"%"),_(O,K)){var B=O[K];if(B===g&&(B=S(K)),typeof B>"u"&&!G)throw new l("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:U,name:K,value:B}}throw new s("intrinsic "+Z+" does not exist!")};r.exports=function(Z,G){if(typeof Z!="string"||Z.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof G!="boolean")throw new l('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var K=A(Z),U=K.length>0?K[0]:"",B=H("%"+U+"%",G),Y=B.name,j=B.value,ne=!1,ee=B.alias;ee&&(U=ee[0],M(K,I([0,1],ee)));for(var ue=1,z=!0;ue<K.length;ue+=1){var X=K[ue],J=E(X,0,1),fe=E(X,-1);if((J==='"'||J==="'"||J==="`"||fe==='"'||fe==="'"||fe==="`")&&J!==fe)throw new s("property names with quotes must have matching quotes");if((X==="constructor"||!z)&&(ne=!0),U+="."+X,Y="%"+U+"%",_(O,Y))j=O[Y];else if(j!=null){if(!(X in j)){if(!G)throw new l("base intrinsic for "+Z+" exists, but the property is not available.");return}if(c&&ue+1>=K.length){var we=c(j,X);z=!!we,z&&"get"in we&&!("originalValue"in we.get)?j=we.get:j=j[X]}else z=_(j,X),j=j[X];z&&!ne&&(O[Y]=j)}}return j}},{"function-bind":9,has:15,"has-symbols":12}],11:[function(n,r,i){var o=n("get-intrinsic"),s=o("%Object.getOwnPropertyDescriptor%",!0);if(s)try{s([],"length")}catch{s=null}r.exports=s},{"get-intrinsic":10}],12:[function(n,r,i){var o=typeof Symbol<"u"&&Symbol,s=n("./shams");r.exports=function(){return typeof o!="function"||typeof Symbol!="function"||typeof o("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()}},{"./shams":13}],13:[function(n,r,i){r.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var u=42;s[a]=u;for(a in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var c=Object.getOwnPropertySymbols(s);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(s,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(s,a);if(f.value!==u||f.enumerable!==!0)return!1}return!0}},{}],14:[function(n,r,i){var o=n("has-symbols/shams");r.exports=function(){return o()&&!!Symbol.toStringTag}},{"has-symbols/shams":13}],15:[function(n,r,i){var o=n("function-bind");r.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":9}],16:[function(n,r,i){var o=r.exports=function(s,a){if(a||(a=16),s===void 0&&(s=128),s<=0)return"0";for(var l=Math.log(Math.pow(2,s))/Math.log(a),u=2;l===1/0;u*=2)l=Math.log(Math.pow(2,s/u))/Math.log(a)*u;for(var c=l-Math.floor(l),f="",u=0;u<Math.floor(l);u++){var d=Math.floor(Math.random()*a).toString(a);f=d+f}if(c){var h=Math.pow(a,c),d=Math.floor(Math.random()*h).toString(a);f=d+f}var p=parseInt(f,a);return p!==1/0&&p>=Math.pow(2,s)?o(s,a):f};o.rack=function(s,a,l){var u=function(f){var d=0;do{if(d++>10)if(l)s+=l;else throw new Error("too many ID collisions, use more bits");var h=o(s,a)}while(Object.hasOwnProperty.call(c,h));return c[h]=f,h},c=u.hats={};return u.get=function(f){return u.hats[f]},u.set=function(f,d){return u.hats[f]=d,u},u.bits=s||128,u.base=a||16,u}},{}],17:[function(n,r,i){typeof Object.create=="function"?r.exports=function(s,a){a&&(s.super_=a,s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(s,a){if(a){s.super_=a;var l=function(){};l.prototype=a.prototype,s.prototype=new l,s.prototype.constructor=s}}},{}],18:[function(n,r,i){var o=n("has-tostringtag/shams")(),s=n("call-bind/callBound"),a=s("Object.prototype.toString"),l=function(d){return o&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:a(d)==="[object Arguments]"},u=function(d){return l(d)?!0:d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},c=function(){return l(arguments)}();l.isLegacyArguments=u,r.exports=c?l:u},{"call-bind/callBound":3,"has-tostringtag/shams":14}],19:[function(n,r,i){var o=Function.prototype.toString,s=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,l;if(typeof s=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw l}}),l={},s(function(){throw 42},null,a)}catch(I){I!==l&&(s=null)}else s=null;var u=/^\s*class\b/,c=function(M){try{var P=o.call(M);return u.test(P)}catch{return!1}},f=function(M){try{return c(M)?!1:(o.call(M),!0)}catch{return!1}},d=Object.prototype.toString,h="[object Object]",p="[object Function]",g="[object GeneratorFunction]",y="[object HTMLAllCollection]",O="[object HTML document.all class]",b="[object HTMLCollection]",S=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var _=document.all;d.call(_)===d.call(document.all)&&(x=function(M){if((k||!M)&&(typeof M>"u"||typeof M=="object"))try{var P=d.call(M);return(P===y||P===O||P===b||P===h)&&M("")==null}catch{}return!1})}r.exports=s?function(M){if(x(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{s(M,null,a)}catch(P){if(P!==l)return!1}return!c(M)&&f(M)}:function(M){if(x(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(S)return f(M);if(c(M))return!1;var P=d.call(M);return P!==p&&P!==g&&!/^\[object HTML/.test(P)?!1:f(M)}},{}],20:[function(n,r,i){var o=Object.prototype.toString,s=Function.prototype.toString,a=/^\s*(?:function)?\*/,l=n("has-tostringtag/shams")(),u=Object.getPrototypeOf,c=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch{}},f;r.exports=function(h){if(typeof h!="function")return!1;if(a.test(s.call(h)))return!0;if(!l){var p=o.call(h);return p==="[object GeneratorFunction]"}if(!u)return!1;if(typeof f>"u"){var g=c();f=g?u(g):!1}return u(h)===f}},{"has-tostringtag/shams":14}],21:[function(n,r,i){(function(o){(function(){var s=n("for-each"),a=n("available-typed-arrays"),l=n("call-bind/callBound"),u=l("Object.prototype.toString"),c=n("has-tostringtag/shams")(),f=n("gopd"),d=typeof globalThis>"u"?o:globalThis,h=a(),p=l("Array.prototype.indexOf",!0)||function(k,x){for(var _=0;_<k.length;_+=1)if(k[_]===x)return _;return-1},g=l("String.prototype.slice"),y={},O=Object.getPrototypeOf;c&&f&&O&&s(h,function(S){var k=new d[S];if(Symbol.toStringTag in k){var x=O(k),_=f(x,Symbol.toStringTag);if(!_){var I=O(x);_=f(I,Symbol.toStringTag)}y[S]=_.get}});var b=function(k){var x=!1;return s(y,function(_,I){if(!x)try{x=_.call(k)===I}catch{}}),x};r.exports=function(k){if(!k||typeof k!="object")return!1;if(!c||!(Symbol.toStringTag in k)){var x=g(u(k),8,-1);return p(h,x)>-1}return f?b(k):!1}}).call(this)}).call(this,typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{"available-typed-arrays":2,"call-bind/callBound":3,"for-each":7,gopd:11,"has-tostringtag/shams":14}],22:[function(n,r,i){r.exports=o;function o(s,a,l,u){var c=function(d,h,p,g){a(p,d,h,"left"),a(g,h,d,"right")},f=s.transformX=function(d,h){l(d),l(h);for(var p=[],g=0;g<h.length;g++){for(var y=h[g],O=[],b=0;b<d.length;){var S=[];if(c(d[b],y,O,S),b++,S.length===1)y=S[0];else if(S.length===0){for(var k=b;k<d.length;k++)u(O,d[k]);y=null;break}else{for(var x=f(d.slice(b),S),_=0;_<x[0].length;_++)u(O,x[0][_]);for(var I=0;I<x[1].length;I++)u(p,x[1][I]);y=null;break}}y!=null&&u(p,y),d=O}return[d,p]};s.transform=function(d,h,p){if(!(p==="left"||p==="right"))throw new Error("type must be 'left' or 'right'");return h.length===0?d:d.length===1&&h.length===1?a([],d[0],h[0],p):p==="left"?f(d,h)[0]:f(h,d)[1]}}},{}],23:[function(n,r,i){r.exports={type:n("./json0")}},{"./json0":24}],24:[function(n,r,i){var o=function(p){return Object.prototype.toString.call(p)=="[object Array]"},s=function(p){return!!p&&p.constructor===Object},a=function(p){return JSON.parse(JSON.stringify(p))},l={name:"json0",uri:"http://sharejs.org/types/JSONv0"},u={};l.registerSubtype=function(p){u[p.name]=p},l.create=function(p){return p===void 0?null:a(p)},l.invertComponent=function(p){var g={p:p.p};return p.t&&u[p.t]&&(g.t=p.t,g.o=u[p.t].invert(p.o)),p.si!==void 0&&(g.sd=p.si),p.sd!==void 0&&(g.si=p.sd),p.oi!==void 0&&(g.od=p.oi),p.od!==void 0&&(g.oi=p.od),p.li!==void 0&&(g.ld=p.li),p.ld!==void 0&&(g.li=p.ld),p.na!==void 0&&(g.na=-p.na),p.lm!==void 0&&(g.lm=p.p[p.p.length-1],g.p=p.p.slice(0,p.p.length-1).concat([p.lm])),g},l.invert=function(p){for(var g=p.slice().reverse(),y=[],O=0;O<g.length;O++)y.push(l.invertComponent(g[O]));return y},l.checkValidOp=function(p){for(var g=0;g<p.length;g++)if(!o(p[g].p))throw new Error("Missing path")},l.checkList=function(p){if(!o(p))throw new Error("Referenced element not a list")},l.checkObj=function(p){if(!s(p))throw new Error("Referenced element not an object (it was "+JSON.stringify(p)+")")};function c(p){p.t="text0";var g={p:p.p.pop()};p.si!=null&&(g.i=p.si),p.sd!=null&&(g.d=p.sd),p.o=[g]}function f(p){p.p.push(p.o[0].p),p.o[0].i!=null&&(p.si=p.o[0].i),p.o[0].d!=null&&(p.sd=p.o[0].d),delete p.t,delete p.o}l.apply=function(p,g){l.checkValidOp(g),g=a(g);for(var y={data:p},O=0;O<g.length;O++){var b=g[O];(b.si!=null||b.sd!=null)&&c(b);for(var S=null,k=y,x="data",_=0;_<b.p.length;_++){var I=b.p[_];if(S=k,k=k[x],x=I,S==null)throw new Error("Path invalid")}if(b.t&&b.o!==void 0&&u[b.t])k[x]=u[b.t].apply(k[x],b.o);else if(b.na!==void 0){if(typeof k[x]!="number")throw new Error("Referenced element not a number");k[x]+=b.na}else if(b.li!==void 0&&b.ld!==void 0)l.checkList(k),k[x]=b.li;else if(b.li!==void 0)l.checkList(k),k.splice(x,0,b.li);else if(b.ld!==void 0)l.checkList(k),k.splice(x,1);else if(b.lm!==void 0){if(l.checkList(k),b.lm!=x){var M=k[x];k.splice(x,1),k.splice(b.lm,0,M)}}else if(b.oi!==void 0)l.checkObj(k),k[x]=b.oi;else if(b.od!==void 0)l.checkObj(k),delete k[x];else throw new Error("invalid / missing instruction in op")}return y.data},l.shatter=function(p){for(var g=[],y=0;y<p.length;y++)g.push([p[y]]);return g},l.incrementalApply=function(p,g,y){for(var O=0;O<g.length;O++){var b=[g[O]];p=l.apply(p,b),y(b,p)}return p};var d=l.pathMatches=function(p,g,y){if(p.length!=g.length)return!1;for(var O=0;O<p.length;O++)if(p[O]!==g[O]&&(!y||O!==p.length-1))return!1;return!0};l.append=function(p,g){if(g=a(g),p.length===0){p.push(g);return}var y=p[p.length-1];if((g.si!=null||g.sd!=null)&&(y.si!=null||y.sd!=null)&&(c(g),c(y)),d(g.p,y.p))if(g.t&&y.t&&g.t===y.t&&u[g.t]){if(y.o=u[g.t].compose(y.o,g.o),g.si!=null||g.sd!=null){for(var O=g.p,b=0;b<y.o.length-1;b++)g.o=[y.o.pop()],g.p=O.slice(),f(g),p.push(g);f(y)}}else y.na!=null&&g.na!=null?p[p.length-1]={p:y.p,na:y.na+g.na}:y.li!==void 0&&g.li===void 0&&g.ld===y.li?y.ld!==void 0?delete y.li:p.pop():y.od!==void 0&&y.oi===void 0&&g.oi!==void 0&&g.od===void 0?y.oi=g.oi:y.oi!==void 0&&g.od!==void 0?g.oi!==void 0?y.oi=g.oi:y.od!==void 0?delete y.oi:p.pop():g.lm!==void 0&&g.p[g.p.length-1]===g.lm||p.push(g);else(g.si!=null||g.sd!=null)&&(y.si!=null||y.sd!=null)&&(f(g),f(y)),p.push(g)},l.compose=function(p,g){l.checkValidOp(p),l.checkValidOp(g);for(var y=a(p),O=0;O<g.length;O++)l.append(y,g[O]);return y},l.normalize=function(p){var g=[];p=o(p)?p:[p];for(var y=0;y<p.length;y++){var O=p[y];O.p==null&&(O.p=[]),l.append(g,O)}return g},l.commonLengthForOps=function(p,g){var y=p.p.length,O=g.p.length;if((p.na!=null||p.t)&&y++,(g.na!=null||g.t)&&O++,y===0)return-1;if(O===0)return null;y--,O--;for(var b=0;b<y;b++){var S=p.p[b];if(b>=O||S!==g.p[b])return null}return y},l.canOpAffectPath=function(p,g){return l.commonLengthForOps({p:g},p)!=null},l.transformComponent=function(p,g,y,O){g=a(g);var b=l.commonLengthForOps(y,g),S=l.commonLengthForOps(g,y),k=g.p.length,x=y.p.length;if((g.na!=null||g.t)&&k++,(y.na!=null||y.t)&&x++,S!=null&&x>k&&g.p[S]==y.p[S]){if(g.ld!==void 0){var _=a(y);_.p=_.p.slice(k),g.ld=l.apply(a(g.ld),[_])}else if(g.od!==void 0){var _=a(y);_.p=_.p.slice(k),g.od=l.apply(a(g.od),[_])}}if(b!=null){var I=k==x,_=y;if((g.si!=null||g.sd!=null)&&(y.si!=null||y.sd!=null)&&(c(g),_=a(y),c(_)),_.t&&u[_.t]){if(g.t&&g.t===_.t){var M=u[g.t].transform(g.o,_.o,O);if(g.si!=null||g.sd!=null)for(var P=g.p,E=0;E<M.length;E++)g.o=[M[E]],g.p=P.slice(),f(g),l.append(p,g);else(!o(M)||M.length>0)&&(g.o=M,l.append(p,g));return p}}else if(y.na===void 0){if(y.li!==void 0&&y.ld!==void 0){if(y.p[b]===g.p[b])if(I){if(g.ld!==void 0)if(g.li!==void 0&&O==="left")g.ld=a(y.li);else return p}else return p}else if(y.li!==void 0)g.li!==void 0&&g.ld===void 0&&I&&g.p[b]===y.p[b]?O==="right"&&g.p[b]++:y.p[b]<=g.p[b]&&g.p[b]++,g.lm!==void 0&&I&&y.p[b]<=g.lm&&g.lm++;else if(y.ld!==void 0){if(g.lm!==void 0&&I){if(y.p[b]===g.p[b])return p;var P=y.p[b],R=g.p[b],T=g.lm;(P<T||P===T&&R<T)&&g.lm--}if(y.p[b]<g.p[b])g.p[b]--;else if(y.p[b]===g.p[b]){if(x<k)return p;if(g.ld!==void 0)if(g.li!==void 0)delete g.ld;else return p}}else if(y.lm!==void 0)if(g.lm!==void 0&&k===x){var R=g.p[b],T=g.lm,L=y.p[b],A=y.lm;if(L!==A)if(R===L)if(O==="left")g.p[b]=A,R===T&&(g.lm=A);else return p;else R>L&&g.p[b]--,R>A?g.p[b]++:R===A&&L>A&&(g.p[b]++,R===T&&g.lm++),(T>L||T===L&&T>R)&&g.lm--,T>A?g.lm++:T===A&&(A>L&&T>R||A<L&&T<R?O==="right"&&g.lm++:T>R?g.lm++:T===L&&g.lm--)}else if(g.li!==void 0&&g.ld===void 0&&I){var R=y.p[b],T=y.lm;P=g.p[b],P>R&&g.p[b]--,P>T&&g.p[b]++}else{var R=y.p[b],T=y.lm;P=g.p[b],P===R?g.p[b]=T:(P>R&&g.p[b]--,(P>T||P===T&&R>T)&&g.p[b]++)}else if(y.oi!==void 0&&y.od!==void 0){if(g.p[b]===y.p[b])if(g.oi!==void 0&&I){if(O==="right")return p;g.od=y.oi}else return p}else if(y.oi!==void 0){if(g.oi!==void 0&&g.p[b]===y.p[b])if(O==="left")l.append(p,{p:g.p,od:y.oi});else return p}else if(y.od!==void 0&&g.p[b]==y.p[b]){if(!I)return p;if(g.oi!==void 0)delete g.od;else return p}}}return l.append(p,g),p},n("./bootstrapTransform")(l,l.transformComponent,l.checkValidOp,l.append);var h=n("./text0");l.registerSubtype(h),r.exports=l},{"./bootstrapTransform":22,"./text0":25}],25:[function(n,r,i){var o=r.exports={name:"text0",uri:"http://sharejs.org/types/textv0",create:function(h){if(h!=null&&typeof h!="string")throw new Error("Initial data must be a string");return h||""}},s=function(h,p,g){return h.slice(0,p)+g+h.slice(p)},a=function(h){if(typeof h.p!="number")throw new Error("component missing position field");if(typeof h.i=="string"==(typeof h.d=="string"))throw new Error("component needs an i or d field");if(h.p<0)throw new Error("position cannot be negative")},l=function(h){for(var p=0;p<h.length;p++)a(h[p])};o.apply=function(h,p){var g;l(p);for(var y=0;y<p.length;y++){var O=p[y];if(O.i!=null)h=s(h,O.p,O.i);else{if(g=h.slice(O.p,O.p+O.d.length),O.d!==g)throw new Error("Delete component '"+O.d+"' does not match deleted text '"+g+"'");h=h.slice(0,O.p)+h.slice(O.p+O.d.length)}}return h};var u=o._append=function(h,p){if(!(p.i===""||p.d===""))if(h.length===0)h.push(p);else{var g=h[h.length-1];g.i!=null&&p.i!=null&&g.p<=p.p&&p.p<=g.p+g.i.length?h[h.length-1]={i:s(g.i,p.p-g.p,p.i),p:g.p}:g.d!=null&&p.d!=null&&p.p<=g.p&&g.p<=p.p+p.d.length?h[h.length-1]={d:s(p.d,g.p-p.p,g.d),p:p.p}:h.push(p)}};o.compose=function(h,p){l(h),l(p);for(var g=h.slice(),y=0;y<p.length;y++)u(g,p[y]);return g},o.normalize=function(h){var p=[];(h.i!=null||h.p!=null)&&(h=[h]);for(var g=0;g<h.length;g++){var y=h[g];y.p==null&&(y.p=0),u(p,y)}return p};var c=function(h,p,g){return p.i!=null?p.p<h||p.p===h&&g?h+p.i.length:h:h<=p.p?h:h<=p.p+p.d.length?p.p:h-p.d.length};o.transformCursor=function(h,p,g){for(var y=g==="right",O=0;O<p.length;O++)h=c(h,p[O],y);return h};var f=o._tc=function(h,p,g,y){if(a(p),a(g),p.i!=null)u(h,{i:p.i,p:c(p.p,g,y==="right")});else if(g.i!=null){var O=p.d;p.p<g.p&&(u(h,{d:O.slice(0,g.p-p.p),p:p.p}),O=O.slice(g.p-p.p)),O!==""&&u(h,{d:O,p:p.p+g.i.length})}else if(p.p>=g.p+g.d.length)u(h,{d:p.d,p:p.p-g.d.length});else if(p.p+p.d.length<=g.p)u(h,p);else{var b={d:"",p:p.p};p.p<g.p&&(b.d=p.d.slice(0,g.p-p.p)),p.p+p.d.length>g.p+g.d.length&&(b.d+=p.d.slice(g.p+g.d.length-p.p));var S=Math.max(p.p,g.p),k=Math.min(p.p+p.d.length,g.p+g.d.length),x=p.d.slice(S-p.p,k-p.p),_=g.d.slice(S-g.p,k-g.p);if(x!==_)throw new Error("Delete ops delete different text in the same region of the document");b.d!==""&&(b.p=c(b.p,g),u(h,b))}return h},d=function(h){return h.i!=null?{d:h.i,p:h.p}:{i:h.d,p:h.p}};o.invert=function(h){h=h.slice().reverse();for(var p=0;p<h.length;p++)h[p]=d(h[p]);return h},n("./bootstrapTransform")(o,f,l,u)},{"./bootstrapTransform":22}],26:[function(n,r,i){var o=r.exports={},s,a;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?a=clearTimeout:a=u}catch{a=u}})();function c(k){if(s===setTimeout)return setTimeout(k,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(k,0);try{return s(k,0)}catch{try{return s.call(null,k,0)}catch{return s.call(this,k,0)}}}function f(k){if(a===clearTimeout)return clearTimeout(k);if((a===u||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(k);try{return a(k)}catch{try{return a.call(null,k)}catch{return a.call(this,k)}}}var d=[],h=!1,p,g=-1;function y(){!h||!p||(h=!1,p.length?d=p.concat(d):g=-1,d.length&&O())}function O(){if(!h){var k=c(y);h=!0;for(var x=d.length;x;){for(p=d,d=[];++g<x;)p&&p[g].run();g=-1,x=d.length}p=null,h=!1,f(k)}}o.nextTick=function(k){var x=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)x[_-1]=arguments[_];d.push(new b(k,x)),d.length===1&&!h&&c(O)};function b(k,x){this.fun=k,this.array=x}b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function S(){}o.on=S,o.addListener=S,o.once=S,o.off=S,o.removeListener=S,o.removeAllListeners=S,o.emit=S,o.prependListener=S,o.prependOnceListener=S,o.listeners=function(k){return[]},o.binding=function(k){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(k){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],27:[function(n,r,i){var o=n("./doc"),s=n("./query"),a=n("./presence/presence"),l=n("./presence/doc-presence"),u=n("./snapshot-request/snapshot-version-request"),c=n("./snapshot-request/snapshot-timestamp-request"),f=n("../emitter"),d=n("../error"),h=n("../message-actions").ACTIONS,p=n("../types"),g=n("../util"),y=n("../logger"),O=n("./presence/doc-presence-emitter"),b=n("../protocol"),S=d.CODES;function k(P){return P.readyState===0||P.readyState===1?"connecting":"disconnected"}r.exports=x;function x(P){f.EventEmitter.call(this),this.collections=Object.create(null),this.nextQueryId=1,this.nextSnapshotRequestId=1,this.queries=Object.create(null),this._presences=Object.create(null),this._docPresenceEmitter=new O,this._snapshotRequests=Object.create(null),this.seq=1,this._presenceSeq=1,this.id=null,this.agent=null,this.debug=!1,this.state=k(P),this.bindToSocket(P)}f.mixin(x),x.prototype.bindToSocket=function(P){this.socket&&(this.socket.close(),this.socket.onmessage=null,this.socket.onopen=null,this.socket.onerror=null,this.socket.onclose=null),this.socket=P;var E=k(P);this._setState(E),this.canSend=!1;var R=this;P.onmessage=function(T){try{var L=typeof T.data=="string"?JSON.parse(T.data):T.data}catch{y.warn("Failed to parse message",T);return}R.debug&&y.info("RECV",JSON.stringify(L));var A={data:L};if(R.emit("receive",A),!!A.data)try{R.handleMessage(A.data)}catch(H){g.nextTick(function(){R.emit("error",H)})}},P.readyState===1&&R._initializeHandshake(),P.onopen=function(){R._setState("connecting"),R._initializeHandshake()},P.onerror=function(T){R.emit("connection error",T)},P.onclose=function(T){T==="closed"||T==="Closed"?R._setState("closed",T):T==="stopped"||T==="Stopped by server"?R._setState("stopped",T):R._setState("disconnected",T)}},x.prototype.handleMessage=function(P){var E=null;switch(P.error&&(E=_(P.error,P),delete P.error),P.a){case h.initLegacy:return this._handleLegacyInit(P);case h.handshake:return this._handleHandshake(E,P);case h.queryFetch:var R=this.queries[P.id];R&&R._handleFetch(E,P.data,P.extra);return;case h.querySubscribe:var R=this.queries[P.id];R&&R._handleSubscribe(E,P.data,P.extra);return;case h.queryUnsubscribe:return;case h.queryUpdate:var R=this.queries[P.id];if(!R)return;if(E)return R._handleError(E);P.diff&&R._handleDiff(P.diff),g.hasOwn(P,"extra")&&R._handleExtra(P.extra);return;case h.bulkFetch:return this._handleBulkMessage(E,P,"_handleFetch");case h.bulkSubscribe:case h.bulkUnsubscribe:return this._handleBulkMessage(E,P,"_handleSubscribe");case h.snapshotFetch:case h.snapshotFetchByTimestamp:return this._handleSnapshotFetch(E,P);case h.fetch:var T=this.getExisting(P.c,P.d);T&&T._handleFetch(E,P.data);return;case h.subscribe:case h.unsubscribe:var T=this.getExisting(P.c,P.d);T&&T._handleSubscribe(E,P.data);return;case h.op:var T=this.getExisting(P.c,P.d);T&&T._handleOp(E,P);return;case h.presence:return this._handlePresence(E,P);case h.presenceSubscribe:return this._handlePresenceSubscribe(E,P);case h.presenceUnsubscribe:return this._handlePresenceUnsubscribe(E,P);case h.presenceRequest:return this._handlePresenceRequest(E,P);case h.pingPong:return this._handlePingPong(E);default:y.warn("Ignoring unrecognized message",P)}};function _(P,E){var R=new Error(P.message);return R.code=P.code,E&&(R.data=E),R}x.prototype._handleBulkMessage=function(P,E,R){if(E.data)for(var T in E.data){var L=E.data[T],A=this.getExisting(E.c,T);A&&(P?A[R](P):L.error?A[R](_(L.error)):A[R](null,L))}else if(Array.isArray(E.b))for(var H=0;H<E.b.length;H++){var T=E.b[H],A=this.getExisting(E.c,T);A&&A[R](P)}else if(E.b)for(var T in E.b){var A=this.getExisting(E.c,T);A&&A[R](P)}else y.error("Invalid bulk message",E)},x.prototype._reset=function(){this.agent=null},x.prototype._setState=function(P,E){if(this.state!==P){if(P==="connecting"&&this.state!=="disconnected"&&this.state!=="stopped"&&this.state!=="closed"||P==="connected"&&this.state!=="connecting"){var R=new d(S.ERR_CONNECTION_STATE_TRANSITION_INVALID,"Cannot transition directly from "+this.state+" to "+P);return this.emit("error",R)}this.state=P,this.canSend=P==="connected",(P==="disconnected"||P==="stopped"||P==="closed")&&this._reset(),this.startBulk();for(var T in this.queries){var L=this.queries[T];L._onConnectionStateChanged()}for(var A in this.collections){var H=this.collections[A];for(var T in H)H[T]._onConnectionStateChanged()}for(var W in this._presences)this._presences[W]._onConnectionStateChanged();for(var T in this._snapshotRequests){var Z=this._snapshotRequests[T];Z._onConnectionStateChanged()}this.endBulk(),this.emit(P,E),this.emit("state",P,E)}},x.prototype.startBulk=function(){this.bulk||(this.bulk=Object.create(null))},x.prototype.endBulk=function(){if(this.bulk)for(var P in this.bulk){var E=this.bulk[P];this._sendBulk("f",P,E.f),this._sendBulk("s",P,E.s),this._sendBulk("u",P,E.u)}this.bulk=null},x.prototype._sendBulk=function(P,E,R){if(R){var T=[],L=Object.create(null),A=0,H;for(var W in R){var Z=R[W];Z==null?T.push(W):(L[W]=Z,H=W,A++)}if(T.length===1){var W=T[0];this.send({a:P,c:E,d:W})}else T.length&&this.send({a:"b"+P,c:E,b:T});if(A===1){var G=L[H];this.send({a:P,c:E,d:H,v:G})}else A&&this.send({a:"b"+P,c:E,b:L})}},x.prototype._sendActions=function(P,E,R){if(this._addDoc(E),this.bulk){var T=this.bulk[E.collection]||(this.bulk[E.collection]=Object.create(null)),L=T[P]||(T[P]=Object.create(null)),A=g.hasOwn(L,E.id);return L[E.id]=R,A}else{var H={a:P,c:E.collection,d:E.id,v:R};this.send(H)}},x.prototype.sendFetch=function(P){return this._sendActions(h.fetch,P,P.version)},x.prototype.sendSubscribe=function(P){return this._sendActions(h.subscribe,P,P.version)},x.prototype.sendUnsubscribe=function(P){return this._sendActions(h.unsubscribe,P)},x.prototype.sendOp=function(P,E){this._addDoc(P);var R={a:h.op,c:P.collection,d:P.id,v:P.version,src:E.src,seq:E.seq,x:{}};"op"in E&&(R.op=E.op),E.create&&(R.create=E.create),E.del&&(R.del=E.del),P.submitSource&&(R.x.source=E.source),this.send(R)},x.prototype.send=function(P){this.debug&&y.info("SEND",JSON.stringify(P)),this.emit("send",P),this.socket.send(JSON.stringify(P))},x.prototype.ping=function(){if(!this.canSend)throw new d(S.ERR_CANNOT_PING_OFFLINE,"Socket must be CONNECTED to ping");var P={a:h.pingPong};this.send(P)},x.prototype.close=function(){this.socket.close()},x.prototype.getExisting=function(P,E){if(this.collections[P])return this.collections[P][E]},x.prototype.get=function(P,E){var R=this.collections[P]||(this.collections[P]=Object.create(null)),T=R[E];return T||(T=R[E]=new o(this,P,E),this.emit("doc",T)),T._wantsDestroy=!1,T},x.prototype._destroyDoc=function(P){P._wantsDestroy&&(g.digAndRemove(this.collections,P.collection,P.id),P.emit("destroy"))},x.prototype._addDoc=function(P){var E=this.collections[P.collection];E||(E=this.collections[P.collection]=Object.create(null)),E[P.id]!==P&&(E[P.id]=P)},x.prototype._createQuery=function(P,E,R,T,L){var A=this.nextQueryId++,H=new s(P,this,A,E,R,T,L);return this.queries[A]=H,H.send(),H},x.prototype._destroyQuery=function(P){delete this.queries[P.id]},x.prototype.createFetchQuery=function(P,E,R,T){return this._createQuery(h.queryFetch,P,E,R,T)},x.prototype.createSubscribeQuery=function(P,E,R,T){return this._createQuery(h.querySubscribe,P,E,R,T)},x.prototype.hasPending=function(){return!!(this._firstDoc(I)||this._firstQuery(I)||this._firstSnapshotRequest())};function I(P){return P.hasPending()}x.prototype.hasWritePending=function(){return!!this._firstDoc(M)};function M(P){return P.hasWritePending()}x.prototype.whenNothingPending=function(P){var E=this._firstDoc(I);if(E){E.once("nothing pending",this._nothingPendingRetry(P));return}var R=this._firstQuery(I);if(R){R.once("ready",this._nothingPendingRetry(P));return}var T=this._firstSnapshotRequest();if(T){T.once("ready",this._nothingPendingRetry(P));return}g.nextTick(P)},x.prototype._nothingPendingRetry=function(P){var E=this;return function(){g.nextTick(function(){E.whenNothingPending(P)})}},x.prototype._firstDoc=function(P){for(var E in this.collections){var R=this.collections[E];for(var T in R){var L=R[T];if(P(L))return L}}},x.prototype._firstQuery=function(P){for(var E in this.queries){var R=this.queries[E];if(P(R))return R}},x.prototype._firstSnapshotRequest=function(){for(var P in this._snapshotRequests)return this._snapshotRequests[P]},x.prototype.fetchSnapshot=function(P,E,R,T){typeof R=="function"&&(T=R,R=null);var L=this.nextSnapshotRequestId++,A=new u(this,L,P,E,R,T);this._snapshotRequests[A.requestId]=A,A.send()},x.prototype.fetchSnapshotByTimestamp=function(P,E,R,T){typeof R=="function"&&(T=R,R=null);var L=this.nextSnapshotRequestId++,A=new c(this,L,P,E,R,T);this._snapshotRequests[A.requestId]=A,A.send()},x.prototype._handleSnapshotFetch=function(P,E){var R=this._snapshotRequests[E.id];R&&(delete this._snapshotRequests[E.id],R._handleResponse(P,E))},x.prototype._handleLegacyInit=function(P){if(b.checkAtLeast(P,"1.1"))return this._initializeHandshake();this._initialize(P)},x.prototype._initializeHandshake=function(){this.send({a:h.handshake,id:this.id,protocol:b.major,protocolMinor:b.minor})},x.prototype._handleHandshake=function(P,E){if(P)return this.emit("error",P);this._initialize(E)},x.prototype._handlePingPong=function(P){if(P)return this.emit("error",P);this.emit("pong")},x.prototype._initialize=function(P){if(this.state==="connecting"){if(P.protocol!==b.major)return this.emit("error",new d(S.ERR_PROTOCOL_VERSION_NOT_SUPPORTED,"Unsupported protocol version: "+P.protocol));if(p.map[P.type]!==p.defaultType)return this.emit("error",new d(S.ERR_DEFAULT_TYPE_MISMATCH,P.type+" does not match the server default type"));if(typeof P.id!="string")return this.emit("error",new d(S.ERR_CLIENT_ID_BADLY_FORMED,"Client id must be a string"));this.id=P.id,this._setState("connected")}},x.prototype.getPresence=function(P){var E=this,R=g.digOrCreate(this._presences,P,function(){return new a(E,P)});return R._wantsDestroy=!1,R},x.prototype.getDocPresence=function(P,E){var R=l.channel(P,E),T=this,L=g.digOrCreate(this._presences,R,function(){return new l(T,P,E)});return L._wantsDestroy=!1,L},x.prototype._sendPresenceAction=function(P,E,R){this._addPresence(R);var T={a:P,ch:R.channel,seq:E};return this.send(T),T.seq},x.prototype._addPresence=function(P){g.digOrCreate(this._presences,P.channel,function(){return P})},x.prototype._requestRemotePresence=function(P){this.send({a:h.presenceRequest,ch:P})},x.prototype._handlePresenceSubscribe=function(P,E){var R=g.dig(this._presences,E.ch);R&&R._handleSubscribe(P,E.seq)},x.prototype._handlePresenceUnsubscribe=function(P,E){var R=g.dig(this._presences,E.ch);R&&R._handleUnsubscribe(P,E.seq)},x.prototype._handlePresence=function(P,E){var R=g.dig(this._presences,E.ch);R&&R._receiveUpdate(P,E)},x.prototype._handlePresenceRequest=function(P,E){var R=g.dig(this._presences,E.ch);R&&R._broadcastAllLocalPresence(P,E)}},{"../emitter":41,"../error":42,"../logger":43,"../message-actions":45,"../protocol":48,"../types":50,"../util":51,"./doc":28,"./presence/doc-presence":31,"./presence/doc-presence-emitter":30,"./presence/presence":34,"./query":37,"./snapshot-request/snapshot-timestamp-request":39,"./snapshot-request/snapshot-version-request":40}],28:[function(n,r,i){var o=n("../emitter"),s=n("../logger"),a=n("../error"),l=n("../types"),u=n("../util"),c=u.clone,f=n("fast-deep-equal"),d=n("../message-actions").ACTIONS,h=a.CODES;r.exports=p;function p(b,S,k){o.EventEmitter.call(this),this.connection=b,this.collection=S,this.id=k,this.version=null,this.type=null,this.data=void 0,this.inflightFetch=[],this.inflightSubscribe=null,this.pendingFetch=[],this.pendingSubscribe=[],this._isInHardRollback=!1,this.subscribed=!1,this.wantSubscribe=!1,this._wantsDestroy=!1,this.inflightOp=null,this.pendingOps=[],this.applyStack=null,this.preventCompose=!1,this.submitSource=!1,this.paused=!1,this._dataStateVersion=0}o.mixin(p),p.prototype.destroy=function(b){this._wantsDestroy=!0;var S=this;S.whenNothingPending(function(){S.wantSubscribe?S.unsubscribe(function(k){if(k)return b?b(k):S.emit("error",k);S.connection._destroyDoc(S),b&&b()}):(S.connection._destroyDoc(S),b&&b())})},p.prototype._setType=function(b){if(typeof b=="string"&&(b=l.map[b]),b)this.type=b;else if(b===null)this.type=b,this._setData(void 0);else{var S=new a(h.ERR_DOC_TYPE_NOT_RECOGNIZED,"Missing type "+b);return this.emit("error",S)}},p.prototype._setData=function(b){this.data=b,this._dataStateVersion++},p.prototype.ingestSnapshot=function(b,S){if(!b)return S&&S();if(typeof b.v!="number"){var k=new a(h.ERR_INGESTED_SNAPSHOT_HAS_NO_VERSION,"Missing version in ingested snapshot. "+this.collection+"."+this.id);return S?S(k):this.emit("error",k)}if(this.type||this.hasWritePending()){if(this.version==null){if(this.hasWritePending())return S&&this.once("no write pending",S);var k=new a(h.ERR_DOC_MISSING_VERSION,"Cannot ingest snapshot in doc with null version. "+this.collection+"."+this.id);return S?S(k):this.emit("error",k)}return b.v>this.version?this.fetch(S):S&&S()}if(this.version>b.v)return S&&S();this.version=b.v;var x=b.type===void 0?l.defaultType:b.type;this._setType(x),this._setData(this.type&&this.type.deserialize?this.type.deserialize(b.data):b.data),this.emit("load"),S&&S()},p.prototype.whenNothingPending=function(b){var S=this;u.nextTick(function(){if(S.hasPending()){S.once("nothing pending",b);return}b()})},p.prototype.hasPending=function(){return!!(this.inflightOp||this.pendingOps.length||this.inflightFetch.length||this.inflightSubscribe||this.pendingFetch.length||this.pendingSubscribe.length)},p.prototype.hasWritePending=function(){return!!(this.inflightOp||this.pendingOps.length)},p.prototype._emitNothingPending=function(){this.hasWritePending()||(this.emit("no write pending"),!this.hasPending()&&this.emit("nothing pending"))},p.prototype._emitResponseError=function(b,S){if(b&&b.code===h.ERR_SNAPSHOT_READ_SILENT_REJECTION){this.wantSubscribe=!1,S&&S(),this._emitNothingPending();return}if(S){S(b),this._emitNothingPending();return}this._emitNothingPending(),this.emit("error",b)},p.prototype._handleFetch=function(b,S){var k=this.pendingFetch;this.pendingFetch=[];var x=this.inflightFetch.shift();if(x&&k.unshift(x),k.length&&(x=function(_){u.callEach(k,_)}),b)return this._emitResponseError(b,x);this.ingestSnapshot(S,x),this._emitNothingPending()},p.prototype._handleSubscribe=function(b,S){var k=this.inflightSubscribe;this.inflightSubscribe=null;var x=this.pendingFetch;this.pendingFetch=[],k.callback&&x.push(k.callback);var _;if(x.length&&(_=function(I){u.callEach(x,I)}),b)return this._emitResponseError(b,_);this.subscribed=k.wantSubscribe,this.subscribed?this.ingestSnapshot(S,_):_&&_(),this._emitNothingPending(),this._flushSubscribe()},p.prototype._handleOp=function(b,S){if(b)return b.code===h.ERR_NO_OP&&S.seq===this.inflightOp.seq?this.fetch(this._clearInflightOp.bind(this)):this.inflightOp?this._rollback(b):this.emit("error",b);if(this.inflightOp&&S.src===this.inflightOp.src&&S.seq===this.inflightOp.seq){this._opAcknowledged(S);return}if(this.version==null||S.v>this.version){this.fetch();return}if(!(S.v<this.version)){if(this.inflightOp){var k=O(this.inflightOp,S);if(k)return this._hardRollback(k)}for(var x=0;x<this.pendingOps.length;x++){var k=O(this.pendingOps[x],S);if(k)return this._hardRollback(k)}this.version++;try{this._otApply(S,!1)}catch(_){return this._hardRollback(_)}}},p.prototype._onConnectionStateChanged=function(){this.connection.canSend?(this.flush(),this._resubscribe()):(this.inflightOp&&(this.pendingOps.unshift(this.inflightOp),this.inflightOp=null),this.subscribed=!1,this.inflightSubscribe&&(this.inflightSubscribe.wantSubscribe?(this.pendingSubscribe.unshift(this.inflightSubscribe),this.inflightSubscribe=null):this._handleSubscribe()),this.inflightFetch.length&&(this.pendingFetch=this.pendingFetch.concat(this.inflightFetch),this.inflightFetch.length=0))},p.prototype._resubscribe=function(){if(!this.pendingSubscribe.length&&this.wantSubscribe)return this.subscribe();var b=this.pendingSubscribe.some(function(S){return S.wantSubscribe});!b&&this.pendingFetch.length&&this.fetch(),this._flushSubscribe()},p.prototype.fetch=function(b){this._fetch({},b)},p.prototype._fetch=function(b,S){this.pendingFetch.push(S);var k=this.connection.canSend&&(b.force||!this.inflightFetch.length);k&&(this.inflightFetch.push(this.pendingFetch.shift()),this.connection.sendFetch(this))},p.prototype.subscribe=function(b){var S=!0;this._queueSubscribe(S,b)},p.prototype.unsubscribe=function(b){var S=!1;this._queueSubscribe(S,b)},p.prototype._queueSubscribe=function(b,S){var k=this.pendingSubscribe[this.pendingSubscribe.length-1]||this.inflightSubscribe,x=k&&k.wantSubscribe===b;if(x){k.callback=g([k.callback,S]);return}this.pendingSubscribe.push({wantSubscribe:!!b,callback:S}),this._flushSubscribe()},p.prototype._flushSubscribe=function(){if(!(this.inflightSubscribe||!this.pendingSubscribe.length)){if(this.connection.canSend){this.inflightSubscribe=this.pendingSubscribe.shift(),this.wantSubscribe=this.inflightSubscribe.wantSubscribe,this.wantSubscribe?this.connection.sendSubscribe(this):(this.subscribed=!1,this.connection.sendUnsubscribe(this));return}if(!this.pendingSubscribe[0].wantSubscribe){this.inflightSubscribe=this.pendingSubscribe.shift();var b=this;u.nextTick(function(){b._handleSubscribe()})}}};function g(b){return b=b.filter(u.truthy),b.length?function(S){u.callEach(b,S)}:null}p.prototype.flush=function(){!this.connection.canSend||this.inflightOp||!this.paused&&this.pendingOps.length&&this._sendOp()};function y(b){delete b.op,delete b.create,delete b.del}function O(b,S){if(b.del)return y(S);if(S.del)return new a(h.ERR_DOC_WAS_DELETED,"Document was deleted");if(S.create)return new a(h.ERR_DOC_ALREADY_CREATED,"Document already created");if("op"in S){if(b.create)return new a(h.ERR_DOC_ALREADY_CREATED,"Document already created");if(b.type.transformX){var k=b.type.transformX(b.op,S.op);b.op=k[0],S.op=k[1]}else{var x=b.type.transform(b.op,S.op,"left"),_=b.type.transform(S.op,b.op,"right");b.op=x,S.op=_}}}p.prototype._otApply=function(b,S){if("op"in b){if(!this.type)throw new a(h.ERR_DOC_DOES_NOT_EXIST,"Cannot apply op to uncreated document. "+this.collection+"."+this.id);if(this.emit("before op batch",b.op,S),!S&&this.type===l.defaultType&&b.op.length>1){this.applyStack||(this.applyStack=[]);for(var k=this.applyStack.length,x=0;x<b.op.length;x++){var _=b.op[x],I={op:[_]};this.emit("before op",I.op,S,b.src);for(var M=k;M<this.applyStack.length;M++){var P=O(this.applyStack[M],I);if(P)return this._hardRollback(P)}this._setData(this.type.apply(this.data,I.op)),this.emit("op",I.op,S,b.src)}this.emit("op batch",b.op,S),this._popApplyStack(k);return}this.emit("before op",b.op,S,b.src),this._setData(this.type.apply(this.data,b.op)),this.emit("op",b.op,S,b.src),this.emit("op batch",b.op,S);return}if(b.create){this._setType(b.create.type),this.type.deserialize?this.type.createDeserialized?this._setData(this.type.createDeserialized(b.create.data)):this._setData(this.type.deserialize(this.type.create(b.create.data))):this._setData(this.type.create(b.create.data)),this.emit("create",S);return}if(b.del){var E=this.data;this._setType(null),this.emit("del",E,S);return}},p.prototype._sendOp=function(){if(this.connection.canSend){var b=this.connection.id;this.inflightOp||(this.inflightOp=this.pendingOps.shift());var S=this.inflightOp;if(!S){var k=new a(h.ERR_INFLIGHT_OP_MISSING,"No op to send on call to _sendOp");return this.emit("error",k)}if(S.sentAt=Date.now(),S.retries=S.retries==null?0:S.retries+1,S.seq==null){if(this.connection.seq>=u.MAX_SAFE_INTEGER)return this.emit("error",new a(h.ERR_CONNECTION_SEQ_INTEGER_OVERFLOW,"Connection seq has exceeded the max safe integer, maybe from being open for too long"));S.seq=this.connection.seq++}this.connection.sendOp(this,S),S.src==null&&(S.src=b)}},p.prototype._submit=function(b,S,k){if(S||(S=!0),"op"in b){if(!this.type){if(this._isInHardRollback)var x=new a(h.ERR_DOC_IN_HARD_ROLLBACK,"Cannot submit op. Document is performing hard rollback. "+this.collection+"."+this.id);else var x=new a(h.ERR_DOC_DOES_NOT_EXIST,"Cannot submit op. Document has not been created. "+this.collection+"."+this.id);return k?k(x):this.emit("error",x)}this.type.normalize&&(b.op=this.type.normalize(b.op))}try{this._pushOp(b,S,k),this._otApply(b,S)}catch(I){return this._hardRollback(I)}var _=this;u.nextTick(function(){_.flush()})},p.prototype._pushOp=function(b,S,k){if(b.source=S,this.applyStack)this.applyStack.push(b);else{var x=this._tryCompose(b);if(x){x.callbacks.push(k);return}}b.type=this.type,b.callbacks=[k],this.pendingOps.push(b)},p.prototype._popApplyStack=function(b){if(b>0){this.applyStack.length=b;return}var S=this.applyStack[0];if(this.applyStack=null,!!S){var k=this.pendingOps.indexOf(S);if(k!==-1)for(var x=this.pendingOps.splice(k),k=0;k<x.length;k++){var S=x[k],_=this._tryCompose(S);_?_.callbacks=_.callbacks.concat(S.callbacks):this.pendingOps.push(S)}}},p.prototype._tryCompose=function(b){if(!this.preventCompose){var S=this.pendingOps[this.pendingOps.length-1];if(!(!S||S.sentAt)&&!(this.submitSource&&!f(b.source,S.source))){if(S.create&&"op"in b)return S.create.data=this.type.apply(S.create.data,b.op),S;if("op"in S&&"op"in b&&this.type.compose)return S.op=this.type.compose(S.op,b.op),S}}},p.prototype.submitOp=function(b,S,k){typeof S=="function"&&(k=S,S=null);var x={op:b},_=S&&S.source;this._submit(x,_,k)},p.prototype.create=function(b,S,k,x){if(typeof S=="function"?(x=S,k=null,S=null):typeof k=="function"&&(x=k,k=null),S||(S=l.defaultType.uri),this.type){var _=new a(h.ERR_DOC_ALREADY_CREATED,"Document already exists");return x?x(_):this.emit("error",_)}var I={create:{type:S,data:b}},M=k&&k.source;this._submit(I,M,x)},p.prototype.del=function(b,S){if(typeof b=="function"&&(S=b,b=null),!this.type){var k=new a(h.ERR_DOC_DOES_NOT_EXIST,"Document does not exist");return S?S(k):this.emit("error",k)}var x={del:!0},_=b&&b.source;this._submit(x,_,S)},p.prototype.pause=function(){this.paused=!0},p.prototype.resume=function(){this.paused=!1,this.flush()},p.prototype.toSnapshot=function(){return{v:this.version,data:c(this.data),type:this.type.uri}},p.prototype._opAcknowledged=function(b){if(this.inflightOp.create)this.version=b.v;else if(b.v!==this.version)return s.warn("Invalid version from server. Expected: "+this.version+" Received: "+b.v,b),this.fetch();if(b[d.fixup])for(var S=0;S<b[d.fixup].length;S++){for(var k=b[d.fixup][S],x=0;x<this.pendingOps.length;x++){var _=O(this.pendingOps[S],k);if(_)return this._hardRollback(_)}try{this._otApply(k,!1)}catch(I){return this._hardRollback(I)}}this.version++,this._clearInflightOp()},p.prototype._rollback=function(b){var S=this.inflightOp;if(!("op"in S&&S.type.invert))return this._hardRollback(b);try{S.op=S.type.invert(S.op)}catch{return this._hardRollback(b)}for(var k=0;k<this.pendingOps.length;k++){var x=O(this.pendingOps[k],S);if(x)return this._hardRollback(x)}try{this._otApply(S,!1)}catch(_){return this._hardRollback(_)}if(b.code===h.ERR_OP_SUBMIT_REJECTED)return this._clearInflightOp(null);this._clearInflightOp(b)},p.prototype._hardRollback=function(b){this._isInHardRollback=!0;var S=this.pendingOps,k=this.inflightOp;this._setType(null),this.version=null,this.inflightOp=null,this.pendingOps=[];var x=this;this._fetch({force:!0},function(_){if(x._isInHardRollback=!1,_&&(s.error("Hard rollback doc fetch failed.",_,k),x.emit("error",new a(h.ERR_HARD_ROLLBACK_FETCH_FAILED,"Hard rollback fetch failed: "+_.message))),b.code===h.ERR_OP_SUBMIT_REJECTED){if(k&&(u.callEach(k.callbacks),k=null),!S.length)return;b=new a(h.ERR_PENDING_OP_REMOVED_BY_OP_SUBMIT_REJECTED,"Discarding pending op because of hard rollback during ERR_OP_SUBMIT_REJECTED")}k&&S.unshift(k);for(var I=!!S.length,M=0;M<S.length;M++)I=u.callEach(S[M].callbacks,b)&&I;b&&!I&&x.emit("error",b)})},p.prototype._clearInflightOp=function(b){var S=this.inflightOp;this.inflightOp=null;var k=u.callEach(S.callbacks,b);if(this.flush(),this._emitNothingPending(),b&&!k)return this.emit("error",b)}},{"../emitter":41,"../error":42,"../logger":43,"../message-actions":45,"../types":50,"../util":51,"fast-deep-equal":6}],29:[function(n,r,i){i.Connection=n("./connection"),i.Doc=n("./doc"),i.Error=n("../error"),i.Query=n("./query"),i.types=n("../types"),i.logger=n("../logger")},{"../error":42,"../logger":43,"../types":50,"./connection":27,"./doc":28,"./query":37}],30:[function(n,r,i){var o=n("../../util"),s=n("events").EventEmitter,a=["create","del","destroy","load","op"];r.exports=l;function l(){this._docs=Object.create(null),this._forwarders=Object.create(null),this._emitters=Object.create(null)}l.prototype.addEventListener=function(u,c,f){this._registerDoc(u);var d=o.dig(this._emitters,u.collection,u.id);d.on(c,f)},l.prototype.removeEventListener=function(u,c,f){var d=o.dig(this._emitters,u.collection,u.id);d&&(d.off(c,f),d._eventsCount===1&&this._unregisterDoc(u))},l.prototype._registerDoc=function(u){var c=!0;if(o.digOrCreate(this._docs,u.collection,u.id,function(){return c=!1,u}),!c){var f=o.digOrCreate(this._emitters,u.collection,u.id,function(){var h=new s;return h.setMaxListeners(1e3),h}),d=this;a.forEach(function(h){var p=o.digOrCreate(d._forwarders,u.collection,u.id,h,function(){return f.emit.bind(f,h)});u.on(h,p)}),this.addEventListener(u,"destroy",this._unregisterDoc.bind(this,u))}},l.prototype._unregisterDoc=function(u){var c=o.dig(this._forwarders,u.collection,u.id);for(var f in c)u.off(f,c[f]);var d=o.dig(this._emitters,u.collection,u.id);d.removeAllListeners(),o.digAndRemove(this._forwarders,u.collection,u.id),o.digAndRemove(this._emitters,u.collection,u.id),o.digAndRemove(this._docs,u.collection,u.id)}},{"../../util":51,events:5}],31:[function(n,r,i){var o=n("./presence"),s=n("./local-doc-presence"),a=n("./remote-doc-presence");function l(u,c,f){var d=l.channel(c,f);o.call(this,u,d),this.collection=c,this.id=f}r.exports=l,l.prototype=Object.create(o.prototype),l.channel=function(u,c){return u+"."+c},l.prototype._createLocalPresence=function(u){return new s(this,u)},l.prototype._createRemotePresence=function(u){return new a(this,u)}},{"./local-doc-presence":32,"./presence":34,"./remote-doc-presence":35}],32:[function(n,r,i){var o=n("./local-presence"),s=n("../../error"),a=n("../../util"),l=s.CODES;r.exports=u;function u(c,f){o.call(this,c,f),this.collection=this.presence.collection,this.id=this.presence.id,this._doc=this.connection.get(this.collection,this.id),this._emitter=this.connection._docPresenceEmitter,this._isSending=!1,this._docDataVersionByPresenceVersion=Object.create(null),this._opHandler=this._transformAgainstOp.bind(this),this._createOrDelHandler=this._handleCreateOrDel.bind(this),this._loadHandler=this._handleLoad.bind(this),this._destroyHandler=this.destroy.bind(this),this._registerWithDoc()}u.prototype=Object.create(o.prototype),u.prototype.submit=function(c,f){if(!this._doc.type){if(c===null)return this._callbackOrEmit(null,f);var d=null;return this._doc._isInHardRollback?d={code:l.ERR_DOC_IN_HARD_ROLLBACK,message:"Cannot submit presence. Document is processing hard rollback"}:d={code:l.ERR_DOC_DOES_NOT_EXIST,message:"Cannot submit presence. Document has not been created"},this._callbackOrEmit(d,f)}this._docDataVersionByPresenceVersion[this.presenceVersion]=this._doc._dataStateVersion,o.prototype.submit.call(this,c,f)},u.prototype.destroy=function(c){this._emitter.removeEventListener(this._doc,"op",this._opHandler),this._emitter.removeEventListener(this._doc,"create",this._createOrDelHandler),this._emitter.removeEventListener(this._doc,"del",this._createOrDelHandler),this._emitter.removeEventListener(this._doc,"load",this._loadHandler),this._emitter.removeEventListener(this._doc,"destroy",this._destroyHandler),o.prototype.destroy.call(this,c)},u.prototype._sendPending=function(){if(!this._isSending){this._isSending=!0;var c=this;this._doc.whenNothingPending(function(){c._isSending=!1,c.connection.canSend&&(c._pendingMessages.forEach(function(f){f.t=c._doc.type.uri,f.v=c._doc.version,c.connection.send(f)}),c._pendingMessages=[],c._docDataVersionByPresenceVersion=Object.create(null))})}},u.prototype._registerWithDoc=function(){this._emitter.addEventListener(this._doc,"op",this._opHandler),this._emitter.addEventListener(this._doc,"create",this._createOrDelHandler),this._emitter.addEventListener(this._doc,"del",this._createOrDelHandler),this._emitter.addEventListener(this._doc,"load",this._loadHandler),this._emitter.addEventListener(this._doc,"destroy",this._destroyHandler)},u.prototype._transformAgainstOp=function(c,f){var d=this,h=this._doc._dataStateVersion;this._pendingMessages.forEach(function(p){var g=d._docDataVersionByPresenceVersion[p.pv];if(!(g>=h))try{p.p=d._transformPresence(p.p,c,f),d._docDataVersionByPresenceVersion[p.pv]=h}catch(O){var y=d._getCallback(p.pv);d._callbackOrEmit(O,y)}});try{this.value=this._transformPresence(this.value,c,f)}catch(p){this.emit("error",p)}},u.prototype._handleCreateOrDel=function(){this._pendingMessages.forEach(function(c){c.p=null}),this.value=null},u.prototype._handleLoad=function(){this.value=null,this._pendingMessages=[],this._docDataVersionByPresenceVersion=Object.create(null)},u.prototype._message=function(){var c=o.prototype._message.call(this);return c.c=this.collection,c.d=this.id,c.v=null,c.t=null,c},u.prototype._transformPresence=function(c,f,d){var h=this._doc.type;if(!a.supportsPresence(h))throw new s(l.ERR_TYPE_DOES_NOT_SUPPORT_PRESENCE,"Type does not support presence: "+h.name);return h.transformPresence(c,f,d)}},{"../../error":42,"../../util":51,"./local-presence":33}],33:[function(n,r,i){var o=n("../../emitter"),s=n("../../message-actions").ACTIONS,a=n("../../util");r.exports=l;function l(u,c){if(o.EventEmitter.call(this),!c||typeof c!="string")throw new Error("LocalPresence presenceId must be a string");this.presence=u,this.presenceId=c,this.connection=u.connection,this.presenceVersion=0,this.value=null,this._pendingMessages=[],this._callbacksByPresenceVersion=Object.create(null)}o.mixin(l),l.prototype.submit=function(u,c){this.value=u,this.send(c)},l.prototype.send=function(u){var c=this._message();this._pendingMessages.push(c),this._callbacksByPresenceVersion[c.pv]=u,this._sendPending()},l.prototype.destroy=function(u){var c=this;this.submit(null,function(f){if(f)return c._callbackOrEmit(f,u);delete c.presence.localPresences[c.presenceId],u&&u()})},l.prototype._sendPending=function(){if(this.connection.canSend){var u=this;this._pendingMessages.forEach(function(c){u.connection.send(c)}),this._pendingMessages=[]}},l.prototype._ack=function(u,c){var f=this._getCallback(c);this._callbackOrEmit(u,f)},l.prototype._message=function(){return{a:s.presence,ch:this.presence.channel,id:this.presenceId,p:this.value,pv:this.presenceVersion++}},l.prototype._getCallback=function(u){var c=this._callbacksByPresenceVersion[u];return delete this._callbacksByPresenceVersion[u],c},l.prototype._callbackOrEmit=function(u,c){if(c)return a.nextTick(c,u);u&&this.emit("error",u)}},{"../../emitter":41,"../../message-actions":45,"../../util":51}],34:[function(n,r,i){var o=n("../../emitter"),s=n("./local-presence"),a=n("./remote-presence"),l=n("../../util"),u=n("async"),c=n("hat"),f=n("../../message-actions").ACTIONS;r.exports=d;function d(h,p){if(o.EventEmitter.call(this),!p||typeof p!="string")throw new Error("Presence channel must be provided");this.connection=h,this.channel=p,this.wantSubscribe=!1,this.subscribed=!1,this.remotePresences=Object.create(null),this.localPresences=Object.create(null),this._remotePresenceInstances=Object.create(null),this._subscriptionCallbacksBySeq=Object.create(null),this._wantsDestroy=!1}o.mixin(d),d.prototype.subscribe=function(h){this._sendSubscriptionAction(!0,h)},d.prototype.unsubscribe=function(h){this._sendSubscriptionAction(!1,h)},d.prototype.create=function(h){if(this._wantsDestroy)throw new Error("Presence is being destroyed");h=h||c();var p=this._createLocalPresence(h);return this.localPresences[h]=p,p},d.prototype.destroy=function(h){this._wantsDestroy=!0;var p=this,g=Object.keys(p.localPresences);this.unsubscribe(function(y){if(y)return p._callbackOrEmit(y,h);var O=Object.keys(p._remotePresenceInstances);u.parallel([function(b){u.each(g,function(S,k){var x=p.localPresences[S];if(!x)return k();x.destroy(k)},b)},function(b){if(!p._wantsDestroy)return b();u.each(O,function(S,k){p._remotePresenceInstances[S].destroy(k)},b)}],function(b){p._wantsDestroy&&delete p.connection._presences[p.channel],p._callbackOrEmit(b,h)})})},d.prototype._sendSubscriptionAction=function(h,p){if(h=!!h,h===this.wantSubscribe){if(!p)return;if(h===this.subscribed)return l.nextTick(p);if(Object.keys(this._subscriptionCallbacksBySeq).length)return this._combineSubscribeCallbackWithLastAdded(p)}this.wantSubscribe=h;var g=this.wantSubscribe?f.presenceSubscribe:f.presenceUnsubscribe,y=this.connection._presenceSeq++;this._subscriptionCallbacksBySeq[y]=p,this.connection.canSend&&this.connection._sendPresenceAction(g,y,this)},d.prototype._requestRemotePresence=function(){this.connection._requestRemotePresence(this.channel)},d.prototype._handleSubscribe=function(h,p){this.wantSubscribe&&(this.subscribed=!0);var g=this._subscriptionCallback(p);this._callbackOrEmit(h,g)},d.prototype._handleUnsubscribe=function(h,p){this.subscribed=!1;var g=this._subscriptionCallback(p);this._callbackOrEmit(h,g)},d.prototype._receiveUpdate=function(h,p){var g=l.dig(this.localPresences,p.id);if(g)return g._ack(h,p.pv);if(h)return this.emit("error",h);var y=this,O=l.digOrCreate(this._remotePresenceInstances,p.id,function(){return y._createRemotePresence(p.id)});O.receiveUpdate(p)},d.prototype._updateRemotePresence=function(h){this.remotePresences[h.presenceId]=h.value,h.value===null&&this._removeRemotePresence(h.presenceId),this.emit("receive",h.presenceId,h.value)},d.prototype._broadcastAllLocalPresence=function(h){if(h)return this.emit("error",h);for(var p in this.localPresences){var g=this.localPresences[p];g.value!==null&&g.send()}},d.prototype._removeRemotePresence=function(h){this._remotePresenceInstances[h].destroy(),delete this._remotePresenceInstances[h],delete this.remotePresences[h]},d.prototype._onConnectionStateChanged=function(){if(!this.connection.canSend){this.subscribed=!1;return}this._resubscribe();for(var h in this.localPresences)this.localPresences[h]._sendPending()},d.prototype._resubscribe=function(){var h=[];for(var p in this._subscriptionCallbacksBySeq){var g=this._subscriptionCallback(p);h.push(g)}if(!this.wantSubscribe)return this._callEachOrEmit(h);var y=this;this.subscribe(function(O){y._callEachOrEmit(h,O)})},d.prototype._subscriptionCallback=function(h){var p=this._subscriptionCallbacksBySeq[h];return delete this._subscriptionCallbacksBySeq[h],p},d.prototype._callbackOrEmit=function(h,p){if(p)return l.nextTick(p,h);h&&this.emit("error",h)},d.prototype._createLocalPresence=function(h){return new s(this,h)},d.prototype._createRemotePresence=function(h){return new a(this,h)},d.prototype._callEachOrEmit=function(h,p){var g=l.callEach(h,p);!g&&p&&this.emit("error",p)},d.prototype._combineSubscribeCallbackWithLastAdded=function(h){var p=Object.keys(this._subscriptionCallbacksBySeq),g=p[p.length-1],y=this._subscriptionCallbacksBySeq[g];if(!y)return this._subscriptionCallbacksBySeq[g]=h;this._subscriptionCallbacksBySeq[g]=function(O){y(O),h(O)}}},{"../../emitter":41,"../../message-actions":45,"../../util":51,"./local-presence":33,"./remote-presence":36,async:1,hat:16}],35:[function(n,r,i){var o=n("./remote-presence"),s=n("../../ot");r.exports=a;function a(l,u){o.call(this,l,u),this.collection=this.presence.collection,this.id=this.presence.id,this.src=null,this.presenceVersion=null,this._doc=this.connection.get(this.collection,this.id),this._emitter=this.connection._docPresenceEmitter,this._pending=null,this._opCache=null,this._pendingSetPending=!1,this._opHandler=this._handleOp.bind(this),this._createDelHandler=this._handleCreateDel.bind(this),this._loadHandler=this._handleLoad.bind(this),this._registerWithDoc()}a.prototype=Object.create(o.prototype),a.prototype.receiveUpdate=function(l){this._pending&&l.pv<this._pending.pv||(this.src=l.src,this._pending=l,this._setPendingPresence())},a.prototype.destroy=function(l){this._emitter.removeEventListener(this._doc,"op",this._opHandler),this._emitter.removeEventListener(this._doc,"create",this._createDelHandler),this._emitter.removeEventListener(this._doc,"del",this._createDelHandler),this._emitter.removeEventListener(this._doc,"load",this._loadHandler),o.prototype.destroy.call(this,l)},a.prototype._registerWithDoc=function(){this._emitter.addEventListener(this._doc,"op",this._opHandler),this._emitter.addEventListener(this._doc,"create",this._createDelHandler),this._emitter.addEventListener(this._doc,"del",this._createDelHandler),this._emitter.addEventListener(this._doc,"load",this._loadHandler)},a.prototype._setPendingPresence=function(){if(!this._pendingSetPending){this._pendingSetPending=!0;var l=this;this._doc.whenNothingPending(function(){if(l._pendingSetPending=!1,!!l._pending){if(l._pending.pv<l.presenceVersion)return l._pending=null;if(l._pending.v>l._doc.version)return l._doc.fetch();l._catchUpStalePresence()&&(l.value=l._pending.p,l.presenceVersion=l._pending.pv,l._pending=null,l.presence._updateRemotePresence(l))}})}},a.prototype._handleOp=function(l,u,c){var f=c===this.src;this._transformAgainstOp(l,f),this._cacheOp(l,f),this._setPendingPresence()},o.prototype._handleCreateDel=function(){this._cacheOp(null),this._setPendingPresence()},o.prototype._handleLoad=function(){this.value=null,this._pending=null,this._opCache=null,this.presence._updateRemotePresence(this)},a.prototype._transformAgainstOp=function(l,u){if(this.value){try{this.value=this._doc.type.transformPresence(this.value,l,u)}catch(c){return this.presence.emit("error",c)}this.presence._updateRemotePresence(this)}},a.prototype._catchUpStalePresence=function(){if(this._pending.v>=this._doc.version)return!0;if(!this._opCache)return this._startCachingOps(),this._doc.fetch(),this.presence._requestRemotePresence(),!1;for(;this._opCache[this._pending.v];){var l=this._opCache[this._pending.v],u=l.op,c=l.isOwnOp;u===null?(this._pending.p=null,this._pending.v++):s.transformPresence(this._pending,u,c)}var f=this._pending.v>=this._doc.version;return f&&this._stopCachingOps(),f},a.prototype._startCachingOps=function(){this._opCache=[]},a.prototype._stopCachingOps=function(){this._opCache=null},a.prototype._cacheOp=function(l,u){this._opCache&&(l=l?{op:l}:null,this._opCache[this._doc.version-1]={op:l,isOwnOp:u})}},{"../../ot":47,"./remote-presence":36}],36:[function(n,r,i){var o=n("../../util");r.exports=s;function s(a,l){this.presence=a,this.presenceId=l,this.connection=this.presence.connection,this.value=null,this.presenceVersion=0}s.prototype.receiveUpdate=function(a){a.pv<this.presenceVersion||(this.value=a.p,this.presenceVersion=a.pv,this.presence._updateRemotePresence(this))},s.prototype.destroy=function(a){delete this.presence._remotePresenceInstances[this.presenceId],delete this.presence.remotePresences[this.presenceId],a&&o.nextTick(a)}},{"../../util":51}],37:[function(n,r,i){var o=n("../emitter"),s=n("../message-actions").ACTIONS,a=n("../util");r.exports=l;function l(u,c,f,d,h,p,g){o.EventEmitter.call(this),this.action=u,this.connection=c,this.id=f,this.collection=d,this.query=h,this.results=null,p&&p.results&&(this.results=p.results,delete p.results),this.extra=void 0,this.options=p,this.callback=g,this.ready=!1,this.sent=!1}o.mixin(l),l.prototype.hasPending=function(){return!this.ready},l.prototype.send=function(){if(this.connection.canSend){var u={a:this.action,id:this.id,c:this.collection,q:this.query};if(this.options&&(u.o=this.options),this.results){for(var c=[],f=0;f<this.results.length;f++){var d=this.results[f];c.push([d.id,d.version])}u.r=c}this.connection.send(u),this.sent=!0}},l.prototype.destroy=function(u){this.connection.canSend&&this.action===s.querySubscribe&&this.connection.send({a:s.queryUnsubscribe,id:this.id}),this.connection._destroyQuery(this),u&&a.nextTick(u)},l.prototype._onConnectionStateChanged=function(){this.connection.canSend&&!this.sent?this.send():this.sent=!1},l.prototype._handleFetch=function(u,c,f){this.connection._destroyQuery(this),this._handleResponse(u,c,f)},l.prototype._handleSubscribe=function(u,c,f){this._handleResponse(u,c,f)},l.prototype._handleResponse=function(u,c,f){var d=this.callback;if(this.callback=null,u)return this._finishResponse(u,d);if(!c)return this._finishResponse(null,d);var h=this,p=1,g=function(S){if(S)return h._finishResponse(S,d);--p||h._finishResponse(null,d)};if(Array.isArray(c))p+=c.length,this.results=this._ingestSnapshots(c,g),this.extra=f;else for(var y in c){p++;var O=c[y],b=this.connection.get(O.c||this.collection,y);b.ingestSnapshot(O,g)}g()},l.prototype._ingestSnapshots=function(u,c){for(var f=[],d=0;d<u.length;d++){var h=u[d],p=this.connection.get(h.c||this.collection,h.d);p.ingestSnapshot(h,c),f.push(p)}return f},l.prototype._finishResponse=function(u,c){if(this.emit("ready"),this.ready=!0,u)return this.connection._destroyQuery(this),c?c(u):this.emit("error",u);c&&c(null,this.results,this.extra)},l.prototype._handleError=function(u){this.emit("error",u)},l.prototype._handleDiff=function(u){for(var c=0;c<u.length;c++){var f=u[c];f.type==="insert"&&(f.values=this._ingestSnapshots(f.values))}for(var c=0;c<u.length;c++){var f=u[c];switch(f.type){case"insert":var d=f.values;Array.prototype.splice.apply(this.results,[f.index,0].concat(d)),this.emit("insert",d,f.index);break;case"remove":var p=f.howMany||1,h=this.results.splice(f.index,p);this.emit("remove",h,f.index);break;case"move":var p=f.howMany||1,g=this.results.splice(f.from,p);Array.prototype.splice.apply(this.results,[f.to,0].concat(g)),this.emit("move",g,f.from,f.to);break}}this.emit("changed",this.results)},l.prototype._handleExtra=function(u){this.extra=u,this.emit("extra",u)}},{"../emitter":41,"../message-actions":45,"../util":51}],38:[function(n,r,i){var o=n("../../snapshot"),s=n("../../emitter");r.exports=a;function a(l,u,c,f,d){if(s.EventEmitter.call(this),typeof d!="function")throw new Error("Callback is required for SnapshotRequest");this.requestId=u,this.connection=l,this.id=f,this.collection=c,this.callback=d,this.sent=!1}s.mixin(a),a.prototype.send=function(){this.connection.canSend&&(this.connection.send(this._message()),this.sent=!0)},a.prototype._onConnectionStateChanged=function(){this.connection.canSend?this.sent||this.send():this.sent=!1},a.prototype._handleResponse=function(l,u){if(this.emit("ready"),l)return this.callback(l);var c=u.meta?u.meta:null,f=new o(this.id,u.v,u.type,u.data,c);this.callback(null,f)}},{"../../emitter":41,"../../snapshot":49}],39:[function(n,r,i){var o=n("./snapshot-request"),s=n("../../util"),a=n("../../message-actions").ACTIONS;r.exports=l;function l(u,c,f,d,h,p){if(o.call(this,u,c,f,d,p),!s.isValidTimestamp(h))throw new Error("Snapshot timestamp must be a positive integer or null");this.timestamp=h}l.prototype=Object.create(o.prototype),l.prototype._message=function(){return{a:a.snapshotFetchByTimestamp,id:this.requestId,c:this.collection,d:this.id,ts:this.timestamp}}},{"../../message-actions":45,"../../util":51,"./snapshot-request":38}],40:[function(n,r,i){var o=n("./snapshot-request"),s=n("../../util"),a=n("../../message-actions").ACTIONS;r.exports=l;function l(u,c,f,d,h,p){if(o.call(this,u,c,f,d,p),!s.isValidVersion(h))throw new Error("Snapshot version must be a positive integer or null");this.version=h}l.prototype=Object.create(o.prototype),l.prototype._message=function(){return{a:a.snapshotFetch,id:this.requestId,c:this.collection,d:this.id,v:this.version}}},{"../../message-actions":45,"../../util":51,"./snapshot-request":38}],41:[function(n,r,i){var o=n("events").EventEmitter;i.EventEmitter=o,i.mixin=s;function s(a){for(var l in o.prototype)a.prototype[l]=o.prototype[l]}},{events:5}],42:[function(n,r,i){function o(s,a){this.code=s,this.message=a||"",Error.captureStackTrace?Error.captureStackTrace(this,o):this.stack=new Error().stack}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.name="ShareDBError",o.CODES={ERR_APPLY_OP_VERSION_DOES_NOT_MATCH_SNAPSHOT:"ERR_APPLY_OP_VERSION_DOES_NOT_MATCH_SNAPSHOT",ERR_APPLY_SNAPSHOT_NOT_PROVIDED:"ERR_APPLY_SNAPSHOT_NOT_PROVIDED",ERR_FIXUP_IS_ONLY_VALID_ON_APPLY:"ERR_FIXUP_IS_ONLY_VALID_ON_APPLY",ERR_CANNOT_FIXUP_DELETION:"ERR_CANNOT_FIXUP_DELETION",ERR_CLIENT_ID_BADLY_FORMED:"ERR_CLIENT_ID_BADLY_FORMED",ERR_CANNOT_PING_OFFLINE:"ERR_CANNOT_PING_OFFLINE",ERR_CONNECTION_SEQ_INTEGER_OVERFLOW:"ERR_CONNECTION_SEQ_INTEGER_OVERFLOW",ERR_CONNECTION_STATE_TRANSITION_INVALID:"ERR_CONNECTION_STATE_TRANSITION_INVALID",ERR_DATABASE_ADAPTER_NOT_FOUND:"ERR_DATABASE_ADAPTER_NOT_FOUND",ERR_DATABASE_DOES_NOT_SUPPORT_SUBSCRIBE:"ERR_DATABASE_DOES_NOT_SUPPORT_SUBSCRIBE",ERR_DATABASE_METHOD_NOT_IMPLEMENTED:"ERR_DATABASE_METHOD_NOT_IMPLEMENTED",ERR_DEFAULT_TYPE_MISMATCH:"ERR_DEFAULT_TYPE_MISMATCH",ERR_DOC_MISSING_VERSION:"ERR_DOC_MISSING_VERSION",ERR_DOC_ALREADY_CREATED:"ERR_DOC_ALREADY_CREATED",ERR_DOC_DOES_NOT_EXIST:"ERR_DOC_DOES_NOT_EXIST",ERR_DOC_TYPE_NOT_RECOGNIZED:"ERR_DOC_TYPE_NOT_RECOGNIZED",ERR_DOC_WAS_DELETED:"ERR_DOC_WAS_DELETED",ERR_DOC_IN_HARD_ROLLBACK:"ERR_DOC_IN_HARD_ROLLBACK",ERR_INFLIGHT_OP_MISSING:"ERR_INFLIGHT_OP_MISSING",ERR_INGESTED_SNAPSHOT_HAS_NO_VERSION:"ERR_INGESTED_SNAPSHOT_HAS_NO_VERSION",ERR_MAX_SUBMIT_RETRIES_EXCEEDED:"ERR_MAX_SUBMIT_RETRIES_EXCEEDED",ERR_MESSAGE_BADLY_FORMED:"ERR_MESSAGE_BADLY_FORMED",ERR_MILESTONE_ARGUMENT_INVALID:"ERR_MILESTONE_ARGUMENT_INVALID",ERR_NO_OP:"ERR_NO_OP",ERR_OP_ALREADY_SUBMITTED:"ERR_OP_ALREADY_SUBMITTED",ERR_OP_NOT_ALLOWED_IN_PROJECTION:"ERR_OP_NOT_ALLOWED_IN_PROJECTION",ERR_OP_SUBMIT_REJECTED:"ERR_OP_SUBMIT_REJECTED",ERR_PENDING_OP_REMOVED_BY_OP_SUBMIT_REJECTED:"ERR_PENDING_OP_REMOVED_BY_OP_SUBMIT_REJECTED",ERR_HARD_ROLLBACK_FETCH_FAILED:"ERR_HARD_ROLLBACK_FETCH_FAILED",ERR_OP_VERSION_MISMATCH_AFTER_TRANSFORM:"ERR_OP_VERSION_MISMATCH_AFTER_TRANSFORM",ERR_OP_VERSION_MISMATCH_DURING_TRANSFORM:"ERR_OP_VERSION_MISMATCH_DURING_TRANSFORM",ERR_OP_VERSION_NEWER_THAN_CURRENT_SNAPSHOT:"ERR_OP_VERSION_NEWER_THAN_CURRENT_SNAPSHOT",ERR_OT_LEGACY_JSON0_OP_CANNOT_BE_NORMALIZED:"ERR_OT_LEGACY_JSON0_OP_CANNOT_BE_NORMALIZED",ERR_OT_OP_BADLY_FORMED:"ERR_OT_OP_BADLY_FORMED",ERR_OT_OP_NOT_APPLIED:"ERR_OT_OP_NOT_APPLIED",ERR_OT_OP_NOT_PROVIDED:"ERR_OT_OP_NOT_PROVIDED",ERR_PRESENCE_TRANSFORM_FAILED:"ERR_PRESENCE_TRANSFORM_FAILED",ERR_PROTOCOL_VERSION_NOT_SUPPORTED:"ERR_PROTOCOL_VERSION_NOT_SUPPORTED",ERR_QUERY_CHANNEL_MISSING:"ERR_QUERY_CHANNEL_MISSING",ERR_QUERY_EMITTER_LISTENER_NOT_ASSIGNED:"ERR_QUERY_EMITTER_LISTENER_NOT_ASSIGNED",ERR_SNAPSHOT_READ_SILENT_REJECTION:"ERR_SNAPSHOT_READ_SILENT_REJECTION",ERR_SNAPSHOT_READS_REJECTED:"ERR_SNAPSHOT_READS_REJECTED",ERR_SUBMIT_TRANSFORM_OPS_NOT_FOUND:"ERR_SUBMIT_TRANSFORM_OPS_NOT_FOUND",ERR_TYPE_CANNOT_BE_PROJECTED:"ERR_TYPE_CANNOT_BE_PROJECTED",ERR_TYPE_DOES_NOT_SUPPORT_COMPOSE:"ERR_TYPE_DOES_NOT_SUPPORT_COMPOSE",ERR_TYPE_DOES_NOT_SUPPORT_PRESENCE:"ERR_TYPE_DOES_NOT_SUPPORT_PRESENCE",ERR_UNKNOWN_ERROR:"ERR_UNKNOWN_ERROR"},r.exports=o},{}],43:[function(n,r,i){var o=n("./logger"),s=new o;r.exports=s},{"./logger":44}],44:[function(n,r,i){var o=["info","warn","error"];function s(){var a=Object.create(null);o.forEach(function(l){a[l]=console[l].bind(console)}),this.setMethods(a)}r.exports=s,s.prototype.setMethods=function(a){a=a||{};var l=this;o.forEach(function(u){typeof a[u]=="function"&&(l[u]=a[u])})}},{}],45:[function(n,r,i){i.ACTIONS={initLegacy:"init",handshake:"hs",queryFetch:"qf",querySubscribe:"qs",queryUnsubscribe:"qu",queryUpdate:"q",bulkFetch:"bf",bulkSubscribe:"bs",bulkUnsubscribe:"bu",fetch:"f",fixup:"fixup",subscribe:"s",unsubscribe:"u",op:"op",snapshotFetch:"nf",snapshotFetchByTimestamp:"nt",pingPong:"pp",presence:"p",presenceSubscribe:"ps",presenceUnsubscribe:"pu",presenceRequest:"pr"}},{}],46:[function(n,r,i){i.messageChannel=function(){var s=o(arguments),a=new MessageChannel;a.port1.onmessage=function(){s(),a.port1.close()},a.port2.postMessage("")},i.setTimeout=function(){var s=o(arguments);setTimeout(s)};function o(s){for(var a=s[0],l=[],u=1;u<s.length;u++)l[u-1]=s[u];return function(){a.apply(null,l)}}},{}],47:[function(n,r,i){var o=n("./types"),s=n("./error"),a=n("./util"),l=s.CODES;i.checkOp=function(f){if(f==null||typeof f!="object")return new s(l.ERR_OT_OP_BADLY_FORMED,"Op must be an object");if(f.create!=null){if(typeof f.create!="object")return new s(l.ERR_OT_OP_BADLY_FORMED,"Create data must be an object");var d=f.create.type;if(typeof d!="string")return new s(l.ERR_OT_OP_BADLY_FORMED,"Missing create type");var h=o.map[d];if(h==null||typeof h!="object")return new s(l.ERR_DOC_TYPE_NOT_RECOGNIZED,"Unknown type")}else if(f.del!=null){if(f.del!==!0)return new s(l.ERR_OT_OP_BADLY_FORMED,"del value must be true")}else if(!("op"in f))return new s(l.ERR_OT_OP_BADLY_FORMED,"Missing op, create, or del");if(f.src!=null&&typeof f.src!="string")return new s(l.ERR_OT_OP_BADLY_FORMED,"src must be a string");if(f.seq!=null&&typeof f.seq!="number")return new s(l.ERR_OT_OP_BADLY_FORMED,"seq must be a number");if(f.src==null&&f.seq!=null||f.src!=null&&f.seq==null)return new s(l.ERR_OT_OP_BADLY_FORMED,"Both src and seq must be set together");if(f.m!=null&&typeof f.m!="object")return new s(l.ERR_OT_OP_BADLY_FORMED,"op.m must be an object or null")},i.normalizeType=function(f){return o.map[f]&&o.map[f].uri},i.apply=function(f,d){if(typeof f!="object")return new s(l.ERR_APPLY_SNAPSHOT_NOT_PROVIDED,"Missing snapshot");if(f.v!=null&&d.v!=null&&f.v!==d.v)return new s(l.ERR_APPLY_OP_VERSION_DOES_NOT_MATCH_SNAPSHOT,"Version mismatch");if(d.create){if(f.type)return new s(l.ERR_DOC_ALREADY_CREATED,"Document already exists");var h=d.create,p=o.map[h.type];if(!p)return new s(l.ERR_DOC_TYPE_NOT_RECOGNIZED,"Unknown type");try{f.data=p.create(h.data),f.type=p.uri,f.v++}catch(y){return y}}else if(d.del)f.data=void 0,f.type=null,f.v++;else if("op"in d){var g=u(f,d.op);if(g)return g;f.v++}else f.v++};function u(f,d){if(!f.type)return new s(l.ERR_DOC_DOES_NOT_EXIST,"Document does not exist");if(d===void 0)return new s(l.ERR_OT_OP_NOT_PROVIDED,"Missing op");var h=o.map[f.type];if(!h)return new s(l.ERR_DOC_TYPE_NOT_RECOGNIZED,"Unknown type");if(h.name==="json0"&&Array.isArray(d))for(var p=0;p<d.length;p++){var g=d[p];if(Array.isArray(g.p))for(var y=0;y<g.p.length;y++){var O=g.p[y];if(a.isDangerousProperty(O))return new s(l.ERR_OT_OP_NOT_APPLIED,"Invalid path segment")}}try{f.data=h.apply(f.data,d)}catch(b){return new s(l.ERR_OT_OP_NOT_APPLIED,b.message)}}i.transform=function(f,d,h){if(d.v!=null&&d.v!==h.v)return new s(l.ERR_OP_VERSION_MISMATCH_DURING_TRANSFORM,"Version mismatch");if(h.del){if(d.create||"op"in d)return new s(l.ERR_DOC_WAS_DELETED,"Document was deleted")}else{if(h.create&&("op"in d||d.create||d.del)||"op"in h&&d.create)return new s(l.ERR_DOC_ALREADY_CREATED,"Document was created remotely");if("op"in h&&"op"in d){if(!f)return new s(l.ERR_DOC_DOES_NOT_EXIST,"Document does not exist");if(typeof f=="string"&&(f=o.map[f],!f))return new s(l.ERR_DOC_TYPE_NOT_RECOGNIZED,"Unknown type");try{d.op=f.transform(d.op,h.op,"left")}catch(p){return p}}}d.v!=null&&d.v++},i.applyOps=function(f,d,h){h=h||{};for(var p=0;p<d.length;p++){var g=d[p];if(h._normalizeLegacyJson0Ops)try{c(f,g)}catch{return new s(l.ERR_OT_LEGACY_JSON0_OP_CANNOT_BE_NORMALIZED,"Cannot normalize legacy json0 op")}f.v=g.v;var y=i.apply(f,g);if(y)return y}},i.transformPresence=function(f,d,h){var p=this.checkOp(d);if(p)return p;var g=f.t;if(typeof g=="string"&&(g=o.map[g]),!g)return{code:l.ERR_DOC_TYPE_NOT_RECOGNIZED,message:"Unknown type"};if(!a.supportsPresence(g))return{code:l.ERR_TYPE_DOES_NOT_SUPPORT_PRESENCE,message:"Type does not support presence"};if(d.create||d.del){f.p=null,f.v++;return}try{f.p=f.p===null?null:g.transformPresence(f.p,d.op,h)}catch(y){return{code:l.ERR_PRESENCE_TRANSFORM_FAILED,message:y.message||y}}f.v++};function c(f,d){if(f.type===o.defaultType.uri){var h=d.op;if(h){var p=f.data;h.length>1&&(p=a.clone(p));for(var g=0;g<h.length;g++){var y=h[g];typeof y.lm=="string"&&(y.lm=+y.lm);for(var O=y.p,b=p,S=0;S<O.length;S++){var k=O[S];Object.prototype.toString.call(b)=="[object Array]"?O[S]=+k:b.constructor===Object&&(O[S]=k.toString()),b=b[k]}g<h.length-1&&(p=o.defaultType.apply(p,[y]))}}}}},{"./error":42,"./types":50,"./util":51}],48:[function(n,r,i){r.exports={major:1,minor:2,checkAtLeast:o};function o(a,l){return a=s(a),l=s(l),a.major>l.major?!0:a.major===l.major&&a.minor>=l.minor}function s(a){if(typeof a=="string"){var l=a.split(".");a={major:l[0],minor:l[1]}}return{major:+(a.protocol||a.major||0),minor:+(a.protocolMinor||a.minor||0)}}},{}],49:[function(n,r,i){r.exports=o;function o(s,a,l,u,c){this.id=s,this.v=a,this.type=l,this.data=u,this.m=c}},{}],50:[function(n,r,i){i.defaultType=n("ot-json0").type,i.map=Object.create(null),i.register=function(o){o.name&&(i.map[o.name]=o),o.uri&&(i.map[o.uri]=o)},i.register(i.defaultType)},{"ot-json0":23}],51:[function(n,r,i){(function(o){(function(){var s=n("./next-tick");i.doNothing=a;function a(){}i.hasKeys=function(f){for(var d in f)return!0;return!1};var l;i.hasOwn=l=Object.hasOwn||function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},i.isInteger=Number.isInteger||function(f){return typeof f=="number"&&isFinite(f)&&Math.floor(f)===f},i.isValidVersion=function(f){return f===null?!0:i.isInteger(f)&&f>=0},i.isValidTimestamp=function(f){return i.isValidVersion(f)},i.MAX_SAFE_INTEGER=9007199254740991,i.dig=function(){for(var f=arguments[0],d=1;d<arguments.length;d++){var h=arguments[d];f=l(f,h)?f[h]:d===arguments.length-1?void 0:Object.create(null)}return f},i.digOrCreate=function(){for(var f=arguments[0],d=arguments[arguments.length-1],h=1;h<arguments.length-1;h++){var p=arguments[h];f=l(f,p)?f[p]:f[p]=h===arguments.length-2?d():Object.create(null)}return f},i.digAndRemove=function(){for(var f=arguments[0],d=[f],h=1;h<arguments.length-1;h++){var p=arguments[h];if(!l(f,p))break;f=f[p],d.push(f)}for(var h=d.length-1;h>=0;h--){var g=d[h],p=arguments[h+1],y=g[p];(h===d.length-1||!i.hasKeys(y))&&delete g[p]}},i.supportsPresence=function(f){return f&&typeof f.transformPresence=="function"},i.callEach=function(f,d){var h=!1;return f.forEach(function(p){p&&(p(d),h=!0)}),h},i.truthy=function(f){return!!f},typeof o<"u"&&typeof o.nextTick=="function"?i.nextTick=o.nextTick:typeof MessageChannel<"u"?i.nextTick=s.messageChannel:i.nextTick=s.setTimeout,i.clone=function(f){return f===void 0?void 0:JSON.parse(JSON.stringify(f))};var u=Object.create(null);Object.getOwnPropertyNames(Object.prototype).forEach(function(f){f!=="__proto__"&&(u[f]=!0)}),i.isDangerousProperty=function(f){return f==="__proto__"||u[f]};try{var c=n("util");if(typeof c.inherits!="function")throw new Error("Could not find util.inherits()");i.inherits=c.inherits}catch{try{i.inherits=n("inherits")}catch{throw new Error('If running sharedb in a browser, please install the "inherits" or "util" package')}}}).call(this)}).call(this,n("_process"))},{"./next-tick":46,_process:26,inherits:17,util:55}],52:[function(n,r,i){(function(o,s){(function(){var a=n("process/browser.js").nextTick,l=Function.prototype.apply,u=Array.prototype.slice,c={},f=0;i.setTimeout=function(){return new d(l.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new d(l.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(h){h.close()};function d(h,p){this._id=h,this._clearFn=p}d.prototype.unref=d.prototype.ref=function(){},d.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(h,p){clearTimeout(h._idleTimeoutId),h._idleTimeout=p},i.unenroll=function(h){clearTimeout(h._idleTimeoutId),h._idleTimeout=-1},i._unrefActive=i.active=function(h){clearTimeout(h._idleTimeoutId);var p=h._idleTimeout;p>=0&&(h._idleTimeoutId=setTimeout(function(){h._onTimeout&&h._onTimeout()},p))},i.setImmediate=typeof o=="function"?o:function(h){var p=f++,g=arguments.length<2?!1:u.call(arguments,1);return c[p]=!0,a(function(){c[p]&&(g?h.apply(null,g):h.call(null),i.clearImmediate(p))}),p},i.clearImmediate=typeof s=="function"?s:function(h){delete c[h]}}).call(this)}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":26,timers:52}],53:[function(n,r,i){r.exports=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}},{}],54:[function(n,r,i){var o=n("is-arguments"),s=n("is-generator-function"),a=n("which-typed-array"),l=n("is-typed-array");function u(V){return V.call.bind(V)}var c=typeof BigInt<"u",f=typeof Symbol<"u",d=u(Object.prototype.toString),h=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),g=u(Boolean.prototype.valueOf);if(c)var y=u(BigInt.prototype.valueOf);if(f)var O=u(Symbol.prototype.valueOf);function b(V,ye){if(typeof V!="object")return!1;try{return ye(V),!0}catch{return!1}}i.isArgumentsObject=o,i.isGeneratorFunction=s,i.isTypedArray=l;function S(V){return typeof Promise<"u"&&V instanceof Promise||V!==null&&typeof V=="object"&&typeof V.then=="function"&&typeof V.catch=="function"}i.isPromise=S;function k(V){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(V):l(V)||z(V)}i.isArrayBufferView=k;function x(V){return a(V)==="Uint8Array"}i.isUint8Array=x;function _(V){return a(V)==="Uint8ClampedArray"}i.isUint8ClampedArray=_;function I(V){return a(V)==="Uint16Array"}i.isUint16Array=I;function M(V){return a(V)==="Uint32Array"}i.isUint32Array=M;function P(V){return a(V)==="Int8Array"}i.isInt8Array=P;function E(V){return a(V)==="Int16Array"}i.isInt16Array=E;function R(V){return a(V)==="Int32Array"}i.isInt32Array=R;function T(V){return a(V)==="Float32Array"}i.isFloat32Array=T;function L(V){return a(V)==="Float64Array"}i.isFloat64Array=L;function A(V){return a(V)==="BigInt64Array"}i.isBigInt64Array=A;function H(V){return a(V)==="BigUint64Array"}i.isBigUint64Array=H;function W(V){return d(V)==="[object Map]"}W.working=typeof Map<"u"&&W(new Map);function Z(V){return typeof Map>"u"?!1:W.working?W(V):V instanceof Map}i.isMap=Z;function G(V){return d(V)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function K(V){return typeof Set>"u"?!1:G.working?G(V):V instanceof Set}i.isSet=K;function U(V){return d(V)==="[object WeakMap]"}U.working=typeof WeakMap<"u"&&U(new WeakMap);function B(V){return typeof WeakMap>"u"?!1:U.working?U(V):V instanceof WeakMap}i.isWeakMap=B;function Y(V){return d(V)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function j(V){return Y(V)}i.isWeakSet=j;function ne(V){return d(V)==="[object ArrayBuffer]"}ne.working=typeof ArrayBuffer<"u"&&ne(new ArrayBuffer);function ee(V){return typeof ArrayBuffer>"u"?!1:ne.working?ne(V):V instanceof ArrayBuffer}i.isArrayBuffer=ee;function ue(V){return d(V)==="[object DataView]"}ue.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ue(new DataView(new ArrayBuffer(1),0,1));function z(V){return typeof DataView>"u"?!1:ue.working?ue(V):V instanceof DataView}i.isDataView=z;var X=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(V){return d(V)==="[object SharedArrayBuffer]"}function fe(V){return typeof X>"u"?!1:(typeof J.working>"u"&&(J.working=J(new X)),J.working?J(V):V instanceof X)}i.isSharedArrayBuffer=fe;function we(V){return d(V)==="[object AsyncFunction]"}i.isAsyncFunction=we;function Te(V){return d(V)==="[object Map Iterator]"}i.isMapIterator=Te;function Re(V){return d(V)==="[object Set Iterator]"}i.isSetIterator=Re;function Q(V){return d(V)==="[object Generator]"}i.isGeneratorObject=Q;function ve(V){return d(V)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=ve;function ge(V){return b(V,h)}i.isNumberObject=ge;function ie(V){return b(V,p)}i.isStringObject=ie;function oe(V){return b(V,g)}i.isBooleanObject=oe;function me(V){return c&&b(V,y)}i.isBigIntObject=me;function $e(V){return f&&b(V,O)}i.isSymbolObject=$e;function Fe(V){return ge(V)||ie(V)||oe(V)||me(V)||$e(V)}i.isBoxedPrimitive=Fe;function Pe(V){return typeof Uint8Array<"u"&&(ee(V)||fe(V))}i.isAnyArrayBuffer=Pe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(V){Object.defineProperty(i,V,{enumerable:!1,value:function(){throw new Error(V+" is not supported in userland")}})})},{"is-arguments":18,"is-generator-function":20,"is-typed-array":21,"which-typed-array":56}],55:[function(n,r,i){(function(o){(function(){var s=Object.getOwnPropertyDescriptors||function(X){for(var J=Object.keys(X),fe={},we=0;we<J.length;we++)fe[J[we]]=Object.getOwnPropertyDescriptor(X,J[we]);return fe},a=/%[sdj%]/g;i.format=function(z){if(!E(z)){for(var X=[],J=0;J<arguments.length;J++)X.push(f(arguments[J]));return X.join(" ")}for(var J=1,fe=arguments,we=fe.length,Te=String(z).replace(a,function(Q){if(Q==="%%")return"%";if(J>=we)return Q;switch(Q){case"%s":return String(fe[J++]);case"%d":return Number(fe[J++]);case"%j":try{return JSON.stringify(fe[J++])}catch{return"[Circular]"}default:return Q}}),Re=fe[J];J<we;Re=fe[++J])I(Re)||!A(Re)?Te+=" "+Re:Te+=" "+f(Re);return Te},i.deprecate=function(z,X){if(typeof o<"u"&&o.noDeprecation===!0)return z;if(typeof o>"u")return function(){return i.deprecate(z,X).apply(this,arguments)};var J=!1;function fe(){if(!J){if(o.throwDeprecation)throw new Error(X);o.traceDeprecation?console.trace(X):console.error(X),J=!0}return z.apply(this,arguments)}return fe};var l={},u=/^$/;if(o.env.NODE_DEBUG){var c=o.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}i.debuglog=function(z){if(z=z.toUpperCase(),!l[z])if(u.test(z)){var X=o.pid;l[z]=function(){var J=i.format.apply(i,arguments);console.error("%s %d: %s",z,X,J)}}else l[z]=function(){};return l[z]};function f(z,X){var J={seen:[],stylize:h};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),_(X)?J.showHidden=X:X&&i._extend(J,X),T(J.showHidden)&&(J.showHidden=!1),T(J.depth)&&(J.depth=2),T(J.colors)&&(J.colors=!1),T(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=d),g(J,z,J.depth)}i.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(z,X){var J=f.styles[X];return J?"\x1B["+f.colors[J][0]+"m"+z+"\x1B["+f.colors[J][1]+"m":z}function h(z,X){return z}function p(z){var X={};return z.forEach(function(J,fe){X[J]=!0}),X}function g(z,X,J){if(z.customInspect&&X&&Z(X.inspect)&&X.inspect!==i.inspect&&!(X.constructor&&X.constructor.prototype===X)){var fe=X.inspect(J,z);return E(fe)||(fe=g(z,fe,J)),fe}var we=y(z,X);if(we)return we;var Te=Object.keys(X),Re=p(Te);if(z.showHidden&&(Te=Object.getOwnPropertyNames(X)),W(X)&&(Te.indexOf("message")>=0||Te.indexOf("description")>=0))return O(X);if(Te.length===0){if(Z(X)){var Q=X.name?": "+X.name:"";return z.stylize("[Function"+Q+"]","special")}if(L(X))return z.stylize(RegExp.prototype.toString.call(X),"regexp");if(H(X))return z.stylize(Date.prototype.toString.call(X),"date");if(W(X))return O(X)}var ve="",ge=!1,ie=["{","}"];if(x(X)&&(ge=!0,ie=["[","]"]),Z(X)){var oe=X.name?": "+X.name:"";ve=" [Function"+oe+"]"}if(L(X)&&(ve=" "+RegExp.prototype.toString.call(X)),H(X)&&(ve=" "+Date.prototype.toUTCString.call(X)),W(X)&&(ve=" "+O(X)),Te.length===0&&(!ge||X.length==0))return ie[0]+ve+ie[1];if(J<0)return L(X)?z.stylize(RegExp.prototype.toString.call(X),"regexp"):z.stylize("[Object]","special");z.seen.push(X);var me;return ge?me=b(z,X,J,Re,Te):me=Te.map(function($e){return S(z,X,J,Re,$e,ge)}),z.seen.pop(),k(me,ve,ie)}function y(z,X){if(T(X))return z.stylize("undefined","undefined");if(E(X)){var J="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return z.stylize(J,"string")}if(P(X))return z.stylize(""+X,"number");if(_(X))return z.stylize(""+X,"boolean");if(I(X))return z.stylize("null","null")}function O(z){return"["+Error.prototype.toString.call(z)+"]"}function b(z,X,J,fe,we){for(var Te=[],Re=0,Q=X.length;Re<Q;++Re)j(X,String(Re))?Te.push(S(z,X,J,fe,String(Re),!0)):Te.push("");return we.forEach(function(ve){ve.match(/^\d+$/)||Te.push(S(z,X,J,fe,ve,!0))}),Te}function S(z,X,J,fe,we,Te){var Re,Q,ve;if(ve=Object.getOwnPropertyDescriptor(X,we)||{value:X[we]},ve.get?ve.set?Q=z.stylize("[Getter/Setter]","special"):Q=z.stylize("[Getter]","special"):ve.set&&(Q=z.stylize("[Setter]","special")),j(fe,we)||(Re="["+we+"]"),Q||(z.seen.indexOf(ve.value)<0?(I(J)?Q=g(z,ve.value,null):Q=g(z,ve.value,J-1),Q.indexOf(`
43
+ `+re);let[,ke]=ae;return ke.replace(/\s/g,"").split(Fe).map(Qe=>Qe.replace(Pe,"").trim())}function _e(se,re){var ae={};return Object.keys(se).forEach(ke=>{var Qe=se[ke],Be,He=k(Qe),Ge=!He&&Qe.length===1||He&&Qe.length===0;if(Array.isArray(Qe))Be=[...Qe],Qe=Be.pop(),ae[ke]=Be.concat(Be.length>0?mt:Qe);else if(Ge)ae[ke]=Qe;else{if(Be=ye(Qe),Qe.length===0&&!He&&Be.length===0)throw new Error("autoInject task functions require explicit parameters.");He||Be.pop(),ae[ke]=Be.concat(mt)}function mt(Jt,Un){var Gn=Be.map(qn=>Jt[qn]);Gn.push(Un),I(Qe)(...Gn)}}),oe(ae,re)}class de{constructor(){this.head=this.tail=null,this.length=0}removeLink(re){return re.prev?re.prev.next=re.next:this.head=re.next,re.next?re.next.prev=re.prev:this.tail=re.prev,re.prev=re.next=null,this.length-=1,re}empty(){for(;this.head;)this.shift();return this}insertAfter(re,ae){ae.prev=re,ae.next=re.next,re.next?re.next.prev=ae:this.tail=ae,re.next=ae,this.length+=1}insertBefore(re,ae){ae.prev=re.prev,ae.next=re,re.prev?re.prev.next=ae:this.head=ae,re.prev=ae,this.length+=1}unshift(re){this.head?this.insertBefore(this.head,re):Se(this,re)}push(re){this.tail?this.insertAfter(this.tail,re):Se(this,re)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var re=this.head;re;)yield re.data,re=re.next}remove(re){for(var ae=this.head;ae;){var{next:ke}=ae;re(ae)&&this.removeLink(ae),ae=ke}return this}}function Se(se,re){se.length=1,se.head=se.tail=re}function Me(se,re,ae){if(re==null)re=1;else if(re===0)throw new RangeError("Concurrency must not be zero");var ke=I(se),Qe=0,Be=[];const He={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Ge(pn,Gt){He[pn].push(Gt)}function mt(pn,Gt){const mn=(...Vn)=>{Jt(pn,mn),Gt(...Vn)};He[pn].push(mn)}function Jt(pn,Gt){if(!pn)return Object.keys(He).forEach(mn=>He[mn]=[]);if(!Gt)return He[pn]=[];He[pn]=He[pn].filter(mn=>mn!==Gt)}function Un(pn,...Gt){He[pn].forEach(mn=>mn(...Gt))}var Gn=!1;function qn(pn,Gt,mn,Vn){if(Vn!=null&&typeof Vn!="function")throw new Error("task callback must be a function");Xn.started=!0;var kr,oi;function Po(al,...oc){if(al)return mn?oi(al):kr();if(oc.length<=1)return kr(oc[0]);kr(oc)}var Wl=Xn._createTaskItem(pn,mn?Po:Vn||Po);if(Gt?Xn._tasks.unshift(Wl):Xn._tasks.push(Wl),Gn||(Gn=!0,y(()=>{Gn=!1,Xn.process()})),mn||!Vn)return new Promise((al,oc)=>{kr=al,oi=oc})}function _o(pn){return function(Gt,...mn){Qe-=1;for(var Vn=0,kr=pn.length;Vn<kr;Vn++){var oi=pn[Vn],Po=Be.indexOf(oi);Po===0?Be.shift():Po>0&&Be.splice(Po,1),oi.callback(Gt,...mn),Gt!=null&&Un("error",Gt,oi.data)}Qe<=Xn.concurrency-Xn.buffer&&Un("unsaturated"),Xn.idle()&&Un("drain"),Xn.process()}}function zl(pn){return pn.length===0&&Xn.idle()?(y(()=>Un("drain")),!0):!1}const sl=pn=>Gt=>{if(!Gt)return new Promise((mn,Vn)=>{mt(pn,(kr,oi)=>{if(kr)return Vn(kr);mn(oi)})});Jt(pn),Ge(pn,Gt)};var ic=!1,Xn={_tasks:new de,_createTaskItem(pn,Gt){return{data:pn,callback:Gt}},*[Symbol.iterator](){yield*Xn._tasks[Symbol.iterator]()},concurrency:re,payload:ae,buffer:re/4,started:!1,paused:!1,push(pn,Gt){return Array.isArray(pn)?zl(pn)?void 0:pn.map(mn=>qn(mn,!1,!1,Gt)):qn(pn,!1,!1,Gt)},pushAsync(pn,Gt){return Array.isArray(pn)?zl(pn)?void 0:pn.map(mn=>qn(mn,!1,!0,Gt)):qn(pn,!1,!0,Gt)},kill(){Jt(),Xn._tasks.empty()},unshift(pn,Gt){return Array.isArray(pn)?zl(pn)?void 0:pn.map(mn=>qn(mn,!0,!1,Gt)):qn(pn,!0,!1,Gt)},unshiftAsync(pn,Gt){return Array.isArray(pn)?zl(pn)?void 0:pn.map(mn=>qn(mn,!0,!0,Gt)):qn(pn,!0,!0,Gt)},remove(pn){Xn._tasks.remove(pn)},process(){if(!ic){for(ic=!0;!Xn.paused&&Qe<Xn.concurrency&&Xn._tasks.length;){var pn=[],Gt=[],mn=Xn._tasks.length;Xn.payload&&(mn=Math.min(mn,Xn.payload));for(var Vn=0;Vn<mn;Vn++){var kr=Xn._tasks.shift();pn.push(kr),Be.push(kr),Gt.push(kr.data)}Qe+=1,Xn._tasks.length===0&&Un("empty"),Qe===Xn.concurrency&&Un("saturated");var oi=K(_o(pn));ke(Gt,oi)}ic=!1}},length(){return Xn._tasks.length},running(){return Qe},workersList(){return Be},idle(){return Xn._tasks.length+Qe===0},pause(){Xn.paused=!0},resume(){Xn.paused!==!1&&(Xn.paused=!1,y(Xn.process))}};return Object.defineProperties(Xn,{saturated:{writable:!1,value:sl("saturated")},unsaturated:{writable:!1,value:sl("unsaturated")},empty:{writable:!1,value:sl("empty")},drain:{writable:!1,value:sl("drain")},error:{writable:!1,value:sl("error")}}),Xn}function et(se,re){return Me(se,1,re)}function st(se,re,ae){return Me(se,re,ae)}function Le(se,re,ae,ke){ke=L(ke);var Qe=I(ae);return Te(se,(Be,He,Ge)=>{Qe(re,Be,(mt,Jt)=>{re=Jt,Ge(mt)})},Be=>ke(Be,re))}var at=M(Le,4);function We(...se){var re=se.map(I);return function(...ae){var ke=this,Qe=ae[ae.length-1];return typeof Qe=="function"?ae.pop():Qe=ie(),at(re,ae,(Be,He,Ge)=>{He.apply(ke,Be.concat((mt,...Jt)=>{Ge(mt,Jt)}))},(Be,He)=>Qe(Be,...He)),Qe[ge]}}function dt(...se){return We(...se.reverse())}function wt(se,re,ae,ke){return E(B(re),se,ae,ke)}var pt=M(wt,4);function It(se,re,ae,ke){var Qe=I(ae);return pt(se,re,(Be,He)=>{Qe(Be,(Ge,...mt)=>Ge?He(Ge):He(Ge,mt))},(Be,He)=>{for(var Ge=[],mt=0;mt<He.length;mt++)He[mt]&&(Ge=Ge.concat(...He[mt]));return ke(Be,Ge)})}var nt=M(It,4);function Rt(se,re,ae){return nt(se,1/0,re,ae)}var un=M(Rt,3);function Tt(se,re,ae){return nt(se,1,re,ae)}var qt=M(Tt,3);function On(...se){return function(...re){var ae=re.pop();return ae(null,...se)}}function Tn(se,re){return(ae,ke,Qe,Be)=>{var He=!1,Ge;const mt=I(Qe);ae(ke,(Jt,Un,Gn)=>{mt(Jt,(qn,_o)=>{if(qn||qn===!1)return Gn(qn);if(se(_o)&&!Ge)return He=!0,Ge=re(!0,Jt),Gn(null,T);Gn()})},Jt=>{if(Jt)return Be(Jt);Be(null,He?Ge:re(!1))})}}function bn(se,re,ae){return Tn(ke=>ke,(ke,Qe)=>Qe)(z,se,re,ae)}var Rn=M(bn,3);function ir(se,re,ae,ke){return Tn(Qe=>Qe,(Qe,Be)=>Be)(B(re),se,ae,ke)}var pe=M(ir,4);function Ee(se,re,ae){return Tn(ke=>ke,(ke,Qe)=>Qe)(B(1),se,re,ae)}var De=M(Ee,3);function rt(se){return(re,...ae)=>I(re)(...ae,(ke,...Qe)=>{typeof console=="object"&&(ke?console.error&&console.error(ke):console[se]&&Qe.forEach(Be=>console[se](Be)))})}var ct=rt("dir");function ht(se,re,ae){ae=K(ae);var ke=I(se),Qe=I(re),Be;function He(mt,...Jt){if(mt)return ae(mt);mt!==!1&&(Be=Jt,Qe(...Jt,Ge))}function Ge(mt,Jt){if(mt)return ae(mt);if(mt!==!1){if(!Jt)return ae(null,...Be);ke(He)}}return Ge(null,!0)}var Ve=M(ht,3);function Ye(se,re,ae){const ke=I(re);return Ve(se,(...Qe)=>{const Be=Qe.pop();ke(...Qe,(He,Ge)=>Be(He,!Ge))},ae)}function Je(se){return(re,ae,ke)=>se(re,ke)}function Ze(se,re,ae){return z(se,Je(I(re)),ae)}var Ne=M(Ze,3);function lt(se,re,ae,ke){return B(re)(se,Je(I(ae)),ke)}var Pt=M(lt,4);function Nt(se,re,ae){return Pt(se,1,re,ae)}var hn=M(Nt,3);function cn(se){return k(se)?se:function(...re){var ae=re.pop(),ke=!0;re.push((...Qe)=>{ke?y(()=>ae(...Qe)):ae(...Qe)}),se.apply(this,re),ke=!1}}function Kt(se,re,ae){return Tn(ke=>!ke,ke=>!ke)(z,se,re,ae)}var sn=M(Kt,3);function nn(se,re,ae,ke){return Tn(Qe=>!Qe,Qe=>!Qe)(B(re),se,ae,ke)}var Yt=M(nn,4);function Ct(se,re,ae){return Tn(ke=>!ke,ke=>!ke)(Te,se,re,ae)}var ln=M(Ct,3);function or(se,re,ae,ke){var Qe=new Array(re.length);se(re,(Be,He,Ge)=>{ae(Be,(mt,Jt)=>{Qe[He]=!!Jt,Ge(mt)})},Be=>{if(Be)return ke(Be);for(var He=[],Ge=0;Ge<re.length;Ge++)Qe[Ge]&&He.push(re[Ge]);ke(null,He)})}function wn(se,re,ae,ke){var Qe=[];se(re,(Be,He,Ge)=>{ae(Be,(mt,Jt)=>{if(mt)return Ge(mt);Jt&&Qe.push({index:He,value:Be}),Ge(mt)})},Be=>{if(Be)return ke(Be);ke(null,Qe.sort((He,Ge)=>He.index-Ge.index).map(He=>He.value))})}function fr(se,re,ae,ke){var Qe=R(re)?or:wn;return Qe(se,re,I(ae),ke)}function lr(se,re,ae){return fr(z,se,re,ae)}var ce=M(lr,3);function le(se,re,ae,ke){return fr(B(re),se,ae,ke)}var Oe=M(le,4);function Xe(se,re,ae){return fr(Te,se,re,ae)}var Ae=M(Xe,3);function ze(se,re){var ae=K(re),ke=I(cn(se));function Qe(Be){if(Be)return ae(Be);Be!==!1&&ke(Qe)}return Qe()}var bt=M(ze,2);function ot(se,re,ae,ke){var Qe=I(ae);return pt(se,re,(Be,He)=>{Qe(Be,(Ge,mt)=>Ge?He(Ge):He(Ge,{key:mt,val:Be}))},(Be,He)=>{for(var Ge={},{hasOwnProperty:mt}=Object.prototype,Jt=0;Jt<He.length;Jt++)if(He[Jt]){var{key:Un}=He[Jt],{val:Gn}=He[Jt];mt.call(Ge,Un)?Ge[Un].push(Gn):Ge[Un]=[Gn]}return ke(Be,Ge)})}var yt=M(ot,4);function Vt(se,re,ae){return yt(se,1/0,re,ae)}function At(se,re,ae){return yt(se,1,re,ae)}var Cn=rt("log");function jn(se,re,ae,ke){ke=L(ke);var Qe={},Be=I(ae);return B(re)(se,(He,Ge,mt)=>{Be(He,Ge,(Jt,Un)=>{if(Jt)return mt(Jt);Qe[Ge]=Un,mt(Jt)})},He=>ke(He,Qe))}var tn=M(jn,4);function Sn(se,re,ae){return tn(se,1/0,re,ae)}function Pn(se,re,ae){return tn(se,1,re,ae)}function Qt(se,re=ae=>ae){var ae=Object.create(null),ke=Object.create(null),Qe=I(se),Be=u((He,Ge)=>{var mt=re(...He);mt in ae?y(()=>Ge(null,...ae[mt])):mt in ke?ke[mt].push(Ge):(ke[mt]=[Ge],Qe(...He,(Jt,...Un)=>{Jt||(ae[mt]=Un);var Gn=ke[mt];delete ke[mt];for(var qn=0,_o=Gn.length;qn<_o;qn++)Gn[qn](Jt,...Un)}))});return Be.memo=ae,Be.unmemoized=se,Be}var fn;d?fn=o.nextTick:f?fn=s:fn=h;var Mn=p(fn),Fn=M((se,re,ae)=>{var ke=R(re)?[]:{};se(re,(Qe,Be,He)=>{I(Qe)((Ge,...mt)=>{mt.length<2&&([mt]=mt),ke[Be]=mt,He(Ge)})},Qe=>ae(Qe,ke))},3);function Ft(se,re){return Fn(z,se,re)}function Bn(se,re,ae){return Fn(B(re),se,ae)}function In(se,re){var ae=I(se);return Me((ke,Qe)=>{ae(ke[0],Qe)},re,1)}class dn{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(re){let ae;for(;re>0&&gr(this.heap[re],this.heap[ae=jr(re)]);){let ke=this.heap[re];this.heap[re]=this.heap[ae],this.heap[ae]=ke,re=ae}}percDown(re){let ae;for(;(ae=Xr(re))<this.heap.length&&(ae+1<this.heap.length&&gr(this.heap[ae+1],this.heap[ae])&&(ae=ae+1),!gr(this.heap[re],this.heap[ae]));){let ke=this.heap[re];this.heap[re]=this.heap[ae],this.heap[ae]=ke,re=ae}}push(re){re.pushCount=++this.pushCount,this.heap.push(re),this.percUp(this.heap.length-1)}unshift(re){return this.heap.push(re)}shift(){let[re]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),re}toArray(){return[...this]}*[Symbol.iterator](){for(let re=0;re<this.heap.length;re++)yield this.heap[re].data}remove(re){let ae=0;for(let ke=0;ke<this.heap.length;ke++)re(this.heap[ke])||(this.heap[ae]=this.heap[ke],ae++);this.heap.splice(ae);for(let ke=jr(this.heap.length-1);ke>=0;ke--)this.percDown(ke);return this}}function Xr(se){return(se<<1)+1}function jr(se){return(se+1>>1)-1}function gr(se,re){return se.priority!==re.priority?se.priority<re.priority:se.pushCount<re.pushCount}function Hr(se,re){var ae=In(se,re),{push:ke,pushAsync:Qe}=ae;ae._tasks=new dn,ae._createTaskItem=({data:He,priority:Ge},mt)=>({data:He,priority:Ge,callback:mt});function Be(He,Ge){return Array.isArray(He)?He.map(mt=>({data:mt,priority:Ge})):{data:He,priority:Ge}}return ae.push=function(He,Ge=0,mt){return ke(Be(He,Ge),mt)},ae.pushAsync=function(He,Ge=0,mt){return Qe(Be(He,Ge),mt)},delete ae.unshift,delete ae.unshiftAsync,ae}function zi(se,re){if(re=L(re),!Array.isArray(se))return re(new TypeError("First argument to race must be an array of functions"));if(!se.length)return re();for(var ae=0,ke=se.length;ae<ke;ae++)I(se[ae])(re)}var ei=M(zi,2);function Wi(se,re,ae,ke){var Qe=[...se].reverse();return at(Qe,re,ae,ke)}function $i(se){var re=I(se);return u(function(ke,Qe){return ke.push((Be,...He)=>{let Ge={};if(Be&&(Ge.error=Be),He.length>0){var mt=He;He.length<=1&&([mt]=He),Ge.value=mt}Qe(null,Ge)}),re.apply(this,ke)})}function Tr(se){var re;return Array.isArray(se)?re=se.map($i):(re={},Object.keys(se).forEach(ae=>{re[ae]=$i.call(this,se[ae])})),re}function Qr(se,re,ae,ke){const Qe=I(ae);return fr(se,re,(Be,He)=>{Qe(Be,(Ge,mt)=>{He(Ge,!mt)})},ke)}function ao(se,re,ae){return Qr(z,se,re,ae)}var Zi=M(ao,3);function ps(se,re,ae,ke){return Qr(B(re),se,ae,ke)}var lo=M(ps,4);function tl(se,re,ae){return Qr(Te,se,re,ae)}var da=M(tl,3);function uo(se){return function(){return se}}const ko=5,Ns=0;function xo(se,re,ae){var ke={times:ko,intervalFunc:uo(Ns)};if(arguments.length<3&&typeof se=="function"?(ae=re||ie(),re=se):(ms(ke,se),ae=ae||ie()),typeof re!="function")throw new Error("Invalid arguments for async.retry");var Qe=I(re),Be=1;function He(){Qe((Ge,...mt)=>{Ge!==!1&&(Ge&&Be++<ke.times&&(typeof ke.errorFilter!="function"||ke.errorFilter(Ge))?setTimeout(He,ke.intervalFunc(Be-1)):ae(Ge,...mt))})}return He(),ae[ge]}function ms(se,re){if(typeof re=="object")se.times=+re.times||ko,se.intervalFunc=typeof re.interval=="function"?re.interval:uo(+re.interval||Ns),se.errorFilter=re.errorFilter;else if(typeof re=="number"||typeof re=="string")se.times=+re||ko;else throw new Error("Invalid arguments for async.retry")}function Ql(se,re){re||(re=se,se=null);let ae=se&&se.arity||re.length;k(re)&&(ae+=1);var ke=I(re);return u((Qe,Be)=>{(Qe.length<ae-1||Be==null)&&(Qe.push(Be),Be=ie());function He(Ge){ke(...Qe,Ge)}return se?xo(se,He,Be):xo(He,Be),Be[ge]})}function ha(se,re){return Fn(Te,se,re)}function Ls(se,re,ae){return Tn(Boolean,ke=>ke)(z,se,re,ae)}var Ho=M(Ls,3);function nl(se,re,ae,ke){return Tn(Boolean,Qe=>Qe)(B(re),se,ae,ke)}var Fl=M(nl,4);function ch(se,re,ae){return Tn(Boolean,ke=>ke)(Te,se,re,ae)}var js=M(ch,3);function rl(se,re,ae){var ke=I(re);return J(se,(Be,He)=>{ke(Be,(Ge,mt)=>{if(Ge)return He(Ge);He(Ge,{value:Be,criteria:mt})})},(Be,He)=>{if(Be)return ae(Be);ae(null,He.sort(Qe).map(Ge=>Ge.value))});function Qe(Be,He){var Ge=Be.criteria,mt=He.criteria;return Ge<mt?-1:Ge>mt?1:0}}var Bl=M(rl,3);function rc(se,re,ae){var ke=I(se);return u((Qe,Be)=>{var He=!1,Ge;function mt(){var Jt=se.name||"anonymous",Un=new Error('Callback function "'+Jt+'" timed out.');Un.code="ETIMEDOUT",ae&&(Un.info=ae),He=!0,Be(Un)}Qe.push((...Jt)=>{He||(Be(...Jt),clearTimeout(Ge))}),Ge=setTimeout(mt,re),ke(...Qe)})}function _i(se){for(var re=Array(se);se--;)re[se]=se;return re}function Yo(se,re,ae,ke){var Qe=I(ae);return pt(_i(se),re,Qe,ke)}function pa(se,re,ae){return Yo(se,1/0,re,ae)}function Ul(se,re,ae){return Yo(se,1,re,ae)}function Qs(se,re,ae,ke){arguments.length<=3&&typeof re=="function"&&(ke=ae,ae=re,re=Array.isArray(se)?[]:{}),ke=L(ke||ie());var Qe=I(ae);return z(se,(Be,He,Ge)=>{Qe(re,Be,He,Ge)},Be=>ke(Be,re)),ke[ge]}function il(se,re){var ae=null,ke;return hn(se,(Qe,Be)=>{I(Qe)((He,...Ge)=>{if(He===!1)return Be(He);Ge.length<2?[ke]=Ge:ke=Ge,ae=He,Be(He?null:{})})},()=>re(ae,ke))}var ql=M(il);function gi(se){return(...re)=>(se.unmemoized||se)(...re)}function Fs(se,re,ae){ae=K(ae);var ke=I(re),Qe=I(se),Be=[];function He(mt,...Jt){if(mt)return ae(mt);Be=Jt,mt!==!1&&Qe(Ge)}function Ge(mt,Jt){if(mt)return ae(mt);if(mt!==!1){if(!Jt)return ae(null,...Be);ke(He)}}return Qe(Ge)}var ol=M(Fs,3);function Vl(se,re,ae){const ke=I(se);return ol(Qe=>ke((Be,He)=>Qe(Be,!He)),re,ae)}function eb(se,re){if(re=L(re),!Array.isArray(se))return re(new Error("First argument to waterfall must be an array of functions"));if(!se.length)return re();var ae=0;function ke(Be){var He=I(se[ae++]);He(...Be,K(Qe))}function Qe(Be,...He){if(Be!==!1){if(Be||ae===se.length)return re(Be,...He);ke(He)}}ke([])}var lf=M(eb),fh={apply:l,applyEach:fe,applyEachSeries:ve,asyncify:O,auto:oe,autoInject:_e,cargo:et,cargoQueue:st,compose:dt,concat:un,concatLimit:nt,concatSeries:qt,constant:On,detect:Rn,detectLimit:pe,detectSeries:De,dir:ct,doUntil:Ye,doWhilst:Ve,each:Ne,eachLimit:Pt,eachOf:z,eachOfLimit:j,eachOfSeries:Te,eachSeries:hn,ensureAsync:cn,every:sn,everyLimit:Yt,everySeries:ln,filter:ce,filterLimit:Oe,filterSeries:Ae,forever:bt,groupBy:Vt,groupByLimit:yt,groupBySeries:At,log:Cn,map:J,mapLimit:pt,mapSeries:Q,mapValues:Sn,mapValuesLimit:tn,mapValuesSeries:Pn,memoize:Qt,nextTick:Mn,parallel:Ft,parallelLimit:Bn,priorityQueue:Hr,queue:In,race:ei,reduce:at,reduceRight:Wi,reflect:$i,reflectAll:Tr,reject:Zi,rejectLimit:lo,rejectSeries:da,retry:xo,retryable:Ql,seq:We,series:ha,setImmediate:y,some:Ho,someLimit:Fl,someSeries:js,sortBy:Bl,timeout:rc,times:pa,timesLimit:Yo,timesSeries:Ul,transform:Qs,tryEach:ql,unmemoize:gi,until:Vl,waterfall:lf,whilst:ol,all:sn,allLimit:Yt,allSeries:ln,any:Ho,anyLimit:Fl,anySeries:js,find:Rn,findLimit:pe,findSeries:De,flatMap:un,flatMapLimit:nt,flatMapSeries:qt,forEach:Ne,forEachSeries:hn,forEachLimit:Pt,forEachOf:z,forEachOfSeries:Te,forEachOfLimit:j,inject:at,foldl:at,foldr:Wi,select:ce,selectLimit:Oe,selectSeries:Ae,wrapSync:O,during:ol,doDuring:Ve};a.default=fh,a.apply=l,a.applyEach=fe,a.applyEachSeries=ve,a.asyncify=O,a.auto=oe,a.autoInject=_e,a.cargo=et,a.cargoQueue=st,a.compose=dt,a.concat=un,a.concatLimit=nt,a.concatSeries=qt,a.constant=On,a.detect=Rn,a.detectLimit=pe,a.detectSeries=De,a.dir=ct,a.doUntil=Ye,a.doWhilst=Ve,a.each=Ne,a.eachLimit=Pt,a.eachOf=z,a.eachOfLimit=j,a.eachOfSeries=Te,a.eachSeries=hn,a.ensureAsync=cn,a.every=sn,a.everyLimit=Yt,a.everySeries=ln,a.filter=ce,a.filterLimit=Oe,a.filterSeries=Ae,a.forever=bt,a.groupBy=Vt,a.groupByLimit=yt,a.groupBySeries=At,a.log=Cn,a.map=J,a.mapLimit=pt,a.mapSeries=Q,a.mapValues=Sn,a.mapValuesLimit=tn,a.mapValuesSeries=Pn,a.memoize=Qt,a.nextTick=Mn,a.parallel=Ft,a.parallelLimit=Bn,a.priorityQueue=Hr,a.queue=In,a.race=ei,a.reduce=at,a.reduceRight=Wi,a.reflect=$i,a.reflectAll=Tr,a.reject=Zi,a.rejectLimit=lo,a.rejectSeries=da,a.retry=xo,a.retryable=Ql,a.seq=We,a.series=ha,a.setImmediate=y,a.some=Ho,a.someLimit=Fl,a.someSeries=js,a.sortBy=Bl,a.timeout=rc,a.times=pa,a.timesLimit=Yo,a.timesSeries=Ul,a.transform=Qs,a.tryEach=ql,a.unmemoize=gi,a.until=Vl,a.waterfall=lf,a.whilst=ol,a.all=sn,a.allLimit=Yt,a.allSeries=ln,a.any=Ho,a.anyLimit=Fl,a.anySeries=js,a.find=Rn,a.findLimit=pe,a.findSeries=De,a.flatMap=un,a.flatMapLimit=nt,a.flatMapSeries=qt,a.forEach=Ne,a.forEachSeries=hn,a.forEachLimit=Pt,a.forEachOf=z,a.forEachOfSeries=Te,a.forEachOfLimit=j,a.inject=at,a.foldl=at,a.foldr=Wi,a.select=ce,a.selectLimit=Oe,a.selectSeries=Ae,a.wrapSync=O,a.during=ol,a.doDuring=Ve,Object.defineProperty(a,"__esModule",{value:!0})})}).call(this)}).call(this,n("_process"),n("timers").setImmediate)},{_process:26,timers:52}],2:[function(n,r,i){(function(o){(function(){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a=typeof globalThis>"u"?o:globalThis;r.exports=function(){for(var u=[],c=0;c<s.length;c++)typeof a[s[c]]=="function"&&(u[u.length]=s[c]);return u}}).call(this)}).call(this,typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(n,r,i){var o=n("get-intrinsic"),s=n("./"),a=s(o("String.prototype.indexOf"));r.exports=function(u,c){var f=o(u,!!c);return typeof f=="function"&&a(u,".prototype.")>-1?s(f):f}},{"./":4,"get-intrinsic":10}],4:[function(n,r,i){var o=n("function-bind"),s=n("get-intrinsic"),a=s("%Function.prototype.apply%"),l=s("%Function.prototype.call%"),u=s("%Reflect.apply%",!0)||o.call(l,a),c=s("%Object.getOwnPropertyDescriptor%",!0),f=s("%Object.defineProperty%",!0),d=s("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}r.exports=function(g){var y=u(o,l,arguments);if(c&&f){var O=c(y,"length");O.configurable&&f(y,"length",{value:1+d(0,g.length-(arguments.length-1))})}return y};var h=function(){return u(o,a,arguments)};f?f(r.exports,"apply",{value:h}):r.exports.apply=h},{"function-bind":9,"get-intrinsic":10}],5:[function(n,r,i){var o=typeof Reflect=="object"?Reflect:null,s=o&&typeof o.apply=="function"?o.apply:function(E,R,T){return Function.prototype.apply.call(E,R,T)},a;o&&typeof o.ownKeys=="function"?a=o.ownKeys:Object.getOwnPropertySymbols?a=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:a=function(E){return Object.getOwnPropertyNames(E)};function l(P){console&&console.warn&&console.warn(P)}var u=Number.isNaN||function(E){return E!==E};function c(){c.init.call(this)}r.exports=c,r.exports.once=_,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function d(P){if(typeof P!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return f},set:function(P){if(typeof P!="number"||P<0||u(P))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+P+".");f=P}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||u(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function h(P){return P._maxListeners===void 0?c.defaultMaxListeners:P._maxListeners}c.prototype.getMaxListeners=function(){return h(this)},c.prototype.emit=function(E){for(var R=[],T=1;T<arguments.length;T++)R.push(arguments[T]);var L=E==="error",A=this._events;if(A!==void 0)L=L&&A.error===void 0;else if(!L)return!1;if(L){var H;if(R.length>0&&(H=R[0]),H instanceof Error)throw H;var W=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw W.context=H,W}var Z=A[E];if(Z===void 0)return!1;if(typeof Z=="function")s(Z,this,R);else for(var G=Z.length,K=S(Z,G),T=0;T<G;++T)s(K[T],this,R);return!0};function p(P,E,R,T){var L,A,H;if(d(R),A=P._events,A===void 0?(A=P._events=Object.create(null),P._eventsCount=0):(A.newListener!==void 0&&(P.emit("newListener",E,R.listener?R.listener:R),A=P._events),H=A[E]),H===void 0)H=A[E]=R,++P._eventsCount;else if(typeof H=="function"?H=A[E]=T?[R,H]:[H,R]:T?H.unshift(R):H.push(R),L=h(P),L>0&&H.length>L&&!H.warned){H.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=P,W.type=E,W.count=H.length,l(W)}return P}c.prototype.addListener=function(E,R){return p(this,E,R,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(E,R){return p(this,E,R,!0)};function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(P,E,R){var T={fired:!1,wrapFn:void 0,target:P,type:E,listener:R},L=g.bind(T);return L.listener=R,T.wrapFn=L,L}c.prototype.once=function(E,R){return d(R),this.on(E,y(this,E,R)),this},c.prototype.prependOnceListener=function(E,R){return d(R),this.prependListener(E,y(this,E,R)),this},c.prototype.removeListener=function(E,R){var T,L,A,H,W;if(d(R),L=this._events,L===void 0)return this;if(T=L[E],T===void 0)return this;if(T===R||T.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete L[E],L.removeListener&&this.emit("removeListener",E,T.listener||R));else if(typeof T!="function"){for(A=-1,H=T.length-1;H>=0;H--)if(T[H]===R||T[H].listener===R){W=T[H].listener,A=H;break}if(A<0)return this;A===0?T.shift():k(T,A),T.length===1&&(L[E]=T[0]),L.removeListener!==void 0&&this.emit("removeListener",E,W||R)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(E){var R,T,L;if(T=this._events,T===void 0)return this;if(T.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):T[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete T[E]),this;if(arguments.length===0){var A=Object.keys(T),H;for(L=0;L<A.length;++L)H=A[L],H!=="removeListener"&&this.removeAllListeners(H);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=T[E],typeof R=="function")this.removeListener(E,R);else if(R!==void 0)for(L=R.length-1;L>=0;L--)this.removeListener(E,R[L]);return this};function O(P,E,R){var T=P._events;if(T===void 0)return[];var L=T[E];return L===void 0?[]:typeof L=="function"?R?[L.listener||L]:[L]:R?x(L):S(L,L.length)}c.prototype.listeners=function(E){return O(this,E,!0)},c.prototype.rawListeners=function(E){return O(this,E,!1)},c.listenerCount=function(P,E){return typeof P.listenerCount=="function"?P.listenerCount(E):b.call(P,E)},c.prototype.listenerCount=b;function b(P){var E=this._events;if(E!==void 0){var R=E[P];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function S(P,E){for(var R=new Array(E),T=0;T<E;++T)R[T]=P[T];return R}function k(P,E){for(;E+1<P.length;E++)P[E]=P[E+1];P.pop()}function x(P){for(var E=new Array(P.length),R=0;R<E.length;++R)E[R]=P[R].listener||P[R];return E}function _(P,E){return new Promise(function(R,T){function L(H){P.removeListener(E,A),T(H)}function A(){typeof P.removeListener=="function"&&P.removeListener("error",L),R([].slice.call(arguments))}M(P,E,A,{once:!0}),E!=="error"&&I(P,L,{once:!0})})}function I(P,E,R){typeof P.on=="function"&&M(P,"error",E,R)}function M(P,E,R,T){if(typeof P.on=="function")T.once?P.once(E,R):P.on(E,R);else if(typeof P.addEventListener=="function")P.addEventListener(E,function L(A){T.once&&P.removeEventListener(E,L),R(A)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof P)}},{}],6:[function(n,r,i){r.exports=function o(s,a){if(s===a)return!0;if(s&&a&&typeof s=="object"&&typeof a=="object"){if(s.constructor!==a.constructor)return!1;var l,u,c;if(Array.isArray(s)){if(l=s.length,l!=a.length)return!1;for(u=l;u--!==0;)if(!o(s[u],a[u]))return!1;return!0}if(s.constructor===RegExp)return s.source===a.source&&s.flags===a.flags;if(s.valueOf!==Object.prototype.valueOf)return s.valueOf()===a.valueOf();if(s.toString!==Object.prototype.toString)return s.toString()===a.toString();if(c=Object.keys(s),l=c.length,l!==Object.keys(a).length)return!1;for(u=l;u--!==0;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;for(u=l;u--!==0;){var f=c[u];if(!o(s[f],a[f]))return!1}return!0}return s!==s&&a!==a}},{}],7:[function(n,r,i){var o=n("is-callable"),s=Object.prototype.toString,a=Object.prototype.hasOwnProperty,l=function(h,p,g){for(var y=0,O=h.length;y<O;y++)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},u=function(h,p,g){for(var y=0,O=h.length;y<O;y++)g==null?p(h.charAt(y),y,h):p.call(g,h.charAt(y),y,h)},c=function(h,p,g){for(var y in h)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},f=function(h,p,g){if(!o(p))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=g),s.call(h)==="[object Array]"?l(h,p,y):typeof h=="string"?u(h,p,y):c(h,p,y)};r.exports=f},{"is-callable":19}],8:[function(n,r,i){var o="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,a=Math.max,l="[object Function]",u=function(h,p){for(var g=[],y=0;y<h.length;y+=1)g[y]=h[y];for(var O=0;O<p.length;O+=1)g[O+h.length]=p[O];return g},c=function(h,p){for(var g=[],y=p,O=0;y<h.length;y+=1,O+=1)g[O]=h[y];return g},f=function(d,h){for(var p="",g=0;g<d.length;g+=1)p+=d[g],g+1<d.length&&(p+=h);return p};r.exports=function(h){var p=this;if(typeof p!="function"||s.apply(p)!==l)throw new TypeError(o+p);for(var g=c(arguments,1),y,O=function(){if(this instanceof y){var _=p.apply(this,u(g,arguments));return Object(_)===_?_:this}return p.apply(h,u(g,arguments))},b=a(0,p.length-g.length),S=[],k=0;k<b;k++)S[k]="$"+k;if(y=Function("binder","return function ("+f(S,",")+"){ return binder.apply(this,arguments); }")(O),p.prototype){var x=function(){};x.prototype=p.prototype,y.prototype=new x,x.prototype=null}return y}},{}],9:[function(n,r,i){var o=n("./implementation");r.exports=Function.prototype.bind||o},{"./implementation":8}],10:[function(n,r,i){var o,s=SyntaxError,a=Function,l=TypeError,u=function(W){try{return a('"use strict"; return ('+W+").constructor;")()}catch{}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch{c=null}var f=function(){throw new l},d=c?function(){try{return arguments.callee,f}catch{try{return c(arguments,"callee").get}catch{return f}}}():f,h=n("has-symbols")(),p=Object.getPrototypeOf||function(W){return W.__proto__},g={},y=typeof Uint8Array>"u"?o:p(Uint8Array),O={"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":h?p([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?p(p([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map>"u"||!h?o:p(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set>"u"||!h?o:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?p(""[Symbol.iterator]()):o,"%Symbol%":h?Symbol:o,"%SyntaxError%":s,"%ThrowTypeError%":d,"%TypedArray%":y,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet};try{null.error}catch(W){var b=p(p(W));O["%Error.prototype%"]=b}var S=function W(Z){var G;if(Z==="%AsyncFunction%")G=u("async function () {}");else if(Z==="%GeneratorFunction%")G=u("function* () {}");else if(Z==="%AsyncGeneratorFunction%")G=u("async function* () {}");else if(Z==="%AsyncGenerator%"){var K=W("%AsyncGeneratorFunction%");K&&(G=K.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var U=W("%AsyncGenerator%");U&&(G=p(U.prototype))}return O[Z]=G,G},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=n("function-bind"),_=n("has"),I=x.call(Function.call,Array.prototype.concat),M=x.call(Function.apply,Array.prototype.splice),P=x.call(Function.call,String.prototype.replace),E=x.call(Function.call,String.prototype.slice),R=x.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,A=function(Z){var G=E(Z,0,1),K=E(Z,-1);if(G==="%"&&K!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(K==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var U=[];return P(Z,T,function(B,Y,j,ne){U[U.length]=j?P(ne,L,"$1"):Y||B}),U},H=function(Z,G){var K=Z,U;if(_(k,K)&&(U=k[K],K="%"+U[0]+"%"),_(O,K)){var B=O[K];if(B===g&&(B=S(K)),typeof B>"u"&&!G)throw new l("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:U,name:K,value:B}}throw new s("intrinsic "+Z+" does not exist!")};r.exports=function(Z,G){if(typeof Z!="string"||Z.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof G!="boolean")throw new l('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var K=A(Z),U=K.length>0?K[0]:"",B=H("%"+U+"%",G),Y=B.name,j=B.value,ne=!1,ee=B.alias;ee&&(U=ee[0],M(K,I([0,1],ee)));for(var ue=1,z=!0;ue<K.length;ue+=1){var X=K[ue],J=E(X,0,1),fe=E(X,-1);if((J==='"'||J==="'"||J==="`"||fe==='"'||fe==="'"||fe==="`")&&J!==fe)throw new s("property names with quotes must have matching quotes");if((X==="constructor"||!z)&&(ne=!0),U+="."+X,Y="%"+U+"%",_(O,Y))j=O[Y];else if(j!=null){if(!(X in j)){if(!G)throw new l("base intrinsic for "+Z+" exists, but the property is not available.");return}if(c&&ue+1>=K.length){var we=c(j,X);z=!!we,z&&"get"in we&&!("originalValue"in we.get)?j=we.get:j=j[X]}else z=_(j,X),j=j[X];z&&!ne&&(O[Y]=j)}}return j}},{"function-bind":9,has:15,"has-symbols":12}],11:[function(n,r,i){var o=n("get-intrinsic"),s=o("%Object.getOwnPropertyDescriptor%",!0);if(s)try{s([],"length")}catch{s=null}r.exports=s},{"get-intrinsic":10}],12:[function(n,r,i){var o=typeof Symbol<"u"&&Symbol,s=n("./shams");r.exports=function(){return typeof o!="function"||typeof Symbol!="function"||typeof o("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()}},{"./shams":13}],13:[function(n,r,i){r.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var u=42;s[a]=u;for(a in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var c=Object.getOwnPropertySymbols(s);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(s,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(s,a);if(f.value!==u||f.enumerable!==!0)return!1}return!0}},{}],14:[function(n,r,i){var o=n("has-symbols/shams");r.exports=function(){return o()&&!!Symbol.toStringTag}},{"has-symbols/shams":13}],15:[function(n,r,i){var o=n("function-bind");r.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":9}],16:[function(n,r,i){var o=r.exports=function(s,a){if(a||(a=16),s===void 0&&(s=128),s<=0)return"0";for(var l=Math.log(Math.pow(2,s))/Math.log(a),u=2;l===1/0;u*=2)l=Math.log(Math.pow(2,s/u))/Math.log(a)*u;for(var c=l-Math.floor(l),f="",u=0;u<Math.floor(l);u++){var d=Math.floor(Math.random()*a).toString(a);f=d+f}if(c){var h=Math.pow(a,c),d=Math.floor(Math.random()*h).toString(a);f=d+f}var p=parseInt(f,a);return p!==1/0&&p>=Math.pow(2,s)?o(s,a):f};o.rack=function(s,a,l){var u=function(f){var d=0;do{if(d++>10)if(l)s+=l;else throw new Error("too many ID collisions, use more bits");var h=o(s,a)}while(Object.hasOwnProperty.call(c,h));return c[h]=f,h},c=u.hats={};return u.get=function(f){return u.hats[f]},u.set=function(f,d){return u.hats[f]=d,u},u.bits=s||128,u.base=a||16,u}},{}],17:[function(n,r,i){typeof Object.create=="function"?r.exports=function(s,a){a&&(s.super_=a,s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(s,a){if(a){s.super_=a;var l=function(){};l.prototype=a.prototype,s.prototype=new l,s.prototype.constructor=s}}},{}],18:[function(n,r,i){var o=n("has-tostringtag/shams")(),s=n("call-bind/callBound"),a=s("Object.prototype.toString"),l=function(d){return o&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:a(d)==="[object Arguments]"},u=function(d){return l(d)?!0:d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},c=function(){return l(arguments)}();l.isLegacyArguments=u,r.exports=c?l:u},{"call-bind/callBound":3,"has-tostringtag/shams":14}],19:[function(n,r,i){var o=Function.prototype.toString,s=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,l;if(typeof s=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw l}}),l={},s(function(){throw 42},null,a)}catch(I){I!==l&&(s=null)}else s=null;var u=/^\s*class\b/,c=function(M){try{var P=o.call(M);return u.test(P)}catch{return!1}},f=function(M){try{return c(M)?!1:(o.call(M),!0)}catch{return!1}},d=Object.prototype.toString,h="[object Object]",p="[object Function]",g="[object GeneratorFunction]",y="[object HTMLAllCollection]",O="[object HTML document.all class]",b="[object HTMLCollection]",S=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var _=document.all;d.call(_)===d.call(document.all)&&(x=function(M){if((k||!M)&&(typeof M>"u"||typeof M=="object"))try{var P=d.call(M);return(P===y||P===O||P===b||P===h)&&M("")==null}catch{}return!1})}r.exports=s?function(M){if(x(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{s(M,null,a)}catch(P){if(P!==l)return!1}return!c(M)&&f(M)}:function(M){if(x(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(S)return f(M);if(c(M))return!1;var P=d.call(M);return P!==p&&P!==g&&!/^\[object HTML/.test(P)?!1:f(M)}},{}],20:[function(n,r,i){var o=Object.prototype.toString,s=Function.prototype.toString,a=/^\s*(?:function)?\*/,l=n("has-tostringtag/shams")(),u=Object.getPrototypeOf,c=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch{}},f;r.exports=function(h){if(typeof h!="function")return!1;if(a.test(s.call(h)))return!0;if(!l){var p=o.call(h);return p==="[object GeneratorFunction]"}if(!u)return!1;if(typeof f>"u"){var g=c();f=g?u(g):!1}return u(h)===f}},{"has-tostringtag/shams":14}],21:[function(n,r,i){(function(o){(function(){var s=n("for-each"),a=n("available-typed-arrays"),l=n("call-bind/callBound"),u=l("Object.prototype.toString"),c=n("has-tostringtag/shams")(),f=n("gopd"),d=typeof globalThis>"u"?o:globalThis,h=a(),p=l("Array.prototype.indexOf",!0)||function(k,x){for(var _=0;_<k.length;_+=1)if(k[_]===x)return _;return-1},g=l("String.prototype.slice"),y={},O=Object.getPrototypeOf;c&&f&&O&&s(h,function(S){var k=new d[S];if(Symbol.toStringTag in k){var x=O(k),_=f(x,Symbol.toStringTag);if(!_){var I=O(x);_=f(I,Symbol.toStringTag)}y[S]=_.get}});var b=function(k){var x=!1;return s(y,function(_,I){if(!x)try{x=_.call(k)===I}catch{}}),x};r.exports=function(k){if(!k||typeof k!="object")return!1;if(!c||!(Symbol.toStringTag in k)){var x=g(u(k),8,-1);return p(h,x)>-1}return f?b(k):!1}}).call(this)}).call(this,typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{"available-typed-arrays":2,"call-bind/callBound":3,"for-each":7,gopd:11,"has-tostringtag/shams":14}],22:[function(n,r,i){r.exports=o;function o(s,a,l,u){var c=function(d,h,p,g){a(p,d,h,"left"),a(g,h,d,"right")},f=s.transformX=function(d,h){l(d),l(h);for(var p=[],g=0;g<h.length;g++){for(var y=h[g],O=[],b=0;b<d.length;){var S=[];if(c(d[b],y,O,S),b++,S.length===1)y=S[0];else if(S.length===0){for(var k=b;k<d.length;k++)u(O,d[k]);y=null;break}else{for(var x=f(d.slice(b),S),_=0;_<x[0].length;_++)u(O,x[0][_]);for(var I=0;I<x[1].length;I++)u(p,x[1][I]);y=null;break}}y!=null&&u(p,y),d=O}return[d,p]};s.transform=function(d,h,p){if(!(p==="left"||p==="right"))throw new Error("type must be 'left' or 'right'");return h.length===0?d:d.length===1&&h.length===1?a([],d[0],h[0],p):p==="left"?f(d,h)[0]:f(h,d)[1]}}},{}],23:[function(n,r,i){r.exports={type:n("./json0")}},{"./json0":24}],24:[function(n,r,i){var o=function(p){return Object.prototype.toString.call(p)=="[object Array]"},s=function(p){return!!p&&p.constructor===Object},a=function(p){return JSON.parse(JSON.stringify(p))},l={name:"json0",uri:"http://sharejs.org/types/JSONv0"},u={};l.registerSubtype=function(p){u[p.name]=p},l.create=function(p){return p===void 0?null:a(p)},l.invertComponent=function(p){var g={p:p.p};return p.t&&u[p.t]&&(g.t=p.t,g.o=u[p.t].invert(p.o)),p.si!==void 0&&(g.sd=p.si),p.sd!==void 0&&(g.si=p.sd),p.oi!==void 0&&(g.od=p.oi),p.od!==void 0&&(g.oi=p.od),p.li!==void 0&&(g.ld=p.li),p.ld!==void 0&&(g.li=p.ld),p.na!==void 0&&(g.na=-p.na),p.lm!==void 0&&(g.lm=p.p[p.p.length-1],g.p=p.p.slice(0,p.p.length-1).concat([p.lm])),g},l.invert=function(p){for(var g=p.slice().reverse(),y=[],O=0;O<g.length;O++)y.push(l.invertComponent(g[O]));return y},l.checkValidOp=function(p){for(var g=0;g<p.length;g++)if(!o(p[g].p))throw new Error("Missing path")},l.checkList=function(p){if(!o(p))throw new Error("Referenced element not a list")},l.checkObj=function(p){if(!s(p))throw new Error("Referenced element not an object (it was "+JSON.stringify(p)+")")};function c(p){p.t="text0";var g={p:p.p.pop()};p.si!=null&&(g.i=p.si),p.sd!=null&&(g.d=p.sd),p.o=[g]}function f(p){p.p.push(p.o[0].p),p.o[0].i!=null&&(p.si=p.o[0].i),p.o[0].d!=null&&(p.sd=p.o[0].d),delete p.t,delete p.o}l.apply=function(p,g){l.checkValidOp(g),g=a(g);for(var y={data:p},O=0;O<g.length;O++){var b=g[O];(b.si!=null||b.sd!=null)&&c(b);for(var S=null,k=y,x="data",_=0;_<b.p.length;_++){var I=b.p[_];if(S=k,k=k[x],x=I,S==null)throw new Error("Path invalid")}if(b.t&&b.o!==void 0&&u[b.t])k[x]=u[b.t].apply(k[x],b.o);else if(b.na!==void 0){if(typeof k[x]!="number")throw new Error("Referenced element not a number");k[x]+=b.na}else if(b.li!==void 0&&b.ld!==void 0)l.checkList(k),k[x]=b.li;else if(b.li!==void 0)l.checkList(k),k.splice(x,0,b.li);else if(b.ld!==void 0)l.checkList(k),k.splice(x,1);else if(b.lm!==void 0){if(l.checkList(k),b.lm!=x){var M=k[x];k.splice(x,1),k.splice(b.lm,0,M)}}else if(b.oi!==void 0)l.checkObj(k),k[x]=b.oi;else if(b.od!==void 0)l.checkObj(k),delete k[x];else throw new Error("invalid / missing instruction in op")}return y.data},l.shatter=function(p){for(var g=[],y=0;y<p.length;y++)g.push([p[y]]);return g},l.incrementalApply=function(p,g,y){for(var O=0;O<g.length;O++){var b=[g[O]];p=l.apply(p,b),y(b,p)}return p};var d=l.pathMatches=function(p,g,y){if(p.length!=g.length)return!1;for(var O=0;O<p.length;O++)if(p[O]!==g[O]&&(!y||O!==p.length-1))return!1;return!0};l.append=function(p,g){if(g=a(g),p.length===0){p.push(g);return}var y=p[p.length-1];if((g.si!=null||g.sd!=null)&&(y.si!=null||y.sd!=null)&&(c(g),c(y)),d(g.p,y.p))if(g.t&&y.t&&g.t===y.t&&u[g.t]){if(y.o=u[g.t].compose(y.o,g.o),g.si!=null||g.sd!=null){for(var O=g.p,b=0;b<y.o.length-1;b++)g.o=[y.o.pop()],g.p=O.slice(),f(g),p.push(g);f(y)}}else y.na!=null&&g.na!=null?p[p.length-1]={p:y.p,na:y.na+g.na}:y.li!==void 0&&g.li===void 0&&g.ld===y.li?y.ld!==void 0?delete y.li:p.pop():y.od!==void 0&&y.oi===void 0&&g.oi!==void 0&&g.od===void 0?y.oi=g.oi:y.oi!==void 0&&g.od!==void 0?g.oi!==void 0?y.oi=g.oi:y.od!==void 0?delete y.oi:p.pop():g.lm!==void 0&&g.p[g.p.length-1]===g.lm||p.push(g);else(g.si!=null||g.sd!=null)&&(y.si!=null||y.sd!=null)&&(f(g),f(y)),p.push(g)},l.compose=function(p,g){l.checkValidOp(p),l.checkValidOp(g);for(var y=a(p),O=0;O<g.length;O++)l.append(y,g[O]);return y},l.normalize=function(p){var g=[];p=o(p)?p:[p];for(var y=0;y<p.length;y++){var O=p[y];O.p==null&&(O.p=[]),l.append(g,O)}return g},l.commonLengthForOps=function(p,g){var y=p.p.length,O=g.p.length;if((p.na!=null||p.t)&&y++,(g.na!=null||g.t)&&O++,y===0)return-1;if(O===0)return null;y--,O--;for(var b=0;b<y;b++){var S=p.p[b];if(b>=O||S!==g.p[b])return null}return y},l.canOpAffectPath=function(p,g){return l.commonLengthForOps({p:g},p)!=null},l.transformComponent=function(p,g,y,O){g=a(g);var b=l.commonLengthForOps(y,g),S=l.commonLengthForOps(g,y),k=g.p.length,x=y.p.length;if((g.na!=null||g.t)&&k++,(y.na!=null||y.t)&&x++,S!=null&&x>k&&g.p[S]==y.p[S]){if(g.ld!==void 0){var _=a(y);_.p=_.p.slice(k),g.ld=l.apply(a(g.ld),[_])}else if(g.od!==void 0){var _=a(y);_.p=_.p.slice(k),g.od=l.apply(a(g.od),[_])}}if(b!=null){var I=k==x,_=y;if((g.si!=null||g.sd!=null)&&(y.si!=null||y.sd!=null)&&(c(g),_=a(y),c(_)),_.t&&u[_.t]){if(g.t&&g.t===_.t){var M=u[g.t].transform(g.o,_.o,O);if(g.si!=null||g.sd!=null)for(var P=g.p,E=0;E<M.length;E++)g.o=[M[E]],g.p=P.slice(),f(g),l.append(p,g);else(!o(M)||M.length>0)&&(g.o=M,l.append(p,g));return p}}else if(y.na===void 0){if(y.li!==void 0&&y.ld!==void 0){if(y.p[b]===g.p[b])if(I){if(g.ld!==void 0)if(g.li!==void 0&&O==="left")g.ld=a(y.li);else return p}else return p}else if(y.li!==void 0)g.li!==void 0&&g.ld===void 0&&I&&g.p[b]===y.p[b]?O==="right"&&g.p[b]++:y.p[b]<=g.p[b]&&g.p[b]++,g.lm!==void 0&&I&&y.p[b]<=g.lm&&g.lm++;else if(y.ld!==void 0){if(g.lm!==void 0&&I){if(y.p[b]===g.p[b])return p;var P=y.p[b],R=g.p[b],T=g.lm;(P<T||P===T&&R<T)&&g.lm--}if(y.p[b]<g.p[b])g.p[b]--;else if(y.p[b]===g.p[b]){if(x<k)return p;if(g.ld!==void 0)if(g.li!==void 0)delete g.ld;else return p}}else if(y.lm!==void 0)if(g.lm!==void 0&&k===x){var R=g.p[b],T=g.lm,L=y.p[b],A=y.lm;if(L!==A)if(R===L)if(O==="left")g.p[b]=A,R===T&&(g.lm=A);else return p;else R>L&&g.p[b]--,R>A?g.p[b]++:R===A&&L>A&&(g.p[b]++,R===T&&g.lm++),(T>L||T===L&&T>R)&&g.lm--,T>A?g.lm++:T===A&&(A>L&&T>R||A<L&&T<R?O==="right"&&g.lm++:T>R?g.lm++:T===L&&g.lm--)}else if(g.li!==void 0&&g.ld===void 0&&I){var R=y.p[b],T=y.lm;P=g.p[b],P>R&&g.p[b]--,P>T&&g.p[b]++}else{var R=y.p[b],T=y.lm;P=g.p[b],P===R?g.p[b]=T:(P>R&&g.p[b]--,(P>T||P===T&&R>T)&&g.p[b]++)}else if(y.oi!==void 0&&y.od!==void 0){if(g.p[b]===y.p[b])if(g.oi!==void 0&&I){if(O==="right")return p;g.od=y.oi}else return p}else if(y.oi!==void 0){if(g.oi!==void 0&&g.p[b]===y.p[b])if(O==="left")l.append(p,{p:g.p,od:y.oi});else return p}else if(y.od!==void 0&&g.p[b]==y.p[b]){if(!I)return p;if(g.oi!==void 0)delete g.od;else return p}}}return l.append(p,g),p},n("./bootstrapTransform")(l,l.transformComponent,l.checkValidOp,l.append);var h=n("./text0");l.registerSubtype(h),r.exports=l},{"./bootstrapTransform":22,"./text0":25}],25:[function(n,r,i){var o=r.exports={name:"text0",uri:"http://sharejs.org/types/textv0",create:function(h){if(h!=null&&typeof h!="string")throw new Error("Initial data must be a string");return h||""}},s=function(h,p,g){return h.slice(0,p)+g+h.slice(p)},a=function(h){if(typeof h.p!="number")throw new Error("component missing position field");if(typeof h.i=="string"==(typeof h.d=="string"))throw new Error("component needs an i or d field");if(h.p<0)throw new Error("position cannot be negative")},l=function(h){for(var p=0;p<h.length;p++)a(h[p])};o.apply=function(h,p){var g;l(p);for(var y=0;y<p.length;y++){var O=p[y];if(O.i!=null)h=s(h,O.p,O.i);else{if(g=h.slice(O.p,O.p+O.d.length),O.d!==g)throw new Error("Delete component '"+O.d+"' does not match deleted text '"+g+"'");h=h.slice(0,O.p)+h.slice(O.p+O.d.length)}}return h};var u=o._append=function(h,p){if(!(p.i===""||p.d===""))if(h.length===0)h.push(p);else{var g=h[h.length-1];g.i!=null&&p.i!=null&&g.p<=p.p&&p.p<=g.p+g.i.length?h[h.length-1]={i:s(g.i,p.p-g.p,p.i),p:g.p}:g.d!=null&&p.d!=null&&p.p<=g.p&&g.p<=p.p+p.d.length?h[h.length-1]={d:s(p.d,g.p-p.p,g.d),p:p.p}:h.push(p)}};o.compose=function(h,p){l(h),l(p);for(var g=h.slice(),y=0;y<p.length;y++)u(g,p[y]);return g},o.normalize=function(h){var p=[];(h.i!=null||h.p!=null)&&(h=[h]);for(var g=0;g<h.length;g++){var y=h[g];y.p==null&&(y.p=0),u(p,y)}return p};var c=function(h,p,g){return p.i!=null?p.p<h||p.p===h&&g?h+p.i.length:h:h<=p.p?h:h<=p.p+p.d.length?p.p:h-p.d.length};o.transformCursor=function(h,p,g){for(var y=g==="right",O=0;O<p.length;O++)h=c(h,p[O],y);return h};var f=o._tc=function(h,p,g,y){if(a(p),a(g),p.i!=null)u(h,{i:p.i,p:c(p.p,g,y==="right")});else if(g.i!=null){var O=p.d;p.p<g.p&&(u(h,{d:O.slice(0,g.p-p.p),p:p.p}),O=O.slice(g.p-p.p)),O!==""&&u(h,{d:O,p:p.p+g.i.length})}else if(p.p>=g.p+g.d.length)u(h,{d:p.d,p:p.p-g.d.length});else if(p.p+p.d.length<=g.p)u(h,p);else{var b={d:"",p:p.p};p.p<g.p&&(b.d=p.d.slice(0,g.p-p.p)),p.p+p.d.length>g.p+g.d.length&&(b.d+=p.d.slice(g.p+g.d.length-p.p));var S=Math.max(p.p,g.p),k=Math.min(p.p+p.d.length,g.p+g.d.length),x=p.d.slice(S-p.p,k-p.p),_=g.d.slice(S-g.p,k-g.p);if(x!==_)throw new Error("Delete ops delete different text in the same region of the document");b.d!==""&&(b.p=c(b.p,g),u(h,b))}return h},d=function(h){return h.i!=null?{d:h.i,p:h.p}:{i:h.d,p:h.p}};o.invert=function(h){h=h.slice().reverse();for(var p=0;p<h.length;p++)h[p]=d(h[p]);return h},n("./bootstrapTransform")(o,f,l,u)},{"./bootstrapTransform":22}],26:[function(n,r,i){var o=r.exports={},s,a;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?a=clearTimeout:a=u}catch{a=u}})();function c(k){if(s===setTimeout)return setTimeout(k,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(k,0);try{return s(k,0)}catch{try{return s.call(null,k,0)}catch{return s.call(this,k,0)}}}function f(k){if(a===clearTimeout)return clearTimeout(k);if((a===u||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(k);try{return a(k)}catch{try{return a.call(null,k)}catch{return a.call(this,k)}}}var d=[],h=!1,p,g=-1;function y(){!h||!p||(h=!1,p.length?d=p.concat(d):g=-1,d.length&&O())}function O(){if(!h){var k=c(y);h=!0;for(var x=d.length;x;){for(p=d,d=[];++g<x;)p&&p[g].run();g=-1,x=d.length}p=null,h=!1,f(k)}}o.nextTick=function(k){var x=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)x[_-1]=arguments[_];d.push(new b(k,x)),d.length===1&&!h&&c(O)};function b(k,x){this.fun=k,this.array=x}b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function S(){}o.on=S,o.addListener=S,o.once=S,o.off=S,o.removeListener=S,o.removeAllListeners=S,o.emit=S,o.prependListener=S,o.prependOnceListener=S,o.listeners=function(k){return[]},o.binding=function(k){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(k){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],27:[function(n,r,i){var o=n("./doc"),s=n("./query"),a=n("./presence/presence"),l=n("./presence/doc-presence"),u=n("./snapshot-request/snapshot-version-request"),c=n("./snapshot-request/snapshot-timestamp-request"),f=n("../emitter"),d=n("../error"),h=n("../message-actions").ACTIONS,p=n("../types"),g=n("../util"),y=n("../logger"),O=n("./presence/doc-presence-emitter"),b=n("../protocol"),S=d.CODES;function k(P){return P.readyState===0||P.readyState===1?"connecting":"disconnected"}r.exports=x;function x(P){f.EventEmitter.call(this),this.collections=Object.create(null),this.nextQueryId=1,this.nextSnapshotRequestId=1,this.queries=Object.create(null),this._presences=Object.create(null),this._docPresenceEmitter=new O,this._snapshotRequests=Object.create(null),this.seq=1,this._presenceSeq=1,this.id=null,this.agent=null,this.debug=!1,this.state=k(P),this.bindToSocket(P)}f.mixin(x),x.prototype.bindToSocket=function(P){this.socket&&(this.socket.close(),this.socket.onmessage=null,this.socket.onopen=null,this.socket.onerror=null,this.socket.onclose=null),this.socket=P;var E=k(P);this._setState(E),this.canSend=!1;var R=this;P.onmessage=function(T){try{var L=typeof T.data=="string"?JSON.parse(T.data):T.data}catch{y.warn("Failed to parse message",T);return}R.debug&&y.info("RECV",JSON.stringify(L));var A={data:L};if(R.emit("receive",A),!!A.data)try{R.handleMessage(A.data)}catch(H){g.nextTick(function(){R.emit("error",H)})}},P.readyState===1&&R._initializeHandshake(),P.onopen=function(){R._setState("connecting"),R._initializeHandshake()},P.onerror=function(T){R.emit("connection error",T)},P.onclose=function(T){T==="closed"||T==="Closed"?R._setState("closed",T):T==="stopped"||T==="Stopped by server"?R._setState("stopped",T):R._setState("disconnected",T)}},x.prototype.handleMessage=function(P){var E=null;switch(P.error&&(E=_(P.error,P),delete P.error),P.a){case h.initLegacy:return this._handleLegacyInit(P);case h.handshake:return this._handleHandshake(E,P);case h.queryFetch:var R=this.queries[P.id];R&&R._handleFetch(E,P.data,P.extra);return;case h.querySubscribe:var R=this.queries[P.id];R&&R._handleSubscribe(E,P.data,P.extra);return;case h.queryUnsubscribe:return;case h.queryUpdate:var R=this.queries[P.id];if(!R)return;if(E)return R._handleError(E);P.diff&&R._handleDiff(P.diff),g.hasOwn(P,"extra")&&R._handleExtra(P.extra);return;case h.bulkFetch:return this._handleBulkMessage(E,P,"_handleFetch");case h.bulkSubscribe:case h.bulkUnsubscribe:return this._handleBulkMessage(E,P,"_handleSubscribe");case h.snapshotFetch:case h.snapshotFetchByTimestamp:return this._handleSnapshotFetch(E,P);case h.fetch:var T=this.getExisting(P.c,P.d);T&&T._handleFetch(E,P.data);return;case h.subscribe:case h.unsubscribe:var T=this.getExisting(P.c,P.d);T&&T._handleSubscribe(E,P.data);return;case h.op:var T=this.getExisting(P.c,P.d);T&&T._handleOp(E,P);return;case h.presence:return this._handlePresence(E,P);case h.presenceSubscribe:return this._handlePresenceSubscribe(E,P);case h.presenceUnsubscribe:return this._handlePresenceUnsubscribe(E,P);case h.presenceRequest:return this._handlePresenceRequest(E,P);case h.pingPong:return this._handlePingPong(E);default:y.warn("Ignoring unrecognized message",P)}};function _(P,E){var R=new Error(P.message);return R.code=P.code,E&&(R.data=E),R}x.prototype._handleBulkMessage=function(P,E,R){if(E.data)for(var T in E.data){var L=E.data[T],A=this.getExisting(E.c,T);A&&(P?A[R](P):L.error?A[R](_(L.error)):A[R](null,L))}else if(Array.isArray(E.b))for(var H=0;H<E.b.length;H++){var T=E.b[H],A=this.getExisting(E.c,T);A&&A[R](P)}else if(E.b)for(var T in E.b){var A=this.getExisting(E.c,T);A&&A[R](P)}else y.error("Invalid bulk message",E)},x.prototype._reset=function(){this.agent=null},x.prototype._setState=function(P,E){if(this.state!==P){if(P==="connecting"&&this.state!=="disconnected"&&this.state!=="stopped"&&this.state!=="closed"||P==="connected"&&this.state!=="connecting"){var R=new d(S.ERR_CONNECTION_STATE_TRANSITION_INVALID,"Cannot transition directly from "+this.state+" to "+P);return this.emit("error",R)}this.state=P,this.canSend=P==="connected",(P==="disconnected"||P==="stopped"||P==="closed")&&this._reset(),this.startBulk();for(var T in this.queries){var L=this.queries[T];L._onConnectionStateChanged()}for(var A in this.collections){var H=this.collections[A];for(var T in H)H[T]._onConnectionStateChanged()}for(var W in this._presences)this._presences[W]._onConnectionStateChanged();for(var T in this._snapshotRequests){var Z=this._snapshotRequests[T];Z._onConnectionStateChanged()}this.endBulk(),this.emit(P,E),this.emit("state",P,E)}},x.prototype.startBulk=function(){this.bulk||(this.bulk=Object.create(null))},x.prototype.endBulk=function(){if(this.bulk)for(var P in this.bulk){var E=this.bulk[P];this._sendBulk("f",P,E.f),this._sendBulk("s",P,E.s),this._sendBulk("u",P,E.u)}this.bulk=null},x.prototype._sendBulk=function(P,E,R){if(R){var T=[],L=Object.create(null),A=0,H;for(var W in R){var Z=R[W];Z==null?T.push(W):(L[W]=Z,H=W,A++)}if(T.length===1){var W=T[0];this.send({a:P,c:E,d:W})}else T.length&&this.send({a:"b"+P,c:E,b:T});if(A===1){var G=L[H];this.send({a:P,c:E,d:H,v:G})}else A&&this.send({a:"b"+P,c:E,b:L})}},x.prototype._sendActions=function(P,E,R){if(this._addDoc(E),this.bulk){var T=this.bulk[E.collection]||(this.bulk[E.collection]=Object.create(null)),L=T[P]||(T[P]=Object.create(null)),A=g.hasOwn(L,E.id);return L[E.id]=R,A}else{var H={a:P,c:E.collection,d:E.id,v:R};this.send(H)}},x.prototype.sendFetch=function(P){return this._sendActions(h.fetch,P,P.version)},x.prototype.sendSubscribe=function(P){return this._sendActions(h.subscribe,P,P.version)},x.prototype.sendUnsubscribe=function(P){return this._sendActions(h.unsubscribe,P)},x.prototype.sendOp=function(P,E){this._addDoc(P);var R={a:h.op,c:P.collection,d:P.id,v:P.version,src:E.src,seq:E.seq,x:{}};"op"in E&&(R.op=E.op),E.create&&(R.create=E.create),E.del&&(R.del=E.del),P.submitSource&&(R.x.source=E.source),this.send(R)},x.prototype.send=function(P){this.debug&&y.info("SEND",JSON.stringify(P)),this.emit("send",P),this.socket.send(JSON.stringify(P))},x.prototype.ping=function(){if(!this.canSend)throw new d(S.ERR_CANNOT_PING_OFFLINE,"Socket must be CONNECTED to ping");var P={a:h.pingPong};this.send(P)},x.prototype.close=function(){this.socket.close()},x.prototype.getExisting=function(P,E){if(this.collections[P])return this.collections[P][E]},x.prototype.get=function(P,E){var R=this.collections[P]||(this.collections[P]=Object.create(null)),T=R[E];return T||(T=R[E]=new o(this,P,E),this.emit("doc",T)),T._wantsDestroy=!1,T},x.prototype._destroyDoc=function(P){P._wantsDestroy&&(g.digAndRemove(this.collections,P.collection,P.id),P.emit("destroy"))},x.prototype._addDoc=function(P){var E=this.collections[P.collection];E||(E=this.collections[P.collection]=Object.create(null)),E[P.id]!==P&&(E[P.id]=P)},x.prototype._createQuery=function(P,E,R,T,L){var A=this.nextQueryId++,H=new s(P,this,A,E,R,T,L);return this.queries[A]=H,H.send(),H},x.prototype._destroyQuery=function(P){delete this.queries[P.id]},x.prototype.createFetchQuery=function(P,E,R,T){return this._createQuery(h.queryFetch,P,E,R,T)},x.prototype.createSubscribeQuery=function(P,E,R,T){return this._createQuery(h.querySubscribe,P,E,R,T)},x.prototype.hasPending=function(){return!!(this._firstDoc(I)||this._firstQuery(I)||this._firstSnapshotRequest())};function I(P){return P.hasPending()}x.prototype.hasWritePending=function(){return!!this._firstDoc(M)};function M(P){return P.hasWritePending()}x.prototype.whenNothingPending=function(P){var E=this._firstDoc(I);if(E){E.once("nothing pending",this._nothingPendingRetry(P));return}var R=this._firstQuery(I);if(R){R.once("ready",this._nothingPendingRetry(P));return}var T=this._firstSnapshotRequest();if(T){T.once("ready",this._nothingPendingRetry(P));return}g.nextTick(P)},x.prototype._nothingPendingRetry=function(P){var E=this;return function(){g.nextTick(function(){E.whenNothingPending(P)})}},x.prototype._firstDoc=function(P){for(var E in this.collections){var R=this.collections[E];for(var T in R){var L=R[T];if(P(L))return L}}},x.prototype._firstQuery=function(P){for(var E in this.queries){var R=this.queries[E];if(P(R))return R}},x.prototype._firstSnapshotRequest=function(){for(var P in this._snapshotRequests)return this._snapshotRequests[P]},x.prototype.fetchSnapshot=function(P,E,R,T){typeof R=="function"&&(T=R,R=null);var L=this.nextSnapshotRequestId++,A=new u(this,L,P,E,R,T);this._snapshotRequests[A.requestId]=A,A.send()},x.prototype.fetchSnapshotByTimestamp=function(P,E,R,T){typeof R=="function"&&(T=R,R=null);var L=this.nextSnapshotRequestId++,A=new c(this,L,P,E,R,T);this._snapshotRequests[A.requestId]=A,A.send()},x.prototype._handleSnapshotFetch=function(P,E){var R=this._snapshotRequests[E.id];R&&(delete this._snapshotRequests[E.id],R._handleResponse(P,E))},x.prototype._handleLegacyInit=function(P){if(b.checkAtLeast(P,"1.1"))return this._initializeHandshake();this._initialize(P)},x.prototype._initializeHandshake=function(){this.send({a:h.handshake,id:this.id,protocol:b.major,protocolMinor:b.minor})},x.prototype._handleHandshake=function(P,E){if(P)return this.emit("error",P);this._initialize(E)},x.prototype._handlePingPong=function(P){if(P)return this.emit("error",P);this.emit("pong")},x.prototype._initialize=function(P){if(this.state==="connecting"){if(P.protocol!==b.major)return this.emit("error",new d(S.ERR_PROTOCOL_VERSION_NOT_SUPPORTED,"Unsupported protocol version: "+P.protocol));if(p.map[P.type]!==p.defaultType)return this.emit("error",new d(S.ERR_DEFAULT_TYPE_MISMATCH,P.type+" does not match the server default type"));if(typeof P.id!="string")return this.emit("error",new d(S.ERR_CLIENT_ID_BADLY_FORMED,"Client id must be a string"));this.id=P.id,this._setState("connected")}},x.prototype.getPresence=function(P){var E=this,R=g.digOrCreate(this._presences,P,function(){return new a(E,P)});return R._wantsDestroy=!1,R},x.prototype.getDocPresence=function(P,E){var R=l.channel(P,E),T=this,L=g.digOrCreate(this._presences,R,function(){return new l(T,P,E)});return L._wantsDestroy=!1,L},x.prototype._sendPresenceAction=function(P,E,R){this._addPresence(R);var T={a:P,ch:R.channel,seq:E};return this.send(T),T.seq},x.prototype._addPresence=function(P){g.digOrCreate(this._presences,P.channel,function(){return P})},x.prototype._requestRemotePresence=function(P){this.send({a:h.presenceRequest,ch:P})},x.prototype._handlePresenceSubscribe=function(P,E){var R=g.dig(this._presences,E.ch);R&&R._handleSubscribe(P,E.seq)},x.prototype._handlePresenceUnsubscribe=function(P,E){var R=g.dig(this._presences,E.ch);R&&R._handleUnsubscribe(P,E.seq)},x.prototype._handlePresence=function(P,E){var R=g.dig(this._presences,E.ch);R&&R._receiveUpdate(P,E)},x.prototype._handlePresenceRequest=function(P,E){var R=g.dig(this._presences,E.ch);R&&R._broadcastAllLocalPresence(P,E)}},{"../emitter":41,"../error":42,"../logger":43,"../message-actions":45,"../protocol":48,"../types":50,"../util":51,"./doc":28,"./presence/doc-presence":31,"./presence/doc-presence-emitter":30,"./presence/presence":34,"./query":37,"./snapshot-request/snapshot-timestamp-request":39,"./snapshot-request/snapshot-version-request":40}],28:[function(n,r,i){var o=n("../emitter"),s=n("../logger"),a=n("../error"),l=n("../types"),u=n("../util"),c=u.clone,f=n("fast-deep-equal"),d=n("../message-actions").ACTIONS,h=a.CODES;r.exports=p;function p(b,S,k){o.EventEmitter.call(this),this.connection=b,this.collection=S,this.id=k,this.version=null,this.type=null,this.data=void 0,this.inflightFetch=[],this.inflightSubscribe=null,this.pendingFetch=[],this.pendingSubscribe=[],this._isInHardRollback=!1,this.subscribed=!1,this.wantSubscribe=!1,this._wantsDestroy=!1,this.inflightOp=null,this.pendingOps=[],this.applyStack=null,this.preventCompose=!1,this.submitSource=!1,this.paused=!1,this._dataStateVersion=0}o.mixin(p),p.prototype.destroy=function(b){this._wantsDestroy=!0;var S=this;S.whenNothingPending(function(){S.wantSubscribe?S.unsubscribe(function(k){if(k)return b?b(k):S.emit("error",k);S.connection._destroyDoc(S),b&&b()}):(S.connection._destroyDoc(S),b&&b())})},p.prototype._setType=function(b){if(typeof b=="string"&&(b=l.map[b]),b)this.type=b;else if(b===null)this.type=b,this._setData(void 0);else{var S=new a(h.ERR_DOC_TYPE_NOT_RECOGNIZED,"Missing type "+b);return this.emit("error",S)}},p.prototype._setData=function(b){this.data=b,this._dataStateVersion++},p.prototype.ingestSnapshot=function(b,S){if(!b)return S&&S();if(typeof b.v!="number"){var k=new a(h.ERR_INGESTED_SNAPSHOT_HAS_NO_VERSION,"Missing version in ingested snapshot. "+this.collection+"."+this.id);return S?S(k):this.emit("error",k)}if(this.type||this.hasWritePending()){if(this.version==null){if(this.hasWritePending())return S&&this.once("no write pending",S);var k=new a(h.ERR_DOC_MISSING_VERSION,"Cannot ingest snapshot in doc with null version. "+this.collection+"."+this.id);return S?S(k):this.emit("error",k)}return b.v>this.version?this.fetch(S):S&&S()}if(this.version>b.v)return S&&S();this.version=b.v;var x=b.type===void 0?l.defaultType:b.type;this._setType(x),this._setData(this.type&&this.type.deserialize?this.type.deserialize(b.data):b.data),this.emit("load"),S&&S()},p.prototype.whenNothingPending=function(b){var S=this;u.nextTick(function(){if(S.hasPending()){S.once("nothing pending",b);return}b()})},p.prototype.hasPending=function(){return!!(this.inflightOp||this.pendingOps.length||this.inflightFetch.length||this.inflightSubscribe||this.pendingFetch.length||this.pendingSubscribe.length)},p.prototype.hasWritePending=function(){return!!(this.inflightOp||this.pendingOps.length)},p.prototype._emitNothingPending=function(){this.hasWritePending()||(this.emit("no write pending"),!this.hasPending()&&this.emit("nothing pending"))},p.prototype._emitResponseError=function(b,S){if(b&&b.code===h.ERR_SNAPSHOT_READ_SILENT_REJECTION){this.wantSubscribe=!1,S&&S(),this._emitNothingPending();return}if(S){S(b),this._emitNothingPending();return}this._emitNothingPending(),this.emit("error",b)},p.prototype._handleFetch=function(b,S){var k=this.pendingFetch;this.pendingFetch=[];var x=this.inflightFetch.shift();if(x&&k.unshift(x),k.length&&(x=function(_){u.callEach(k,_)}),b)return this._emitResponseError(b,x);this.ingestSnapshot(S,x),this._emitNothingPending()},p.prototype._handleSubscribe=function(b,S){var k=this.inflightSubscribe;this.inflightSubscribe=null;var x=this.pendingFetch;this.pendingFetch=[],k.callback&&x.push(k.callback);var _;if(x.length&&(_=function(I){u.callEach(x,I)}),b)return this._emitResponseError(b,_);this.subscribed=k.wantSubscribe,this.subscribed?this.ingestSnapshot(S,_):_&&_(),this._emitNothingPending(),this._flushSubscribe()},p.prototype._handleOp=function(b,S){if(b)return b.code===h.ERR_NO_OP&&S.seq===this.inflightOp.seq?this.fetch(this._clearInflightOp.bind(this)):this.inflightOp?this._rollback(b):this.emit("error",b);if(this.inflightOp&&S.src===this.inflightOp.src&&S.seq===this.inflightOp.seq){this._opAcknowledged(S);return}if(this.version==null||S.v>this.version){this.fetch();return}if(!(S.v<this.version)){if(this.inflightOp){var k=O(this.inflightOp,S);if(k)return this._hardRollback(k)}for(var x=0;x<this.pendingOps.length;x++){var k=O(this.pendingOps[x],S);if(k)return this._hardRollback(k)}this.version++;try{this._otApply(S,!1)}catch(_){return this._hardRollback(_)}}},p.prototype._onConnectionStateChanged=function(){this.connection.canSend?(this.flush(),this._resubscribe()):(this.inflightOp&&(this.pendingOps.unshift(this.inflightOp),this.inflightOp=null),this.subscribed=!1,this.inflightSubscribe&&(this.inflightSubscribe.wantSubscribe?(this.pendingSubscribe.unshift(this.inflightSubscribe),this.inflightSubscribe=null):this._handleSubscribe()),this.inflightFetch.length&&(this.pendingFetch=this.pendingFetch.concat(this.inflightFetch),this.inflightFetch.length=0))},p.prototype._resubscribe=function(){if(!this.pendingSubscribe.length&&this.wantSubscribe)return this.subscribe();var b=this.pendingSubscribe.some(function(S){return S.wantSubscribe});!b&&this.pendingFetch.length&&this.fetch(),this._flushSubscribe()},p.prototype.fetch=function(b){this._fetch({},b)},p.prototype._fetch=function(b,S){this.pendingFetch.push(S);var k=this.connection.canSend&&(b.force||!this.inflightFetch.length);k&&(this.inflightFetch.push(this.pendingFetch.shift()),this.connection.sendFetch(this))},p.prototype.subscribe=function(b){var S=!0;this._queueSubscribe(S,b)},p.prototype.unsubscribe=function(b){var S=!1;this._queueSubscribe(S,b)},p.prototype._queueSubscribe=function(b,S){var k=this.pendingSubscribe[this.pendingSubscribe.length-1]||this.inflightSubscribe,x=k&&k.wantSubscribe===b;if(x){k.callback=g([k.callback,S]);return}this.pendingSubscribe.push({wantSubscribe:!!b,callback:S}),this._flushSubscribe()},p.prototype._flushSubscribe=function(){if(!(this.inflightSubscribe||!this.pendingSubscribe.length)){if(this.connection.canSend){this.inflightSubscribe=this.pendingSubscribe.shift(),this.wantSubscribe=this.inflightSubscribe.wantSubscribe,this.wantSubscribe?this.connection.sendSubscribe(this):(this.subscribed=!1,this.connection.sendUnsubscribe(this));return}if(!this.pendingSubscribe[0].wantSubscribe){this.inflightSubscribe=this.pendingSubscribe.shift();var b=this;u.nextTick(function(){b._handleSubscribe()})}}};function g(b){return b=b.filter(u.truthy),b.length?function(S){u.callEach(b,S)}:null}p.prototype.flush=function(){!this.connection.canSend||this.inflightOp||!this.paused&&this.pendingOps.length&&this._sendOp()};function y(b){delete b.op,delete b.create,delete b.del}function O(b,S){if(b.del)return y(S);if(S.del)return new a(h.ERR_DOC_WAS_DELETED,"Document was deleted");if(S.create)return new a(h.ERR_DOC_ALREADY_CREATED,"Document already created");if("op"in S){if(b.create)return new a(h.ERR_DOC_ALREADY_CREATED,"Document already created");if(b.type.transformX){var k=b.type.transformX(b.op,S.op);b.op=k[0],S.op=k[1]}else{var x=b.type.transform(b.op,S.op,"left"),_=b.type.transform(S.op,b.op,"right");b.op=x,S.op=_}}}p.prototype._otApply=function(b,S){if("op"in b){if(!this.type)throw new a(h.ERR_DOC_DOES_NOT_EXIST,"Cannot apply op to uncreated document. "+this.collection+"."+this.id);if(this.emit("before op batch",b.op,S),!S&&this.type===l.defaultType&&b.op.length>1){this.applyStack||(this.applyStack=[]);for(var k=this.applyStack.length,x=0;x<b.op.length;x++){var _=b.op[x],I={op:[_]};this.emit("before op",I.op,S,b.src);for(var M=k;M<this.applyStack.length;M++){var P=O(this.applyStack[M],I);if(P)return this._hardRollback(P)}this._setData(this.type.apply(this.data,I.op)),this.emit("op",I.op,S,b.src)}this.emit("op batch",b.op,S),this._popApplyStack(k);return}this.emit("before op",b.op,S,b.src),this._setData(this.type.apply(this.data,b.op)),this.emit("op",b.op,S,b.src),this.emit("op batch",b.op,S);return}if(b.create){this._setType(b.create.type),this.type.deserialize?this.type.createDeserialized?this._setData(this.type.createDeserialized(b.create.data)):this._setData(this.type.deserialize(this.type.create(b.create.data))):this._setData(this.type.create(b.create.data)),this.emit("create",S);return}if(b.del){var E=this.data;this._setType(null),this.emit("del",E,S);return}},p.prototype._sendOp=function(){if(this.connection.canSend){var b=this.connection.id;this.inflightOp||(this.inflightOp=this.pendingOps.shift());var S=this.inflightOp;if(!S){var k=new a(h.ERR_INFLIGHT_OP_MISSING,"No op to send on call to _sendOp");return this.emit("error",k)}if(S.sentAt=Date.now(),S.retries=S.retries==null?0:S.retries+1,S.seq==null){if(this.connection.seq>=u.MAX_SAFE_INTEGER)return this.emit("error",new a(h.ERR_CONNECTION_SEQ_INTEGER_OVERFLOW,"Connection seq has exceeded the max safe integer, maybe from being open for too long"));S.seq=this.connection.seq++}this.connection.sendOp(this,S),S.src==null&&(S.src=b)}},p.prototype._submit=function(b,S,k){if(S||(S=!0),"op"in b){if(!this.type){if(this._isInHardRollback)var x=new a(h.ERR_DOC_IN_HARD_ROLLBACK,"Cannot submit op. Document is performing hard rollback. "+this.collection+"."+this.id);else var x=new a(h.ERR_DOC_DOES_NOT_EXIST,"Cannot submit op. Document has not been created. "+this.collection+"."+this.id);return k?k(x):this.emit("error",x)}this.type.normalize&&(b.op=this.type.normalize(b.op))}try{this._pushOp(b,S,k),this._otApply(b,S)}catch(I){return this._hardRollback(I)}var _=this;u.nextTick(function(){_.flush()})},p.prototype._pushOp=function(b,S,k){if(b.source=S,this.applyStack)this.applyStack.push(b);else{var x=this._tryCompose(b);if(x){x.callbacks.push(k);return}}b.type=this.type,b.callbacks=[k],this.pendingOps.push(b)},p.prototype._popApplyStack=function(b){if(b>0){this.applyStack.length=b;return}var S=this.applyStack[0];if(this.applyStack=null,!!S){var k=this.pendingOps.indexOf(S);if(k!==-1)for(var x=this.pendingOps.splice(k),k=0;k<x.length;k++){var S=x[k],_=this._tryCompose(S);_?_.callbacks=_.callbacks.concat(S.callbacks):this.pendingOps.push(S)}}},p.prototype._tryCompose=function(b){if(!this.preventCompose){var S=this.pendingOps[this.pendingOps.length-1];if(!(!S||S.sentAt)&&!(this.submitSource&&!f(b.source,S.source))){if(S.create&&"op"in b)return S.create.data=this.type.apply(S.create.data,b.op),S;if("op"in S&&"op"in b&&this.type.compose)return S.op=this.type.compose(S.op,b.op),S}}},p.prototype.submitOp=function(b,S,k){typeof S=="function"&&(k=S,S=null);var x={op:b},_=S&&S.source;this._submit(x,_,k)},p.prototype.create=function(b,S,k,x){if(typeof S=="function"?(x=S,k=null,S=null):typeof k=="function"&&(x=k,k=null),S||(S=l.defaultType.uri),this.type){var _=new a(h.ERR_DOC_ALREADY_CREATED,"Document already exists");return x?x(_):this.emit("error",_)}var I={create:{type:S,data:b}},M=k&&k.source;this._submit(I,M,x)},p.prototype.del=function(b,S){if(typeof b=="function"&&(S=b,b=null),!this.type){var k=new a(h.ERR_DOC_DOES_NOT_EXIST,"Document does not exist");return S?S(k):this.emit("error",k)}var x={del:!0},_=b&&b.source;this._submit(x,_,S)},p.prototype.pause=function(){this.paused=!0},p.prototype.resume=function(){this.paused=!1,this.flush()},p.prototype.toSnapshot=function(){return{v:this.version,data:c(this.data),type:this.type.uri}},p.prototype._opAcknowledged=function(b){if(this.inflightOp.create)this.version=b.v;else if(b.v!==this.version)return s.warn("Invalid version from server. Expected: "+this.version+" Received: "+b.v,b),this.fetch();if(b[d.fixup])for(var S=0;S<b[d.fixup].length;S++){for(var k=b[d.fixup][S],x=0;x<this.pendingOps.length;x++){var _=O(this.pendingOps[S],k);if(_)return this._hardRollback(_)}try{this._otApply(k,!1)}catch(I){return this._hardRollback(I)}}this.version++,this._clearInflightOp()},p.prototype._rollback=function(b){var S=this.inflightOp;if(!("op"in S&&S.type.invert))return this._hardRollback(b);try{S.op=S.type.invert(S.op)}catch{return this._hardRollback(b)}for(var k=0;k<this.pendingOps.length;k++){var x=O(this.pendingOps[k],S);if(x)return this._hardRollback(x)}try{this._otApply(S,!1)}catch(_){return this._hardRollback(_)}if(b.code===h.ERR_OP_SUBMIT_REJECTED)return this._clearInflightOp(null);this._clearInflightOp(b)},p.prototype._hardRollback=function(b){this._isInHardRollback=!0;var S=this.pendingOps,k=this.inflightOp;this._setType(null),this.version=null,this.inflightOp=null,this.pendingOps=[];var x=this;this._fetch({force:!0},function(_){if(x._isInHardRollback=!1,_&&(s.error("Hard rollback doc fetch failed.",_,k),x.emit("error",new a(h.ERR_HARD_ROLLBACK_FETCH_FAILED,"Hard rollback fetch failed: "+_.message))),b.code===h.ERR_OP_SUBMIT_REJECTED){if(k&&(u.callEach(k.callbacks),k=null),!S.length)return;b=new a(h.ERR_PENDING_OP_REMOVED_BY_OP_SUBMIT_REJECTED,"Discarding pending op because of hard rollback during ERR_OP_SUBMIT_REJECTED")}k&&S.unshift(k);for(var I=!!S.length,M=0;M<S.length;M++)I=u.callEach(S[M].callbacks,b)&&I;b&&!I&&x.emit("error",b)})},p.prototype._clearInflightOp=function(b){var S=this.inflightOp;this.inflightOp=null;var k=u.callEach(S.callbacks,b);if(this.flush(),this._emitNothingPending(),b&&!k)return this.emit("error",b)}},{"../emitter":41,"../error":42,"../logger":43,"../message-actions":45,"../types":50,"../util":51,"fast-deep-equal":6}],29:[function(n,r,i){i.Connection=n("./connection"),i.Doc=n("./doc"),i.Error=n("../error"),i.Query=n("./query"),i.types=n("../types"),i.logger=n("../logger")},{"../error":42,"../logger":43,"../types":50,"./connection":27,"./doc":28,"./query":37}],30:[function(n,r,i){var o=n("../../util"),s=n("events").EventEmitter,a=["create","del","destroy","load","op"];r.exports=l;function l(){this._docs=Object.create(null),this._forwarders=Object.create(null),this._emitters=Object.create(null)}l.prototype.addEventListener=function(u,c,f){this._registerDoc(u);var d=o.dig(this._emitters,u.collection,u.id);d.on(c,f)},l.prototype.removeEventListener=function(u,c,f){var d=o.dig(this._emitters,u.collection,u.id);d&&(d.off(c,f),d._eventsCount===1&&this._unregisterDoc(u))},l.prototype._registerDoc=function(u){var c=!0;if(o.digOrCreate(this._docs,u.collection,u.id,function(){return c=!1,u}),!c){var f=o.digOrCreate(this._emitters,u.collection,u.id,function(){var h=new s;return h.setMaxListeners(1e3),h}),d=this;a.forEach(function(h){var p=o.digOrCreate(d._forwarders,u.collection,u.id,h,function(){return f.emit.bind(f,h)});u.on(h,p)}),this.addEventListener(u,"destroy",this._unregisterDoc.bind(this,u))}},l.prototype._unregisterDoc=function(u){var c=o.dig(this._forwarders,u.collection,u.id);for(var f in c)u.off(f,c[f]);var d=o.dig(this._emitters,u.collection,u.id);d.removeAllListeners(),o.digAndRemove(this._forwarders,u.collection,u.id),o.digAndRemove(this._emitters,u.collection,u.id),o.digAndRemove(this._docs,u.collection,u.id)}},{"../../util":51,events:5}],31:[function(n,r,i){var o=n("./presence"),s=n("./local-doc-presence"),a=n("./remote-doc-presence");function l(u,c,f){var d=l.channel(c,f);o.call(this,u,d),this.collection=c,this.id=f}r.exports=l,l.prototype=Object.create(o.prototype),l.channel=function(u,c){return u+"."+c},l.prototype._createLocalPresence=function(u){return new s(this,u)},l.prototype._createRemotePresence=function(u){return new a(this,u)}},{"./local-doc-presence":32,"./presence":34,"./remote-doc-presence":35}],32:[function(n,r,i){var o=n("./local-presence"),s=n("../../error"),a=n("../../util"),l=s.CODES;r.exports=u;function u(c,f){o.call(this,c,f),this.collection=this.presence.collection,this.id=this.presence.id,this._doc=this.connection.get(this.collection,this.id),this._emitter=this.connection._docPresenceEmitter,this._isSending=!1,this._docDataVersionByPresenceVersion=Object.create(null),this._opHandler=this._transformAgainstOp.bind(this),this._createOrDelHandler=this._handleCreateOrDel.bind(this),this._loadHandler=this._handleLoad.bind(this),this._destroyHandler=this.destroy.bind(this),this._registerWithDoc()}u.prototype=Object.create(o.prototype),u.prototype.submit=function(c,f){if(!this._doc.type){if(c===null)return this._callbackOrEmit(null,f);var d=null;return this._doc._isInHardRollback?d={code:l.ERR_DOC_IN_HARD_ROLLBACK,message:"Cannot submit presence. Document is processing hard rollback"}:d={code:l.ERR_DOC_DOES_NOT_EXIST,message:"Cannot submit presence. Document has not been created"},this._callbackOrEmit(d,f)}this._docDataVersionByPresenceVersion[this.presenceVersion]=this._doc._dataStateVersion,o.prototype.submit.call(this,c,f)},u.prototype.destroy=function(c){this._emitter.removeEventListener(this._doc,"op",this._opHandler),this._emitter.removeEventListener(this._doc,"create",this._createOrDelHandler),this._emitter.removeEventListener(this._doc,"del",this._createOrDelHandler),this._emitter.removeEventListener(this._doc,"load",this._loadHandler),this._emitter.removeEventListener(this._doc,"destroy",this._destroyHandler),o.prototype.destroy.call(this,c)},u.prototype._sendPending=function(){if(!this._isSending){this._isSending=!0;var c=this;this._doc.whenNothingPending(function(){c._isSending=!1,c.connection.canSend&&(c._pendingMessages.forEach(function(f){f.t=c._doc.type.uri,f.v=c._doc.version,c.connection.send(f)}),c._pendingMessages=[],c._docDataVersionByPresenceVersion=Object.create(null))})}},u.prototype._registerWithDoc=function(){this._emitter.addEventListener(this._doc,"op",this._opHandler),this._emitter.addEventListener(this._doc,"create",this._createOrDelHandler),this._emitter.addEventListener(this._doc,"del",this._createOrDelHandler),this._emitter.addEventListener(this._doc,"load",this._loadHandler),this._emitter.addEventListener(this._doc,"destroy",this._destroyHandler)},u.prototype._transformAgainstOp=function(c,f){var d=this,h=this._doc._dataStateVersion;this._pendingMessages.forEach(function(p){var g=d._docDataVersionByPresenceVersion[p.pv];if(!(g>=h))try{p.p=d._transformPresence(p.p,c,f),d._docDataVersionByPresenceVersion[p.pv]=h}catch(O){var y=d._getCallback(p.pv);d._callbackOrEmit(O,y)}});try{this.value=this._transformPresence(this.value,c,f)}catch(p){this.emit("error",p)}},u.prototype._handleCreateOrDel=function(){this._pendingMessages.forEach(function(c){c.p=null}),this.value=null},u.prototype._handleLoad=function(){this.value=null,this._pendingMessages=[],this._docDataVersionByPresenceVersion=Object.create(null)},u.prototype._message=function(){var c=o.prototype._message.call(this);return c.c=this.collection,c.d=this.id,c.v=null,c.t=null,c},u.prototype._transformPresence=function(c,f,d){var h=this._doc.type;if(!a.supportsPresence(h))throw new s(l.ERR_TYPE_DOES_NOT_SUPPORT_PRESENCE,"Type does not support presence: "+h.name);return h.transformPresence(c,f,d)}},{"../../error":42,"../../util":51,"./local-presence":33}],33:[function(n,r,i){var o=n("../../emitter"),s=n("../../message-actions").ACTIONS,a=n("../../util");r.exports=l;function l(u,c){if(o.EventEmitter.call(this),!c||typeof c!="string")throw new Error("LocalPresence presenceId must be a string");this.presence=u,this.presenceId=c,this.connection=u.connection,this.presenceVersion=0,this.value=null,this._pendingMessages=[],this._callbacksByPresenceVersion=Object.create(null)}o.mixin(l),l.prototype.submit=function(u,c){this.value=u,this.send(c)},l.prototype.send=function(u){var c=this._message();this._pendingMessages.push(c),this._callbacksByPresenceVersion[c.pv]=u,this._sendPending()},l.prototype.destroy=function(u){var c=this;this.submit(null,function(f){if(f)return c._callbackOrEmit(f,u);delete c.presence.localPresences[c.presenceId],u&&u()})},l.prototype._sendPending=function(){if(this.connection.canSend){var u=this;this._pendingMessages.forEach(function(c){u.connection.send(c)}),this._pendingMessages=[]}},l.prototype._ack=function(u,c){var f=this._getCallback(c);this._callbackOrEmit(u,f)},l.prototype._message=function(){return{a:s.presence,ch:this.presence.channel,id:this.presenceId,p:this.value,pv:this.presenceVersion++}},l.prototype._getCallback=function(u){var c=this._callbacksByPresenceVersion[u];return delete this._callbacksByPresenceVersion[u],c},l.prototype._callbackOrEmit=function(u,c){if(c)return a.nextTick(c,u);u&&this.emit("error",u)}},{"../../emitter":41,"../../message-actions":45,"../../util":51}],34:[function(n,r,i){var o=n("../../emitter"),s=n("./local-presence"),a=n("./remote-presence"),l=n("../../util"),u=n("async"),c=n("hat"),f=n("../../message-actions").ACTIONS;r.exports=d;function d(h,p){if(o.EventEmitter.call(this),!p||typeof p!="string")throw new Error("Presence channel must be provided");this.connection=h,this.channel=p,this.wantSubscribe=!1,this.subscribed=!1,this.remotePresences=Object.create(null),this.localPresences=Object.create(null),this._remotePresenceInstances=Object.create(null),this._subscriptionCallbacksBySeq=Object.create(null),this._wantsDestroy=!1}o.mixin(d),d.prototype.subscribe=function(h){this._sendSubscriptionAction(!0,h)},d.prototype.unsubscribe=function(h){this._sendSubscriptionAction(!1,h)},d.prototype.create=function(h){if(this._wantsDestroy)throw new Error("Presence is being destroyed");h=h||c();var p=this._createLocalPresence(h);return this.localPresences[h]=p,p},d.prototype.destroy=function(h){this._wantsDestroy=!0;var p=this,g=Object.keys(p.localPresences);this.unsubscribe(function(y){if(y)return p._callbackOrEmit(y,h);var O=Object.keys(p._remotePresenceInstances);u.parallel([function(b){u.each(g,function(S,k){var x=p.localPresences[S];if(!x)return k();x.destroy(k)},b)},function(b){if(!p._wantsDestroy)return b();u.each(O,function(S,k){p._remotePresenceInstances[S].destroy(k)},b)}],function(b){p._wantsDestroy&&delete p.connection._presences[p.channel],p._callbackOrEmit(b,h)})})},d.prototype._sendSubscriptionAction=function(h,p){if(h=!!h,h===this.wantSubscribe){if(!p)return;if(h===this.subscribed)return l.nextTick(p);if(Object.keys(this._subscriptionCallbacksBySeq).length)return this._combineSubscribeCallbackWithLastAdded(p)}this.wantSubscribe=h;var g=this.wantSubscribe?f.presenceSubscribe:f.presenceUnsubscribe,y=this.connection._presenceSeq++;this._subscriptionCallbacksBySeq[y]=p,this.connection.canSend&&this.connection._sendPresenceAction(g,y,this)},d.prototype._requestRemotePresence=function(){this.connection._requestRemotePresence(this.channel)},d.prototype._handleSubscribe=function(h,p){this.wantSubscribe&&(this.subscribed=!0);var g=this._subscriptionCallback(p);this._callbackOrEmit(h,g)},d.prototype._handleUnsubscribe=function(h,p){this.subscribed=!1;var g=this._subscriptionCallback(p);this._callbackOrEmit(h,g)},d.prototype._receiveUpdate=function(h,p){var g=l.dig(this.localPresences,p.id);if(g)return g._ack(h,p.pv);if(h)return this.emit("error",h);var y=this,O=l.digOrCreate(this._remotePresenceInstances,p.id,function(){return y._createRemotePresence(p.id)});O.receiveUpdate(p)},d.prototype._updateRemotePresence=function(h){this.remotePresences[h.presenceId]=h.value,h.value===null&&this._removeRemotePresence(h.presenceId),this.emit("receive",h.presenceId,h.value)},d.prototype._broadcastAllLocalPresence=function(h){if(h)return this.emit("error",h);for(var p in this.localPresences){var g=this.localPresences[p];g.value!==null&&g.send()}},d.prototype._removeRemotePresence=function(h){this._remotePresenceInstances[h].destroy(),delete this._remotePresenceInstances[h],delete this.remotePresences[h]},d.prototype._onConnectionStateChanged=function(){if(!this.connection.canSend){this.subscribed=!1;return}this._resubscribe();for(var h in this.localPresences)this.localPresences[h]._sendPending()},d.prototype._resubscribe=function(){var h=[];for(var p in this._subscriptionCallbacksBySeq){var g=this._subscriptionCallback(p);h.push(g)}if(!this.wantSubscribe)return this._callEachOrEmit(h);var y=this;this.subscribe(function(O){y._callEachOrEmit(h,O)})},d.prototype._subscriptionCallback=function(h){var p=this._subscriptionCallbacksBySeq[h];return delete this._subscriptionCallbacksBySeq[h],p},d.prototype._callbackOrEmit=function(h,p){if(p)return l.nextTick(p,h);h&&this.emit("error",h)},d.prototype._createLocalPresence=function(h){return new s(this,h)},d.prototype._createRemotePresence=function(h){return new a(this,h)},d.prototype._callEachOrEmit=function(h,p){var g=l.callEach(h,p);!g&&p&&this.emit("error",p)},d.prototype._combineSubscribeCallbackWithLastAdded=function(h){var p=Object.keys(this._subscriptionCallbacksBySeq),g=p[p.length-1],y=this._subscriptionCallbacksBySeq[g];if(!y)return this._subscriptionCallbacksBySeq[g]=h;this._subscriptionCallbacksBySeq[g]=function(O){y(O),h(O)}}},{"../../emitter":41,"../../message-actions":45,"../../util":51,"./local-presence":33,"./remote-presence":36,async:1,hat:16}],35:[function(n,r,i){var o=n("./remote-presence"),s=n("../../ot");r.exports=a;function a(l,u){o.call(this,l,u),this.collection=this.presence.collection,this.id=this.presence.id,this.src=null,this.presenceVersion=null,this._doc=this.connection.get(this.collection,this.id),this._emitter=this.connection._docPresenceEmitter,this._pending=null,this._opCache=null,this._pendingSetPending=!1,this._opHandler=this._handleOp.bind(this),this._createDelHandler=this._handleCreateDel.bind(this),this._loadHandler=this._handleLoad.bind(this),this._registerWithDoc()}a.prototype=Object.create(o.prototype),a.prototype.receiveUpdate=function(l){this._pending&&l.pv<this._pending.pv||(this.src=l.src,this._pending=l,this._setPendingPresence())},a.prototype.destroy=function(l){this._emitter.removeEventListener(this._doc,"op",this._opHandler),this._emitter.removeEventListener(this._doc,"create",this._createDelHandler),this._emitter.removeEventListener(this._doc,"del",this._createDelHandler),this._emitter.removeEventListener(this._doc,"load",this._loadHandler),o.prototype.destroy.call(this,l)},a.prototype._registerWithDoc=function(){this._emitter.addEventListener(this._doc,"op",this._opHandler),this._emitter.addEventListener(this._doc,"create",this._createDelHandler),this._emitter.addEventListener(this._doc,"del",this._createDelHandler),this._emitter.addEventListener(this._doc,"load",this._loadHandler)},a.prototype._setPendingPresence=function(){if(!this._pendingSetPending){this._pendingSetPending=!0;var l=this;this._doc.whenNothingPending(function(){if(l._pendingSetPending=!1,!!l._pending){if(l._pending.pv<l.presenceVersion)return l._pending=null;if(l._pending.v>l._doc.version)return l._doc.fetch();l._catchUpStalePresence()&&(l.value=l._pending.p,l.presenceVersion=l._pending.pv,l._pending=null,l.presence._updateRemotePresence(l))}})}},a.prototype._handleOp=function(l,u,c){var f=c===this.src;this._transformAgainstOp(l,f),this._cacheOp(l,f),this._setPendingPresence()},o.prototype._handleCreateDel=function(){this._cacheOp(null),this._setPendingPresence()},o.prototype._handleLoad=function(){this.value=null,this._pending=null,this._opCache=null,this.presence._updateRemotePresence(this)},a.prototype._transformAgainstOp=function(l,u){if(this.value){try{this.value=this._doc.type.transformPresence(this.value,l,u)}catch(c){return this.presence.emit("error",c)}this.presence._updateRemotePresence(this)}},a.prototype._catchUpStalePresence=function(){if(this._pending.v>=this._doc.version)return!0;if(!this._opCache)return this._startCachingOps(),this._doc.fetch(),this.presence._requestRemotePresence(),!1;for(;this._opCache[this._pending.v];){var l=this._opCache[this._pending.v],u=l.op,c=l.isOwnOp;u===null?(this._pending.p=null,this._pending.v++):s.transformPresence(this._pending,u,c)}var f=this._pending.v>=this._doc.version;return f&&this._stopCachingOps(),f},a.prototype._startCachingOps=function(){this._opCache=[]},a.prototype._stopCachingOps=function(){this._opCache=null},a.prototype._cacheOp=function(l,u){this._opCache&&(l=l?{op:l}:null,this._opCache[this._doc.version-1]={op:l,isOwnOp:u})}},{"../../ot":47,"./remote-presence":36}],36:[function(n,r,i){var o=n("../../util");r.exports=s;function s(a,l){this.presence=a,this.presenceId=l,this.connection=this.presence.connection,this.value=null,this.presenceVersion=0}s.prototype.receiveUpdate=function(a){a.pv<this.presenceVersion||(this.value=a.p,this.presenceVersion=a.pv,this.presence._updateRemotePresence(this))},s.prototype.destroy=function(a){delete this.presence._remotePresenceInstances[this.presenceId],delete this.presence.remotePresences[this.presenceId],a&&o.nextTick(a)}},{"../../util":51}],37:[function(n,r,i){var o=n("../emitter"),s=n("../message-actions").ACTIONS,a=n("../util");r.exports=l;function l(u,c,f,d,h,p,g){o.EventEmitter.call(this),this.action=u,this.connection=c,this.id=f,this.collection=d,this.query=h,this.results=null,p&&p.results&&(this.results=p.results,delete p.results),this.extra=void 0,this.options=p,this.callback=g,this.ready=!1,this.sent=!1}o.mixin(l),l.prototype.hasPending=function(){return!this.ready},l.prototype.send=function(){if(this.connection.canSend){var u={a:this.action,id:this.id,c:this.collection,q:this.query};if(this.options&&(u.o=this.options),this.results){for(var c=[],f=0;f<this.results.length;f++){var d=this.results[f];c.push([d.id,d.version])}u.r=c}this.connection.send(u),this.sent=!0}},l.prototype.destroy=function(u){this.connection.canSend&&this.action===s.querySubscribe&&this.connection.send({a:s.queryUnsubscribe,id:this.id}),this.connection._destroyQuery(this),u&&a.nextTick(u)},l.prototype._onConnectionStateChanged=function(){this.connection.canSend&&!this.sent?this.send():this.sent=!1},l.prototype._handleFetch=function(u,c,f){this.connection._destroyQuery(this),this._handleResponse(u,c,f)},l.prototype._handleSubscribe=function(u,c,f){this._handleResponse(u,c,f)},l.prototype._handleResponse=function(u,c,f){var d=this.callback;if(this.callback=null,u)return this._finishResponse(u,d);if(!c)return this._finishResponse(null,d);var h=this,p=1,g=function(S){if(S)return h._finishResponse(S,d);--p||h._finishResponse(null,d)};if(Array.isArray(c))p+=c.length,this.results=this._ingestSnapshots(c,g),this.extra=f;else for(var y in c){p++;var O=c[y],b=this.connection.get(O.c||this.collection,y);b.ingestSnapshot(O,g)}g()},l.prototype._ingestSnapshots=function(u,c){for(var f=[],d=0;d<u.length;d++){var h=u[d],p=this.connection.get(h.c||this.collection,h.d);p.ingestSnapshot(h,c),f.push(p)}return f},l.prototype._finishResponse=function(u,c){if(this.emit("ready"),this.ready=!0,u)return this.connection._destroyQuery(this),c?c(u):this.emit("error",u);c&&c(null,this.results,this.extra)},l.prototype._handleError=function(u){this.emit("error",u)},l.prototype._handleDiff=function(u){for(var c=0;c<u.length;c++){var f=u[c];f.type==="insert"&&(f.values=this._ingestSnapshots(f.values))}for(var c=0;c<u.length;c++){var f=u[c];switch(f.type){case"insert":var d=f.values;Array.prototype.splice.apply(this.results,[f.index,0].concat(d)),this.emit("insert",d,f.index);break;case"remove":var p=f.howMany||1,h=this.results.splice(f.index,p);this.emit("remove",h,f.index);break;case"move":var p=f.howMany||1,g=this.results.splice(f.from,p);Array.prototype.splice.apply(this.results,[f.to,0].concat(g)),this.emit("move",g,f.from,f.to);break}}this.emit("changed",this.results)},l.prototype._handleExtra=function(u){this.extra=u,this.emit("extra",u)}},{"../emitter":41,"../message-actions":45,"../util":51}],38:[function(n,r,i){var o=n("../../snapshot"),s=n("../../emitter");r.exports=a;function a(l,u,c,f,d){if(s.EventEmitter.call(this),typeof d!="function")throw new Error("Callback is required for SnapshotRequest");this.requestId=u,this.connection=l,this.id=f,this.collection=c,this.callback=d,this.sent=!1}s.mixin(a),a.prototype.send=function(){this.connection.canSend&&(this.connection.send(this._message()),this.sent=!0)},a.prototype._onConnectionStateChanged=function(){this.connection.canSend?this.sent||this.send():this.sent=!1},a.prototype._handleResponse=function(l,u){if(this.emit("ready"),l)return this.callback(l);var c=u.meta?u.meta:null,f=new o(this.id,u.v,u.type,u.data,c);this.callback(null,f)}},{"../../emitter":41,"../../snapshot":49}],39:[function(n,r,i){var o=n("./snapshot-request"),s=n("../../util"),a=n("../../message-actions").ACTIONS;r.exports=l;function l(u,c,f,d,h,p){if(o.call(this,u,c,f,d,p),!s.isValidTimestamp(h))throw new Error("Snapshot timestamp must be a positive integer or null");this.timestamp=h}l.prototype=Object.create(o.prototype),l.prototype._message=function(){return{a:a.snapshotFetchByTimestamp,id:this.requestId,c:this.collection,d:this.id,ts:this.timestamp}}},{"../../message-actions":45,"../../util":51,"./snapshot-request":38}],40:[function(n,r,i){var o=n("./snapshot-request"),s=n("../../util"),a=n("../../message-actions").ACTIONS;r.exports=l;function l(u,c,f,d,h,p){if(o.call(this,u,c,f,d,p),!s.isValidVersion(h))throw new Error("Snapshot version must be a positive integer or null");this.version=h}l.prototype=Object.create(o.prototype),l.prototype._message=function(){return{a:a.snapshotFetch,id:this.requestId,c:this.collection,d:this.id,v:this.version}}},{"../../message-actions":45,"../../util":51,"./snapshot-request":38}],41:[function(n,r,i){var o=n("events").EventEmitter;i.EventEmitter=o,i.mixin=s;function s(a){for(var l in o.prototype)a.prototype[l]=o.prototype[l]}},{events:5}],42:[function(n,r,i){function o(s,a){this.code=s,this.message=a||"",Error.captureStackTrace?Error.captureStackTrace(this,o):this.stack=new Error().stack}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.name="ShareDBError",o.CODES={ERR_APPLY_OP_VERSION_DOES_NOT_MATCH_SNAPSHOT:"ERR_APPLY_OP_VERSION_DOES_NOT_MATCH_SNAPSHOT",ERR_APPLY_SNAPSHOT_NOT_PROVIDED:"ERR_APPLY_SNAPSHOT_NOT_PROVIDED",ERR_FIXUP_IS_ONLY_VALID_ON_APPLY:"ERR_FIXUP_IS_ONLY_VALID_ON_APPLY",ERR_CANNOT_FIXUP_DELETION:"ERR_CANNOT_FIXUP_DELETION",ERR_CLIENT_ID_BADLY_FORMED:"ERR_CLIENT_ID_BADLY_FORMED",ERR_CANNOT_PING_OFFLINE:"ERR_CANNOT_PING_OFFLINE",ERR_CONNECTION_SEQ_INTEGER_OVERFLOW:"ERR_CONNECTION_SEQ_INTEGER_OVERFLOW",ERR_CONNECTION_STATE_TRANSITION_INVALID:"ERR_CONNECTION_STATE_TRANSITION_INVALID",ERR_DATABASE_ADAPTER_NOT_FOUND:"ERR_DATABASE_ADAPTER_NOT_FOUND",ERR_DATABASE_DOES_NOT_SUPPORT_SUBSCRIBE:"ERR_DATABASE_DOES_NOT_SUPPORT_SUBSCRIBE",ERR_DATABASE_METHOD_NOT_IMPLEMENTED:"ERR_DATABASE_METHOD_NOT_IMPLEMENTED",ERR_DEFAULT_TYPE_MISMATCH:"ERR_DEFAULT_TYPE_MISMATCH",ERR_DOC_MISSING_VERSION:"ERR_DOC_MISSING_VERSION",ERR_DOC_ALREADY_CREATED:"ERR_DOC_ALREADY_CREATED",ERR_DOC_DOES_NOT_EXIST:"ERR_DOC_DOES_NOT_EXIST",ERR_DOC_TYPE_NOT_RECOGNIZED:"ERR_DOC_TYPE_NOT_RECOGNIZED",ERR_DOC_WAS_DELETED:"ERR_DOC_WAS_DELETED",ERR_DOC_IN_HARD_ROLLBACK:"ERR_DOC_IN_HARD_ROLLBACK",ERR_INFLIGHT_OP_MISSING:"ERR_INFLIGHT_OP_MISSING",ERR_INGESTED_SNAPSHOT_HAS_NO_VERSION:"ERR_INGESTED_SNAPSHOT_HAS_NO_VERSION",ERR_MAX_SUBMIT_RETRIES_EXCEEDED:"ERR_MAX_SUBMIT_RETRIES_EXCEEDED",ERR_MESSAGE_BADLY_FORMED:"ERR_MESSAGE_BADLY_FORMED",ERR_MILESTONE_ARGUMENT_INVALID:"ERR_MILESTONE_ARGUMENT_INVALID",ERR_NO_OP:"ERR_NO_OP",ERR_OP_ALREADY_SUBMITTED:"ERR_OP_ALREADY_SUBMITTED",ERR_OP_NOT_ALLOWED_IN_PROJECTION:"ERR_OP_NOT_ALLOWED_IN_PROJECTION",ERR_OP_SUBMIT_REJECTED:"ERR_OP_SUBMIT_REJECTED",ERR_PENDING_OP_REMOVED_BY_OP_SUBMIT_REJECTED:"ERR_PENDING_OP_REMOVED_BY_OP_SUBMIT_REJECTED",ERR_HARD_ROLLBACK_FETCH_FAILED:"ERR_HARD_ROLLBACK_FETCH_FAILED",ERR_OP_VERSION_MISMATCH_AFTER_TRANSFORM:"ERR_OP_VERSION_MISMATCH_AFTER_TRANSFORM",ERR_OP_VERSION_MISMATCH_DURING_TRANSFORM:"ERR_OP_VERSION_MISMATCH_DURING_TRANSFORM",ERR_OP_VERSION_NEWER_THAN_CURRENT_SNAPSHOT:"ERR_OP_VERSION_NEWER_THAN_CURRENT_SNAPSHOT",ERR_OT_LEGACY_JSON0_OP_CANNOT_BE_NORMALIZED:"ERR_OT_LEGACY_JSON0_OP_CANNOT_BE_NORMALIZED",ERR_OT_OP_BADLY_FORMED:"ERR_OT_OP_BADLY_FORMED",ERR_OT_OP_NOT_APPLIED:"ERR_OT_OP_NOT_APPLIED",ERR_OT_OP_NOT_PROVIDED:"ERR_OT_OP_NOT_PROVIDED",ERR_PRESENCE_TRANSFORM_FAILED:"ERR_PRESENCE_TRANSFORM_FAILED",ERR_PROTOCOL_VERSION_NOT_SUPPORTED:"ERR_PROTOCOL_VERSION_NOT_SUPPORTED",ERR_QUERY_CHANNEL_MISSING:"ERR_QUERY_CHANNEL_MISSING",ERR_QUERY_EMITTER_LISTENER_NOT_ASSIGNED:"ERR_QUERY_EMITTER_LISTENER_NOT_ASSIGNED",ERR_SNAPSHOT_READ_SILENT_REJECTION:"ERR_SNAPSHOT_READ_SILENT_REJECTION",ERR_SNAPSHOT_READS_REJECTED:"ERR_SNAPSHOT_READS_REJECTED",ERR_SUBMIT_TRANSFORM_OPS_NOT_FOUND:"ERR_SUBMIT_TRANSFORM_OPS_NOT_FOUND",ERR_TYPE_CANNOT_BE_PROJECTED:"ERR_TYPE_CANNOT_BE_PROJECTED",ERR_TYPE_DOES_NOT_SUPPORT_COMPOSE:"ERR_TYPE_DOES_NOT_SUPPORT_COMPOSE",ERR_TYPE_DOES_NOT_SUPPORT_PRESENCE:"ERR_TYPE_DOES_NOT_SUPPORT_PRESENCE",ERR_UNKNOWN_ERROR:"ERR_UNKNOWN_ERROR"},r.exports=o},{}],43:[function(n,r,i){var o=n("./logger"),s=new o;r.exports=s},{"./logger":44}],44:[function(n,r,i){var o=["info","warn","error"];function s(){var a=Object.create(null);o.forEach(function(l){a[l]=console[l].bind(console)}),this.setMethods(a)}r.exports=s,s.prototype.setMethods=function(a){a=a||{};var l=this;o.forEach(function(u){typeof a[u]=="function"&&(l[u]=a[u])})}},{}],45:[function(n,r,i){i.ACTIONS={initLegacy:"init",handshake:"hs",queryFetch:"qf",querySubscribe:"qs",queryUnsubscribe:"qu",queryUpdate:"q",bulkFetch:"bf",bulkSubscribe:"bs",bulkUnsubscribe:"bu",fetch:"f",fixup:"fixup",subscribe:"s",unsubscribe:"u",op:"op",snapshotFetch:"nf",snapshotFetchByTimestamp:"nt",pingPong:"pp",presence:"p",presenceSubscribe:"ps",presenceUnsubscribe:"pu",presenceRequest:"pr"}},{}],46:[function(n,r,i){i.messageChannel=function(){var s=o(arguments),a=new MessageChannel;a.port1.onmessage=function(){s(),a.port1.close()},a.port2.postMessage("")},i.setTimeout=function(){var s=o(arguments);setTimeout(s)};function o(s){for(var a=s[0],l=[],u=1;u<s.length;u++)l[u-1]=s[u];return function(){a.apply(null,l)}}},{}],47:[function(n,r,i){var o=n("./types"),s=n("./error"),a=n("./util"),l=s.CODES;i.checkOp=function(f){if(f==null||typeof f!="object")return new s(l.ERR_OT_OP_BADLY_FORMED,"Op must be an object");if(f.create!=null){if(typeof f.create!="object")return new s(l.ERR_OT_OP_BADLY_FORMED,"Create data must be an object");var d=f.create.type;if(typeof d!="string")return new s(l.ERR_OT_OP_BADLY_FORMED,"Missing create type");var h=o.map[d];if(h==null||typeof h!="object")return new s(l.ERR_DOC_TYPE_NOT_RECOGNIZED,"Unknown type")}else if(f.del!=null){if(f.del!==!0)return new s(l.ERR_OT_OP_BADLY_FORMED,"del value must be true")}else if(!("op"in f))return new s(l.ERR_OT_OP_BADLY_FORMED,"Missing op, create, or del");if(f.src!=null&&typeof f.src!="string")return new s(l.ERR_OT_OP_BADLY_FORMED,"src must be a string");if(f.seq!=null&&typeof f.seq!="number")return new s(l.ERR_OT_OP_BADLY_FORMED,"seq must be a number");if(f.src==null&&f.seq!=null||f.src!=null&&f.seq==null)return new s(l.ERR_OT_OP_BADLY_FORMED,"Both src and seq must be set together");if(f.m!=null&&typeof f.m!="object")return new s(l.ERR_OT_OP_BADLY_FORMED,"op.m must be an object or null")},i.normalizeType=function(f){return o.map[f]&&o.map[f].uri},i.apply=function(f,d){if(typeof f!="object")return new s(l.ERR_APPLY_SNAPSHOT_NOT_PROVIDED,"Missing snapshot");if(f.v!=null&&d.v!=null&&f.v!==d.v)return new s(l.ERR_APPLY_OP_VERSION_DOES_NOT_MATCH_SNAPSHOT,"Version mismatch");if(d.create){if(f.type)return new s(l.ERR_DOC_ALREADY_CREATED,"Document already exists");var h=d.create,p=o.map[h.type];if(!p)return new s(l.ERR_DOC_TYPE_NOT_RECOGNIZED,"Unknown type");try{f.data=p.create(h.data),f.type=p.uri,f.v++}catch(y){return y}}else if(d.del)f.data=void 0,f.type=null,f.v++;else if("op"in d){var g=u(f,d.op);if(g)return g;f.v++}else f.v++};function u(f,d){if(!f.type)return new s(l.ERR_DOC_DOES_NOT_EXIST,"Document does not exist");if(d===void 0)return new s(l.ERR_OT_OP_NOT_PROVIDED,"Missing op");var h=o.map[f.type];if(!h)return new s(l.ERR_DOC_TYPE_NOT_RECOGNIZED,"Unknown type");if(h.name==="json0"&&Array.isArray(d))for(var p=0;p<d.length;p++){var g=d[p];if(Array.isArray(g.p))for(var y=0;y<g.p.length;y++){var O=g.p[y];if(a.isDangerousProperty(O))return new s(l.ERR_OT_OP_NOT_APPLIED,"Invalid path segment")}}try{f.data=h.apply(f.data,d)}catch(b){return new s(l.ERR_OT_OP_NOT_APPLIED,b.message)}}i.transform=function(f,d,h){if(d.v!=null&&d.v!==h.v)return new s(l.ERR_OP_VERSION_MISMATCH_DURING_TRANSFORM,"Version mismatch");if(h.del){if(d.create||"op"in d)return new s(l.ERR_DOC_WAS_DELETED,"Document was deleted")}else{if(h.create&&("op"in d||d.create||d.del)||"op"in h&&d.create)return new s(l.ERR_DOC_ALREADY_CREATED,"Document was created remotely");if("op"in h&&"op"in d){if(!f)return new s(l.ERR_DOC_DOES_NOT_EXIST,"Document does not exist");if(typeof f=="string"&&(f=o.map[f],!f))return new s(l.ERR_DOC_TYPE_NOT_RECOGNIZED,"Unknown type");try{d.op=f.transform(d.op,h.op,"left")}catch(p){return p}}}d.v!=null&&d.v++},i.applyOps=function(f,d,h){h=h||{};for(var p=0;p<d.length;p++){var g=d[p];if(h._normalizeLegacyJson0Ops)try{c(f,g)}catch{return new s(l.ERR_OT_LEGACY_JSON0_OP_CANNOT_BE_NORMALIZED,"Cannot normalize legacy json0 op")}f.v=g.v;var y=i.apply(f,g);if(y)return y}},i.transformPresence=function(f,d,h){var p=this.checkOp(d);if(p)return p;var g=f.t;if(typeof g=="string"&&(g=o.map[g]),!g)return{code:l.ERR_DOC_TYPE_NOT_RECOGNIZED,message:"Unknown type"};if(!a.supportsPresence(g))return{code:l.ERR_TYPE_DOES_NOT_SUPPORT_PRESENCE,message:"Type does not support presence"};if(d.create||d.del){f.p=null,f.v++;return}try{f.p=f.p===null?null:g.transformPresence(f.p,d.op,h)}catch(y){return{code:l.ERR_PRESENCE_TRANSFORM_FAILED,message:y.message||y}}f.v++};function c(f,d){if(f.type===o.defaultType.uri){var h=d.op;if(h){var p=f.data;h.length>1&&(p=a.clone(p));for(var g=0;g<h.length;g++){var y=h[g];typeof y.lm=="string"&&(y.lm=+y.lm);for(var O=y.p,b=p,S=0;S<O.length;S++){var k=O[S];Object.prototype.toString.call(b)=="[object Array]"?O[S]=+k:b.constructor===Object&&(O[S]=k.toString()),b=b[k]}g<h.length-1&&(p=o.defaultType.apply(p,[y]))}}}}},{"./error":42,"./types":50,"./util":51}],48:[function(n,r,i){r.exports={major:1,minor:2,checkAtLeast:o};function o(a,l){return a=s(a),l=s(l),a.major>l.major?!0:a.major===l.major&&a.minor>=l.minor}function s(a){if(typeof a=="string"){var l=a.split(".");a={major:l[0],minor:l[1]}}return{major:+(a.protocol||a.major||0),minor:+(a.protocolMinor||a.minor||0)}}},{}],49:[function(n,r,i){r.exports=o;function o(s,a,l,u,c){this.id=s,this.v=a,this.type=l,this.data=u,this.m=c}},{}],50:[function(n,r,i){i.defaultType=n("ot-json0").type,i.map=Object.create(null),i.register=function(o){o.name&&(i.map[o.name]=o),o.uri&&(i.map[o.uri]=o)},i.register(i.defaultType)},{"ot-json0":23}],51:[function(n,r,i){(function(o){(function(){var s=n("./next-tick");i.doNothing=a;function a(){}i.hasKeys=function(f){for(var d in f)return!0;return!1};var l;i.hasOwn=l=Object.hasOwn||function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},i.isInteger=Number.isInteger||function(f){return typeof f=="number"&&isFinite(f)&&Math.floor(f)===f},i.isValidVersion=function(f){return f===null?!0:i.isInteger(f)&&f>=0},i.isValidTimestamp=function(f){return i.isValidVersion(f)},i.MAX_SAFE_INTEGER=9007199254740991,i.dig=function(){for(var f=arguments[0],d=1;d<arguments.length;d++){var h=arguments[d];f=l(f,h)?f[h]:d===arguments.length-1?void 0:Object.create(null)}return f},i.digOrCreate=function(){for(var f=arguments[0],d=arguments[arguments.length-1],h=1;h<arguments.length-1;h++){var p=arguments[h];f=l(f,p)?f[p]:f[p]=h===arguments.length-2?d():Object.create(null)}return f},i.digAndRemove=function(){for(var f=arguments[0],d=[f],h=1;h<arguments.length-1;h++){var p=arguments[h];if(!l(f,p))break;f=f[p],d.push(f)}for(var h=d.length-1;h>=0;h--){var g=d[h],p=arguments[h+1],y=g[p];(h===d.length-1||!i.hasKeys(y))&&delete g[p]}},i.supportsPresence=function(f){return f&&typeof f.transformPresence=="function"},i.callEach=function(f,d){var h=!1;return f.forEach(function(p){p&&(p(d),h=!0)}),h},i.truthy=function(f){return!!f},typeof o<"u"&&typeof o.nextTick=="function"?i.nextTick=o.nextTick:typeof MessageChannel<"u"?i.nextTick=s.messageChannel:i.nextTick=s.setTimeout,i.clone=function(f){return f===void 0?void 0:JSON.parse(JSON.stringify(f))};var u=Object.create(null);Object.getOwnPropertyNames(Object.prototype).forEach(function(f){f!=="__proto__"&&(u[f]=!0)}),i.isDangerousProperty=function(f){return f==="__proto__"||u[f]};try{var c=n("util");if(typeof c.inherits!="function")throw new Error("Could not find util.inherits()");i.inherits=c.inherits}catch{try{i.inherits=n("inherits")}catch{throw new Error('If running sharedb in a browser, please install the "inherits" or "util" package')}}}).call(this)}).call(this,n("_process"))},{"./next-tick":46,_process:26,inherits:17,util:55}],52:[function(n,r,i){(function(o,s){(function(){var a=n("process/browser.js").nextTick,l=Function.prototype.apply,u=Array.prototype.slice,c={},f=0;i.setTimeout=function(){return new d(l.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new d(l.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(h){h.close()};function d(h,p){this._id=h,this._clearFn=p}d.prototype.unref=d.prototype.ref=function(){},d.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(h,p){clearTimeout(h._idleTimeoutId),h._idleTimeout=p},i.unenroll=function(h){clearTimeout(h._idleTimeoutId),h._idleTimeout=-1},i._unrefActive=i.active=function(h){clearTimeout(h._idleTimeoutId);var p=h._idleTimeout;p>=0&&(h._idleTimeoutId=setTimeout(function(){h._onTimeout&&h._onTimeout()},p))},i.setImmediate=typeof o=="function"?o:function(h){var p=f++,g=arguments.length<2?!1:u.call(arguments,1);return c[p]=!0,a(function(){c[p]&&(g?h.apply(null,g):h.call(null),i.clearImmediate(p))}),p},i.clearImmediate=typeof s=="function"?s:function(h){delete c[h]}}).call(this)}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":26,timers:52}],53:[function(n,r,i){r.exports=function(s){return s&&typeof s=="object"&&typeof s.copy=="function"&&typeof s.fill=="function"&&typeof s.readUInt8=="function"}},{}],54:[function(n,r,i){var o=n("is-arguments"),s=n("is-generator-function"),a=n("which-typed-array"),l=n("is-typed-array");function u(V){return V.call.bind(V)}var c=typeof BigInt<"u",f=typeof Symbol<"u",d=u(Object.prototype.toString),h=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),g=u(Boolean.prototype.valueOf);if(c)var y=u(BigInt.prototype.valueOf);if(f)var O=u(Symbol.prototype.valueOf);function b(V,ye){if(typeof V!="object")return!1;try{return ye(V),!0}catch{return!1}}i.isArgumentsObject=o,i.isGeneratorFunction=s,i.isTypedArray=l;function S(V){return typeof Promise<"u"&&V instanceof Promise||V!==null&&typeof V=="object"&&typeof V.then=="function"&&typeof V.catch=="function"}i.isPromise=S;function k(V){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(V):l(V)||z(V)}i.isArrayBufferView=k;function x(V){return a(V)==="Uint8Array"}i.isUint8Array=x;function _(V){return a(V)==="Uint8ClampedArray"}i.isUint8ClampedArray=_;function I(V){return a(V)==="Uint16Array"}i.isUint16Array=I;function M(V){return a(V)==="Uint32Array"}i.isUint32Array=M;function P(V){return a(V)==="Int8Array"}i.isInt8Array=P;function E(V){return a(V)==="Int16Array"}i.isInt16Array=E;function R(V){return a(V)==="Int32Array"}i.isInt32Array=R;function T(V){return a(V)==="Float32Array"}i.isFloat32Array=T;function L(V){return a(V)==="Float64Array"}i.isFloat64Array=L;function A(V){return a(V)==="BigInt64Array"}i.isBigInt64Array=A;function H(V){return a(V)==="BigUint64Array"}i.isBigUint64Array=H;function W(V){return d(V)==="[object Map]"}W.working=typeof Map<"u"&&W(new Map);function Z(V){return typeof Map>"u"?!1:W.working?W(V):V instanceof Map}i.isMap=Z;function G(V){return d(V)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function K(V){return typeof Set>"u"?!1:G.working?G(V):V instanceof Set}i.isSet=K;function U(V){return d(V)==="[object WeakMap]"}U.working=typeof WeakMap<"u"&&U(new WeakMap);function B(V){return typeof WeakMap>"u"?!1:U.working?U(V):V instanceof WeakMap}i.isWeakMap=B;function Y(V){return d(V)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function j(V){return Y(V)}i.isWeakSet=j;function ne(V){return d(V)==="[object ArrayBuffer]"}ne.working=typeof ArrayBuffer<"u"&&ne(new ArrayBuffer);function ee(V){return typeof ArrayBuffer>"u"?!1:ne.working?ne(V):V instanceof ArrayBuffer}i.isArrayBuffer=ee;function ue(V){return d(V)==="[object DataView]"}ue.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ue(new DataView(new ArrayBuffer(1),0,1));function z(V){return typeof DataView>"u"?!1:ue.working?ue(V):V instanceof DataView}i.isDataView=z;var X=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(V){return d(V)==="[object SharedArrayBuffer]"}function fe(V){return typeof X>"u"?!1:(typeof J.working>"u"&&(J.working=J(new X)),J.working?J(V):V instanceof X)}i.isSharedArrayBuffer=fe;function we(V){return d(V)==="[object AsyncFunction]"}i.isAsyncFunction=we;function Te(V){return d(V)==="[object Map Iterator]"}i.isMapIterator=Te;function Re(V){return d(V)==="[object Set Iterator]"}i.isSetIterator=Re;function Q(V){return d(V)==="[object Generator]"}i.isGeneratorObject=Q;function ve(V){return d(V)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=ve;function ge(V){return b(V,h)}i.isNumberObject=ge;function ie(V){return b(V,p)}i.isStringObject=ie;function oe(V){return b(V,g)}i.isBooleanObject=oe;function me(V){return c&&b(V,y)}i.isBigIntObject=me;function $e(V){return f&&b(V,O)}i.isSymbolObject=$e;function Fe(V){return ge(V)||ie(V)||oe(V)||me(V)||$e(V)}i.isBoxedPrimitive=Fe;function Pe(V){return typeof Uint8Array<"u"&&(ee(V)||fe(V))}i.isAnyArrayBuffer=Pe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(V){Object.defineProperty(i,V,{enumerable:!1,value:function(){throw new Error(V+" is not supported in userland")}})})},{"is-arguments":18,"is-generator-function":20,"is-typed-array":21,"which-typed-array":56}],55:[function(n,r,i){(function(o){(function(){var s=Object.getOwnPropertyDescriptors||function(X){for(var J=Object.keys(X),fe={},we=0;we<J.length;we++)fe[J[we]]=Object.getOwnPropertyDescriptor(X,J[we]);return fe},a=/%[sdj%]/g;i.format=function(z){if(!E(z)){for(var X=[],J=0;J<arguments.length;J++)X.push(f(arguments[J]));return X.join(" ")}for(var J=1,fe=arguments,we=fe.length,Te=String(z).replace(a,function(Q){if(Q==="%%")return"%";if(J>=we)return Q;switch(Q){case"%s":return String(fe[J++]);case"%d":return Number(fe[J++]);case"%j":try{return JSON.stringify(fe[J++])}catch{return"[Circular]"}default:return Q}}),Re=fe[J];J<we;Re=fe[++J])I(Re)||!A(Re)?Te+=" "+Re:Te+=" "+f(Re);return Te},i.deprecate=function(z,X){if(typeof o<"u"&&o.noDeprecation===!0)return z;if(typeof o>"u")return function(){return i.deprecate(z,X).apply(this,arguments)};var J=!1;function fe(){if(!J){if(o.throwDeprecation)throw new Error(X);o.traceDeprecation?console.trace(X):console.error(X),J=!0}return z.apply(this,arguments)}return fe};var l={},u=/^$/;if(o.env.NODE_DEBUG){var c=o.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}i.debuglog=function(z){if(z=z.toUpperCase(),!l[z])if(u.test(z)){var X=o.pid;l[z]=function(){var J=i.format.apply(i,arguments);console.error("%s %d: %s",z,X,J)}}else l[z]=function(){};return l[z]};function f(z,X){var J={seen:[],stylize:h};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),_(X)?J.showHidden=X:X&&i._extend(J,X),T(J.showHidden)&&(J.showHidden=!1),T(J.depth)&&(J.depth=2),T(J.colors)&&(J.colors=!1),T(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=d),g(J,z,J.depth)}i.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(z,X){var J=f.styles[X];return J?"\x1B["+f.colors[J][0]+"m"+z+"\x1B["+f.colors[J][1]+"m":z}function h(z,X){return z}function p(z){var X={};return z.forEach(function(J,fe){X[J]=!0}),X}function g(z,X,J){if(z.customInspect&&X&&Z(X.inspect)&&X.inspect!==i.inspect&&!(X.constructor&&X.constructor.prototype===X)){var fe=X.inspect(J,z);return E(fe)||(fe=g(z,fe,J)),fe}var we=y(z,X);if(we)return we;var Te=Object.keys(X),Re=p(Te);if(z.showHidden&&(Te=Object.getOwnPropertyNames(X)),W(X)&&(Te.indexOf("message")>=0||Te.indexOf("description")>=0))return O(X);if(Te.length===0){if(Z(X)){var Q=X.name?": "+X.name:"";return z.stylize("[Function"+Q+"]","special")}if(L(X))return z.stylize(RegExp.prototype.toString.call(X),"regexp");if(H(X))return z.stylize(Date.prototype.toString.call(X),"date");if(W(X))return O(X)}var ve="",ge=!1,ie=["{","}"];if(x(X)&&(ge=!0,ie=["[","]"]),Z(X)){var oe=X.name?": "+X.name:"";ve=" [Function"+oe+"]"}if(L(X)&&(ve=" "+RegExp.prototype.toString.call(X)),H(X)&&(ve=" "+Date.prototype.toUTCString.call(X)),W(X)&&(ve=" "+O(X)),Te.length===0&&(!ge||X.length==0))return ie[0]+ve+ie[1];if(J<0)return L(X)?z.stylize(RegExp.prototype.toString.call(X),"regexp"):z.stylize("[Object]","special");z.seen.push(X);var me;return ge?me=b(z,X,J,Re,Te):me=Te.map(function($e){return S(z,X,J,Re,$e,ge)}),z.seen.pop(),k(me,ve,ie)}function y(z,X){if(T(X))return z.stylize("undefined","undefined");if(E(X)){var J="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return z.stylize(J,"string")}if(P(X))return z.stylize(""+X,"number");if(_(X))return z.stylize(""+X,"boolean");if(I(X))return z.stylize("null","null")}function O(z){return"["+Error.prototype.toString.call(z)+"]"}function b(z,X,J,fe,we){for(var Te=[],Re=0,Q=X.length;Re<Q;++Re)j(X,String(Re))?Te.push(S(z,X,J,fe,String(Re),!0)):Te.push("");return we.forEach(function(ve){ve.match(/^\d+$/)||Te.push(S(z,X,J,fe,ve,!0))}),Te}function S(z,X,J,fe,we,Te){var Re,Q,ve;if(ve=Object.getOwnPropertyDescriptor(X,we)||{value:X[we]},ve.get?ve.set?Q=z.stylize("[Getter/Setter]","special"):Q=z.stylize("[Getter]","special"):ve.set&&(Q=z.stylize("[Setter]","special")),j(fe,we)||(Re="["+we+"]"),Q||(z.seen.indexOf(ve.value)<0?(I(J)?Q=g(z,ve.value,null):Q=g(z,ve.value,J-1),Q.indexOf(`
44
44
  `)>-1&&(Te?Q=Q.split(`
45
45
  `).map(function(ge){return" "+ge}).join(`
46
46
  `).slice(2):Q=`
@@ -65,7 +65,7 @@ Source:
65
65
  `))):fe=j.stylize("[Circular]","special")),R(J)){if(X&&z.match(/^\d+$/))return fe;J=JSON.stringify(""+z),J.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(J=J.substr(1,J.length-2),J=j.stylize(J,"name")):(J=J.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),J=j.stylize(J,"string"))}return J+": "+fe}function S(j,ne,ee){var ue=j.reduce(function(z,X){return X.indexOf(`
66
66
  `)>=0,z+X.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?ee[0]+(ne===""?"":ne+`
67
67
  `)+" "+j.join(`,
68
- `)+" "+ee[1]:ee[0]+ne+" "+j.join(", ")+" "+ee[1]}function k(j){return Array.isArray(j)}i.isArray=k;function x(j){return typeof j=="boolean"}i.isBoolean=x;function _(j){return j===null}i.isNull=_;function I(j){return j==null}i.isNullOrUndefined=I;function M(j){return typeof j=="number"}i.isNumber=M;function P(j){return typeof j=="string"}i.isString=P;function E(j){return typeof j=="symbol"}i.isSymbol=E;function R(j){return j===void 0}i.isUndefined=R;function T(j){return L(j)&&G(j)==="[object RegExp]"}i.isRegExp=T;function L(j){return typeof j=="object"&&j!==null}i.isObject=L;function A(j){return L(j)&&G(j)==="[object Date]"}i.isDate=A;function H(j){return L(j)&&(G(j)==="[object Error]"||j instanceof Error)}i.isError=H;function W(j){return typeof j=="function"}i.isFunction=W;function Z(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}i.isPrimitive=Z,i.isBuffer=n("./support/isBuffer");function G(j){return Object.prototype.toString.call(j)}function K(j){return j<10?"0"+j.toString(10):j.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(){var j=new Date,ne=[K(j.getHours()),K(j.getMinutes()),K(j.getSeconds())].join(":");return[j.getDate(),U[j.getMonth()],ne].join(" ")}i.log=function(){console.log("%s - %s",B(),i.format.apply(i,arguments))},i.inherits=n("inherits"),i._extend=function(j,ne){if(!ne||!L(ne))return j;for(var ee=Object.keys(ne),ue=ee.length;ue--;)j[ee[ue]]=ne[ee[ue]];return j};function Y(j,ne){return Object.prototype.hasOwnProperty.call(j,ne)}}).call(this)}).call(this,n("_process"),typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":3,_process:33,inherits:2}],5:[function(n,r,i){(function(o){(function(){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a=typeof globalThis>"u"?o:globalThis;r.exports=function(){for(var u=[],c=0;c<s.length;c++)typeof a[s[c]]=="function"&&(u[u.length]=s[c]);return u}}).call(this)}).call(this,typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],6:[function(n,r,i){var o=n("get-intrinsic"),s=n("./"),a=s(o("String.prototype.indexOf"));r.exports=function(u,c){var f=o(u,!!c);return typeof f=="function"&&a(u,".prototype.")>-1?s(f):f}},{"./":7,"get-intrinsic":11}],7:[function(n,r,i){var o=n("function-bind"),s=n("get-intrinsic"),a=s("%Function.prototype.apply%"),l=s("%Function.prototype.call%"),u=s("%Reflect.apply%",!0)||o.call(l,a),c=s("%Object.getOwnPropertyDescriptor%",!0),f=s("%Object.defineProperty%",!0),d=s("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}r.exports=function(g){var y=u(o,l,arguments);if(c&&f){var O=c(y,"length");O.configurable&&f(y,"length",{value:1+d(0,g.length-(arguments.length-1))})}return y};var h=function(){return u(o,a,arguments)};f?f(r.exports,"apply",{value:h}):r.exports.apply=h},{"function-bind":10,"get-intrinsic":11}],8:[function(n,r,i){var o=n("is-callable"),s=Object.prototype.toString,a=Object.prototype.hasOwnProperty,l=function(h,p,g){for(var y=0,O=h.length;y<O;y++)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},u=function(h,p,g){for(var y=0,O=h.length;y<O;y++)g==null?p(h.charAt(y),y,h):p.call(g,h.charAt(y),y,h)},c=function(h,p,g){for(var y in h)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},f=function(h,p,g){if(!o(p))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=g),s.call(h)==="[object Array]"?l(h,p,y):typeof h=="string"?u(h,p,y):c(h,p,y)};r.exports=f},{"is-callable":19}],9:[function(n,r,i){var o="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,a=Math.max,l="[object Function]",u=function(h,p){for(var g=[],y=0;y<h.length;y+=1)g[y]=h[y];for(var O=0;O<p.length;O+=1)g[O+h.length]=p[O];return g},c=function(h,p){for(var g=[],y=p,O=0;y<h.length;y+=1,O+=1)g[O]=h[y];return g},f=function(d,h){for(var p="",g=0;g<d.length;g+=1)p+=d[g],g+1<d.length&&(p+=h);return p};r.exports=function(h){var p=this;if(typeof p!="function"||s.apply(p)!==l)throw new TypeError(o+p);for(var g=c(arguments,1),y,O=function(){if(this instanceof y){var _=p.apply(this,u(g,arguments));return Object(_)===_?_:this}return p.apply(h,u(g,arguments))},b=a(0,p.length-g.length),S=[],k=0;k<b;k++)S[k]="$"+k;if(y=Function("binder","return function ("+f(S,",")+"){ return binder.apply(this,arguments); }")(O),p.prototype){var x=function(){};x.prototype=p.prototype,y.prototype=new x,x.prototype=null}return y}},{}],10:[function(n,r,i){var o=n("./implementation");r.exports=Function.prototype.bind||o},{"./implementation":9}],11:[function(n,r,i){var o,s=SyntaxError,a=Function,l=TypeError,u=function(W){try{return a('"use strict"; return ('+W+").constructor;")()}catch{}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch{c=null}var f=function(){throw new l},d=c?function(){try{return arguments.callee,f}catch{try{return c(arguments,"callee").get}catch{return f}}}():f,h=n("has-symbols")(),p=Object.getPrototypeOf||function(W){return W.__proto__},g={},y=typeof Uint8Array>"u"?o:p(Uint8Array),O={"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":h?p([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?p(p([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map>"u"||!h?o:p(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set>"u"||!h?o:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?p(""[Symbol.iterator]()):o,"%Symbol%":h?Symbol:o,"%SyntaxError%":s,"%ThrowTypeError%":d,"%TypedArray%":y,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet};try{null.error}catch(W){var b=p(p(W));O["%Error.prototype%"]=b}var S=function W(Z){var G;if(Z==="%AsyncFunction%")G=u("async function () {}");else if(Z==="%GeneratorFunction%")G=u("function* () {}");else if(Z==="%AsyncGeneratorFunction%")G=u("async function* () {}");else if(Z==="%AsyncGenerator%"){var K=W("%AsyncGeneratorFunction%");K&&(G=K.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var U=W("%AsyncGenerator%");U&&(G=p(U.prototype))}return O[Z]=G,G},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=n("function-bind"),_=n("has"),I=x.call(Function.call,Array.prototype.concat),M=x.call(Function.apply,Array.prototype.splice),P=x.call(Function.call,String.prototype.replace),E=x.call(Function.call,String.prototype.slice),R=x.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,A=function(Z){var G=E(Z,0,1),K=E(Z,-1);if(G==="%"&&K!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(K==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var U=[];return P(Z,T,function(B,Y,j,ne){U[U.length]=j?P(ne,L,"$1"):Y||B}),U},H=function(Z,G){var K=Z,U;if(_(k,K)&&(U=k[K],K="%"+U[0]+"%"),_(O,K)){var B=O[K];if(B===g&&(B=S(K)),typeof B>"u"&&!G)throw new l("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:U,name:K,value:B}}throw new s("intrinsic "+Z+" does not exist!")};r.exports=function(Z,G){if(typeof Z!="string"||Z.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof G!="boolean")throw new l('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var K=A(Z),U=K.length>0?K[0]:"",B=H("%"+U+"%",G),Y=B.name,j=B.value,ne=!1,ee=B.alias;ee&&(U=ee[0],M(K,I([0,1],ee)));for(var ue=1,z=!0;ue<K.length;ue+=1){var X=K[ue],J=E(X,0,1),fe=E(X,-1);if((J==='"'||J==="'"||J==="`"||fe==='"'||fe==="'"||fe==="`")&&J!==fe)throw new s("property names with quotes must have matching quotes");if((X==="constructor"||!z)&&(ne=!0),U+="."+X,Y="%"+U+"%",_(O,Y))j=O[Y];else if(j!=null){if(!(X in j)){if(!G)throw new l("base intrinsic for "+Z+" exists, but the property is not available.");return}if(c&&ue+1>=K.length){var we=c(j,X);z=!!we,z&&"get"in we&&!("originalValue"in we.get)?j=we.get:j=j[X]}else z=_(j,X),j=j[X];z&&!ne&&(O[Y]=j)}}return j}},{"function-bind":10,has:16,"has-symbols":13}],12:[function(n,r,i){var o=n("get-intrinsic"),s=o("%Object.getOwnPropertyDescriptor%",!0);if(s)try{s([],"length")}catch{s=null}r.exports=s},{"get-intrinsic":11}],13:[function(n,r,i){var o=typeof Symbol<"u"&&Symbol,s=n("./shams");r.exports=function(){return typeof o!="function"||typeof Symbol!="function"||typeof o("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()}},{"./shams":14}],14:[function(n,r,i){r.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var u=42;s[a]=u;for(a in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var c=Object.getOwnPropertySymbols(s);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(s,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(s,a);if(f.value!==u||f.enumerable!==!0)return!1}return!0}},{}],15:[function(n,r,i){var o=n("has-symbols/shams");r.exports=function(){return o()&&!!Symbol.toStringTag}},{"has-symbols/shams":14}],16:[function(n,r,i){var o=n("function-bind");r.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":10}],17:[function(n,r,i){typeof Object.create=="function"?r.exports=function(s,a){a&&(s.super_=a,s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(s,a){if(a){s.super_=a;var l=function(){};l.prototype=a.prototype,s.prototype=new l,s.prototype.constructor=s}}},{}],18:[function(n,r,i){var o=n("has-tostringtag/shams")(),s=n("call-bind/callBound"),a=s("Object.prototype.toString"),l=function(d){return o&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:a(d)==="[object Arguments]"},u=function(d){return l(d)?!0:d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},c=function(){return l(arguments)}();l.isLegacyArguments=u,r.exports=c?l:u},{"call-bind/callBound":6,"has-tostringtag/shams":15}],19:[function(n,r,i){var o=Function.prototype.toString,s=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,l;if(typeof s=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw l}}),l={},s(function(){throw 42},null,a)}catch(I){I!==l&&(s=null)}else s=null;var u=/^\s*class\b/,c=function(M){try{var P=o.call(M);return u.test(P)}catch{return!1}},f=function(M){try{return c(M)?!1:(o.call(M),!0)}catch{return!1}},d=Object.prototype.toString,h="[object Object]",p="[object Function]",g="[object GeneratorFunction]",y="[object HTMLAllCollection]",O="[object HTML document.all class]",b="[object HTMLCollection]",S=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var _=document.all;d.call(_)===d.call(document.all)&&(x=function(M){if((k||!M)&&(typeof M>"u"||typeof M=="object"))try{var P=d.call(M);return(P===y||P===O||P===b||P===h)&&M("")==null}catch{}return!1})}r.exports=s?function(M){if(x(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{s(M,null,a)}catch(P){if(P!==l)return!1}return!c(M)&&f(M)}:function(M){if(x(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(S)return f(M);if(c(M))return!1;var P=d.call(M);return P!==p&&P!==g&&!/^\[object HTML/.test(P)?!1:f(M)}},{}],20:[function(n,r,i){var o=Object.prototype.toString,s=Function.prototype.toString,a=/^\s*(?:function)?\*/,l=n("has-tostringtag/shams")(),u=Object.getPrototypeOf,c=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch{}},f;r.exports=function(h){if(typeof h!="function")return!1;if(a.test(s.call(h)))return!0;if(!l){var p=o.call(h);return p==="[object GeneratorFunction]"}if(!u)return!1;if(typeof f>"u"){var g=c();f=g?u(g):!1}return u(h)===f}},{"has-tostringtag/shams":15}],21:[function(n,r,i){(function(o){(function(){var s=n("for-each"),a=n("available-typed-arrays"),l=n("call-bind/callBound"),u=l("Object.prototype.toString"),c=n("has-tostringtag/shams")(),f=n("gopd"),d=typeof globalThis>"u"?o:globalThis,h=a(),p=l("Array.prototype.indexOf",!0)||function(k,x){for(var _=0;_<k.length;_+=1)if(k[_]===x)return _;return-1},g=l("String.prototype.slice"),y={},O=Object.getPrototypeOf;c&&f&&O&&s(h,function(S){var k=new d[S];if(Symbol.toStringTag in k){var x=O(k),_=f(x,Symbol.toStringTag);if(!_){var I=O(x);_=f(I,Symbol.toStringTag)}y[S]=_.get}});var b=function(k){var x=!1;return s(y,function(_,I){if(!x)try{x=_.call(k)===I}catch{}}),x};r.exports=function(k){if(!k||typeof k!="object")return!1;if(!c||!(Symbol.toStringTag in k)){var x=g(u(k),8,-1);return p(h,x)>-1}return f?b(k):!1}}).call(this)}).call(this,typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{"available-typed-arrays":5,"call-bind/callBound":6,"for-each":8,gopd:12,"has-tostringtag/shams":15}],22:[function(n,r,i){var o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function l(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function u(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var f={},d=0;d<10;d++)f["_"+String.fromCharCode(d)]=d;var h=Object.getOwnPropertyNames(f).map(function(g){return f[g]});if(h.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(g){p[g]=g}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}r.exports=u()?Object.assign:function(c,f){for(var d,h=l(c),p,g=1;g<arguments.length;g++){d=Object(arguments[g]);for(var y in d)s.call(d,y)&&(h[y]=d[y]);if(o){p=o(d);for(var O=0;O<p.length;O++)a.call(d,p[O])&&(h[p[O]]=d[p[O]])}}return h}},{}],23:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0}),i.eachChildOf=i.advancer=i.readCursor=i.writeCursor=i.WriteCursor=i.ReadCursor=i.isValidPathItem=void 0;function o(O,b){if(!O)throw new Error(b)}const s=O=>O!=null&&typeof O=="object"&&!Array.isArray(O),a=(O,b)=>typeof O==typeof b?O>b:typeof O=="string"&&typeof b=="number";function l(O,b){for(let S in O){const k=S;b.write(k,O[k])}}const u=O=>typeof O=="number"||typeof O=="string"&&O!=="__proto__";i.isValidPathItem=u;class c{constructor(b=null){this.parents=[],this.indexes=[],this.lcIdx=-1,this.idx=-1,this.container=b}ascend(){o(this.parents.length===this.indexes.length/2),this.idx===0?this.parents.length?(this.lcIdx=this.indexes.pop(),this.container=this.parents.pop(),this.idx=this.indexes.pop()):(this.lcIdx=0,this.idx=-1):(o(this.idx>0),this.idx--,s(this.container[this.idx])&&this.idx--)}getPath(){const b=[];let S=this.container,k=this.parents.length-1,x=this.idx;for(;x>=0;)b.unshift(S[x]),x===0?(x=this.indexes[k*2],S=this.parents[k--]):x-=s(S[x-1])?2:1;return b}}class f extends c{get(){return this.container?this.container.slice(this.idx+1):null}getKey(){return o(this.container!=null,"Invalid call to getKey before cursor descended"),this.container[this.idx]}getComponent(){let b;return this.container&&this.container.length>this.idx+1&&s(b=this.container[this.idx+1])?b:null}descendFirst(){let b=this.idx+1;if(!this.container||b>=this.container.length||s(this.container[b])&&b+1>=this.container.length)return!1;s(this.container[b])&&b++;const S=this.container[b];return Array.isArray(S)?(this.indexes.push(this.idx),this.parents.push(this.container),this.indexes.push(b),this.idx=0,this.container=S):this.idx=b,!0}nextSibling(){if(o(this.parents.length===this.indexes.length/2),this.idx>0||this.parents.length===0)return!1;const b=this.indexes[this.indexes.length-1]+1,S=this.parents[this.parents.length-1];return b>=S.length?!1:(o(!isNaN(b)),this.indexes[this.indexes.length-1]=b,this.container=S[b],!0)}_init(b,S,k,x){this.container=b,this.idx=S,this.parents=k.slice(),this.indexes=x.slice()}clone(){const b=new f;return b._init(this.container,this.idx,this.parents,this.indexes),b}*[Symbol.iterator](){if(this.descendFirst()){do yield this.getKey();while(this.nextSibling());this.ascend()}}traverse(b,S){const k=this.getComponent();k&&S(k,b);for(const x of this)b&&b.descend(x),this.traverse(b,S),b&&b.ascend()}eachPick(b,S){this.traverse(b,(k,x)=>{k.p!=null&&S(k.p,x)})}eachDrop(b,S){this.traverse(b,(k,x)=>{k.d!=null&&S(k.d,x)})}}i.ReadCursor=f;class d extends c{constructor(b=null){super(b),this.pendingDescent=[],this._op=b}flushDescent(){o(this.parents.length===this.indexes.length/2),this.container===null&&(this._op=this.container=[]);for(let b=0;b<this.pendingDescent.length;b++){const S=this.pendingDescent[b];let k=this.idx+1;if(k<this.container.length&&s(this.container[k])&&k++,o(k===this.container.length||!s(this.container[k])),k===this.container.length)this.container.push(S),this.idx=k;else if(this.container[k]===S)this.idx=k;else{if(!Array.isArray(this.container[k])){const x=this.container.splice(k,this.container.length-k);this.container.push(x),this.lcIdx>-1&&(this.lcIdx=k)}for(this.indexes.push(this.idx),this.parents.push(this.container),this.lcIdx!==-1&&(o(a(S,this.container[this.lcIdx][0])),k=this.lcIdx+1,this.lcIdx=-1);k<this.container.length&&a(S,this.container[k][0]);)k++;if(this.indexes.push(k),this.idx=0,k<this.container.length&&this.container[k][0]===S)this.container=this.container[k];else{const x=[S];this.container.splice(k,0,x),this.container=x}}}this.pendingDescent.length=0}reset(){this.lcIdx=-1}getComponent(){this.flushDescent();const b=this.idx+1;if(b<this.container.length&&s(this.container[b]))return this.container[b];{const S={};return this.container.splice(b,0,S),S}}write(b,S){const k=this.getComponent();o(k[b]==null||k[b]===S,"Internal consistency error: Overwritten component. File a bug"),k[b]=S}get(){return this._op}descend(b){if(!(0,i.isValidPathItem)(b))throw Error("Invalid JSON key");this.pendingDescent.push(b)}descendPath(b){return this.pendingDescent.push(...b),this}ascend(){this.pendingDescent.length?this.pendingDescent.pop():super.ascend()}mergeTree(b,S=l){if(b===null)return;if(o(Array.isArray(b)),b===this._op)throw Error("Cannot merge into my own tree");const k=this.lcIdx,x=this.parents.length;let _=0;for(let I=0;I<b.length;I++){const M=b[I];typeof M=="string"||typeof M=="number"?(_++,this.descend(M)):Array.isArray(M)?this.mergeTree(M,S):typeof M=="object"&&S(M,this)}for(;_--;)this.ascend();this.lcIdx=this.parents.length===x?k:-1}at(b,S){this.descendPath(b),S(this);for(let k=0;k<b.length;k++)this.ascend();return this}writeAtPath(b,S,k){return this.at(b,()=>this.write(S,k)),this.reset(),this}writeMove(b,S,k=0){return this.writeAtPath(b,"p",k).writeAtPath(S,"d",k)}getPath(){const b=super.getPath();return b.push(...this.pendingDescent),b}}i.WriteCursor=d;const h=()=>new d;i.writeCursor=h;const p=O=>new f(O);i.readCursor=p;function g(O,b,S){let k,x;x=k=O?O.descendFirst():!1;function _(I){let M;for(;x;){const P=M=O.getKey();if(I!=null){let E=!1;if(b&&typeof P=="number"&&(M=b(P,O.getComponent()),M<0&&(M=~M,E=!0)),a(M,I))return null;if(M===I&&!E)return O}S&&typeof M=="number"&&S(M,O.getComponent()),x=O.nextSibling()}return null}return _.end=()=>{k&&O.ascend()},_}i.advancer=g;function y(O,b,S){let k,x,_,I;for(k=x=O&&O.descendFirst(),_=I=b&&b.descendFirst();k||_;){let M=k?O.getKey():null,P=_?b.getKey():null;M!==null&&P!==null&&(a(P,M)?P=null:M!==P&&(M=null)),S(M??P,M!=null?O:null,P!=null?b:null),M!=null&&k&&(k=O.nextSibling()),P!=null&&_&&(_=b.nextSibling())}x&&O.ascend(),I&&b.ascend()}i.eachChildOf=y},{}],24:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0});function o(s){if(s===null)return null;if(Array.isArray(s))return s.map(o);if(typeof s=="object"){const a={};for(let l in s)a[l]=o(s[l]);return a}else return s}i.default=o},{}],25:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0});function o(l,u){if(Array.isArray(u))return!1;for(let c in l)if(!a(l[c],u[c]))return!1;for(let c in u)if(l[c]===void 0)return!1;return!0}function s(l,u){if(!Array.isArray(u)||l.length!==u.length)return!1;for(let c=0;c<l.length;c++)if(!a(l[c],u[c]))return!1;return!0}function a(l,u){return l===u?!0:l===null||u===null||typeof l!="object"||typeof u!="object"?!1:Array.isArray(l)?s(l,u):o(l,u)}i.default=a},{}],26:[function(n,r,i){var o=this&&this.__createBinding||(Object.create?function(u,c,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(c,f);(!h||("get"in h?!c.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(u,d,h)}:function(u,c,f,d){d===void 0&&(d=f),u[d]=c[f]}),s=this&&this.__exportStar||function(u,c){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&o(c,u,f)};Object.defineProperty(i,"__esModule",{value:!0}),i.ConflictType=i.WriteCursor=i.ReadCursor=void 0,s(n("./json1.release.js"),i);var a=n("./cursor.js");Object.defineProperty(i,"ReadCursor",{enumerable:!0,get:function(){return a.ReadCursor}}),Object.defineProperty(i,"WriteCursor",{enumerable:!0,get:function(){return a.WriteCursor}});var l=n("./types");Object.defineProperty(i,"ConflictType",{enumerable:!0,get:function(){return l.ConflictType}})},{"./cursor.js":23,"./json1.release.js":27,"./types":29}],27:[function(n,r,i){var o=this&&this.__importDefault||function(V){return V&&V.__esModule?V:{default:V}};Object.defineProperty(i,"__esModule",{value:!0}),i.editOp=i.replaceOp=i.insertOp=i.moveOp=i.removeOp=i.type=void 0;const s=o(n("./deepEqual.js")),a=o(n("./deepClone.js")),l=n("./cursor.js"),u=n("./types.js"),c=!0,f=()=>{};function d(V,ye){if(!V)throw new Error(ye)}let h=!1;i.type={name:"p",uri:"p",readCursor:l.readCursor,writeCursor:l.writeCursor,create:V=>V,isNoop:V=>V==null,setDebug(V){h=V,f.quiet=!V},registerSubtype:A,checkValidOp:Y,normalize:j,apply:ne,transformPosition:ue,transformPresence:z,compose:J,tryTransform:ie,transform:me,makeInvertible:Te,invert:fe,invertWithDoc:Re,RM_UNEXPECTED_CONTENT:u.ConflictType.RM_UNEXPECTED_CONTENT,DROP_COLLISION:u.ConflictType.DROP_COLLISION,BLACKHOLE:u.ConflictType.BLACKHOLE,transformNoConflict:(V,ye,_e)=>Pe(()=>!0,V,ye,_e),typeAllowingConflictsPred:V=>Object.assign(Object.assign({},i.type),{transform:(ye,_e,de)=>Pe(V,ye,_e,de)})};const p=V=>V?V.getComponent():null;function g(V){return V&&typeof V=="object"&&!Array.isArray(V)}const y=V=>Array.isArray(V)?V.slice():V!==null&&typeof V=="object"?Object.assign({},V):V,O=V=>V&&(V.p!=null||V.r!==void 0),b=V=>V&&(V.d!=null||V.i!==void 0),S=(V,ye=!0)=>(0,l.writeCursor)().writeAtPath(V,"r",ye).get();i.removeOp=S;const k=(V,ye)=>(0,l.writeCursor)().writeMove(V,ye).get();i.moveOp=k;const x=(V,ye)=>(0,l.writeCursor)().writeAtPath(V,"i",ye).get();i.insertOp=x;const _=(V,ye,_e)=>(0,l.writeCursor)().at(V,de=>{de.write("r",ye),de.write("i",_e)}).get();i.replaceOp=_;const I=(V,ye,_e,de=!1)=>(0,l.writeCursor)().at(V,Se=>K(Se,ye,_e,de)).get();function M(V,ye){return d(V!=null),typeof ye=="number"?(d(Array.isArray(V),"Invalid key - child is not an array"),(V=V.slice()).splice(ye,1)):(d(g(V),"Invalid key - child is not an object"),delete(V=Object.assign({},V))[ye]),V}function P(V,ye,_e){return typeof ye=="number"?(d(V!=null,"Container is missing for key"),d(Array.isArray(V),"Cannot use numerical key for object container"),d(V.length>=ye,"Cannot insert into out of bounds index"),V.splice(ye,0,_e)):(d(g(V),"Cannot insert into missing item"),d(V[ye]===void 0,"Trying to overwrite value at key. Your op needs to remove it first"),V[ye]=_e),_e}i.editOp=I;const E=(V,ye,_e)=>((V=y(V))[ye]=_e,V),R=(V,ye)=>V!=null&&(typeof ye=="number"?Array.isArray(V):typeof V=="object"),T=(V,ye)=>R(V,ye)?V[ye]:void 0,L={};function A(V){let ye=V.type?V.type:V;ye.name&&(L[ye.name]=ye),ye.uri&&(L[ye.uri]=ye)}const H=V=>{const ye=L[V];if(ye)return ye;throw Error("Missing type: "+V)};A(n("ot-text-unicode"));const W=(V,ye)=>V+ye;A({name:"number",apply:W,compose:W,invert:V=>-V,transform:V=>V});const Z=V=>V==null?null:V.et?H(V.et):V.es?L["text-unicode"]:V.ena!=null?L.number:null,G=V=>V.es?V.es:V.ena!=null?V.ena:V.e,K=(V,ye,_e,de=!1)=>{const[Se,Me]=typeof ye=="string"?[H(ye),ye]:[ye,ye.name];!de&&Se.isNoop&&Se.isNoop(_e)||(Me==="number"?V.write("ena",_e):Me==="text-unicode"?V.write("es",_e):(V.write("et",Me),V.write("e",_e)))};function U(V){d(typeof V=="number"),d(V>=0),d(V===(0|V))}function B(V){typeof V=="number"?U(V):d(typeof V=="string")}function Y(V){if(V===null)return;const ye=new Set,_e=new Set,de=Me=>{let et=!0,st=!1;for(let Le in Me){const at=Me[Le];if(et=!1,d(Le==="p"||Le==="r"||Le==="d"||Le==="i"||Le==="e"||Le==="es"||Le==="ena"||Le==="et","Invalid component item '"+Le+"'"),Le==="p")U(at),d(!ye.has(at)),ye.add(at),d(Me.r===void 0);else if(Le==="d")U(at),d(!_e.has(at)),_e.add(at),d(Me.i===void 0);else if(Le==="e"||Le==="es"||Le==="ena"){d(!st),st=!0;const We=Z(Me);d(We,"Missing type in edit"),We.checkValidOp&&We.checkValidOp(G(Me))}}d(!et)},Se=(Me,et,st)=>{if(!Array.isArray(Me))throw Error("Op must be null or a list");if(Me.length===0)throw Error("Empty descent");et||B(Me[0]);let Le=1,at=0,We=0;for(let dt=0;dt<Me.length;dt++){const wt=Me[dt];if(d(wt!=null),Array.isArray(wt)){const pt=Se(wt,!1);if(at){const It=typeof We,nt=typeof pt;It===nt?d(We<pt,"descent keys are not in order"):d(It==="number"&&nt==="string")}We=pt,at++,Le=3}else typeof wt=="object"?(d(Le===1,`Prev not scalar - instead ${Le}`),de(wt),Le=2):(d(Le!==3),B(wt),d((0,l.isValidPathItem)(wt),"Invalid path key"),Le=1)}return d(at!==1,"Operation makes multiple descents. Remove some []"),d(Le===2||Le===3),Me[0]};Se(V,!0),d(ye.size===_e.size,"Mismatched picks and drops in op");for(let Me=0;Me<ye.size;Me++)d(ye.has(Me)),d(_e.has(Me))}function j(V){let ye=0,_e=[];const de=(0,l.writeCursor)();return de.mergeTree(V,(Se,Me)=>{const et=Z(Se);if(et){const Le=G(Se);K(Me,et,et.normalize?et.normalize(Le):Le)}for(const Le of["r","p","i","d"])if(Se[Le]!==void 0){const at=Le==="p"||Le==="d"?(st=Se[Le],_e[st]==null&&(_e[st]=ye++),_e[st]):Se[Le];Me.write(Le,at)}var st}),de.get()}function ne(V,ye){if(f.quiet=!h,Y(ye),ye===null)return V;const _e=[];return V=function de(Se,Me){let et=Se,st=0,Le={root:Se},at=0,We=Le,dt="root";function wt(){for(;at<st;at++){let pt=Me[at];typeof pt!="object"&&(d(R(We,dt)),We=We[dt]=y(We[dt]),dt=pt)}}for(;st<Me.length;st++){const pt=Me[st];if(Array.isArray(pt)){const It=de(et,pt);It!==et&&It!==void 0&&(wt(),et=We[dt]=It)}else if(typeof pt=="object"){pt.d!=null?(wt(),et=P(We,dt,_e[pt.d])):pt.i!==void 0&&(wt(),et=P(We,dt,pt.i));const It=Z(pt);if(It)wt(),et=We[dt]=It.apply(et,G(pt));else if(pt.e!==void 0)throw Error("Subtype "+pt.et+" undefined")}else et=T(et,pt)}return Le.root}(V=function de(Se,Me){const et=[];let st=0;for(;st<Me.length;st++){const Le=Me[st];if(Array.isArray(Le))break;typeof Le!="object"&&(et.push(Se),Se=T(Se,Le))}for(let Le=Me.length-1;Le>=st;Le--)Se=de(Se,Me[Le]);for(--st;st>=0;st--){const Le=Me[st];if(typeof Le!="object"){const at=et.pop();Se=Se===T(at,Le)?at:Se===void 0?M(at,Le):E(at,Le,Se)}else O(Le)&&(d(Se!==void 0,"Cannot pick up or remove undefined"),Le.p!=null&&(_e[Le.p]=Se),Se=void 0)}return Se}(V,ye),ye)}const ee=()=>{};function ue(V,ye){V=V.slice(),Y(ye);const _e=(0,l.readCursor)(ye);let de,Se,Me=!1;const et=[];for(let Le=0;;Le++){const at=V[Le],We=_e.getComponent();if(We&&(We.r!==void 0?Me=!0:We.p!=null&&(Me=!1,de=We.p,Se=Le)),Le>=V.length)break;let dt=0;const wt=(0,l.advancer)(_e,void 0,(It,nt)=>{O(nt)&&dt++});et.unshift(wt);const pt=wt(at);if(typeof at=="number"&&(V[Le]-=dt),!pt)break}if(et.forEach(Le=>Le.end()),Me)return null;const st=()=>{let Le=0;if(de!=null){const at=_e.getPath();Le=at.length,V=at.concat(V.slice(Se))}for(c;Le<V.length;Le++){const at=V[Le],We=p(_e),dt=Z(We);if(dt){const nt=G(We);dt.transformPosition?V[Le]=dt.transformPosition(V[Le],nt):dt.transformCursor&&(V[Le]=dt.transformCursor(V[Le],nt));break}let wt=0;const pt=(0,l.advancer)(_e,(nt,Rt)=>b(Rt)?~(nt-wt):nt-wt,(nt,Rt)=>{b(Rt)&&wt++}),It=pt(at);if(typeof at=="number"&&(V[Le]+=wt),!It)break}};return de!=null?_e.eachDrop(null,Le=>{Le===de&&st()}):st(),V}function z(V,ye){if(!V||!V.start||!V.end)return null;const _e=ue(V.start,ye),de=ue(V.end,ye);return _e&&de?Object.assign(Object.assign({},V),{start:_e,end:de}):_e?Object.assign(Object.assign({},V),{start:_e,end:_e}):de?Object.assign(Object.assign({},V),{start:de,end:de}):null}const X=(V,ye,_e)=>{typeof ye=="number"?(d(Array.isArray(V)),d(ye<V.length)):(d(!Array.isArray(V)),d(V[ye]!==void 0)),_e===void 0?typeof ye=="number"?V.splice(ye,1):delete V[ye]:V[ye]=_e};function J(V,ye){if(Y(V),Y(ye),V==null)return ye;if(ye==null)return V;let _e=0;const de=(0,l.readCursor)(V),Se=(0,l.readCursor)(ye),Me=(0,l.writeCursor)(),et=[],st=[],Le=[],at=[],We=[],dt=[],wt=new Set;de.traverse(null,nt=>{nt.p!=null&&(Le[nt.p]=de.clone())}),Se.traverse(null,nt=>{nt.d!=null&&(at[nt.d]=Se.clone())});const pt=(0,l.writeCursor)();return function nt(Rt,un,Tt,qt,On,Tn,bn,Rn){d(un||Tt);const ir=p(un),pe=p(Tt),Ee=!!pe&&pe.r!==void 0,De=!!ir&&ir.i!==void 0,rt=ir?ir.d:null,ct=pe?pe.p:null,ht=(Tn||Ee)&&ct==null;if(ct!=null)qt=at[ct],bn=st[ct]=new l.WriteCursor;else if(pe&&pe.r!==void 0)qt=null;else{const Ct=p(qt);Ct&&Ct.d!=null&&(qt=null)}const Ve=p(qt);if(rt!=null)if(Rt=Le[rt],Rn=et[rt]=new l.WriteCursor,ht)Tn&&!Ee&&Rn.write("r",!0);else{const Ct=We[rt]=_e++;bn.write("d",Ct)}else if(ir&&ir.i!==void 0)Rt=null;else{const Ct=p(Rt);Ct&&Ct.p!=null&&(Rt=null)}let Ye;De?(d(On===void 0),Ye=ir.i):Ye=On;const Je=(ct==null?!De||Tn||Ee:Ye===void 0)?null:bn.getComponent();if(ct!=null){if(!(On!==void 0||De)){const Ct=rt!=null?We[rt]:_e++;dt[ct]=Ct,Rn.write("p",Ct)}}else Ee&&(De||On!==void 0||(pe.r,Rn.write("r",pe.r)));const Ze=ht?null:Z(ir),Ne=Z(Ve);if((Ze||Ne)&&(Ze&&Ze.name,Ne&&Ne.name),Ze&&Ne){d(Ze===Ne);const Ct=G(ir),ln=G(Ve),or=Ze.compose(Ct,ln);K(bn,Ze,or),wt.add(Ve)}else Ze?K(bn,Ze,G(ir)):Ne&&(K(bn,Ne,G(Ve)),wt.add(Ve));const lt=typeof Ye=="object"&&Ye!=null;let Pt=!1,Nt=0,hn=0,cn=0,Kt=0,sn=0;const nn=(0,l.advancer)(qt,(Ct,ln)=>b(ln)?Kt-Ct-1:Ct-Kt,(Ct,ln)=>{b(ln)&&Kt++}),Yt=(0,l.advancer)(Rt,(Ct,ln)=>O(ln)?Nt-Ct-1:Ct-Nt,(Ct,ln)=>{O(ln)&&Nt++});if((0,l.eachChildOf)(un,Tt,(Ct,ln,or)=>{let wn,fr,lr=Ct,ce=Ct,le=Ct;if(typeof Ct=="number"){let Ae=Ct+cn;fr=nn(Ae),ce=Ae+Kt;let ze=Ct+hn;wn=Yt(ze),b(p(fr))&&(wn=null),lr=ze+Nt,le=Ct+sn,d(lr>=0,"p1PickKey is negative"),d(ce>=0,"p2DropKey is negative");const bt=b(p(ln)),ot=O(p(or));(bt||ot&&!ht)&&sn--,bt&&hn--,ot&&cn--}else wn=Yt(Ct),fr=nn(Ct);Rn.descend(lr),bn.descend(ce);const Oe=lt&&!b(p(ln))?Ye[le]:void 0,Xe=nt(wn,ln,or,fr,Oe,ht,bn,Rn);lt&&!ht?Oe!==Xe&&(Pt||(Ye=Array.isArray(Ye)?Ye.slice():Object.assign({},Ye),Pt=!0),X(Ye,le,Xe)):d(Xe===void 0),bn.ascend(),Rn.ascend()}),Yt.end(),nn.end(),Je!=null)Je.i=Ye;else if(!Tn&&!Ee&&ct==null)return Ye}(de,de.clone(),Se,Se.clone(),void 0,!1,Me,pt),Me.reset(),Me.mergeTree(pt.get()),Me.reset(),Me.get(),et.map(nt=>nt.get()),st.map(nt=>nt.get()),de.traverse(Me,(nt,Rt)=>{const un=nt.p;if(un!=null){const Tt=We[un];Tt!=null&&Rt.write("p",Tt);const qt=et[un];qt&&qt.get(),qt&&Rt.mergeTree(qt.get())}else nt.r!==void 0&&Rt.write("r",nt.r)}),Me.reset(),Me.get(),Se.traverse(Me,(nt,Rt)=>{const un=nt.d;if(un!=null){const qt=dt[un];qt!=null&&Rt.write("d",qt);const On=st[un];On&&Rt.mergeTree(On.get())}else nt.i!==void 0&&Rt.write("i",nt.i);const Tt=Z(nt);Tt&&!wt.has(nt)&&K(Rt,Tt,G(nt))}),Me.get()}function fe(V){if(V==null)return null;const ye=new l.ReadCursor(V),_e=new l.WriteCursor;let de;const Se=[],Me=[];if(function st(Le,at,We){const dt=Le.getComponent();let wt,pt=!1;if(dt){dt.p!=null&&(at.write("d",dt.p),Se[dt.p]=Le.clone()),dt.r!==void 0&&at.write("i",dt.r),dt.d!=null&&(at.write("p",dt.d),We=void 0),dt.i!==void 0&&(We=wt=dt.i);const nt=Z(dt);nt&&(We===void 0?(de||(de=new Set),de.add(dt)):(G(dt),We=nt.apply(We,G(dt)),pt=!0))}let It=0;for(const nt of Le){at.descend(nt);const Rt=typeof nt=="number"?nt-It:nt,un=T(We,Rt);b(Le.getComponent())&&It++;const Tt=st(Le,at,un);if(We!==void 0&&Tt!==void 0){if(pt||(pt=!0,We=y(We)),!R(We,Rt))throw Error("Cannot modify child - invalid operation");We[Rt]=Tt}at.ascend()}if(wt===void 0)return pt?We:void 0;at.write("r",We)}(ye,_e,void 0),de){let st=function(Le,at,We){const dt=at.getComponent();if(dt){const nt=dt.d;if(nt!=null&&(Le=Se[nt],We=Me[nt]=(0,l.writeCursor)()),de.has(dt)){const Rt=Z(dt);if(!Rt.invert)throw Error(`Cannot invert subtype ${Rt.name}`);K(We,Rt,Rt.invert(G(dt)))}}let wt=0,pt=0;const It=(0,l.advancer)(Le,(nt,Rt)=>O(Rt)?wt-nt-1:nt-wt,(nt,Rt)=>{O(Rt)&&wt++});for(const nt of at)if(typeof nt=="number"){const Rt=nt-pt,un=It(Rt),Tt=Rt+wt;We.descend(Tt),st(un,at,We),b(at.getComponent())&&pt++,We.ascend()}else We.descend(nt),st(It(nt),at,We),We.ascend();It.end()};_e.reset(),st(ye.clone(),ye,_e),Me.length&&(_e.reset(),ye.traverse(_e,(Le,at)=>{const We=Le.p;if(We!=null){const dt=Me[We];dt&&dt.get(),dt&&at.mergeTree(dt.get())}}))}return _e.get()}const we=(V,ye)=>V.some(_e=>typeof _e=="object"&&(Array.isArray(_e)?we(_e,ye):ye(_e)));function Te(V,ye){if(V==null||!we(V,at=>{var We;return at.r!==void 0||((We=Z(at))===null||We===void 0?void 0:We.makeInvertible)!=null}))return V;const _e=new l.ReadCursor(V),de=new l.WriteCursor;let Se=!1;const Me=[],et=[],st=(at,We,dt)=>{const wt=at.getComponent();let pt=!1;if(wt){wt.d!=null&&We.write("d",wt.d),wt.i!==void 0&&We.write("i",wt.i);const nt=wt.p;if(nt!=null&&(Me[nt]=at.clone(),d(dt!==void 0,"Operation picks up at an invalid key"),et[nt]=dt,We.write("p",wt.p)),wt.r!==void 0&&dt===void 0)throw Error("Invalid doc / op in makeInvertible: removed item missing from doc");const Rt=Z(wt);Rt&&(Rt.makeInvertible?Se=!0:K(We,Rt,G(wt),!0))}let It=0;for(const nt of at){We.descend(nt);const Rt=typeof nt=="number"?nt-It:nt,un=T(dt,Rt),Tt=st(at,We,un);un!==Tt&&(pt||(pt=!0,dt=y(dt)),Tt===void 0?(dt=M(dt,Rt),typeof nt=="number"&&It++):dt[Rt]=Tt),We.ascend()}return wt&&(wt.r!==void 0?(We.write("r",(0,a.default)(dt)),dt=void 0):wt.p!=null&&(dt=void 0)),dt};if(st(_e,de,ye),de.get(),Se){let at=function(We,dt,wt,pt,It){const nt=dt.getComponent();if(nt){nt.i!==void 0?(pt=nt.i,It=!0):nt.d!=null&&(pt=et[nt.d],We=Me[nt.d],It=!1,nt.d);let qt=Z(nt);if(qt&&qt.makeInvertible){const On=G(nt);K(wt,qt,qt.makeInvertible(On,pt),!0)}}let Rt=0,un=0;const Tt=(0,l.advancer)(We,(qt,On)=>O(On)?Rt-qt-1:qt-Rt,(qt,On)=>{O(On)&&Rt++});for(const qt of dt)if(typeof qt=="number"){const On=qt-un,Tn=Tt(On),bn=T(pt,It?On:On+Rt);wt.descend(qt),at(Tn,dt,wt,bn,It),b(dt.getComponent())&&un++,wt.ascend()}else{const On=T(pt,qt);wt.descend(qt),at(Tt(qt),dt,wt,On,It),wt.ascend()}Tt.end()};de.reset(),at(_e.clone(),_e,de,ye,!1)}return de.get()}function Re(V,ye){return fe(Te(V,ye))}const Q=0,ve=1,ge=V=>{if(V==null)return null;const ye=V.slice();for(let _e=0;_e<V.length;_e++){const de=ye[_e];Array.isArray(de)&&(ye[_e]=ge(de))}return ye};function ie(V,ye,_e){d(_e==="left"||_e==="right","Direction must be left or right");const de=_e==="left"?Q:ve;if(f.quiet=!h,f.prefix=0,ye==null)return{ok:!0,result:V};Y(V),Y(ye);let Se=null;const Me=[],et=[],st=[],Le=[],at=[],We=[],dt=[],wt=[],pt=[],It=[],nt=[],Rt=[],un=[],Tt=[],qt=[];let On=0;const Tn=(0,l.readCursor)(V),bn=(0,l.readCursor)(ye),Rn=(0,l.writeCursor)();if(function ht(Ve,Ye=null,Je){const Ze=p(Ye);Ze&&(Ze.r!==void 0?Je=Ye.clone():Ze.p!=null&&(Je=null,We[Ze.p]=Ve.clone()));const Ne=Ve.getComponent();let lt;Ne&&(lt=Ne.p)!=null&&(at[lt]=Ye?Ye.clone():null,st[lt]=Ve.clone(),Je&&(It[lt]=!0,pt[lt]=Je),Ze&&Ze.p!=null&&(Tt[lt]=Ze.p));const Pt=(0,l.advancer)(Ye);for(const Nt of Ve)ht(Ve,Pt(Nt),Je);Pt.end()}(bn,Tn,null),function ht(Ve,Ye,Je,Ze,Ne){const lt=Je.getComponent();let Pt,Nt=!1;lt&&((Pt=lt.d)!=null?(Le[Pt]=Je.clone(),Ze!=null&&(qt[Ze]==null&&(qt[Ze]=[]),qt[Ze].push(Pt)),It[Pt],Ve=at[Pt]||null,Ye=st[Pt]||null,It[Pt]?(Ne&&(nt[Pt]=!0),Ne=pt[Pt]||null):!Ne||de!==ve&&Tt[Pt]!=null||Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:(0,i.removeOp)(Ne.getPath()),op2:(0,i.moveOp)(Ye.getPath(),Je.getPath())}),Nt=!0):lt.i!==void 0&&(Ve=Ye=null,Nt=!0,Ne&&Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:(0,i.removeOp)(Ne.getPath()),op2:(0,i.insertOp)(Je.getPath(),lt.i)})));const hn=p(Ve);hn&&(hn.r!==void 0?Ne=Ve.clone():hn.p!=null&&(hn.p,Ze=hn.p,Ne=null));const cn=Z(lt);cn&&Ne&&Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:(0,i.removeOp)(Ne.getPath()),op2:(0,i.editOp)(Je.getPath(),cn,G(lt),!0)});let Kt=0,sn=0;const nn=(0,l.advancer)(Ye,(Ct,ln)=>O(ln)?Kt-Ct-1:Ct-Kt,(Ct,ln)=>{O(ln)&&Kt++}),Yt=(0,l.advancer)(Ve);for(const Ct of Je)if(typeof Ct=="number"){const ln=Ct-sn,or=nn(ln);sn+=+ht(Yt(ln+Kt),or,Je,Ze,Ne)}else{const ln=nn(Ct);ht(Yt(Ct),ln,Je,Ze,Ne)}return nn.end(),Yt.end(),Nt}(Tn,bn,bn.clone(),null,null),Le.map(ht=>ht&&ht.get()),Se)return{ok:!1,conflict:Se};nt.map(ht=>!!ht);const ir=[];let pe=null;(function ht(Ve,Ye,Je,Ze,Ne){let lt=!1;const Pt=p(Ye);if(O(Pt)){const nn=Pt.p;nn!=null?(Je=Le[nn],Ze=Rt[nn]=(0,l.writeCursor)(),lt=!0,Ne=null):(Je=null,Ne=Ye.clone())}else b(p(Je))&&(Je=null);const Nt=Ve.getComponent();if(Nt){const nn=Nt.p;nn!=null?(Ne&&(wt[nn]=Ne),ir[nn]=Ne||de===ve&&lt?null:Ze.getComponent(),Me[nn]=Ve.clone(),Je&&(dt[nn]=Je.clone())):Nt.r!==void 0&&(Ne||Ze.write("r",!0),(Ne||lt)&&(pe==null&&(pe=new Set),pe.add(Nt)))}let hn=0,cn=0;const Kt=(0,l.advancer)(Ye,void 0,(nn,Yt)=>{O(Yt)&&hn++}),sn=(0,l.advancer)(Je,(nn,Yt)=>b(Yt)?~(nn-cn):nn-cn,(nn,Yt)=>{b(Yt)&&cn++});if(Ve)for(const nn of Ve)if(typeof nn=="string"){const Yt=Kt(nn),Ct=sn(nn);Ze.descend(nn),ht(Ve,Yt,Ct,Ze,Ne),Ze.ascend()}else{const Yt=Kt(nn),Ct=nn-hn,ln=O(p(Yt))?null:sn(Ct),or=Ct+cn;d(or>=0),Ze.descend(or),ht(Ve,Yt,ln,Ze,Ne),Ze.ascend()}Kt.end(),sn.end()})(Tn,bn,bn.clone(),Rn,null),Rn.reset();let Ee=[];if(function ht(Ve,Ye,Je,Ze,Ne,lt){d(Ye);const Pt=Ye.getComponent();let Nt=p(Ze),hn=!1;const cn=(Ae,ze,bt)=>Ae?(0,i.moveOp)(Ae.getPath(),ze.getPath()):(0,i.insertOp)(ze.getPath(),bt.i);if(b(Pt)){const Ae=Pt.d;Ae!=null&&(et[Ae]=Ye.clone());const ze=Ae!=null?ir[Ae]:null;let bt=!1;if(Pt.i!==void 0||Ae!=null&&ze){let ot;Nt&&(Nt.i!==void 0||(ot=Nt.d)!=null&&!It[ot])&&(bt=ot!=null?Ae!=null&&Ae===Tt[ot]:(0,s.default)(Nt.i,Pt.i),bt||ot!=null&&de!==ve&&Tt[ot]!=null||Se==null&&(Se={type:u.ConflictType.DROP_COLLISION,op1:cn(Ae!=null?Me[Ae]:null,Ye,Pt),op2:cn(ot!=null?st[ot]:null,Ze,Nt)})),bt||(lt?Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:cn(Ae!=null?Me[Ae]:null,Ye,Pt),op2:(0,i.removeOp)(lt.getPath())}):(Ae!=null?(Ee[On]=Ae,Ne.write("d",ze.p=On++)):Ne.write("i",(0,a.default)(Pt.i)),hn=!0))}else if(Ae!=null&&!ze){const ot=wt[Ae];ot&&(lt=ot.clone())}Ae!=null?(Ve=Me[Ae],Je=We[Ae],Ze=dt[Ae]):Pt.i!==void 0&&(Ve=Je=null,bt||(Ze=null))}else O(p(Ve))&&(Ve=Je=Ze=null);const Kt=p(Ve),sn=p(Je);if(O(sn)){const Ae=sn.p;sn.r!==void 0&&(!Kt||Kt.r===void 0)||It[Ae]?(Ze=null,lt=Je.clone()):Ae!=null&&(Ze=Le[Ae],de!==ve&&Tt[Ae]!=null||((Ne=un[Ae])||(Ne=un[Ae]=(0,l.writeCursor)()),Ne.reset(),lt=null))}else!b(Pt)&&b(Nt)&&(Ze=null);Nt=Ze!=null?Ze.getComponent():null;const nn=Z(Pt);if(nn){const Ae=G(Pt);if(lt)Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:(0,i.editOp)(Ye.getPath(),nn,Ae,!0),op2:(0,i.removeOp)(lt.getPath())});else{const ze=Z(Nt);let bt;if(ze){if(nn!==ze)throw Error("Transforming incompatible types");const ot=G(Nt);bt=nn.transform(Ae,ot,_e)}else bt=(0,a.default)(Ae);K(Ne,nn,bt)}}let Yt=0,Ct=0,ln=0,or=0,wn=0,fr=0,lr=Ve!=null&&Ve.descendFirst(),ce=lr;const le=(0,l.advancer)(Je,void 0,(Ae,ze)=>{O(ze)&&ln++});let Oe=Ze!=null&&Ze.descendFirst(),Xe=Oe;for(const Ae of Ye)if(typeof Ae=="number"){let ze;const bt=b(Ye.getComponent()),ot=Ae-Ct;{let tn;for(ee();lr&&typeof(tn=Ve.getKey())=="number";){tn+=Yt;const Sn=Ve.getComponent(),Pn=O(Sn);if(tn>ot||tn===ot&&(!Pn||de===Q&&bt))break;if(Pn){Yt--;const Qt=Sn.p;Tt.includes(Qt),Sn.d,p(un[Sn.d]),O(p(un[Sn.d])),(Sn.r===void 0||pe&&pe.has(Sn))&&(Qt==null||!ir[Qt]||de!==ve&&Tt.includes(Qt))||wn--}lr=Ve.nextSibling()}ze=lr&&tn===ot?Ve:null}const yt=ot-Yt;let zt=le(yt);const At=yt-ln;let Cn=null;{let tn,Sn;for(ee();Oe&&typeof(tn=Ze.getKey())=="number";){Sn=tn-or;const Pn=Ze.getComponent(),Qt=b(Pn);if(Sn>At)break;if(Sn===At){if(!Qt){Cn=Ze;break}{if(de===Q&&bt){Cn=Ze;break}const fn=zt&&O(zt.getComponent());if(de===Q&&fn)break}}if(Qt){const fn=Pn.d;It[fn],Tt[fn],Pn.i===void 0&&(It[fn]||Tt[fn]!=null&&de!==ve)?(It[fn]||Tt[fn]!=null&&de===Q)&&(or++,fr--):or++}Oe=Ze.nextSibling()}}const jn=At+or+wn+fr;d(jn>=0,"trying to descend to a negative index"),Ne.descend(jn),bt&&(ze=zt=Cn=null,Ct++),ht(ze,Ye,zt,Cn,Ne,lt)&&fr++,Ne.ascend()}else{let ze;for(;lr&&(ze=Ve.getKey(),typeof ze!="string"||!(ze>Ae||ze===Ae));)lr=Ve.nextSibling();const bt=lr&&ze===Ae?Ve:null,ot=le(Ae);let yt;for(;Oe&&(yt=Ze.getKey(),typeof yt!="string"||!(yt>Ae||yt===Ae));)Oe=Ze.nextSibling();const zt=Oe&&yt===Ae?Ze:null;Ne.descend(Ae),ht(bt,Ye,ot,zt,Ne,lt),Ne.ascend()}return le.end(),ce&&Ve.ascend(),Xe&&Ze.ascend(),hn}(Tn,Tn.clone(),bn,bn.clone(),Rn,null),Se)return{ok:!1,conflict:Se};Rn.reset();const De=(ht,Ve,Ye)=>ht.traverse(Ve,(Je,Ze)=>{Je.d!=null&&Ye(Je.d,ht,Ze)});(It.length||Rt.length)&&(De(bn,Rn,(ht,Ve,Ye)=>{It[ht]&&!nt[ht]&&Ye.write("r",!0),Rt[ht]&&Ye.mergeTree(Rt[ht].get())}),Rn.reset());const rt=[],ct=[];if((un.length||It.length)&&!Se){const ht=(0,l.readCursor)(ge(Rn.get()));if(De(ht,null,(Ve,Ye)=>{rt[Ve]=Ye.clone()}),un.forEach(Ve=>{Ve&&De((0,l.readCursor)(Ve.get()),null,(Ye,Je)=>{rt[Ye]=Je.clone()})}),function Ve(Ye,Je,Ze,Ne,lt,Pt){f.prefix++;const Nt=p(Je);if(Nt&&O(Nt))if(Nt.p!=null){const Yt=Nt.p;rt[Yt].getPath(),Ze=rt[Yt],Ne=ct[Yt]=(0,l.writeCursor)()}else Nt.r!==void 0&&(Ze=null);else b(p(Ze))&&(Ze=null);const hn=Ye.getComponent();if(hn){let Yt;if((Yt=hn.d)!=null){const Ct=un[Yt];Ct&&(Ct.get(),Ne.mergeTree(Ct.get()),Ze=(0,l.readCursor)(Ct.get()))}}let cn=0,Kt=0;const sn=(0,l.advancer)(Je,void 0,(Yt,Ct)=>{O(Ct)&&cn--}),nn=(0,l.advancer)(Ze,(Yt,Ct)=>b(Ct)?-(Yt-Kt)-1:Yt-Kt,(Yt,Ct)=>{b(Ct)&&Kt++});for(const Yt of Ye)if(typeof Yt=="number"){const Ct=sn(Yt),ln=Yt+cn,or=nn(ln),wn=ln+Kt;Ne.descend(wn),Ve(Ye,Ct,or,Ne),Ne.ascend()}else Ne.descend(Yt),Ve(Ye,sn(Yt),nn(Yt),Ne),Ne.ascend();sn.end(),nn.end()}(bn,ht,ht.clone(),Rn),Rn.reset(),Se)return{ok:!1,conflict:Se};if(Rn.get(),ct.length){const Ve=ct.map(Je=>Je?Je.get():null),Ye=(0,l.readCursor)(ge(Rn.get()));if(De(Ye,Rn,(Je,Ze,Ne)=>{const lt=Ve[Je];lt&&(Ne.mergeTree(lt),Ve[Je]=null)}),Ve.find(Je=>Je)){const Je=(0,l.writeCursor)(),Ze=(0,l.writeCursor)();let Ne=0,lt=0;Ve.forEach(Pt=>{Pt!=null&&De((0,l.readCursor)(Pt),null,Nt=>{const hn=Ee[Nt];Je.writeMove(Me[hn].getPath(),et[hn].getPath(),Ne++);const cn=qt[hn];cn&&cn.forEach(Kt=>{It[Kt]||de!==ve&&Tt[Kt]!=null||Ze.writeMove(st[Kt].getPath(),Le[Kt].getPath(),lt++)})})}),Se={type:u.ConflictType.BLACKHOLE,op1:Je.get(),op2:Ze.get()}}}}return Se?{ok:!1,conflict:Se}:{ok:!0,result:Rn.get()}}const oe=V=>{const ye=new Error("Transform detected write conflict");throw ye.conflict=V,ye.type=ye.name="writeConflict",ye};function me(V,ye,_e){const de=ie(V,ye,_e);if(de.ok)return de.result;oe(de.conflict)}const $e=V=>{const ye=(0,l.writeCursor)();return(0,l.readCursor)(V).traverse(ye,(_e,de)=>{(b(_e)||Z(_e))&&de.write("r",!0)}),ye.get()},Fe=(V,ye)=>{const{type:_e,op1:de,op2:Se}=V;switch(_e){case u.ConflictType.DROP_COLLISION:return ye==="left"?[null,$e(Se)]:[$e(de),null];case u.ConflictType.RM_UNEXPECTED_CONTENT:let Me=!1;return(0,l.readCursor)(de).traverse(null,et=>{et.r!==void 0&&(Me=!0)}),Me?[null,$e(Se)]:[$e(de),null];case u.ConflictType.BLACKHOLE:return[$e(de),$e(Se)];default:throw Error("Unrecognised conflict: "+_e)}};function Pe(V,ye,_e,de){let Se=null;for(;;){const Me=ie(ye,_e,de);if(Me.ok)return J(Se,Me.result);{const{conflict:et}=Me;V(et)||oe(et);const[st,Le]=Fe(et,de);ye=J(j(ye),st),_e=J(j(_e),Le),Se=J(Se,Le)}}}},{"./cursor.js":23,"./deepClone.js":24,"./deepEqual.js":25,"./log":28,"./types.js":29,assert:1,"ot-text-unicode":31}],28:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0});function o(...s){if(o.quiet)return;const{inspect:a}=n("util"),l=c=>typeof c=="string"?c:a(c,{depth:10,colors:!0}),u=Array(o.prefix).fill(" ").join("");console.log(u+s.map(l).join(" "))}i.default=o,o.quiet=!0,o.prefix=0},{util:37}],29:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0}),i.ConflictType=void 0;var o;(function(s){s[s.RM_UNEXPECTED_CONTENT=1]="RM_UNEXPECTED_CONTENT",s[s.DROP_COLLISION=2]="DROP_COLLISION",s[s.BLACKHOLE=3]="BLACKHOLE"})(o||(i.ConflictType=o={}))},{}],30:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0});const o=n("./type"),s=n("unicount");function a(l,u){return{get:l,getLength(){return l().length},insert(c,f,d){const h=s.strPosToUni(l(),c);return u([h,f],d)},remove(c,f,d){const h=s.strPosToUni(l(),c);return u([h,{d:f}],d)},_onOp(c){o.eachOp(c,(f,d,h)=>{switch(typeof f){case"string":this.onInsert&&this.onInsert(h,f);break;case"object":const p=o.dlen(f.d);this.onRemove&&this.onRemove(h,p)}})},onInsert:null,onRemove:null}}i.default=a,a.provides={text:!0}},{"./type":32,unicount:34}],31:[function(n,r,i){var o=this&&this.__createBinding||(Object.create?function(y,O,b,S){S===void 0&&(S=b),Object.defineProperty(y,S,{enumerable:!0,get:function(){return O[b]}})}:function(y,O,b,S){S===void 0&&(S=b),y[S]=O[b]}),s=this&&this.__setModuleDefault||(Object.create?function(y,O){Object.defineProperty(y,"default",{enumerable:!0,value:O})}:function(y,O){y.default=O}),a=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var O={};if(y!=null)for(var b in y)Object.hasOwnProperty.call(y,b)&&o(O,y,b);return s(O,y),O},l=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(i,"__esModule",{value:!0}),i.type=i.remove=i.insert=void 0;const u=n("unicount"),c=a(n("./type")),f=l(n("./api")),d={create(y){return y},toString(y){return y},builder(y){if(typeof y!="string")throw Error("Invalid document snapshot: "+y);const O=[];return{skip(b){let S=u.uniToStrPos(y,b);if(S>y.length)throw Error("The op is too long for this document");O.push(y.slice(0,S)),y=y.slice(S)},append(b){O.push(b)},del(b){y=y.slice(u.uniToStrPos(y,b))},build(){return O.join("")+y}}},slice:c.uniSlice},h=c.default(d),p=Object.assign(Object.assign({},h),{api:f.default});i.type=p,i.insert=(y,O)=>O.length===0?[]:y===0?[O]:[y,O],i.remove=(y,O)=>c.dlen(O)===0?[]:y===0?[{d:O}]:[y,{d:O}];var g=n("./type");Object.defineProperty(i,"makeType",{enumerable:!0,get:function(){return g.default}})},{"./api":30,"./type":32,unicount:34}],32:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0}),i.uniSlice=i.dlen=i.eachOp=void 0;const o=n("unicount"),s=P=>{if(!Array.isArray(P))throw Error("Op must be an array of components");let E=null;for(let R=0;R<P.length;R++){const T=P[R];switch(typeof T){case"object":if(typeof T.d!="number"&&typeof T.d!="string")throw Error("Delete must be number or string");if(i.dlen(T.d)<=0)throw Error("Deletes must not be empty");break;case"string":if(!(T.length>0))throw Error("Inserts cannot be empty");break;case"number":if(!(T>0))throw Error("Skip components must be >0");if(typeof E=="number")throw Error("Adjacent skip components should be combined");break}E=T}if(typeof E=="number")throw Error("Op has a trailing skip")};function a(P,E){let R=0,T=0;for(let L=0;L<P.length;L++){const A=P[L];switch(E(A,R,T),typeof A){case"object":R+=i.dlen(A.d);break;case"string":T+=o.strPosToUni(A);break;case"number":R+=A,T+=A;break}}}i.eachOp=a;function l(P,E){const R=[],T=f(R);return a(P,(L,A,H)=>{T(E(L,A,H))}),g(R)}const u=P=>P,c=P=>l(P,u);i.dlen=P=>typeof P=="number"?P:o.strPosToUni(P);const f=P=>E=>{if(!(!E||E.d===0||E.d===""))if(P.length===0)P.push(E);else if(typeof E==typeof P[P.length-1])if(typeof E=="object"){const R=P[P.length-1];R.d=typeof R.d=="string"&&typeof E.d=="string"?R.d+E.d:i.dlen(R.d)+i.dlen(E.d)}else P[P.length-1]+=E;else P.push(E)},d=P=>typeof P=="number"?P:typeof P=="string"?o.strPosToUni(P):typeof P.d=="number"?P.d:o.strPosToUni(P.d);i.uniSlice=(P,E,R)=>{const T=o.uniToStrPos(P,E),L=R==null?1/0:o.uniToStrPos(P,R);return P.slice(T,L)};const h=(P,E,R)=>typeof P=="number"?R==null?P-E:Math.min(P,R)-E:i.uniSlice(P,E,R),p=P=>{let E=0,R=0;return{take:(A,H)=>{if(E===P.length)return A===-1?null:A;const W=P[E];let Z;if(typeof W=="number")return A===-1||W-R<=A?(Z=W-R,++E,R=0,Z):(R+=A,A);if(typeof W=="string"){if(A===-1||H==="i"||o.strPosToUni(W.slice(R))<=A)return Z=W.slice(R),++E,R=0,Z;{const G=R+o.uniToStrPos(W.slice(R),A);return Z=W.slice(R,G),R=G,Z}}else{if(A===-1||H==="d"||i.dlen(W.d)-R<=A)return Z={d:h(W.d,R)},++E,R=0,Z;{let G=h(W.d,R,R+A);return R+=A,{d:G}}}},peek:()=>P[E]}},g=P=>(P.length>0&&typeof P[P.length-1]=="number"&&P.pop(),P);function y(P,E,R){if(R!=="left"&&R!=="right")throw Error("side ("+R+") must be 'left' or 'right'");s(P),s(E);const T=[],L=f(T),{take:A,peek:H}=p(P);for(let Z=0;Z<E.length;Z++){const G=E[Z];let K,U;switch(typeof G){case"number":for(K=G;K>0;)U=A(K,"i"),L(U),typeof U!="string"&&(K-=d(U));break;case"string":R==="left"&&typeof H()=="string"&&L(A(-1)),L(o.strPosToUni(G));break;case"object":for(K=i.dlen(G.d);K>0;)switch(U=A(K,"i"),typeof U){case"number":K-=U;break;case"string":L(U);break;case"object":K-=i.dlen(U.d)}break}}let W;for(;W=A(-1);)L(W);return g(T)}function O(P,E){s(P),s(E);const R=[],T=f(R),{take:L}=p(P);for(let H=0;H<E.length;H++){const W=E[H];let Z,G;switch(typeof W){case"number":for(Z=W;Z>0;)G=L(Z,"d"),T(G),typeof G!="object"&&(Z-=d(G));break;case"string":T(W);break;case"object":Z=i.dlen(W.d);let K=0;for(;K<Z;)switch(G=L(Z-K,"d"),typeof G){case"number":T({d:h(W.d,K,K+G)}),K+=G;break;case"string":K+=o.strPosToUni(G);break;case"object":T(G)}break}}let A;for(;A=L(-1);)T(A);return g(R)}const b=(P,E)=>{let R=0;for(let T=0;T<E.length&&P>R;T++){const L=E[T];switch(typeof L){case"number":{R+=L;break}case"string":const A=o.strPosToUni(L);R+=A,P+=A;break;case"object":P-=Math.min(i.dlen(L.d),P-R);break}}return P},S=(P,E)=>typeof P=="number"?b(P,E):P.map(R=>b(R,E));function k(P,E,R){return l(P,(T,L)=>typeof T=="object"&&typeof T.d=="number"?{d:R.slice(E,L,L+T.d)}:T)}function x(P){return l(P,E=>{switch(typeof E){case"object":if(typeof E.d=="number")throw Error("Cannot invert text op: Deleted characters missing from operation. makeInvertible must be called first.");return E.d;case"string":return{d:E};case"number":return E}})}function _(P){return l(P,E=>typeof E=="object"&&typeof E.d=="string"?{d:o.strPosToUni(E.d)}:E)}function I(P){let E=!0;return a(P,R=>{typeof R=="object"&&typeof R.d=="number"&&(E=!1)}),E}function M(P){return{name:"text-unicode",uri:"http://sharejs.org/types/text-unicode",trim:g,normalize:c,checkOp:s,create(E=""){if(typeof E!="string")throw Error("Initial data must be a string");return P.create(E)},apply(E,R){s(R);const T=P.builder(E);for(let L=0;L<R.length;L++){const A=R[L];switch(typeof A){case"number":T.skip(A);break;case"string":T.append(A);break;case"object":T.del(i.dlen(A.d));break}}return T.build()},transform:y,compose:O,transformPosition:b,transformSelection:S,isInvertible:I,makeInvertible(E,R){return k(E,R,P)},stripInvertible:_,invert:x,invertWithDoc(E,R){return x(k(E,R,P))},isNoop:E=>E.length===0}}i.default=M},{unicount:34}],33:[function(n,r,i){var o=r.exports={},s,a;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?a=clearTimeout:a=u}catch{a=u}})();function c(k){if(s===setTimeout)return setTimeout(k,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(k,0);try{return s(k,0)}catch{try{return s.call(null,k,0)}catch{return s.call(this,k,0)}}}function f(k){if(a===clearTimeout)return clearTimeout(k);if((a===u||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(k);try{return a(k)}catch{try{return a.call(null,k)}catch{return a.call(this,k)}}}var d=[],h=!1,p,g=-1;function y(){!h||!p||(h=!1,p.length?d=p.concat(d):g=-1,d.length&&O())}function O(){if(!h){var k=c(y);h=!0;for(var x=d.length;x;){for(p=d,d=[];++g<x;)p&&p[g].run();g=-1,x=d.length}p=null,h=!1,f(k)}}o.nextTick=function(k){var x=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)x[_-1]=arguments[_];d.push(new b(k,x)),d.length===1&&!h&&c(O)};function b(k,x){this.fun=k,this.array=x}b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function S(){}o.on=S,o.addListener=S,o.once=S,o.off=S,o.removeListener=S,o.removeAllListeners=S,o.emit=S,o.prependListener=S,o.prependOnceListener=S,o.listeners=function(k){return[]},o.binding=function(k){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(k){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],34:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0}),i.uniToStrPos=i.strPosToUni=void 0,i.strPosToUni=(o,s=o.length)=>{let a=0,l=0;for(;l<s;l++){const u=o.charCodeAt(l);u>=55296&&u<=57343&&(a++,l++)}if(l!==s)throw Error("Invalid offset - splits unicode bytes");return l-a},i.uniToStrPos=(o,s)=>{let a=0;for(;s>0;s--){const l=o.charCodeAt(a);a+=l>=55296&&l<=57343?2:1}return a}},{}],35:[function(n,r,i){arguments[4][3][0].apply(i,arguments)},{dup:3}],36:[function(n,r,i){var o=n("is-arguments"),s=n("is-generator-function"),a=n("which-typed-array"),l=n("is-typed-array");function u(V){return V.call.bind(V)}var c=typeof BigInt<"u",f=typeof Symbol<"u",d=u(Object.prototype.toString),h=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),g=u(Boolean.prototype.valueOf);if(c)var y=u(BigInt.prototype.valueOf);if(f)var O=u(Symbol.prototype.valueOf);function b(V,ye){if(typeof V!="object")return!1;try{return ye(V),!0}catch{return!1}}i.isArgumentsObject=o,i.isGeneratorFunction=s,i.isTypedArray=l;function S(V){return typeof Promise<"u"&&V instanceof Promise||V!==null&&typeof V=="object"&&typeof V.then=="function"&&typeof V.catch=="function"}i.isPromise=S;function k(V){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(V):l(V)||z(V)}i.isArrayBufferView=k;function x(V){return a(V)==="Uint8Array"}i.isUint8Array=x;function _(V){return a(V)==="Uint8ClampedArray"}i.isUint8ClampedArray=_;function I(V){return a(V)==="Uint16Array"}i.isUint16Array=I;function M(V){return a(V)==="Uint32Array"}i.isUint32Array=M;function P(V){return a(V)==="Int8Array"}i.isInt8Array=P;function E(V){return a(V)==="Int16Array"}i.isInt16Array=E;function R(V){return a(V)==="Int32Array"}i.isInt32Array=R;function T(V){return a(V)==="Float32Array"}i.isFloat32Array=T;function L(V){return a(V)==="Float64Array"}i.isFloat64Array=L;function A(V){return a(V)==="BigInt64Array"}i.isBigInt64Array=A;function H(V){return a(V)==="BigUint64Array"}i.isBigUint64Array=H;function W(V){return d(V)==="[object Map]"}W.working=typeof Map<"u"&&W(new Map);function Z(V){return typeof Map>"u"?!1:W.working?W(V):V instanceof Map}i.isMap=Z;function G(V){return d(V)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function K(V){return typeof Set>"u"?!1:G.working?G(V):V instanceof Set}i.isSet=K;function U(V){return d(V)==="[object WeakMap]"}U.working=typeof WeakMap<"u"&&U(new WeakMap);function B(V){return typeof WeakMap>"u"?!1:U.working?U(V):V instanceof WeakMap}i.isWeakMap=B;function Y(V){return d(V)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function j(V){return Y(V)}i.isWeakSet=j;function ne(V){return d(V)==="[object ArrayBuffer]"}ne.working=typeof ArrayBuffer<"u"&&ne(new ArrayBuffer);function ee(V){return typeof ArrayBuffer>"u"?!1:ne.working?ne(V):V instanceof ArrayBuffer}i.isArrayBuffer=ee;function ue(V){return d(V)==="[object DataView]"}ue.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ue(new DataView(new ArrayBuffer(1),0,1));function z(V){return typeof DataView>"u"?!1:ue.working?ue(V):V instanceof DataView}i.isDataView=z;var X=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(V){return d(V)==="[object SharedArrayBuffer]"}function fe(V){return typeof X>"u"?!1:(typeof J.working>"u"&&(J.working=J(new X)),J.working?J(V):V instanceof X)}i.isSharedArrayBuffer=fe;function we(V){return d(V)==="[object AsyncFunction]"}i.isAsyncFunction=we;function Te(V){return d(V)==="[object Map Iterator]"}i.isMapIterator=Te;function Re(V){return d(V)==="[object Set Iterator]"}i.isSetIterator=Re;function Q(V){return d(V)==="[object Generator]"}i.isGeneratorObject=Q;function ve(V){return d(V)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=ve;function ge(V){return b(V,h)}i.isNumberObject=ge;function ie(V){return b(V,p)}i.isStringObject=ie;function oe(V){return b(V,g)}i.isBooleanObject=oe;function me(V){return c&&b(V,y)}i.isBigIntObject=me;function $e(V){return f&&b(V,O)}i.isSymbolObject=$e;function Fe(V){return ge(V)||ie(V)||oe(V)||me(V)||$e(V)}i.isBoxedPrimitive=Fe;function Pe(V){return typeof Uint8Array<"u"&&(ee(V)||fe(V))}i.isAnyArrayBuffer=Pe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(V){Object.defineProperty(i,V,{enumerable:!1,value:function(){throw new Error(V+" is not supported in userland")}})})},{"is-arguments":18,"is-generator-function":20,"is-typed-array":21,"which-typed-array":38}],37:[function(n,r,i){(function(o){(function(){var s=Object.getOwnPropertyDescriptors||function(X){for(var J=Object.keys(X),fe={},we=0;we<J.length;we++)fe[J[we]]=Object.getOwnPropertyDescriptor(X,J[we]);return fe},a=/%[sdj%]/g;i.format=function(z){if(!E(z)){for(var X=[],J=0;J<arguments.length;J++)X.push(f(arguments[J]));return X.join(" ")}for(var J=1,fe=arguments,we=fe.length,Te=String(z).replace(a,function(Q){if(Q==="%%")return"%";if(J>=we)return Q;switch(Q){case"%s":return String(fe[J++]);case"%d":return Number(fe[J++]);case"%j":try{return JSON.stringify(fe[J++])}catch{return"[Circular]"}default:return Q}}),Re=fe[J];J<we;Re=fe[++J])I(Re)||!A(Re)?Te+=" "+Re:Te+=" "+f(Re);return Te},i.deprecate=function(z,X){if(typeof o<"u"&&o.noDeprecation===!0)return z;if(typeof o>"u")return function(){return i.deprecate(z,X).apply(this,arguments)};var J=!1;function fe(){if(!J){if(o.throwDeprecation)throw new Error(X);o.traceDeprecation?console.trace(X):console.error(X),J=!0}return z.apply(this,arguments)}return fe};var l={},u=/^$/;if(o.env.NODE_DEBUG){var c=o.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}i.debuglog=function(z){if(z=z.toUpperCase(),!l[z])if(u.test(z)){var X=o.pid;l[z]=function(){var J=i.format.apply(i,arguments);console.error("%s %d: %s",z,X,J)}}else l[z]=function(){};return l[z]};function f(z,X){var J={seen:[],stylize:h};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),_(X)?J.showHidden=X:X&&i._extend(J,X),T(J.showHidden)&&(J.showHidden=!1),T(J.depth)&&(J.depth=2),T(J.colors)&&(J.colors=!1),T(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=d),g(J,z,J.depth)}i.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(z,X){var J=f.styles[X];return J?"\x1B["+f.colors[J][0]+"m"+z+"\x1B["+f.colors[J][1]+"m":z}function h(z,X){return z}function p(z){var X={};return z.forEach(function(J,fe){X[J]=!0}),X}function g(z,X,J){if(z.customInspect&&X&&Z(X.inspect)&&X.inspect!==i.inspect&&!(X.constructor&&X.constructor.prototype===X)){var fe=X.inspect(J,z);return E(fe)||(fe=g(z,fe,J)),fe}var we=y(z,X);if(we)return we;var Te=Object.keys(X),Re=p(Te);if(z.showHidden&&(Te=Object.getOwnPropertyNames(X)),W(X)&&(Te.indexOf("message")>=0||Te.indexOf("description")>=0))return O(X);if(Te.length===0){if(Z(X)){var Q=X.name?": "+X.name:"";return z.stylize("[Function"+Q+"]","special")}if(L(X))return z.stylize(RegExp.prototype.toString.call(X),"regexp");if(H(X))return z.stylize(Date.prototype.toString.call(X),"date");if(W(X))return O(X)}var ve="",ge=!1,ie=["{","}"];if(x(X)&&(ge=!0,ie=["[","]"]),Z(X)){var oe=X.name?": "+X.name:"";ve=" [Function"+oe+"]"}if(L(X)&&(ve=" "+RegExp.prototype.toString.call(X)),H(X)&&(ve=" "+Date.prototype.toUTCString.call(X)),W(X)&&(ve=" "+O(X)),Te.length===0&&(!ge||X.length==0))return ie[0]+ve+ie[1];if(J<0)return L(X)?z.stylize(RegExp.prototype.toString.call(X),"regexp"):z.stylize("[Object]","special");z.seen.push(X);var me;return ge?me=b(z,X,J,Re,Te):me=Te.map(function($e){return S(z,X,J,Re,$e,ge)}),z.seen.pop(),k(me,ve,ie)}function y(z,X){if(T(X))return z.stylize("undefined","undefined");if(E(X)){var J="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return z.stylize(J,"string")}if(P(X))return z.stylize(""+X,"number");if(_(X))return z.stylize(""+X,"boolean");if(I(X))return z.stylize("null","null")}function O(z){return"["+Error.prototype.toString.call(z)+"]"}function b(z,X,J,fe,we){for(var Te=[],Re=0,Q=X.length;Re<Q;++Re)j(X,String(Re))?Te.push(S(z,X,J,fe,String(Re),!0)):Te.push("");return we.forEach(function(ve){ve.match(/^\d+$/)||Te.push(S(z,X,J,fe,ve,!0))}),Te}function S(z,X,J,fe,we,Te){var Re,Q,ve;if(ve=Object.getOwnPropertyDescriptor(X,we)||{value:X[we]},ve.get?ve.set?Q=z.stylize("[Getter/Setter]","special"):Q=z.stylize("[Getter]","special"):ve.set&&(Q=z.stylize("[Setter]","special")),j(fe,we)||(Re="["+we+"]"),Q||(z.seen.indexOf(ve.value)<0?(I(J)?Q=g(z,ve.value,null):Q=g(z,ve.value,J-1),Q.indexOf(`
68
+ `)+" "+ee[1]:ee[0]+ne+" "+j.join(", ")+" "+ee[1]}function k(j){return Array.isArray(j)}i.isArray=k;function x(j){return typeof j=="boolean"}i.isBoolean=x;function _(j){return j===null}i.isNull=_;function I(j){return j==null}i.isNullOrUndefined=I;function M(j){return typeof j=="number"}i.isNumber=M;function P(j){return typeof j=="string"}i.isString=P;function E(j){return typeof j=="symbol"}i.isSymbol=E;function R(j){return j===void 0}i.isUndefined=R;function T(j){return L(j)&&G(j)==="[object RegExp]"}i.isRegExp=T;function L(j){return typeof j=="object"&&j!==null}i.isObject=L;function A(j){return L(j)&&G(j)==="[object Date]"}i.isDate=A;function H(j){return L(j)&&(G(j)==="[object Error]"||j instanceof Error)}i.isError=H;function W(j){return typeof j=="function"}i.isFunction=W;function Z(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}i.isPrimitive=Z,i.isBuffer=n("./support/isBuffer");function G(j){return Object.prototype.toString.call(j)}function K(j){return j<10?"0"+j.toString(10):j.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(){var j=new Date,ne=[K(j.getHours()),K(j.getMinutes()),K(j.getSeconds())].join(":");return[j.getDate(),U[j.getMonth()],ne].join(" ")}i.log=function(){console.log("%s - %s",B(),i.format.apply(i,arguments))},i.inherits=n("inherits"),i._extend=function(j,ne){if(!ne||!L(ne))return j;for(var ee=Object.keys(ne),ue=ee.length;ue--;)j[ee[ue]]=ne[ee[ue]];return j};function Y(j,ne){return Object.prototype.hasOwnProperty.call(j,ne)}}).call(this)}).call(this,n("_process"),typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":3,_process:33,inherits:2}],5:[function(n,r,i){(function(o){(function(){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a=typeof globalThis>"u"?o:globalThis;r.exports=function(){for(var u=[],c=0;c<s.length;c++)typeof a[s[c]]=="function"&&(u[u.length]=s[c]);return u}}).call(this)}).call(this,typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],6:[function(n,r,i){var o=n("get-intrinsic"),s=n("./"),a=s(o("String.prototype.indexOf"));r.exports=function(u,c){var f=o(u,!!c);return typeof f=="function"&&a(u,".prototype.")>-1?s(f):f}},{"./":7,"get-intrinsic":11}],7:[function(n,r,i){var o=n("function-bind"),s=n("get-intrinsic"),a=s("%Function.prototype.apply%"),l=s("%Function.prototype.call%"),u=s("%Reflect.apply%",!0)||o.call(l,a),c=s("%Object.getOwnPropertyDescriptor%",!0),f=s("%Object.defineProperty%",!0),d=s("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}r.exports=function(g){var y=u(o,l,arguments);if(c&&f){var O=c(y,"length");O.configurable&&f(y,"length",{value:1+d(0,g.length-(arguments.length-1))})}return y};var h=function(){return u(o,a,arguments)};f?f(r.exports,"apply",{value:h}):r.exports.apply=h},{"function-bind":10,"get-intrinsic":11}],8:[function(n,r,i){var o=n("is-callable"),s=Object.prototype.toString,a=Object.prototype.hasOwnProperty,l=function(h,p,g){for(var y=0,O=h.length;y<O;y++)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},u=function(h,p,g){for(var y=0,O=h.length;y<O;y++)g==null?p(h.charAt(y),y,h):p.call(g,h.charAt(y),y,h)},c=function(h,p,g){for(var y in h)a.call(h,y)&&(g==null?p(h[y],y,h):p.call(g,h[y],y,h))},f=function(h,p,g){if(!o(p))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=g),s.call(h)==="[object Array]"?l(h,p,y):typeof h=="string"?u(h,p,y):c(h,p,y)};r.exports=f},{"is-callable":19}],9:[function(n,r,i){var o="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,a=Math.max,l="[object Function]",u=function(h,p){for(var g=[],y=0;y<h.length;y+=1)g[y]=h[y];for(var O=0;O<p.length;O+=1)g[O+h.length]=p[O];return g},c=function(h,p){for(var g=[],y=p,O=0;y<h.length;y+=1,O+=1)g[O]=h[y];return g},f=function(d,h){for(var p="",g=0;g<d.length;g+=1)p+=d[g],g+1<d.length&&(p+=h);return p};r.exports=function(h){var p=this;if(typeof p!="function"||s.apply(p)!==l)throw new TypeError(o+p);for(var g=c(arguments,1),y,O=function(){if(this instanceof y){var _=p.apply(this,u(g,arguments));return Object(_)===_?_:this}return p.apply(h,u(g,arguments))},b=a(0,p.length-g.length),S=[],k=0;k<b;k++)S[k]="$"+k;if(y=Function("binder","return function ("+f(S,",")+"){ return binder.apply(this,arguments); }")(O),p.prototype){var x=function(){};x.prototype=p.prototype,y.prototype=new x,x.prototype=null}return y}},{}],10:[function(n,r,i){var o=n("./implementation");r.exports=Function.prototype.bind||o},{"./implementation":9}],11:[function(n,r,i){var o,s=SyntaxError,a=Function,l=TypeError,u=function(W){try{return a('"use strict"; return ('+W+").constructor;")()}catch{}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch{c=null}var f=function(){throw new l},d=c?function(){try{return arguments.callee,f}catch{try{return c(arguments,"callee").get}catch{return f}}}():f,h=n("has-symbols")(),p=Object.getPrototypeOf||function(W){return W.__proto__},g={},y=typeof Uint8Array>"u"?o:p(Uint8Array),O={"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":h?p([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?o:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?p(p([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map>"u"||!h?o:p(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set>"u"||!h?o:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?p(""[Symbol.iterator]()):o,"%Symbol%":h?Symbol:o,"%SyntaxError%":s,"%ThrowTypeError%":d,"%TypedArray%":y,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet};try{null.error}catch(W){var b=p(p(W));O["%Error.prototype%"]=b}var S=function W(Z){var G;if(Z==="%AsyncFunction%")G=u("async function () {}");else if(Z==="%GeneratorFunction%")G=u("function* () {}");else if(Z==="%AsyncGeneratorFunction%")G=u("async function* () {}");else if(Z==="%AsyncGenerator%"){var K=W("%AsyncGeneratorFunction%");K&&(G=K.prototype)}else if(Z==="%AsyncIteratorPrototype%"){var U=W("%AsyncGenerator%");U&&(G=p(U.prototype))}return O[Z]=G,G},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=n("function-bind"),_=n("has"),I=x.call(Function.call,Array.prototype.concat),M=x.call(Function.apply,Array.prototype.splice),P=x.call(Function.call,String.prototype.replace),E=x.call(Function.call,String.prototype.slice),R=x.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,A=function(Z){var G=E(Z,0,1),K=E(Z,-1);if(G==="%"&&K!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(K==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var U=[];return P(Z,T,function(B,Y,j,ne){U[U.length]=j?P(ne,L,"$1"):Y||B}),U},H=function(Z,G){var K=Z,U;if(_(k,K)&&(U=k[K],K="%"+U[0]+"%"),_(O,K)){var B=O[K];if(B===g&&(B=S(K)),typeof B>"u"&&!G)throw new l("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:U,name:K,value:B}}throw new s("intrinsic "+Z+" does not exist!")};r.exports=function(Z,G){if(typeof Z!="string"||Z.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof G!="boolean")throw new l('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var K=A(Z),U=K.length>0?K[0]:"",B=H("%"+U+"%",G),Y=B.name,j=B.value,ne=!1,ee=B.alias;ee&&(U=ee[0],M(K,I([0,1],ee)));for(var ue=1,z=!0;ue<K.length;ue+=1){var X=K[ue],J=E(X,0,1),fe=E(X,-1);if((J==='"'||J==="'"||J==="`"||fe==='"'||fe==="'"||fe==="`")&&J!==fe)throw new s("property names with quotes must have matching quotes");if((X==="constructor"||!z)&&(ne=!0),U+="."+X,Y="%"+U+"%",_(O,Y))j=O[Y];else if(j!=null){if(!(X in j)){if(!G)throw new l("base intrinsic for "+Z+" exists, but the property is not available.");return}if(c&&ue+1>=K.length){var we=c(j,X);z=!!we,z&&"get"in we&&!("originalValue"in we.get)?j=we.get:j=j[X]}else z=_(j,X),j=j[X];z&&!ne&&(O[Y]=j)}}return j}},{"function-bind":10,has:16,"has-symbols":13}],12:[function(n,r,i){var o=n("get-intrinsic"),s=o("%Object.getOwnPropertyDescriptor%",!0);if(s)try{s([],"length")}catch{s=null}r.exports=s},{"get-intrinsic":11}],13:[function(n,r,i){var o=typeof Symbol<"u"&&Symbol,s=n("./shams");r.exports=function(){return typeof o!="function"||typeof Symbol!="function"||typeof o("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()}},{"./shams":14}],14:[function(n,r,i){r.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},a=Symbol("test"),l=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var u=42;s[a]=u;for(a in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var c=Object.getOwnPropertySymbols(s);if(c.length!==1||c[0]!==a||!Object.prototype.propertyIsEnumerable.call(s,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(s,a);if(f.value!==u||f.enumerable!==!0)return!1}return!0}},{}],15:[function(n,r,i){var o=n("has-symbols/shams");r.exports=function(){return o()&&!!Symbol.toStringTag}},{"has-symbols/shams":14}],16:[function(n,r,i){var o=n("function-bind");r.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":10}],17:[function(n,r,i){typeof Object.create=="function"?r.exports=function(s,a){a&&(s.super_=a,s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(s,a){if(a){s.super_=a;var l=function(){};l.prototype=a.prototype,s.prototype=new l,s.prototype.constructor=s}}},{}],18:[function(n,r,i){var o=n("has-tostringtag/shams")(),s=n("call-bind/callBound"),a=s("Object.prototype.toString"),l=function(d){return o&&d&&typeof d=="object"&&Symbol.toStringTag in d?!1:a(d)==="[object Arguments]"},u=function(d){return l(d)?!0:d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},c=function(){return l(arguments)}();l.isLegacyArguments=u,r.exports=c?l:u},{"call-bind/callBound":6,"has-tostringtag/shams":15}],19:[function(n,r,i){var o=Function.prototype.toString,s=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,l;if(typeof s=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw l}}),l={},s(function(){throw 42},null,a)}catch(I){I!==l&&(s=null)}else s=null;var u=/^\s*class\b/,c=function(M){try{var P=o.call(M);return u.test(P)}catch{return!1}},f=function(M){try{return c(M)?!1:(o.call(M),!0)}catch{return!1}},d=Object.prototype.toString,h="[object Object]",p="[object Function]",g="[object GeneratorFunction]",y="[object HTMLAllCollection]",O="[object HTML document.all class]",b="[object HTMLCollection]",S=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var _=document.all;d.call(_)===d.call(document.all)&&(x=function(M){if((k||!M)&&(typeof M>"u"||typeof M=="object"))try{var P=d.call(M);return(P===y||P===O||P===b||P===h)&&M("")==null}catch{}return!1})}r.exports=s?function(M){if(x(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{s(M,null,a)}catch(P){if(P!==l)return!1}return!c(M)&&f(M)}:function(M){if(x(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(S)return f(M);if(c(M))return!1;var P=d.call(M);return P!==p&&P!==g&&!/^\[object HTML/.test(P)?!1:f(M)}},{}],20:[function(n,r,i){var o=Object.prototype.toString,s=Function.prototype.toString,a=/^\s*(?:function)?\*/,l=n("has-tostringtag/shams")(),u=Object.getPrototypeOf,c=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch{}},f;r.exports=function(h){if(typeof h!="function")return!1;if(a.test(s.call(h)))return!0;if(!l){var p=o.call(h);return p==="[object GeneratorFunction]"}if(!u)return!1;if(typeof f>"u"){var g=c();f=g?u(g):!1}return u(h)===f}},{"has-tostringtag/shams":15}],21:[function(n,r,i){(function(o){(function(){var s=n("for-each"),a=n("available-typed-arrays"),l=n("call-bind/callBound"),u=l("Object.prototype.toString"),c=n("has-tostringtag/shams")(),f=n("gopd"),d=typeof globalThis>"u"?o:globalThis,h=a(),p=l("Array.prototype.indexOf",!0)||function(k,x){for(var _=0;_<k.length;_+=1)if(k[_]===x)return _;return-1},g=l("String.prototype.slice"),y={},O=Object.getPrototypeOf;c&&f&&O&&s(h,function(S){var k=new d[S];if(Symbol.toStringTag in k){var x=O(k),_=f(x,Symbol.toStringTag);if(!_){var I=O(x);_=f(I,Symbol.toStringTag)}y[S]=_.get}});var b=function(k){var x=!1;return s(y,function(_,I){if(!x)try{x=_.call(k)===I}catch{}}),x};r.exports=function(k){if(!k||typeof k!="object")return!1;if(!c||!(Symbol.toStringTag in k)){var x=g(u(k),8,-1);return p(h,x)>-1}return f?b(k):!1}}).call(this)}).call(this,typeof Cr<"u"?Cr:typeof self<"u"?self:typeof window<"u"?window:{})},{"available-typed-arrays":5,"call-bind/callBound":6,"for-each":8,gopd:12,"has-tostringtag/shams":15}],22:[function(n,r,i){var o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function l(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function u(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var f={},d=0;d<10;d++)f["_"+String.fromCharCode(d)]=d;var h=Object.getOwnPropertyNames(f).map(function(g){return f[g]});if(h.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(g){p[g]=g}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}r.exports=u()?Object.assign:function(c,f){for(var d,h=l(c),p,g=1;g<arguments.length;g++){d=Object(arguments[g]);for(var y in d)s.call(d,y)&&(h[y]=d[y]);if(o){p=o(d);for(var O=0;O<p.length;O++)a.call(d,p[O])&&(h[p[O]]=d[p[O]])}}return h}},{}],23:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0}),i.eachChildOf=i.advancer=i.readCursor=i.writeCursor=i.WriteCursor=i.ReadCursor=i.isValidPathItem=void 0;function o(O,b){if(!O)throw new Error(b)}const s=O=>O!=null&&typeof O=="object"&&!Array.isArray(O),a=(O,b)=>typeof O==typeof b?O>b:typeof O=="string"&&typeof b=="number";function l(O,b){for(let S in O){const k=S;b.write(k,O[k])}}const u=O=>typeof O=="number"||typeof O=="string"&&O!=="__proto__";i.isValidPathItem=u;class c{constructor(b=null){this.parents=[],this.indexes=[],this.lcIdx=-1,this.idx=-1,this.container=b}ascend(){o(this.parents.length===this.indexes.length/2),this.idx===0?this.parents.length?(this.lcIdx=this.indexes.pop(),this.container=this.parents.pop(),this.idx=this.indexes.pop()):(this.lcIdx=0,this.idx=-1):(o(this.idx>0),this.idx--,s(this.container[this.idx])&&this.idx--)}getPath(){const b=[];let S=this.container,k=this.parents.length-1,x=this.idx;for(;x>=0;)b.unshift(S[x]),x===0?(x=this.indexes[k*2],S=this.parents[k--]):x-=s(S[x-1])?2:1;return b}}class f extends c{get(){return this.container?this.container.slice(this.idx+1):null}getKey(){return o(this.container!=null,"Invalid call to getKey before cursor descended"),this.container[this.idx]}getComponent(){let b;return this.container&&this.container.length>this.idx+1&&s(b=this.container[this.idx+1])?b:null}descendFirst(){let b=this.idx+1;if(!this.container||b>=this.container.length||s(this.container[b])&&b+1>=this.container.length)return!1;s(this.container[b])&&b++;const S=this.container[b];return Array.isArray(S)?(this.indexes.push(this.idx),this.parents.push(this.container),this.indexes.push(b),this.idx=0,this.container=S):this.idx=b,!0}nextSibling(){if(o(this.parents.length===this.indexes.length/2),this.idx>0||this.parents.length===0)return!1;const b=this.indexes[this.indexes.length-1]+1,S=this.parents[this.parents.length-1];return b>=S.length?!1:(o(!isNaN(b)),this.indexes[this.indexes.length-1]=b,this.container=S[b],!0)}_init(b,S,k,x){this.container=b,this.idx=S,this.parents=k.slice(),this.indexes=x.slice()}clone(){const b=new f;return b._init(this.container,this.idx,this.parents,this.indexes),b}*[Symbol.iterator](){if(this.descendFirst()){do yield this.getKey();while(this.nextSibling());this.ascend()}}traverse(b,S){const k=this.getComponent();k&&S(k,b);for(const x of this)b&&b.descend(x),this.traverse(b,S),b&&b.ascend()}eachPick(b,S){this.traverse(b,(k,x)=>{k.p!=null&&S(k.p,x)})}eachDrop(b,S){this.traverse(b,(k,x)=>{k.d!=null&&S(k.d,x)})}}i.ReadCursor=f;class d extends c{constructor(b=null){super(b),this.pendingDescent=[],this._op=b}flushDescent(){o(this.parents.length===this.indexes.length/2),this.container===null&&(this._op=this.container=[]);for(let b=0;b<this.pendingDescent.length;b++){const S=this.pendingDescent[b];let k=this.idx+1;if(k<this.container.length&&s(this.container[k])&&k++,o(k===this.container.length||!s(this.container[k])),k===this.container.length)this.container.push(S),this.idx=k;else if(this.container[k]===S)this.idx=k;else{if(!Array.isArray(this.container[k])){const x=this.container.splice(k,this.container.length-k);this.container.push(x),this.lcIdx>-1&&(this.lcIdx=k)}for(this.indexes.push(this.idx),this.parents.push(this.container),this.lcIdx!==-1&&(o(a(S,this.container[this.lcIdx][0])),k=this.lcIdx+1,this.lcIdx=-1);k<this.container.length&&a(S,this.container[k][0]);)k++;if(this.indexes.push(k),this.idx=0,k<this.container.length&&this.container[k][0]===S)this.container=this.container[k];else{const x=[S];this.container.splice(k,0,x),this.container=x}}}this.pendingDescent.length=0}reset(){this.lcIdx=-1}getComponent(){this.flushDescent();const b=this.idx+1;if(b<this.container.length&&s(this.container[b]))return this.container[b];{const S={};return this.container.splice(b,0,S),S}}write(b,S){const k=this.getComponent();o(k[b]==null||k[b]===S,"Internal consistency error: Overwritten component. File a bug"),k[b]=S}get(){return this._op}descend(b){if(!(0,i.isValidPathItem)(b))throw Error("Invalid JSON key");this.pendingDescent.push(b)}descendPath(b){return this.pendingDescent.push(...b),this}ascend(){this.pendingDescent.length?this.pendingDescent.pop():super.ascend()}mergeTree(b,S=l){if(b===null)return;if(o(Array.isArray(b)),b===this._op)throw Error("Cannot merge into my own tree");const k=this.lcIdx,x=this.parents.length;let _=0;for(let I=0;I<b.length;I++){const M=b[I];typeof M=="string"||typeof M=="number"?(_++,this.descend(M)):Array.isArray(M)?this.mergeTree(M,S):typeof M=="object"&&S(M,this)}for(;_--;)this.ascend();this.lcIdx=this.parents.length===x?k:-1}at(b,S){this.descendPath(b),S(this);for(let k=0;k<b.length;k++)this.ascend();return this}writeAtPath(b,S,k){return this.at(b,()=>this.write(S,k)),this.reset(),this}writeMove(b,S,k=0){return this.writeAtPath(b,"p",k).writeAtPath(S,"d",k)}getPath(){const b=super.getPath();return b.push(...this.pendingDescent),b}}i.WriteCursor=d;const h=()=>new d;i.writeCursor=h;const p=O=>new f(O);i.readCursor=p;function g(O,b,S){let k,x;x=k=O?O.descendFirst():!1;function _(I){let M;for(;x;){const P=M=O.getKey();if(I!=null){let E=!1;if(b&&typeof P=="number"&&(M=b(P,O.getComponent()),M<0&&(M=~M,E=!0)),a(M,I))return null;if(M===I&&!E)return O}S&&typeof M=="number"&&S(M,O.getComponent()),x=O.nextSibling()}return null}return _.end=()=>{k&&O.ascend()},_}i.advancer=g;function y(O,b,S){let k,x,_,I;for(k=x=O&&O.descendFirst(),_=I=b&&b.descendFirst();k||_;){let M=k?O.getKey():null,P=_?b.getKey():null;M!==null&&P!==null&&(a(P,M)?P=null:M!==P&&(M=null)),S(M??P,M!=null?O:null,P!=null?b:null),M!=null&&k&&(k=O.nextSibling()),P!=null&&_&&(_=b.nextSibling())}x&&O.ascend(),I&&b.ascend()}i.eachChildOf=y},{}],24:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0});function o(s){if(s===null)return null;if(Array.isArray(s))return s.map(o);if(typeof s=="object"){const a={};for(let l in s)a[l]=o(s[l]);return a}else return s}i.default=o},{}],25:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0});function o(l,u){if(Array.isArray(u))return!1;for(let c in l)if(!a(l[c],u[c]))return!1;for(let c in u)if(l[c]===void 0)return!1;return!0}function s(l,u){if(!Array.isArray(u)||l.length!==u.length)return!1;for(let c=0;c<l.length;c++)if(!a(l[c],u[c]))return!1;return!0}function a(l,u){return l===u?!0:l===null||u===null||typeof l!="object"||typeof u!="object"?!1:Array.isArray(l)?s(l,u):o(l,u)}i.default=a},{}],26:[function(n,r,i){var o=this&&this.__createBinding||(Object.create?function(u,c,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(c,f);(!h||("get"in h?!c.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(u,d,h)}:function(u,c,f,d){d===void 0&&(d=f),u[d]=c[f]}),s=this&&this.__exportStar||function(u,c){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&o(c,u,f)};Object.defineProperty(i,"__esModule",{value:!0}),i.ConflictType=i.WriteCursor=i.ReadCursor=void 0,s(n("./json1.release.js"),i);var a=n("./cursor.js");Object.defineProperty(i,"ReadCursor",{enumerable:!0,get:function(){return a.ReadCursor}}),Object.defineProperty(i,"WriteCursor",{enumerable:!0,get:function(){return a.WriteCursor}});var l=n("./types");Object.defineProperty(i,"ConflictType",{enumerable:!0,get:function(){return l.ConflictType}})},{"./cursor.js":23,"./json1.release.js":27,"./types":29}],27:[function(n,r,i){var o=this&&this.__importDefault||function(V){return V&&V.__esModule?V:{default:V}};Object.defineProperty(i,"__esModule",{value:!0}),i.editOp=i.replaceOp=i.insertOp=i.moveOp=i.removeOp=i.type=void 0;const s=o(n("./deepEqual.js")),a=o(n("./deepClone.js")),l=n("./cursor.js"),u=n("./types.js"),c=!0,f=()=>{};function d(V,ye){if(!V)throw new Error(ye)}let h=!1;i.type={name:"p",uri:"p",readCursor:l.readCursor,writeCursor:l.writeCursor,create:V=>V,isNoop:V=>V==null,setDebug(V){h=V,f.quiet=!V},registerSubtype:A,checkValidOp:Y,normalize:j,apply:ne,transformPosition:ue,transformPresence:z,compose:J,tryTransform:ie,transform:me,makeInvertible:Te,invert:fe,invertWithDoc:Re,RM_UNEXPECTED_CONTENT:u.ConflictType.RM_UNEXPECTED_CONTENT,DROP_COLLISION:u.ConflictType.DROP_COLLISION,BLACKHOLE:u.ConflictType.BLACKHOLE,transformNoConflict:(V,ye,_e)=>Pe(()=>!0,V,ye,_e),typeAllowingConflictsPred:V=>Object.assign(Object.assign({},i.type),{transform:(ye,_e,de)=>Pe(V,ye,_e,de)})};const p=V=>V?V.getComponent():null;function g(V){return V&&typeof V=="object"&&!Array.isArray(V)}const y=V=>Array.isArray(V)?V.slice():V!==null&&typeof V=="object"?Object.assign({},V):V,O=V=>V&&(V.p!=null||V.r!==void 0),b=V=>V&&(V.d!=null||V.i!==void 0),S=(V,ye=!0)=>(0,l.writeCursor)().writeAtPath(V,"r",ye).get();i.removeOp=S;const k=(V,ye)=>(0,l.writeCursor)().writeMove(V,ye).get();i.moveOp=k;const x=(V,ye)=>(0,l.writeCursor)().writeAtPath(V,"i",ye).get();i.insertOp=x;const _=(V,ye,_e)=>(0,l.writeCursor)().at(V,de=>{de.write("r",ye),de.write("i",_e)}).get();i.replaceOp=_;const I=(V,ye,_e,de=!1)=>(0,l.writeCursor)().at(V,Se=>K(Se,ye,_e,de)).get();function M(V,ye){return d(V!=null),typeof ye=="number"?(d(Array.isArray(V),"Invalid key - child is not an array"),(V=V.slice()).splice(ye,1)):(d(g(V),"Invalid key - child is not an object"),delete(V=Object.assign({},V))[ye]),V}function P(V,ye,_e){return typeof ye=="number"?(d(V!=null,"Container is missing for key"),d(Array.isArray(V),"Cannot use numerical key for object container"),d(V.length>=ye,"Cannot insert into out of bounds index"),V.splice(ye,0,_e)):(d(g(V),"Cannot insert into missing item"),d(V[ye]===void 0,"Trying to overwrite value at key. Your op needs to remove it first"),V[ye]=_e),_e}i.editOp=I;const E=(V,ye,_e)=>((V=y(V))[ye]=_e,V),R=(V,ye)=>V!=null&&(typeof ye=="number"?Array.isArray(V):typeof V=="object"),T=(V,ye)=>R(V,ye)?V[ye]:void 0,L={};function A(V){let ye=V.type?V.type:V;ye.name&&(L[ye.name]=ye),ye.uri&&(L[ye.uri]=ye)}const H=V=>{const ye=L[V];if(ye)return ye;throw Error("Missing type: "+V)};A(n("ot-text-unicode"));const W=(V,ye)=>V+ye;A({name:"number",apply:W,compose:W,invert:V=>-V,transform:V=>V});const Z=V=>V==null?null:V.et?H(V.et):V.es?L["text-unicode"]:V.ena!=null?L.number:null,G=V=>V.es?V.es:V.ena!=null?V.ena:V.e,K=(V,ye,_e,de=!1)=>{const[Se,Me]=typeof ye=="string"?[H(ye),ye]:[ye,ye.name];!de&&Se.isNoop&&Se.isNoop(_e)||(Me==="number"?V.write("ena",_e):Me==="text-unicode"?V.write("es",_e):(V.write("et",Me),V.write("e",_e)))};function U(V){d(typeof V=="number"),d(V>=0),d(V===(0|V))}function B(V){typeof V=="number"?U(V):d(typeof V=="string")}function Y(V){if(V===null)return;const ye=new Set,_e=new Set,de=Me=>{let et=!0,st=!1;for(let Le in Me){const at=Me[Le];if(et=!1,d(Le==="p"||Le==="r"||Le==="d"||Le==="i"||Le==="e"||Le==="es"||Le==="ena"||Le==="et","Invalid component item '"+Le+"'"),Le==="p")U(at),d(!ye.has(at)),ye.add(at),d(Me.r===void 0);else if(Le==="d")U(at),d(!_e.has(at)),_e.add(at),d(Me.i===void 0);else if(Le==="e"||Le==="es"||Le==="ena"){d(!st),st=!0;const We=Z(Me);d(We,"Missing type in edit"),We.checkValidOp&&We.checkValidOp(G(Me))}}d(!et)},Se=(Me,et,st)=>{if(!Array.isArray(Me))throw Error("Op must be null or a list");if(Me.length===0)throw Error("Empty descent");et||B(Me[0]);let Le=1,at=0,We=0;for(let dt=0;dt<Me.length;dt++){const wt=Me[dt];if(d(wt!=null),Array.isArray(wt)){const pt=Se(wt,!1);if(at){const It=typeof We,nt=typeof pt;It===nt?d(We<pt,"descent keys are not in order"):d(It==="number"&&nt==="string")}We=pt,at++,Le=3}else typeof wt=="object"?(d(Le===1,`Prev not scalar - instead ${Le}`),de(wt),Le=2):(d(Le!==3),B(wt),d((0,l.isValidPathItem)(wt),"Invalid path key"),Le=1)}return d(at!==1,"Operation makes multiple descents. Remove some []"),d(Le===2||Le===3),Me[0]};Se(V,!0),d(ye.size===_e.size,"Mismatched picks and drops in op");for(let Me=0;Me<ye.size;Me++)d(ye.has(Me)),d(_e.has(Me))}function j(V){let ye=0,_e=[];const de=(0,l.writeCursor)();return de.mergeTree(V,(Se,Me)=>{const et=Z(Se);if(et){const Le=G(Se);K(Me,et,et.normalize?et.normalize(Le):Le)}for(const Le of["r","p","i","d"])if(Se[Le]!==void 0){const at=Le==="p"||Le==="d"?(st=Se[Le],_e[st]==null&&(_e[st]=ye++),_e[st]):Se[Le];Me.write(Le,at)}var st}),de.get()}function ne(V,ye){if(f.quiet=!h,Y(ye),ye===null)return V;const _e=[];return V=function de(Se,Me){let et=Se,st=0,Le={root:Se},at=0,We=Le,dt="root";function wt(){for(;at<st;at++){let pt=Me[at];typeof pt!="object"&&(d(R(We,dt)),We=We[dt]=y(We[dt]),dt=pt)}}for(;st<Me.length;st++){const pt=Me[st];if(Array.isArray(pt)){const It=de(et,pt);It!==et&&It!==void 0&&(wt(),et=We[dt]=It)}else if(typeof pt=="object"){pt.d!=null?(wt(),et=P(We,dt,_e[pt.d])):pt.i!==void 0&&(wt(),et=P(We,dt,pt.i));const It=Z(pt);if(It)wt(),et=We[dt]=It.apply(et,G(pt));else if(pt.e!==void 0)throw Error("Subtype "+pt.et+" undefined")}else et=T(et,pt)}return Le.root}(V=function de(Se,Me){const et=[];let st=0;for(;st<Me.length;st++){const Le=Me[st];if(Array.isArray(Le))break;typeof Le!="object"&&(et.push(Se),Se=T(Se,Le))}for(let Le=Me.length-1;Le>=st;Le--)Se=de(Se,Me[Le]);for(--st;st>=0;st--){const Le=Me[st];if(typeof Le!="object"){const at=et.pop();Se=Se===T(at,Le)?at:Se===void 0?M(at,Le):E(at,Le,Se)}else O(Le)&&(d(Se!==void 0,"Cannot pick up or remove undefined"),Le.p!=null&&(_e[Le.p]=Se),Se=void 0)}return Se}(V,ye),ye)}const ee=()=>{};function ue(V,ye){V=V.slice(),Y(ye);const _e=(0,l.readCursor)(ye);let de,Se,Me=!1;const et=[];for(let Le=0;;Le++){const at=V[Le],We=_e.getComponent();if(We&&(We.r!==void 0?Me=!0:We.p!=null&&(Me=!1,de=We.p,Se=Le)),Le>=V.length)break;let dt=0;const wt=(0,l.advancer)(_e,void 0,(It,nt)=>{O(nt)&&dt++});et.unshift(wt);const pt=wt(at);if(typeof at=="number"&&(V[Le]-=dt),!pt)break}if(et.forEach(Le=>Le.end()),Me)return null;const st=()=>{let Le=0;if(de!=null){const at=_e.getPath();Le=at.length,V=at.concat(V.slice(Se))}for(c;Le<V.length;Le++){const at=V[Le],We=p(_e),dt=Z(We);if(dt){const nt=G(We);dt.transformPosition?V[Le]=dt.transformPosition(V[Le],nt):dt.transformCursor&&(V[Le]=dt.transformCursor(V[Le],nt));break}let wt=0;const pt=(0,l.advancer)(_e,(nt,Rt)=>b(Rt)?~(nt-wt):nt-wt,(nt,Rt)=>{b(Rt)&&wt++}),It=pt(at);if(typeof at=="number"&&(V[Le]+=wt),!It)break}};return de!=null?_e.eachDrop(null,Le=>{Le===de&&st()}):st(),V}function z(V,ye){if(!V||!V.start||!V.end)return null;const _e=ue(V.start,ye),de=ue(V.end,ye);return _e&&de?Object.assign(Object.assign({},V),{start:_e,end:de}):_e?Object.assign(Object.assign({},V),{start:_e,end:_e}):de?Object.assign(Object.assign({},V),{start:de,end:de}):null}const X=(V,ye,_e)=>{typeof ye=="number"?(d(Array.isArray(V)),d(ye<V.length)):(d(!Array.isArray(V)),d(V[ye]!==void 0)),_e===void 0?typeof ye=="number"?V.splice(ye,1):delete V[ye]:V[ye]=_e};function J(V,ye){if(Y(V),Y(ye),V==null)return ye;if(ye==null)return V;let _e=0;const de=(0,l.readCursor)(V),Se=(0,l.readCursor)(ye),Me=(0,l.writeCursor)(),et=[],st=[],Le=[],at=[],We=[],dt=[],wt=new Set;de.traverse(null,nt=>{nt.p!=null&&(Le[nt.p]=de.clone())}),Se.traverse(null,nt=>{nt.d!=null&&(at[nt.d]=Se.clone())});const pt=(0,l.writeCursor)();return function nt(Rt,un,Tt,qt,On,Tn,bn,Rn){d(un||Tt);const ir=p(un),pe=p(Tt),Ee=!!pe&&pe.r!==void 0,De=!!ir&&ir.i!==void 0,rt=ir?ir.d:null,ct=pe?pe.p:null,ht=(Tn||Ee)&&ct==null;if(ct!=null)qt=at[ct],bn=st[ct]=new l.WriteCursor;else if(pe&&pe.r!==void 0)qt=null;else{const Ct=p(qt);Ct&&Ct.d!=null&&(qt=null)}const Ve=p(qt);if(rt!=null)if(Rt=Le[rt],Rn=et[rt]=new l.WriteCursor,ht)Tn&&!Ee&&Rn.write("r",!0);else{const Ct=We[rt]=_e++;bn.write("d",Ct)}else if(ir&&ir.i!==void 0)Rt=null;else{const Ct=p(Rt);Ct&&Ct.p!=null&&(Rt=null)}let Ye;De?(d(On===void 0),Ye=ir.i):Ye=On;const Je=(ct==null?!De||Tn||Ee:Ye===void 0)?null:bn.getComponent();if(ct!=null){if(!(On!==void 0||De)){const Ct=rt!=null?We[rt]:_e++;dt[ct]=Ct,Rn.write("p",Ct)}}else Ee&&(De||On!==void 0||(pe.r,Rn.write("r",pe.r)));const Ze=ht?null:Z(ir),Ne=Z(Ve);if((Ze||Ne)&&(Ze&&Ze.name,Ne&&Ne.name),Ze&&Ne){d(Ze===Ne);const Ct=G(ir),ln=G(Ve),or=Ze.compose(Ct,ln);K(bn,Ze,or),wt.add(Ve)}else Ze?K(bn,Ze,G(ir)):Ne&&(K(bn,Ne,G(Ve)),wt.add(Ve));const lt=typeof Ye=="object"&&Ye!=null;let Pt=!1,Nt=0,hn=0,cn=0,Kt=0,sn=0;const nn=(0,l.advancer)(qt,(Ct,ln)=>b(ln)?Kt-Ct-1:Ct-Kt,(Ct,ln)=>{b(ln)&&Kt++}),Yt=(0,l.advancer)(Rt,(Ct,ln)=>O(ln)?Nt-Ct-1:Ct-Nt,(Ct,ln)=>{O(ln)&&Nt++});if((0,l.eachChildOf)(un,Tt,(Ct,ln,or)=>{let wn,fr,lr=Ct,ce=Ct,le=Ct;if(typeof Ct=="number"){let Ae=Ct+cn;fr=nn(Ae),ce=Ae+Kt;let ze=Ct+hn;wn=Yt(ze),b(p(fr))&&(wn=null),lr=ze+Nt,le=Ct+sn,d(lr>=0,"p1PickKey is negative"),d(ce>=0,"p2DropKey is negative");const bt=b(p(ln)),ot=O(p(or));(bt||ot&&!ht)&&sn--,bt&&hn--,ot&&cn--}else wn=Yt(Ct),fr=nn(Ct);Rn.descend(lr),bn.descend(ce);const Oe=lt&&!b(p(ln))?Ye[le]:void 0,Xe=nt(wn,ln,or,fr,Oe,ht,bn,Rn);lt&&!ht?Oe!==Xe&&(Pt||(Ye=Array.isArray(Ye)?Ye.slice():Object.assign({},Ye),Pt=!0),X(Ye,le,Xe)):d(Xe===void 0),bn.ascend(),Rn.ascend()}),Yt.end(),nn.end(),Je!=null)Je.i=Ye;else if(!Tn&&!Ee&&ct==null)return Ye}(de,de.clone(),Se,Se.clone(),void 0,!1,Me,pt),Me.reset(),Me.mergeTree(pt.get()),Me.reset(),Me.get(),et.map(nt=>nt.get()),st.map(nt=>nt.get()),de.traverse(Me,(nt,Rt)=>{const un=nt.p;if(un!=null){const Tt=We[un];Tt!=null&&Rt.write("p",Tt);const qt=et[un];qt&&qt.get(),qt&&Rt.mergeTree(qt.get())}else nt.r!==void 0&&Rt.write("r",nt.r)}),Me.reset(),Me.get(),Se.traverse(Me,(nt,Rt)=>{const un=nt.d;if(un!=null){const qt=dt[un];qt!=null&&Rt.write("d",qt);const On=st[un];On&&Rt.mergeTree(On.get())}else nt.i!==void 0&&Rt.write("i",nt.i);const Tt=Z(nt);Tt&&!wt.has(nt)&&K(Rt,Tt,G(nt))}),Me.get()}function fe(V){if(V==null)return null;const ye=new l.ReadCursor(V),_e=new l.WriteCursor;let de;const Se=[],Me=[];if(function st(Le,at,We){const dt=Le.getComponent();let wt,pt=!1;if(dt){dt.p!=null&&(at.write("d",dt.p),Se[dt.p]=Le.clone()),dt.r!==void 0&&at.write("i",dt.r),dt.d!=null&&(at.write("p",dt.d),We=void 0),dt.i!==void 0&&(We=wt=dt.i);const nt=Z(dt);nt&&(We===void 0?(de||(de=new Set),de.add(dt)):(G(dt),We=nt.apply(We,G(dt)),pt=!0))}let It=0;for(const nt of Le){at.descend(nt);const Rt=typeof nt=="number"?nt-It:nt,un=T(We,Rt);b(Le.getComponent())&&It++;const Tt=st(Le,at,un);if(We!==void 0&&Tt!==void 0){if(pt||(pt=!0,We=y(We)),!R(We,Rt))throw Error("Cannot modify child - invalid operation");We[Rt]=Tt}at.ascend()}if(wt===void 0)return pt?We:void 0;at.write("r",We)}(ye,_e,void 0),de){let st=function(Le,at,We){const dt=at.getComponent();if(dt){const nt=dt.d;if(nt!=null&&(Le=Se[nt],We=Me[nt]=(0,l.writeCursor)()),de.has(dt)){const Rt=Z(dt);if(!Rt.invert)throw Error(`Cannot invert subtype ${Rt.name}`);K(We,Rt,Rt.invert(G(dt)))}}let wt=0,pt=0;const It=(0,l.advancer)(Le,(nt,Rt)=>O(Rt)?wt-nt-1:nt-wt,(nt,Rt)=>{O(Rt)&&wt++});for(const nt of at)if(typeof nt=="number"){const Rt=nt-pt,un=It(Rt),Tt=Rt+wt;We.descend(Tt),st(un,at,We),b(at.getComponent())&&pt++,We.ascend()}else We.descend(nt),st(It(nt),at,We),We.ascend();It.end()};_e.reset(),st(ye.clone(),ye,_e),Me.length&&(_e.reset(),ye.traverse(_e,(Le,at)=>{const We=Le.p;if(We!=null){const dt=Me[We];dt&&dt.get(),dt&&at.mergeTree(dt.get())}}))}return _e.get()}const we=(V,ye)=>V.some(_e=>typeof _e=="object"&&(Array.isArray(_e)?we(_e,ye):ye(_e)));function Te(V,ye){if(V==null||!we(V,at=>{var We;return at.r!==void 0||((We=Z(at))===null||We===void 0?void 0:We.makeInvertible)!=null}))return V;const _e=new l.ReadCursor(V),de=new l.WriteCursor;let Se=!1;const Me=[],et=[],st=(at,We,dt)=>{const wt=at.getComponent();let pt=!1;if(wt){wt.d!=null&&We.write("d",wt.d),wt.i!==void 0&&We.write("i",wt.i);const nt=wt.p;if(nt!=null&&(Me[nt]=at.clone(),d(dt!==void 0,"Operation picks up at an invalid key"),et[nt]=dt,We.write("p",wt.p)),wt.r!==void 0&&dt===void 0)throw Error("Invalid doc / op in makeInvertible: removed item missing from doc");const Rt=Z(wt);Rt&&(Rt.makeInvertible?Se=!0:K(We,Rt,G(wt),!0))}let It=0;for(const nt of at){We.descend(nt);const Rt=typeof nt=="number"?nt-It:nt,un=T(dt,Rt),Tt=st(at,We,un);un!==Tt&&(pt||(pt=!0,dt=y(dt)),Tt===void 0?(dt=M(dt,Rt),typeof nt=="number"&&It++):dt[Rt]=Tt),We.ascend()}return wt&&(wt.r!==void 0?(We.write("r",(0,a.default)(dt)),dt=void 0):wt.p!=null&&(dt=void 0)),dt};if(st(_e,de,ye),de.get(),Se){let at=function(We,dt,wt,pt,It){const nt=dt.getComponent();if(nt){nt.i!==void 0?(pt=nt.i,It=!0):nt.d!=null&&(pt=et[nt.d],We=Me[nt.d],It=!1,nt.d);let qt=Z(nt);if(qt&&qt.makeInvertible){const On=G(nt);K(wt,qt,qt.makeInvertible(On,pt),!0)}}let Rt=0,un=0;const Tt=(0,l.advancer)(We,(qt,On)=>O(On)?Rt-qt-1:qt-Rt,(qt,On)=>{O(On)&&Rt++});for(const qt of dt)if(typeof qt=="number"){const On=qt-un,Tn=Tt(On),bn=T(pt,It?On:On+Rt);wt.descend(qt),at(Tn,dt,wt,bn,It),b(dt.getComponent())&&un++,wt.ascend()}else{const On=T(pt,qt);wt.descend(qt),at(Tt(qt),dt,wt,On,It),wt.ascend()}Tt.end()};de.reset(),at(_e.clone(),_e,de,ye,!1)}return de.get()}function Re(V,ye){return fe(Te(V,ye))}const Q=0,ve=1,ge=V=>{if(V==null)return null;const ye=V.slice();for(let _e=0;_e<V.length;_e++){const de=ye[_e];Array.isArray(de)&&(ye[_e]=ge(de))}return ye};function ie(V,ye,_e){d(_e==="left"||_e==="right","Direction must be left or right");const de=_e==="left"?Q:ve;if(f.quiet=!h,f.prefix=0,ye==null)return{ok:!0,result:V};Y(V),Y(ye);let Se=null;const Me=[],et=[],st=[],Le=[],at=[],We=[],dt=[],wt=[],pt=[],It=[],nt=[],Rt=[],un=[],Tt=[],qt=[];let On=0;const Tn=(0,l.readCursor)(V),bn=(0,l.readCursor)(ye),Rn=(0,l.writeCursor)();if(function ht(Ve,Ye=null,Je){const Ze=p(Ye);Ze&&(Ze.r!==void 0?Je=Ye.clone():Ze.p!=null&&(Je=null,We[Ze.p]=Ve.clone()));const Ne=Ve.getComponent();let lt;Ne&&(lt=Ne.p)!=null&&(at[lt]=Ye?Ye.clone():null,st[lt]=Ve.clone(),Je&&(It[lt]=!0,pt[lt]=Je),Ze&&Ze.p!=null&&(Tt[lt]=Ze.p));const Pt=(0,l.advancer)(Ye);for(const Nt of Ve)ht(Ve,Pt(Nt),Je);Pt.end()}(bn,Tn,null),function ht(Ve,Ye,Je,Ze,Ne){const lt=Je.getComponent();let Pt,Nt=!1;lt&&((Pt=lt.d)!=null?(Le[Pt]=Je.clone(),Ze!=null&&(qt[Ze]==null&&(qt[Ze]=[]),qt[Ze].push(Pt)),It[Pt],Ve=at[Pt]||null,Ye=st[Pt]||null,It[Pt]?(Ne&&(nt[Pt]=!0),Ne=pt[Pt]||null):!Ne||de!==ve&&Tt[Pt]!=null||Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:(0,i.removeOp)(Ne.getPath()),op2:(0,i.moveOp)(Ye.getPath(),Je.getPath())}),Nt=!0):lt.i!==void 0&&(Ve=Ye=null,Nt=!0,Ne&&Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:(0,i.removeOp)(Ne.getPath()),op2:(0,i.insertOp)(Je.getPath(),lt.i)})));const hn=p(Ve);hn&&(hn.r!==void 0?Ne=Ve.clone():hn.p!=null&&(hn.p,Ze=hn.p,Ne=null));const cn=Z(lt);cn&&Ne&&Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:(0,i.removeOp)(Ne.getPath()),op2:(0,i.editOp)(Je.getPath(),cn,G(lt),!0)});let Kt=0,sn=0;const nn=(0,l.advancer)(Ye,(Ct,ln)=>O(ln)?Kt-Ct-1:Ct-Kt,(Ct,ln)=>{O(ln)&&Kt++}),Yt=(0,l.advancer)(Ve);for(const Ct of Je)if(typeof Ct=="number"){const ln=Ct-sn,or=nn(ln);sn+=+ht(Yt(ln+Kt),or,Je,Ze,Ne)}else{const ln=nn(Ct);ht(Yt(Ct),ln,Je,Ze,Ne)}return nn.end(),Yt.end(),Nt}(Tn,bn,bn.clone(),null,null),Le.map(ht=>ht&&ht.get()),Se)return{ok:!1,conflict:Se};nt.map(ht=>!!ht);const ir=[];let pe=null;(function ht(Ve,Ye,Je,Ze,Ne){let lt=!1;const Pt=p(Ye);if(O(Pt)){const nn=Pt.p;nn!=null?(Je=Le[nn],Ze=Rt[nn]=(0,l.writeCursor)(),lt=!0,Ne=null):(Je=null,Ne=Ye.clone())}else b(p(Je))&&(Je=null);const Nt=Ve.getComponent();if(Nt){const nn=Nt.p;nn!=null?(Ne&&(wt[nn]=Ne),ir[nn]=Ne||de===ve&&lt?null:Ze.getComponent(),Me[nn]=Ve.clone(),Je&&(dt[nn]=Je.clone())):Nt.r!==void 0&&(Ne||Ze.write("r",!0),(Ne||lt)&&(pe==null&&(pe=new Set),pe.add(Nt)))}let hn=0,cn=0;const Kt=(0,l.advancer)(Ye,void 0,(nn,Yt)=>{O(Yt)&&hn++}),sn=(0,l.advancer)(Je,(nn,Yt)=>b(Yt)?~(nn-cn):nn-cn,(nn,Yt)=>{b(Yt)&&cn++});if(Ve)for(const nn of Ve)if(typeof nn=="string"){const Yt=Kt(nn),Ct=sn(nn);Ze.descend(nn),ht(Ve,Yt,Ct,Ze,Ne),Ze.ascend()}else{const Yt=Kt(nn),Ct=nn-hn,ln=O(p(Yt))?null:sn(Ct),or=Ct+cn;d(or>=0),Ze.descend(or),ht(Ve,Yt,ln,Ze,Ne),Ze.ascend()}Kt.end(),sn.end()})(Tn,bn,bn.clone(),Rn,null),Rn.reset();let Ee=[];if(function ht(Ve,Ye,Je,Ze,Ne,lt){d(Ye);const Pt=Ye.getComponent();let Nt=p(Ze),hn=!1;const cn=(Ae,ze,bt)=>Ae?(0,i.moveOp)(Ae.getPath(),ze.getPath()):(0,i.insertOp)(ze.getPath(),bt.i);if(b(Pt)){const Ae=Pt.d;Ae!=null&&(et[Ae]=Ye.clone());const ze=Ae!=null?ir[Ae]:null;let bt=!1;if(Pt.i!==void 0||Ae!=null&&ze){let ot;Nt&&(Nt.i!==void 0||(ot=Nt.d)!=null&&!It[ot])&&(bt=ot!=null?Ae!=null&&Ae===Tt[ot]:(0,s.default)(Nt.i,Pt.i),bt||ot!=null&&de!==ve&&Tt[ot]!=null||Se==null&&(Se={type:u.ConflictType.DROP_COLLISION,op1:cn(Ae!=null?Me[Ae]:null,Ye,Pt),op2:cn(ot!=null?st[ot]:null,Ze,Nt)})),bt||(lt?Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:cn(Ae!=null?Me[Ae]:null,Ye,Pt),op2:(0,i.removeOp)(lt.getPath())}):(Ae!=null?(Ee[On]=Ae,Ne.write("d",ze.p=On++)):Ne.write("i",(0,a.default)(Pt.i)),hn=!0))}else if(Ae!=null&&!ze){const ot=wt[Ae];ot&&(lt=ot.clone())}Ae!=null?(Ve=Me[Ae],Je=We[Ae],Ze=dt[Ae]):Pt.i!==void 0&&(Ve=Je=null,bt||(Ze=null))}else O(p(Ve))&&(Ve=Je=Ze=null);const Kt=p(Ve),sn=p(Je);if(O(sn)){const Ae=sn.p;sn.r!==void 0&&(!Kt||Kt.r===void 0)||It[Ae]?(Ze=null,lt=Je.clone()):Ae!=null&&(Ze=Le[Ae],de!==ve&&Tt[Ae]!=null||((Ne=un[Ae])||(Ne=un[Ae]=(0,l.writeCursor)()),Ne.reset(),lt=null))}else!b(Pt)&&b(Nt)&&(Ze=null);Nt=Ze!=null?Ze.getComponent():null;const nn=Z(Pt);if(nn){const Ae=G(Pt);if(lt)Se==null&&(Se={type:u.ConflictType.RM_UNEXPECTED_CONTENT,op1:(0,i.editOp)(Ye.getPath(),nn,Ae,!0),op2:(0,i.removeOp)(lt.getPath())});else{const ze=Z(Nt);let bt;if(ze){if(nn!==ze)throw Error("Transforming incompatible types");const ot=G(Nt);bt=nn.transform(Ae,ot,_e)}else bt=(0,a.default)(Ae);K(Ne,nn,bt)}}let Yt=0,Ct=0,ln=0,or=0,wn=0,fr=0,lr=Ve!=null&&Ve.descendFirst(),ce=lr;const le=(0,l.advancer)(Je,void 0,(Ae,ze)=>{O(ze)&&ln++});let Oe=Ze!=null&&Ze.descendFirst(),Xe=Oe;for(const Ae of Ye)if(typeof Ae=="number"){let ze;const bt=b(Ye.getComponent()),ot=Ae-Ct;{let tn;for(ee();lr&&typeof(tn=Ve.getKey())=="number";){tn+=Yt;const Sn=Ve.getComponent(),Pn=O(Sn);if(tn>ot||tn===ot&&(!Pn||de===Q&&bt))break;if(Pn){Yt--;const Qt=Sn.p;Tt.includes(Qt),Sn.d,p(un[Sn.d]),O(p(un[Sn.d])),(Sn.r===void 0||pe&&pe.has(Sn))&&(Qt==null||!ir[Qt]||de!==ve&&Tt.includes(Qt))||wn--}lr=Ve.nextSibling()}ze=lr&&tn===ot?Ve:null}const yt=ot-Yt;let Vt=le(yt);const At=yt-ln;let Cn=null;{let tn,Sn;for(ee();Oe&&typeof(tn=Ze.getKey())=="number";){Sn=tn-or;const Pn=Ze.getComponent(),Qt=b(Pn);if(Sn>At)break;if(Sn===At){if(!Qt){Cn=Ze;break}{if(de===Q&&bt){Cn=Ze;break}const fn=Vt&&O(Vt.getComponent());if(de===Q&&fn)break}}if(Qt){const fn=Pn.d;It[fn],Tt[fn],Pn.i===void 0&&(It[fn]||Tt[fn]!=null&&de!==ve)?(It[fn]||Tt[fn]!=null&&de===Q)&&(or++,fr--):or++}Oe=Ze.nextSibling()}}const jn=At+or+wn+fr;d(jn>=0,"trying to descend to a negative index"),Ne.descend(jn),bt&&(ze=Vt=Cn=null,Ct++),ht(ze,Ye,Vt,Cn,Ne,lt)&&fr++,Ne.ascend()}else{let ze;for(;lr&&(ze=Ve.getKey(),typeof ze!="string"||!(ze>Ae||ze===Ae));)lr=Ve.nextSibling();const bt=lr&&ze===Ae?Ve:null,ot=le(Ae);let yt;for(;Oe&&(yt=Ze.getKey(),typeof yt!="string"||!(yt>Ae||yt===Ae));)Oe=Ze.nextSibling();const Vt=Oe&&yt===Ae?Ze:null;Ne.descend(Ae),ht(bt,Ye,ot,Vt,Ne,lt),Ne.ascend()}return le.end(),ce&&Ve.ascend(),Xe&&Ze.ascend(),hn}(Tn,Tn.clone(),bn,bn.clone(),Rn,null),Se)return{ok:!1,conflict:Se};Rn.reset();const De=(ht,Ve,Ye)=>ht.traverse(Ve,(Je,Ze)=>{Je.d!=null&&Ye(Je.d,ht,Ze)});(It.length||Rt.length)&&(De(bn,Rn,(ht,Ve,Ye)=>{It[ht]&&!nt[ht]&&Ye.write("r",!0),Rt[ht]&&Ye.mergeTree(Rt[ht].get())}),Rn.reset());const rt=[],ct=[];if((un.length||It.length)&&!Se){const ht=(0,l.readCursor)(ge(Rn.get()));if(De(ht,null,(Ve,Ye)=>{rt[Ve]=Ye.clone()}),un.forEach(Ve=>{Ve&&De((0,l.readCursor)(Ve.get()),null,(Ye,Je)=>{rt[Ye]=Je.clone()})}),function Ve(Ye,Je,Ze,Ne,lt,Pt){f.prefix++;const Nt=p(Je);if(Nt&&O(Nt))if(Nt.p!=null){const Yt=Nt.p;rt[Yt].getPath(),Ze=rt[Yt],Ne=ct[Yt]=(0,l.writeCursor)()}else Nt.r!==void 0&&(Ze=null);else b(p(Ze))&&(Ze=null);const hn=Ye.getComponent();if(hn){let Yt;if((Yt=hn.d)!=null){const Ct=un[Yt];Ct&&(Ct.get(),Ne.mergeTree(Ct.get()),Ze=(0,l.readCursor)(Ct.get()))}}let cn=0,Kt=0;const sn=(0,l.advancer)(Je,void 0,(Yt,Ct)=>{O(Ct)&&cn--}),nn=(0,l.advancer)(Ze,(Yt,Ct)=>b(Ct)?-(Yt-Kt)-1:Yt-Kt,(Yt,Ct)=>{b(Ct)&&Kt++});for(const Yt of Ye)if(typeof Yt=="number"){const Ct=sn(Yt),ln=Yt+cn,or=nn(ln),wn=ln+Kt;Ne.descend(wn),Ve(Ye,Ct,or,Ne),Ne.ascend()}else Ne.descend(Yt),Ve(Ye,sn(Yt),nn(Yt),Ne),Ne.ascend();sn.end(),nn.end()}(bn,ht,ht.clone(),Rn),Rn.reset(),Se)return{ok:!1,conflict:Se};if(Rn.get(),ct.length){const Ve=ct.map(Je=>Je?Je.get():null),Ye=(0,l.readCursor)(ge(Rn.get()));if(De(Ye,Rn,(Je,Ze,Ne)=>{const lt=Ve[Je];lt&&(Ne.mergeTree(lt),Ve[Je]=null)}),Ve.find(Je=>Je)){const Je=(0,l.writeCursor)(),Ze=(0,l.writeCursor)();let Ne=0,lt=0;Ve.forEach(Pt=>{Pt!=null&&De((0,l.readCursor)(Pt),null,Nt=>{const hn=Ee[Nt];Je.writeMove(Me[hn].getPath(),et[hn].getPath(),Ne++);const cn=qt[hn];cn&&cn.forEach(Kt=>{It[Kt]||de!==ve&&Tt[Kt]!=null||Ze.writeMove(st[Kt].getPath(),Le[Kt].getPath(),lt++)})})}),Se={type:u.ConflictType.BLACKHOLE,op1:Je.get(),op2:Ze.get()}}}}return Se?{ok:!1,conflict:Se}:{ok:!0,result:Rn.get()}}const oe=V=>{const ye=new Error("Transform detected write conflict");throw ye.conflict=V,ye.type=ye.name="writeConflict",ye};function me(V,ye,_e){const de=ie(V,ye,_e);if(de.ok)return de.result;oe(de.conflict)}const $e=V=>{const ye=(0,l.writeCursor)();return(0,l.readCursor)(V).traverse(ye,(_e,de)=>{(b(_e)||Z(_e))&&de.write("r",!0)}),ye.get()},Fe=(V,ye)=>{const{type:_e,op1:de,op2:Se}=V;switch(_e){case u.ConflictType.DROP_COLLISION:return ye==="left"?[null,$e(Se)]:[$e(de),null];case u.ConflictType.RM_UNEXPECTED_CONTENT:let Me=!1;return(0,l.readCursor)(de).traverse(null,et=>{et.r!==void 0&&(Me=!0)}),Me?[null,$e(Se)]:[$e(de),null];case u.ConflictType.BLACKHOLE:return[$e(de),$e(Se)];default:throw Error("Unrecognised conflict: "+_e)}};function Pe(V,ye,_e,de){let Se=null;for(;;){const Me=ie(ye,_e,de);if(Me.ok)return J(Se,Me.result);{const{conflict:et}=Me;V(et)||oe(et);const[st,Le]=Fe(et,de);ye=J(j(ye),st),_e=J(j(_e),Le),Se=J(Se,Le)}}}},{"./cursor.js":23,"./deepClone.js":24,"./deepEqual.js":25,"./log":28,"./types.js":29,assert:1,"ot-text-unicode":31}],28:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0});function o(...s){if(o.quiet)return;const{inspect:a}=n("util"),l=c=>typeof c=="string"?c:a(c,{depth:10,colors:!0}),u=Array(o.prefix).fill(" ").join("");console.log(u+s.map(l).join(" "))}i.default=o,o.quiet=!0,o.prefix=0},{util:37}],29:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0}),i.ConflictType=void 0;var o;(function(s){s[s.RM_UNEXPECTED_CONTENT=1]="RM_UNEXPECTED_CONTENT",s[s.DROP_COLLISION=2]="DROP_COLLISION",s[s.BLACKHOLE=3]="BLACKHOLE"})(o||(i.ConflictType=o={}))},{}],30:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0});const o=n("./type"),s=n("unicount");function a(l,u){return{get:l,getLength(){return l().length},insert(c,f,d){const h=s.strPosToUni(l(),c);return u([h,f],d)},remove(c,f,d){const h=s.strPosToUni(l(),c);return u([h,{d:f}],d)},_onOp(c){o.eachOp(c,(f,d,h)=>{switch(typeof f){case"string":this.onInsert&&this.onInsert(h,f);break;case"object":const p=o.dlen(f.d);this.onRemove&&this.onRemove(h,p)}})},onInsert:null,onRemove:null}}i.default=a,a.provides={text:!0}},{"./type":32,unicount:34}],31:[function(n,r,i){var o=this&&this.__createBinding||(Object.create?function(y,O,b,S){S===void 0&&(S=b),Object.defineProperty(y,S,{enumerable:!0,get:function(){return O[b]}})}:function(y,O,b,S){S===void 0&&(S=b),y[S]=O[b]}),s=this&&this.__setModuleDefault||(Object.create?function(y,O){Object.defineProperty(y,"default",{enumerable:!0,value:O})}:function(y,O){y.default=O}),a=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var O={};if(y!=null)for(var b in y)Object.hasOwnProperty.call(y,b)&&o(O,y,b);return s(O,y),O},l=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(i,"__esModule",{value:!0}),i.type=i.remove=i.insert=void 0;const u=n("unicount"),c=a(n("./type")),f=l(n("./api")),d={create(y){return y},toString(y){return y},builder(y){if(typeof y!="string")throw Error("Invalid document snapshot: "+y);const O=[];return{skip(b){let S=u.uniToStrPos(y,b);if(S>y.length)throw Error("The op is too long for this document");O.push(y.slice(0,S)),y=y.slice(S)},append(b){O.push(b)},del(b){y=y.slice(u.uniToStrPos(y,b))},build(){return O.join("")+y}}},slice:c.uniSlice},h=c.default(d),p=Object.assign(Object.assign({},h),{api:f.default});i.type=p,i.insert=(y,O)=>O.length===0?[]:y===0?[O]:[y,O],i.remove=(y,O)=>c.dlen(O)===0?[]:y===0?[{d:O}]:[y,{d:O}];var g=n("./type");Object.defineProperty(i,"makeType",{enumerable:!0,get:function(){return g.default}})},{"./api":30,"./type":32,unicount:34}],32:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0}),i.uniSlice=i.dlen=i.eachOp=void 0;const o=n("unicount"),s=P=>{if(!Array.isArray(P))throw Error("Op must be an array of components");let E=null;for(let R=0;R<P.length;R++){const T=P[R];switch(typeof T){case"object":if(typeof T.d!="number"&&typeof T.d!="string")throw Error("Delete must be number or string");if(i.dlen(T.d)<=0)throw Error("Deletes must not be empty");break;case"string":if(!(T.length>0))throw Error("Inserts cannot be empty");break;case"number":if(!(T>0))throw Error("Skip components must be >0");if(typeof E=="number")throw Error("Adjacent skip components should be combined");break}E=T}if(typeof E=="number")throw Error("Op has a trailing skip")};function a(P,E){let R=0,T=0;for(let L=0;L<P.length;L++){const A=P[L];switch(E(A,R,T),typeof A){case"object":R+=i.dlen(A.d);break;case"string":T+=o.strPosToUni(A);break;case"number":R+=A,T+=A;break}}}i.eachOp=a;function l(P,E){const R=[],T=f(R);return a(P,(L,A,H)=>{T(E(L,A,H))}),g(R)}const u=P=>P,c=P=>l(P,u);i.dlen=P=>typeof P=="number"?P:o.strPosToUni(P);const f=P=>E=>{if(!(!E||E.d===0||E.d===""))if(P.length===0)P.push(E);else if(typeof E==typeof P[P.length-1])if(typeof E=="object"){const R=P[P.length-1];R.d=typeof R.d=="string"&&typeof E.d=="string"?R.d+E.d:i.dlen(R.d)+i.dlen(E.d)}else P[P.length-1]+=E;else P.push(E)},d=P=>typeof P=="number"?P:typeof P=="string"?o.strPosToUni(P):typeof P.d=="number"?P.d:o.strPosToUni(P.d);i.uniSlice=(P,E,R)=>{const T=o.uniToStrPos(P,E),L=R==null?1/0:o.uniToStrPos(P,R);return P.slice(T,L)};const h=(P,E,R)=>typeof P=="number"?R==null?P-E:Math.min(P,R)-E:i.uniSlice(P,E,R),p=P=>{let E=0,R=0;return{take:(A,H)=>{if(E===P.length)return A===-1?null:A;const W=P[E];let Z;if(typeof W=="number")return A===-1||W-R<=A?(Z=W-R,++E,R=0,Z):(R+=A,A);if(typeof W=="string"){if(A===-1||H==="i"||o.strPosToUni(W.slice(R))<=A)return Z=W.slice(R),++E,R=0,Z;{const G=R+o.uniToStrPos(W.slice(R),A);return Z=W.slice(R,G),R=G,Z}}else{if(A===-1||H==="d"||i.dlen(W.d)-R<=A)return Z={d:h(W.d,R)},++E,R=0,Z;{let G=h(W.d,R,R+A);return R+=A,{d:G}}}},peek:()=>P[E]}},g=P=>(P.length>0&&typeof P[P.length-1]=="number"&&P.pop(),P);function y(P,E,R){if(R!=="left"&&R!=="right")throw Error("side ("+R+") must be 'left' or 'right'");s(P),s(E);const T=[],L=f(T),{take:A,peek:H}=p(P);for(let Z=0;Z<E.length;Z++){const G=E[Z];let K,U;switch(typeof G){case"number":for(K=G;K>0;)U=A(K,"i"),L(U),typeof U!="string"&&(K-=d(U));break;case"string":R==="left"&&typeof H()=="string"&&L(A(-1)),L(o.strPosToUni(G));break;case"object":for(K=i.dlen(G.d);K>0;)switch(U=A(K,"i"),typeof U){case"number":K-=U;break;case"string":L(U);break;case"object":K-=i.dlen(U.d)}break}}let W;for(;W=A(-1);)L(W);return g(T)}function O(P,E){s(P),s(E);const R=[],T=f(R),{take:L}=p(P);for(let H=0;H<E.length;H++){const W=E[H];let Z,G;switch(typeof W){case"number":for(Z=W;Z>0;)G=L(Z,"d"),T(G),typeof G!="object"&&(Z-=d(G));break;case"string":T(W);break;case"object":Z=i.dlen(W.d);let K=0;for(;K<Z;)switch(G=L(Z-K,"d"),typeof G){case"number":T({d:h(W.d,K,K+G)}),K+=G;break;case"string":K+=o.strPosToUni(G);break;case"object":T(G)}break}}let A;for(;A=L(-1);)T(A);return g(R)}const b=(P,E)=>{let R=0;for(let T=0;T<E.length&&P>R;T++){const L=E[T];switch(typeof L){case"number":{R+=L;break}case"string":const A=o.strPosToUni(L);R+=A,P+=A;break;case"object":P-=Math.min(i.dlen(L.d),P-R);break}}return P},S=(P,E)=>typeof P=="number"?b(P,E):P.map(R=>b(R,E));function k(P,E,R){return l(P,(T,L)=>typeof T=="object"&&typeof T.d=="number"?{d:R.slice(E,L,L+T.d)}:T)}function x(P){return l(P,E=>{switch(typeof E){case"object":if(typeof E.d=="number")throw Error("Cannot invert text op: Deleted characters missing from operation. makeInvertible must be called first.");return E.d;case"string":return{d:E};case"number":return E}})}function _(P){return l(P,E=>typeof E=="object"&&typeof E.d=="string"?{d:o.strPosToUni(E.d)}:E)}function I(P){let E=!0;return a(P,R=>{typeof R=="object"&&typeof R.d=="number"&&(E=!1)}),E}function M(P){return{name:"text-unicode",uri:"http://sharejs.org/types/text-unicode",trim:g,normalize:c,checkOp:s,create(E=""){if(typeof E!="string")throw Error("Initial data must be a string");return P.create(E)},apply(E,R){s(R);const T=P.builder(E);for(let L=0;L<R.length;L++){const A=R[L];switch(typeof A){case"number":T.skip(A);break;case"string":T.append(A);break;case"object":T.del(i.dlen(A.d));break}}return T.build()},transform:y,compose:O,transformPosition:b,transformSelection:S,isInvertible:I,makeInvertible(E,R){return k(E,R,P)},stripInvertible:_,invert:x,invertWithDoc(E,R){return x(k(E,R,P))},isNoop:E=>E.length===0}}i.default=M},{unicount:34}],33:[function(n,r,i){var o=r.exports={},s,a;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?a=clearTimeout:a=u}catch{a=u}})();function c(k){if(s===setTimeout)return setTimeout(k,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(k,0);try{return s(k,0)}catch{try{return s.call(null,k,0)}catch{return s.call(this,k,0)}}}function f(k){if(a===clearTimeout)return clearTimeout(k);if((a===u||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(k);try{return a(k)}catch{try{return a.call(null,k)}catch{return a.call(this,k)}}}var d=[],h=!1,p,g=-1;function y(){!h||!p||(h=!1,p.length?d=p.concat(d):g=-1,d.length&&O())}function O(){if(!h){var k=c(y);h=!0;for(var x=d.length;x;){for(p=d,d=[];++g<x;)p&&p[g].run();g=-1,x=d.length}p=null,h=!1,f(k)}}o.nextTick=function(k){var x=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)x[_-1]=arguments[_];d.push(new b(k,x)),d.length===1&&!h&&c(O)};function b(k,x){this.fun=k,this.array=x}b.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function S(){}o.on=S,o.addListener=S,o.once=S,o.off=S,o.removeListener=S,o.removeAllListeners=S,o.emit=S,o.prependListener=S,o.prependOnceListener=S,o.listeners=function(k){return[]},o.binding=function(k){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(k){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],34:[function(n,r,i){Object.defineProperty(i,"__esModule",{value:!0}),i.uniToStrPos=i.strPosToUni=void 0,i.strPosToUni=(o,s=o.length)=>{let a=0,l=0;for(;l<s;l++){const u=o.charCodeAt(l);u>=55296&&u<=57343&&(a++,l++)}if(l!==s)throw Error("Invalid offset - splits unicode bytes");return l-a},i.uniToStrPos=(o,s)=>{let a=0;for(;s>0;s--){const l=o.charCodeAt(a);a+=l>=55296&&l<=57343?2:1}return a}},{}],35:[function(n,r,i){arguments[4][3][0].apply(i,arguments)},{dup:3}],36:[function(n,r,i){var o=n("is-arguments"),s=n("is-generator-function"),a=n("which-typed-array"),l=n("is-typed-array");function u(V){return V.call.bind(V)}var c=typeof BigInt<"u",f=typeof Symbol<"u",d=u(Object.prototype.toString),h=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),g=u(Boolean.prototype.valueOf);if(c)var y=u(BigInt.prototype.valueOf);if(f)var O=u(Symbol.prototype.valueOf);function b(V,ye){if(typeof V!="object")return!1;try{return ye(V),!0}catch{return!1}}i.isArgumentsObject=o,i.isGeneratorFunction=s,i.isTypedArray=l;function S(V){return typeof Promise<"u"&&V instanceof Promise||V!==null&&typeof V=="object"&&typeof V.then=="function"&&typeof V.catch=="function"}i.isPromise=S;function k(V){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(V):l(V)||z(V)}i.isArrayBufferView=k;function x(V){return a(V)==="Uint8Array"}i.isUint8Array=x;function _(V){return a(V)==="Uint8ClampedArray"}i.isUint8ClampedArray=_;function I(V){return a(V)==="Uint16Array"}i.isUint16Array=I;function M(V){return a(V)==="Uint32Array"}i.isUint32Array=M;function P(V){return a(V)==="Int8Array"}i.isInt8Array=P;function E(V){return a(V)==="Int16Array"}i.isInt16Array=E;function R(V){return a(V)==="Int32Array"}i.isInt32Array=R;function T(V){return a(V)==="Float32Array"}i.isFloat32Array=T;function L(V){return a(V)==="Float64Array"}i.isFloat64Array=L;function A(V){return a(V)==="BigInt64Array"}i.isBigInt64Array=A;function H(V){return a(V)==="BigUint64Array"}i.isBigUint64Array=H;function W(V){return d(V)==="[object Map]"}W.working=typeof Map<"u"&&W(new Map);function Z(V){return typeof Map>"u"?!1:W.working?W(V):V instanceof Map}i.isMap=Z;function G(V){return d(V)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function K(V){return typeof Set>"u"?!1:G.working?G(V):V instanceof Set}i.isSet=K;function U(V){return d(V)==="[object WeakMap]"}U.working=typeof WeakMap<"u"&&U(new WeakMap);function B(V){return typeof WeakMap>"u"?!1:U.working?U(V):V instanceof WeakMap}i.isWeakMap=B;function Y(V){return d(V)==="[object WeakSet]"}Y.working=typeof WeakSet<"u"&&Y(new WeakSet);function j(V){return Y(V)}i.isWeakSet=j;function ne(V){return d(V)==="[object ArrayBuffer]"}ne.working=typeof ArrayBuffer<"u"&&ne(new ArrayBuffer);function ee(V){return typeof ArrayBuffer>"u"?!1:ne.working?ne(V):V instanceof ArrayBuffer}i.isArrayBuffer=ee;function ue(V){return d(V)==="[object DataView]"}ue.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ue(new DataView(new ArrayBuffer(1),0,1));function z(V){return typeof DataView>"u"?!1:ue.working?ue(V):V instanceof DataView}i.isDataView=z;var X=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(V){return d(V)==="[object SharedArrayBuffer]"}function fe(V){return typeof X>"u"?!1:(typeof J.working>"u"&&(J.working=J(new X)),J.working?J(V):V instanceof X)}i.isSharedArrayBuffer=fe;function we(V){return d(V)==="[object AsyncFunction]"}i.isAsyncFunction=we;function Te(V){return d(V)==="[object Map Iterator]"}i.isMapIterator=Te;function Re(V){return d(V)==="[object Set Iterator]"}i.isSetIterator=Re;function Q(V){return d(V)==="[object Generator]"}i.isGeneratorObject=Q;function ve(V){return d(V)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=ve;function ge(V){return b(V,h)}i.isNumberObject=ge;function ie(V){return b(V,p)}i.isStringObject=ie;function oe(V){return b(V,g)}i.isBooleanObject=oe;function me(V){return c&&b(V,y)}i.isBigIntObject=me;function $e(V){return f&&b(V,O)}i.isSymbolObject=$e;function Fe(V){return ge(V)||ie(V)||oe(V)||me(V)||$e(V)}i.isBoxedPrimitive=Fe;function Pe(V){return typeof Uint8Array<"u"&&(ee(V)||fe(V))}i.isAnyArrayBuffer=Pe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(V){Object.defineProperty(i,V,{enumerable:!1,value:function(){throw new Error(V+" is not supported in userland")}})})},{"is-arguments":18,"is-generator-function":20,"is-typed-array":21,"which-typed-array":38}],37:[function(n,r,i){(function(o){(function(){var s=Object.getOwnPropertyDescriptors||function(X){for(var J=Object.keys(X),fe={},we=0;we<J.length;we++)fe[J[we]]=Object.getOwnPropertyDescriptor(X,J[we]);return fe},a=/%[sdj%]/g;i.format=function(z){if(!E(z)){for(var X=[],J=0;J<arguments.length;J++)X.push(f(arguments[J]));return X.join(" ")}for(var J=1,fe=arguments,we=fe.length,Te=String(z).replace(a,function(Q){if(Q==="%%")return"%";if(J>=we)return Q;switch(Q){case"%s":return String(fe[J++]);case"%d":return Number(fe[J++]);case"%j":try{return JSON.stringify(fe[J++])}catch{return"[Circular]"}default:return Q}}),Re=fe[J];J<we;Re=fe[++J])I(Re)||!A(Re)?Te+=" "+Re:Te+=" "+f(Re);return Te},i.deprecate=function(z,X){if(typeof o<"u"&&o.noDeprecation===!0)return z;if(typeof o>"u")return function(){return i.deprecate(z,X).apply(this,arguments)};var J=!1;function fe(){if(!J){if(o.throwDeprecation)throw new Error(X);o.traceDeprecation?console.trace(X):console.error(X),J=!0}return z.apply(this,arguments)}return fe};var l={},u=/^$/;if(o.env.NODE_DEBUG){var c=o.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}i.debuglog=function(z){if(z=z.toUpperCase(),!l[z])if(u.test(z)){var X=o.pid;l[z]=function(){var J=i.format.apply(i,arguments);console.error("%s %d: %s",z,X,J)}}else l[z]=function(){};return l[z]};function f(z,X){var J={seen:[],stylize:h};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),_(X)?J.showHidden=X:X&&i._extend(J,X),T(J.showHidden)&&(J.showHidden=!1),T(J.depth)&&(J.depth=2),T(J.colors)&&(J.colors=!1),T(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=d),g(J,z,J.depth)}i.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(z,X){var J=f.styles[X];return J?"\x1B["+f.colors[J][0]+"m"+z+"\x1B["+f.colors[J][1]+"m":z}function h(z,X){return z}function p(z){var X={};return z.forEach(function(J,fe){X[J]=!0}),X}function g(z,X,J){if(z.customInspect&&X&&Z(X.inspect)&&X.inspect!==i.inspect&&!(X.constructor&&X.constructor.prototype===X)){var fe=X.inspect(J,z);return E(fe)||(fe=g(z,fe,J)),fe}var we=y(z,X);if(we)return we;var Te=Object.keys(X),Re=p(Te);if(z.showHidden&&(Te=Object.getOwnPropertyNames(X)),W(X)&&(Te.indexOf("message")>=0||Te.indexOf("description")>=0))return O(X);if(Te.length===0){if(Z(X)){var Q=X.name?": "+X.name:"";return z.stylize("[Function"+Q+"]","special")}if(L(X))return z.stylize(RegExp.prototype.toString.call(X),"regexp");if(H(X))return z.stylize(Date.prototype.toString.call(X),"date");if(W(X))return O(X)}var ve="",ge=!1,ie=["{","}"];if(x(X)&&(ge=!0,ie=["[","]"]),Z(X)){var oe=X.name?": "+X.name:"";ve=" [Function"+oe+"]"}if(L(X)&&(ve=" "+RegExp.prototype.toString.call(X)),H(X)&&(ve=" "+Date.prototype.toUTCString.call(X)),W(X)&&(ve=" "+O(X)),Te.length===0&&(!ge||X.length==0))return ie[0]+ve+ie[1];if(J<0)return L(X)?z.stylize(RegExp.prototype.toString.call(X),"regexp"):z.stylize("[Object]","special");z.seen.push(X);var me;return ge?me=b(z,X,J,Re,Te):me=Te.map(function($e){return S(z,X,J,Re,$e,ge)}),z.seen.pop(),k(me,ve,ie)}function y(z,X){if(T(X))return z.stylize("undefined","undefined");if(E(X)){var J="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return z.stylize(J,"string")}if(P(X))return z.stylize(""+X,"number");if(_(X))return z.stylize(""+X,"boolean");if(I(X))return z.stylize("null","null")}function O(z){return"["+Error.prototype.toString.call(z)+"]"}function b(z,X,J,fe,we){for(var Te=[],Re=0,Q=X.length;Re<Q;++Re)j(X,String(Re))?Te.push(S(z,X,J,fe,String(Re),!0)):Te.push("");return we.forEach(function(ve){ve.match(/^\d+$/)||Te.push(S(z,X,J,fe,ve,!0))}),Te}function S(z,X,J,fe,we,Te){var Re,Q,ve;if(ve=Object.getOwnPropertyDescriptor(X,we)||{value:X[we]},ve.get?ve.set?Q=z.stylize("[Getter/Setter]","special"):Q=z.stylize("[Getter]","special"):ve.set&&(Q=z.stylize("[Setter]","special")),j(fe,we)||(Re="["+we+"]"),Q||(z.seen.indexOf(ve.value)<0?(I(J)?Q=g(z,ve.value,null):Q=g(z,ve.value,J-1),Q.indexOf(`
69
69
  `)>-1&&(Te?Q=Q.split(`
70
70
  `).map(function(ge){return" "+ge}).join(`
71
71
  `).slice(2):Q=`
@@ -149,7 +149,7 @@ a=extmap-allow-mixed`)!==-1){const o=i.sdp.split(`
149
149
  `);return e.iterChanges((l,u,c,f,d)=>{const h=n.sliceString(l,u,`
150
150
  `),p=d.sliceString(0,d.length,`
151
151
  `),g=kfe(a,l)+s;h&&o.push(i.remove(g,h)),p&&o.push(i.insert(g,p)),s+=p.length-h.length}),o.length===0?null:(o=o.reduce(i.type.compose),r.editOp(t,"text-unicode",o))},ON=(t,e=null)=>{if(!t)return[];const n=[];for(const r of t){const{es:i}=r;if(i!==void 0){let o=0;for(let s=0;s<i.length;s++){const a=i[s];if(typeof a=="number")o+=a;else if(typeof a=="string")if(i[s+1]&&typeof i[s+1]=="object"&&i[s+1].d!==void 0){let l=typeof i[s+1].d=="string"?i[s+1].d:"",u,c;e?(u=bc(e,o),c=bc(e,o+l.length)):(u=o,c=o+l.length),n.push({from:u,to:c,insert:a}),o+=l.length,s++}else{let l;e?l=bc(e,o):l=o,n.push({from:l,to:l,insert:a})}else if(a&&a.d!==void 0){if(typeof a.d=="number"){let l,u;e?(l=bc(e,o),u=bc(e,o+a.d)):(l=o,u=o+a.d),n.push({from:l,to:u}),o+=a.d}else if(typeof a.d=="string"){let l,u;e?(l=bc(e,o),u=bc(e,o+a.d.length)):(l=o,u=o+a.d.length),n.push({from:l,to:u}),o+=a.d.length}}}}}return n},xfe=(t,e)=>{if(!t||!e)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},_fe=({shareDBDoc:t,path:e=[],json1:n,textUnicode:r,debug:i=!1})=>cr.fromClass(class{constructor(o){this.view=o,this.handleOp=s=>{if(this.lock||!Array.isArray(s))return;this.lock=!0;const a=Array.isArray(s[0])?s:[s];for(const l of a)if(xfe(l,e)){const u=e.reduce((c,f)=>c&&c[f],t.data);i&&(console.log("Received op from ShareDB"),console.log(" op: "+JSON.stringify(l)),console.log(" generated changes: "+JSON.stringify(ON(l,u)))),o.dispatch({changes:ON(l,u)})}this.lock=!1},t.on("op",this.handleOp)}update(o){!this.lock&&o.docChanged&&(this.lock=!0,i&&(console.log("Received change from CodeMirror"),console.log(" changes:"+JSON.stringify(o.changes.toJSON())),console.log(" iterChanges:"),o.changes.iterChanges((s,a,l,u,c)=>{console.log(" "+JSON.stringify({fromA:s,toA:a,fromB:l,toB:u,inserted:c.sliceString(0,c.length,`
152
- `)}))}),console.log(" generated json1 op: "+JSON.stringify(yN(e,o.changes,o.startState.doc,n,r)))),t.submitOp(yN(e,o.changes,o.startState.doc,n,r)),this.lock=!1)}destroy(){t.off("op",this.handleOp)}});function Pfe(t,e=t.state){const n=new Set;for(const{from:r,to:i}of t.visibleRanges){let o=r;for(;o<=i;){const s=e.doc.lineAt(o);n.has(s)||n.add(s),o=s.to+1}}return n}function FP(t){const e=t.selection.main.head;return t.doc.lineAt(e)}function bN(t,e){let n=0;e:for(let r=0;r<t.length;r++)switch(t[r]){case" ":case" ":{n+=1;continue e}case" ":{n+=e-n%e;continue e}case"\r":continue e;default:break e}return n}const PO=$t.define({combine(t){return ds(t,{highlightActiveBlock:!0,hideFirstIndent:!1,markerType:"fullScope",thickness:1})}});class Cfe{constructor(e,n,r,i){this.lines=e,this.state=n,this.map=new Map,this.unitWidth=r,this.markerType=i;for(const o of this.lines)this.add(o);this.state.facet(PO).highlightActiveBlock&&this.findAndSetActiveLines()}has(e){return this.map.has(typeof e=="number"?e:e.number)}get(e){const n=this.map.get(typeof e=="number"?e:e.number);if(!n)throw new Error("Line not found in indentation map");return n}set(e,n,r){const i=!e.text.trim().length,o={line:e,col:n,level:r,empty:i};return this.map.set(o.line.number,o),o}add(e){if(this.has(e))return this.get(e);if(!e.length||!e.text.trim().length){if(e.number===1)return this.set(e,0,0);if(e.number===this.state.doc.lines){const s=this.closestNonEmpty(e,-1);return this.set(e,0,s.level)}const i=this.closestNonEmpty(e,-1),o=this.closestNonEmpty(e,1);return i.level>=o.level&&this.markerType!=="codeOnly"?this.set(e,0,i.level):i.empty&&i.level===0&&o.level!==0?this.set(e,0,0):o.level>i.level?this.set(e,0,i.level+1):this.set(e,0,o.level)}const n=bN(e.text,this.state.tabSize),r=Math.floor(n/this.unitWidth);return this.set(e,n,r)}closestNonEmpty(e,n){let r=e.number+n;for(;n===-1?r>=1:r<=this.state.doc.lines;){if(this.has(r)){const s=this.get(r);if(!s.empty)return s}const o=this.state.doc.line(r);if(o.text.trim().length){const s=bN(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}r+=n}const i=this.state.doc.line(n===-1?1:this.state.doc.lines);return this.set(i,0,0)}findAndSetActiveLines(){const e=FP(this.state);if(!this.has(e))return;let n=this.get(e);if(this.has(n.line.number+1)){const o=this.get(n.line.number+1);o.level>n.level&&(n=o)}if(this.has(n.line.number-1)){const o=this.get(n.line.number-1);o.level>n.level&&(n=o)}if(n.level===0)return;n.active=n.level;let r,i;for(r=n.line.number;r>1;r--){if(!this.has(r-1))continue;const o=this.get(r-1);if(o.level<n.level)break;o.active=n.level}for(i=n.line.number;i<this.state.doc.lines;i++){if(!this.has(i+1))continue;const o=this.get(i+1);if(o.level<n.level)break;o.active=n.level}}}function Efe(t){const e={light:"#F0F1F2",dark:"#2B3245",activeLight:"#E4E5E6",activeDark:"#3C445C"};let n=e;return t&&(n=Object.assign(Object.assign({},e),t)),kt.baseTheme({"&light":{"--indent-marker-bg-color":n.light,"--indent-marker-active-bg-color":n.activeLight},"&dark":{"--indent-marker-bg-color":n.dark,"--indent-marker-active-bg-color":n.activeDark},".cm-line":{position:"relative"},".cm-indent-markers::before":{content:'""',position:"absolute",top:0,left:"2px",right:0,bottom:0,background:"var(--indent-markers)",pointerEvents:"none",zIndex:"-1"}})}function E1(t,e,n,r,i){return`${`repeating-linear-gradient(to right, var(${t}) 0 ${e}px, transparent ${e}px ${n}ch)`} ${r*n}.5ch/calc(${n*i}ch - 1px) no-repeat`}function Tfe(t,e,n,r,i){const{level:o,active:s}=t;if(i=i??r,n&&o===0)return[];const a=n?1:0,l=[];if(s!==void 0){const u=s-a-1;u>0&&l.push(E1("--indent-marker-bg-color",r,e,a,u)),l.push(E1("--indent-marker-active-bg-color",i,e,s-1,1)),s!==o&&l.push(E1("--indent-marker-bg-color",r,e,s,o-s))}else l.push(E1("--indent-marker-bg-color",r,e,a,o-a));return l.join(",")}class Rfe{constructor(e){this.view=e,this.unitWidth=Bd(e.state),this.currentLineNumber=FP(e.state).number,this.generate(e.state)}update(e){const n=Bd(e.state),r=n!==this.unitWidth;r&&(this.unitWidth=n);const i=FP(e.state).number,o=i!==this.currentLineNumber;this.currentLineNumber=i;const s=e.state.facet(PO).highlightActiveBlock&&o;(e.docChanged||e.viewportChanged||r||s)&&this.generate(e.state)}generate(e){const n=new Rl,r=Pfe(this.view,e),{hideFirstIndent:i,markerType:o,thickness:s,activeThickness:a}=e.facet(PO),l=new Cfe(r,e,this.unitWidth,o);for(const u of r){const c=l.get(u.number);if(!c?.level)continue;const f=Tfe(c,this.unitWidth,i,s,a);n.add(u.from,u.from,Lt.line({class:"cm-indent-markers",attributes:{style:`--indent-markers: ${f}`}}))}this.decorations=n.finish()}}function Afe(t={}){return[PO.of(t),Efe(t.colors),cr.fromClass(Rfe,{decorations:e=>e.decorations})]}const j8=t=>e=>{const n=t==="down";let r=e.state.selection;for(const i of r.ranges)r=r.addRange(e.moveVertically(i,n));return e.dispatch({selection:r}),!0},Mfe=j8("up"),Dfe=j8("down"),Ife=t=>{let e=null;for(const n of t.state.selection.ranges)if(!n.empty)for(let r=n.from;r<=n.to;){const i=t.state.doc.lineAt(r),o=Math.min(i.to,n.to);e?e=e.addRange(tt.range(o,o)):e=tt.single(o),r=i.to+1}return e?(t.dispatch({selection:e}),!0):!1},$fe=[{key:"Ctrl-Space",run:SP},{key:"Escape",run:Wq},{key:"ArrowDown",run:Eu(!0)},{key:"ArrowUp",run:Eu(!1)},{key:"PageDown",run:Eu(!0,"page")},{key:"PageUp",run:Eu(!1,"page")},{key:"Enter",run:wP},{key:"Tab",run:wP},{key:"Mod-f",run:Fq,scope:"editor search-panel"},{key:"Escape",run:Bq,scope:"editor search-panel"},{key:"Alt-Enter",run:Nq,scope:"editor search-panel"},{key:"Mod-Alt-Enter",run:Lq,scope:"editor search-panel"},{key:"Ctrl-g",run:Jie},{key:"Mod-d",run:foe,preventDefault:!0},{key:"Shift-Mod-l",run:Ooe},{key:"Enter",run:G$,shift:G$},{key:"ArrowLeft",run:R$,shift:N$,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Tie,shift:$ie},{key:"ArrowRight",run:A$,shift:L$,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Rie,shift:Nie},{key:"ArrowUp",run:M$,shift:j$,preventDefault:!0},{key:"ArrowDown",run:D$,shift:Q$,preventDefault:!0},{key:"Home",run:$$,shift:q$},{mac:"Cmd-ArrowLeft",run:$$,shift:q$},{key:"Mod-Home",run:V$,shift:W$},{mac:"Cmd-ArrowUp",run:V$,shift:W$},{key:"PageUp",run:Sk,shift:F$},{mac:"Ctrl-ArrowUp",run:Sk,shift:F$},{key:"PageDown",run:kk,shift:B$},{mac:"Ctrl-ArrowDown",run:kk,shift:B$},{key:"End",run:I$,shift:U$},{mac:"Cmd-ArrowRight",run:I$,shift:U$},{key:"Mod-Alt-ArrowUp",linux:"Shift-Alt-ArrowUp",run:Mfe,preventDefault:!0},{key:"Mod-Alt-ArrowDown",linux:"Shift-Alt-ArrowDown",run:Dfe,preventDefault:!0},{key:"Shift-Alt-i",run:Ife},{key:"Mod-End",run:z$,shift:Z$},{mac:"Cmd-ArrowDown",run:z$,shift:Z$},{key:"Mod-a",run:Qie},{key:"Backspace",run:ase},{key:"Backspace",run:xk,shift:xk},{key:"Delete",run:X$},{key:"Mod-Backspace",mac:"Alt-Backspace",run:H$},{key:"Mod-Delete",mac:"Alt-Delete",run:Bie},{mac:"Mod-Backspace",run:Uie},{mac:"Mod-Delete",run:Y$},{mac:"Ctrl-b",run:R$,shift:N$,preventDefault:!0},{mac:"Ctrl-f",run:A$,shift:L$},{mac:"Ctrl-p",run:M$,shift:j$},{mac:"Ctrl-n",run:D$,shift:Q$},{mac:"Ctrl-a",run:Aie,shift:Lie},{mac:"Ctrl-e",run:Mie,shift:jie},{mac:"Ctrl-d",run:X$},{mac:"Ctrl-h",run:xk},{mac:"Ctrl-k",run:Y$},{mac:"Ctrl-Alt-h",run:H$},{mac:"Ctrl-o",run:qie},{mac:"Ctrl-t",run:Vie},{mac:"Ctrl-v",run:kk},{mac:"Alt-v",run:Sk},{key:"Shift-Mod-k",run:Hie},{key:"Alt-ArrowDown",run:Wie},{key:"Alt-ArrowUp",run:zie},{win:"Shift-Alt-ArrowDown",mac:"Shift-Alt-ArrowDown",run:Xie},{win:"Shift-Alt-ArrowUp",mac:"Shift-Alt-ArrowUp",run:Zie},{key:"Mod-l",run:Fie,preventDefault:!0},{key:"Shift-Mod-\\",run:Iie},{key:"Tab",run:K$,shift:J$,preventDefault:!0},{key:"Mod-[",run:J$},{key:"Mod-]",run:K$},{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:wre},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Sre},{key:"Mod-k Mod-0",run:kre},{key:"Mod-k Mod-j",run:xre},{key:"Mod-k Mod-c",run:hie},{key:"Mod-k Mod-u",run:pie},{key:"Mod-/",run:fie},{key:"Shift-Alt-a",run:mie},{key:"Mod-z",run:mq,preventDefault:!0},{key:"Mod-y",run:yP,preventDefault:!0},{key:"Mod-Shift-z",run:yP,preventDefault:!0},{key:"Mod-u",run:Sie,preventDefault:!0},{key:"Mod-Shift-m",run:Ose},{key:"F8",run:bse}],Nfe=({path:t,localPresence:e,usernameRef:n})=>kt.updateListener.of(r=>{if(r.selectionSet){const i=r.state.selection.ranges[0],{from:o,to:s}=i,a={start:[...t,o],end:[...t,s],username:n.current};e.submit(a,l=>{if(l)throw l})}});var _n=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},Vt=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},fu,Cc,Js,Gf,Dp,_a,Pa,Ca,Ea,Ta,Ra,Aa,Ma,Ec,Kf,du,Ey,hu;const Lfe=function(t){var e=131,n=137,r=0;t+="x";var i=Math.floor(9007199254740991/n);for(let o=0;o<t.length;o++)r>i&&(r=Math.floor(r/n)),r=r*e+t.charCodeAt(o);return r},Xt="0123456789abcdef".split(""),jfe=[-2147483648,8388608,32768,128],Xs=[24,16,8,0],T1=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Ti=[];class Qfe{constructor(e=!1,n=!1){fu.set(this,void 0),Cc.set(this,void 0),Js.set(this,void 0),Gf.set(this,void 0),Dp.set(this,void 0),_a.set(this,void 0),Pa.set(this,void 0),Ca.set(this,void 0),Ea.set(this,void 0),Ta.set(this,void 0),Ra.set(this,void 0),Aa.set(this,void 0),Ma.set(this,void 0),Ec.set(this,void 0),Kf.set(this,void 0),du.set(this,void 0),Ey.set(this,0),hu.set(this,void 0),this.init(e,n)}init(e,n){n?(Ti[0]=Ti[16]=Ti[1]=Ti[2]=Ti[3]=Ti[4]=Ti[5]=Ti[6]=Ti[7]=Ti[8]=Ti[9]=Ti[10]=Ti[11]=Ti[12]=Ti[13]=Ti[14]=Ti[15]=0,_n(this,Cc,Ti)):_n(this,Cc,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e?(_n(this,_a,3238371032),_n(this,Pa,914150663),_n(this,Ca,812702999),_n(this,Ea,4144912697),_n(this,Ta,4290775857),_n(this,Ra,1750603025),_n(this,Aa,1694076839),_n(this,Ma,3204075428)):(_n(this,_a,1779033703),_n(this,Pa,3144134277),_n(this,Ca,1013904242),_n(this,Ea,2773480762),_n(this,Ta,1359893119),_n(this,Ra,2600822924),_n(this,Aa,528734635),_n(this,Ma,1541459225)),_n(this,fu,_n(this,hu,_n(this,Js,_n(this,Kf,0)))),_n(this,Gf,_n(this,Ec,!1)),_n(this,Dp,!0),_n(this,du,e)}update(e){if(Vt(this,Gf))return this;let n;e instanceof ArrayBuffer?n=new Uint8Array(e):n=e;let r=0;const i=n.length,o=Vt(this,Cc);for(;r<i;){let s;if(Vt(this,Ec)&&(_n(this,Ec,!1),o[0]=Vt(this,fu),o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),typeof n!="string")for(s=Vt(this,hu);r<i&&s<64;++r)o[s>>2]|=n[r]<<Xs[s++&3];else for(s=Vt(this,hu);r<i&&s<64;++r){let a=n.charCodeAt(r);a<128?o[s>>2]|=a<<Xs[s++&3]:a<2048?(o[s>>2]|=(192|a>>6)<<Xs[s++&3],o[s>>2]|=(128|a&63)<<Xs[s++&3]):a<55296||a>=57344?(o[s>>2]|=(224|a>>12)<<Xs[s++&3],o[s>>2]|=(128|a>>6&63)<<Xs[s++&3],o[s>>2]|=(128|a&63)<<Xs[s++&3]):(a=65536+((a&1023)<<10|n.charCodeAt(++r)&1023),o[s>>2]|=(240|a>>18)<<Xs[s++&3],o[s>>2]|=(128|a>>12&63)<<Xs[s++&3],o[s>>2]|=(128|a>>6&63)<<Xs[s++&3],o[s>>2]|=(128|a&63)<<Xs[s++&3])}_n(this,Ey,s),_n(this,Js,Vt(this,Js)+(s-Vt(this,hu))),s>=64?(_n(this,fu,o[16]),_n(this,hu,s-64),this.hash(),_n(this,Ec,!0)):_n(this,hu,s)}return Vt(this,Js)>4294967295&&(_n(this,Kf,Vt(this,Kf)+(Vt(this,Js)/4294967296<<0)),_n(this,Js,Vt(this,Js)%4294967296)),this}finalize(){if(Vt(this,Gf))return;_n(this,Gf,!0);const e=Vt(this,Cc),n=Vt(this,Ey);e[16]=Vt(this,fu),e[n>>2]|=jfe[n&3],_n(this,fu,e[16]),n>=56&&(Vt(this,Ec)||this.hash(),e[0]=Vt(this,fu),e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=Vt(this,Kf)<<3|Vt(this,Js)>>>29,e[15]=Vt(this,Js)<<3,this.hash()}hash(){let e=Vt(this,_a),n=Vt(this,Pa),r=Vt(this,Ca),i=Vt(this,Ea),o=Vt(this,Ta),s=Vt(this,Ra),a=Vt(this,Aa),l=Vt(this,Ma);const u=Vt(this,Cc);let c,f,d,h,p,g,y,O,b,S;for(let k=16;k<64;++k)h=u[k-15],c=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,h=u[k-2],f=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,u[k]=u[k-16]+c+u[k-7]+f<<0;S=n&r;for(let k=0;k<64;k+=4)Vt(this,Dp)?(Vt(this,du)?(y=300032,h=u[0]-1413257819,l=h-150054599<<0,i=h+24177077<<0):(y=704751109,h=u[0]-210244248,l=h-1521486534<<0,i=h+143694565<<0),_n(this,Dp,!1)):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),f=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=e&n,d=y^e&r^S,g=o&s^~o&a,h=l+f+g+T1[k]+u[k],p=c+d,l=i+h<<0,i=h+p<<0),c=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),f=(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7),O=i&e,d=O^i&n^y,g=l&o^~l&s,h=a+f+g+T1[k+1]+u[k+1],p=c+d,a=r+h<<0,r=h+p<<0,c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),f=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=r&i,d=b^r&e^O,g=a&l^~a&o,h=s+f+g+T1[k+2]+u[k+2],p=c+d,s=n+h<<0,n=h+p<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),f=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),S=n&r,d=S^n&i^b,g=s&a^~s&l,h=o+f+g+T1[k+3]+u[k+3],p=c+d,o=e+h<<0,e=h+p<<0;_n(this,_a,Vt(this,_a)+e<<0),_n(this,Pa,Vt(this,Pa)+n<<0),_n(this,Ca,Vt(this,Ca)+r<<0),_n(this,Ea,Vt(this,Ea)+i<<0),_n(this,Ta,Vt(this,Ta)+o<<0),_n(this,Ra,Vt(this,Ra)+s<<0),_n(this,Aa,Vt(this,Aa)+a<<0),_n(this,Ma,Vt(this,Ma)+l<<0)}hex(){this.finalize();const e=Vt(this,_a),n=Vt(this,Pa),r=Vt(this,Ca),i=Vt(this,Ea),o=Vt(this,Ta),s=Vt(this,Ra),a=Vt(this,Aa),l=Vt(this,Ma);let u=Xt[e>>28&15]+Xt[e>>24&15]+Xt[e>>20&15]+Xt[e>>16&15]+Xt[e>>12&15]+Xt[e>>8&15]+Xt[e>>4&15]+Xt[e&15]+Xt[n>>28&15]+Xt[n>>24&15]+Xt[n>>20&15]+Xt[n>>16&15]+Xt[n>>12&15]+Xt[n>>8&15]+Xt[n>>4&15]+Xt[n&15]+Xt[r>>28&15]+Xt[r>>24&15]+Xt[r>>20&15]+Xt[r>>16&15]+Xt[r>>12&15]+Xt[r>>8&15]+Xt[r>>4&15]+Xt[r&15]+Xt[i>>28&15]+Xt[i>>24&15]+Xt[i>>20&15]+Xt[i>>16&15]+Xt[i>>12&15]+Xt[i>>8&15]+Xt[i>>4&15]+Xt[i&15]+Xt[o>>28&15]+Xt[o>>24&15]+Xt[o>>20&15]+Xt[o>>16&15]+Xt[o>>12&15]+Xt[o>>8&15]+Xt[o>>4&15]+Xt[o&15]+Xt[s>>28&15]+Xt[s>>24&15]+Xt[s>>20&15]+Xt[s>>16&15]+Xt[s>>12&15]+Xt[s>>8&15]+Xt[s>>4&15]+Xt[s&15]+Xt[a>>28&15]+Xt[a>>24&15]+Xt[a>>20&15]+Xt[a>>16&15]+Xt[a>>12&15]+Xt[a>>8&15]+Xt[a>>4&15]+Xt[a&15];return Vt(this,du)||(u+=Xt[l>>28&15]+Xt[l>>24&15]+Xt[l>>20&15]+Xt[l>>16&15]+Xt[l>>12&15]+Xt[l>>8&15]+Xt[l>>4&15]+Xt[l&15]),u}toString(){return this.hex()}digest(){this.finalize();const e=Vt(this,_a),n=Vt(this,Pa),r=Vt(this,Ca),i=Vt(this,Ea),o=Vt(this,Ta),s=Vt(this,Ra),a=Vt(this,Aa),l=Vt(this,Ma),u=[e>>24&255,e>>16&255,e>>8&255,e&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255,s>>24&255,s>>16&255,s>>8&255,s&255,a>>24&255,a>>16&255,a>>8&255,a&255];return Vt(this,du)||u.push(l>>24&255,l>>16&255,l>>8&255,l&255),u}array(){return this.digest()}arrayBuffer(){this.finalize();const e=new ArrayBuffer(Vt(this,du)?28:32),n=new DataView(e);return n.setUint32(0,Vt(this,_a)),n.setUint32(4,Vt(this,Pa)),n.setUint32(8,Vt(this,Ca)),n.setUint32(12,Vt(this,Ea)),n.setUint32(16,Vt(this,Ta)),n.setUint32(20,Vt(this,Ra)),n.setUint32(24,Vt(this,Aa)),Vt(this,du)||n.setUint32(28,Vt(this,Ma)),e}}fu=new WeakMap,Cc=new WeakMap,Js=new WeakMap,Gf=new WeakMap,Dp=new WeakMap,_a=new WeakMap,Pa=new WeakMap,Ca=new WeakMap,Ea=new WeakMap,Ta=new WeakMap,Ra=new WeakMap,Aa=new WeakMap,Ma=new WeakMap,Ec=new WeakMap,Kf=new WeakMap,du=new WeakMap,Ey=new WeakMap,hu=new WeakMap;function Ffe(t){const e=new Qfe;return e.update(t),parseInt(e.hex().substring(0,8),16)}const Bfe=function(t){var e="#";return t.forEach(function(n){n<16&&(e+=0),e+=n.toString(16)}),e},Ufe=function(t,e,n){t/=360;var r=n<.5?n*(1+e):n+e-n*e,i=2*n-r;return[t+1/3,t,t-1/3].map(function(o){return o<0&&o++,o>1&&o--,o<1/6?o=i+(r-i)*6*o:o<.5?o=r:o<2/3?o=i+(r-i)*6*(2/3-o):o=i,Math.round(o*255)})};class qfe{constructor(e={}){const[n,r]=[e.lightness,e.saturation].map(function(i){return i=i!==void 0?i:[.35,.5,.65],Array.isArray(i)?i.concat():[i]});this.L=n,this.S=r,typeof e.hue=="number"&&(e.hue={min:e.hue,max:e.hue}),typeof e.hue=="object"&&!Array.isArray(e.hue)&&(e.hue=[e.hue]),typeof e.hue>"u"&&(e.hue=[]),this.hueRanges=e.hue.map(function(i){return{min:typeof i.min>"u"?0:i.min,max:typeof i.max>"u"?360:i.max}}),this.hash=Ffe,typeof e.hash=="function"&&(this.hash=e.hash),e.hash==="bkdr"&&(this.hash=Lfe)}hsl(e){var n,r,i,o=this.hash(e),s=727;if(this.hueRanges.length){const a=this.hueRanges[o%this.hueRanges.length];n=o/this.hueRanges.length%s*(a.max-a.min)/s+a.min}else n=o%359;return o=Math.ceil(o/360),r=this.S[o%this.S.length],o=Math.ceil(o/this.S.length),i=this.L[o%this.L.length],[n,r,i]}rgb(e){var n=this.hsl(e);return Ufe.apply(this,n)}hex(e){var n=this.rgb(e);return Bfe(n)}}const Q8=t=>new qfe({lightness:.75}).rgb(t).join(","),Vfe=({path:t,docPresence:e,enableAutoFollowRef:n})=>[cr.fromClass(class{decorations;cursorPosition={};previousCursorPositions={};pendingUpdate=!1;pendingScrollUpdate=!1;constructor(r){this.decorations=Hn.of([]);const i={};e.on("receive",(o,s)=>{s?Wfe(t,s)?i[o]=s:(delete i[o],delete this.cursorPosition[o],delete this.previousCursorPositions[o]):(delete i[o],delete this.cursorPosition[o],delete this.previousCursorPositions[o]);const a=[];for(const l of Object.keys(i)){const u=i[l],{start:c,end:f}=u,d=+c[c.length-1],h=+f[f.length-1],p=Q8(u.username),{username:g}=u,O=this.previousCursorPositions[l]!==d;a.push({from:d,to:d,value:Lt.widget({side:-1,block:!1,widget:new Zfe(""+Math.random(),p,g,O)})}),d!==h&&a.push({from:d,to:h,value:Lt.mark({class:"cm-json1-presence",attributes:{style:`
152
+ `)}))}),console.log(" generated json1 op: "+JSON.stringify(yN(e,o.changes,o.startState.doc,n,r)))),t.submitOp(yN(e,o.changes,o.startState.doc,n,r)),this.lock=!1)}destroy(){t.off("op",this.handleOp)}});function Pfe(t,e=t.state){const n=new Set;for(const{from:r,to:i}of t.visibleRanges){let o=r;for(;o<=i;){const s=e.doc.lineAt(o);n.has(s)||n.add(s),o=s.to+1}}return n}function FP(t){const e=t.selection.main.head;return t.doc.lineAt(e)}function bN(t,e){let n=0;e:for(let r=0;r<t.length;r++)switch(t[r]){case" ":case" ":{n+=1;continue e}case" ":{n+=e-n%e;continue e}case"\r":continue e;default:break e}return n}const PO=$t.define({combine(t){return ds(t,{highlightActiveBlock:!0,hideFirstIndent:!1,markerType:"fullScope",thickness:1})}});class Cfe{constructor(e,n,r,i){this.lines=e,this.state=n,this.map=new Map,this.unitWidth=r,this.markerType=i;for(const o of this.lines)this.add(o);this.state.facet(PO).highlightActiveBlock&&this.findAndSetActiveLines()}has(e){return this.map.has(typeof e=="number"?e:e.number)}get(e){const n=this.map.get(typeof e=="number"?e:e.number);if(!n)throw new Error("Line not found in indentation map");return n}set(e,n,r){const i=!e.text.trim().length,o={line:e,col:n,level:r,empty:i};return this.map.set(o.line.number,o),o}add(e){if(this.has(e))return this.get(e);if(!e.length||!e.text.trim().length){if(e.number===1)return this.set(e,0,0);if(e.number===this.state.doc.lines){const s=this.closestNonEmpty(e,-1);return this.set(e,0,s.level)}const i=this.closestNonEmpty(e,-1),o=this.closestNonEmpty(e,1);return i.level>=o.level&&this.markerType!=="codeOnly"?this.set(e,0,i.level):i.empty&&i.level===0&&o.level!==0?this.set(e,0,0):o.level>i.level?this.set(e,0,i.level+1):this.set(e,0,o.level)}const n=bN(e.text,this.state.tabSize),r=Math.floor(n/this.unitWidth);return this.set(e,n,r)}closestNonEmpty(e,n){let r=e.number+n;for(;n===-1?r>=1:r<=this.state.doc.lines;){if(this.has(r)){const s=this.get(r);if(!s.empty)return s}const o=this.state.doc.line(r);if(o.text.trim().length){const s=bN(o.text,this.state.tabSize),a=Math.floor(s/this.unitWidth);return this.set(o,s,a)}r+=n}const i=this.state.doc.line(n===-1?1:this.state.doc.lines);return this.set(i,0,0)}findAndSetActiveLines(){const e=FP(this.state);if(!this.has(e))return;let n=this.get(e);if(this.has(n.line.number+1)){const o=this.get(n.line.number+1);o.level>n.level&&(n=o)}if(this.has(n.line.number-1)){const o=this.get(n.line.number-1);o.level>n.level&&(n=o)}if(n.level===0)return;n.active=n.level;let r,i;for(r=n.line.number;r>1;r--){if(!this.has(r-1))continue;const o=this.get(r-1);if(o.level<n.level)break;o.active=n.level}for(i=n.line.number;i<this.state.doc.lines;i++){if(!this.has(i+1))continue;const o=this.get(i+1);if(o.level<n.level)break;o.active=n.level}}}function Efe(t){const e={light:"#F0F1F2",dark:"#2B3245",activeLight:"#E4E5E6",activeDark:"#3C445C"};let n=e;return t&&(n=Object.assign(Object.assign({},e),t)),kt.baseTheme({"&light":{"--indent-marker-bg-color":n.light,"--indent-marker-active-bg-color":n.activeLight},"&dark":{"--indent-marker-bg-color":n.dark,"--indent-marker-active-bg-color":n.activeDark},".cm-line":{position:"relative"},".cm-indent-markers::before":{content:'""',position:"absolute",top:0,left:"2px",right:0,bottom:0,background:"var(--indent-markers)",pointerEvents:"none",zIndex:"-1"}})}function E1(t,e,n,r,i){return`${`repeating-linear-gradient(to right, var(${t}) 0 ${e}px, transparent ${e}px ${n}ch)`} ${r*n}.5ch/calc(${n*i}ch - 1px) no-repeat`}function Tfe(t,e,n,r,i){const{level:o,active:s}=t;if(i=i??r,n&&o===0)return[];const a=n?1:0,l=[];if(s!==void 0){const u=s-a-1;u>0&&l.push(E1("--indent-marker-bg-color",r,e,a,u)),l.push(E1("--indent-marker-active-bg-color",i,e,s-1,1)),s!==o&&l.push(E1("--indent-marker-bg-color",r,e,s,o-s))}else l.push(E1("--indent-marker-bg-color",r,e,a,o-a));return l.join(",")}class Rfe{constructor(e){this.view=e,this.unitWidth=Bd(e.state),this.currentLineNumber=FP(e.state).number,this.generate(e.state)}update(e){const n=Bd(e.state),r=n!==this.unitWidth;r&&(this.unitWidth=n);const i=FP(e.state).number,o=i!==this.currentLineNumber;this.currentLineNumber=i;const s=e.state.facet(PO).highlightActiveBlock&&o;(e.docChanged||e.viewportChanged||r||s)&&this.generate(e.state)}generate(e){const n=new Rl,r=Pfe(this.view,e),{hideFirstIndent:i,markerType:o,thickness:s,activeThickness:a}=e.facet(PO),l=new Cfe(r,e,this.unitWidth,o);for(const u of r){const c=l.get(u.number);if(!c?.level)continue;const f=Tfe(c,this.unitWidth,i,s,a);n.add(u.from,u.from,Lt.line({class:"cm-indent-markers",attributes:{style:`--indent-markers: ${f}`}}))}this.decorations=n.finish()}}function Afe(t={}){return[PO.of(t),Efe(t.colors),cr.fromClass(Rfe,{decorations:e=>e.decorations})]}const j8=t=>e=>{const n=t==="down";let r=e.state.selection;for(const i of r.ranges)r=r.addRange(e.moveVertically(i,n));return e.dispatch({selection:r}),!0},Mfe=j8("up"),Dfe=j8("down"),Ife=t=>{let e=null;for(const n of t.state.selection.ranges)if(!n.empty)for(let r=n.from;r<=n.to;){const i=t.state.doc.lineAt(r),o=Math.min(i.to,n.to);e?e=e.addRange(tt.range(o,o)):e=tt.single(o),r=i.to+1}return e?(t.dispatch({selection:e}),!0):!1},$fe=[{key:"Ctrl-Space",run:SP},{key:"Escape",run:Wq},{key:"ArrowDown",run:Eu(!0)},{key:"ArrowUp",run:Eu(!1)},{key:"PageDown",run:Eu(!0,"page")},{key:"PageUp",run:Eu(!1,"page")},{key:"Enter",run:wP},{key:"Tab",run:wP},{key:"Mod-f",run:Fq,scope:"editor search-panel"},{key:"Escape",run:Bq,scope:"editor search-panel"},{key:"Alt-Enter",run:Nq,scope:"editor search-panel"},{key:"Mod-Alt-Enter",run:Lq,scope:"editor search-panel"},{key:"Ctrl-g",run:Jie},{key:"Mod-d",run:foe,preventDefault:!0},{key:"Shift-Mod-l",run:Ooe},{key:"Enter",run:G$,shift:G$},{key:"ArrowLeft",run:R$,shift:N$,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Tie,shift:$ie},{key:"ArrowRight",run:A$,shift:L$,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Rie,shift:Nie},{key:"ArrowUp",run:M$,shift:j$,preventDefault:!0},{key:"ArrowDown",run:D$,shift:Q$,preventDefault:!0},{key:"Home",run:$$,shift:q$},{mac:"Cmd-ArrowLeft",run:$$,shift:q$},{key:"Mod-Home",run:V$,shift:W$},{mac:"Cmd-ArrowUp",run:V$,shift:W$},{key:"PageUp",run:Sk,shift:F$},{mac:"Ctrl-ArrowUp",run:Sk,shift:F$},{key:"PageDown",run:kk,shift:B$},{mac:"Ctrl-ArrowDown",run:kk,shift:B$},{key:"End",run:I$,shift:U$},{mac:"Cmd-ArrowRight",run:I$,shift:U$},{key:"Mod-Alt-ArrowUp",linux:"Shift-Alt-ArrowUp",run:Mfe,preventDefault:!0},{key:"Mod-Alt-ArrowDown",linux:"Shift-Alt-ArrowDown",run:Dfe,preventDefault:!0},{key:"Shift-Alt-i",run:Ife},{key:"Mod-End",run:z$,shift:Z$},{mac:"Cmd-ArrowDown",run:z$,shift:Z$},{key:"Mod-a",run:Qie},{key:"Backspace",run:ase},{key:"Backspace",run:xk,shift:xk},{key:"Delete",run:X$},{key:"Mod-Backspace",mac:"Alt-Backspace",run:H$},{key:"Mod-Delete",mac:"Alt-Delete",run:Bie},{mac:"Mod-Backspace",run:Uie},{mac:"Mod-Delete",run:Y$},{mac:"Ctrl-b",run:R$,shift:N$,preventDefault:!0},{mac:"Ctrl-f",run:A$,shift:L$},{mac:"Ctrl-p",run:M$,shift:j$},{mac:"Ctrl-n",run:D$,shift:Q$},{mac:"Ctrl-a",run:Aie,shift:Lie},{mac:"Ctrl-e",run:Mie,shift:jie},{mac:"Ctrl-d",run:X$},{mac:"Ctrl-h",run:xk},{mac:"Ctrl-k",run:Y$},{mac:"Ctrl-Alt-h",run:H$},{mac:"Ctrl-o",run:qie},{mac:"Ctrl-t",run:Vie},{mac:"Ctrl-v",run:kk},{mac:"Alt-v",run:Sk},{key:"Shift-Mod-k",run:Hie},{key:"Alt-ArrowDown",run:Wie},{key:"Alt-ArrowUp",run:zie},{win:"Shift-Alt-ArrowDown",mac:"Shift-Alt-ArrowDown",run:Xie},{win:"Shift-Alt-ArrowUp",mac:"Shift-Alt-ArrowUp",run:Zie},{key:"Mod-l",run:Fie,preventDefault:!0},{key:"Shift-Mod-\\",run:Iie},{key:"Tab",run:K$,shift:J$,preventDefault:!0},{key:"Mod-[",run:J$},{key:"Mod-]",run:K$},{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:wre},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Sre},{key:"Mod-k Mod-0",run:kre},{key:"Mod-k Mod-j",run:xre},{key:"Mod-k Mod-c",run:hie},{key:"Mod-k Mod-u",run:pie},{key:"Mod-/",run:fie},{key:"Shift-Alt-a",run:mie},{key:"Mod-z",run:mq,preventDefault:!0},{key:"Mod-y",run:yP,preventDefault:!0},{key:"Mod-Shift-z",run:yP,preventDefault:!0},{key:"Mod-u",run:Sie,preventDefault:!0},{key:"Mod-Shift-m",run:Ose},{key:"F8",run:bse}],Nfe=({path:t,localPresence:e,usernameRef:n})=>kt.updateListener.of(r=>{if(r.selectionSet){const i=r.state.selection.ranges[0],{from:o,to:s}=i,a={start:[...t,o],end:[...t,s],username:n.current};e.submit(a,l=>{if(l)throw l})}});var _n=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},zt=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},fu,Cc,Js,Gf,Dp,_a,Pa,Ca,Ea,Ta,Ra,Aa,Ma,Ec,Kf,du,Ey,hu;const Lfe=function(t){var e=131,n=137,r=0;t+="x";var i=Math.floor(9007199254740991/n);for(let o=0;o<t.length;o++)r>i&&(r=Math.floor(r/n)),r=r*e+t.charCodeAt(o);return r},Xt="0123456789abcdef".split(""),jfe=[-2147483648,8388608,32768,128],Xs=[24,16,8,0],T1=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Ti=[];class Qfe{constructor(e=!1,n=!1){fu.set(this,void 0),Cc.set(this,void 0),Js.set(this,void 0),Gf.set(this,void 0),Dp.set(this,void 0),_a.set(this,void 0),Pa.set(this,void 0),Ca.set(this,void 0),Ea.set(this,void 0),Ta.set(this,void 0),Ra.set(this,void 0),Aa.set(this,void 0),Ma.set(this,void 0),Ec.set(this,void 0),Kf.set(this,void 0),du.set(this,void 0),Ey.set(this,0),hu.set(this,void 0),this.init(e,n)}init(e,n){n?(Ti[0]=Ti[16]=Ti[1]=Ti[2]=Ti[3]=Ti[4]=Ti[5]=Ti[6]=Ti[7]=Ti[8]=Ti[9]=Ti[10]=Ti[11]=Ti[12]=Ti[13]=Ti[14]=Ti[15]=0,_n(this,Cc,Ti)):_n(this,Cc,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e?(_n(this,_a,3238371032),_n(this,Pa,914150663),_n(this,Ca,812702999),_n(this,Ea,4144912697),_n(this,Ta,4290775857),_n(this,Ra,1750603025),_n(this,Aa,1694076839),_n(this,Ma,3204075428)):(_n(this,_a,1779033703),_n(this,Pa,3144134277),_n(this,Ca,1013904242),_n(this,Ea,2773480762),_n(this,Ta,1359893119),_n(this,Ra,2600822924),_n(this,Aa,528734635),_n(this,Ma,1541459225)),_n(this,fu,_n(this,hu,_n(this,Js,_n(this,Kf,0)))),_n(this,Gf,_n(this,Ec,!1)),_n(this,Dp,!0),_n(this,du,e)}update(e){if(zt(this,Gf))return this;let n;e instanceof ArrayBuffer?n=new Uint8Array(e):n=e;let r=0;const i=n.length,o=zt(this,Cc);for(;r<i;){let s;if(zt(this,Ec)&&(_n(this,Ec,!1),o[0]=zt(this,fu),o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),typeof n!="string")for(s=zt(this,hu);r<i&&s<64;++r)o[s>>2]|=n[r]<<Xs[s++&3];else for(s=zt(this,hu);r<i&&s<64;++r){let a=n.charCodeAt(r);a<128?o[s>>2]|=a<<Xs[s++&3]:a<2048?(o[s>>2]|=(192|a>>6)<<Xs[s++&3],o[s>>2]|=(128|a&63)<<Xs[s++&3]):a<55296||a>=57344?(o[s>>2]|=(224|a>>12)<<Xs[s++&3],o[s>>2]|=(128|a>>6&63)<<Xs[s++&3],o[s>>2]|=(128|a&63)<<Xs[s++&3]):(a=65536+((a&1023)<<10|n.charCodeAt(++r)&1023),o[s>>2]|=(240|a>>18)<<Xs[s++&3],o[s>>2]|=(128|a>>12&63)<<Xs[s++&3],o[s>>2]|=(128|a>>6&63)<<Xs[s++&3],o[s>>2]|=(128|a&63)<<Xs[s++&3])}_n(this,Ey,s),_n(this,Js,zt(this,Js)+(s-zt(this,hu))),s>=64?(_n(this,fu,o[16]),_n(this,hu,s-64),this.hash(),_n(this,Ec,!0)):_n(this,hu,s)}return zt(this,Js)>4294967295&&(_n(this,Kf,zt(this,Kf)+(zt(this,Js)/4294967296<<0)),_n(this,Js,zt(this,Js)%4294967296)),this}finalize(){if(zt(this,Gf))return;_n(this,Gf,!0);const e=zt(this,Cc),n=zt(this,Ey);e[16]=zt(this,fu),e[n>>2]|=jfe[n&3],_n(this,fu,e[16]),n>=56&&(zt(this,Ec)||this.hash(),e[0]=zt(this,fu),e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=zt(this,Kf)<<3|zt(this,Js)>>>29,e[15]=zt(this,Js)<<3,this.hash()}hash(){let e=zt(this,_a),n=zt(this,Pa),r=zt(this,Ca),i=zt(this,Ea),o=zt(this,Ta),s=zt(this,Ra),a=zt(this,Aa),l=zt(this,Ma);const u=zt(this,Cc);let c,f,d,h,p,g,y,O,b,S;for(let k=16;k<64;++k)h=u[k-15],c=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,h=u[k-2],f=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,u[k]=u[k-16]+c+u[k-7]+f<<0;S=n&r;for(let k=0;k<64;k+=4)zt(this,Dp)?(zt(this,du)?(y=300032,h=u[0]-1413257819,l=h-150054599<<0,i=h+24177077<<0):(y=704751109,h=u[0]-210244248,l=h-1521486534<<0,i=h+143694565<<0),_n(this,Dp,!1)):(c=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),f=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),y=e&n,d=y^e&r^S,g=o&s^~o&a,h=l+f+g+T1[k]+u[k],p=c+d,l=i+h<<0,i=h+p<<0),c=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),f=(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7),O=i&e,d=O^i&n^y,g=l&o^~l&s,h=a+f+g+T1[k+1]+u[k+1],p=c+d,a=r+h<<0,r=h+p<<0,c=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),f=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),b=r&i,d=b^r&e^O,g=a&l^~a&o,h=s+f+g+T1[k+2]+u[k+2],p=c+d,s=n+h<<0,n=h+p<<0,c=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),f=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),S=n&r,d=S^n&i^b,g=s&a^~s&l,h=o+f+g+T1[k+3]+u[k+3],p=c+d,o=e+h<<0,e=h+p<<0;_n(this,_a,zt(this,_a)+e<<0),_n(this,Pa,zt(this,Pa)+n<<0),_n(this,Ca,zt(this,Ca)+r<<0),_n(this,Ea,zt(this,Ea)+i<<0),_n(this,Ta,zt(this,Ta)+o<<0),_n(this,Ra,zt(this,Ra)+s<<0),_n(this,Aa,zt(this,Aa)+a<<0),_n(this,Ma,zt(this,Ma)+l<<0)}hex(){this.finalize();const e=zt(this,_a),n=zt(this,Pa),r=zt(this,Ca),i=zt(this,Ea),o=zt(this,Ta),s=zt(this,Ra),a=zt(this,Aa),l=zt(this,Ma);let u=Xt[e>>28&15]+Xt[e>>24&15]+Xt[e>>20&15]+Xt[e>>16&15]+Xt[e>>12&15]+Xt[e>>8&15]+Xt[e>>4&15]+Xt[e&15]+Xt[n>>28&15]+Xt[n>>24&15]+Xt[n>>20&15]+Xt[n>>16&15]+Xt[n>>12&15]+Xt[n>>8&15]+Xt[n>>4&15]+Xt[n&15]+Xt[r>>28&15]+Xt[r>>24&15]+Xt[r>>20&15]+Xt[r>>16&15]+Xt[r>>12&15]+Xt[r>>8&15]+Xt[r>>4&15]+Xt[r&15]+Xt[i>>28&15]+Xt[i>>24&15]+Xt[i>>20&15]+Xt[i>>16&15]+Xt[i>>12&15]+Xt[i>>8&15]+Xt[i>>4&15]+Xt[i&15]+Xt[o>>28&15]+Xt[o>>24&15]+Xt[o>>20&15]+Xt[o>>16&15]+Xt[o>>12&15]+Xt[o>>8&15]+Xt[o>>4&15]+Xt[o&15]+Xt[s>>28&15]+Xt[s>>24&15]+Xt[s>>20&15]+Xt[s>>16&15]+Xt[s>>12&15]+Xt[s>>8&15]+Xt[s>>4&15]+Xt[s&15]+Xt[a>>28&15]+Xt[a>>24&15]+Xt[a>>20&15]+Xt[a>>16&15]+Xt[a>>12&15]+Xt[a>>8&15]+Xt[a>>4&15]+Xt[a&15];return zt(this,du)||(u+=Xt[l>>28&15]+Xt[l>>24&15]+Xt[l>>20&15]+Xt[l>>16&15]+Xt[l>>12&15]+Xt[l>>8&15]+Xt[l>>4&15]+Xt[l&15]),u}toString(){return this.hex()}digest(){this.finalize();const e=zt(this,_a),n=zt(this,Pa),r=zt(this,Ca),i=zt(this,Ea),o=zt(this,Ta),s=zt(this,Ra),a=zt(this,Aa),l=zt(this,Ma),u=[e>>24&255,e>>16&255,e>>8&255,e&255,n>>24&255,n>>16&255,n>>8&255,n&255,r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255,s>>24&255,s>>16&255,s>>8&255,s&255,a>>24&255,a>>16&255,a>>8&255,a&255];return zt(this,du)||u.push(l>>24&255,l>>16&255,l>>8&255,l&255),u}array(){return this.digest()}arrayBuffer(){this.finalize();const e=new ArrayBuffer(zt(this,du)?28:32),n=new DataView(e);return n.setUint32(0,zt(this,_a)),n.setUint32(4,zt(this,Pa)),n.setUint32(8,zt(this,Ca)),n.setUint32(12,zt(this,Ea)),n.setUint32(16,zt(this,Ta)),n.setUint32(20,zt(this,Ra)),n.setUint32(24,zt(this,Aa)),zt(this,du)||n.setUint32(28,zt(this,Ma)),e}}fu=new WeakMap,Cc=new WeakMap,Js=new WeakMap,Gf=new WeakMap,Dp=new WeakMap,_a=new WeakMap,Pa=new WeakMap,Ca=new WeakMap,Ea=new WeakMap,Ta=new WeakMap,Ra=new WeakMap,Aa=new WeakMap,Ma=new WeakMap,Ec=new WeakMap,Kf=new WeakMap,du=new WeakMap,Ey=new WeakMap,hu=new WeakMap;function Ffe(t){const e=new Qfe;return e.update(t),parseInt(e.hex().substring(0,8),16)}const Bfe=function(t){var e="#";return t.forEach(function(n){n<16&&(e+=0),e+=n.toString(16)}),e},Ufe=function(t,e,n){t/=360;var r=n<.5?n*(1+e):n+e-n*e,i=2*n-r;return[t+1/3,t,t-1/3].map(function(o){return o<0&&o++,o>1&&o--,o<1/6?o=i+(r-i)*6*o:o<.5?o=r:o<2/3?o=i+(r-i)*6*(2/3-o):o=i,Math.round(o*255)})};class qfe{constructor(e={}){const[n,r]=[e.lightness,e.saturation].map(function(i){return i=i!==void 0?i:[.35,.5,.65],Array.isArray(i)?i.concat():[i]});this.L=n,this.S=r,typeof e.hue=="number"&&(e.hue={min:e.hue,max:e.hue}),typeof e.hue=="object"&&!Array.isArray(e.hue)&&(e.hue=[e.hue]),typeof e.hue>"u"&&(e.hue=[]),this.hueRanges=e.hue.map(function(i){return{min:typeof i.min>"u"?0:i.min,max:typeof i.max>"u"?360:i.max}}),this.hash=Ffe,typeof e.hash=="function"&&(this.hash=e.hash),e.hash==="bkdr"&&(this.hash=Lfe)}hsl(e){var n,r,i,o=this.hash(e),s=727;if(this.hueRanges.length){const a=this.hueRanges[o%this.hueRanges.length];n=o/this.hueRanges.length%s*(a.max-a.min)/s+a.min}else n=o%359;return o=Math.ceil(o/360),r=this.S[o%this.S.length],o=Math.ceil(o/this.S.length),i=this.L[o%this.L.length],[n,r,i]}rgb(e){var n=this.hsl(e);return Ufe.apply(this,n)}hex(e){var n=this.rgb(e);return Bfe(n)}}const Q8=t=>new qfe({lightness:.75}).rgb(t).join(","),Vfe=({path:t,docPresence:e,enableAutoFollowRef:n})=>[cr.fromClass(class{decorations;cursorPosition={};previousCursorPositions={};pendingUpdate=!1;pendingScrollUpdate=!1;constructor(r){this.decorations=Hn.of([]);const i={};e.on("receive",(o,s)=>{s?Wfe(t,s)?i[o]=s:(delete i[o],delete this.cursorPosition[o],delete this.previousCursorPositions[o]):(delete i[o],delete this.cursorPosition[o],delete this.previousCursorPositions[o]);const a=[];for(const l of Object.keys(i)){const u=i[l],{start:c,end:f}=u,d=+c[c.length-1],h=+f[f.length-1],p=Q8(u.username),{username:g}=u,O=this.previousCursorPositions[l]!==d;a.push({from:d,to:d,value:Lt.widget({side:-1,block:!1,widget:new Zfe(""+Math.random(),p,g,O)})}),d!==h&&a.push({from:d,to:h,value:Lt.mark({class:"cm-json1-presence",attributes:{style:`
153
153
  background-color: rgba(${p}, 0.75);
154
154
  mix-blend-mode: luminosity;
155
155
  `}})}),r.state.doc.length>=d?(this.cursorPosition[l]=d,this.previousCursorPositions[l]=d):(delete this.cursorPosition[l],delete this.previousCursorPositions[l])}this.decorations=Lt.set(a,!0),this.pendingUpdate||(this.pendingUpdate=!0,requestAnimationFrame(()=>{this.pendingUpdate=!1,r.state&&r.dom.isConnected&&r.dispatch({annotations:[zfe.of(!0)]})})),n.current&&this.scrollToCursor(r)})}scrollToCursor(r){this.pendingScrollUpdate||(this.pendingScrollUpdate=!0,requestAnimationFrame(()=>{if(this.pendingScrollUpdate=!1,r.state&&r.dom.isConnected)for(const i in this.cursorPosition){const o=this.cursorPosition[i];r.dispatch({effects:kt.scrollIntoView(o)});break}}))}},{decorations:r=>r.decorations}),Xfe],zfe=Ka.define(),Wfe=(t,e)=>{for(let n=0;n<t.length;n++)if(t[n]!==e.start[n])return!1;return!0};class Zfe extends Vo{id;color;username;timeout;cursorMoved;constructor(e,n,r,i=!0){super(),this.id=e,this.color=n,this.username=r,this.cursorMoved=i}eq(e){return e.id===this.id&&e.cursorMoved===this.cursorMoved}toDOM(){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className="cm-json1-presence";const n=document.createElement("div");e.appendChild(n),n.style.borderLeft=`1px solid rgba(${this.color})`;const r=document.createElement("div");return r.className="remote-cursor-username",r.style.top="-20px",r.style.height="20px",r.style.width=`${this.username.length*12}px`,r.style.backgroundColor=`rgba(${this.color})`,r.style.color="black",r.appendChild(document.createTextNode(this.username)),e.appendChild(r),this.cursorMoved?(r.style.opacity="1",this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{r.style.opacity="0.3"},2e3)):r.style.opacity="0.3",e}ignoreEvent(){return!1}}const Xfe=kt.baseTheme({".cm-json1-presence":{position:"relative"},".cm-json1-presence > div":{position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}}),F8=Wr.define({create:()=>null,update:(t,e)=>{for(const n of e.effects)if(n.is(BP))return n.value;if(!t)return null;if(!e.changes.empty){const n=e.changes.mapPos(t.pos,-1,wi.TrackDel),r=e.changes.mapPos(t.pos+t.text.length,-1,wi.TrackDel);return n===null||r===null||e.newDoc.sliceString(n,r)!==t.text?null:Object.assign(Object.assign({},t),{pos:n})}return t},provide:t=>[kt.decorations.from(t,e=>{if(!e)return Lt.none;const n=e.pos,r=e.pos+e.text.length,i=e.rule.className;return Lt.set(Hfe({className:i}).range(n,r))}),kt.contentAttributes.from(t,e=>!e||!e.rule.cursor?{style:""}:{style:`cursor: ${e.rule.cursor}`})]}),BP=xn.define(),Hfe=t=>{var e;return Lt.mark({class:`cm-interact ${(e=t?.className)!==null&&e!==void 0?e:""}`})},Yfe=kt.theme({".cm-interact":{background:"rgba(128, 128, 255, 0.2)",borderRadius:"4px"}}),B8=$t.define(),U8=$t.define({combine:t=>t[t.length-1]}),Gfe=cr.define(t=>({target:null,dragging:!1,mouseX:0,mouseY:0,getMatch(){const e=t.state.facet(B8),n=t.posAtCoords({x:this.mouseX,y:this.mouseY});if(!n)return null;const r=t.state.doc.lineAt(n),i=n-r.from;let o=null;for(const s of e)for(const a of r.text.matchAll(s.regexp)){if(a.index===void 0)continue;const l=a[0];if(!l)continue;const u=a.index,c=a.index+l.length;i<u||i>c||(!o||l.length<o.text.length)&&(o={rule:s,pos:r.from+u,text:l})}return o},updateText(e){return n=>{t.dispatch({effects:BP.of(Object.assign(Object.assign({},e),{text:n})),changes:{from:e.pos,to:e.pos+e.text.length,insert:n}})}},setTarget(e){this.target=e,t.dispatch({effects:BP.of(e)})},isModKeyDown(e){const n=t.state.facet(U8),r=!!window.navigator&&window.navigator.userAgent.includes("Macintosh");switch(n){case"alt":return e.altKey;case"shift":return e.shiftKey;case"ctrl":return e.ctrlKey;case"meta":return e.metaKey;case"mod":return r?e.metaKey:e.ctrlKey}throw new Error(`Invalid mod key: ${n}`)},update(e){const n=e.state.field(F8,!1);n!==void 0&&this.target!==n&&(this.target=n,n===null&&this.endDrag())},startDrag(e){this.dragging||this.target&&(this.dragging=!0,this.target.rule.onDragStart&&this.target.rule.onDragStart(this.target.text,this.updateText(this.target),e))},endDrag(){var e;this.dragging&&(this.dragging=!1,!((e=this.target)===null||e===void 0)&&e.rule.onDragEnd&&this.target.rule.onDragEnd(this.target.text,this.updateText(this.target)))}}),{eventHandlers:{mousedown(t,e){this.isModKeyDown(t)&&this.target&&(t.preventDefault(),this.target.rule.onClick&&this.target.rule.onClick(this.target.text,n=>{this.target&&this.updateText(this.target)(n)},t),this.target.rule.onDrag&&this.startDrag(t))},mousemove(t,e){if(this.mouseX=t.clientX,this.mouseY=t.clientY,!this.isModKeyDown(t)){this.target&&this.setTarget(null);return}this.target&&this.dragging?this.target.rule.onDrag&&this.target.rule.onDrag(this.target.text,this.updateText(this.target),t):this.setTarget(this.getMatch())},mouseup(t,e){this.endDrag(),this.target&&!this.isModKeyDown(t)&&this.setTarget(null),this.isModKeyDown(t)&&this.setTarget(this.getMatch())},mouseleave(t,e){this.endDrag(),this.target&&this.setTarget(null)},keydown(t,e){!this.target&&this.isModKeyDown(t)&&this.setTarget(this.getMatch())},keyup(t,e){this.target&&!this.isModKeyDown(t)&&(this.endDrag(),this.setTarget(null))}}}),Kfe=(t={})=>{var e,n;return[F8,Yfe,Gfe,U8.of((e=t.key)!==null&&e!==void 0?e:"alt"),((n=t.rules)!==null&&n!==void 0?n:[]).map(r=>B8.of(r))]},Jfe=/https?:\/\/[^\s'")]*([^\s'",;.]|\([^\s'")]*\)|\b)/g,ede={regexp:Jfe,cursor:"pointer",onClick:t=>{window.open(t)}},q8=/#[0-9A-Fa-f]{6}/g,tde=t=>({regexp:q8,cursor:"pointer",onClick(e,n,r){const i=e,o=document.createElement("input");o.type="color",o.value=i.toLowerCase();const s=i.toUpperCase()===i,a=l=>{const u=l.target;u.value&&n(s?u.value.toUpperCase():u.value),t&&t()};o.addEventListener("input",a),o.style.position="absolute",o.style.left=`${r.clientX}px`,o.style.top=`${r.clientY}px`,o.style.opacity="0",o.style.height="0",o.style.width="0",o.style.border="none",o.style.padding="0",o.style.margin="0",document.body.appendChild(o),setTimeout(()=>{o.click()},10),o.addEventListener("blur",()=>{document.body.removeChild(o)})}}),nde=new RegExp("(?<!\\#)-?\\b\\d+\\.?\\d*\\b","g"),rde=t=>({regexp:nde,cursor:"ew-resize",onDrag:(e,n,r)=>{const i=Number(e)+r.movementX;isNaN(i)||(n(i.toString()),t&&t())}}),ide=/true|false/g,ode=t=>({regexp:ide,cursor:"pointer",onClick:(e,n)=>{n(e==="true"?"false":"true"),t&&t()}}),sde=t=>({regexp:/vec2\(-?\b\d+\.?\d*\b\s*(,\s*-?\b\d+\.?\d*\b)?\)/g,cursor:"move",onDrag:(e,n,r)=>{const i=/vec2\((?<x>-?\b\d+\.?\d*\b)\s*(,\s*(?<y>-?\b\d+\.?\d*\b))?\)/.exec(e),o=Number(i?.groups?.x);let s=Number(i?.groups?.y);isNaN(o)||(isNaN(s)&&(s=o),n(`vec2(${o+r.movementX}, ${s-r.movementY})`),t&&t())}});let Ac=null;const ade=t=>({regexp:/rotate\(-?\d*\.?\d*\)/g,cursor:"move",onDragStart(e,n,r){Ac={x:r.clientX,y:r.clientY}},onDrag(e,n,r){if(Ac==null)return;const i=Math.round(Math.atan2(Ac.y-r.clientY,r.clientX-Ac.x)*180/Math.PI);n(`rotate(${i})`);const o=new CustomEvent("updateRotateDrag",{detail:i});document.dispatchEvent(o),t&&t()},onDragEnd(){Ac=null}}),lde=cr.fromClass(class{view;textPosition;rotation;constructor(t){this.view=t,this.textPosition=null,this.rotation=0,document.addEventListener("updateRotateDrag",e=>{this.textPosition=this.view.posAtCoords(Ac,!1),this.rotation=e.detail})}},{decorations:t=>Ac===null?Lt.none:Lt.set([{from:t.textPosition,to:t.textPosition,value:Lt.widget({side:-1,widget:new ude(t.rotation)})}])});class ude extends Vo{angle;constructor(e){super(),this.angle=e}toDOM(e){const n=document.createElement("div");n.setAttribute("style","width:20px;height:20px"),n.className="color-circle-parent";const r=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttributeNS(null,"fill","#808080"),i.setAttributeNS(null,"r","5"),i.setAttributeNS(null,"cx","5"),i.setAttributeNS(null,"cy","5");const o=document.createElementNS("http://www.w3.org/2000/svg","line");return o.setAttributeNS(null,"x1","10"),o.setAttributeNS(null,"x2","5"),o.setAttributeNS(null,"y1","5"),o.setAttributeNS(null,"y2","5"),o.setAttributeNS(null,"stroke","black"),o.setAttributeNS(null,"transform",`rotate(${360-this.angle},5,5)`),r.setAttributeNS(null,"viewBox","0 0 10 10"),r.setAttributeNS(null,"width","20"),r.setAttributeNS(null,"height","20"),r.appendChild(i),r.appendChild(o),n.appendChild(r),n}ignoreEvent(){return!1}}const cde=t=>({regexp:/\[[ x]\]/g,cursor:"pointer",onClick:(e,n)=>{n(e==="[ ]"?"[x]":"[ ]"),t&&t()}}),fde=kt.baseTheme({".color-circle-parent":{display:"inline-block",cursor:"inherit"}});class dde extends Vo{color;constructor(e){super(),this.color=e}eq(e){return e.color===this.color}toDOM(){const e=document.createElement("div"),n=20,r=14;e.setAttribute("style",`width:${n}px;height:${n}px;position:relative;`),e.className="color-circle-parent";const i=document.createElementNS("http://www.w3.org/2000/svg","svg"),o=document.createElementNS("http://www.w3.org/2000/svg","circle");o.setAttributeNS(null,"fill",this.color.replace(/["']/g,"")),o.setAttributeNS(null,"stroke","white"),o.setAttributeNS(null,"stroke-width","0.75"),o.setAttributeNS(null,"r",""+r/2),o.setAttributeNS(null,"cx",""+n/2),o.setAttributeNS(null,"cy",""+(n/2-1)),i.setAttributeNS(null,"width",""+n),i.setAttributeNS(null,"height",""+n),i.appendChild(o),e.appendChild(i);const s=document.createElement("div");s.className="tooltip_hover_circle",s.innerHTML=`<strong>Alt + Click on a hex color</strong><br />
@@ -216,7 +216,7 @@ ${String(t)}`),new Response(n,{status:500,headers:{"Content-Type":"text/plain"}}
216
216
  *
217
217
  * @license MIT
218
218
  */const f1e=Object.freeze(Object.defineProperty({__proto__:null,Await:Dpe,BrowserRouter:X9,Form:ST,HashRouter:Qme,HydratedRouter:c1e,IDLE_BLOCKER:Su,IDLE_FETCHER:E0,IDLE_NAVIGATION:Wp,Link:wT,Links:Tme,MemoryRouter:Rpe,Meta:Mme,NavLink:G9,Navigate:Ape,NavigationType:l7,Outlet:n9,PrefetchPageLinks:OT,Route:r9,Router:ec,RouterProvider:kV,Routes:Mpe,Scripts:V9,ScrollRestoration:K9,ServerRouter:sge,StaticRouter:Xme,StaticRouterProvider:_T,UNSAFE_DataRouterContext:Nl,UNSAFE_DataRouterStateContext:Gu,UNSAFE_ErrorResponseImpl:Ii,UNSAFE_FetchersContext:Km,UNSAFE_FrameworkContext:Ja,UNSAFE_LocationContext:nf,UNSAFE_NavigationContext:zo,UNSAFE_RSCDefaultRootErrorBoundary:Qge,UNSAFE_RemixErrorBoundary:bT,UNSAFE_RouteContext:Wo,UNSAFE_ServerMode:uV,UNSAFE_SingleFetchRedirectSymbol:ca,UNSAFE_ViewTransitionContext:Gm,UNSAFE_WithComponentProps:jpe,UNSAFE_WithErrorBoundaryProps:Fpe,UNSAFE_WithHydrateFallbackProps:Qpe,UNSAFE_createBrowserHistory:Hm,UNSAFE_createClientRoutes:ng,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:L9,UNSAFE_createRouter:rh,UNSAFE_decodeViaTurboStream:N0,UNSAFE_deserializeErrors:SV,UNSAFE_getHydrationData:DT,UNSAFE_getPatchRoutesOnNavigationFunction:Q9,UNSAFE_getTurboStreamSingleFetchDataStrategy:C9,UNSAFE_hydrationRouteProperties:tg,UNSAFE_invariant:Ht,UNSAFE_mapRouteProperties:rf,UNSAFE_shouldHydrateRouteLoader:oh,UNSAFE_useFogOFWarDiscovery:F9,UNSAFE_useScrollRestoration:nV,UNSAFE_withComponentProps:o9,UNSAFE_withErrorBoundaryProps:u9,UNSAFE_withHydrateFallbackProps:a9,createBrowserRouter:Nme,createCookie:TT,createCookieSessionStorage:Nge,createHashRouter:Lme,createMemoryRouter:t9,createMemorySessionStorage:Lge,createPath:wo,createRequestHandler:Ege,createRoutesFromChildren:Pm,createRoutesFromElements:Npe,createRoutesStub:age,createSearchParams:IO,createSession:MT,createSessionStorage:vV,createStaticHandler:Gme,createStaticRouter:PT,data:w7,generatePath:jhe,href:jge,isCookie:RT,isRouteErrorResponse:pi,isSession:$ge,matchPath:Xd,matchRoutes:Fo,parsePath:hs,redirect:Ym,redirectDocument:S7,renderMatches:Lpe,replace:k7,resolvePath:O7,unstable_HistoryRouter:H9,unstable_RSCHydratedRouter:Wge,unstable_RSCStaticRouter:i1e,unstable_RouterContextProvider:Ua,unstable_createCallServer:Uge,unstable_createContext:h7,unstable_getRSCStream:a1e,unstable_routeRSCServerRequest:r1e,unstable_setDevServerHooks:wge,unstable_usePrompt:Zme,useActionData:I0,useAsyncError:xpe,useAsyncValue:K7,useBeforeUnload:zme,useBlocker:J7,useFetcher:qme,useFetchers:Vme,useFormAction:tV,useHref:V7,useInRouterContext:Ku,useLinkClickHandler:eV,useLoaderData:D0,useLocation:Zo,useMatch:hpe,useMatches:M0,useNavigate:R0,useNavigation:G7,useNavigationType:dpe,useOutlet:X7,useOutletContext:mpe,useParams:A0,useResolvedPath:ih,useRevalidator:Spe,useRouteError:eg,useRouteLoaderData:kpe,useRoutes:H7,useSearchParams:Fme,useSubmit:xT,useViewTransitionState:rV},Symbol.toStringTag,{value:"Module"})),{useSearchParams:d1e}=f1e,h1e=({content:t,openTab:e,setActiveFileId:n,tabList:r,activeFileId:i})=>{const[o,s]=d1e(),a=N.useMemo(()=>({file:o.get("file"),tabs:o.get("tabs")}),[o]),l=N.useRef(!1);N.useEffect(()=>{if(l.current||!t)return;const{tabList:f,activeFileId:d}=yhe({tabStateParams:a,content:t});l.current=!0,f.forEach(e),n(d)},[t,o,n,e,l]);const u=N.useRef(t);N.useEffect(()=>{u.current=t},[t]);const c=N.useRef(s);N.useEffect(()=>{c.current=s},[s]),N.useEffect(()=>{if(!u.current)return;const f=Ohe({tabList:r,activeFileId:i,content:u.current});c.current(d=>{const h=new URLSearchParams(d);return f.file?h.set("file",f.file):h.delete("file"),f.tabs?h.set("tabs",f.tabs):h.delete("tabs"),h})},[r,i])},of=(t,e)=>{if(t.id===e)return t;if(t.type==="splitPane")for(const n of t.children){const r=of(n,e);if(r)return r}},qu=({pane:t,activePaneId:e,newTabList:n,newActiveFileId:r})=>t.type==="splitPane"?{...t,children:t.children.map(i=>qu({pane:i,activePaneId:e,newTabList:n,newActiveFileId:r}))}:t.id===e?{...t,tabList:n!==void 0?n:t.tabList,activeFileId:r!==void 0?r:t.activeFileId}:t,p1e=(t,e)=>{if(e.type!=="close_tabs")return t;const{pane:n,activePaneId:r}=t,i=of(n,r);if(i.type!=="leafPane")throw new Error("closeTabsReducer: activePane is not a leafPane");const o=i.tabList.filter(l=>!e.fileIdsToClose.includes(l.fileId));if(!e.fileIdsToClose.includes(i.activeFileId))return{...t,pane:qu({pane:n,activePaneId:r,newTabList:o})};let s=null;const a=i.tabList.findIndex(l=>l.fileId===i.activeFileId);for(let l=a-1;l>=0;l--)if(!e.fileIdsToClose.includes(i.tabList[l].fileId)){s=i.tabList[l].fileId;break}if(!s){for(let l=a+1;l<i.tabList.length;l++)if(!e.fileIdsToClose.includes(i.tabList[l].fileId)){s=i.tabList[l].fileId;break}}return{...t,pane:qu({pane:n,activePaneId:r,newTabList:o,newActiveFileId:s})}},m1e=(t,e)=>{if(e.type!=="open_tab")return t;const{pane:n,activePaneId:r}=t,i=of(n,r);if(i.type!=="leafPane")throw new Error("closeTabsReducer: activePane is not a leafPane");const o=i.tabList.findIndex(d=>d.fileId===e.fileId),s=o!==-1,a=s&&i.tabList[o].isTransient,l=i.tabList.findIndex(d=>d.isTransient&&d.fileId!==e.fileId),u={fileId:e.fileId,isTransient:e.isTransient};let c;s?a?c=i.tabList.map(d=>d.fileId===e.fileId?u:d):c=[...i.tabList]:l!==-1?(c=[...i.tabList],c[l]=u):c=[...i.tabList,u];const f=!e.isTransient;return{...t,pane:qu({pane:n,activePaneId:r,newTabList:c,newActiveFileId:e.fileId}),editorWantsFocus:f}},g1e=(t,e)=>{if(e.type!=="set_active_file_id")return t;const{pane:n,activePaneId:r}=t;if(of(n,r).type!=="leafPane")throw new Error("closeTabsReducer: activePane is not a leafPane");return{...t,pane:qu({pane:n,activePaneId:r,newActiveFileId:e.activeFileId})}},v1e=(t,e)=>{if(e.type!=="set_active_file_left")return t;const{pane:n,activePaneId:r}=t,i=of(n,r);if(i.type!=="leafPane")throw new Error("closeTabsReducer: activePane is not a leafPane");let o=i.tabList.findIndex(s=>s.fileId===i.activeFileId);return o-=1,o<0&&(o=i.tabList.length-1),{...t,pane:qu({pane:n,activePaneId:r,newActiveFileId:i.tabList[o].fileId})}},y1e=(t,e)=>{if(e.type!=="set_active_file_right")return t;const{pane:n,activePaneId:r}=t,i=of(n,r);if(i.type!=="leafPane")throw new Error("closeTabsReducer: activePane is not a leafPane");let o=i.tabList.findIndex(s=>s.fileId===i.activeFileId);return o+=1,o>i.tabList.length-1&&(o=0),{...t,pane:qu({pane:n,activePaneId:r,newActiveFileId:i.tabList[o].fileId})}},O1e=(t,e)=>e.type==="set_is_settings_open"?{...t,isSettingsOpen:e.value}:t,b1e=(t,e)=>e.type==="set_is_doc_open"?{...t,isDocOpen:e.value}:t,w1e=(t,e)=>e.type==="set_theme"?{...t,theme:e.themeLabel}:t,S1e=(t,e)=>e.type==="editor_no_longer_wants_focus"?{...t,editorWantsFocus:!1}:t,k1e=(t,e)=>e.type==="set_username"?{...t,username:e.username}:t;function x1e(t,e){const n=t.data.files,r=Object.keys(t.data.files),i={};for(let o=0;o<r.length;o++){const s=n[r[o]];if(n[r[o]].text){const a=s.name,l=s.text.split(`
219
- `),u=[];for(let c=0;c<l.length;c++){const f=l[c].toLowerCase().indexOf(e.toLowerCase());f!==-1&&u.push({line:c+1,index:f,text:l[c],isClosed:!1})}u.length>0&&(i[r[o]]={name:a,matches:u,visibility:"open"})}}return i}function _1e(t,e,n){return{...t,[e]:{...t[e],visibility:n}}}const P1e=(t,e)=>e.type==="set_is_search_open"?{...t,isSearchOpen:e.value}:t,C1e=(t,e)=>e.type==="set_search"?{...t,search:{...t.search,pattern:e.value,results:{},focusedIndex:0,focusedChildIndex:null,focused:!0}}:t,E1e=(t,e)=>e.type==="set_search_results"?{...t,search:{...t.search,pattern:t.search.pattern,results:x1e(e.files,t.search.pattern),focused:t.search.focused}}:t,T1e=(t,e)=>e.type==="set_search_file_visibility"?{...t,search:{...t.search,pattern:t.search.pattern,results:_1e(t.search.results,e.id,e.visibility)}}:t,R1e=(t,e)=>e.type==="hide_search_results_line"?{...t,search:{...t.search,results:{...t.search.results,[e.id]:{...t.search.results[e.id],matches:t.search.results[e.id].matches.filter((n,r)=>n.line!==e.line)}}}}:t,A1e=(t,e)=>e.type==="set_active_search_index"?{...t,search:{...t.search,focusedIndex:e.focusedIndex,focusedChildIndex:e.childIndex}}:t,M1e=(t,e)=>e.type==="toggle_search_focused"?{...t,search:{...t.search,focused:!t.search.focused}}:t,D1e=(t,e)=>e.type==="set_is_ai_chat_open"?{...t,isAIChatOpen:e.value,isSearchOpen:e.value?!1:t.isSearchOpen}:t,I1e=(t,e)=>e.type==="toggle_ai_chat_focused"?{...t,aiChatFocused:!t.aiChatFocused}:t,$1e=(t,e)=>e.type==="set_ai_chat_mode"?{...t,aiChatMode:e.mode}:t,N1e=(t,e)=>e.type==="toggle_auto_follow"?{...t,enableAutoFollow:!t.enableAutoFollow}:t,L1e=(t,e)=>{if(e.type==="update_presence_indicator"){const n=t.sidebarPresenceIndicators.find(r=>r.username===e.presenceIndicator.username);return{...t,sidebarPresenceIndicators:n?t.sidebarPresenceIndicators.map(r=>r.username===e.presenceIndicator.username?e.presenceIndicator:r):[...t.sidebarPresenceIndicators,e.presenceIndicator]}}return t},j1e=(t,e)=>{if(e.type!=="split_current_pane")return t;const n=t.activePaneId,r={id:`${n}-1`,type:"leafPane",tabList:[],activeFileId:null},i={id:`${n}-2`,type:"leafPane",tabList:[],activeFileId:null},o={id:n,type:"splitPane",orientation:"horizontal",children:[r,i]},s=qu({pane:t.pane,activePaneId:n,newTabList:void 0,newActiveFileId:void 0}),a=(u,c)=>u.id===c?o:u.type==="splitPane"?{...u,children:u.children.map(f=>a(f,c))}:u,l=a(s,n);return{...t,pane:l,activePaneId:r.id}},Q1e=(t,e)=>e.type==="set_is_visual_editor_open"?{...t,isVisualEditorOpen:e.value}:t,F1e=({defaultTheme:t,initialUsername:e="Anonymous"})=>({pane:{id:"root",type:"leafPane",tabList:[],activeFileId:null},activePaneId:"root",theme:t,search:{pattern:"",results:{},focused:!1,focusedIndex:null,focusedChildIndex:null},isVisualEditorOpen:!1,isSearchOpen:!1,isAIChatOpen:!0,aiChatFocused:!1,aiChatMode:"edit",isSettingsOpen:!1,isDocOpen:!1,editorWantsFocus:!1,username:e,enableAutoFollow:!1,sidebarPresenceIndicators:[]}),B1e=[g1e,v1e,y1e,m1e,p1e,w1e,C1e,E1e,T1e,R1e,A1e,M1e,P1e,D1e,Q1e,I1e,$1e,O1e,b1e,S1e,k1e,N1e,L1e,j1e],U1e=(t,e)=>B1e.reduce((n,r)=>r(n,e),t),q1e=({docPresence:t,enableAutoFollow:e,openTab:n,activePane:r})=>{const i=N.useRef(e);N.useEffect(()=>{i.current=e},[e]);const o=N.useRef(r?.activeFileId);N.useEffect(()=>{o.current=r?.activeFileId},[r?.activeFileId]),N.useEffect(()=>{if(!t)return;const s=(a,l)=>{if(!l||!i.current)return;const u=l.start[1];u!==o.current&&n({fileId:u,isTransient:!0})};return t.on("receive",s),()=>{t.off("receive",s)}},[t,n])},V1e=({content:t,shareDBDoc:e,submitOperation:n,localPresence:r,docPresence:i,prettierWorker:o,initialUsername:s,codeError:a=null,connected:l,pending:u,liveKitToken:c,setLiveKitToken:f,liveKitRoomName:d,setLiveKitRoom:h,liveKitConnection:p,setLiveKitConnection:g,aiChatEndpoint:y,aiChatOptions:O,autoForkAndRetryAI:b,clearStoredAIPrompt:S,getStoredAIPrompt:k,additionalWidgets:x,iframeRef:_,handleChatError:I})=>{const{prettierError:M,runPrettierRef:P}=uhe({shareDBDoc:e,submitOperation:n,prettierWorker:o}),{runtimeError:E,handleRuntimeError:R,clearRuntimeError:T}=vhe(),L=ghe(n),A=N.useRef(null),H=N.useRef(null),W=N.useRef(null),Z=_||W,G=E||M||a,[K,U]=N.useReducer(U1e,{defaultTheme:wae,initialUsername:s},F1e),{pane:B,activePaneId:Y,theme:j,search:ne,isSearchOpen:ee,isVisualEditorOpen:ue,isAIChatOpen:z,aiChatFocused:X,isSettingsOpen:J,isDocOpen:fe,editorWantsFocus:we,username:Te,enableAutoFollow:Re,sidebarPresenceIndicators:Q,aiChatMode:ve}=K,ge=of(B,Y);if(ge.type!=="leafPane")throw new Error("Expected leafPane");const{setActiveFileId:ie,setActiveFileLeft:oe,setActiveFileRight:me,openTab:$e,closeTabs:Fe,setTheme:Pe,setIsSearchOpen:V,setSearch:ye,setSearchResults:_e,setSearchFileVisibility:de,setSearchLineVisibility:Se,setSearchFocusedIndex:Me,toggleSearchFocused:et,setIsVisualEditorOpen:st,setIsAIChatOpen:Le,toggleAIChatFocused:at,setAIChatMode:We,setIsSettingsOpen:dt,setIsDocOpen:wt,closeSettings:pt,closeDoc:It,editorNoLongerWantsFocus:nt,setUsername:Rt,toggleAutoFollow:un,updatePresenceIndicator:Tt,splitCurrentPane:qt}=kae(U);h1e({content:t,openTab:$e,setActiveFileId:ie,tabList:ge.tabList,activeFileId:ge.activeFileId});const{isDirectoryOpen:On,toggleDirectory:Tn}=ahe({activePane:ge,content:t}),bn=xae();Sae(bn,j);const{createFile:Rn,renameFile:ir,deleteFile:pe,createDirectory:Ee,renameDirectory:De,deleteDirectory:rt,deleteAllFiles:ct}=the({submitOperation:n,closeTabs:Fe,openTab:$e,editorCache:bn,content:t}),[ht,Ve]=N.useState(!1),Ye=N.useCallback(()=>{Ve(!0)},[]),Je=N.useCallback(()=>{Ve(!1)},[]),Ze=N.useCallback(Qt=>{Rn(Qt),Ve(!1)},[Rn,Ve]),[Ne,lt]=N.useState(!1),Pt=N.useCallback(()=>{lt(!0)},[]),Nt=N.useCallback(()=>{lt(!1)},[]),hn=N.useCallback(Qt=>{Ee(Qt),lt(!1)},[Ee,lt]),cn=t?t.files:null;ohe({closeTabs:Fe,activeFileId:ge.activeFileId,activePaneId:Y,handleOpenCreateFileModal:Ye,setActiveFileLeft:oe,setActiveFileRight:me,toggleSearchFocused:et,runPrettierRef:P,runCodeRef:L,sidebarRef:A,editorCache:bn,codeEditorRef:H});const[Kt,sn]=N.useState(null);q1e({docPresence:i,enableAutoFollow:Re,openTab:$e,activePane:ge});const[nn,Yt]=N.useState(!1),[Ct,ln]=N.useState(""),[or]=N.useState(()=>fB()),[wn,fr]=N.useState(null),lr=wn||or,ce=t?.chats?.[lr],le=ce?.aiStatus==="generating",Oe=N.useMemo(()=>ce?.messages?ce.messages.filter(Qt=>Qt.role==="user").map(Qt=>Qt.content):[],[ce?.messages]),[Xe,Ae]=N.useState(-1),[ze,bt]=N.useState(""),[ot,yt]=N.useState(null),zt=N.useCallback((Qt,fn)=>{yt(Qt),Qt&&I&&I(Qt,fn)},[I]),At=N.useCallback(()=>{if(Oe.length===0)return;Xe===-1&&bt(Ct);const Qt=Xe<Oe.length-1?Xe+1:Xe;Ae(Qt),ln(Oe[Oe.length-1-Qt])},[Oe,Xe,Ct]),Cn=N.useCallback(()=>{if(Xe===-1)return;const Qt=Xe-1;Qt===-1?(Ae(-1),ln(ze),bt("")):(Ae(Qt),ln(Oe[Oe.length-1-Qt]))},[Oe,Xe,ze]),jn=N.useCallback(()=>{Xe!==-1&&(Ae(-1),bt(""))},[Xe]),tn=N.useCallback(async(Qt,fn)=>{const Dn=Qt||Ct;if(!Dn||typeof Dn!="string"||!Dn.trim()||le)return;const Fn=Ct.trim();ln(""),Ae(-1),bt(""),zt(null);try{const Ft=await fetch(y,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...O,content:Dn.trim(),chatId:lr,mode:ve,...fn})});if(!Ft.ok)throw new Error(`HTTP error! status: ${Ft.status}`);const Bn=await Ft.json();if(Bn.outcome==="failure"&&Bn.error){const In=Bn.error.message;if(In==="You do not have permission to use AI chat on this visualization. Only users with edit access can use this feature. Fork the viz to edit it.")try{await b?.(Fn,ve);return}catch(dn){console.error("Auto-fork failed:",dn),zt("Failed to fork visualization. Please try forking manually.");return}zt(In,Dn.trim());return}}catch(Ft){console.error("Error getting AI response:",Ft),zt("Failed to send message. Please try again.",Dn.trim())}},[Ct,le,y,O,lr,ve,b]),Sn=N.useRef(null),Pn="config.json";return N.useEffect(()=>{let Qt=null;for(const Ft in cn)if(cn[Ft].name===Pn){Qt=Ft;break}if(!Qt||!cn||!cn[Qt])return;let fn;try{fn=JSON.parse(cn[Qt].text)}catch{return}const Dn=Sn.current;if(Sn.current=fn,!Dn)return;const Fn={};for(const Ft in fn)fn[Ft]!==Dn[Ft]&&(typeof fn[Ft]=="object"&&typeof Dn[Ft]=="object"?JSON.stringify(fn[Ft])!==JSON.stringify(Dn[Ft])&&(Fn[Ft]=fn[Ft]):Fn[Ft]=fn[Ft]);for(const Ft in Dn)Ft in fn||(Fn[Ft]=void 0);if(Object.keys(Fn).length>0)try{Z.current?.contentWindow?.postMessage(Fn)}catch(Ft){console.error("Failed to send config changes to iframe:",Ft)}},[cn,Z]),{content:t,shareDBDoc:e,submitOperation:n,localPresence:r,docPresence:i,files:cn,createFile:Rn,renameFile:ir,deleteFile:pe,createDirectory:Ee,renameDirectory:De,deleteDirectory:rt,deleteAllFiles:ct,setActiveFileId:ie,setActiveFileLeft:oe,setActiveFileRight:me,activePaneId:Y,pane:B,activePane:ge,openTab:$e,closeTabs:Fe,search:ne,isSearchOpen:ee,setIsSearchOpen:V,setSearch:ye,setSearchResults:_e,setSearchFileVisibility:de,setSearchLineVisibility:Se,setSearchFocusedIndex:Me,toggleSearchFocused:et,isVisualEditorOpen:ue,setIsVisualEditorOpen:st,isAIChatOpen:z,setIsAIChatOpen:Le,aiChatFocused:X,toggleAIChatFocused:at,aiChatMode:K.aiChatMode,setAIChatMode:We,aiChatEndpoint:y,aiChatOptions:O,isSettingsOpen:J,setIsSettingsOpen:dt,closeSettings:pt,isDocOpen:fe,setIsDocOpen:wt,closeDoc:It,theme:j,setTheme:Pe,username:Te,setUsername:Rt,isDirectoryOpen:On,toggleDirectory:Tn,editorCache:bn,editorWantsFocus:we,editorNoLongerWantsFocus:nt,errorMessage:G,handleRuntimeError:R,clearRuntimeError:T,isCreateFileModalOpen:ht,handleOpenCreateFileModal:Ye,handleCloseCreateFileModal:Je,handleCreateFileClick:Ze,isCreateDirModalOpen:Ne,handleOpenCreateDirModal:Pt,handleCloseCreateDirModal:Nt,handleCreateDirClick:hn,runPrettierRef:P,runCodeRef:L,sidebarRef:A,codeEditorRef:H,iframeRef:Z,connected:l,pending:u,hoveredItemId:Kt,setHoveredItemId:sn,enableAutoFollow:Re,toggleAutoFollow:un,updatePresenceIndicator:Tt,sidebarPresenceIndicators:Q,splitCurrentPane:qt,liveKitRoomName:d,setLiveKitRoom:h,liveKitToken:c,setLiveKitToken:f,liveKitConnection:p,setLiveKitConnection:g,voiceChatModalOpen:nn,setVoiceChatModalOpen:Yt,aiChatMessage:Ct,setAIChatMessage:ln,isLoading:le,currentChatId:or,selectedChatId:wn,setSelectedChatId:fr,aiErrorMessage:ot,setAIErrorMessage:zt,handleSendMessage:tn,navigateMessageHistoryUp:At,navigateMessageHistoryDown:Cn,resetMessageHistoryNavigation:jn,autoForkAndRetryAI:b,clearStoredAIPrompt:S,getStoredAIPrompt:k,additionalWidgets:x}},Lr=N.createContext(null),z1e=({children:t,...e})=>{const n=V1e(e);return q.jsx(Lr.Provider,{value:n,children:t})},xV=!1,W1e=!1;var B1={exports:{}},rx={exports:{}},hL;function Zn(){return hL||(hL=1,function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(rx)),rx.exports}var ix={exports:{}};/*!
219
+ `),u=[];for(let c=0;c<l.length;c++){const f=l[c].toLowerCase().indexOf(e.toLowerCase());f!==-1&&u.push({line:c+1,index:f,text:l[c],isClosed:!1})}u.length>0&&(i[r[o]]={name:a,matches:u,visibility:"open"})}}return i}function _1e(t,e,n){return{...t,[e]:{...t[e],visibility:n}}}const P1e=(t,e)=>e.type==="set_is_search_open"?{...t,isSearchOpen:e.value}:t,C1e=(t,e)=>e.type==="set_search"?{...t,search:{...t.search,pattern:e.value,results:{},focusedIndex:0,focusedChildIndex:null,focused:!0}}:t,E1e=(t,e)=>e.type==="set_search_results"?{...t,search:{...t.search,pattern:t.search.pattern,results:x1e(e.files,t.search.pattern),focused:t.search.focused}}:t,T1e=(t,e)=>e.type==="set_search_file_visibility"?{...t,search:{...t.search,pattern:t.search.pattern,results:_1e(t.search.results,e.id,e.visibility)}}:t,R1e=(t,e)=>e.type==="hide_search_results_line"?{...t,search:{...t.search,results:{...t.search.results,[e.id]:{...t.search.results[e.id],matches:t.search.results[e.id].matches.filter((n,r)=>n.line!==e.line)}}}}:t,A1e=(t,e)=>e.type==="set_active_search_index"?{...t,search:{...t.search,focusedIndex:e.focusedIndex,focusedChildIndex:e.childIndex}}:t,M1e=(t,e)=>e.type==="toggle_search_focused"?{...t,search:{...t.search,focused:!t.search.focused}}:t,D1e=(t,e)=>e.type==="set_is_ai_chat_open"?{...t,isAIChatOpen:e.value,isSearchOpen:e.value?!1:t.isSearchOpen}:t,I1e=(t,e)=>e.type==="toggle_ai_chat_focused"?{...t,aiChatFocused:!t.aiChatFocused}:t,$1e=(t,e)=>e.type==="set_ai_chat_mode"?{...t,aiChatMode:e.mode}:t,N1e=(t,e)=>e.type==="toggle_auto_follow"?{...t,enableAutoFollow:!t.enableAutoFollow}:t,L1e=(t,e)=>{if(e.type==="update_presence_indicator"){const n=t.sidebarPresenceIndicators.find(r=>r.username===e.presenceIndicator.username);return{...t,sidebarPresenceIndicators:n?t.sidebarPresenceIndicators.map(r=>r.username===e.presenceIndicator.username?e.presenceIndicator:r):[...t.sidebarPresenceIndicators,e.presenceIndicator]}}return t},j1e=(t,e)=>{if(e.type!=="split_current_pane")return t;const n=t.activePaneId,r={id:`${n}-1`,type:"leafPane",tabList:[],activeFileId:null},i={id:`${n}-2`,type:"leafPane",tabList:[],activeFileId:null},o={id:n,type:"splitPane",orientation:"horizontal",children:[r,i]},s=qu({pane:t.pane,activePaneId:n,newTabList:void 0,newActiveFileId:void 0}),a=(u,c)=>u.id===c?o:u.type==="splitPane"?{...u,children:u.children.map(f=>a(f,c))}:u,l=a(s,n);return{...t,pane:l,activePaneId:r.id}},Q1e=(t,e)=>e.type==="set_is_visual_editor_open"?{...t,isVisualEditorOpen:e.value}:t,F1e=({defaultTheme:t,initialUsername:e="Anonymous"})=>({pane:{id:"root",type:"leafPane",tabList:[],activeFileId:null},activePaneId:"root",theme:t,search:{pattern:"",results:{},focused:!1,focusedIndex:null,focusedChildIndex:null},isVisualEditorOpen:!1,isSearchOpen:!1,isAIChatOpen:!0,aiChatFocused:!1,aiChatMode:"edit",isSettingsOpen:!1,isDocOpen:!1,editorWantsFocus:!1,username:e,enableAutoFollow:!1,sidebarPresenceIndicators:[]}),B1e=[g1e,v1e,y1e,m1e,p1e,w1e,C1e,E1e,T1e,R1e,A1e,M1e,P1e,D1e,Q1e,I1e,$1e,O1e,b1e,S1e,k1e,N1e,L1e,j1e],U1e=(t,e)=>B1e.reduce((n,r)=>r(n,e),t),q1e=({docPresence:t,enableAutoFollow:e,openTab:n,activePane:r})=>{const i=N.useRef(e);N.useEffect(()=>{i.current=e},[e]);const o=N.useRef(r?.activeFileId);N.useEffect(()=>{o.current=r?.activeFileId},[r?.activeFileId]),N.useEffect(()=>{if(!t)return;const s=(a,l)=>{if(!l||!i.current)return;const u=l.start[1];u!==o.current&&n({fileId:u,isTransient:!0})};return t.on("receive",s),()=>{t.off("receive",s)}},[t,n])},V1e=({content:t,shareDBDoc:e,submitOperation:n,localPresence:r,docPresence:i,prettierWorker:o,initialUsername:s,codeError:a=null,connected:l,pending:u,liveKitToken:c,setLiveKitToken:f,liveKitRoomName:d,setLiveKitRoom:h,liveKitConnection:p,setLiveKitConnection:g,aiChatEndpoint:y,aiChatOptions:O,autoForkAndRetryAI:b,clearStoredAIPrompt:S,getStoredAIPrompt:k,additionalWidgets:x,iframeRef:_,handleChatError:I})=>{const{prettierError:M,runPrettierRef:P}=uhe({shareDBDoc:e,submitOperation:n,prettierWorker:o}),{runtimeError:E,handleRuntimeError:R,clearRuntimeError:T}=vhe(),L=ghe(n),A=N.useRef(null),H=N.useRef(null),W=N.useRef(null),Z=_||W,G=E||M||a,[K,U]=N.useReducer(U1e,{defaultTheme:wae,initialUsername:s},F1e),{pane:B,activePaneId:Y,theme:j,search:ne,isSearchOpen:ee,isVisualEditorOpen:ue,isAIChatOpen:z,aiChatFocused:X,isSettingsOpen:J,isDocOpen:fe,editorWantsFocus:we,username:Te,enableAutoFollow:Re,sidebarPresenceIndicators:Q,aiChatMode:ve}=K,ge=of(B,Y);if(ge.type!=="leafPane")throw new Error("Expected leafPane");const{setActiveFileId:ie,setActiveFileLeft:oe,setActiveFileRight:me,openTab:$e,closeTabs:Fe,setTheme:Pe,setIsSearchOpen:V,setSearch:ye,setSearchResults:_e,setSearchFileVisibility:de,setSearchLineVisibility:Se,setSearchFocusedIndex:Me,toggleSearchFocused:et,setIsVisualEditorOpen:st,setIsAIChatOpen:Le,toggleAIChatFocused:at,setAIChatMode:We,setIsSettingsOpen:dt,setIsDocOpen:wt,closeSettings:pt,closeDoc:It,editorNoLongerWantsFocus:nt,setUsername:Rt,toggleAutoFollow:un,updatePresenceIndicator:Tt,splitCurrentPane:qt}=kae(U);h1e({content:t,openTab:$e,setActiveFileId:ie,tabList:ge.tabList,activeFileId:ge.activeFileId});const{isDirectoryOpen:On,toggleDirectory:Tn}=ahe({activePane:ge,content:t}),bn=xae();Sae(bn,j);const{createFile:Rn,renameFile:ir,deleteFile:pe,createDirectory:Ee,renameDirectory:De,deleteDirectory:rt,deleteAllFiles:ct}=the({submitOperation:n,closeTabs:Fe,openTab:$e,editorCache:bn,content:t}),[ht,Ve]=N.useState(!1),Ye=N.useCallback(()=>{Ve(!0)},[]),Je=N.useCallback(()=>{Ve(!1)},[]),Ze=N.useCallback(Qt=>{Rn(Qt),Ve(!1)},[Rn,Ve]),[Ne,lt]=N.useState(!1),Pt=N.useCallback(()=>{lt(!0)},[]),Nt=N.useCallback(()=>{lt(!1)},[]),hn=N.useCallback(Qt=>{Ee(Qt),lt(!1)},[Ee,lt]),cn=t?t.files:null;ohe({closeTabs:Fe,activeFileId:ge.activeFileId,activePaneId:Y,handleOpenCreateFileModal:Ye,setActiveFileLeft:oe,setActiveFileRight:me,toggleSearchFocused:et,runPrettierRef:P,runCodeRef:L,sidebarRef:A,editorCache:bn,codeEditorRef:H});const[Kt,sn]=N.useState(null);q1e({docPresence:i,enableAutoFollow:Re,openTab:$e,activePane:ge});const[nn,Yt]=N.useState(!1),[Ct,ln]=N.useState(""),[or]=N.useState(()=>fB()),[wn,fr]=N.useState(null),lr=wn||or,ce=t?.chats?.[lr],le=ce?.aiStatus==="generating",Oe=N.useMemo(()=>ce?.messages?ce.messages.filter(Qt=>Qt.role==="user").map(Qt=>Qt.content):[],[ce?.messages]),[Xe,Ae]=N.useState(-1),[ze,bt]=N.useState(""),[ot,yt]=N.useState(null),Vt=N.useCallback((Qt,fn)=>{yt(Qt),Qt&&I&&I(Qt,fn)},[I]),At=N.useCallback(()=>{if(Oe.length===0)return;Xe===-1&&bt(Ct);const Qt=Xe<Oe.length-1?Xe+1:Xe;Ae(Qt),ln(Oe[Oe.length-1-Qt])},[Oe,Xe,Ct]),Cn=N.useCallback(()=>{if(Xe===-1)return;const Qt=Xe-1;Qt===-1?(Ae(-1),ln(ze),bt("")):(Ae(Qt),ln(Oe[Oe.length-1-Qt]))},[Oe,Xe,ze]),jn=N.useCallback(()=>{Xe!==-1&&(Ae(-1),bt(""))},[Xe]),tn=N.useCallback(async(Qt,fn)=>{const Mn=Qt||Ct;if(!Mn||typeof Mn!="string"||!Mn.trim()||le)return;const Fn=Ct.trim();ln(""),Ae(-1),bt(""),Vt(null);try{const Ft=await fetch(y,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...O,content:Mn.trim(),chatId:lr,mode:ve,...fn})});if(!Ft.ok)throw new Error(`HTTP error! status: ${Ft.status}`);const Bn=await Ft.json();if(Bn.outcome==="failure"&&Bn.error){const In=Bn.error.message;if(In==="You do not have permission to use AI chat on this visualization. Only users with edit access can use this feature. Fork the viz to edit it.")if(b)try{await b(Fn,ve);return}catch(dn){console.error("Auto-fork failed:",dn),Vt("Failed to fork visualization. Please try forking manually.");return}else{Vt(In,Mn.trim());return}Vt(In,Mn.trim());return}}catch(Ft){console.error("Error getting AI response:",Ft),Vt("Failed to send message. Please try again.",Mn.trim())}},[Ct,le,y,O,lr,ve,b]),Sn=N.useRef(null),Pn="config.json";return N.useEffect(()=>{let Qt=null;for(const Ft in cn)if(cn[Ft].name===Pn){Qt=Ft;break}if(!Qt||!cn||!cn[Qt])return;let fn;try{fn=JSON.parse(cn[Qt].text)}catch{return}const Mn=Sn.current;if(Sn.current=fn,!Mn)return;const Fn={};for(const Ft in fn)fn[Ft]!==Mn[Ft]&&(typeof fn[Ft]=="object"&&typeof Mn[Ft]=="object"?JSON.stringify(fn[Ft])!==JSON.stringify(Mn[Ft])&&(Fn[Ft]=fn[Ft]):Fn[Ft]=fn[Ft]);for(const Ft in Mn)Ft in fn||(Fn[Ft]=void 0);if(Object.keys(Fn).length>0)try{Z.current?.contentWindow?.postMessage(Fn)}catch(Ft){console.error("Failed to send config changes to iframe:",Ft)}},[cn,Z]),{content:t,shareDBDoc:e,submitOperation:n,localPresence:r,docPresence:i,files:cn,createFile:Rn,renameFile:ir,deleteFile:pe,createDirectory:Ee,renameDirectory:De,deleteDirectory:rt,deleteAllFiles:ct,setActiveFileId:ie,setActiveFileLeft:oe,setActiveFileRight:me,activePaneId:Y,pane:B,activePane:ge,openTab:$e,closeTabs:Fe,search:ne,isSearchOpen:ee,setIsSearchOpen:V,setSearch:ye,setSearchResults:_e,setSearchFileVisibility:de,setSearchLineVisibility:Se,setSearchFocusedIndex:Me,toggleSearchFocused:et,isVisualEditorOpen:ue,setIsVisualEditorOpen:st,isAIChatOpen:z,setIsAIChatOpen:Le,aiChatFocused:X,toggleAIChatFocused:at,aiChatMode:K.aiChatMode,setAIChatMode:We,aiChatEndpoint:y,aiChatOptions:O,isSettingsOpen:J,setIsSettingsOpen:dt,closeSettings:pt,isDocOpen:fe,setIsDocOpen:wt,closeDoc:It,theme:j,setTheme:Pe,username:Te,setUsername:Rt,isDirectoryOpen:On,toggleDirectory:Tn,editorCache:bn,editorWantsFocus:we,editorNoLongerWantsFocus:nt,errorMessage:G,handleRuntimeError:R,clearRuntimeError:T,isCreateFileModalOpen:ht,handleOpenCreateFileModal:Ye,handleCloseCreateFileModal:Je,handleCreateFileClick:Ze,isCreateDirModalOpen:Ne,handleOpenCreateDirModal:Pt,handleCloseCreateDirModal:Nt,handleCreateDirClick:hn,runPrettierRef:P,runCodeRef:L,sidebarRef:A,codeEditorRef:H,iframeRef:Z,connected:l,pending:u,hoveredItemId:Kt,setHoveredItemId:sn,enableAutoFollow:Re,toggleAutoFollow:un,updatePresenceIndicator:Tt,sidebarPresenceIndicators:Q,splitCurrentPane:qt,liveKitRoomName:d,setLiveKitRoom:h,liveKitToken:c,setLiveKitToken:f,liveKitConnection:p,setLiveKitConnection:g,voiceChatModalOpen:nn,setVoiceChatModalOpen:Yt,aiChatMessage:Ct,setAIChatMessage:ln,isLoading:le,currentChatId:or,selectedChatId:wn,setSelectedChatId:fr,aiErrorMessage:ot,setAIErrorMessage:Vt,handleSendMessage:tn,navigateMessageHistoryUp:At,navigateMessageHistoryDown:Cn,resetMessageHistoryNavigation:jn,autoForkAndRetryAI:b,clearStoredAIPrompt:S,getStoredAIPrompt:k,additionalWidgets:x}},Lr=N.createContext(null),z1e=({children:t,...e})=>{const n=V1e(e);return q.jsx(Lr.Provider,{value:n,children:t})},xV=!1,W1e=!1;var B1={exports:{}},rx={exports:{}},hL;function Zn(){return hL||(hL=1,function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(rx)),rx.exports}var ix={exports:{}};/*!
220
220
  Copyright (c) 2018 Jed Watson.
221
221
  Licensed under the MIT License (MIT), see
222
222
  http://jedwatson.github.io/classnames
@@ -228,7 +228,7 @@ ${String(t)}`),new Response(n,{status:500,headers:{"Content-Type":"text/plain"}}
228
228
  `+i:"")+`
229
229
 
230
230
  The above lifecycles should be removed. Learn more about this warning here:
231
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStateFromProps=="function"&&(e.componentWillMount=zV,e.componentWillReceiveProps=WV),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=ZV;var a=e.componentDidUpdate;e.componentDidUpdate=function(u,c,f){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;a.call(this,u,c,d)}}return t}var Qye="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function XV(t,e,n){n===void 0&&(n=[]);var r=t.displayName||t.name||"Component",i=Iye(t),o=Object.keys(e),s=o.map(Cd);i||!n.length||Aye(!1);var a=function(u){QV(c,u);function c(){for(var d,h=arguments.length,p=new Array(h),g=0;g<h;g++)p[g]=arguments[g];d=u.call.apply(u,[this].concat(p))||this,d.handlers=Object.create(null),o.forEach(function(O){var b=e[O],S=function(x){if(d.props[b]){var _;d._notifying=!0;for(var I=arguments.length,M=new Array(I>1?I-1:0),P=1;P<I;P++)M[P-1]=arguments[P];(_=d.props)[b].apply(_,[x].concat(M)),d._notifying=!1}d.unmounted||d.setState(function(E){var R,T=E.values;return{values:fi(Object.create(null),T,(R={},R[O]=x,R))}})};d.handlers[b]=S}),n.length&&(d.attachRef=function(O){d.inner=O});var y=Object.create(null);return o.forEach(function(O){y[O]=d.props[Cd(O)]}),d.state={values:y,prevProps:{}},d}var f=c.prototype;return f.shouldComponentUpdate=function(){return!this._notifying},c.getDerivedStateFromProps=function(h,p){var g=p.values,y=p.prevProps,O={values:fi(Object.create(null),g),prevProps:{}};return o.forEach(function(b){O.prevProps[b]=h[b],!Aj(h,b)&&Aj(y,b)&&(O.values[b]=h[Cd(b)])}),O},f.componentWillUnmount=function(){this.unmounted=!0},f.render=function(){var h=this,p=this.props,g=p.innerRef,y=UT(p,["innerRef"]);s.forEach(function(b){delete y[b]});var O={};return o.forEach(function(b){var S=h.props[b];O[b]=S!==void 0?S:h.state.values[b]}),Or.createElement(t,fi({},y,O,this.handlers,{ref:g||this.attachRef}))},c}(Or.Component);jye(a),a.displayName="Uncontrolled("+r+")",a.propTypes=fi({innerRef:function(){}},Dye(e)),n.forEach(function(u){a.prototype[u]=function(){var f;return(f=this.inner)[u].apply(f,arguments)}});var l=a;return Or.forwardRef&&(l=Or.forwardRef(function(u,c){return Or.createElement(a,fi({},u,{innerRef:c,__source:{fileName:Qye,lineNumber:128},__self:this}))}),l.propTypes=a.propTypes),l.ControlledComponent=t,l.deferControlTo=function(u,c,f){return c===void 0&&(c={}),XV(u,fi({},e,c),f)},l}const Fye=Object.freeze(Object.defineProperty({__proto__:null,uncontrollable:XV,useUncontrolled:Lye,useUncontrolledProp:VV},Symbol.toStringTag,{value:"Module"})),Bye=qi(Fye);var Iv={exports:{}},up={},$v={},Mj;function Uye(){if(Mj)return $v;Mj=1,$v.__esModule=!0,$v.default=e;var t=jt();function e(){return(0,t.useState)(null)}return $v}var cp={},fx={},Dj;function qye(){if(Dj)return fx;Dj=1;var t=Object.prototype.hasOwnProperty;function e(r,i,o){for(o of r.keys())if(n(o,i))return o}function n(r,i){var o,s,a;if(r===i)return!0;if(r&&i&&(o=r.constructor)===i.constructor){if(o===Date)return r.getTime()===i.getTime();if(o===RegExp)return r.toString()===i.toString();if(o===Array){if((s=r.length)===i.length)for(;s--&&n(r[s],i[s]););return s===-1}if(o===Set){if(r.size!==i.size)return!1;for(s of r)if(a=s,a&&typeof a=="object"&&(a=e(i,a),!a)||!i.has(a))return!1;return!0}if(o===Map){if(r.size!==i.size)return!1;for(s of r)if(a=s[0],a&&typeof a=="object"&&(a=e(i,a),!a)||!n(s[1],i.get(a)))return!1;return!0}if(o===ArrayBuffer)r=new Uint8Array(r),i=new Uint8Array(i);else if(o===DataView){if((s=r.byteLength)===i.byteLength)for(;s--&&r.getInt8(s)===i.getInt8(s););return s===-1}if(ArrayBuffer.isView(r)){if((s=r.byteLength)===i.byteLength)for(;s--&&r[s]===i[s];);return s===-1}if(!o||typeof r=="object"){s=0;for(o in r)if(t.call(r,o)&&++s&&!t.call(i,o)||!(o in i)||!n(r[o],i[o]))return!1;return Object.keys(i).length===s}}return r!==r&&i!==i}return fx.dequal=n,fx}var fp={},Ij;function Vye(){if(Ij)return fp;Ij=1,fp.__esModule=!0,fp.default=void 0;var t=jt(),e=n(DV());function n(o){return o&&o.__esModule?o:{default:o}}function r(o){const s=(0,e.default)();return[o[0],(0,t.useCallback)(a=>{if(s())return o[1](a)},[s,o[1]])]}var i=r;return fp.default=i,fp}var Nv={},$j;function zye(){if($j)return Nv;$j=1;var t="top",e="bottom",n="right",r="left",i="auto",o=[t,e,n,r],s="start",a="end",l="clippingParents",u="viewport",c="popper",f="reference",d=o.reduce(function(ce,le){return ce.concat([le+"-"+s,le+"-"+a])},[]),h=[].concat(o,[i]).reduce(function(ce,le){return ce.concat([le,le+"-"+s,le+"-"+a])},[]),p="beforeRead",g="read",y="afterRead",O="beforeMain",b="main",S="afterMain",k="beforeWrite",x="write",_="afterWrite",I=[p,g,y,O,b,S,k,x,_];function M(ce){return ce.split("-")[0]}function P(ce){if(ce==null)return window;if(ce.toString()!=="[object Window]"){var le=ce.ownerDocument;return le&&le.defaultView||window}return ce}function E(ce){var le=P(ce).Element;return ce instanceof le||ce instanceof Element}function R(ce){var le=P(ce).HTMLElement;return ce instanceof le||ce instanceof HTMLElement}function T(ce){if(typeof ShadowRoot>"u")return!1;var le=P(ce).ShadowRoot;return ce instanceof le||ce instanceof ShadowRoot}var L=Math.max,A=Math.min,H=Math.round;function W(){var ce=navigator.userAgentData;return ce!=null&&ce.brands&&Array.isArray(ce.brands)?ce.brands.map(function(le){return le.brand+"/"+le.version}).join(" "):navigator.userAgent}function Z(){return!/^((?!chrome|android).)*safari/i.test(W())}function G(ce,le,Oe){le===void 0&&(le=!1),Oe===void 0&&(Oe=!1);var Xe=ce.getBoundingClientRect(),Ae=1,ze=1;le&&R(ce)&&(Ae=ce.offsetWidth>0&&H(Xe.width)/ce.offsetWidth||1,ze=ce.offsetHeight>0&&H(Xe.height)/ce.offsetHeight||1);var bt=E(ce)?P(ce):window,ot=bt.visualViewport,yt=!Z()&&Oe,zt=(Xe.left+(yt&&ot?ot.offsetLeft:0))/Ae,At=(Xe.top+(yt&&ot?ot.offsetTop:0))/ze,Cn=Xe.width/Ae,jn=Xe.height/ze;return{width:Cn,height:jn,top:At,right:zt+Cn,bottom:At+jn,left:zt,x:zt,y:At}}function K(ce){var le=G(ce),Oe=ce.offsetWidth,Xe=ce.offsetHeight;return Math.abs(le.width-Oe)<=1&&(Oe=le.width),Math.abs(le.height-Xe)<=1&&(Xe=le.height),{x:ce.offsetLeft,y:ce.offsetTop,width:Oe,height:Xe}}function U(ce,le){var Oe=le.getRootNode&&le.getRootNode();if(ce.contains(le))return!0;if(Oe&&T(Oe)){var Xe=le;do{if(Xe&&ce.isSameNode(Xe))return!0;Xe=Xe.parentNode||Xe.host}while(Xe)}return!1}function B(ce){return ce?(ce.nodeName||"").toLowerCase():null}function Y(ce){return P(ce).getComputedStyle(ce)}function j(ce){return["table","td","th"].indexOf(B(ce))>=0}function ne(ce){return((E(ce)?ce.ownerDocument:ce.document)||window.document).documentElement}function ee(ce){return B(ce)==="html"?ce:ce.assignedSlot||ce.parentNode||(T(ce)?ce.host:null)||ne(ce)}function ue(ce){return!R(ce)||Y(ce).position==="fixed"?null:ce.offsetParent}function z(ce){var le=/firefox/i.test(W()),Oe=/Trident/i.test(W());if(Oe&&R(ce)){var Xe=Y(ce);if(Xe.position==="fixed")return null}var Ae=ee(ce);for(T(Ae)&&(Ae=Ae.host);R(Ae)&&["html","body"].indexOf(B(Ae))<0;){var ze=Y(Ae);if(ze.transform!=="none"||ze.perspective!=="none"||ze.contain==="paint"||["transform","perspective"].indexOf(ze.willChange)!==-1||le&&ze.willChange==="filter"||le&&ze.filter&&ze.filter!=="none")return Ae;Ae=Ae.parentNode}return null}function X(ce){for(var le=P(ce),Oe=ue(ce);Oe&&j(Oe)&&Y(Oe).position==="static";)Oe=ue(Oe);return Oe&&(B(Oe)==="html"||B(Oe)==="body"&&Y(Oe).position==="static")?le:Oe||z(ce)||le}function J(ce){return["top","bottom"].indexOf(ce)>=0?"x":"y"}function fe(ce,le,Oe){return L(ce,A(le,Oe))}function we(ce,le,Oe){var Xe=fe(ce,le,Oe);return Xe>Oe?Oe:Xe}function Te(){return{top:0,right:0,bottom:0,left:0}}function Re(ce){return Object.assign({},Te(),ce)}function Q(ce,le){return le.reduce(function(Oe,Xe){return Oe[Xe]=ce,Oe},{})}var ve=function(le,Oe){return le=typeof le=="function"?le(Object.assign({},Oe.rects,{placement:Oe.placement})):le,Re(typeof le!="number"?le:Q(le,o))};function ge(ce){var le,Oe=ce.state,Xe=ce.name,Ae=ce.options,ze=Oe.elements.arrow,bt=Oe.modifiersData.popperOffsets,ot=M(Oe.placement),yt=J(ot),zt=[r,n].indexOf(ot)>=0,At=zt?"height":"width";if(!(!ze||!bt)){var Cn=ve(Ae.padding,Oe),jn=K(ze),tn=yt==="y"?t:r,Sn=yt==="y"?e:n,Pn=Oe.rects.reference[At]+Oe.rects.reference[yt]-bt[yt]-Oe.rects.popper[At],Qt=bt[yt]-Oe.rects.reference[yt],fn=X(ze),Dn=fn?yt==="y"?fn.clientHeight||0:fn.clientWidth||0:0,Fn=Pn/2-Qt/2,Ft=Cn[tn],Bn=Dn-jn[At]-Cn[Sn],In=Dn/2-jn[At]/2+Fn,dn=fe(Ft,In,Bn),Xr=yt;Oe.modifiersData[Xe]=(le={},le[Xr]=dn,le.centerOffset=dn-In,le)}}function ie(ce){var le=ce.state,Oe=ce.options,Xe=Oe.element,Ae=Xe===void 0?"[data-popper-arrow]":Xe;Ae!=null&&(typeof Ae=="string"&&(Ae=le.elements.popper.querySelector(Ae),!Ae)||U(le.elements.popper,Ae)&&(le.elements.arrow=Ae))}var oe={name:"arrow",enabled:!0,phase:"main",fn:ge,effect:ie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function me(ce){return ce.split("-")[1]}var $e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fe(ce,le){var Oe=ce.x,Xe=ce.y,Ae=le.devicePixelRatio||1;return{x:H(Oe*Ae)/Ae||0,y:H(Xe*Ae)/Ae||0}}function Pe(ce){var le,Oe=ce.popper,Xe=ce.popperRect,Ae=ce.placement,ze=ce.variation,bt=ce.offsets,ot=ce.position,yt=ce.gpuAcceleration,zt=ce.adaptive,At=ce.roundOffsets,Cn=ce.isFixed,jn=bt.x,tn=jn===void 0?0:jn,Sn=bt.y,Pn=Sn===void 0?0:Sn,Qt=typeof At=="function"?At({x:tn,y:Pn}):{x:tn,y:Pn};tn=Qt.x,Pn=Qt.y;var fn=bt.hasOwnProperty("x"),Dn=bt.hasOwnProperty("y"),Fn=r,Ft=t,Bn=window;if(zt){var In=X(Oe),dn="clientHeight",Xr="clientWidth";if(In===P(Oe)&&(In=ne(Oe),Y(In).position!=="static"&&ot==="absolute"&&(dn="scrollHeight",Xr="scrollWidth")),In=In,Ae===t||(Ae===r||Ae===n)&&ze===a){Ft=e;var jr=Cn&&In===Bn&&Bn.visualViewport?Bn.visualViewport.height:In[dn];Pn-=jr-Xe.height,Pn*=yt?1:-1}if(Ae===r||(Ae===t||Ae===e)&&ze===a){Fn=n;var gr=Cn&&In===Bn&&Bn.visualViewport?Bn.visualViewport.width:In[Xr];tn-=gr-Xe.width,tn*=yt?1:-1}}var Hr=Object.assign({position:ot},zt&&$e),zi=At===!0?Fe({x:tn,y:Pn},P(Oe)):{x:tn,y:Pn};if(tn=zi.x,Pn=zi.y,yt){var ei;return Object.assign({},Hr,(ei={},ei[Ft]=Dn?"0":"",ei[Fn]=fn?"0":"",ei.transform=(Bn.devicePixelRatio||1)<=1?"translate("+tn+"px, "+Pn+"px)":"translate3d("+tn+"px, "+Pn+"px, 0)",ei))}return Object.assign({},Hr,(le={},le[Ft]=Dn?Pn+"px":"",le[Fn]=fn?tn+"px":"",le.transform="",le))}function V(ce){var le=ce.state,Oe=ce.options,Xe=Oe.gpuAcceleration,Ae=Xe===void 0?!0:Xe,ze=Oe.adaptive,bt=ze===void 0?!0:ze,ot=Oe.roundOffsets,yt=ot===void 0?!0:ot,zt={placement:M(le.placement),variation:me(le.placement),popper:le.elements.popper,popperRect:le.rects.popper,gpuAcceleration:Ae,isFixed:le.options.strategy==="fixed"};le.modifiersData.popperOffsets!=null&&(le.styles.popper=Object.assign({},le.styles.popper,Pe(Object.assign({},zt,{offsets:le.modifiersData.popperOffsets,position:le.options.strategy,adaptive:bt,roundOffsets:yt})))),le.modifiersData.arrow!=null&&(le.styles.arrow=Object.assign({},le.styles.arrow,Pe(Object.assign({},zt,{offsets:le.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:yt})))),le.attributes.popper=Object.assign({},le.attributes.popper,{"data-popper-placement":le.placement})}var ye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:V,data:{}},_e={passive:!0};function de(ce){var le=ce.state,Oe=ce.instance,Xe=ce.options,Ae=Xe.scroll,ze=Ae===void 0?!0:Ae,bt=Xe.resize,ot=bt===void 0?!0:bt,yt=P(le.elements.popper),zt=[].concat(le.scrollParents.reference,le.scrollParents.popper);return ze&&zt.forEach(function(At){At.addEventListener("scroll",Oe.update,_e)}),ot&&yt.addEventListener("resize",Oe.update,_e),function(){ze&&zt.forEach(function(At){At.removeEventListener("scroll",Oe.update,_e)}),ot&&yt.removeEventListener("resize",Oe.update,_e)}}var Se={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:de,data:{}},Me={left:"right",right:"left",bottom:"top",top:"bottom"};function et(ce){return ce.replace(/left|right|bottom|top/g,function(le){return Me[le]})}var st={start:"end",end:"start"};function Le(ce){return ce.replace(/start|end/g,function(le){return st[le]})}function at(ce){var le=P(ce),Oe=le.pageXOffset,Xe=le.pageYOffset;return{scrollLeft:Oe,scrollTop:Xe}}function We(ce){return G(ne(ce)).left+at(ce).scrollLeft}function dt(ce,le){var Oe=P(ce),Xe=ne(ce),Ae=Oe.visualViewport,ze=Xe.clientWidth,bt=Xe.clientHeight,ot=0,yt=0;if(Ae){ze=Ae.width,bt=Ae.height;var zt=Z();(zt||!zt&&le==="fixed")&&(ot=Ae.offsetLeft,yt=Ae.offsetTop)}return{width:ze,height:bt,x:ot+We(ce),y:yt}}function wt(ce){var le,Oe=ne(ce),Xe=at(ce),Ae=(le=ce.ownerDocument)==null?void 0:le.body,ze=L(Oe.scrollWidth,Oe.clientWidth,Ae?Ae.scrollWidth:0,Ae?Ae.clientWidth:0),bt=L(Oe.scrollHeight,Oe.clientHeight,Ae?Ae.scrollHeight:0,Ae?Ae.clientHeight:0),ot=-Xe.scrollLeft+We(ce),yt=-Xe.scrollTop;return Y(Ae||Oe).direction==="rtl"&&(ot+=L(Oe.clientWidth,Ae?Ae.clientWidth:0)-ze),{width:ze,height:bt,x:ot,y:yt}}function pt(ce){var le=Y(ce),Oe=le.overflow,Xe=le.overflowX,Ae=le.overflowY;return/auto|scroll|overlay|hidden/.test(Oe+Ae+Xe)}function It(ce){return["html","body","#document"].indexOf(B(ce))>=0?ce.ownerDocument.body:R(ce)&&pt(ce)?ce:It(ee(ce))}function nt(ce,le){var Oe;le===void 0&&(le=[]);var Xe=It(ce),Ae=Xe===((Oe=ce.ownerDocument)==null?void 0:Oe.body),ze=P(Xe),bt=Ae?[ze].concat(ze.visualViewport||[],pt(Xe)?Xe:[]):Xe,ot=le.concat(bt);return Ae?ot:ot.concat(nt(ee(bt)))}function Rt(ce){return Object.assign({},ce,{left:ce.x,top:ce.y,right:ce.x+ce.width,bottom:ce.y+ce.height})}function un(ce,le){var Oe=G(ce,!1,le==="fixed");return Oe.top=Oe.top+ce.clientTop,Oe.left=Oe.left+ce.clientLeft,Oe.bottom=Oe.top+ce.clientHeight,Oe.right=Oe.left+ce.clientWidth,Oe.width=ce.clientWidth,Oe.height=ce.clientHeight,Oe.x=Oe.left,Oe.y=Oe.top,Oe}function Tt(ce,le,Oe){return le===u?Rt(dt(ce,Oe)):E(le)?un(le,Oe):Rt(wt(ne(ce)))}function qt(ce){var le=nt(ee(ce)),Oe=["absolute","fixed"].indexOf(Y(ce).position)>=0,Xe=Oe&&R(ce)?X(ce):ce;return E(Xe)?le.filter(function(Ae){return E(Ae)&&U(Ae,Xe)&&B(Ae)!=="body"}):[]}function On(ce,le,Oe,Xe){var Ae=le==="clippingParents"?qt(ce):[].concat(le),ze=[].concat(Ae,[Oe]),bt=ze[0],ot=ze.reduce(function(yt,zt){var At=Tt(ce,zt,Xe);return yt.top=L(At.top,yt.top),yt.right=A(At.right,yt.right),yt.bottom=A(At.bottom,yt.bottom),yt.left=L(At.left,yt.left),yt},Tt(ce,bt,Xe));return ot.width=ot.right-ot.left,ot.height=ot.bottom-ot.top,ot.x=ot.left,ot.y=ot.top,ot}function Tn(ce){var le=ce.reference,Oe=ce.element,Xe=ce.placement,Ae=Xe?M(Xe):null,ze=Xe?me(Xe):null,bt=le.x+le.width/2-Oe.width/2,ot=le.y+le.height/2-Oe.height/2,yt;switch(Ae){case t:yt={x:bt,y:le.y-Oe.height};break;case e:yt={x:bt,y:le.y+le.height};break;case n:yt={x:le.x+le.width,y:ot};break;case r:yt={x:le.x-Oe.width,y:ot};break;default:yt={x:le.x,y:le.y}}var zt=Ae?J(Ae):null;if(zt!=null){var At=zt==="y"?"height":"width";switch(ze){case s:yt[zt]=yt[zt]-(le[At]/2-Oe[At]/2);break;case a:yt[zt]=yt[zt]+(le[At]/2-Oe[At]/2);break}}return yt}function bn(ce,le){le===void 0&&(le={});var Oe=le,Xe=Oe.placement,Ae=Xe===void 0?ce.placement:Xe,ze=Oe.strategy,bt=ze===void 0?ce.strategy:ze,ot=Oe.boundary,yt=ot===void 0?l:ot,zt=Oe.rootBoundary,At=zt===void 0?u:zt,Cn=Oe.elementContext,jn=Cn===void 0?c:Cn,tn=Oe.altBoundary,Sn=tn===void 0?!1:tn,Pn=Oe.padding,Qt=Pn===void 0?0:Pn,fn=Re(typeof Qt!="number"?Qt:Q(Qt,o)),Dn=jn===c?f:c,Fn=ce.rects.popper,Ft=ce.elements[Sn?Dn:jn],Bn=On(E(Ft)?Ft:Ft.contextElement||ne(ce.elements.popper),yt,At,bt),In=G(ce.elements.reference),dn=Tn({reference:In,element:Fn,placement:Ae}),Xr=Rt(Object.assign({},Fn,dn)),jr=jn===c?Xr:In,gr={top:Bn.top-jr.top+fn.top,bottom:jr.bottom-Bn.bottom+fn.bottom,left:Bn.left-jr.left+fn.left,right:jr.right-Bn.right+fn.right},Hr=ce.modifiersData.offset;if(jn===c&&Hr){var zi=Hr[Ae];Object.keys(gr).forEach(function(ei){var Wi=[n,e].indexOf(ei)>=0?1:-1,$i=[t,e].indexOf(ei)>=0?"y":"x";gr[ei]+=zi[$i]*Wi})}return gr}function Rn(ce,le){le===void 0&&(le={});var Oe=le,Xe=Oe.placement,Ae=Oe.boundary,ze=Oe.rootBoundary,bt=Oe.padding,ot=Oe.flipVariations,yt=Oe.allowedAutoPlacements,zt=yt===void 0?h:yt,At=me(Xe),Cn=At?ot?d:d.filter(function(Sn){return me(Sn)===At}):o,jn=Cn.filter(function(Sn){return zt.indexOf(Sn)>=0});jn.length===0&&(jn=Cn);var tn=jn.reduce(function(Sn,Pn){return Sn[Pn]=bn(ce,{placement:Pn,boundary:Ae,rootBoundary:ze,padding:bt})[M(Pn)],Sn},{});return Object.keys(tn).sort(function(Sn,Pn){return tn[Sn]-tn[Pn]})}function ir(ce){if(M(ce)===i)return[];var le=et(ce);return[Le(ce),le,Le(le)]}function pe(ce){var le=ce.state,Oe=ce.options,Xe=ce.name;if(!le.modifiersData[Xe]._skip){for(var Ae=Oe.mainAxis,ze=Ae===void 0?!0:Ae,bt=Oe.altAxis,ot=bt===void 0?!0:bt,yt=Oe.fallbackPlacements,zt=Oe.padding,At=Oe.boundary,Cn=Oe.rootBoundary,jn=Oe.altBoundary,tn=Oe.flipVariations,Sn=tn===void 0?!0:tn,Pn=Oe.allowedAutoPlacements,Qt=le.options.placement,fn=M(Qt),Dn=fn===Qt,Fn=yt||(Dn||!Sn?[et(Qt)]:ir(Qt)),Ft=[Qt].concat(Fn).reduce(function(uo,ko){return uo.concat(M(ko)===i?Rn(le,{placement:ko,boundary:At,rootBoundary:Cn,padding:zt,flipVariations:Sn,allowedAutoPlacements:Pn}):ko)},[]),Bn=le.rects.reference,In=le.rects.popper,dn=new Map,Xr=!0,jr=Ft[0],gr=0;gr<Ft.length;gr++){var Hr=Ft[gr],zi=M(Hr),ei=me(Hr)===s,Wi=[t,e].indexOf(zi)>=0,$i=Wi?"width":"height",Tr=bn(le,{placement:Hr,boundary:At,rootBoundary:Cn,altBoundary:jn,padding:zt}),Qr=Wi?ei?n:r:ei?e:t;Bn[$i]>In[$i]&&(Qr=et(Qr));var ao=et(Qr),Zi=[];if(ze&&Zi.push(Tr[zi]<=0),ot&&Zi.push(Tr[Qr]<=0,Tr[ao]<=0),Zi.every(function(uo){return uo})){jr=Hr,Xr=!1;break}dn.set(Hr,Zi)}if(Xr)for(var ps=Sn?3:1,lo=function(ko){var Ns=Ft.find(function(xo){var ms=dn.get(xo);if(ms)return ms.slice(0,ko).every(function(Ql){return Ql})});if(Ns)return jr=Ns,"break"},tl=ps;tl>0;tl--){var da=lo(tl);if(da==="break")break}le.placement!==jr&&(le.modifiersData[Xe]._skip=!0,le.placement=jr,le.reset=!0)}}var Ee={name:"flip",enabled:!0,phase:"main",fn:pe,requiresIfExists:["offset"],data:{_skip:!1}};function De(ce,le,Oe){return Oe===void 0&&(Oe={x:0,y:0}),{top:ce.top-le.height-Oe.y,right:ce.right-le.width+Oe.x,bottom:ce.bottom-le.height+Oe.y,left:ce.left-le.width-Oe.x}}function rt(ce){return[t,n,e,r].some(function(le){return ce[le]>=0})}function ct(ce){var le=ce.state,Oe=ce.name,Xe=le.rects.reference,Ae=le.rects.popper,ze=le.modifiersData.preventOverflow,bt=bn(le,{elementContext:"reference"}),ot=bn(le,{altBoundary:!0}),yt=De(bt,Xe),zt=De(ot,Ae,ze),At=rt(yt),Cn=rt(zt);le.modifiersData[Oe]={referenceClippingOffsets:yt,popperEscapeOffsets:zt,isReferenceHidden:At,hasPopperEscaped:Cn},le.attributes.popper=Object.assign({},le.attributes.popper,{"data-popper-reference-hidden":At,"data-popper-escaped":Cn})}var ht={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ct};function Ve(ce,le,Oe){var Xe=M(ce),Ae=[r,t].indexOf(Xe)>=0?-1:1,ze=typeof Oe=="function"?Oe(Object.assign({},le,{placement:ce})):Oe,bt=ze[0],ot=ze[1];return bt=bt||0,ot=(ot||0)*Ae,[r,n].indexOf(Xe)>=0?{x:ot,y:bt}:{x:bt,y:ot}}function Ye(ce){var le=ce.state,Oe=ce.options,Xe=ce.name,Ae=Oe.offset,ze=Ae===void 0?[0,0]:Ae,bt=h.reduce(function(At,Cn){return At[Cn]=Ve(Cn,le.rects,ze),At},{}),ot=bt[le.placement],yt=ot.x,zt=ot.y;le.modifiersData.popperOffsets!=null&&(le.modifiersData.popperOffsets.x+=yt,le.modifiersData.popperOffsets.y+=zt),le.modifiersData[Xe]=bt}var Je={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ye};function Ze(ce){var le=ce.state,Oe=ce.name;le.modifiersData[Oe]=Tn({reference:le.rects.reference,element:le.rects.popper,placement:le.placement})}var Ne={name:"popperOffsets",enabled:!0,phase:"read",fn:Ze,data:{}};function lt(ce){return ce==="x"?"y":"x"}function Pt(ce){var le=ce.state,Oe=ce.options,Xe=ce.name,Ae=Oe.mainAxis,ze=Ae===void 0?!0:Ae,bt=Oe.altAxis,ot=bt===void 0?!1:bt,yt=Oe.boundary,zt=Oe.rootBoundary,At=Oe.altBoundary,Cn=Oe.padding,jn=Oe.tether,tn=jn===void 0?!0:jn,Sn=Oe.tetherOffset,Pn=Sn===void 0?0:Sn,Qt=bn(le,{boundary:yt,rootBoundary:zt,padding:Cn,altBoundary:At}),fn=M(le.placement),Dn=me(le.placement),Fn=!Dn,Ft=J(fn),Bn=lt(Ft),In=le.modifiersData.popperOffsets,dn=le.rects.reference,Xr=le.rects.popper,jr=typeof Pn=="function"?Pn(Object.assign({},le.rects,{placement:le.placement})):Pn,gr=typeof jr=="number"?{mainAxis:jr,altAxis:jr}:Object.assign({mainAxis:0,altAxis:0},jr),Hr=le.modifiersData.offset?le.modifiersData.offset[le.placement]:null,zi={x:0,y:0};if(In){if(ze){var ei,Wi=Ft==="y"?t:r,$i=Ft==="y"?e:n,Tr=Ft==="y"?"height":"width",Qr=In[Ft],ao=Qr+Qt[Wi],Zi=Qr-Qt[$i],ps=tn?-Xr[Tr]/2:0,lo=Dn===s?dn[Tr]:Xr[Tr],tl=Dn===s?-Xr[Tr]:-dn[Tr],da=le.elements.arrow,uo=tn&&da?K(da):{width:0,height:0},ko=le.modifiersData["arrow#persistent"]?le.modifiersData["arrow#persistent"].padding:Te(),Ns=ko[Wi],xo=ko[$i],ms=fe(0,dn[Tr],uo[Tr]),Ql=Fn?dn[Tr]/2-ps-ms-Ns-gr.mainAxis:lo-ms-Ns-gr.mainAxis,ha=Fn?-dn[Tr]/2+ps+ms+xo+gr.mainAxis:tl+ms+xo+gr.mainAxis,Ls=le.elements.arrow&&X(le.elements.arrow),Ho=Ls?Ft==="y"?Ls.clientTop||0:Ls.clientLeft||0:0,nl=(ei=Hr?.[Ft])!=null?ei:0,Fl=Qr+Ql-nl-Ho,ch=Qr+ha-nl,js=fe(tn?A(ao,Fl):ao,Qr,tn?L(Zi,ch):Zi);In[Ft]=js,zi[Ft]=js-Qr}if(ot){var rl,Bl=Ft==="x"?t:r,rc=Ft==="x"?e:n,_i=In[Bn],Yo=Bn==="y"?"height":"width",pa=_i+Qt[Bl],Ul=_i-Qt[rc],Qs=[t,r].indexOf(fn)!==-1,il=(rl=Hr?.[Bn])!=null?rl:0,ql=Qs?pa:_i-dn[Yo]-Xr[Yo]-il+gr.altAxis,gi=Qs?_i+dn[Yo]+Xr[Yo]-il-gr.altAxis:Ul,Fs=tn&&Qs?we(ql,_i,gi):fe(tn?ql:pa,_i,tn?gi:Ul);In[Bn]=Fs,zi[Bn]=Fs-_i}le.modifiersData[Xe]=zi}}var Nt={name:"preventOverflow",enabled:!0,phase:"main",fn:Pt,requiresIfExists:["offset"]};function hn(ce){return{scrollLeft:ce.scrollLeft,scrollTop:ce.scrollTop}}function cn(ce){return ce===P(ce)||!R(ce)?at(ce):hn(ce)}function Kt(ce){var le=ce.getBoundingClientRect(),Oe=H(le.width)/ce.offsetWidth||1,Xe=H(le.height)/ce.offsetHeight||1;return Oe!==1||Xe!==1}function sn(ce,le,Oe){Oe===void 0&&(Oe=!1);var Xe=R(le),Ae=R(le)&&Kt(le),ze=ne(le),bt=G(ce,Ae,Oe),ot={scrollLeft:0,scrollTop:0},yt={x:0,y:0};return(Xe||!Xe&&!Oe)&&((B(le)!=="body"||pt(ze))&&(ot=cn(le)),R(le)?(yt=G(le,!0),yt.x+=le.clientLeft,yt.y+=le.clientTop):ze&&(yt.x=We(ze))),{x:bt.left+ot.scrollLeft-yt.x,y:bt.top+ot.scrollTop-yt.y,width:bt.width,height:bt.height}}function nn(ce){var le=new Map,Oe=new Set,Xe=[];ce.forEach(function(ze){le.set(ze.name,ze)});function Ae(ze){Oe.add(ze.name);var bt=[].concat(ze.requires||[],ze.requiresIfExists||[]);bt.forEach(function(ot){if(!Oe.has(ot)){var yt=le.get(ot);yt&&Ae(yt)}}),Xe.push(ze)}return ce.forEach(function(ze){Oe.has(ze.name)||Ae(ze)}),Xe}function Yt(ce){var le=nn(ce);return I.reduce(function(Oe,Xe){return Oe.concat(le.filter(function(Ae){return Ae.phase===Xe}))},[])}function Ct(ce){var le;return function(){return le||(le=new Promise(function(Oe){Promise.resolve().then(function(){le=void 0,Oe(ce())})})),le}}function ln(ce){var le=ce.reduce(function(Oe,Xe){var Ae=Oe[Xe.name];return Oe[Xe.name]=Ae?Object.assign({},Ae,Xe,{options:Object.assign({},Ae.options,Xe.options),data:Object.assign({},Ae.data,Xe.data)}):Xe,Oe},{});return Object.keys(le).map(function(Oe){return le[Oe]})}var or={placement:"bottom",modifiers:[],strategy:"absolute"};function wn(){for(var ce=arguments.length,le=new Array(ce),Oe=0;Oe<ce;Oe++)le[Oe]=arguments[Oe];return!le.some(function(Xe){return!(Xe&&typeof Xe.getBoundingClientRect=="function")})}function fr(ce){ce===void 0&&(ce={});var le=ce,Oe=le.defaultModifiers,Xe=Oe===void 0?[]:Oe,Ae=le.defaultOptions,ze=Ae===void 0?or:Ae;return function(ot,yt,zt){zt===void 0&&(zt=ze);var At={placement:"bottom",orderedModifiers:[],options:Object.assign({},or,ze),modifiersData:{},elements:{reference:ot,popper:yt},attributes:{},styles:{}},Cn=[],jn=!1,tn={state:At,setOptions:function(fn){var Dn=typeof fn=="function"?fn(At.options):fn;Pn(),At.options=Object.assign({},ze,At.options,Dn),At.scrollParents={reference:E(ot)?nt(ot):ot.contextElement?nt(ot.contextElement):[],popper:nt(yt)};var Fn=Yt(ln([].concat(Xe,At.options.modifiers)));return At.orderedModifiers=Fn.filter(function(Ft){return Ft.enabled}),Sn(),tn.update()},forceUpdate:function(){if(!jn){var fn=At.elements,Dn=fn.reference,Fn=fn.popper;if(wn(Dn,Fn)){At.rects={reference:sn(Dn,X(Fn),At.options.strategy==="fixed"),popper:K(Fn)},At.reset=!1,At.placement=At.options.placement,At.orderedModifiers.forEach(function(gr){return At.modifiersData[gr.name]=Object.assign({},gr.data)});for(var Ft=0;Ft<At.orderedModifiers.length;Ft++){if(At.reset===!0){At.reset=!1,Ft=-1;continue}var Bn=At.orderedModifiers[Ft],In=Bn.fn,dn=Bn.options,Xr=dn===void 0?{}:dn,jr=Bn.name;typeof In=="function"&&(At=In({state:At,options:Xr,name:jr,instance:tn})||At)}}}},update:Ct(function(){return new Promise(function(Qt){tn.forceUpdate(),Qt(At)})}),destroy:function(){Pn(),jn=!0}};if(!wn(ot,yt))return tn;tn.setOptions(zt).then(function(Qt){!jn&&zt.onFirstUpdate&&zt.onFirstUpdate(Qt)});function Sn(){At.orderedModifiers.forEach(function(Qt){var fn=Qt.name,Dn=Qt.options,Fn=Dn===void 0?{}:Dn,Ft=Qt.effect;if(typeof Ft=="function"){var Bn=Ft({state:At,name:fn,instance:tn,options:Fn}),In=function(){};Cn.push(Bn||In)}})}function Pn(){Cn.forEach(function(Qt){return Qt()}),Cn=[]}return tn}}const lr=fr({defaultModifiers:[ht,Ne,ye,Se,Je,Ee,Nt,oe]});return Nv.createPopper=lr,Nv.placements=h,Nv}var Nj;function Wye(){if(Nj)return cp;Nj=1,cp.__esModule=!0,cp.default=void 0;var t=jt(),e=qye(),n=o(Vye()),r=zye();const i=["enabled","placement","strategy","modifiers"];function o(f){return f&&f.__esModule?f:{default:f}}function s(f,d){if(f==null)return{};var h={};for(var p in f)if({}.hasOwnProperty.call(f,p)){if(d.indexOf(p)>=0)continue;h[p]=f[p]}return h}const a={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},l={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:f})=>()=>{const{reference:d,popper:h}=f.elements;if("removeAttribute"in d){const p=(d.getAttribute("aria-describedby")||"").split(",").filter(g=>g.trim()!==h.id);p.length?d.setAttribute("aria-describedby",p.join(",")):d.removeAttribute("aria-describedby")}},fn:({state:f})=>{var d;const{popper:h,reference:p}=f.elements,g=(d=h.getAttribute("role"))==null?void 0:d.toLowerCase();if(h.id&&g==="tooltip"&&"setAttribute"in p){const y=p.getAttribute("aria-describedby");if(y&&y.split(",").indexOf(h.id)!==-1)return;p.setAttribute("aria-describedby",y?`${y},${h.id}`:h.id)}}},u=[];function c(f,d,h={}){let{enabled:p=!0,placement:g="bottom",strategy:y="absolute",modifiers:O=u}=h,b=s(h,i);const S=(0,t.useRef)(O),k=(0,t.useRef)(),x=(0,t.useCallback)(()=>{var R;(R=k.current)==null||R.update()},[]),_=(0,t.useCallback)(()=>{var R;(R=k.current)==null||R.forceUpdate()},[]),[I,M]=(0,n.default)((0,t.useState)({placement:g,update:x,forceUpdate:_,attributes:{},styles:{popper:{},arrow:{}}})),P=(0,t.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:R})=>{const T={},L={};Object.keys(R.elements).forEach(A=>{T[A]=R.styles[A],L[A]=R.attributes[A]}),M({state:R,styles:T,attributes:L,update:x,forceUpdate:_,placement:R.placement})}}),[x,_,M]),E=(0,t.useMemo)(()=>((0,e.dequal)(S.current,O)||(S.current=O),S.current),[O]);return(0,t.useEffect)(()=>{!k.current||!p||k.current.setOptions({placement:g,strategy:y,modifiers:[...E,P,a]})},[y,g,P,p,E]),(0,t.useEffect)(()=>{if(!(!p||f==null||d==null))return k.current=(0,r.createPopper)(f,d,Object.assign({},b,{placement:g,strategy:y,modifiers:[...E,l,P]})),()=>{k.current!=null&&(k.current.destroy(),k.current=void 0,M(R=>Object.assign({},R,{attributes:{},styles:{popper:{}}})))}},[p,f,d]),I}return cp.default=c,cp}var dp={},xc={},Lj;function Zye(){if(Lj)return xc;Lj=1,xc.__esModule=!0,xc.getRefTarget=xc.default=void 0;var t=s(QT),e=s(FT),n=s(q0),r=jt(),i=s(rg()),o=s(B0());function s(h){return h&&h.__esModule?h:{default:h}}const a=()=>{};function l(h){return h.button===0}function u(h){return!!(h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)}const c=h=>h&&("current"in h?h.current:h);xc.getRefTarget=c;const f={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function d(h,p=a,{disabled:g,clickTrigger:y="click"}={}){const O=(0,r.useRef)(!1),b=(0,r.useRef)(!1),S=(0,r.useCallback)(_=>{const I=c(h);(0,o.default)(!!I,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),O.current=!I||u(_)||!l(_)||!!(0,t.default)(I,_.target)||b.current,b.current=!1},[h]),k=(0,i.default)(_=>{const I=c(h);I&&(0,t.default)(I,_.target)?b.current=!0:b.current=!1}),x=(0,i.default)(_=>{O.current||p(_)});(0,r.useEffect)(()=>{var _,I;if(g||h==null)return;const M=(0,n.default)(c(h)),P=M.defaultView||window;let E=(_=P.event)!=null?_:(I=P.parent)==null?void 0:I.event,R=null;f[y]&&(R=(0,e.default)(M,f[y],k,!0));const T=(0,e.default)(M,y,S,!0),L=(0,e.default)(M,y,H=>{if(H===E){E=void 0;return}x(H)});let A=[];return"ontouchstart"in M.documentElement&&(A=[].slice.call(M.body.children).map(H=>(0,e.default)(H,"mousemove",a))),()=>{R?.(),T(),L(),A.forEach(H=>H())}},[h,g,y,S,k,x])}return xc.default=d,xc}var jj;function Xye(){if(jj)return dp;jj=1,dp.__esModule=!0,dp.default=void 0;var t=l(FT),e=l(q0),n=jt(),r=l(rg()),i=a(Zye()),o=sf();function s(f){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(s=function(p){return p?h:d})(f)}function a(f,d){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var h=s(d);if(h&&h.has(f))return h.get(f);var p={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in f)if(y!=="default"&&{}.hasOwnProperty.call(f,y)){var O=g?Object.getOwnPropertyDescriptor(f,y):null;O&&(O.get||O.set)?Object.defineProperty(p,y,O):p[y]=f[y]}return p.default=f,h&&h.set(f,p),p}function l(f){return f&&f.__esModule?f:{default:f}}const u=()=>{};function c(f,d,{disabled:h,clickTrigger:p}={}){const g=d||u;(0,i.default)(f,g,{disabled:h,clickTrigger:p});const y=(0,r.default)(O=>{(0,o.isEscKey)(O)&&g(O)});(0,n.useEffect)(()=>{if(h||f==null)return;const O=(0,e.default)((0,i.getRefTarget)(f));let b=(O.defaultView||window).event;const S=(0,t.default)(O,"keyup",k=>{if(k===b){b=void 0;return}y(k)});return()=>{S()}},[f,h,y])}return dp.default=c,dp}var Vf={},Qj;function Hye(){if(Qj)return Vf;Qj=1,Vf.__esModule=!0,Vf.default=n,Vf.toModifierArray=e,Vf.toModifierMap=t;function t(r){const i={};return Array.isArray(r)?(r?.forEach(o=>{i[o.name]=o}),i):r||i}function e(r={}){return Array.isArray(r)?r:Object.keys(r).map(i=>(r[i].name=i,r[i]))}function n({enabled:r,enableEvents:i,placement:o,flip:s,offset:a,fixed:l,containerPadding:u,arrowElement:c,popperConfig:f={}}){var d,h,p,g,y;const O=t(f.modifiers);return Object.assign({},f,{placement:o,enabled:r,strategy:l?"fixed":f.strategy,modifiers:e(Object.assign({},O,{eventListeners:{enabled:i,options:(d=O.eventListeners)==null?void 0:d.options},preventOverflow:Object.assign({},O.preventOverflow,{options:u?Object.assign({padding:u},(h=O.preventOverflow)==null?void 0:h.options):(p=O.preventOverflow)==null?void 0:p.options}),offset:{options:Object.assign({offset:a},(g=O.offset)==null?void 0:g.options)},arrow:Object.assign({},O.arrow,{enabled:!!c,options:Object.assign({},(y=O.arrow)==null?void 0:y.options,{element:c})}),flip:Object.assign({enabled:!!s},O.flip)}))})}return Vf}var Fj;function Yye(){if(Fj)return up;Fj=1,up.__esModule=!0,up.default=void 0;var t=d(jt()),e=t,n=c(Mm()),r=c(Uye()),i=c(z0()),o=c(Wye()),s=c(Xye()),a=c(NV()),l=c(Hye()),u=LV();function c(p){return p&&p.__esModule?p:{default:p}}function f(p){if(typeof WeakMap!="function")return null;var g=new WeakMap,y=new WeakMap;return(f=function(O){return O?y:g})(p)}function d(p,g){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var y=f(g);if(y&&y.has(p))return y.get(p);var O={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in p)if(S!=="default"&&{}.hasOwnProperty.call(p,S)){var k=b?Object.getOwnPropertyDescriptor(p,S):null;k&&(k.get||k.set)?Object.defineProperty(O,S,k):O[S]=p[S]}return O.default=p,y&&y.set(p,O),O}const h=e.forwardRef((p,g)=>{const{flip:y,offset:O,placement:b,containerPadding:S,popperConfig:k={},transition:x,runTransition:_}=p,[I,M]=(0,r.default)(),[P,E]=(0,r.default)(),R=(0,i.default)(M,g),T=(0,a.default)(p.container),L=(0,a.default)(p.target),[A,H]=(0,t.useState)(!p.show),W=(0,o.default)(L,I,(0,l.default)({placement:b,enableEvents:!!p.show,containerPadding:S||5,flip:y,offset:O,arrowElement:P,popperConfig:k}));p.show&&A&&H(!1);const Z=(...ee)=>{H(!0),p.onExited&&p.onExited(...ee)},G=p.show||!A;if((0,s.default)(I,p.onHide,{disabled:!p.rootClose||p.rootCloseDisabled,clickTrigger:p.rootCloseEvent}),!G)return null;const{onExit:K,onExiting:U,onEnter:B,onEntering:Y,onEntered:j}=p;let ne=p.children(Object.assign({},W.attributes.popper,{style:W.styles.popper,ref:R}),{popper:W,placement:b,show:!!p.show,arrowProps:Object.assign({},W.attributes.arrow,{style:W.styles.arrow,ref:E})});return ne=(0,u.renderTransition)(x,_,{in:!!p.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ne,onExit:K,onExiting:U,onExited:Z,onEnter:B,onEntering:Y,onEntered:j}),T?n.default.createPortal(ne,T):null});return h.displayName="Overlay",up.default=h,up}var hp={},Bj;function Gye(){if(Bj)return hp;Bj=1,hp.__esModule=!0,hp.default=void 0;var t=jt();const e=typeof Cr<"u"&&Cr.navigator&&Cr.navigator.product==="ReactNative";var r=typeof document<"u"||e?t.useLayoutEffect:t.useEffect;return hp.default=r,hp}var Lv={exports:{}};const Kye=qi(eye);var jv={exports:{}},Qv={exports:{}},Uj;function Jye(){return Uj||(Uj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=l(jt()),i=n(mr()),o=Zr(),s=Ln();function a(c){if(typeof WeakMap!="function")return null;var f=new WeakMap,d=new WeakMap;return(a=function(h){return h?d:f})(c)}function l(c,f){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=a(f);if(d&&d.has(c))return d.get(c);var h={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&Object.prototype.hasOwnProperty.call(c,g)){var y=p?Object.getOwnPropertyDescriptor(c,g):null;y&&(y.get||y.set)?Object.defineProperty(h,g,y):h[g]=c[g]}return h.default=c,d&&d.set(c,h),h}const u=r.forwardRef(({className:c,bsPrefix:f,as:d="div",...h},p)=>(f=(0,o.useBootstrapPrefix)(f,"popover-header"),(0,s.jsx)(d,{ref:p,className:(0,i.default)(c,f),...h})));u.displayName="PopoverHeader",e.default=u,t.exports=e.default}(Qv,Qv.exports)),Qv.exports}var Fv={exports:{}},qj;function eOe(){return qj||(qj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=l(jt()),i=n(mr()),o=Zr(),s=Ln();function a(c){if(typeof WeakMap!="function")return null;var f=new WeakMap,d=new WeakMap;return(a=function(h){return h?d:f})(c)}function l(c,f){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=a(f);if(d&&d.has(c))return d.get(c);var h={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&Object.prototype.hasOwnProperty.call(c,g)){var y=p?Object.getOwnPropertyDescriptor(c,g):null;y&&(y.get||y.set)?Object.defineProperty(h,g,y):h[g]=c[g]}return h.default=c,d&&d.set(c,h),h}const u=r.forwardRef(({className:c,bsPrefix:f,as:d="div",...h},p)=>(f=(0,o.useBootstrapPrefix)(f,"popover-body"),(0,s.jsx)(d,{ref:p,className:(0,i.default)(c,f),...h})));u.displayName="PopoverBody",e.default=u,t.exports=e.default}(Fv,Fv.exports)),Fv.exports}var zf={},Vj;function HV(){if(Vj)return zf;Vj=1,zf.__esModule=!0,zf.BsPrefixComponent=void 0,zf.getOverlayDirection=i;var t=n(jt());function e(o){if(typeof WeakMap!="function")return null;var s=new WeakMap,a=new WeakMap;return(e=function(l){return l?a:s})(o)}function n(o,s){if(o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var a=e(s);if(a&&a.has(o))return a.get(o);var l={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in o)if(c!=="default"&&Object.prototype.hasOwnProperty.call(o,c)){var f=u?Object.getOwnPropertyDescriptor(o,c):null;f&&(f.get||f.set)?Object.defineProperty(l,c,f):l[c]=o[c]}return l.default=o,a&&a.set(o,l),l}class r extends t.Component{}zf.BsPrefixComponent=r;function i(o,s){let a=o;return o==="left"?a=s?"end":"start":o==="right"&&(a=s?"start":"end"),a}return zf}var Bv={exports:{}},zj;function YV(){return zj||(zj=1,function(t,e){e.__esModule=!0,e.default=n;function n(r="absolute"){return{position:r,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}t.exports=e.default}(Bv,Bv.exports)),Bv.exports}var Wj;function tOe(){return Wj||(Wj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=n(mr()),i=d(jt()),o=Zr(),s=n(Jye()),a=n(eOe()),l=HV(),u=n(YV()),c=Ln();function f(p){if(typeof WeakMap!="function")return null;var g=new WeakMap,y=new WeakMap;return(f=function(O){return O?y:g})(p)}function d(p,g){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var y=f(g);if(y&&y.has(p))return y.get(p);var O={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in p)if(S!=="default"&&Object.prototype.hasOwnProperty.call(p,S)){var k=b?Object.getOwnPropertyDescriptor(p,S):null;k&&(k.get||k.set)?Object.defineProperty(O,S,k):O[S]=p[S]}return O.default=p,y&&y.set(p,O),O}const h=i.forwardRef(({bsPrefix:p,placement:g="right",className:y,style:O,children:b,body:S,arrowProps:k,hasDoneInitialMeasure:x,popper:_,show:I,...M},P)=>{const E=(0,o.useBootstrapPrefix)(p,"popover"),R=(0,o.useIsRTL)(),[T]=g?.split("-")||[],L=(0,l.getOverlayDirection)(T,R);let A=O;return I&&!x&&(A={...O,...(0,u.default)(_?.strategy)}),(0,c.jsxs)("div",{ref:P,role:"tooltip",style:A,"x-placement":T,className:(0,r.default)(y,E,T&&`bs-popover-${L}`),...M,children:[(0,c.jsx)("div",{className:"popover-arrow",...k}),S?(0,c.jsx)(a.default,{children:b}):b]})});h.displayName="Popover",e.default=Object.assign(h,{Header:s.default,Body:a.default,POPPER_OFFSET:[0,8]}),t.exports=e.default}(jv,jv.exports)),jv.exports}var Uv={exports:{}},Zj;function GV(){return Zj||(Zj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=n(mr()),i=c(jt()),o=Zr(),s=HV(),a=n(YV()),l=Ln();function u(d){if(typeof WeakMap!="function")return null;var h=new WeakMap,p=new WeakMap;return(u=function(g){return g?p:h})(d)}function c(d,h){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=u(h);if(p&&p.has(d))return p.get(d);var g={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var b=y?Object.getOwnPropertyDescriptor(d,O):null;b&&(b.get||b.set)?Object.defineProperty(g,O,b):g[O]=d[O]}return g.default=d,p&&p.set(d,g),g}const f=i.forwardRef(({bsPrefix:d,placement:h="right",className:p,style:g,children:y,arrowProps:O,hasDoneInitialMeasure:b,popper:S,show:k,...x},_)=>{d=(0,o.useBootstrapPrefix)(d,"tooltip");const I=(0,o.useIsRTL)(),[M]=h?.split("-")||[],P=(0,s.getOverlayDirection)(M,I);let E=g;return k&&!b&&(E={...g,...(0,a.default)(S?.strategy)}),(0,l.jsxs)("div",{ref:_,style:E,role:"tooltip","x-placement":M,className:(0,r.default)(p,d,`bs-tooltip-${P}`),...x,children:[(0,l.jsx)("div",{className:"tooltip-arrow",...O}),(0,l.jsx)("div",{className:`${d}-inner`,children:y})]})});f.displayName="Tooltip",e.default=Object.assign(f,{TOOLTIP_OFFSET:[0,6]}),t.exports=e.default}(Uv,Uv.exports)),Uv.exports}var Xj;function nOe(){return Xj||(Xj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=l;var r=jt(),i=n(Kye),o=Zr(),s=n(tOe()),a=n(GV());function l(u){const c=(0,r.useRef)(null),f=(0,o.useBootstrapPrefix)(void 0,"popover"),d=(0,o.useBootstrapPrefix)(void 0,"tooltip"),h=(0,r.useMemo)(()=>({name:"offset",options:{offset:()=>{if(u)return u;if(c.current){if((0,i.default)(c.current,f))return s.default.POPPER_OFFSET;if((0,i.default)(c.current,d))return a.default.TOOLTIP_OFFSET}return[0,0]}}}),[u,f,d]);return[c,[h]]}t.exports=e.default}(Lv,Lv.exports)),Lv.exports}var Hj;function rOe(){return Hj||(Hj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=g(jt()),i=r,o=n(mr()),s=n(Yye()),a=n(LT()),l=n(Gye()),u=n(V0()),c=n(nOe()),f=n(UV()),d=n(qT()),h=Ln();function p(b){if(typeof WeakMap!="function")return null;var S=new WeakMap,k=new WeakMap;return(p=function(x){return x?k:S})(b)}function g(b,S){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var k=p(S);if(k&&k.has(b))return k.get(b);var x={__proto__:null},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in b)if(I!=="default"&&Object.prototype.hasOwnProperty.call(b,I)){var M=_?Object.getOwnPropertyDescriptor(b,I):null;M&&(M.get||M.set)?Object.defineProperty(x,I,M):x[I]=b[I]}return x.default=b,k&&k.set(b,x),x}function y(b,S){const{ref:k}=b,{ref:x}=S;b.ref=k.__wrapped||(k.__wrapped=_=>k((0,d.default)(_))),S.ref=x.__wrapped||(x.__wrapped=_=>x((0,d.default)(_)))}const O=i.forwardRef(({children:b,transition:S=f.default,popperConfig:k={},rootClose:x=!1,placement:_="top",show:I=!1,...M},P)=>{const E=(0,r.useRef)({}),[R,T]=(0,r.useState)(null),[L,A]=(0,c.default)(M.offset),H=(0,u.default)(P,L),W=S===!0?f.default:S||void 0,Z=(0,a.default)(G=>{T(G),k==null||k.onFirstUpdate==null||k.onFirstUpdate(G)});return(0,l.default)(()=>{R&&M.target&&(E.current.scheduleUpdate==null||E.current.scheduleUpdate())},[R,M.target]),(0,r.useEffect)(()=>{I||T(null)},[I]),(0,h.jsx)(s.default,{...M,ref:H,popperConfig:{...k,modifiers:A.concat(k.modifiers||[]),onFirstUpdate:Z},transition:W,rootClose:x,placement:_,show:I,children:(G,{arrowProps:K,popper:U,show:B})=>{var Y;y(G,K);const j=U?.placement,ne=Object.assign(E.current,{state:U?.state,scheduleUpdate:U?.update,placement:j,outOfBoundaries:(U==null||(Y=U.state)==null||(Y=Y.modifiersData.hide)==null?void 0:Y.isReferenceHidden)||!1,strategy:k.strategy}),ee=!!R;return typeof b=="function"?b({...G,placement:j,show:B,...!S&&B&&{className:"show"},popper:ne,arrowProps:K,hasDoneInitialMeasure:ee}):i.cloneElement(b,{...G,placement:j,arrowProps:K,popper:ne,hasDoneInitialMeasure:ee,className:(0,o.default)(b.props.className,!S&&B&&"show"),style:{...b.props.style,...G.style}})}})});O.displayName="Overlay",e.default=O,t.exports=e.default}(Iv,Iv.exports)),Iv.exports}var Yj;function iOe(){return Yj||(Yj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=n(QT),i=n(F0()),o=g(jt()),s=o,a=n(Eye());n(B0());var l=Bye,u=n(V0()),c=sf(),f=n(rOe()),d=n(qT()),h=Ln();function p(S){if(typeof WeakMap!="function")return null;var k=new WeakMap,x=new WeakMap;return(p=function(_){return _?x:k})(S)}function g(S,k){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var x=p(k);if(x&&x.has(S))return x.get(S);var _={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in S)if(M!=="default"&&Object.prototype.hasOwnProperty.call(S,M)){var P=I?Object.getOwnPropertyDescriptor(S,M):null;P&&(P.get||P.set)?Object.defineProperty(_,M,P):_[M]=S[M]}return _.default=S,x&&x.set(S,_),_}function y(S){return S&&typeof S=="object"?S:{show:S,hide:S}}function O(S,k,x){const[_]=k,I=_.currentTarget,M=_.relatedTarget||_.nativeEvent[x];(!M||M!==I)&&!(0,r.default)(I,M)&&S(...k)}i.default.oneOf(["click","hover","focus"]);const b=({trigger:S=["hover","focus"],overlay:k,children:x,popperConfig:_={},show:I,defaultShow:M=!1,onToggle:P,delay:E,placement:R,flip:T=R&&R.indexOf("auto")!==-1,...L})=>{const A=(0,o.useRef)(null),H=(0,u.default)(A,(0,c.getChildRef)(x)),W=(0,a.default)(),Z=(0,o.useRef)(""),[G,K]=(0,l.useUncontrolledProp)(I,M,P),U=y(E),{onFocus:B,onBlur:Y,onClick:j}=typeof x!="function"?s.Children.only(x).props:{},ne=Q=>{H((0,d.default)(Q))},ee=(0,o.useCallback)(()=>{if(W.clear(),Z.current="show",!U.show){K(!0);return}W.set(()=>{Z.current==="show"&&K(!0)},U.show)},[U.show,K,W]),ue=(0,o.useCallback)(()=>{if(W.clear(),Z.current="hide",!U.hide){K(!1);return}W.set(()=>{Z.current==="hide"&&K(!1)},U.hide)},[U.hide,K,W]),z=(0,o.useCallback)((...Q)=>{ee(),B?.(...Q)},[ee,B]),X=(0,o.useCallback)((...Q)=>{ue(),Y?.(...Q)},[ue,Y]),J=(0,o.useCallback)((...Q)=>{K(!G),j?.(...Q)},[j,K,G]),fe=(0,o.useCallback)((...Q)=>{O(ee,Q,"fromElement")},[ee]),we=(0,o.useCallback)((...Q)=>{O(ue,Q,"toElement")},[ue]),Te=S==null?[]:[].concat(S),Re={ref:ne};return Te.indexOf("click")!==-1&&(Re.onClick=J),Te.indexOf("focus")!==-1&&(Re.onFocus=z,Re.onBlur=X),Te.indexOf("hover")!==-1&&(Re.onMouseOver=fe,Re.onMouseOut=we),(0,h.jsxs)(h.Fragment,{children:[typeof x=="function"?x(Re):(0,o.cloneElement)(x,Re),(0,h.jsx)(f.default,{...L,show:G,onHide:ue,flip:T,placement:R,popperConfig:_,target:A.current,children:k})]})};e.default=b,t.exports=e.default}(Av,Av.exports)),Av.exports}var oOe=iOe();const ho=So(oOe);var sOe=GV();const po=So(sOe),aOe=({enableUsernameField:t=!0})=>{const{isDocOpen:e,closeDoc:n}=N.useContext(Lr);return e?q.jsxs($r,{className:"vz-settings",show:e,onHide:n,animation:!1,children:[q.jsx($r.Header,{closeButton:!0,children:q.jsx($r.Title,{children:"Keyboard Shortcuts"})}),q.jsxs($r.Body,{className:"pt-1",children:[q.jsx(Ir.Group,{className:"mb-3",children:q.jsx(Ir.Text,{className:"text-muted",children:"Keyboard shortcuts and interactive widgets for quick actions"})}),q.jsx(Ir.Group,{children:q.jsxs("ul",{children:[q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Ctrl"})," + ",q.jsx("kbd",{children:"S"})]})," ","or"," ",q.jsxs("strong",{children:[q.jsx("kbd",{children:"Shift↑"})," + ",q.jsx("kbd",{children:"Enter←"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Run and format code"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + Drag on a number"]}),q.jsx("br",{}),q.jsx("span",{children:"Modify the number by dragging left or right"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + Click on a hex color"]}),q.jsx("br",{}),q.jsx("span",{children:"Open a color picker to modify the color"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + ",q.jsx("kbd",{children:"W"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Close the current tab"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + ",q.jsx("kbd",{children:"N"})]})," ","or"," ",q.jsxs("strong",{children:[q.jsx("kbd",{children:"Ctrl"})," + ",q.jsx("kbd",{children:"Shift↑"})," +"," ",q.jsx("kbd",{children:"N"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Open the create file modal"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + ",q.jsx("kbd",{children:"PgUp↑"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Change the active tab to the previous one"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + ",q.jsx("kbd",{children:"PgDn↓"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Change the active tab to the next one"})]}),q.jsxs("li",{children:[q.jsx("strong",{children:"Most VSCode Shortcuts"})," ",q.jsx("br",{}),"See VSCode docs:"," ",q.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf",target:"_blank",children:"Windows"}),","," ",q.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf",target:"_blank",children:"MacOS"}),","," ",q.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf",target:"_blank",children:"Linux"})]})]})})]}),q.jsx($r.Footer,{children:q.jsx(Il,{variant:"primary",onClick:n,children:"Done"})})]}):null},lOe=["10px","12px","14px","16px","18px","20px","24px"],uOe=["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","sans-serif","Courier New","Georgia","Tahoma","Verdana","Times New Roman","Trebuchet MS","Comic Sans MS"],cOe=t=>{const e="abcdefghijklmnopqrstuvwxyz0123456789",n="72px",r=document.createElement("span");r.style.fontSize=n,r.style.visibility="hidden",r.style.position="absolute",r.innerHTML=e,document.body.appendChild(r);const i="monospace";r.style.fontFamily=i;const o=r.offsetWidth;r.style.fontFamily=`${t}, ${i}`;const s=r.offsetWidth;return document.body.removeChild(r),s!==o},fOe=({enableUsernameField:t=!0})=>{const{isSettingsOpen:e,closeSettings:n,theme:r,setTheme:i,username:o,setUsername:s}=N.useContext(Lr),[a,l]=N.useState("Roboto Mono"),[u,c]=N.useState("16px"),[f,d]=N.useState([]);N.useEffect(()=>{if(typeof window<"u"){const y=window.localStorage.getItem("vzcodeSelectedFont"),O=window.localStorage.getItem("vzcodeSelectedFontSize");y!==null&&l(y),O!==null&&c(O)}},[]),N.useEffect(()=>{(()=>{const O=[];for(const b of uOe)cOe(b)&&O.push(b);d(O)})()},[]);const h=N.useCallback(()=>{l("Roboto Mono"),c("16px"),i(xP[0].label),t&&s(""),localStorage.removeItem("vzcodeSelectedFont"),localStorage.removeItem("vzcodeSelectedFontSize")},[t,i,s]);N.useEffect(()=>{document.body.style.setProperty("--vzcode-font-family",a)},[a]),N.useEffect(()=>{document.body.style.setProperty("--vzcode-font-size",u)},[u]);const p=N.useRef(null),g=N.useCallback(()=>{s(p.current?.value||"")},[s]);return N.useEffect(()=>{if(e){const y=O=>{O.key==="Enter"&&n()};return window.addEventListener("keydown",y),()=>{window.removeEventListener("keydown",y)}}},[e,n]),e?q.jsxs($r,{className:"vz-settings",show:e,onHide:n,animation:!1,children:[q.jsx($r.Header,{closeButton:!0,children:q.jsx($r.Title,{children:"Editor Settings"})}),q.jsxs($r.Body,{children:[t?q.jsxs(Ir.Group,{className:"mb-3",controlId:"formFork",children:[q.jsx(Ir.Label,{children:"Username"}),q.jsx(Ir.Control,{type:"text",ref:p,onChange:g,placeholder:"Enter username",value:o}),q.jsx(Ir.Text,{className:"text-muted",children:"Enter a username to be displayed on your cursor"})]}):null,q.jsxs(Ir.Group,{className:"mb-3",controlId:"formFork",children:[q.jsx(Ir.Label,{children:"Theme"}),q.jsx("select",{className:"form-select",value:r,onChange:y=>i(y.target.value),children:xP.map(({label:y})=>q.jsx("option",{value:y,children:y},y))})]}),q.jsxs(Ir.Group,{className:"mb-3",controlId:"formFork",children:[q.jsx(Ir.Label,{children:"Font"}),q.jsx("select",{className:"form-select",onChange:y=>l(y.target.value),value:a,children:f.map(y=>q.jsx("option",{value:y,children:y},y))})]}),q.jsxs(Ir.Group,{className:"mb-3",controlId:"formFork",children:[q.jsx(Ir.Label,{children:"Font Size"}),q.jsx("select",{className:"form-select",onChange:y=>c(y.target.value),value:u,children:lOe.map(y=>q.jsx("option",{value:y,children:y},y))})]})]}),q.jsxs($r.Footer,{children:[q.jsx(Il,{variant:"secondary",onClick:h,children:"Reset to Default"}),q.jsx(Il,{variant:"primary",onClick:n,children:"Done"})]})]}):null},dOe=t=>{const e={name:"files"};for(const n of Object.keys(t)){const r=t[n],i=r.name.split("/"),o=i.length;let s=e;for(let a=0;a<o-1;a++){let l;const u=i[a];if(s.children)for(let c=0;c<s.children.length;c++){const f=s.children[c];if(f.name===u){l=f;break}}l||(l={name:i[a],path:i.slice(0,a+1).join("/")},(s.children||(s.children=[])).push(l)),s=l}r.text!==null&&(s.children||(s.children=[])).push({name:i[o-1],file:r,fileId:n})}return e},hOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:q.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})}),pOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:q.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})}),mOe=()=>q.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[q.jsx("path",{d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 0 1 0 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 0 1 0-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281Z"}),q.jsx("path",{d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]}),VO=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:q.jsx("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),gOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:q.jsx("path",{fill:"none",stroke:"currentColor",d:"M14.7404 9L14.3942 18M9.60577 18L9.25962 9M19.2276 5.79057C19.5696 5.84221 19.9104 5.89747 20.25 5.95629M19.2276 5.79057L18.1598 19.6726C18.0696 20.8448 17.0921 21.75 15.9164 21.75H8.08357C6.90786 21.75 5.93037 20.8448 5.8402 19.6726L4.77235 5.79057M19.2276 5.79057C18.0812 5.61744 16.9215 5.48485 15.75 5.39432M3.75 5.95629C4.08957 5.89747 4.43037 5.84221 4.77235 5.79057M4.77235 5.79057C5.91878 5.61744 7.07849 5.48485 8.25 5.39432M15.75 5.39432V4.47819C15.75 3.29882 14.8393 2.31423 13.6606 2.27652C13.1092 2.25889 12.5556 2.25 12 2.25C11.4444 2.25 10.8908 2.25889 10.3394 2.27652C9.16065 2.31423 8.25 3.29882 8.25 4.47819V5.39432M15.75 5.39432C14.5126 5.2987 13.262 5.25 12 5.25C10.738 5.25 9.48744 5.2987 8.25 5.39432",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),vOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0 1 12 12.75Zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 0 1-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 0 0 2.248-2.354M12 12.75a2.25 2.25 0 0 1-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 0 0-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 0 1 .4-2.253M12 8.25a2.25 2.25 0 0 0-2.248 2.146M12 8.25a2.25 2.25 0 0 1 2.248 2.146M8.683 5a6.032 6.032 0 0 1-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0 1 15.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 0 0-.575-1.752M4.921 6a24.048 24.048 0 0 0-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 0 1-5.223 1.082"})}),KV=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:q.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})}),JV=({height:t=16,fill:e="currentcolor"})=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,viewBox:"4 4 16 16",children:q.jsx("path",{stroke:e,fill:"none",d:"M8 17l9-5-9-5v10z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),yOe=()=>q.jsx("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})}),OOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})}),bOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:q.jsx("path",{fill:"currentColor",d:"m16.114 1.553 6.333 6.333a1.75 1.75 0 0 1-.603 2.869l-1.63.633a5.67 5.67 0 0 0-3.395 3.725l-1.131 3.959a1.75 1.75 0 0 1-2.92.757L9 16.061l-5.595 5.594a.749.749 0 1 1-1.06-1.06L7.939 15l-3.768-3.768a1.75 1.75 0 0 1 .757-2.92l3.959-1.131a5.666 5.666 0 0 0 3.725-3.395l.633-1.63a1.75 1.75 0 0 1 2.869-.603ZM5.232 10.171l8.597 8.597a.25.25 0 0 0 .417-.108l1.131-3.959A7.17 7.17 0 0 1 19.67 9.99l1.63-.634a.25.25 0 0 0 .086-.409l-6.333-6.333a.25.25 0 0 0-.409.086l-.634 1.63a7.17 7.17 0 0 1-4.711 4.293L5.34 9.754a.25.25 0 0 0-.108.417Z"})}),wOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})}),SOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})}),kOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M3 3h18v18H3V3zm16.525 13.707c-.131-.821-.666-1.511-2.252-2.155-.552-.259-1.165-.438-1.349-.854-.068-.248-.078-.382-.034-.529.113-.484.687-.629 1.137-.495.293.09.563.315.732.676.775-.507.775-.507 1.316-.844-.203-.314-.304-.451-.439-.586-.473-.528-1.103-.798-2.126-.775l-.528.067c-.507.124-.991.395-1.283.754-.855.968-.608 2.655.427 3.354 1.023.765 2.521.933 2.712 1.653.18.878-.652 1.159-1.475 1.058-.607-.136-.945-.439-1.316-1.002l-1.372.788c.157.359.337.517.607.832 1.305 1.316 4.568 1.249 5.153-.754.021-.067.18-.528.056-1.237l.034.049zm-6.737-5.434h-1.686c0 1.453-.007 2.898-.007 4.354 0 .924.047 1.772-.104 2.033-.247.517-.886.451-1.175.359-.297-.146-.448-.349-.623-.641-.047-.078-.082-.146-.095-.146l-1.368.844c.229.473.563.879.994 1.137.641.383 1.502.507 2.404.305.588-.17 1.095-.519 1.358-1.059.384-.697.302-1.553.299-2.509.008-1.541 0-3.083 0-4.635l.003-.042z"})}),xOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M3 3h18v18H3V3m10.71 14.86c.5.98 1.51 1.73 3.09 1.73 1.6 0 2.8-.83 2.8-2.36 0-1.41-.81-2.04-2.25-2.66l-.42-.18c-.73-.31-1.04-.52-1.04-1.02 0-.41.31-.73.81-.73.48 0 .8.21 1.09.73l1.31-.87c-.55-.96-1.33-1.33-2.4-1.33-1.51 0-2.48.96-2.48 2.23 0 1.38.81 2.03 2.03 2.55l.42.18c.78.34 1.24.55 1.24 1.13 0 .48-.45.83-1.15.83-.83 0-1.31-.43-1.67-1.03l-1.38.8M13 11.25H8v1.5h1.5V20h1.75v-7.25H13v-1.5z"})}),_Oe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M14.23 12.004a2.236 2.236 0 01-2.235 2.236 2.236 2.236 0 01-2.236-2.236 2.236 2.236 0 012.235-2.236 2.236 2.236 0 012.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38a2.167 2.167 0 00-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44a23.476 23.476 0 00-3.107-.534A23.892 23.892 0 0012.769 4.7c1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442a22.73 22.73 0 00-3.113.538 15.02 15.02 0 01-.254-1.42c-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87a25.64 25.64 0 01-4.412.005 26.64 26.64 0 01-1.183-1.86c-.372-.64-.71-1.29-1.018-1.946a25.17 25.17 0 011.013-1.954c.38-.66.773-1.286 1.18-1.868A25.245 25.245 0 0112 8.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933a25.952 25.952 0 00-1.345-2.32zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493a23.966 23.966 0 00-1.1-2.98c.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98a23.142 23.142 0 00-1.086 2.964c-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39a25.819 25.819 0 001.341-2.338zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143a22.005 22.005 0 01-2.006-.386c.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295a1.185 1.185 0 01-.553-.132c-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})}),POe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M10.354 21.125a4.44 4.44 0 01-4.765-1.767 4.109 4.109 0 01-.703-3.107 3.898 3.898 0 01.134-.522l.105-.321.287.21a7.21 7.21 0 002.186 1.092l.208.063-.02.208a1.253 1.253 0 00.226.83 1.337 1.337 0 001.435.533 1.231 1.231 0 00.343-.15l5.59-3.562a1.164 1.164 0 00.524-.778 1.242 1.242 0 00-.211-.937 1.338 1.338 0 00-1.435-.533 1.23 1.23 0 00-.343.15l-2.133 1.36a4.078 4.078 0 01-1.135.499 4.44 4.44 0 01-4.765-1.766 4.108 4.108 0 01-.702-3.108 3.855 3.855 0 011.742-2.582l5.589-3.563a4.072 4.072 0 011.135-.499 4.44 4.44 0 014.765 1.767 4.109 4.109 0 01.703 3.107 3.943 3.943 0 01-.134.522l-.105.321-.286-.21a7.204 7.204 0 00-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 00-.226-.831 1.337 1.337 0 00-1.435-.532 1.231 1.231 0 00-.343.15L8.62 9.368a1.162 1.162 0 00-.524.778 1.24 1.24 0 00.211.937 1.338 1.338 0 001.435.533 1.235 1.235 0 00.344-.151l2.132-1.36a4.067 4.067 0 011.135-.498 4.44 4.44 0 014.765 1.766 4.108 4.108 0 01.702 3.108 3.857 3.857 0 01-1.742 2.583l-5.589 3.562a4.072 4.072 0 01-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 00-2.896 4.295 6.753 6.753 0 00.666 4.336 6.43 6.43 0 00-.96 2.396 6.833 6.833 0 001.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 002.896-4.295 6.756 6.756 0 00-.665-4.336 6.429 6.429 0 00.958-2.396 6.831 6.831 0 00-1.167-5.168z"})}),COe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M4.136 3.012h15.729l-1.431 16.15-6.451 1.826-6.414-1.826-1.433-16.15zm5.266 7.302l-.173-2.035 7.533.002.173-1.963-9.87-.002.522 5.998h6.835l-.243 2.566-2.179.602-2.214-.605-.141-1.58H7.691l.247 3.123L12 17.506l4.028-1.08.558-6.111H9.402v-.001z"})}),EOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M4.192 3.143h15.615l-1.42 16.034-6.404 1.812-6.369-1.813L4.192 3.143zM16.9 6.424l-9.8-.002.158 1.949 7.529.002-.189 2.02H9.66l.179 1.913h4.597l-.272 2.62-2.164.598-2.197-.603-.141-1.569h-1.94l.216 2.867L12 17.484l3.995-1.137.905-9.923z"})}),TOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M5 3h2v2H5v5a2 2 0 01-2 2 2 2 0 012 2v5h2v2H5c-1.07-.27-2-.9-2-2v-4a2 2 0 00-2-2H0v-2h1a2 2 0 002-2V5a2 2 0 012-2m14 0a2 2 0 012 2v4a2 2 0 002 2h1v2h-1a2 2 0 00-2 2v4a2 2 0 01-2 2h-2v-2h2v-5a2 2 0 012-2 2 2 0 01-2-2V5h-2V3h2m-7 12a1 1 0 011 1 1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1m-4 0a1 1 0 011 1 1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1m8 0a1 1 0 011 1 1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1z"})}),ROe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M20.56 18H3.44C2.65 18 2 17.37 2 16.59V7.41C2 6.63 2.65 6 3.44 6h17.12c.79 0 1.44.63 1.44 1.41v9.18c0 .78-.65 1.41-1.44 1.41M6.81 15.19v-3.66l1.92 2.35 1.92-2.35v3.66h1.93V8.81h-1.93l-1.92 2.35-1.92-2.35H4.89v6.38h1.92M19.69 12h-1.92V8.81h-1.92V12h-1.93l2.89 3.28L19.69 12z"})}),AOe=()=>q.jsx("svg",{fill:"#000000",height:"24",width:"24",stroke:"currentColor",version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",enableBackground:"new 0 0 512 512",children:q.jsx("g",{children:q.jsxs("g",{children:[q.jsx("path",{fill:"currentColor",d:"m439.5,236c0-11.3-9.1-20.4-20.4-20.4s-20.4,9.1-20.4,20.4c0,70-64,126.9-142.7,126.9-78.7,0-142.7-56.9-142.7-126.9 0-11.3-9.1-20.4-20.4-20.4s-20.4,9.1-20.4,20.4c0,86.2 71.5,157.4 163.1,166.7v57.5h-23.6c-11.3,0-20.4,9.1-20.4,20.4 0,11.3 9.1,20.4 20.4,20.4h88c11.3,0 20.4-9.1 20.4-20.4 0-11.3-9.1-20.4-20.4-20.4h-23.6v-57.5c91.6-9.3 163.1-80.5 163.1-166.7z"}),q.jsx("path",{fill:"currentColor",d:"m256,323.5c51,0 92.3-41.3 92.3-92.3v-127.9c0-51-41.3-92.3-92.3-92.3s-92.3,41.3-92.3,92.3v127.9c0,51 41.3,92.3 92.3,92.3zm-52.3-220.2c0-28.8 23.5-52.3 52.3-52.3s52.3,23.5 52.3,52.3v127.9c0,28.8-23.5,52.3-52.3,52.3s-52.3-23.5-52.3-52.3v-127.9z"})]})})}),MOe=()=>q.jsx("svg",{fill:"#000000",height:"24",width:"24",stroke:"currentColor",version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",enableBackground:"new 0 0 512 512",children:q.jsx("g",{children:q.jsxs("g",{children:[q.jsx("path",{fill:"currentColor",d:"m439.5,236c0-11.3-9.1-20.4-20.4-20.4s-20.4,9.1-20.4,20.4c0,70-64,126.9-142.7,126.9-78.7,0-142.7-56.9-142.7-126.9 0-11.3-9.1-20.4-20.4-20.4s-20.4,9.1-20.4,20.4c0,86.2 71.5,157.4 163.1,166.7v57.5h-23.6c-11.3,0-20.4,9.1-20.4,20.4 0,11.3 9.1,20.4 20.4,20.4h88c11.3,0 20.4-9.1 20.4-20.4 0-11.3-9.1-20.4-20.4-20.4h-23.6v-57.5c91.6-9.3 163.1-80.5 163.1-166.7z"}),q.jsx("path",{fill:"currentColor",d:"m256,323.5c51,0 92.3-41.3 92.3-92.3v-127.9c0-51-41.3-92.3-92.3-92.3s-92.3,41.3-92.3,92.3v127.9c0,51 41.3,92.3 92.3,92.3zm-52.3-220.2c0-28.8 23.5-52.3 52.3-52.3s52.3,23.5 52.3,52.3v127.9c0,28.8-23.5,52.3-52.3,52.3s-52.3-23.5-52.3-52.3v-127.9z"}),q.jsx("line",{x1:"100",y1:"100",x2:"412",y2:"412",stroke:"currentColor",strokeWidth:"40",strokeLinecap:"round"})]})})}),DOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",width:32,height:32,children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})}),ez=t=>(t.children&&(t.children.sort((e,n)=>{const r=e.file?1:0,i=n.file?1:0;return r-i||e.name.localeCompare(n.name)}),t.children.forEach(ez)),t);function IOe(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $Oe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NOe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,LOe={};function Gj(t,e){return(LOe.jsx?NOe:$Oe).test(t)}const jOe=/[ \t\n\f\r]/g;function QOe(t){return typeof t=="object"?t.type==="text"?Kj(t.value):!1:Kj(t)}function Kj(t){return t.replace(jOe,"")===""}class ig{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}ig.prototype.normal={};ig.prototype.property={};ig.prototype.space=void 0;function tz(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new ig(n,r,e)}function oC(t){return t.toLowerCase()}class Xo{constructor(e,n){this.attribute=n,this.property=e}}Xo.prototype.attribute="";Xo.prototype.booleanish=!1;Xo.prototype.boolean=!1;Xo.prototype.commaOrSpaceSeparated=!1;Xo.prototype.commaSeparated=!1;Xo.prototype.defined=!1;Xo.prototype.mustUseProperty=!1;Xo.prototype.number=!1;Xo.prototype.overloadedBoolean=!1;Xo.prototype.property="";Xo.prototype.spaceSeparated=!1;Xo.prototype.space=void 0;let FOe=0;const Mn=af(),ai=af(),sC=af(),St=af(),_r=af(),Ed=af(),rs=af();function af(){return 2**++FOe}const aC=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mn,booleanish:ai,commaOrSpaceSeparated:rs,commaSeparated:Ed,number:St,overloadedBoolean:sC,spaceSeparated:_r},Symbol.toStringTag,{value:"Module"})),dx=Object.keys(aC);class VT extends Xo{constructor(e,n,r,i){let o=-1;if(super(e,n),Jj(this,"space",i),typeof r=="number")for(;++o<dx.length;){const s=dx[o];Jj(this,dx[o],(r&aC[s])===aC[s])}}}VT.prototype.defined=!0;function Jj(t,e,n){n&&(t[e]=n)}function ah(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const o=new VT(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[oC(r)]=r,n[oC(o.attribute)]=r}return new ig(e,n,t.space)}const nz=ah({properties:{ariaActiveDescendant:null,ariaAtomic:ai,ariaAutoComplete:null,ariaBusy:ai,ariaChecked:ai,ariaColCount:St,ariaColIndex:St,ariaColSpan:St,ariaControls:_r,ariaCurrent:null,ariaDescribedBy:_r,ariaDetails:null,ariaDisabled:ai,ariaDropEffect:_r,ariaErrorMessage:null,ariaExpanded:ai,ariaFlowTo:_r,ariaGrabbed:ai,ariaHasPopup:null,ariaHidden:ai,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_r,ariaLevel:St,ariaLive:null,ariaModal:ai,ariaMultiLine:ai,ariaMultiSelectable:ai,ariaOrientation:null,ariaOwns:_r,ariaPlaceholder:null,ariaPosInSet:St,ariaPressed:ai,ariaReadOnly:ai,ariaRelevant:null,ariaRequired:ai,ariaRoleDescription:_r,ariaRowCount:St,ariaRowIndex:St,ariaRowSpan:St,ariaSelected:ai,ariaSetSize:St,ariaSort:null,ariaValueMax:St,ariaValueMin:St,ariaValueNow:St,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function rz(t,e){return e in t?t[e]:e}function iz(t,e){return rz(t,e.toLowerCase())}const BOe=ah({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ed,acceptCharset:_r,accessKey:_r,action:null,allow:null,allowFullScreen:Mn,allowPaymentRequest:Mn,allowUserMedia:Mn,alt:null,as:null,async:Mn,autoCapitalize:null,autoComplete:_r,autoFocus:Mn,autoPlay:Mn,blocking:_r,capture:null,charSet:null,checked:Mn,cite:null,className:_r,cols:St,colSpan:null,content:null,contentEditable:ai,controls:Mn,controlsList:_r,coords:St|Ed,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mn,defer:Mn,dir:null,dirName:null,disabled:Mn,download:sC,draggable:ai,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mn,formTarget:null,headers:_r,height:St,hidden:sC,high:St,href:null,hrefLang:null,htmlFor:_r,httpEquiv:_r,id:null,imageSizes:null,imageSrcSet:null,inert:Mn,inputMode:null,integrity:null,is:null,isMap:Mn,itemId:null,itemProp:_r,itemRef:_r,itemScope:Mn,itemType:_r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mn,low:St,manifest:null,max:null,maxLength:St,media:null,method:null,min:null,minLength:St,multiple:Mn,muted:Mn,name:null,nonce:null,noModule:Mn,noValidate:Mn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Mn,optimum:St,pattern:null,ping:_r,placeholder:null,playsInline:Mn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mn,referrerPolicy:null,rel:_r,required:Mn,reversed:Mn,rows:St,rowSpan:St,sandbox:_r,scope:null,scoped:Mn,seamless:Mn,selected:Mn,shadowRootClonable:Mn,shadowRootDelegatesFocus:Mn,shadowRootMode:null,shape:null,size:St,sizes:null,slot:null,span:St,spellCheck:ai,src:null,srcDoc:null,srcLang:null,srcSet:null,start:St,step:null,style:null,tabIndex:St,target:null,title:null,translate:null,type:null,typeMustMatch:Mn,useMap:null,value:ai,width:St,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_r,axis:null,background:null,bgColor:null,border:St,borderColor:null,bottomMargin:St,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mn,declare:Mn,event:null,face:null,frame:null,frameBorder:null,hSpace:St,leftMargin:St,link:null,longDesc:null,lowSrc:null,marginHeight:St,marginWidth:St,noResize:Mn,noHref:Mn,noShade:Mn,noWrap:Mn,object:null,profile:null,prompt:null,rev:null,rightMargin:St,rules:null,scheme:null,scrolling:ai,standby:null,summary:null,text:null,topMargin:St,valueType:null,version:null,vAlign:null,vLink:null,vSpace:St,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mn,disableRemotePlayback:Mn,prefix:null,property:null,results:St,security:null,unselectable:null},space:"html",transform:iz}),UOe=ah({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:rs,accentHeight:St,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:St,amplitude:St,arabicForm:null,ascent:St,attributeName:null,attributeType:null,azimuth:St,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:St,by:null,calcMode:null,capHeight:St,className:_r,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:St,diffuseConstant:St,direction:null,display:null,dur:null,divisor:St,dominantBaseline:null,download:Mn,dx:null,dy:null,edgeMode:null,editable:null,elevation:St,enableBackground:null,end:null,event:null,exponent:St,externalResourcesRequired:null,fill:null,fillOpacity:St,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ed,g2:Ed,glyphName:Ed,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:St,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:St,horizOriginX:St,horizOriginY:St,id:null,ideographic:St,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:St,k:St,k1:St,k2:St,k3:St,k4:St,kernelMatrix:rs,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:St,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:St,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:St,overlineThickness:St,paintOrder:null,panose1:null,path:null,pathLength:St,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:St,pointsAtY:St,pointsAtZ:St,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rs,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rs,rev:rs,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rs,requiredFeatures:rs,requiredFonts:rs,requiredFormats:rs,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:St,specularExponent:St,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:St,strikethroughThickness:St,string:null,stroke:null,strokeDashArray:rs,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:St,strokeOpacity:St,strokeWidth:null,style:null,surfaceScale:St,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rs,tabIndex:St,tableValues:null,target:null,targetX:St,targetY:St,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rs,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:St,underlineThickness:St,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:St,values:null,vAlphabetic:St,vMathematical:St,vectorEffect:null,vHanging:St,vIdeographic:St,version:null,vertAdvY:St,vertOriginX:St,vertOriginY:St,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:St,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:rz}),oz=ah({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),sz=ah({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:iz}),az=ah({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),qOe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},VOe=/[A-Z]/g,e3=/-[a-z]/g,zOe=/^data[-\w.:]+$/i;function WOe(t,e){const n=oC(e);let r=e,i=Xo;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&zOe.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(e3,XOe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!e3.test(o)){let s=o.replace(VOe,ZOe);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=VT}return new i(r,e)}function ZOe(t){return"-"+t.toLowerCase()}function XOe(t){return t.charAt(1).toUpperCase()}const HOe=tz([nz,BOe,oz,sz,az],"html"),zT=tz([nz,UOe,oz,sz,az],"svg");function YOe(t){return t.join(" ").trim()}var Wf={},hx,t3;function GOe(){if(t3)return hx;t3=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
231
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStateFromProps=="function"&&(e.componentWillMount=zV,e.componentWillReceiveProps=WV),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=ZV;var a=e.componentDidUpdate;e.componentDidUpdate=function(u,c,f){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;a.call(this,u,c,d)}}return t}var Qye="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function XV(t,e,n){n===void 0&&(n=[]);var r=t.displayName||t.name||"Component",i=Iye(t),o=Object.keys(e),s=o.map(Cd);i||!n.length||Aye(!1);var a=function(u){QV(c,u);function c(){for(var d,h=arguments.length,p=new Array(h),g=0;g<h;g++)p[g]=arguments[g];d=u.call.apply(u,[this].concat(p))||this,d.handlers=Object.create(null),o.forEach(function(O){var b=e[O],S=function(x){if(d.props[b]){var _;d._notifying=!0;for(var I=arguments.length,M=new Array(I>1?I-1:0),P=1;P<I;P++)M[P-1]=arguments[P];(_=d.props)[b].apply(_,[x].concat(M)),d._notifying=!1}d.unmounted||d.setState(function(E){var R,T=E.values;return{values:fi(Object.create(null),T,(R={},R[O]=x,R))}})};d.handlers[b]=S}),n.length&&(d.attachRef=function(O){d.inner=O});var y=Object.create(null);return o.forEach(function(O){y[O]=d.props[Cd(O)]}),d.state={values:y,prevProps:{}},d}var f=c.prototype;return f.shouldComponentUpdate=function(){return!this._notifying},c.getDerivedStateFromProps=function(h,p){var g=p.values,y=p.prevProps,O={values:fi(Object.create(null),g),prevProps:{}};return o.forEach(function(b){O.prevProps[b]=h[b],!Aj(h,b)&&Aj(y,b)&&(O.values[b]=h[Cd(b)])}),O},f.componentWillUnmount=function(){this.unmounted=!0},f.render=function(){var h=this,p=this.props,g=p.innerRef,y=UT(p,["innerRef"]);s.forEach(function(b){delete y[b]});var O={};return o.forEach(function(b){var S=h.props[b];O[b]=S!==void 0?S:h.state.values[b]}),Or.createElement(t,fi({},y,O,this.handlers,{ref:g||this.attachRef}))},c}(Or.Component);jye(a),a.displayName="Uncontrolled("+r+")",a.propTypes=fi({innerRef:function(){}},Dye(e)),n.forEach(function(u){a.prototype[u]=function(){var f;return(f=this.inner)[u].apply(f,arguments)}});var l=a;return Or.forwardRef&&(l=Or.forwardRef(function(u,c){return Or.createElement(a,fi({},u,{innerRef:c,__source:{fileName:Qye,lineNumber:128},__self:this}))}),l.propTypes=a.propTypes),l.ControlledComponent=t,l.deferControlTo=function(u,c,f){return c===void 0&&(c={}),XV(u,fi({},e,c),f)},l}const Fye=Object.freeze(Object.defineProperty({__proto__:null,uncontrollable:XV,useUncontrolled:Lye,useUncontrolledProp:VV},Symbol.toStringTag,{value:"Module"})),Bye=qi(Fye);var Iv={exports:{}},up={},$v={},Mj;function Uye(){if(Mj)return $v;Mj=1,$v.__esModule=!0,$v.default=e;var t=jt();function e(){return(0,t.useState)(null)}return $v}var cp={},fx={},Dj;function qye(){if(Dj)return fx;Dj=1;var t=Object.prototype.hasOwnProperty;function e(r,i,o){for(o of r.keys())if(n(o,i))return o}function n(r,i){var o,s,a;if(r===i)return!0;if(r&&i&&(o=r.constructor)===i.constructor){if(o===Date)return r.getTime()===i.getTime();if(o===RegExp)return r.toString()===i.toString();if(o===Array){if((s=r.length)===i.length)for(;s--&&n(r[s],i[s]););return s===-1}if(o===Set){if(r.size!==i.size)return!1;for(s of r)if(a=s,a&&typeof a=="object"&&(a=e(i,a),!a)||!i.has(a))return!1;return!0}if(o===Map){if(r.size!==i.size)return!1;for(s of r)if(a=s[0],a&&typeof a=="object"&&(a=e(i,a),!a)||!n(s[1],i.get(a)))return!1;return!0}if(o===ArrayBuffer)r=new Uint8Array(r),i=new Uint8Array(i);else if(o===DataView){if((s=r.byteLength)===i.byteLength)for(;s--&&r.getInt8(s)===i.getInt8(s););return s===-1}if(ArrayBuffer.isView(r)){if((s=r.byteLength)===i.byteLength)for(;s--&&r[s]===i[s];);return s===-1}if(!o||typeof r=="object"){s=0;for(o in r)if(t.call(r,o)&&++s&&!t.call(i,o)||!(o in i)||!n(r[o],i[o]))return!1;return Object.keys(i).length===s}}return r!==r&&i!==i}return fx.dequal=n,fx}var fp={},Ij;function Vye(){if(Ij)return fp;Ij=1,fp.__esModule=!0,fp.default=void 0;var t=jt(),e=n(DV());function n(o){return o&&o.__esModule?o:{default:o}}function r(o){const s=(0,e.default)();return[o[0],(0,t.useCallback)(a=>{if(s())return o[1](a)},[s,o[1]])]}var i=r;return fp.default=i,fp}var Nv={},$j;function zye(){if($j)return Nv;$j=1;var t="top",e="bottom",n="right",r="left",i="auto",o=[t,e,n,r],s="start",a="end",l="clippingParents",u="viewport",c="popper",f="reference",d=o.reduce(function(ce,le){return ce.concat([le+"-"+s,le+"-"+a])},[]),h=[].concat(o,[i]).reduce(function(ce,le){return ce.concat([le,le+"-"+s,le+"-"+a])},[]),p="beforeRead",g="read",y="afterRead",O="beforeMain",b="main",S="afterMain",k="beforeWrite",x="write",_="afterWrite",I=[p,g,y,O,b,S,k,x,_];function M(ce){return ce.split("-")[0]}function P(ce){if(ce==null)return window;if(ce.toString()!=="[object Window]"){var le=ce.ownerDocument;return le&&le.defaultView||window}return ce}function E(ce){var le=P(ce).Element;return ce instanceof le||ce instanceof Element}function R(ce){var le=P(ce).HTMLElement;return ce instanceof le||ce instanceof HTMLElement}function T(ce){if(typeof ShadowRoot>"u")return!1;var le=P(ce).ShadowRoot;return ce instanceof le||ce instanceof ShadowRoot}var L=Math.max,A=Math.min,H=Math.round;function W(){var ce=navigator.userAgentData;return ce!=null&&ce.brands&&Array.isArray(ce.brands)?ce.brands.map(function(le){return le.brand+"/"+le.version}).join(" "):navigator.userAgent}function Z(){return!/^((?!chrome|android).)*safari/i.test(W())}function G(ce,le,Oe){le===void 0&&(le=!1),Oe===void 0&&(Oe=!1);var Xe=ce.getBoundingClientRect(),Ae=1,ze=1;le&&R(ce)&&(Ae=ce.offsetWidth>0&&H(Xe.width)/ce.offsetWidth||1,ze=ce.offsetHeight>0&&H(Xe.height)/ce.offsetHeight||1);var bt=E(ce)?P(ce):window,ot=bt.visualViewport,yt=!Z()&&Oe,Vt=(Xe.left+(yt&&ot?ot.offsetLeft:0))/Ae,At=(Xe.top+(yt&&ot?ot.offsetTop:0))/ze,Cn=Xe.width/Ae,jn=Xe.height/ze;return{width:Cn,height:jn,top:At,right:Vt+Cn,bottom:At+jn,left:Vt,x:Vt,y:At}}function K(ce){var le=G(ce),Oe=ce.offsetWidth,Xe=ce.offsetHeight;return Math.abs(le.width-Oe)<=1&&(Oe=le.width),Math.abs(le.height-Xe)<=1&&(Xe=le.height),{x:ce.offsetLeft,y:ce.offsetTop,width:Oe,height:Xe}}function U(ce,le){var Oe=le.getRootNode&&le.getRootNode();if(ce.contains(le))return!0;if(Oe&&T(Oe)){var Xe=le;do{if(Xe&&ce.isSameNode(Xe))return!0;Xe=Xe.parentNode||Xe.host}while(Xe)}return!1}function B(ce){return ce?(ce.nodeName||"").toLowerCase():null}function Y(ce){return P(ce).getComputedStyle(ce)}function j(ce){return["table","td","th"].indexOf(B(ce))>=0}function ne(ce){return((E(ce)?ce.ownerDocument:ce.document)||window.document).documentElement}function ee(ce){return B(ce)==="html"?ce:ce.assignedSlot||ce.parentNode||(T(ce)?ce.host:null)||ne(ce)}function ue(ce){return!R(ce)||Y(ce).position==="fixed"?null:ce.offsetParent}function z(ce){var le=/firefox/i.test(W()),Oe=/Trident/i.test(W());if(Oe&&R(ce)){var Xe=Y(ce);if(Xe.position==="fixed")return null}var Ae=ee(ce);for(T(Ae)&&(Ae=Ae.host);R(Ae)&&["html","body"].indexOf(B(Ae))<0;){var ze=Y(Ae);if(ze.transform!=="none"||ze.perspective!=="none"||ze.contain==="paint"||["transform","perspective"].indexOf(ze.willChange)!==-1||le&&ze.willChange==="filter"||le&&ze.filter&&ze.filter!=="none")return Ae;Ae=Ae.parentNode}return null}function X(ce){for(var le=P(ce),Oe=ue(ce);Oe&&j(Oe)&&Y(Oe).position==="static";)Oe=ue(Oe);return Oe&&(B(Oe)==="html"||B(Oe)==="body"&&Y(Oe).position==="static")?le:Oe||z(ce)||le}function J(ce){return["top","bottom"].indexOf(ce)>=0?"x":"y"}function fe(ce,le,Oe){return L(ce,A(le,Oe))}function we(ce,le,Oe){var Xe=fe(ce,le,Oe);return Xe>Oe?Oe:Xe}function Te(){return{top:0,right:0,bottom:0,left:0}}function Re(ce){return Object.assign({},Te(),ce)}function Q(ce,le){return le.reduce(function(Oe,Xe){return Oe[Xe]=ce,Oe},{})}var ve=function(le,Oe){return le=typeof le=="function"?le(Object.assign({},Oe.rects,{placement:Oe.placement})):le,Re(typeof le!="number"?le:Q(le,o))};function ge(ce){var le,Oe=ce.state,Xe=ce.name,Ae=ce.options,ze=Oe.elements.arrow,bt=Oe.modifiersData.popperOffsets,ot=M(Oe.placement),yt=J(ot),Vt=[r,n].indexOf(ot)>=0,At=Vt?"height":"width";if(!(!ze||!bt)){var Cn=ve(Ae.padding,Oe),jn=K(ze),tn=yt==="y"?t:r,Sn=yt==="y"?e:n,Pn=Oe.rects.reference[At]+Oe.rects.reference[yt]-bt[yt]-Oe.rects.popper[At],Qt=bt[yt]-Oe.rects.reference[yt],fn=X(ze),Mn=fn?yt==="y"?fn.clientHeight||0:fn.clientWidth||0:0,Fn=Pn/2-Qt/2,Ft=Cn[tn],Bn=Mn-jn[At]-Cn[Sn],In=Mn/2-jn[At]/2+Fn,dn=fe(Ft,In,Bn),Xr=yt;Oe.modifiersData[Xe]=(le={},le[Xr]=dn,le.centerOffset=dn-In,le)}}function ie(ce){var le=ce.state,Oe=ce.options,Xe=Oe.element,Ae=Xe===void 0?"[data-popper-arrow]":Xe;Ae!=null&&(typeof Ae=="string"&&(Ae=le.elements.popper.querySelector(Ae),!Ae)||U(le.elements.popper,Ae)&&(le.elements.arrow=Ae))}var oe={name:"arrow",enabled:!0,phase:"main",fn:ge,effect:ie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function me(ce){return ce.split("-")[1]}var $e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fe(ce,le){var Oe=ce.x,Xe=ce.y,Ae=le.devicePixelRatio||1;return{x:H(Oe*Ae)/Ae||0,y:H(Xe*Ae)/Ae||0}}function Pe(ce){var le,Oe=ce.popper,Xe=ce.popperRect,Ae=ce.placement,ze=ce.variation,bt=ce.offsets,ot=ce.position,yt=ce.gpuAcceleration,Vt=ce.adaptive,At=ce.roundOffsets,Cn=ce.isFixed,jn=bt.x,tn=jn===void 0?0:jn,Sn=bt.y,Pn=Sn===void 0?0:Sn,Qt=typeof At=="function"?At({x:tn,y:Pn}):{x:tn,y:Pn};tn=Qt.x,Pn=Qt.y;var fn=bt.hasOwnProperty("x"),Mn=bt.hasOwnProperty("y"),Fn=r,Ft=t,Bn=window;if(Vt){var In=X(Oe),dn="clientHeight",Xr="clientWidth";if(In===P(Oe)&&(In=ne(Oe),Y(In).position!=="static"&&ot==="absolute"&&(dn="scrollHeight",Xr="scrollWidth")),In=In,Ae===t||(Ae===r||Ae===n)&&ze===a){Ft=e;var jr=Cn&&In===Bn&&Bn.visualViewport?Bn.visualViewport.height:In[dn];Pn-=jr-Xe.height,Pn*=yt?1:-1}if(Ae===r||(Ae===t||Ae===e)&&ze===a){Fn=n;var gr=Cn&&In===Bn&&Bn.visualViewport?Bn.visualViewport.width:In[Xr];tn-=gr-Xe.width,tn*=yt?1:-1}}var Hr=Object.assign({position:ot},Vt&&$e),zi=At===!0?Fe({x:tn,y:Pn},P(Oe)):{x:tn,y:Pn};if(tn=zi.x,Pn=zi.y,yt){var ei;return Object.assign({},Hr,(ei={},ei[Ft]=Mn?"0":"",ei[Fn]=fn?"0":"",ei.transform=(Bn.devicePixelRatio||1)<=1?"translate("+tn+"px, "+Pn+"px)":"translate3d("+tn+"px, "+Pn+"px, 0)",ei))}return Object.assign({},Hr,(le={},le[Ft]=Mn?Pn+"px":"",le[Fn]=fn?tn+"px":"",le.transform="",le))}function V(ce){var le=ce.state,Oe=ce.options,Xe=Oe.gpuAcceleration,Ae=Xe===void 0?!0:Xe,ze=Oe.adaptive,bt=ze===void 0?!0:ze,ot=Oe.roundOffsets,yt=ot===void 0?!0:ot,Vt={placement:M(le.placement),variation:me(le.placement),popper:le.elements.popper,popperRect:le.rects.popper,gpuAcceleration:Ae,isFixed:le.options.strategy==="fixed"};le.modifiersData.popperOffsets!=null&&(le.styles.popper=Object.assign({},le.styles.popper,Pe(Object.assign({},Vt,{offsets:le.modifiersData.popperOffsets,position:le.options.strategy,adaptive:bt,roundOffsets:yt})))),le.modifiersData.arrow!=null&&(le.styles.arrow=Object.assign({},le.styles.arrow,Pe(Object.assign({},Vt,{offsets:le.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:yt})))),le.attributes.popper=Object.assign({},le.attributes.popper,{"data-popper-placement":le.placement})}var ye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:V,data:{}},_e={passive:!0};function de(ce){var le=ce.state,Oe=ce.instance,Xe=ce.options,Ae=Xe.scroll,ze=Ae===void 0?!0:Ae,bt=Xe.resize,ot=bt===void 0?!0:bt,yt=P(le.elements.popper),Vt=[].concat(le.scrollParents.reference,le.scrollParents.popper);return ze&&Vt.forEach(function(At){At.addEventListener("scroll",Oe.update,_e)}),ot&&yt.addEventListener("resize",Oe.update,_e),function(){ze&&Vt.forEach(function(At){At.removeEventListener("scroll",Oe.update,_e)}),ot&&yt.removeEventListener("resize",Oe.update,_e)}}var Se={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:de,data:{}},Me={left:"right",right:"left",bottom:"top",top:"bottom"};function et(ce){return ce.replace(/left|right|bottom|top/g,function(le){return Me[le]})}var st={start:"end",end:"start"};function Le(ce){return ce.replace(/start|end/g,function(le){return st[le]})}function at(ce){var le=P(ce),Oe=le.pageXOffset,Xe=le.pageYOffset;return{scrollLeft:Oe,scrollTop:Xe}}function We(ce){return G(ne(ce)).left+at(ce).scrollLeft}function dt(ce,le){var Oe=P(ce),Xe=ne(ce),Ae=Oe.visualViewport,ze=Xe.clientWidth,bt=Xe.clientHeight,ot=0,yt=0;if(Ae){ze=Ae.width,bt=Ae.height;var Vt=Z();(Vt||!Vt&&le==="fixed")&&(ot=Ae.offsetLeft,yt=Ae.offsetTop)}return{width:ze,height:bt,x:ot+We(ce),y:yt}}function wt(ce){var le,Oe=ne(ce),Xe=at(ce),Ae=(le=ce.ownerDocument)==null?void 0:le.body,ze=L(Oe.scrollWidth,Oe.clientWidth,Ae?Ae.scrollWidth:0,Ae?Ae.clientWidth:0),bt=L(Oe.scrollHeight,Oe.clientHeight,Ae?Ae.scrollHeight:0,Ae?Ae.clientHeight:0),ot=-Xe.scrollLeft+We(ce),yt=-Xe.scrollTop;return Y(Ae||Oe).direction==="rtl"&&(ot+=L(Oe.clientWidth,Ae?Ae.clientWidth:0)-ze),{width:ze,height:bt,x:ot,y:yt}}function pt(ce){var le=Y(ce),Oe=le.overflow,Xe=le.overflowX,Ae=le.overflowY;return/auto|scroll|overlay|hidden/.test(Oe+Ae+Xe)}function It(ce){return["html","body","#document"].indexOf(B(ce))>=0?ce.ownerDocument.body:R(ce)&&pt(ce)?ce:It(ee(ce))}function nt(ce,le){var Oe;le===void 0&&(le=[]);var Xe=It(ce),Ae=Xe===((Oe=ce.ownerDocument)==null?void 0:Oe.body),ze=P(Xe),bt=Ae?[ze].concat(ze.visualViewport||[],pt(Xe)?Xe:[]):Xe,ot=le.concat(bt);return Ae?ot:ot.concat(nt(ee(bt)))}function Rt(ce){return Object.assign({},ce,{left:ce.x,top:ce.y,right:ce.x+ce.width,bottom:ce.y+ce.height})}function un(ce,le){var Oe=G(ce,!1,le==="fixed");return Oe.top=Oe.top+ce.clientTop,Oe.left=Oe.left+ce.clientLeft,Oe.bottom=Oe.top+ce.clientHeight,Oe.right=Oe.left+ce.clientWidth,Oe.width=ce.clientWidth,Oe.height=ce.clientHeight,Oe.x=Oe.left,Oe.y=Oe.top,Oe}function Tt(ce,le,Oe){return le===u?Rt(dt(ce,Oe)):E(le)?un(le,Oe):Rt(wt(ne(ce)))}function qt(ce){var le=nt(ee(ce)),Oe=["absolute","fixed"].indexOf(Y(ce).position)>=0,Xe=Oe&&R(ce)?X(ce):ce;return E(Xe)?le.filter(function(Ae){return E(Ae)&&U(Ae,Xe)&&B(Ae)!=="body"}):[]}function On(ce,le,Oe,Xe){var Ae=le==="clippingParents"?qt(ce):[].concat(le),ze=[].concat(Ae,[Oe]),bt=ze[0],ot=ze.reduce(function(yt,Vt){var At=Tt(ce,Vt,Xe);return yt.top=L(At.top,yt.top),yt.right=A(At.right,yt.right),yt.bottom=A(At.bottom,yt.bottom),yt.left=L(At.left,yt.left),yt},Tt(ce,bt,Xe));return ot.width=ot.right-ot.left,ot.height=ot.bottom-ot.top,ot.x=ot.left,ot.y=ot.top,ot}function Tn(ce){var le=ce.reference,Oe=ce.element,Xe=ce.placement,Ae=Xe?M(Xe):null,ze=Xe?me(Xe):null,bt=le.x+le.width/2-Oe.width/2,ot=le.y+le.height/2-Oe.height/2,yt;switch(Ae){case t:yt={x:bt,y:le.y-Oe.height};break;case e:yt={x:bt,y:le.y+le.height};break;case n:yt={x:le.x+le.width,y:ot};break;case r:yt={x:le.x-Oe.width,y:ot};break;default:yt={x:le.x,y:le.y}}var Vt=Ae?J(Ae):null;if(Vt!=null){var At=Vt==="y"?"height":"width";switch(ze){case s:yt[Vt]=yt[Vt]-(le[At]/2-Oe[At]/2);break;case a:yt[Vt]=yt[Vt]+(le[At]/2-Oe[At]/2);break}}return yt}function bn(ce,le){le===void 0&&(le={});var Oe=le,Xe=Oe.placement,Ae=Xe===void 0?ce.placement:Xe,ze=Oe.strategy,bt=ze===void 0?ce.strategy:ze,ot=Oe.boundary,yt=ot===void 0?l:ot,Vt=Oe.rootBoundary,At=Vt===void 0?u:Vt,Cn=Oe.elementContext,jn=Cn===void 0?c:Cn,tn=Oe.altBoundary,Sn=tn===void 0?!1:tn,Pn=Oe.padding,Qt=Pn===void 0?0:Pn,fn=Re(typeof Qt!="number"?Qt:Q(Qt,o)),Mn=jn===c?f:c,Fn=ce.rects.popper,Ft=ce.elements[Sn?Mn:jn],Bn=On(E(Ft)?Ft:Ft.contextElement||ne(ce.elements.popper),yt,At,bt),In=G(ce.elements.reference),dn=Tn({reference:In,element:Fn,placement:Ae}),Xr=Rt(Object.assign({},Fn,dn)),jr=jn===c?Xr:In,gr={top:Bn.top-jr.top+fn.top,bottom:jr.bottom-Bn.bottom+fn.bottom,left:Bn.left-jr.left+fn.left,right:jr.right-Bn.right+fn.right},Hr=ce.modifiersData.offset;if(jn===c&&Hr){var zi=Hr[Ae];Object.keys(gr).forEach(function(ei){var Wi=[n,e].indexOf(ei)>=0?1:-1,$i=[t,e].indexOf(ei)>=0?"y":"x";gr[ei]+=zi[$i]*Wi})}return gr}function Rn(ce,le){le===void 0&&(le={});var Oe=le,Xe=Oe.placement,Ae=Oe.boundary,ze=Oe.rootBoundary,bt=Oe.padding,ot=Oe.flipVariations,yt=Oe.allowedAutoPlacements,Vt=yt===void 0?h:yt,At=me(Xe),Cn=At?ot?d:d.filter(function(Sn){return me(Sn)===At}):o,jn=Cn.filter(function(Sn){return Vt.indexOf(Sn)>=0});jn.length===0&&(jn=Cn);var tn=jn.reduce(function(Sn,Pn){return Sn[Pn]=bn(ce,{placement:Pn,boundary:Ae,rootBoundary:ze,padding:bt})[M(Pn)],Sn},{});return Object.keys(tn).sort(function(Sn,Pn){return tn[Sn]-tn[Pn]})}function ir(ce){if(M(ce)===i)return[];var le=et(ce);return[Le(ce),le,Le(le)]}function pe(ce){var le=ce.state,Oe=ce.options,Xe=ce.name;if(!le.modifiersData[Xe]._skip){for(var Ae=Oe.mainAxis,ze=Ae===void 0?!0:Ae,bt=Oe.altAxis,ot=bt===void 0?!0:bt,yt=Oe.fallbackPlacements,Vt=Oe.padding,At=Oe.boundary,Cn=Oe.rootBoundary,jn=Oe.altBoundary,tn=Oe.flipVariations,Sn=tn===void 0?!0:tn,Pn=Oe.allowedAutoPlacements,Qt=le.options.placement,fn=M(Qt),Mn=fn===Qt,Fn=yt||(Mn||!Sn?[et(Qt)]:ir(Qt)),Ft=[Qt].concat(Fn).reduce(function(uo,ko){return uo.concat(M(ko)===i?Rn(le,{placement:ko,boundary:At,rootBoundary:Cn,padding:Vt,flipVariations:Sn,allowedAutoPlacements:Pn}):ko)},[]),Bn=le.rects.reference,In=le.rects.popper,dn=new Map,Xr=!0,jr=Ft[0],gr=0;gr<Ft.length;gr++){var Hr=Ft[gr],zi=M(Hr),ei=me(Hr)===s,Wi=[t,e].indexOf(zi)>=0,$i=Wi?"width":"height",Tr=bn(le,{placement:Hr,boundary:At,rootBoundary:Cn,altBoundary:jn,padding:Vt}),Qr=Wi?ei?n:r:ei?e:t;Bn[$i]>In[$i]&&(Qr=et(Qr));var ao=et(Qr),Zi=[];if(ze&&Zi.push(Tr[zi]<=0),ot&&Zi.push(Tr[Qr]<=0,Tr[ao]<=0),Zi.every(function(uo){return uo})){jr=Hr,Xr=!1;break}dn.set(Hr,Zi)}if(Xr)for(var ps=Sn?3:1,lo=function(ko){var Ns=Ft.find(function(xo){var ms=dn.get(xo);if(ms)return ms.slice(0,ko).every(function(Ql){return Ql})});if(Ns)return jr=Ns,"break"},tl=ps;tl>0;tl--){var da=lo(tl);if(da==="break")break}le.placement!==jr&&(le.modifiersData[Xe]._skip=!0,le.placement=jr,le.reset=!0)}}var Ee={name:"flip",enabled:!0,phase:"main",fn:pe,requiresIfExists:["offset"],data:{_skip:!1}};function De(ce,le,Oe){return Oe===void 0&&(Oe={x:0,y:0}),{top:ce.top-le.height-Oe.y,right:ce.right-le.width+Oe.x,bottom:ce.bottom-le.height+Oe.y,left:ce.left-le.width-Oe.x}}function rt(ce){return[t,n,e,r].some(function(le){return ce[le]>=0})}function ct(ce){var le=ce.state,Oe=ce.name,Xe=le.rects.reference,Ae=le.rects.popper,ze=le.modifiersData.preventOverflow,bt=bn(le,{elementContext:"reference"}),ot=bn(le,{altBoundary:!0}),yt=De(bt,Xe),Vt=De(ot,Ae,ze),At=rt(yt),Cn=rt(Vt);le.modifiersData[Oe]={referenceClippingOffsets:yt,popperEscapeOffsets:Vt,isReferenceHidden:At,hasPopperEscaped:Cn},le.attributes.popper=Object.assign({},le.attributes.popper,{"data-popper-reference-hidden":At,"data-popper-escaped":Cn})}var ht={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ct};function Ve(ce,le,Oe){var Xe=M(ce),Ae=[r,t].indexOf(Xe)>=0?-1:1,ze=typeof Oe=="function"?Oe(Object.assign({},le,{placement:ce})):Oe,bt=ze[0],ot=ze[1];return bt=bt||0,ot=(ot||0)*Ae,[r,n].indexOf(Xe)>=0?{x:ot,y:bt}:{x:bt,y:ot}}function Ye(ce){var le=ce.state,Oe=ce.options,Xe=ce.name,Ae=Oe.offset,ze=Ae===void 0?[0,0]:Ae,bt=h.reduce(function(At,Cn){return At[Cn]=Ve(Cn,le.rects,ze),At},{}),ot=bt[le.placement],yt=ot.x,Vt=ot.y;le.modifiersData.popperOffsets!=null&&(le.modifiersData.popperOffsets.x+=yt,le.modifiersData.popperOffsets.y+=Vt),le.modifiersData[Xe]=bt}var Je={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ye};function Ze(ce){var le=ce.state,Oe=ce.name;le.modifiersData[Oe]=Tn({reference:le.rects.reference,element:le.rects.popper,placement:le.placement})}var Ne={name:"popperOffsets",enabled:!0,phase:"read",fn:Ze,data:{}};function lt(ce){return ce==="x"?"y":"x"}function Pt(ce){var le=ce.state,Oe=ce.options,Xe=ce.name,Ae=Oe.mainAxis,ze=Ae===void 0?!0:Ae,bt=Oe.altAxis,ot=bt===void 0?!1:bt,yt=Oe.boundary,Vt=Oe.rootBoundary,At=Oe.altBoundary,Cn=Oe.padding,jn=Oe.tether,tn=jn===void 0?!0:jn,Sn=Oe.tetherOffset,Pn=Sn===void 0?0:Sn,Qt=bn(le,{boundary:yt,rootBoundary:Vt,padding:Cn,altBoundary:At}),fn=M(le.placement),Mn=me(le.placement),Fn=!Mn,Ft=J(fn),Bn=lt(Ft),In=le.modifiersData.popperOffsets,dn=le.rects.reference,Xr=le.rects.popper,jr=typeof Pn=="function"?Pn(Object.assign({},le.rects,{placement:le.placement})):Pn,gr=typeof jr=="number"?{mainAxis:jr,altAxis:jr}:Object.assign({mainAxis:0,altAxis:0},jr),Hr=le.modifiersData.offset?le.modifiersData.offset[le.placement]:null,zi={x:0,y:0};if(In){if(ze){var ei,Wi=Ft==="y"?t:r,$i=Ft==="y"?e:n,Tr=Ft==="y"?"height":"width",Qr=In[Ft],ao=Qr+Qt[Wi],Zi=Qr-Qt[$i],ps=tn?-Xr[Tr]/2:0,lo=Mn===s?dn[Tr]:Xr[Tr],tl=Mn===s?-Xr[Tr]:-dn[Tr],da=le.elements.arrow,uo=tn&&da?K(da):{width:0,height:0},ko=le.modifiersData["arrow#persistent"]?le.modifiersData["arrow#persistent"].padding:Te(),Ns=ko[Wi],xo=ko[$i],ms=fe(0,dn[Tr],uo[Tr]),Ql=Fn?dn[Tr]/2-ps-ms-Ns-gr.mainAxis:lo-ms-Ns-gr.mainAxis,ha=Fn?-dn[Tr]/2+ps+ms+xo+gr.mainAxis:tl+ms+xo+gr.mainAxis,Ls=le.elements.arrow&&X(le.elements.arrow),Ho=Ls?Ft==="y"?Ls.clientTop||0:Ls.clientLeft||0:0,nl=(ei=Hr?.[Ft])!=null?ei:0,Fl=Qr+Ql-nl-Ho,ch=Qr+ha-nl,js=fe(tn?A(ao,Fl):ao,Qr,tn?L(Zi,ch):Zi);In[Ft]=js,zi[Ft]=js-Qr}if(ot){var rl,Bl=Ft==="x"?t:r,rc=Ft==="x"?e:n,_i=In[Bn],Yo=Bn==="y"?"height":"width",pa=_i+Qt[Bl],Ul=_i-Qt[rc],Qs=[t,r].indexOf(fn)!==-1,il=(rl=Hr?.[Bn])!=null?rl:0,ql=Qs?pa:_i-dn[Yo]-Xr[Yo]-il+gr.altAxis,gi=Qs?_i+dn[Yo]+Xr[Yo]-il-gr.altAxis:Ul,Fs=tn&&Qs?we(ql,_i,gi):fe(tn?ql:pa,_i,tn?gi:Ul);In[Bn]=Fs,zi[Bn]=Fs-_i}le.modifiersData[Xe]=zi}}var Nt={name:"preventOverflow",enabled:!0,phase:"main",fn:Pt,requiresIfExists:["offset"]};function hn(ce){return{scrollLeft:ce.scrollLeft,scrollTop:ce.scrollTop}}function cn(ce){return ce===P(ce)||!R(ce)?at(ce):hn(ce)}function Kt(ce){var le=ce.getBoundingClientRect(),Oe=H(le.width)/ce.offsetWidth||1,Xe=H(le.height)/ce.offsetHeight||1;return Oe!==1||Xe!==1}function sn(ce,le,Oe){Oe===void 0&&(Oe=!1);var Xe=R(le),Ae=R(le)&&Kt(le),ze=ne(le),bt=G(ce,Ae,Oe),ot={scrollLeft:0,scrollTop:0},yt={x:0,y:0};return(Xe||!Xe&&!Oe)&&((B(le)!=="body"||pt(ze))&&(ot=cn(le)),R(le)?(yt=G(le,!0),yt.x+=le.clientLeft,yt.y+=le.clientTop):ze&&(yt.x=We(ze))),{x:bt.left+ot.scrollLeft-yt.x,y:bt.top+ot.scrollTop-yt.y,width:bt.width,height:bt.height}}function nn(ce){var le=new Map,Oe=new Set,Xe=[];ce.forEach(function(ze){le.set(ze.name,ze)});function Ae(ze){Oe.add(ze.name);var bt=[].concat(ze.requires||[],ze.requiresIfExists||[]);bt.forEach(function(ot){if(!Oe.has(ot)){var yt=le.get(ot);yt&&Ae(yt)}}),Xe.push(ze)}return ce.forEach(function(ze){Oe.has(ze.name)||Ae(ze)}),Xe}function Yt(ce){var le=nn(ce);return I.reduce(function(Oe,Xe){return Oe.concat(le.filter(function(Ae){return Ae.phase===Xe}))},[])}function Ct(ce){var le;return function(){return le||(le=new Promise(function(Oe){Promise.resolve().then(function(){le=void 0,Oe(ce())})})),le}}function ln(ce){var le=ce.reduce(function(Oe,Xe){var Ae=Oe[Xe.name];return Oe[Xe.name]=Ae?Object.assign({},Ae,Xe,{options:Object.assign({},Ae.options,Xe.options),data:Object.assign({},Ae.data,Xe.data)}):Xe,Oe},{});return Object.keys(le).map(function(Oe){return le[Oe]})}var or={placement:"bottom",modifiers:[],strategy:"absolute"};function wn(){for(var ce=arguments.length,le=new Array(ce),Oe=0;Oe<ce;Oe++)le[Oe]=arguments[Oe];return!le.some(function(Xe){return!(Xe&&typeof Xe.getBoundingClientRect=="function")})}function fr(ce){ce===void 0&&(ce={});var le=ce,Oe=le.defaultModifiers,Xe=Oe===void 0?[]:Oe,Ae=le.defaultOptions,ze=Ae===void 0?or:Ae;return function(ot,yt,Vt){Vt===void 0&&(Vt=ze);var At={placement:"bottom",orderedModifiers:[],options:Object.assign({},or,ze),modifiersData:{},elements:{reference:ot,popper:yt},attributes:{},styles:{}},Cn=[],jn=!1,tn={state:At,setOptions:function(fn){var Mn=typeof fn=="function"?fn(At.options):fn;Pn(),At.options=Object.assign({},ze,At.options,Mn),At.scrollParents={reference:E(ot)?nt(ot):ot.contextElement?nt(ot.contextElement):[],popper:nt(yt)};var Fn=Yt(ln([].concat(Xe,At.options.modifiers)));return At.orderedModifiers=Fn.filter(function(Ft){return Ft.enabled}),Sn(),tn.update()},forceUpdate:function(){if(!jn){var fn=At.elements,Mn=fn.reference,Fn=fn.popper;if(wn(Mn,Fn)){At.rects={reference:sn(Mn,X(Fn),At.options.strategy==="fixed"),popper:K(Fn)},At.reset=!1,At.placement=At.options.placement,At.orderedModifiers.forEach(function(gr){return At.modifiersData[gr.name]=Object.assign({},gr.data)});for(var Ft=0;Ft<At.orderedModifiers.length;Ft++){if(At.reset===!0){At.reset=!1,Ft=-1;continue}var Bn=At.orderedModifiers[Ft],In=Bn.fn,dn=Bn.options,Xr=dn===void 0?{}:dn,jr=Bn.name;typeof In=="function"&&(At=In({state:At,options:Xr,name:jr,instance:tn})||At)}}}},update:Ct(function(){return new Promise(function(Qt){tn.forceUpdate(),Qt(At)})}),destroy:function(){Pn(),jn=!0}};if(!wn(ot,yt))return tn;tn.setOptions(Vt).then(function(Qt){!jn&&Vt.onFirstUpdate&&Vt.onFirstUpdate(Qt)});function Sn(){At.orderedModifiers.forEach(function(Qt){var fn=Qt.name,Mn=Qt.options,Fn=Mn===void 0?{}:Mn,Ft=Qt.effect;if(typeof Ft=="function"){var Bn=Ft({state:At,name:fn,instance:tn,options:Fn}),In=function(){};Cn.push(Bn||In)}})}function Pn(){Cn.forEach(function(Qt){return Qt()}),Cn=[]}return tn}}const lr=fr({defaultModifiers:[ht,Ne,ye,Se,Je,Ee,Nt,oe]});return Nv.createPopper=lr,Nv.placements=h,Nv}var Nj;function Wye(){if(Nj)return cp;Nj=1,cp.__esModule=!0,cp.default=void 0;var t=jt(),e=qye(),n=o(Vye()),r=zye();const i=["enabled","placement","strategy","modifiers"];function o(f){return f&&f.__esModule?f:{default:f}}function s(f,d){if(f==null)return{};var h={};for(var p in f)if({}.hasOwnProperty.call(f,p)){if(d.indexOf(p)>=0)continue;h[p]=f[p]}return h}const a={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},l={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:f})=>()=>{const{reference:d,popper:h}=f.elements;if("removeAttribute"in d){const p=(d.getAttribute("aria-describedby")||"").split(",").filter(g=>g.trim()!==h.id);p.length?d.setAttribute("aria-describedby",p.join(",")):d.removeAttribute("aria-describedby")}},fn:({state:f})=>{var d;const{popper:h,reference:p}=f.elements,g=(d=h.getAttribute("role"))==null?void 0:d.toLowerCase();if(h.id&&g==="tooltip"&&"setAttribute"in p){const y=p.getAttribute("aria-describedby");if(y&&y.split(",").indexOf(h.id)!==-1)return;p.setAttribute("aria-describedby",y?`${y},${h.id}`:h.id)}}},u=[];function c(f,d,h={}){let{enabled:p=!0,placement:g="bottom",strategy:y="absolute",modifiers:O=u}=h,b=s(h,i);const S=(0,t.useRef)(O),k=(0,t.useRef)(),x=(0,t.useCallback)(()=>{var R;(R=k.current)==null||R.update()},[]),_=(0,t.useCallback)(()=>{var R;(R=k.current)==null||R.forceUpdate()},[]),[I,M]=(0,n.default)((0,t.useState)({placement:g,update:x,forceUpdate:_,attributes:{},styles:{popper:{},arrow:{}}})),P=(0,t.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:R})=>{const T={},L={};Object.keys(R.elements).forEach(A=>{T[A]=R.styles[A],L[A]=R.attributes[A]}),M({state:R,styles:T,attributes:L,update:x,forceUpdate:_,placement:R.placement})}}),[x,_,M]),E=(0,t.useMemo)(()=>((0,e.dequal)(S.current,O)||(S.current=O),S.current),[O]);return(0,t.useEffect)(()=>{!k.current||!p||k.current.setOptions({placement:g,strategy:y,modifiers:[...E,P,a]})},[y,g,P,p,E]),(0,t.useEffect)(()=>{if(!(!p||f==null||d==null))return k.current=(0,r.createPopper)(f,d,Object.assign({},b,{placement:g,strategy:y,modifiers:[...E,l,P]})),()=>{k.current!=null&&(k.current.destroy(),k.current=void 0,M(R=>Object.assign({},R,{attributes:{},styles:{popper:{}}})))}},[p,f,d]),I}return cp.default=c,cp}var dp={},xc={},Lj;function Zye(){if(Lj)return xc;Lj=1,xc.__esModule=!0,xc.getRefTarget=xc.default=void 0;var t=s(QT),e=s(FT),n=s(q0),r=jt(),i=s(rg()),o=s(B0());function s(h){return h&&h.__esModule?h:{default:h}}const a=()=>{};function l(h){return h.button===0}function u(h){return!!(h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)}const c=h=>h&&("current"in h?h.current:h);xc.getRefTarget=c;const f={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function d(h,p=a,{disabled:g,clickTrigger:y="click"}={}){const O=(0,r.useRef)(!1),b=(0,r.useRef)(!1),S=(0,r.useCallback)(_=>{const I=c(h);(0,o.default)(!!I,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),O.current=!I||u(_)||!l(_)||!!(0,t.default)(I,_.target)||b.current,b.current=!1},[h]),k=(0,i.default)(_=>{const I=c(h);I&&(0,t.default)(I,_.target)?b.current=!0:b.current=!1}),x=(0,i.default)(_=>{O.current||p(_)});(0,r.useEffect)(()=>{var _,I;if(g||h==null)return;const M=(0,n.default)(c(h)),P=M.defaultView||window;let E=(_=P.event)!=null?_:(I=P.parent)==null?void 0:I.event,R=null;f[y]&&(R=(0,e.default)(M,f[y],k,!0));const T=(0,e.default)(M,y,S,!0),L=(0,e.default)(M,y,H=>{if(H===E){E=void 0;return}x(H)});let A=[];return"ontouchstart"in M.documentElement&&(A=[].slice.call(M.body.children).map(H=>(0,e.default)(H,"mousemove",a))),()=>{R?.(),T(),L(),A.forEach(H=>H())}},[h,g,y,S,k,x])}return xc.default=d,xc}var jj;function Xye(){if(jj)return dp;jj=1,dp.__esModule=!0,dp.default=void 0;var t=l(FT),e=l(q0),n=jt(),r=l(rg()),i=a(Zye()),o=sf();function s(f){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(s=function(p){return p?h:d})(f)}function a(f,d){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var h=s(d);if(h&&h.has(f))return h.get(f);var p={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in f)if(y!=="default"&&{}.hasOwnProperty.call(f,y)){var O=g?Object.getOwnPropertyDescriptor(f,y):null;O&&(O.get||O.set)?Object.defineProperty(p,y,O):p[y]=f[y]}return p.default=f,h&&h.set(f,p),p}function l(f){return f&&f.__esModule?f:{default:f}}const u=()=>{};function c(f,d,{disabled:h,clickTrigger:p}={}){const g=d||u;(0,i.default)(f,g,{disabled:h,clickTrigger:p});const y=(0,r.default)(O=>{(0,o.isEscKey)(O)&&g(O)});(0,n.useEffect)(()=>{if(h||f==null)return;const O=(0,e.default)((0,i.getRefTarget)(f));let b=(O.defaultView||window).event;const S=(0,t.default)(O,"keyup",k=>{if(k===b){b=void 0;return}y(k)});return()=>{S()}},[f,h,y])}return dp.default=c,dp}var Vf={},Qj;function Hye(){if(Qj)return Vf;Qj=1,Vf.__esModule=!0,Vf.default=n,Vf.toModifierArray=e,Vf.toModifierMap=t;function t(r){const i={};return Array.isArray(r)?(r?.forEach(o=>{i[o.name]=o}),i):r||i}function e(r={}){return Array.isArray(r)?r:Object.keys(r).map(i=>(r[i].name=i,r[i]))}function n({enabled:r,enableEvents:i,placement:o,flip:s,offset:a,fixed:l,containerPadding:u,arrowElement:c,popperConfig:f={}}){var d,h,p,g,y;const O=t(f.modifiers);return Object.assign({},f,{placement:o,enabled:r,strategy:l?"fixed":f.strategy,modifiers:e(Object.assign({},O,{eventListeners:{enabled:i,options:(d=O.eventListeners)==null?void 0:d.options},preventOverflow:Object.assign({},O.preventOverflow,{options:u?Object.assign({padding:u},(h=O.preventOverflow)==null?void 0:h.options):(p=O.preventOverflow)==null?void 0:p.options}),offset:{options:Object.assign({offset:a},(g=O.offset)==null?void 0:g.options)},arrow:Object.assign({},O.arrow,{enabled:!!c,options:Object.assign({},(y=O.arrow)==null?void 0:y.options,{element:c})}),flip:Object.assign({enabled:!!s},O.flip)}))})}return Vf}var Fj;function Yye(){if(Fj)return up;Fj=1,up.__esModule=!0,up.default=void 0;var t=d(jt()),e=t,n=c(Mm()),r=c(Uye()),i=c(z0()),o=c(Wye()),s=c(Xye()),a=c(NV()),l=c(Hye()),u=LV();function c(p){return p&&p.__esModule?p:{default:p}}function f(p){if(typeof WeakMap!="function")return null;var g=new WeakMap,y=new WeakMap;return(f=function(O){return O?y:g})(p)}function d(p,g){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var y=f(g);if(y&&y.has(p))return y.get(p);var O={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in p)if(S!=="default"&&{}.hasOwnProperty.call(p,S)){var k=b?Object.getOwnPropertyDescriptor(p,S):null;k&&(k.get||k.set)?Object.defineProperty(O,S,k):O[S]=p[S]}return O.default=p,y&&y.set(p,O),O}const h=e.forwardRef((p,g)=>{const{flip:y,offset:O,placement:b,containerPadding:S,popperConfig:k={},transition:x,runTransition:_}=p,[I,M]=(0,r.default)(),[P,E]=(0,r.default)(),R=(0,i.default)(M,g),T=(0,a.default)(p.container),L=(0,a.default)(p.target),[A,H]=(0,t.useState)(!p.show),W=(0,o.default)(L,I,(0,l.default)({placement:b,enableEvents:!!p.show,containerPadding:S||5,flip:y,offset:O,arrowElement:P,popperConfig:k}));p.show&&A&&H(!1);const Z=(...ee)=>{H(!0),p.onExited&&p.onExited(...ee)},G=p.show||!A;if((0,s.default)(I,p.onHide,{disabled:!p.rootClose||p.rootCloseDisabled,clickTrigger:p.rootCloseEvent}),!G)return null;const{onExit:K,onExiting:U,onEnter:B,onEntering:Y,onEntered:j}=p;let ne=p.children(Object.assign({},W.attributes.popper,{style:W.styles.popper,ref:R}),{popper:W,placement:b,show:!!p.show,arrowProps:Object.assign({},W.attributes.arrow,{style:W.styles.arrow,ref:E})});return ne=(0,u.renderTransition)(x,_,{in:!!p.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ne,onExit:K,onExiting:U,onExited:Z,onEnter:B,onEntering:Y,onEntered:j}),T?n.default.createPortal(ne,T):null});return h.displayName="Overlay",up.default=h,up}var hp={},Bj;function Gye(){if(Bj)return hp;Bj=1,hp.__esModule=!0,hp.default=void 0;var t=jt();const e=typeof Cr<"u"&&Cr.navigator&&Cr.navigator.product==="ReactNative";var r=typeof document<"u"||e?t.useLayoutEffect:t.useEffect;return hp.default=r,hp}var Lv={exports:{}};const Kye=qi(eye);var jv={exports:{}},Qv={exports:{}},Uj;function Jye(){return Uj||(Uj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=l(jt()),i=n(mr()),o=Zr(),s=Ln();function a(c){if(typeof WeakMap!="function")return null;var f=new WeakMap,d=new WeakMap;return(a=function(h){return h?d:f})(c)}function l(c,f){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=a(f);if(d&&d.has(c))return d.get(c);var h={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&Object.prototype.hasOwnProperty.call(c,g)){var y=p?Object.getOwnPropertyDescriptor(c,g):null;y&&(y.get||y.set)?Object.defineProperty(h,g,y):h[g]=c[g]}return h.default=c,d&&d.set(c,h),h}const u=r.forwardRef(({className:c,bsPrefix:f,as:d="div",...h},p)=>(f=(0,o.useBootstrapPrefix)(f,"popover-header"),(0,s.jsx)(d,{ref:p,className:(0,i.default)(c,f),...h})));u.displayName="PopoverHeader",e.default=u,t.exports=e.default}(Qv,Qv.exports)),Qv.exports}var Fv={exports:{}},qj;function eOe(){return qj||(qj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=l(jt()),i=n(mr()),o=Zr(),s=Ln();function a(c){if(typeof WeakMap!="function")return null;var f=new WeakMap,d=new WeakMap;return(a=function(h){return h?d:f})(c)}function l(c,f){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=a(f);if(d&&d.has(c))return d.get(c);var h={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&Object.prototype.hasOwnProperty.call(c,g)){var y=p?Object.getOwnPropertyDescriptor(c,g):null;y&&(y.get||y.set)?Object.defineProperty(h,g,y):h[g]=c[g]}return h.default=c,d&&d.set(c,h),h}const u=r.forwardRef(({className:c,bsPrefix:f,as:d="div",...h},p)=>(f=(0,o.useBootstrapPrefix)(f,"popover-body"),(0,s.jsx)(d,{ref:p,className:(0,i.default)(c,f),...h})));u.displayName="PopoverBody",e.default=u,t.exports=e.default}(Fv,Fv.exports)),Fv.exports}var zf={},Vj;function HV(){if(Vj)return zf;Vj=1,zf.__esModule=!0,zf.BsPrefixComponent=void 0,zf.getOverlayDirection=i;var t=n(jt());function e(o){if(typeof WeakMap!="function")return null;var s=new WeakMap,a=new WeakMap;return(e=function(l){return l?a:s})(o)}function n(o,s){if(o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var a=e(s);if(a&&a.has(o))return a.get(o);var l={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in o)if(c!=="default"&&Object.prototype.hasOwnProperty.call(o,c)){var f=u?Object.getOwnPropertyDescriptor(o,c):null;f&&(f.get||f.set)?Object.defineProperty(l,c,f):l[c]=o[c]}return l.default=o,a&&a.set(o,l),l}class r extends t.Component{}zf.BsPrefixComponent=r;function i(o,s){let a=o;return o==="left"?a=s?"end":"start":o==="right"&&(a=s?"start":"end"),a}return zf}var Bv={exports:{}},zj;function YV(){return zj||(zj=1,function(t,e){e.__esModule=!0,e.default=n;function n(r="absolute"){return{position:r,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}t.exports=e.default}(Bv,Bv.exports)),Bv.exports}var Wj;function tOe(){return Wj||(Wj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=n(mr()),i=d(jt()),o=Zr(),s=n(Jye()),a=n(eOe()),l=HV(),u=n(YV()),c=Ln();function f(p){if(typeof WeakMap!="function")return null;var g=new WeakMap,y=new WeakMap;return(f=function(O){return O?y:g})(p)}function d(p,g){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var y=f(g);if(y&&y.has(p))return y.get(p);var O={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in p)if(S!=="default"&&Object.prototype.hasOwnProperty.call(p,S)){var k=b?Object.getOwnPropertyDescriptor(p,S):null;k&&(k.get||k.set)?Object.defineProperty(O,S,k):O[S]=p[S]}return O.default=p,y&&y.set(p,O),O}const h=i.forwardRef(({bsPrefix:p,placement:g="right",className:y,style:O,children:b,body:S,arrowProps:k,hasDoneInitialMeasure:x,popper:_,show:I,...M},P)=>{const E=(0,o.useBootstrapPrefix)(p,"popover"),R=(0,o.useIsRTL)(),[T]=g?.split("-")||[],L=(0,l.getOverlayDirection)(T,R);let A=O;return I&&!x&&(A={...O,...(0,u.default)(_?.strategy)}),(0,c.jsxs)("div",{ref:P,role:"tooltip",style:A,"x-placement":T,className:(0,r.default)(y,E,T&&`bs-popover-${L}`),...M,children:[(0,c.jsx)("div",{className:"popover-arrow",...k}),S?(0,c.jsx)(a.default,{children:b}):b]})});h.displayName="Popover",e.default=Object.assign(h,{Header:s.default,Body:a.default,POPPER_OFFSET:[0,8]}),t.exports=e.default}(jv,jv.exports)),jv.exports}var Uv={exports:{}},Zj;function GV(){return Zj||(Zj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=n(mr()),i=c(jt()),o=Zr(),s=HV(),a=n(YV()),l=Ln();function u(d){if(typeof WeakMap!="function")return null;var h=new WeakMap,p=new WeakMap;return(u=function(g){return g?p:h})(d)}function c(d,h){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=u(h);if(p&&p.has(d))return p.get(d);var g={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in d)if(O!=="default"&&Object.prototype.hasOwnProperty.call(d,O)){var b=y?Object.getOwnPropertyDescriptor(d,O):null;b&&(b.get||b.set)?Object.defineProperty(g,O,b):g[O]=d[O]}return g.default=d,p&&p.set(d,g),g}const f=i.forwardRef(({bsPrefix:d,placement:h="right",className:p,style:g,children:y,arrowProps:O,hasDoneInitialMeasure:b,popper:S,show:k,...x},_)=>{d=(0,o.useBootstrapPrefix)(d,"tooltip");const I=(0,o.useIsRTL)(),[M]=h?.split("-")||[],P=(0,s.getOverlayDirection)(M,I);let E=g;return k&&!b&&(E={...g,...(0,a.default)(S?.strategy)}),(0,l.jsxs)("div",{ref:_,style:E,role:"tooltip","x-placement":M,className:(0,r.default)(p,d,`bs-tooltip-${P}`),...x,children:[(0,l.jsx)("div",{className:"tooltip-arrow",...O}),(0,l.jsx)("div",{className:`${d}-inner`,children:y})]})});f.displayName="Tooltip",e.default=Object.assign(f,{TOOLTIP_OFFSET:[0,6]}),t.exports=e.default}(Uv,Uv.exports)),Uv.exports}var Xj;function nOe(){return Xj||(Xj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=l;var r=jt(),i=n(Kye),o=Zr(),s=n(tOe()),a=n(GV());function l(u){const c=(0,r.useRef)(null),f=(0,o.useBootstrapPrefix)(void 0,"popover"),d=(0,o.useBootstrapPrefix)(void 0,"tooltip"),h=(0,r.useMemo)(()=>({name:"offset",options:{offset:()=>{if(u)return u;if(c.current){if((0,i.default)(c.current,f))return s.default.POPPER_OFFSET;if((0,i.default)(c.current,d))return a.default.TOOLTIP_OFFSET}return[0,0]}}}),[u,f,d]);return[c,[h]]}t.exports=e.default}(Lv,Lv.exports)),Lv.exports}var Hj;function rOe(){return Hj||(Hj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=g(jt()),i=r,o=n(mr()),s=n(Yye()),a=n(LT()),l=n(Gye()),u=n(V0()),c=n(nOe()),f=n(UV()),d=n(qT()),h=Ln();function p(b){if(typeof WeakMap!="function")return null;var S=new WeakMap,k=new WeakMap;return(p=function(x){return x?k:S})(b)}function g(b,S){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var k=p(S);if(k&&k.has(b))return k.get(b);var x={__proto__:null},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in b)if(I!=="default"&&Object.prototype.hasOwnProperty.call(b,I)){var M=_?Object.getOwnPropertyDescriptor(b,I):null;M&&(M.get||M.set)?Object.defineProperty(x,I,M):x[I]=b[I]}return x.default=b,k&&k.set(b,x),x}function y(b,S){const{ref:k}=b,{ref:x}=S;b.ref=k.__wrapped||(k.__wrapped=_=>k((0,d.default)(_))),S.ref=x.__wrapped||(x.__wrapped=_=>x((0,d.default)(_)))}const O=i.forwardRef(({children:b,transition:S=f.default,popperConfig:k={},rootClose:x=!1,placement:_="top",show:I=!1,...M},P)=>{const E=(0,r.useRef)({}),[R,T]=(0,r.useState)(null),[L,A]=(0,c.default)(M.offset),H=(0,u.default)(P,L),W=S===!0?f.default:S||void 0,Z=(0,a.default)(G=>{T(G),k==null||k.onFirstUpdate==null||k.onFirstUpdate(G)});return(0,l.default)(()=>{R&&M.target&&(E.current.scheduleUpdate==null||E.current.scheduleUpdate())},[R,M.target]),(0,r.useEffect)(()=>{I||T(null)},[I]),(0,h.jsx)(s.default,{...M,ref:H,popperConfig:{...k,modifiers:A.concat(k.modifiers||[]),onFirstUpdate:Z},transition:W,rootClose:x,placement:_,show:I,children:(G,{arrowProps:K,popper:U,show:B})=>{var Y;y(G,K);const j=U?.placement,ne=Object.assign(E.current,{state:U?.state,scheduleUpdate:U?.update,placement:j,outOfBoundaries:(U==null||(Y=U.state)==null||(Y=Y.modifiersData.hide)==null?void 0:Y.isReferenceHidden)||!1,strategy:k.strategy}),ee=!!R;return typeof b=="function"?b({...G,placement:j,show:B,...!S&&B&&{className:"show"},popper:ne,arrowProps:K,hasDoneInitialMeasure:ee}):i.cloneElement(b,{...G,placement:j,arrowProps:K,popper:ne,hasDoneInitialMeasure:ee,className:(0,o.default)(b.props.className,!S&&B&&"show"),style:{...b.props.style,...G.style}})}})});O.displayName="Overlay",e.default=O,t.exports=e.default}(Iv,Iv.exports)),Iv.exports}var Yj;function iOe(){return Yj||(Yj=1,function(t,e){"use client";var n=Zn();e.__esModule=!0,e.default=void 0;var r=n(QT),i=n(F0()),o=g(jt()),s=o,a=n(Eye());n(B0());var l=Bye,u=n(V0()),c=sf(),f=n(rOe()),d=n(qT()),h=Ln();function p(S){if(typeof WeakMap!="function")return null;var k=new WeakMap,x=new WeakMap;return(p=function(_){return _?x:k})(S)}function g(S,k){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var x=p(k);if(x&&x.has(S))return x.get(S);var _={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in S)if(M!=="default"&&Object.prototype.hasOwnProperty.call(S,M)){var P=I?Object.getOwnPropertyDescriptor(S,M):null;P&&(P.get||P.set)?Object.defineProperty(_,M,P):_[M]=S[M]}return _.default=S,x&&x.set(S,_),_}function y(S){return S&&typeof S=="object"?S:{show:S,hide:S}}function O(S,k,x){const[_]=k,I=_.currentTarget,M=_.relatedTarget||_.nativeEvent[x];(!M||M!==I)&&!(0,r.default)(I,M)&&S(...k)}i.default.oneOf(["click","hover","focus"]);const b=({trigger:S=["hover","focus"],overlay:k,children:x,popperConfig:_={},show:I,defaultShow:M=!1,onToggle:P,delay:E,placement:R,flip:T=R&&R.indexOf("auto")!==-1,...L})=>{const A=(0,o.useRef)(null),H=(0,u.default)(A,(0,c.getChildRef)(x)),W=(0,a.default)(),Z=(0,o.useRef)(""),[G,K]=(0,l.useUncontrolledProp)(I,M,P),U=y(E),{onFocus:B,onBlur:Y,onClick:j}=typeof x!="function"?s.Children.only(x).props:{},ne=Q=>{H((0,d.default)(Q))},ee=(0,o.useCallback)(()=>{if(W.clear(),Z.current="show",!U.show){K(!0);return}W.set(()=>{Z.current==="show"&&K(!0)},U.show)},[U.show,K,W]),ue=(0,o.useCallback)(()=>{if(W.clear(),Z.current="hide",!U.hide){K(!1);return}W.set(()=>{Z.current==="hide"&&K(!1)},U.hide)},[U.hide,K,W]),z=(0,o.useCallback)((...Q)=>{ee(),B?.(...Q)},[ee,B]),X=(0,o.useCallback)((...Q)=>{ue(),Y?.(...Q)},[ue,Y]),J=(0,o.useCallback)((...Q)=>{K(!G),j?.(...Q)},[j,K,G]),fe=(0,o.useCallback)((...Q)=>{O(ee,Q,"fromElement")},[ee]),we=(0,o.useCallback)((...Q)=>{O(ue,Q,"toElement")},[ue]),Te=S==null?[]:[].concat(S),Re={ref:ne};return Te.indexOf("click")!==-1&&(Re.onClick=J),Te.indexOf("focus")!==-1&&(Re.onFocus=z,Re.onBlur=X),Te.indexOf("hover")!==-1&&(Re.onMouseOver=fe,Re.onMouseOut=we),(0,h.jsxs)(h.Fragment,{children:[typeof x=="function"?x(Re):(0,o.cloneElement)(x,Re),(0,h.jsx)(f.default,{...L,show:G,onHide:ue,flip:T,placement:R,popperConfig:_,target:A.current,children:k})]})};e.default=b,t.exports=e.default}(Av,Av.exports)),Av.exports}var oOe=iOe();const ho=So(oOe);var sOe=GV();const po=So(sOe),aOe=({enableUsernameField:t=!0})=>{const{isDocOpen:e,closeDoc:n}=N.useContext(Lr);return e?q.jsxs($r,{className:"vz-settings",show:e,onHide:n,animation:!1,children:[q.jsx($r.Header,{closeButton:!0,children:q.jsx($r.Title,{children:"Keyboard Shortcuts"})}),q.jsxs($r.Body,{className:"pt-1",children:[q.jsx(Ir.Group,{className:"mb-3",children:q.jsx(Ir.Text,{className:"text-muted",children:"Keyboard shortcuts and interactive widgets for quick actions"})}),q.jsx(Ir.Group,{children:q.jsxs("ul",{children:[q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Ctrl"})," + ",q.jsx("kbd",{children:"S"})]})," ","or"," ",q.jsxs("strong",{children:[q.jsx("kbd",{children:"Shift↑"})," + ",q.jsx("kbd",{children:"Enter←"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Run and format code"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + Drag on a number"]}),q.jsx("br",{}),q.jsx("span",{children:"Modify the number by dragging left or right"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + Click on a hex color"]}),q.jsx("br",{}),q.jsx("span",{children:"Open a color picker to modify the color"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + ",q.jsx("kbd",{children:"W"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Close the current tab"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + ",q.jsx("kbd",{children:"N"})]})," ","or"," ",q.jsxs("strong",{children:[q.jsx("kbd",{children:"Ctrl"})," + ",q.jsx("kbd",{children:"Shift↑"})," +"," ",q.jsx("kbd",{children:"N"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Open the create file modal"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + ",q.jsx("kbd",{children:"PgUp↑"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Change the active tab to the previous one"})]}),q.jsxs("li",{children:[q.jsxs("strong",{children:[q.jsx("kbd",{children:"Alt"})," + ",q.jsx("kbd",{children:"PgDn↓"})]})," ",q.jsx("br",{}),q.jsx("span",{children:"Change the active tab to the next one"})]}),q.jsxs("li",{children:[q.jsx("strong",{children:"Most VSCode Shortcuts"})," ",q.jsx("br",{}),"See VSCode docs:"," ",q.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf",target:"_blank",children:"Windows"}),","," ",q.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf",target:"_blank",children:"MacOS"}),","," ",q.jsx("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf",target:"_blank",children:"Linux"})]})]})})]}),q.jsx($r.Footer,{children:q.jsx(Il,{variant:"primary",onClick:n,children:"Done"})})]}):null},lOe=["10px","12px","14px","16px","18px","20px","24px"],uOe=["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","sans-serif","Courier New","Georgia","Tahoma","Verdana","Times New Roman","Trebuchet MS","Comic Sans MS"],cOe=t=>{const e="abcdefghijklmnopqrstuvwxyz0123456789",n="72px",r=document.createElement("span");r.style.fontSize=n,r.style.visibility="hidden",r.style.position="absolute",r.innerHTML=e,document.body.appendChild(r);const i="monospace";r.style.fontFamily=i;const o=r.offsetWidth;r.style.fontFamily=`${t}, ${i}`;const s=r.offsetWidth;return document.body.removeChild(r),s!==o},fOe=({enableUsernameField:t=!0})=>{const{isSettingsOpen:e,closeSettings:n,theme:r,setTheme:i,username:o,setUsername:s}=N.useContext(Lr),[a,l]=N.useState("Roboto Mono"),[u,c]=N.useState("16px"),[f,d]=N.useState([]);N.useEffect(()=>{if(typeof window<"u"){const y=window.localStorage.getItem("vzcodeSelectedFont"),O=window.localStorage.getItem("vzcodeSelectedFontSize");y!==null&&l(y),O!==null&&c(O)}},[]),N.useEffect(()=>{(()=>{const O=[];for(const b of uOe)cOe(b)&&O.push(b);d(O)})()},[]);const h=N.useCallback(()=>{l("Roboto Mono"),c("16px"),i(xP[0].label),t&&s(""),localStorage.removeItem("vzcodeSelectedFont"),localStorage.removeItem("vzcodeSelectedFontSize")},[t,i,s]);N.useEffect(()=>{document.body.style.setProperty("--vzcode-font-family",a)},[a]),N.useEffect(()=>{document.body.style.setProperty("--vzcode-font-size",u)},[u]);const p=N.useRef(null),g=N.useCallback(()=>{s(p.current?.value||"")},[s]);return N.useEffect(()=>{if(e){const y=O=>{O.key==="Enter"&&n()};return window.addEventListener("keydown",y),()=>{window.removeEventListener("keydown",y)}}},[e,n]),e?q.jsxs($r,{className:"vz-settings",show:e,onHide:n,animation:!1,children:[q.jsx($r.Header,{closeButton:!0,children:q.jsx($r.Title,{children:"Editor Settings"})}),q.jsxs($r.Body,{children:[t?q.jsxs(Ir.Group,{className:"mb-3",controlId:"formFork",children:[q.jsx(Ir.Label,{children:"Username"}),q.jsx(Ir.Control,{type:"text",ref:p,onChange:g,placeholder:"Enter username",value:o}),q.jsx(Ir.Text,{className:"text-muted",children:"Enter a username to be displayed on your cursor"})]}):null,q.jsxs(Ir.Group,{className:"mb-3",controlId:"formFork",children:[q.jsx(Ir.Label,{children:"Theme"}),q.jsx("select",{className:"form-select",value:r,onChange:y=>i(y.target.value),children:xP.map(({label:y})=>q.jsx("option",{value:y,children:y},y))})]}),q.jsxs(Ir.Group,{className:"mb-3",controlId:"formFork",children:[q.jsx(Ir.Label,{children:"Font"}),q.jsx("select",{className:"form-select",onChange:y=>l(y.target.value),value:a,children:f.map(y=>q.jsx("option",{value:y,children:y},y))})]}),q.jsxs(Ir.Group,{className:"mb-3",controlId:"formFork",children:[q.jsx(Ir.Label,{children:"Font Size"}),q.jsx("select",{className:"form-select",onChange:y=>c(y.target.value),value:u,children:lOe.map(y=>q.jsx("option",{value:y,children:y},y))})]})]}),q.jsxs($r.Footer,{children:[q.jsx(Il,{variant:"secondary",onClick:h,children:"Reset to Default"}),q.jsx(Il,{variant:"primary",onClick:n,children:"Done"})]})]}):null},dOe=t=>{const e={name:"files"};for(const n of Object.keys(t)){const r=t[n],i=r.name.split("/"),o=i.length;let s=e;for(let a=0;a<o-1;a++){let l;const u=i[a];if(s.children)for(let c=0;c<s.children.length;c++){const f=s.children[c];if(f.name===u){l=f;break}}l||(l={name:i[a],path:i.slice(0,a+1).join("/")},(s.children||(s.children=[])).push(l)),s=l}r.text!==null&&(s.children||(s.children=[])).push({name:i[o-1],file:r,fileId:n})}return e},hOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:q.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})}),pOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:q.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})}),mOe=()=>q.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[q.jsx("path",{d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 0 1 0 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 0 1 0-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281Z"}),q.jsx("path",{d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]}),VO=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:q.jsx("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),gOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:q.jsx("path",{fill:"none",stroke:"currentColor",d:"M14.7404 9L14.3942 18M9.60577 18L9.25962 9M19.2276 5.79057C19.5696 5.84221 19.9104 5.89747 20.25 5.95629M19.2276 5.79057L18.1598 19.6726C18.0696 20.8448 17.0921 21.75 15.9164 21.75H8.08357C6.90786 21.75 5.93037 20.8448 5.8402 19.6726L4.77235 5.79057M19.2276 5.79057C18.0812 5.61744 16.9215 5.48485 15.75 5.39432M3.75 5.95629C4.08957 5.89747 4.43037 5.84221 4.77235 5.79057M4.77235 5.79057C5.91878 5.61744 7.07849 5.48485 8.25 5.39432M15.75 5.39432V4.47819C15.75 3.29882 14.8393 2.31423 13.6606 2.27652C13.1092 2.25889 12.5556 2.25 12 2.25C11.4444 2.25 10.8908 2.25889 10.3394 2.27652C9.16065 2.31423 8.25 3.29882 8.25 4.47819V5.39432M15.75 5.39432C14.5126 5.2987 13.262 5.25 12 5.25C10.738 5.25 9.48744 5.2987 8.25 5.39432",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),vOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0 1 12 12.75Zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 0 1-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 0 0 2.248-2.354M12 12.75a2.25 2.25 0 0 1-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 0 0-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 0 1 .4-2.253M12 8.25a2.25 2.25 0 0 0-2.248 2.146M12 8.25a2.25 2.25 0 0 1 2.248 2.146M8.683 5a6.032 6.032 0 0 1-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0 1 15.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 0 0-.575-1.752M4.921 6a24.048 24.048 0 0 0-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 0 1-5.223 1.082"})}),KV=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:q.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})}),JV=({height:t=16,fill:e="currentcolor"})=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,viewBox:"4 4 16 16",children:q.jsx("path",{stroke:e,fill:"none",d:"M8 17l9-5-9-5v10z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),yOe=()=>q.jsx("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})}),OOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})}),bOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:q.jsx("path",{fill:"currentColor",d:"m16.114 1.553 6.333 6.333a1.75 1.75 0 0 1-.603 2.869l-1.63.633a5.67 5.67 0 0 0-3.395 3.725l-1.131 3.959a1.75 1.75 0 0 1-2.92.757L9 16.061l-5.595 5.594a.749.749 0 1 1-1.06-1.06L7.939 15l-3.768-3.768a1.75 1.75 0 0 1 .757-2.92l3.959-1.131a5.666 5.666 0 0 0 3.725-3.395l.633-1.63a1.75 1.75 0 0 1 2.869-.603ZM5.232 10.171l8.597 8.597a.25.25 0 0 0 .417-.108l1.131-3.959A7.17 7.17 0 0 1 19.67 9.99l1.63-.634a.25.25 0 0 0 .086-.409l-6.333-6.333a.25.25 0 0 0-.409.086l-.634 1.63a7.17 7.17 0 0 1-4.711 4.293L5.34 9.754a.25.25 0 0 0-.108.417Z"})}),wOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})}),SOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})}),kOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M3 3h18v18H3V3zm16.525 13.707c-.131-.821-.666-1.511-2.252-2.155-.552-.259-1.165-.438-1.349-.854-.068-.248-.078-.382-.034-.529.113-.484.687-.629 1.137-.495.293.09.563.315.732.676.775-.507.775-.507 1.316-.844-.203-.314-.304-.451-.439-.586-.473-.528-1.103-.798-2.126-.775l-.528.067c-.507.124-.991.395-1.283.754-.855.968-.608 2.655.427 3.354 1.023.765 2.521.933 2.712 1.653.18.878-.652 1.159-1.475 1.058-.607-.136-.945-.439-1.316-1.002l-1.372.788c.157.359.337.517.607.832 1.305 1.316 4.568 1.249 5.153-.754.021-.067.18-.528.056-1.237l.034.049zm-6.737-5.434h-1.686c0 1.453-.007 2.898-.007 4.354 0 .924.047 1.772-.104 2.033-.247.517-.886.451-1.175.359-.297-.146-.448-.349-.623-.641-.047-.078-.082-.146-.095-.146l-1.368.844c.229.473.563.879.994 1.137.641.383 1.502.507 2.404.305.588-.17 1.095-.519 1.358-1.059.384-.697.302-1.553.299-2.509.008-1.541 0-3.083 0-4.635l.003-.042z"})}),xOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M3 3h18v18H3V3m10.71 14.86c.5.98 1.51 1.73 3.09 1.73 1.6 0 2.8-.83 2.8-2.36 0-1.41-.81-2.04-2.25-2.66l-.42-.18c-.73-.31-1.04-.52-1.04-1.02 0-.41.31-.73.81-.73.48 0 .8.21 1.09.73l1.31-.87c-.55-.96-1.33-1.33-2.4-1.33-1.51 0-2.48.96-2.48 2.23 0 1.38.81 2.03 2.03 2.55l.42.18c.78.34 1.24.55 1.24 1.13 0 .48-.45.83-1.15.83-.83 0-1.31-.43-1.67-1.03l-1.38.8M13 11.25H8v1.5h1.5V20h1.75v-7.25H13v-1.5z"})}),_Oe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M14.23 12.004a2.236 2.236 0 01-2.235 2.236 2.236 2.236 0 01-2.236-2.236 2.236 2.236 0 012.235-2.236 2.236 2.236 0 012.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38a2.167 2.167 0 00-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44a23.476 23.476 0 00-3.107-.534A23.892 23.892 0 0012.769 4.7c1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442a22.73 22.73 0 00-3.113.538 15.02 15.02 0 01-.254-1.42c-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87a25.64 25.64 0 01-4.412.005 26.64 26.64 0 01-1.183-1.86c-.372-.64-.71-1.29-1.018-1.946a25.17 25.17 0 011.013-1.954c.38-.66.773-1.286 1.18-1.868A25.245 25.245 0 0112 8.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933a25.952 25.952 0 00-1.345-2.32zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493a23.966 23.966 0 00-1.1-2.98c.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98a23.142 23.142 0 00-1.086 2.964c-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39a25.819 25.819 0 001.341-2.338zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143a22.005 22.005 0 01-2.006-.386c.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295a1.185 1.185 0 01-.553-.132c-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})}),POe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M10.354 21.125a4.44 4.44 0 01-4.765-1.767 4.109 4.109 0 01-.703-3.107 3.898 3.898 0 01.134-.522l.105-.321.287.21a7.21 7.21 0 002.186 1.092l.208.063-.02.208a1.253 1.253 0 00.226.83 1.337 1.337 0 001.435.533 1.231 1.231 0 00.343-.15l5.59-3.562a1.164 1.164 0 00.524-.778 1.242 1.242 0 00-.211-.937 1.338 1.338 0 00-1.435-.533 1.23 1.23 0 00-.343.15l-2.133 1.36a4.078 4.078 0 01-1.135.499 4.44 4.44 0 01-4.765-1.766 4.108 4.108 0 01-.702-3.108 3.855 3.855 0 011.742-2.582l5.589-3.563a4.072 4.072 0 011.135-.499 4.44 4.44 0 014.765 1.767 4.109 4.109 0 01.703 3.107 3.943 3.943 0 01-.134.522l-.105.321-.286-.21a7.204 7.204 0 00-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 00-.226-.831 1.337 1.337 0 00-1.435-.532 1.231 1.231 0 00-.343.15L8.62 9.368a1.162 1.162 0 00-.524.778 1.24 1.24 0 00.211.937 1.338 1.338 0 001.435.533 1.235 1.235 0 00.344-.151l2.132-1.36a4.067 4.067 0 011.135-.498 4.44 4.44 0 014.765 1.766 4.108 4.108 0 01.702 3.108 3.857 3.857 0 01-1.742 2.583l-5.589 3.562a4.072 4.072 0 01-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 00-2.896 4.295 6.753 6.753 0 00.666 4.336 6.43 6.43 0 00-.96 2.396 6.833 6.833 0 001.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 002.896-4.295 6.756 6.756 0 00-.665-4.336 6.429 6.429 0 00.958-2.396 6.831 6.831 0 00-1.167-5.168z"})}),COe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M4.136 3.012h15.729l-1.431 16.15-6.451 1.826-6.414-1.826-1.433-16.15zm5.266 7.302l-.173-2.035 7.533.002.173-1.963-9.87-.002.522 5.998h6.835l-.243 2.566-2.179.602-2.214-.605-.141-1.58H7.691l.247 3.123L12 17.506l4.028-1.08.558-6.111H9.402v-.001z"})}),EOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M4.192 3.143h15.615l-1.42 16.034-6.404 1.812-6.369-1.813L4.192 3.143zM16.9 6.424l-9.8-.002.158 1.949 7.529.002-.189 2.02H9.66l.179 1.913h4.597l-.272 2.62-2.164.598-2.197-.603-.141-1.569h-1.94l.216 2.867L12 17.484l3.995-1.137.905-9.923z"})}),TOe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M5 3h2v2H5v5a2 2 0 01-2 2 2 2 0 012 2v5h2v2H5c-1.07-.27-2-.9-2-2v-4a2 2 0 00-2-2H0v-2h1a2 2 0 002-2V5a2 2 0 012-2m14 0a2 2 0 012 2v4a2 2 0 002 2h1v2h-1a2 2 0 00-2 2v4a2 2 0 01-2 2h-2v-2h2v-5a2 2 0 012-2 2 2 0 01-2-2V5h-2V3h2m-7 12a1 1 0 011 1 1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1m-4 0a1 1 0 011 1 1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1m8 0a1 1 0 011 1 1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1z"})}),ROe=()=>q.jsx("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"none",children:q.jsx("path",{d:"M20.56 18H3.44C2.65 18 2 17.37 2 16.59V7.41C2 6.63 2.65 6 3.44 6h17.12c.79 0 1.44.63 1.44 1.41v9.18c0 .78-.65 1.41-1.44 1.41M6.81 15.19v-3.66l1.92 2.35 1.92-2.35v3.66h1.93V8.81h-1.93l-1.92 2.35-1.92-2.35H4.89v6.38h1.92M19.69 12h-1.92V8.81h-1.92V12h-1.93l2.89 3.28L19.69 12z"})}),AOe=()=>q.jsx("svg",{fill:"#000000",height:"24",width:"24",stroke:"currentColor",version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",enableBackground:"new 0 0 512 512",children:q.jsx("g",{children:q.jsxs("g",{children:[q.jsx("path",{fill:"currentColor",d:"m439.5,236c0-11.3-9.1-20.4-20.4-20.4s-20.4,9.1-20.4,20.4c0,70-64,126.9-142.7,126.9-78.7,0-142.7-56.9-142.7-126.9 0-11.3-9.1-20.4-20.4-20.4s-20.4,9.1-20.4,20.4c0,86.2 71.5,157.4 163.1,166.7v57.5h-23.6c-11.3,0-20.4,9.1-20.4,20.4 0,11.3 9.1,20.4 20.4,20.4h88c11.3,0 20.4-9.1 20.4-20.4 0-11.3-9.1-20.4-20.4-20.4h-23.6v-57.5c91.6-9.3 163.1-80.5 163.1-166.7z"}),q.jsx("path",{fill:"currentColor",d:"m256,323.5c51,0 92.3-41.3 92.3-92.3v-127.9c0-51-41.3-92.3-92.3-92.3s-92.3,41.3-92.3,92.3v127.9c0,51 41.3,92.3 92.3,92.3zm-52.3-220.2c0-28.8 23.5-52.3 52.3-52.3s52.3,23.5 52.3,52.3v127.9c0,28.8-23.5,52.3-52.3,52.3s-52.3-23.5-52.3-52.3v-127.9z"})]})})}),MOe=()=>q.jsx("svg",{fill:"#000000",height:"24",width:"24",stroke:"currentColor",version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",enableBackground:"new 0 0 512 512",children:q.jsx("g",{children:q.jsxs("g",{children:[q.jsx("path",{fill:"currentColor",d:"m439.5,236c0-11.3-9.1-20.4-20.4-20.4s-20.4,9.1-20.4,20.4c0,70-64,126.9-142.7,126.9-78.7,0-142.7-56.9-142.7-126.9 0-11.3-9.1-20.4-20.4-20.4s-20.4,9.1-20.4,20.4c0,86.2 71.5,157.4 163.1,166.7v57.5h-23.6c-11.3,0-20.4,9.1-20.4,20.4 0,11.3 9.1,20.4 20.4,20.4h88c11.3,0 20.4-9.1 20.4-20.4 0-11.3-9.1-20.4-20.4-20.4h-23.6v-57.5c91.6-9.3 163.1-80.5 163.1-166.7z"}),q.jsx("path",{fill:"currentColor",d:"m256,323.5c51,0 92.3-41.3 92.3-92.3v-127.9c0-51-41.3-92.3-92.3-92.3s-92.3,41.3-92.3,92.3v127.9c0,51 41.3,92.3 92.3,92.3zm-52.3-220.2c0-28.8 23.5-52.3 52.3-52.3s52.3,23.5 52.3,52.3v127.9c0,28.8-23.5,52.3-52.3,52.3s-52.3-23.5-52.3-52.3v-127.9z"}),q.jsx("line",{x1:"100",y1:"100",x2:"412",y2:"412",stroke:"currentColor",strokeWidth:"40",strokeLinecap:"round"})]})})}),DOe=()=>q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",width:32,height:32,children:q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})}),ez=t=>(t.children&&(t.children.sort((e,n)=>{const r=e.file?1:0,i=n.file?1:0;return r-i||e.name.localeCompare(n.name)}),t.children.forEach(ez)),t);function IOe(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $Oe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NOe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,LOe={};function Gj(t,e){return(LOe.jsx?NOe:$Oe).test(t)}const jOe=/[ \t\n\f\r]/g;function QOe(t){return typeof t=="object"?t.type==="text"?Kj(t.value):!1:Kj(t)}function Kj(t){return t.replace(jOe,"")===""}class ig{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}}ig.prototype.normal={};ig.prototype.property={};ig.prototype.space=void 0;function tz(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new ig(n,r,e)}function oC(t){return t.toLowerCase()}class Xo{constructor(e,n){this.attribute=n,this.property=e}}Xo.prototype.attribute="";Xo.prototype.booleanish=!1;Xo.prototype.boolean=!1;Xo.prototype.commaOrSpaceSeparated=!1;Xo.prototype.commaSeparated=!1;Xo.prototype.defined=!1;Xo.prototype.mustUseProperty=!1;Xo.prototype.number=!1;Xo.prototype.overloadedBoolean=!1;Xo.prototype.property="";Xo.prototype.spaceSeparated=!1;Xo.prototype.space=void 0;let FOe=0;const Dn=af(),ai=af(),sC=af(),St=af(),_r=af(),Ed=af(),rs=af();function af(){return 2**++FOe}const aC=Object.freeze(Object.defineProperty({__proto__:null,boolean:Dn,booleanish:ai,commaOrSpaceSeparated:rs,commaSeparated:Ed,number:St,overloadedBoolean:sC,spaceSeparated:_r},Symbol.toStringTag,{value:"Module"})),dx=Object.keys(aC);class VT extends Xo{constructor(e,n,r,i){let o=-1;if(super(e,n),Jj(this,"space",i),typeof r=="number")for(;++o<dx.length;){const s=dx[o];Jj(this,dx[o],(r&aC[s])===aC[s])}}}VT.prototype.defined=!0;function Jj(t,e,n){n&&(t[e]=n)}function ah(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const o=new VT(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[oC(r)]=r,n[oC(o.attribute)]=r}return new ig(e,n,t.space)}const nz=ah({properties:{ariaActiveDescendant:null,ariaAtomic:ai,ariaAutoComplete:null,ariaBusy:ai,ariaChecked:ai,ariaColCount:St,ariaColIndex:St,ariaColSpan:St,ariaControls:_r,ariaCurrent:null,ariaDescribedBy:_r,ariaDetails:null,ariaDisabled:ai,ariaDropEffect:_r,ariaErrorMessage:null,ariaExpanded:ai,ariaFlowTo:_r,ariaGrabbed:ai,ariaHasPopup:null,ariaHidden:ai,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_r,ariaLevel:St,ariaLive:null,ariaModal:ai,ariaMultiLine:ai,ariaMultiSelectable:ai,ariaOrientation:null,ariaOwns:_r,ariaPlaceholder:null,ariaPosInSet:St,ariaPressed:ai,ariaReadOnly:ai,ariaRelevant:null,ariaRequired:ai,ariaRoleDescription:_r,ariaRowCount:St,ariaRowIndex:St,ariaRowSpan:St,ariaSelected:ai,ariaSetSize:St,ariaSort:null,ariaValueMax:St,ariaValueMin:St,ariaValueNow:St,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function rz(t,e){return e in t?t[e]:e}function iz(t,e){return rz(t,e.toLowerCase())}const BOe=ah({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ed,acceptCharset:_r,accessKey:_r,action:null,allow:null,allowFullScreen:Dn,allowPaymentRequest:Dn,allowUserMedia:Dn,alt:null,as:null,async:Dn,autoCapitalize:null,autoComplete:_r,autoFocus:Dn,autoPlay:Dn,blocking:_r,capture:null,charSet:null,checked:Dn,cite:null,className:_r,cols:St,colSpan:null,content:null,contentEditable:ai,controls:Dn,controlsList:_r,coords:St|Ed,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Dn,defer:Dn,dir:null,dirName:null,disabled:Dn,download:sC,draggable:ai,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Dn,formTarget:null,headers:_r,height:St,hidden:sC,high:St,href:null,hrefLang:null,htmlFor:_r,httpEquiv:_r,id:null,imageSizes:null,imageSrcSet:null,inert:Dn,inputMode:null,integrity:null,is:null,isMap:Dn,itemId:null,itemProp:_r,itemRef:_r,itemScope:Dn,itemType:_r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Dn,low:St,manifest:null,max:null,maxLength:St,media:null,method:null,min:null,minLength:St,multiple:Dn,muted:Dn,name:null,nonce:null,noModule:Dn,noValidate:Dn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Dn,optimum:St,pattern:null,ping:_r,placeholder:null,playsInline:Dn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Dn,referrerPolicy:null,rel:_r,required:Dn,reversed:Dn,rows:St,rowSpan:St,sandbox:_r,scope:null,scoped:Dn,seamless:Dn,selected:Dn,shadowRootClonable:Dn,shadowRootDelegatesFocus:Dn,shadowRootMode:null,shape:null,size:St,sizes:null,slot:null,span:St,spellCheck:ai,src:null,srcDoc:null,srcLang:null,srcSet:null,start:St,step:null,style:null,tabIndex:St,target:null,title:null,translate:null,type:null,typeMustMatch:Dn,useMap:null,value:ai,width:St,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_r,axis:null,background:null,bgColor:null,border:St,borderColor:null,bottomMargin:St,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Dn,declare:Dn,event:null,face:null,frame:null,frameBorder:null,hSpace:St,leftMargin:St,link:null,longDesc:null,lowSrc:null,marginHeight:St,marginWidth:St,noResize:Dn,noHref:Dn,noShade:Dn,noWrap:Dn,object:null,profile:null,prompt:null,rev:null,rightMargin:St,rules:null,scheme:null,scrolling:ai,standby:null,summary:null,text:null,topMargin:St,valueType:null,version:null,vAlign:null,vLink:null,vSpace:St,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Dn,disableRemotePlayback:Dn,prefix:null,property:null,results:St,security:null,unselectable:null},space:"html",transform:iz}),UOe=ah({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:rs,accentHeight:St,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:St,amplitude:St,arabicForm:null,ascent:St,attributeName:null,attributeType:null,azimuth:St,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:St,by:null,calcMode:null,capHeight:St,className:_r,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:St,diffuseConstant:St,direction:null,display:null,dur:null,divisor:St,dominantBaseline:null,download:Dn,dx:null,dy:null,edgeMode:null,editable:null,elevation:St,enableBackground:null,end:null,event:null,exponent:St,externalResourcesRequired:null,fill:null,fillOpacity:St,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ed,g2:Ed,glyphName:Ed,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:St,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:St,horizOriginX:St,horizOriginY:St,id:null,ideographic:St,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:St,k:St,k1:St,k2:St,k3:St,k4:St,kernelMatrix:rs,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:St,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:St,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:St,overlineThickness:St,paintOrder:null,panose1:null,path:null,pathLength:St,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:St,pointsAtY:St,pointsAtZ:St,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rs,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rs,rev:rs,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rs,requiredFeatures:rs,requiredFonts:rs,requiredFormats:rs,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:St,specularExponent:St,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:St,strikethroughThickness:St,string:null,stroke:null,strokeDashArray:rs,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:St,strokeOpacity:St,strokeWidth:null,style:null,surfaceScale:St,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rs,tabIndex:St,tableValues:null,target:null,targetX:St,targetY:St,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rs,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:St,underlineThickness:St,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:St,values:null,vAlphabetic:St,vMathematical:St,vectorEffect:null,vHanging:St,vIdeographic:St,version:null,vertAdvY:St,vertOriginX:St,vertOriginY:St,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:St,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:rz}),oz=ah({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),sz=ah({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:iz}),az=ah({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),qOe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},VOe=/[A-Z]/g,e3=/-[a-z]/g,zOe=/^data[-\w.:]+$/i;function WOe(t,e){const n=oC(e);let r=e,i=Xo;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&zOe.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(e3,XOe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!e3.test(o)){let s=o.replace(VOe,ZOe);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=VT}return new i(r,e)}function ZOe(t){return"-"+t.toLowerCase()}function XOe(t){return t.charAt(1).toUpperCase()}const HOe=tz([nz,BOe,oz,sz,az],"html"),zT=tz([nz,UOe,oz,sz,az],"svg");function YOe(t){return t.join(" ").trim()}var Wf={},hx,t3;function GOe(){if(t3)return hx;t3=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
232
232
  `,u="/",c="*",f="",d="comment",h="declaration";hx=function(g,y){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];y=y||{};var O=1,b=1;function S(L){var A=L.match(e);A&&(O+=A.length);var H=L.lastIndexOf(l);b=~H?L.length-H:b+L.length}function k(){var L={line:O,column:b};return function(A){return A.position=new x(L),M(),A}}function x(L){this.start=L,this.end={line:O,column:b},this.source=y.source}x.prototype.content=g;function _(L){var A=new Error(y.source+":"+O+":"+b+": "+L);if(A.reason=L,A.filename=y.source,A.line=O,A.column=b,A.source=g,!y.silent)throw A}function I(L){var A=L.exec(g);if(A){var H=A[0];return S(H),g=g.slice(H.length),A}}function M(){I(n)}function P(L){var A;for(L=L||[];A=E();)A!==!1&&L.push(A);return L}function E(){var L=k();if(!(u!=g.charAt(0)||c!=g.charAt(1))){for(var A=2;f!=g.charAt(A)&&(c!=g.charAt(A)||u!=g.charAt(A+1));)++A;if(A+=2,f===g.charAt(A-1))return _("End of comment missing");var H=g.slice(2,A-2);return b+=2,S(H),g=g.slice(A),b+=2,L({type:d,comment:H})}}function R(){var L=k(),A=I(r);if(A){if(E(),!I(i))return _("property missing ':'");var H=I(o),W=L({type:h,property:p(A[0].replace(t,f)),value:H?p(H[0].replace(t,f)):f});return I(s),W}}function T(){var L=[];P(L);for(var A;A=R();)A!==!1&&(L.push(A),P(L));return L}return M(),T()};function p(g){return g?g.replace(a,f):f}return hx}var n3;function KOe(){if(n3)return Wf;n3=1;var t=Wf&&Wf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Wf,"__esModule",{value:!0}),Wf.default=n;var e=t(GOe());function n(r,i){var o=null;if(!r||typeof r!="string")return o;var s=(0,e.default)(r),a=typeof i=="function";return s.forEach(function(l){if(l.type==="declaration"){var u=l.property,c=l.value;a?i(u,c,l):c&&(o=o||{},o[u]=c)}}),o}return Wf}var pp={},r3;function JOe(){if(r3)return pp;r3=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||t.test(u)},s=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),o(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(e,s))};return pp.camelCase=l,pp}var mp,i3;function e0e(){if(i3)return mp;i3=1;var t=mp&&mp.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(KOe()),n=JOe();function r(i,o){var s={};return!i||typeof i!="string"||(0,e.default)(i,function(a,l){a&&l&&(s[(0,n.camelCase)(a,o)]=l)}),s}return r.default=r,mp=r,mp}var t0e=e0e();const n0e=So(t0e),lz=uz("end"),WT=uz("start");function uz(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function r0e(t){const e=WT(t),n=lz(t);if(e&&n)return{start:e,end:n}}function Zp(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?o3(t.position):"start"in t||"end"in t?o3(t):"line"in t||"column"in t?lC(t):""}function lC(t){return s3(t&&t.line)+":"+s3(t&&t.column)}function o3(t){return lC(t&&t.start)+"-"+lC(t&&t.end)}function s3(t){return t&&typeof t=="number"?t:1}class so extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof e=="string"?i=e:!o.cause&&e&&(s=!0,i=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Zp(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}so.prototype.file="";so.prototype.name="";so.prototype.reason="";so.prototype.message="";so.prototype.stack="";so.prototype.column=void 0;so.prototype.line=void 0;so.prototype.ancestors=void 0;so.prototype.cause=void 0;so.prototype.fatal=void 0;so.prototype.place=void 0;so.prototype.ruleId=void 0;so.prototype.source=void 0;const ZT={}.hasOwnProperty,i0e=new Map,o0e=/[A-Z]/g,s0e=new Set(["table","tbody","thead","tfoot","tr"]),a0e=new Set(["td","th"]),cz="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function l0e(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=g0e(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=m0e(n,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?zT:HOe,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},o=fz(i,t,void 0);return o&&typeof o!="string"?o:i.create(t,i.Fragment,{children:o||void 0},void 0)}function fz(t,e,n){if(e.type==="element")return u0e(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return c0e(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return d0e(t,e,n);if(e.type==="mdxjsEsm")return f0e(t,e);if(e.type==="root")return h0e(t,e,n);if(e.type==="text")return p0e(t,e)}function u0e(t,e,n){const r=t.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=zT,t.schema=i),t.ancestors.push(e);const o=hz(t,e.tagName,!1),s=v0e(t,e);let a=HT(t,e);return s0e.has(e.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!QOe(l):!0})),dz(t,s,o,e),XT(s,a),t.ancestors.pop(),t.schema=r,t.create(e,o,s,n)}function c0e(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}Tm(t,e.position)}function f0e(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Tm(t,e.position)}function d0e(t,e,n){const r=t.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=zT,t.schema=i),t.ancestors.push(e);const o=e.name===null?t.Fragment:hz(t,e.name,!0),s=y0e(t,e),a=HT(t,e);return dz(t,s,o,e),XT(s,a),t.ancestors.pop(),t.schema=r,t.create(e,o,s,n)}function h0e(t,e,n){const r={};return XT(r,HT(t,e)),t.create(e,t.Fragment,r,n)}function p0e(t,e){return e.value}function dz(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function XT(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function m0e(t,e,n){return r;function r(i,o,s,a){const u=Array.isArray(s.children)?n:e;return a?u(o,s,a):u(o,s)}}function g0e(t,e){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=WT(r);return e(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:t,lineNumber:l?l.line:void 0},void 0)}}function v0e(t,e){const n={};let r,i;for(i in e.properties)if(i!=="children"&&ZT.call(e.properties,i)){const o=O0e(t,i,e.properties[i]);if(o){const[s,a]=o;t.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&a0e.has(e.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function y0e(t,e){const n={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,t.evaluater.evaluateExpression(a.argument))}else Tm(t,e.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const a=r.value.data.estree.body[0];a.type,o=t.evaluater.evaluateExpression(a.expression)}else Tm(t,e.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function HT(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:i0e;for(;++r<e.children.length;){const o=e.children[r];let s;if(t.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const a=fz(t,o,s);a!==void 0&&n.push(a)}return n}function O0e(t,e,n){const r=WOe(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?IOe(n):YOe(n)),r.property==="style"){let i=typeof n=="object"?n:b0e(t,String(n));return t.stylePropertyNameCase==="css"&&(i=w0e(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&r.space?qOe[r.property]||r.property:r.attribute,n]}}function b0e(t,e){try{return n0e(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const r=n,i=new so("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=cz+"#cannot-parse-style-attribute",i}}function hz(t,e,n){let r;if(!n)r={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let o=-1,s;for(;++o<i.length;){const a=Gj(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=Gj(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const i=r.value;return ZT.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(r);Tm(t)}function Tm(t,e){const n=new so("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=cz+"#cannot-handle-mdx-estrees-without-createevaluater",n}function w0e(t){const e={};let n;for(n in t)ZT.call(t,n)&&(e[S0e(n)]=t[n]);return e}function S0e(t){let e=t.replace(o0e,k0e);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function k0e(t){return"-"+t.toLowerCase()}const px={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},x0e={};function YT(t,e){const n=x0e,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return pz(t,r,i)}function pz(t,e,n){if(_0e(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return a3(t.children,e,n)}return Array.isArray(t)?a3(t,e,n):""}function a3(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=pz(t[i],e,n);return r.join("")}function _0e(t){return!!(t&&typeof t=="object")}const l3=document.createElement("i");function GT(t){const e="&"+t+";";l3.innerHTML=e;const n=l3.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function cs(t,e,n,r){const i=t.length;let o=0,s;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(e,n),t.splice(...s);else for(n&&t.splice(e,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(e,0),t.splice(...s),o+=1e4,e+=1e4}function xs(t,e){return t.length>0?(cs(t,t.length,0,e),t):e}const u3={}.hasOwnProperty;function mz(t){const e={};let n=-1;for(;++n<t.length;)P0e(e,t[n]);return e}function P0e(t,e){let n;for(n in e){const i=(u3.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n];let s;if(o)for(s in o){u3.call(i,s)||(i[s]=[]);const a=o[s];C0e(i[s],Array.isArray(a)?a:a?[a]:[])}}}function C0e(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);cs(t,0,0,r)}function gz(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function oa(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const go=nc(/[A-Za-z]/),io=nc(/[\dA-Za-z]/),E0e=nc(/[#-'*+\--9=?A-Z^-~]/);function zO(t){return t!==null&&(t<32||t===127)}const uC=nc(/\d/),T0e=nc(/[\dA-Fa-f]/),R0e=nc(/[!-/:-@[-`{-~]/);function yn(t){return t!==null&&t<-2}function Sr(t){return t!==null&&(t<0||t===32)}function Wn(t){return t===-2||t===-1||t===32}const W0=nc(new RegExp("\\p{P}|\\p{S}","u")),Gc=nc(/\s/);function nc(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function lh(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const o=t.charCodeAt(n);let s="";if(o===37&&io(t.charCodeAt(n+1))&&io(t.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=t.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(e.push(t.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function nr(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return Wn(l)?(t.enter(n),a(l)):e(l)}function a(l){return Wn(l)&&o++<i?(t.consume(l),a):(t.exit(n),e(l))}}const A0e={tokenize:M0e};function M0e(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),nr(t,e,"linePrefix")}function i(a){return t.enter("paragraph"),o(a)}function o(a){const l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(a);return}return yn(a)?(t.consume(a),t.exit("chunkText"),o):(t.consume(a),s)}}const D0e={tokenize:I0e},c3={tokenize:$0e};function I0e(t){const e=this,n=[];let r=0,i,o,s;return a;function a(S){if(r<n.length){const k=n[r];return e.containerState=k[1],t.attempt(k[0].continuation,l,u)(S)}return u(S)}function l(S){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&b();const k=e.events.length;let x=k,_;for(;x--;)if(e.events[x][0]==="exit"&&e.events[x][1].type==="chunkFlow"){_=e.events[x][1].end;break}O(r);let I=k;for(;I<e.events.length;)e.events[I][1].end={..._},I++;return cs(e.events,x+1,0,e.events.slice(k)),e.events.length=I,u(S)}return a(S)}function u(S){if(r===n.length){if(!i)return d(S);if(i.currentConstruct&&i.currentConstruct.concrete)return p(S);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(c3,c,f)(S)}function c(S){return i&&b(),O(r),d(S)}function f(S){return e.parser.lazy[e.now().line]=r!==n.length,s=e.now().offset,p(S)}function d(S){return e.containerState={},t.attempt(c3,h,p)(S)}function h(S){return r++,n.push([e.currentConstruct,e.containerState]),d(S)}function p(S){if(S===null){i&&b(),O(0),t.consume(S);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(S)}function g(S){if(S===null){y(t.exit("chunkFlow"),!0),O(0),t.consume(S);return}return yn(S)?(t.consume(S),y(t.exit("chunkFlow")),r=0,e.interrupt=void 0,a):(t.consume(S),g)}function y(S,k){const x=e.sliceStream(S);if(k&&x.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(x),e.parser.lazy[S.start.line]){let _=i.events.length;for(;_--;)if(i.events[_][1].start.offset<s&&(!i.events[_][1].end||i.events[_][1].end.offset>s))return;const I=e.events.length;let M=I,P,E;for(;M--;)if(e.events[M][0]==="exit"&&e.events[M][1].type==="chunkFlow"){if(P){E=e.events[M][1].end;break}P=!0}for(O(r),_=I;_<e.events.length;)e.events[_][1].end={...E},_++;cs(e.events,M+1,0,e.events.slice(I)),e.events.length=_}}function O(S){let k=n.length;for(;k-- >S;){const x=n[k];e.containerState=x[1],x[0].exit.call(e,t)}n.length=S}function b(){i.write([null]),o=void 0,i=void 0,e.containerState._closeFlow=void 0}}function $0e(t,e,n){return nr(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Hd(t){if(t===null||Sr(t)||Gc(t))return 1;if(W0(t))return 2}function Z0(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}const cC={name:"attention",resolveAll:N0e,tokenize:L0e};function N0e(t,e){let n=-1,r,i,o,s,a,l,u,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const f={...t[r][1].end},d={...t[n][1].start};f3(f,-l),f3(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...t[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:d},o={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},t[r][1].end={...s.start},t[n][1].start={...a.end},u=[],t[r][1].end.offset-t[r][1].start.offset&&(u=xs(u,[["enter",t[r][1],e],["exit",t[r][1],e]])),u=xs(u,[["enter",i,e],["enter",s,e],["exit",s,e],["enter",o,e]]),u=xs(u,Z0(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),u=xs(u,[["exit",o,e],["enter",a,e],["exit",a,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,u=xs(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,cs(t,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function L0e(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Hd(r);let o;return s;function s(l){return o=l,t.enter("attentionSequence"),a(l)}function a(l){if(l===o)return t.consume(l),a;const u=t.exit("attentionSequence"),c=Hd(l),f=!c||c===2&&i||n.includes(l),d=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?f:f&&(i||!d)),u._close=!!(o===42?d:d&&(c||!f)),e(l)}}function f3(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const j0e={name:"autolink",tokenize:Q0e};function Q0e(t,e,n){let r=0;return i;function i(h){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(h){return go(h)?(t.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||io(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(t.consume(h),r=0,l):(h===43||h===45||h===46||io(h))&&r++<32?(t.consume(h),a):(r=0,u(h))}function l(h){return h===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.exit("autolink"),e):h===null||h===32||h===60||zO(h)?n(h):(t.consume(h),l)}function u(h){return h===64?(t.consume(h),c):E0e(h)?(t.consume(h),u):n(h)}function c(h){return io(h)?f(h):n(h)}function f(h){return h===46?(t.consume(h),r=0,c):h===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(h),t.exit("autolinkMarker"),t.exit("autolink"),e):d(h)}function d(h){if((h===45||io(h))&&r++<63){const p=h===45?d:f;return t.consume(h),p}return n(h)}}const og={partial:!0,tokenize:F0e};function F0e(t,e,n){return r;function r(o){return Wn(o)?nr(t,i,"linePrefix")(o):i(o)}function i(o){return o===null||yn(o)?e(o):n(o)}}const vz={continuation:{tokenize:U0e},exit:q0e,name:"blockQuote",tokenize:B0e};function B0e(t,e,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(t.enter("blockQuote",{_container:!0}),a.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),o}return n(s)}function o(s){return Wn(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function U0e(t,e,n){const r=this;return i;function i(s){return Wn(s)?nr(t,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return t.attempt(vz,e,n)(s)}}function q0e(t){t.exit("blockQuote")}const yz={name:"characterEscape",tokenize:V0e};function V0e(t,e,n){return r;function r(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),i}function i(o){return R0e(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(o)}}const Oz={name:"characterReference",tokenize:z0e};function z0e(t,e,n){const r=this;let i=0,o,s;return a;function a(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),l}function l(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),o=31,s=io,c(f))}function u(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,s=T0e,c):(t.enter("characterReferenceValue"),o=7,s=uC,c(f))}function c(f){if(f===59&&i){const d=t.exit("characterReferenceValue");return s===io&&!GT(r.sliceSerialize(d))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(f)&&i++<o?(t.consume(f),c):n(f)}}const d3={partial:!0,tokenize:Z0e},h3={concrete:!0,name:"codeFenced",tokenize:W0e};function W0e(t,e,n){const r=this,i={partial:!0,tokenize:x};let o=0,s=0,a;return l;function l(_){return u(_)}function u(_){const I=r.events[r.events.length-1];return o=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,a=_,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(_)}function c(_){return _===a?(s++,t.consume(_),c):s<3?n(_):(t.exit("codeFencedFenceSequence"),Wn(_)?nr(t,f,"whitespace")(_):f(_))}function f(_){return _===null||yn(_)?(t.exit("codeFencedFence"),r.interrupt?e(_):t.check(d3,g,k)(_)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),d(_))}function d(_){return _===null||yn(_)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(_)):Wn(_)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),nr(t,h,"whitespace")(_)):_===96&&_===a?n(_):(t.consume(_),d)}function h(_){return _===null||yn(_)?f(_):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||yn(_)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(_)):_===96&&_===a?n(_):(t.consume(_),p)}function g(_){return t.attempt(i,k,y)(_)}function y(_){return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),O}function O(_){return o>0&&Wn(_)?nr(t,b,"linePrefix",o+1)(_):b(_)}function b(_){return _===null||yn(_)?t.check(d3,g,k)(_):(t.enter("codeFlowValue"),S(_))}function S(_){return _===null||yn(_)?(t.exit("codeFlowValue"),b(_)):(t.consume(_),S)}function k(_){return t.exit("codeFenced"),e(_)}function x(_,I,M){let P=0;return E;function E(H){return _.enter("lineEnding"),_.consume(H),_.exit("lineEnding"),R}function R(H){return _.enter("codeFencedFence"),Wn(H)?nr(_,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):T(H)}function T(H){return H===a?(_.enter("codeFencedFenceSequence"),L(H)):M(H)}function L(H){return H===a?(P++,_.consume(H),L):P>=s?(_.exit("codeFencedFenceSequence"),Wn(H)?nr(_,A,"whitespace")(H):A(H)):M(H)}function A(H){return H===null||yn(H)?(_.exit("codeFencedFence"),I(H)):M(H)}}}function Z0e(t,e,n){const r=this;return i;function i(s){return s===null?n(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}const mx={name:"codeIndented",tokenize:H0e},X0e={partial:!0,tokenize:Y0e};function H0e(t,e,n){const r=this;return i;function i(u){return t.enter("codeIndented"),nr(t,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):yn(u)?t.attempt(X0e,s,l)(u):(t.enter("codeFlowValue"),a(u))}function a(u){return u===null||yn(u)?(t.exit("codeFlowValue"),s(u)):(t.consume(u),a)}function l(u){return t.exit("codeIndented"),e(u)}}function Y0e(t,e,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):yn(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i):nr(t,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(s):yn(s)?i(s):n(s)}}const G0e={name:"codeText",previous:J0e,resolve:K0e,tokenize:ebe};function K0e(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function J0e(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ebe(t,e,n){let r=0,i,o;return s;function s(f){return t.enter("codeText"),t.enter("codeTextSequence"),a(f)}function a(f){return f===96?(t.consume(f),r++,a):(t.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(t.enter("space"),t.consume(f),t.exit("space"),l):f===96?(o=t.enter("codeTextSequence"),i=0,c(f)):yn(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),l):(t.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||yn(f)?(t.exit("codeTextData"),l(f)):(t.consume(f),u)}function c(f){return f===96?(t.consume(f),i++,c):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(f)):(o.type="codeTextData",u(f))}}class tbe{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&gp(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),gp(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),gp(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);gp(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);gp(this.left,n.reverse())}}}function gp(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function bz(t){const e={};let n=-1,r,i,o,s,a,l,u;const c=new tbe(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,nbe(c,n)),n=e[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return cs(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function nbe(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let c,f,d=-1,h=n,p=0,g=0;const y=[g];for(;h;){for(;t.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(g=d+1,y.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),d=y.length;d--;){const O=a.slice(y[d],y[d+1]),b=o.pop();l.push([b,b+O.length-1]),t.splice(b,2,O)}for(l.reverse(),d=-1;++d<l.length;)u[p+l[d][0]]=p+l[d][1],p+=l[d][1]-l[d][0]-1;return u}const rbe={resolve:obe,tokenize:sbe},ibe={partial:!0,tokenize:abe};function obe(t){return bz(t),t}function sbe(t,e){let n;return r;function r(a){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):yn(a)?t.check(ibe,s,o)(a):(t.consume(a),i)}function o(a){return t.exit("chunkContent"),t.exit("content"),e(a)}function s(a){return t.consume(a),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function abe(t,e,n){const r=this;return i;function i(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),nr(t,o,"linePrefix")}function o(s){if(s===null||yn(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(s):t.interrupt(r.parser.constructs.flow,n,e)(s)}}function wz(t,e,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(O){return O===60?(t.enter(r),t.enter(i),t.enter(o),t.consume(O),t.exit(o),d):O===null||O===32||O===41||zO(O)?n(O):(t.enter(r),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),g(O))}function d(O){return O===62?(t.enter(o),t.consume(O),t.exit(o),t.exit(i),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),h(O))}function h(O){return O===62?(t.exit("chunkString"),t.exit(a),d(O)):O===null||O===60||yn(O)?n(O):(t.consume(O),O===92?p:h)}function p(O){return O===60||O===62||O===92?(t.consume(O),h):h(O)}function g(O){return!c&&(O===null||O===41||Sr(O))?(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(r),e(O)):c<u&&O===40?(t.consume(O),c++,g):O===41?(t.consume(O),c--,g):O===null||O===32||O===40||zO(O)?n(O):(t.consume(O),O===92?y:g)}function y(O){return O===40||O===41||O===92?(t.consume(O),g):g(O)}}function Sz(t,e,n,r,i,o){const s=this;let a=0,l;return u;function u(h){return t.enter(r),t.enter(i),t.consume(h),t.exit(i),t.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(t.exit(o),t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):yn(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||yn(h)||a++>999?(t.exit("chunkString"),c(h)):(t.consume(h),l||(l=!Wn(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(t.consume(h),a++,f):f(h)}}function kz(t,e,n,r,i,o){let s;return a;function a(d){return d===34||d===39||d===40?(t.enter(r),t.enter(i),t.consume(d),t.exit(i),s=d===40?41:d,l):n(d)}function l(d){return d===s?(t.enter(i),t.consume(d),t.exit(i),t.exit(r),e):(t.enter(o),u(d))}function u(d){return d===s?(t.exit(o),l(s)):d===null?n(d):yn(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),nr(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||yn(d)?(t.exit("chunkString"),u(d)):(t.consume(d),d===92?f:c)}function f(d){return d===s||d===92?(t.consume(d),c):c(d)}}function Xp(t,e){let n;return r;function r(i){return yn(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):Wn(i)?nr(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}const lbe={name:"definition",tokenize:cbe},ube={partial:!0,tokenize:fbe};function cbe(t,e,n){const r=this;let i;return o;function o(h){return t.enter("definition"),s(h)}function s(h){return Sz.call(r,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=oa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(t.enter("definitionMarker"),t.consume(h),t.exit("definitionMarker"),l):n(h)}function l(h){return Sr(h)?Xp(t,u)(h):u(h)}function u(h){return wz(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return t.attempt(ube,f,f)(h)}function f(h){return Wn(h)?nr(t,d,"whitespace")(h):d(h)}function d(h){return h===null||yn(h)?(t.exit("definition"),r.parser.defined.push(i),e(h)):n(h)}}function fbe(t,e,n){return r;function r(a){return Sr(a)?Xp(t,i)(a):n(a)}function i(a){return kz(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Wn(a)?nr(t,s,"whitespace")(a):s(a)}function s(a){return a===null||yn(a)?e(a):n(a)}}const dbe={name:"hardBreakEscape",tokenize:hbe};function hbe(t,e,n){return r;function r(o){return t.enter("hardBreakEscape"),t.consume(o),i}function i(o){return yn(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}const pbe={name:"headingAtx",resolve:mbe,tokenize:gbe};function mbe(t,e){let n=t.length-2,r=3,i,o;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},o={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},cs(t,r,n-r+1,[["enter",i,e],["enter",o,e],["exit",o,e],["exit",i,e]])),t}function gbe(t,e,n){let r=0;return i;function i(c){return t.enter("atxHeading"),o(c)}function o(c){return t.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(t.consume(c),s):c===null||Sr(c)?(t.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(t.enter("atxHeadingSequence"),l(c)):c===null||yn(c)?(t.exit("atxHeading"),e(c)):Wn(c)?nr(t,a,"whitespace")(c):(t.enter("atxHeadingText"),u(c))}function l(c){return c===35?(t.consume(c),l):(t.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Sr(c)?(t.exit("atxHeadingText"),a(c)):(t.consume(c),u)}}const vbe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],p3=["pre","script","style","textarea"],ybe={concrete:!0,name:"htmlFlow",resolveTo:wbe,tokenize:Sbe},Obe={partial:!0,tokenize:xbe},bbe={partial:!0,tokenize:kbe};function wbe(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function Sbe(t,e,n){const r=this;let i,o,s,a,l;return u;function u(j){return c(j)}function c(j){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(j),f}function f(j){return j===33?(t.consume(j),d):j===47?(t.consume(j),o=!0,g):j===63?(t.consume(j),i=3,r.interrupt?e:U):go(j)?(t.consume(j),s=String.fromCharCode(j),y):n(j)}function d(j){return j===45?(t.consume(j),i=2,h):j===91?(t.consume(j),i=5,a=0,p):go(j)?(t.consume(j),i=4,r.interrupt?e:U):n(j)}function h(j){return j===45?(t.consume(j),r.interrupt?e:U):n(j)}function p(j){const ne="CDATA[";return j===ne.charCodeAt(a++)?(t.consume(j),a===ne.length?r.interrupt?e:T:p):n(j)}function g(j){return go(j)?(t.consume(j),s=String.fromCharCode(j),y):n(j)}function y(j){if(j===null||j===47||j===62||Sr(j)){const ne=j===47,ee=s.toLowerCase();return!ne&&!o&&p3.includes(ee)?(i=1,r.interrupt?e(j):T(j)):vbe.includes(s.toLowerCase())?(i=6,ne?(t.consume(j),O):r.interrupt?e(j):T(j)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(j):o?b(j):S(j))}return j===45||io(j)?(t.consume(j),s+=String.fromCharCode(j),y):n(j)}function O(j){return j===62?(t.consume(j),r.interrupt?e:T):n(j)}function b(j){return Wn(j)?(t.consume(j),b):E(j)}function S(j){return j===47?(t.consume(j),E):j===58||j===95||go(j)?(t.consume(j),k):Wn(j)?(t.consume(j),S):E(j)}function k(j){return j===45||j===46||j===58||j===95||io(j)?(t.consume(j),k):x(j)}function x(j){return j===61?(t.consume(j),_):Wn(j)?(t.consume(j),x):S(j)}function _(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(t.consume(j),l=j,I):Wn(j)?(t.consume(j),_):M(j)}function I(j){return j===l?(t.consume(j),l=null,P):j===null||yn(j)?n(j):(t.consume(j),I)}function M(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Sr(j)?x(j):(t.consume(j),M)}function P(j){return j===47||j===62||Wn(j)?S(j):n(j)}function E(j){return j===62?(t.consume(j),R):n(j)}function R(j){return j===null||yn(j)?T(j):Wn(j)?(t.consume(j),R):n(j)}function T(j){return j===45&&i===2?(t.consume(j),W):j===60&&i===1?(t.consume(j),Z):j===62&&i===4?(t.consume(j),B):j===63&&i===3?(t.consume(j),U):j===93&&i===5?(t.consume(j),K):yn(j)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(Obe,Y,L)(j)):j===null||yn(j)?(t.exit("htmlFlowData"),L(j)):(t.consume(j),T)}function L(j){return t.check(bbe,A,Y)(j)}function A(j){return t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),H}function H(j){return j===null||yn(j)?L(j):(t.enter("htmlFlowData"),T(j))}function W(j){return j===45?(t.consume(j),U):T(j)}function Z(j){return j===47?(t.consume(j),s="",G):T(j)}function G(j){if(j===62){const ne=s.toLowerCase();return p3.includes(ne)?(t.consume(j),B):T(j)}return go(j)&&s.length<8?(t.consume(j),s+=String.fromCharCode(j),G):T(j)}function K(j){return j===93?(t.consume(j),U):T(j)}function U(j){return j===62?(t.consume(j),B):j===45&&i===2?(t.consume(j),U):T(j)}function B(j){return j===null||yn(j)?(t.exit("htmlFlowData"),Y(j)):(t.consume(j),B)}function Y(j){return t.exit("htmlFlow"),e(j)}}function kbe(t,e,n){const r=this;return i;function i(s){return yn(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}function xbe(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(og,e,n)}}const _be={name:"htmlText",tokenize:Pbe};function Pbe(t,e,n){const r=this;let i,o,s;return a;function a(U){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(U),l}function l(U){return U===33?(t.consume(U),u):U===47?(t.consume(U),x):U===63?(t.consume(U),S):go(U)?(t.consume(U),M):n(U)}function u(U){return U===45?(t.consume(U),c):U===91?(t.consume(U),o=0,p):go(U)?(t.consume(U),b):n(U)}function c(U){return U===45?(t.consume(U),h):n(U)}function f(U){return U===null?n(U):U===45?(t.consume(U),d):yn(U)?(s=f,Z(U)):(t.consume(U),f)}function d(U){return U===45?(t.consume(U),h):f(U)}function h(U){return U===62?W(U):U===45?d(U):f(U)}function p(U){const B="CDATA[";return U===B.charCodeAt(o++)?(t.consume(U),o===B.length?g:p):n(U)}function g(U){return U===null?n(U):U===93?(t.consume(U),y):yn(U)?(s=g,Z(U)):(t.consume(U),g)}function y(U){return U===93?(t.consume(U),O):g(U)}function O(U){return U===62?W(U):U===93?(t.consume(U),O):g(U)}function b(U){return U===null||U===62?W(U):yn(U)?(s=b,Z(U)):(t.consume(U),b)}function S(U){return U===null?n(U):U===63?(t.consume(U),k):yn(U)?(s=S,Z(U)):(t.consume(U),S)}function k(U){return U===62?W(U):S(U)}function x(U){return go(U)?(t.consume(U),_):n(U)}function _(U){return U===45||io(U)?(t.consume(U),_):I(U)}function I(U){return yn(U)?(s=I,Z(U)):Wn(U)?(t.consume(U),I):W(U)}function M(U){return U===45||io(U)?(t.consume(U),M):U===47||U===62||Sr(U)?P(U):n(U)}function P(U){return U===47?(t.consume(U),W):U===58||U===95||go(U)?(t.consume(U),E):yn(U)?(s=P,Z(U)):Wn(U)?(t.consume(U),P):W(U)}function E(U){return U===45||U===46||U===58||U===95||io(U)?(t.consume(U),E):R(U)}function R(U){return U===61?(t.consume(U),T):yn(U)?(s=R,Z(U)):Wn(U)?(t.consume(U),R):P(U)}function T(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(t.consume(U),i=U,L):yn(U)?(s=T,Z(U)):Wn(U)?(t.consume(U),T):(t.consume(U),A)}function L(U){return U===i?(t.consume(U),i=void 0,H):U===null?n(U):yn(U)?(s=L,Z(U)):(t.consume(U),L)}function A(U){return U===null||U===34||U===39||U===60||U===61||U===96?n(U):U===47||U===62||Sr(U)?P(U):(t.consume(U),A)}function H(U){return U===47||U===62||Sr(U)?P(U):n(U)}function W(U){return U===62?(t.consume(U),t.exit("htmlTextData"),t.exit("htmlText"),e):n(U)}function Z(U){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(U),t.exit("lineEnding"),G}function G(U){return Wn(U)?nr(t,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):K(U)}function K(U){return t.enter("htmlTextData"),s(U)}}const KT={name:"labelEnd",resolveAll:Rbe,resolveTo:Abe,tokenize:Mbe},Cbe={tokenize:Dbe},Ebe={tokenize:Ibe},Tbe={tokenize:$be};function Rbe(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&cs(t,0,t.length,n),t}function Abe(t,e){let n=t.length,r=0,i,o,s,a;for(;n--;)if(i=t[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[o][1].start},end:{...t[s][1].end}},c={type:"labelText",start:{...t[o+r+2][1].end},end:{...t[s-2][1].start}};return a=[["enter",l,e],["enter",u,e]],a=xs(a,t.slice(o+1,o+r+3)),a=xs(a,[["enter",c,e]]),a=xs(a,Z0(e.parser.constructs.insideSpan.null,t.slice(o+r+4,s-3),e)),a=xs(a,[["exit",c,e],t[s-2],t[s-1],["exit",u,e]]),a=xs(a,t.slice(s+1)),a=xs(a,[["exit",l,e]]),cs(t,o,t.length,a),t}function Mbe(t,e,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(d){return o?o._inactive?f(d):(s=r.parser.defined.includes(oa(r.sliceSerialize({start:o.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelEnd"),l):n(d)}function l(d){return d===40?t.attempt(Cbe,c,s?c:f)(d):d===91?t.attempt(Ebe,c,s?u:f)(d):s?c(d):f(d)}function u(d){return t.attempt(Tbe,c,f)(d)}function c(d){return e(d)}function f(d){return o._balanced=!0,n(d)}}function Dbe(t,e,n){return r;function r(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return Sr(f)?Xp(t,o)(f):o(f)}function o(f){return f===41?c(f):wz(t,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Sr(f)?Xp(t,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?kz(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Sr(f)?Xp(t,c)(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}function Ibe(t,e,n){const r=this;return i;function i(a){return Sz.call(r,t,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(oa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(a):n(a)}function s(a){return n(a)}}function $be(t,e,n){return r;function r(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),i}function i(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):n(o)}}const Nbe={name:"labelStartImage",resolveAll:KT.resolveAll,tokenize:Lbe};function Lbe(t,e,n){const r=this;return i;function i(a){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(a),t.exit("labelImageMarker"),o}function o(a){return a===91?(t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}const jbe={name:"labelStartLink",resolveAll:KT.resolveAll,tokenize:Qbe};function Qbe(t,e,n){const r=this;return i;function i(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):e(s)}}const gx={name:"lineEnding",tokenize:Fbe};function Fbe(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),nr(t,e,"linePrefix")}}const Ly={name:"thematicBreak",tokenize:Bbe};function Bbe(t,e,n){let r=0,i;return o;function o(u){return t.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(t.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||yn(u))?(t.exit("thematicBreak"),e(u)):n(u)}function l(u){return u===i?(t.consume(u),r++,l):(t.exit("thematicBreakSequence"),Wn(u)?nr(t,a,"whitespace")(u):a(u))}}const Do={continuation:{tokenize:zbe},exit:Zbe,name:"list",tokenize:Vbe},Ube={partial:!0,tokenize:Xbe},qbe={partial:!0,tokenize:Wbe};function Vbe(t,e,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(h){const p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:uC(h)){if(r.containerState.type||(r.containerState.type=p,t.enter(p,{_container:!0})),p==="listUnordered")return t.enter("listItemPrefix"),h===42||h===45?t.check(Ly,n,u)(h):u(h);if(!r.interrupt||h===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(h)}return n(h)}function l(h){return uC(h)&&++s<10?(t.consume(h),l):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(t.exit("listItemValue"),u(h)):n(h)}function u(h){return t.enter("listItemMarker"),t.consume(h),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,t.check(og,r.interrupt?n:c,t.attempt(Ube,d,f))}function c(h){return r.containerState.initialBlankLine=!0,o++,d(h)}function f(h){return Wn(h)?(t.enter("listItemPrefixWhitespace"),t.consume(h),t.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(h)}}function zbe(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(og,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nr(t,e,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!Wn(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(qbe,e,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,nr(t,t.attempt(Do,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Wbe(t,e,n){const r=this;return nr(t,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?e(o):n(o)}}function Zbe(t){t.exit(this.containerState.type)}function Xbe(t,e,n){const r=this;return nr(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!Wn(o)&&s&&s[1].type==="listItemPrefixWhitespace"?e(o):n(o)}}const m3={name:"setextUnderline",resolveTo:Hbe,tokenize:Ybe};function Hbe(t,e){let n=t.length,r,i,o;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!o&&t[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",s,e]),t.splice(o+1,0,["exit",t[r][1],e]),t[r][1].end={...t[o][1].end}):t[r][1]=s,t.push(["exit",s,e]),t}function Ybe(t,e,n){const r=this;let i;return o;function o(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(t.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return t.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(t.consume(u),a):(t.exit("setextHeadingLineSequence"),Wn(u)?nr(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||yn(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}const Gbe={tokenize:Kbe};function Kbe(t){const e=this,n=t.attempt(og,r,t.attempt(this.parser.constructs.flowInitial,i,nr(t,t.attempt(this.parser.constructs.flow,i,t.attempt(rbe,i)),"linePrefix")));return n;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const Jbe={resolveAll:_z()},ewe=xz("string"),twe=xz("text");function xz(t){return{resolveAll:_z(t==="text"?nwe:void 0),tokenize:e};function e(n){const r=this,i=this.parser.constructs[t],o=n.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function _z(t){return e;function e(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return t?t(n,r):n}}function nwe(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let o=i.length,s=-1,a=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(a=0),a){const u={type:n===t.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}const rwe={42:Do,43:Do,45:Do,48:Do,49:Do,50:Do,51:Do,52:Do,53:Do,54:Do,55:Do,56:Do,57:Do,62:vz},iwe={91:lbe},owe={[-2]:mx,[-1]:mx,32:mx},swe={35:pbe,42:Ly,45:[m3,Ly],60:ybe,61:m3,95:Ly,96:h3,126:h3},awe={38:Oz,92:yz},lwe={[-5]:gx,[-4]:gx,[-3]:gx,33:Nbe,38:Oz,42:cC,60:[j0e,_be],91:jbe,92:[dbe,yz],93:KT,95:cC,96:G0e},uwe={null:[cC,Jbe]},cwe={null:[42,95]},fwe={null:[]},dwe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:cwe,contentInitial:iwe,disable:fwe,document:rwe,flow:swe,flowInitial:owe,insideSpan:uwe,string:awe,text:lwe},Symbol.toStringTag,{value:"Module"}));function hwe(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:I(x),check:I(_),consume:b,enter:S,exit:k,interrupt:I(_,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:p,parser:t,previous:null,sliceSerialize:d,sliceStream:h,write:f};let c=e.tokenize.call(u,l);return e.resolveAll&&o.push(e),u;function f(R){return s=xs(s,R),y(),s[s.length-1]!==null?[]:(M(e,0),u.events=Z0(o,u.events,u),u.events)}function d(R,T){return mwe(h(R),T)}function h(R){return pwe(s,R)}function p(){const{_bufferIndex:R,_index:T,line:L,column:A,offset:H}=r;return{_bufferIndex:R,_index:T,line:L,column:A,offset:H}}function g(R){i[R.line]=R.column,E()}function y(){let R;for(;r._index<s.length;){const T=s[r._index];if(typeof T=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<T.length;)O(T.charCodeAt(r._bufferIndex));else O(T)}}function O(R){c=c(R)}function b(R){yn(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,E()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function S(R,T){const L=T||{};return L.type=R,L.start=p(),u.events.push(["enter",L,u]),a.push(L),L}function k(R){const T=a.pop();return T.end=p(),u.events.push(["exit",T,u]),T}function x(R,T){M(R,T.from)}function _(R,T){T.restore()}function I(R,T){return L;function L(A,H,W){let Z,G,K,U;return Array.isArray(A)?Y(A):"tokenize"in A?Y([A]):B(A);function B(ue){return z;function z(X){const J=X!==null&&ue[X],fe=X!==null&&ue.null,we=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(fe)?fe:fe?[fe]:[]];return Y(we)(X)}}function Y(ue){return Z=ue,G=0,ue.length===0?W:j(ue[G])}function j(ue){return z;function z(X){return U=P(),K=ue,ue.partial||(u.currentConstruct=ue),ue.name&&u.parser.constructs.disable.null.includes(ue.name)?ee():ue.tokenize.call(T?Object.assign(Object.create(u),T):u,l,ne,ee)(X)}}function ne(ue){return R(K,U),H}function ee(ue){return U.restore(),++G<Z.length?j(Z[G]):W}}}function M(R,T){R.resolveAll&&!o.includes(R)&&o.push(R),R.resolve&&cs(u.events,T,u.events.length-T,R.resolve(u.events.slice(T),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function P(){const R=p(),T=u.previous,L=u.currentConstruct,A=u.events.length,H=Array.from(a);return{from:A,restore:W};function W(){r=R,u.previous=T,u.currentConstruct=L,u.events.length=A,a=H,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function pwe(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,o=e.end._bufferIndex;let s;if(n===i)s=[t[n].slice(r,o)];else{if(s=t.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(t[i].slice(0,o))}return s}function mwe(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const o=t[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
233
233
  `;break}case-3:{s=`\r
234
234
  `;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function gwe(t){const r={constructs:mz([dwe,...(t||{}).extensions||[]]),content:i(A0e),defined:[],document:i(D0e),flow:i(Gbe),lazy:{},string:i(ewe),text:i(twe)};return r;function i(o){return s;function s(a){return hwe(r,o,a)}}}function vwe(t){for(;!bz(t););return t}const g3=/[\0\t\n\r]/g;function ywe(){let t=1,e="",n=!0,r;return i;function i(o,s,a){const l=[];let u,c,f,d,h;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,e="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if(g3.lastIndex=f,u=g3.exec(o),d=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(d),!u){e=o.slice(f);break}if(h===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(o.slice(f,d)),t+=d-f),h){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}f=d+1}return a&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}const Owe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bwe(t){return t.replace(Owe,wwe)}function wwe(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return gz(n.slice(o?2:1),o?16:10)}return GT(n)||t}const Pz={}.hasOwnProperty;function Swe(t,e,n){return typeof e!="string"&&(n=e,e=void 0),kwe(n)(vwe(gwe(n).document().write(ywe()(t,e,!0))))}function kwe(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(me),autolinkProtocol:P,autolinkEmail:P,atxHeading:o(ve),blockQuote:o(fe),characterEscape:P,characterReference:P,codeFenced:o(we),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(we,s),codeText:o(Te,s),codeTextData:P,data:P,codeFlowValue:P,definition:o(Re),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Q),hardBreakEscape:o(ge),hardBreakTrailing:o(ge),htmlFlow:o(ie,s),htmlFlowData:P,htmlText:o(ie,s),htmlTextData:P,image:o(oe),label:s,link:o(me),listItem:o(Fe),listItemValue:d,listOrdered:o($e,f),listUnordered:o($e),paragraph:o(Pe),reference:j,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(ve),strong:o(V),thematicBreak:o(_e)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:J,autolinkProtocol:X,blockQuote:l(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:ue,characterReference:z,codeFenced:l(y),codeFencedFence:g,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:E,codeIndented:l(O),codeText:l(H),codeTextData:E,data:E,definition:l(),definitionDestinationString:k,definitionLabelString:b,definitionTitleString:S,emphasis:l(),hardBreakEscape:l(T),hardBreakTrailing:l(T),htmlFlow:l(L),htmlFlowData:E,htmlText:l(A),htmlTextData:E,image:l(Z),label:K,labelText:G,lineEnding:R,link:l(W),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ne,resourceDestinationString:U,resourceTitleString:B,resource:Y,setextHeading:l(M),setextHeadingLineSequence:I,setextHeadingText:_,strong:l(),thematicBreak:l()}};Cz(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(de){let Se={type:"root",children:[]};const Me={stack:[Se],tokenStack:[],config:e,enter:a,exit:u,buffer:s,resume:c,data:n},et=[];let st=-1;for(;++st<de.length;)if(de[st][1].type==="listOrdered"||de[st][1].type==="listUnordered")if(de[st][0]==="enter")et.push(st);else{const Le=et.pop();st=i(de,Le,st)}for(st=-1;++st<de.length;){const Le=e[de[st][0]];Pz.call(Le,de[st][1].type)&&Le[de[st][1].type].call(Object.assign({sliceSerialize:de[st][2].sliceSerialize},Me),de[st][1])}if(Me.tokenStack.length>0){const Le=Me.tokenStack[Me.tokenStack.length-1];(Le[1]||v3).call(Me,void 0,Le[0])}for(Se.position={start:uu(de.length>0?de[0][1].start:{line:1,column:1,offset:0}),end:uu(de.length>0?de[de.length-2][1].end:{line:1,column:1,offset:0})},st=-1;++st<e.transforms.length;)Se=e.transforms[st](Se)||Se;return Se}function i(de,Se,Me){let et=Se-1,st=-1,Le=!1,at,We,dt,wt;for(;++et<=Me;){const pt=de[et];switch(pt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pt[0]==="enter"?st++:st--,wt=void 0;break}case"lineEndingBlank":{pt[0]==="enter"&&(at&&!wt&&!st&&!dt&&(dt=et),wt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wt=void 0}if(!st&&pt[0]==="enter"&&pt[1].type==="listItemPrefix"||st===-1&&pt[0]==="exit"&&(pt[1].type==="listUnordered"||pt[1].type==="listOrdered")){if(at){let It=et;for(We=void 0;It--;){const nt=de[It];if(nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank"){if(nt[0]==="exit")continue;We&&(de[We][1].type="lineEndingBlank",Le=!0),nt[1].type="lineEnding",We=It}else if(!(nt[1].type==="linePrefix"||nt[1].type==="blockQuotePrefix"||nt[1].type==="blockQuotePrefixWhitespace"||nt[1].type==="blockQuoteMarker"||nt[1].type==="listItemIndent"))break}dt&&(!We||dt<We)&&(at._spread=!0),at.end=Object.assign({},We?de[We][1].start:pt[1].end),de.splice(We||et,0,["exit",at,pt[2]]),et++,Me++}if(pt[1].type==="listItemPrefix"){const It={type:"listItem",_spread:!1,start:Object.assign({},pt[1].start),end:void 0};at=It,de.splice(et,0,["enter",It,pt[2]]),et++,Me++,dt=void 0,wt=!0}}}return de[Se][1]._spread=Le,Me}function o(de,Se){return Me;function Me(et){a.call(this,de(et),et),Se&&Se.call(this,et)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(de,Se,Me){this.stack[this.stack.length-1].children.push(de),this.stack.push(de),this.tokenStack.push([Se,Me||void 0]),de.position={start:uu(Se.start),end:void 0}}function l(de){return Se;function Se(Me){de&&de.call(this,Me),u.call(this,Me)}}function u(de,Se){const Me=this.stack.pop(),et=this.tokenStack.pop();if(et)et[0].type!==de.type&&(Se?Se.call(this,de,et[0]):(et[1]||v3).call(this,de,et[0]));else throw new Error("Cannot close `"+de.type+"` ("+Zp({start:de.start,end:de.end})+"): it’s not open");Me.position.end=uu(de.end)}function c(){return YT(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(de){if(this.data.expectingFirstListItemValue){const Se=this.stack[this.stack.length-2];Se.start=Number.parseInt(this.sliceSerialize(de),10),this.data.expectingFirstListItemValue=void 0}}function h(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.lang=de}function p(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.meta=de}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de.replace(/(\r?\n|\r)$/g,"")}function b(de){const Se=this.resume(),Me=this.stack[this.stack.length-1];Me.label=Se,Me.identifier=oa(this.sliceSerialize(de)).toLowerCase()}function S(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.title=de}function k(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.url=de}function x(de){const Se=this.stack[this.stack.length-1];if(!Se.depth){const Me=this.sliceSerialize(de).length;Se.depth=Me}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function I(de){const Se=this.stack[this.stack.length-1];Se.depth=this.sliceSerialize(de).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function P(de){const Me=this.stack[this.stack.length-1].children;let et=Me[Me.length-1];(!et||et.type!=="text")&&(et=ye(),et.position={start:uu(de.start),end:void 0},Me.push(et)),this.stack.push(et)}function E(de){const Se=this.stack.pop();Se.value+=this.sliceSerialize(de),Se.position.end=uu(de.end)}function R(de){const Se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Me=Se.children[Se.children.length-1];Me.position.end=uu(de.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(Se.type)&&(P.call(this,de),E.call(this,de))}function T(){this.data.atHardBreak=!0}function L(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de}function A(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de}function H(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.value=de}function W(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=Se,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function Z(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=Se,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function G(de){const Se=this.sliceSerialize(de),Me=this.stack[this.stack.length-2];Me.label=bwe(Se),Me.identifier=oa(Se).toLowerCase()}function K(){const de=this.stack[this.stack.length-1],Se=this.resume(),Me=this.stack[this.stack.length-1];if(this.data.inReference=!0,Me.type==="link"){const et=de.children;Me.children=et}else Me.alt=Se}function U(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.url=de}function B(){const de=this.resume(),Se=this.stack[this.stack.length-1];Se.title=de}function Y(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function ne(de){const Se=this.resume(),Me=this.stack[this.stack.length-1];Me.label=Se,Me.identifier=oa(this.sliceSerialize(de)).toLowerCase(),this.data.referenceType="full"}function ee(de){this.data.characterReferenceType=de.type}function ue(de){const Se=this.sliceSerialize(de),Me=this.data.characterReferenceType;let et;Me?(et=gz(Se,Me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):et=GT(Se);const st=this.stack[this.stack.length-1];st.value+=et}function z(de){const Se=this.stack.pop();Se.position.end=uu(de.end)}function X(de){E.call(this,de);const Se=this.stack[this.stack.length-1];Se.url=this.sliceSerialize(de)}function J(de){E.call(this,de);const Se=this.stack[this.stack.length-1];Se.url="mailto:"+this.sliceSerialize(de)}function fe(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function Te(){return{type:"inlineCode",value:""}}function Re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function ge(){return{type:"break"}}function ie(){return{type:"html",value:""}}function oe(){return{type:"image",title:null,url:"",alt:null}}function me(){return{type:"link",title:null,url:"",children:[]}}function $e(de){return{type:"list",ordered:de.type==="listOrdered",start:null,spread:de._spread,children:[]}}function Fe(de){return{type:"listItem",spread:de._spread,checked:null,children:[]}}function Pe(){return{type:"paragraph",children:[]}}function V(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function _e(){return{type:"thematicBreak"}}}function uu(t){return{line:t.line,column:t.column,offset:t.offset}}function Cz(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?Cz(t,r):xwe(t,r)}}function xwe(t,e){let n;for(n in e)if(Pz.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function v3(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Zp({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Zp({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Zp({start:e.start,end:e.end})+") is still open")}function _we(t){const e=this;e.parser=n;function n(r){return Swe(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function Pwe(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function Cwe(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
@@ -375,7 +375,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStat
375
375
  `+n),r.b(" </div>"),r.b(`
376
376
  `+n),r.b("</div>"),r.fl()},partials:{},subs:{}});mi["tag-file-added"]=new ii.Template({code:function(t,e,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),r.fl()},partials:{},subs:{}});mi["tag-file-changed"]=new ii.Template({code:function(t,e,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),r.fl()},partials:{},subs:{}});mi["tag-file-deleted"]=new ii.Template({code:function(t,e,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),r.fl()},partials:{},subs:{}});mi["tag-file-renamed"]=new ii.Template({code:function(t,e,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),r.fl()},partials:{},subs:{}});class Q_e{constructor({compiledTemplates:e={},rawTemplates:n={}}){const r=Object.entries(n).reduce((i,[o,s])=>{const a=ii.compile(s,{asString:!1});return Object.assign(Object.assign({},i),{[o]:a})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},mi),e),r)}static compile(e){return ii.compile(e,{asString:!1})}render(e,n,r,i,o){const s=this.templateKey(e,n);try{return this.preCompiledTemplates[s].render(r,i,o)}catch{throw new Error(`Could not find template to render '${s}'`)}}template(e,n){return this.preCompiledTemplates[this.templateKey(e,n)]}templateKey(e,n){return`${e}-${n}`}}const F_e=Object.assign(Object.assign(Object.assign({},fW),dW),{outputFormat:i_e.LINE_BY_LINE,drawFileList:!0});function B_e(t,e={}){const n=Object.assign(Object.assign({},F_e),e),r=typeof t=="string"?h_e(t,n):t,i=new Q_e(n),{colorScheme:o}=n,s={colorScheme:o},a=n.drawFileList?new E_e(i,s).render(r):"",l=n.outputFormat==="side-by-side"?new $_e(i,n).render(r):new A_e(i,n).render(r);return a+l}const U_e=({diffData:t})=>{const{content:e,openTab:n,setIsAIChatOpen:r}=N.useContext(Lr),i=N.useRef(null),o=Object.values(t).filter(c=>c.length>0);let s=0,a=0;for(const c of o){const f=n_e(c);s+=f.additions,a+=f.deletions}const l=r_e(t),u=B_e(l,{drawFileList:!1,matching:"words",diffStyle:"word",outputFormat:"line-by-line"});return N.useEffect(()=>{if(!i.current)return;const c=h=>{const p=h.target;if(p.classList.contains("d2h-file-name")){h.preventDefault(),h.stopPropagation(),console.log("File name clicked");const g=p.textContent?.trim();if(console.log("Clicked file name:",g),g){const y=e?.files;if(y){const O=Object.entries(y).find(([b,S])=>S.name===g)?.[0];console.log("Mapped file ID:",O),O&&(n({fileId:O,isTransient:!1}),r(!1))}}}},d=i.current.querySelectorAll(".d2h-file-name");return d.forEach(h=>{h.addEventListener("click",c),h.style.cursor="pointer",h.style.textDecoration="underline",h.style.color="#58a6ff"}),()=>{d.forEach(h=>{h.removeEventListener("click",c)})}},[u,e,n,r]),o.length===0?null:q.jsxs("div",{className:"diff-view",children:[q.jsx("div",{className:"diff-summary",children:q.jsxs("div",{className:"diff-stats",children:[q.jsxs("span",{className:"files-changed",children:[o.length," file",o.length!==1?"s":""," changed"]}),s>0&&q.jsxs("span",{className:"additions",children:["+",s]}),a>0&&q.jsxs("span",{className:"deletions",children:["-",a]})]})}),q.jsx("div",{className:"diff-files",ref:i,dangerouslySetInnerHTML:{__html:u}})]})},q_e=({id:t,role:e,content:n,timestamp:r,isStreaming:i,diffData:o,chatId:s})=>{const{additionalWidgets:a,handleSendMessage:l}=N.useContext(Lr),u=N.useMemo(()=>phe(r).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),[r]),c=N.useMemo(()=>`ai-chat-message ${e}${i?" streaming":""}`,[e,i]);return q.jsxs("div",{className:c,children:[q.jsxs("div",{className:"ai-chat-message-content",children:[q.jsx(Nz,{remarkPlugins:[sW],children:n}),o&&Object.keys(o).length>0&&q.jsx(U_e,{diffData:o}),a&&s&&a({messageId:t,chatId:s,handleSendMessage:l})]}),q.jsx("div",{className:"ai-chat-message-time",children:u})]})},V_e=N.memo(q_e),z_e=()=>q.jsx("div",{className:"ai-chat-message assistant",children:q.jsx("div",{className:"ai-chat-message-content",children:q.jsxs("div",{className:"ai-chat-typing",children:[q.jsx("span",{}),q.jsx("span",{}),q.jsx("span",{})]})})}),W_e=N.memo(z_e),Z_e=({content:t,isVisible:e})=>{const n=N.useRef(null),[r,i]=N.useState(!1),[o,s]=N.useState(!0),a=N.useRef(),l=N.useCallback(()=>{const f=n.current;if(!f)return!0;const d=10,{scrollTop:h,scrollHeight:p,clientHeight:g}=f;return p-h-g<d},[]),u=N.useCallback(()=>{if(!o)return;const f=n.current;f&&f.scrollTo({top:f.scrollHeight,behavior:"smooth"})},[o]),c=N.useCallback(()=>{if(!n.current)return;const d=l();a.current&&clearTimeout(a.current),!d&&!r&&(i(!0),s(!1)),d&&r&&(a.current=setTimeout(()=>{i(!1),s(!0)},300))},[r,l]);return N.useEffect(()=>(o&&!r&&e&&t&&(a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{u()},50)),()=>{a.current&&clearTimeout(a.current)}),[t,o,r,e,u]),N.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]),N.useEffect(()=>{e&&(i(!1),s(!0))},[e]),!e||!t?null:q.jsxs("div",{className:"thinking-scratchpad",children:[q.jsxs("div",{className:"thinking-scratchpad-header",children:[q.jsx("span",{className:"thinking-scratchpad-icon",children:"🧠"}),q.jsx("span",{className:"thinking-scratchpad-title",children:"AI is thinking..."})]}),q.jsx("div",{className:"thinking-scratchpad-content",ref:n,onScroll:c,children:q.jsx(Nz,{remarkPlugins:[sW],children:t})})]})},X_e=N.memo(Z_e),H_e=({messages:t,isLoading:e,chatId:n,aiScratchpad:r})=>{const i=N.useRef(null),o=N.useRef(null),[s,a]=N.useState(!1),[l,u]=N.useState(!0),c=N.useRef(),f=N.useCallback(()=>{const k=o.current;if(!k)return!0;const x=50,{scrollTop:_,scrollHeight:I,clientHeight:M}=k;return I-_-M<x},[]),d=N.useCallback(()=>{l&&i.current?.scrollIntoView({behavior:"smooth",block:"end"})},[l]),h=N.useCallback(()=>{if(!o.current)return;const x=f();c.current&&clearTimeout(c.current),!x&&!s&&(a(!0),u(!1)),x&&s&&(c.current=setTimeout(()=>{a(!1),u(!0)},500))},[s,f]);N.useEffect(()=>(l&&!s&&(c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{d()},100)),()=>{c.current&&clearTimeout(c.current)}),[t,l,s,d]);const[p,g]=N.useState(e);N.useEffect(()=>{p&&!e&&(i.current?.scrollIntoView({behavior:"smooth",block:"end"}),a(!1),u(!0)),g(e)},[e,p]),N.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]);const y=t[t.length-1],O=y?.role==="assistant"&&y.content!=="",b=e&&!O,S=!!(r&&r.trim());return q.jsxs("div",{className:"ai-chat-messages",ref:o,onScroll:h,children:[t.map((k,x)=>q.jsx(V_e,{id:k.id,role:k.role,content:k.content,timestamp:k.timestamp,diffData:k.diffData,chatId:n},k.id)),S&&q.jsx(X_e,{content:r||"",isVisible:S}),b&&q.jsx(W_e,{}),q.jsx("div",{ref:i})]})},Y_e=N.memo(H_e),G_e=t=>{const[e,n]=N.useState(!1),[r,i]=N.useState(null),[,o]=N.useState("");N.useEffect(()=>{const l=window.SpeechRecognition||window.webkitSpeechRecognition;if(l){const u=new l;return u.continuous=!0,u.interimResults=!0,u.onresult=c=>{let f="",d="";for(let p=0;p<c.results.length;p++){const g=c.results[p];g.isFinal?f+=g[0].transcript:d+=g[0].transcript}o(f);const h=f+d;t(h)},u.onerror=c=>{console.error("Speech recognition error",c.error),n(!1)},u.onend=()=>{n(!1),o("")},i(u),()=>{u.abort()}}},[t]);const s=N.useCallback(()=>{if(!r){console.error("Speech recognition not supported in this browser");return}e?(r.stop(),n(!1)):(o(""),r.start(),n(!0))},[e,r]),a=N.useCallback(()=>{r&&e&&(r.stop(),n(!1),o(""))},[e,r]);return{isSpeaking:e,toggleSpeechRecognition:s,stopSpeaking:a}},K_e=({aiChatMessage:t,setAIChatMessage:e,onSendMessage:n,isLoading:r,focused:i,aiChatMode:o,setAIChatMode:s,navigateMessageHistoryUp:a,navigateMessageHistoryDown:l,resetMessageHistoryNavigation:u})=>{const c=N.useRef(null),{isSpeaking:f,toggleSpeechRecognition:d,stopSpeaking:h}=G_e(e);N.useEffect(()=>{i&&c.current&&c.current.focus()},[i]);const p=N.useCallback(O=>{if(O.key==="Enter"&&!O.shiftKey)O.preventDefault(),n();else if(O.key==="Enter"&&O.shiftKey)O.stopPropagation();else if(O.key==="ArrowUp"){const b=O.target,{selectionStart:S,value:k}=b;k.substring(0,S).split(`
377
377
  `).length===1&&S===0&&(O.preventDefault(),a())}else if(O.key==="ArrowDown"){const b=O.target,{selectionStart:S,value:k}=b,_=k.substring(S).split(`
378
- `);_.length===1&&_[0]===""&&(O.preventDefault(),l())}},[n,a,l]),g=N.useCallback(()=>{f&&h(),n()},[n,f,h]),y=N.useCallback(O=>{e(O.target.value),u()},[e,u]);return q.jsxs("div",{className:"ai-chat-input-container",children:[W1e,q.jsxs(Ir.Group,{className:"ai-chat-input-group",children:[q.jsx(Ir.Control,{as:"textarea",rows:5,value:t,onChange:y,onKeyDown:p,ref:c,placeholder:o==="edit"?"Ask me to make code changes...":"Ask me anything about your code...",spellCheck:"false",disabled:r,"aria-label":"Chat message input"}),q.jsxs("div",{className:"ai-chat-input-footer",children:[q.jsx("span",{className:"ai-chat-hint",children:t?"Press Enter to send":""}),q.jsxs("div",{style:{display:"flex",gap:"8px"},children:[q.jsx(Il,{variant:f?"danger":"outline-secondary",size:"sm",onClick:d,disabled:r,"aria-label":f?"Stop voice typing":"Start voice typing",title:f?"Stop voice typing":"Start voice typing",style:{borderColor:f?void 0:"#dee2e6",borderRadius:"0.375rem",borderWidth:"1px",borderStyle:"solid"},children:f?q.jsx(MOe,{}):q.jsx(AOe,{})}),q.jsx(Il,{variant:t.trim()?"primary":"outline-secondary",onClick:g,disabled:!t.trim()||r,className:"ai-chat-send-button","aria-label":"Send message",title:"Send message (Enter)",children:"Send"})]})]})]})]})},J_e=N.memo(K_e),eQ=!1,ePe=!1,tPe=()=>{const{aiChatFocused:t,content:e,aiChatMode:n,aiChatMessage:r,isLoading:i,currentChatId:o,selectedChatId:s,setSelectedChatId:a,aiErrorMessage:l,setAIChatMode:u,clearStoredAIPrompt:c,getStoredAIPrompt:f,setAIChatMessage:d,handleSendMessage:h,setAIErrorMessage:p,navigateMessageHistoryUp:g,navigateMessageHistoryDown:y,resetMessageHistoryNavigation:O}=N.useContext(Lr),b=s,S=b?e?.chats?.[b]:null,k=S?.messages||[],x=S?.aiStatus,_=S?.aiScratchpad,I=N.useMemo(()=>k.map((L,A)=>({...L,id:L.id||`msg-${A}`})),[k]),M=!s||k.length===0,P=e?.chats||{},R=Object.values(P).filter(L=>L.messages.length>0).length>0,T=N.useCallback(()=>(s||a(o),h()),[s,a,o,h]);return N.useEffect(()=>{if(f){const L=f();L&&(d(L.prompt),u(L.modelName==="ask"?"ask":"edit"),c(),setTimeout(()=>{h(L.prompt)},100))}},[f,c,d,u,h]),q.jsxs("div",{className:"ai-chat-container",children:[q.jsx("div",{className:"ai-chat-content",children:q.jsxs("div",{className:"ai-chat-messages-container",children:[M?q.jsxs("div",{className:"ai-chat-empty",children:[q.jsx("div",{className:"ai-chat-empty-icon",children:"✨"}),q.jsx("h3",{className:"ai-chat-empty-title",children:"Edit with AI"}),q.jsx("div",{className:"ai-chat-empty-text",children:"How can I help you?"}),R&&ePe,eQ,eQ]}):q.jsx(Y_e,{messages:I,aiStatus:x,isLoading:i,chatId:s||o,aiScratchpad:_}),l&&q.jsx("div",{className:"ai-chat-error",children:q.jsxs("div",{className:"ai-chat-error-content",children:[q.jsx("span",{className:"ai-chat-error-icon",children:"⚠️"}),q.jsx("span",{className:"ai-chat-error-message",children:l}),q.jsx("button",{className:"ai-chat-error-dismiss",onClick:()=>p(null),"aria-label":"Dismiss error",children:"×"})]})})]})}),q.jsx("div",{className:"ai-chat-input-fixed",children:q.jsx(J_e,{aiChatMessage:r,setAIChatMessage:d,onSendMessage:T,isLoading:i,focused:t,aiChatMode:n,setAIChatMode:u,navigateMessageHistoryUp:g,navigateMessageHistoryDown:y,resetMessageHistoryNavigation:O})})]})};function nPe(t){const e=t.split(".");switch(e[e.length-1]){case"jsx":case"tsx":return q.jsx(_Oe,{});case"js":return q.jsx(kOe,{});case"ts":return q.jsx(xOe,{});case"json":return q.jsx(TOe,{});case"md":return q.jsx(ROe,{});case"html":return q.jsx(COe,{});case"css":return q.jsx(EOe,{});case"svelte":return q.jsx(POe,{});default:return q.jsx(KV,{})}}const pR=({name:t})=>q.jsx("i",{className:"file-icon",children:N.useMemo(()=>nPe(t),[t])}),hW=({show:t,onClose:e,onConfirm:n,isDirectory:r,name:i})=>{const o=N.useCallback(s=>{s.key==="Enter"&&n()},[n]);return N.useEffect(()=>(t?window.addEventListener("keydown",o):window.removeEventListener("keydown",o),()=>{window.removeEventListener("keydown",o)}),[t,o]),q.jsxs($r,{show:t,onHide:e,centered:!0,children:[q.jsx($r.Header,{closeButton:!0,onClick:e,children:q.jsxs($r.Title,{children:["Delete"," ",i==="all files"?"All Files":r?"Directory":"File"]})}),q.jsx($r.Body,{children:q.jsx("p",{children:i==="all files"?"This will delete all files in the project.":q.jsxs(q.Fragment,{children:["This will delete the"," ",r?"directory":"file"," ",q.jsx("strong",{children:i}),"."]})})}),q.jsxs($r.Footer,{children:[q.jsx(Il,{variant:"secondary",type:"button",onClick:e,children:"Cancel"}),q.jsx(Il,{variant:"primary",onClick:n,children:"Delete"})]})]})},pW=({id:t,name:e,children:n,handleClick:r,handleDoubleClick:i,handleRenameClick:o,handleDeleteClick:s,isDirectory:a=!1,isActive:l=!1,renameFileTooltipText:u=a?"Rename Directory":"Rename File",deleteFileTooltipText:c=a?"Delete Directory":"Delete File"})=>{const{hoveredItemId:f,setHoveredItemId:d}=N.useContext(Lr),h=f===t,p=N.useCallback(H=>{d(H?t:null)},[t,d]),[g,y]=N.useState(!1),[O,b]=N.useState(""),[S,k]=N.useState(!1),x=N.useRef(null),_=N.useCallback(H=>{H.key==="Escape"?y(!1):H.key==="Enter"&&x.current.blur()},[]),I=N.useCallback(()=>{y(!1),x.current.value.trim()===""?k(!0):o(x.current.value)},[o]),M=N.useCallback(H=>{H.stopPropagation(),y(!g),b(e)},[e,g]);N.useEffect(()=>{g&&x.current.focus()},[g]);const P=N.useCallback(H=>{H.stopPropagation(),k(!0)},[]),E=N.useCallback(()=>{k(!1)},[]),R=N.useCallback(H=>{H?.stopPropagation(),k(!1),s()},[s]),T=N.useCallback(()=>{p(!0)},[]),L=N.useCallback(()=>{p(!1)},[]),A=N.useCallback(()=>{b(x.current.value)},[]);return q.jsxs("div",{className:`file-or-directory user-select-none ${l?"active-file":""}`,onClick:g?null:r,onDoubleClick:g||!i?null:i,onMouseEnter:T,onMouseLeave:L,children:[q.jsx("div",{className:"name",children:g?q.jsxs(q.Fragment,{children:[q.jsx(pR,{name:O}),q.jsx("input",{className:"rename-input",ref:x,type:"text","aria-label":"Field name",value:O,onKeyDown:_,onBlur:I,onChange:A})]}):n}),h&&!g?q.jsxs("div",{className:"utils",style:{position:"relative"},children:[q.jsx(ho,{placement:"top",overlay:q.jsx(po,{id:"rename-file-tooltip",children:u}),children:q.jsx("i",{onClick:M,className:"icon-button icon-button-dark",children:q.jsx(hOe,{})})}),q.jsx(ho,{placement:"top",overlay:q.jsx(po,{id:"delete-file-tooltip",children:c}),children:q.jsx("i",{onClick:P,className:"icon-button icon-button-dark",children:q.jsx(gOe,{})})})]}):null,S&&q.jsx(hW,{show:S,onClose:E,onConfirm:R,isDirectory:a,name:e})]})},rPe=({name:t,path:e,children:n,handleFileClick:r,handleFileDoubleClick:i})=>{const{renameDirectory:o,deleteDirectory:s,isDirectoryOpen:a,toggleDirectory:l}=N.useContext(Lr),u=N.useCallback(()=>{l(e)},[l,e]),c=N.useCallback(()=>{s(e)},[s,e]),f=N.useCallback(h=>{o(e,t,h)},[o,e,t]),d=N.useMemo(()=>a(e),[a,e]);return q.jsxs(q.Fragment,{children:[q.jsxs(pW,{id:e,name:t,handleClick:u,handleDeleteClick:c,handleRenameClick:f,isDirectory:!0,children:[q.jsx("div",{className:"arrow-wrapper",style:{transform:`rotate(${d?90:0}deg)`},children:q.jsx(JV,{})}),q.jsx("div",{className:"name",children:t})]}),n&&d?q.jsx("div",{className:"indentation",children:n.map(h=>{const{fileId:p}=h,{path:g}=h;return q.jsx(mW,{entity:h,handleFileClick:r,handleFileDoubleClick:i},p||g)})}):null]})},iPe=({presence:t})=>q.jsx("div",{className:"presence-indicators",children:t.map((e,n)=>{const i=`rgb(${Q8(e.username)})`;return q.jsx("div",{className:"presence-indicator",style:{backgroundColor:i},children:e.username[0]},n)})}),oPe=({name:t,fileId:e,handleFileClick:n,handleFileDoubleClick:r,isActive:i,presence:o})=>{const{renameFile:s,deleteFile:a}=N.useContext(Lr),l=N.useCallback(()=>{n(e)},[e,n]),u=N.useCallback(()=>{r(e)},[e,r]),c=N.useCallback(()=>{a(e)},[e,a]),f=N.useCallback(d=>{s(e,d)},[e,s]);return q.jsxs(pW,{id:e,name:t,handleClick:l,handleDoubleClick:u,handleDeleteClick:c,handleRenameClick:f,isActive:i,children:[q.jsx(iPe,{presence:o}),q.jsx(pR,{name:t}),t]})},mW=({entity:t,handleFileClick:e,handleFileDoubleClick:n})=>{const{activePane:r,sidebarPresenceIndicators:i}=N.useContext(Lr),{name:o,file:s,fileId:a}=t,{path:l,children:u}=t,c=i?.filter(f=>f.fileId===a)||[];return s?q.jsx(oPe,{fileId:a,name:o,handleFileClick:e,handleFileDoubleClick:n,isActive:a===r.activeFileId,presence:c}):q.jsx(rPe,{name:o,path:l,children:u,handleFileClick:e,handleFileDoubleClick:n})};function tQ(t,e,n,r){const i=t.state.doc.line(n).from+r;t.dispatch({selection:{anchor:i,head:i+e.length},scrollIntoView:!0,effects:kt.scrollIntoView(i,{y:"center"})})}function nQ(t,e){const n=t.scrollTop,r=n+t.clientHeight,i=e.offsetTop-t.offsetTop,o=i+e.clientHeight;return i>=n+100&&o<=r-100}const sPe=()=>{const[t,e]=N.useState(!1),[n,r]=N.useState(!1),{search:i,setSearch:o,activePaneId:s,setActiveFileId:a,setSearchResults:l,setSearchFileVisibility:u,setSearchLineVisibility:c,setSearchFocusedIndex:f,shareDBDoc:d,editorCache:h,openTab:p}=N.useContext(Lr),{pattern:g,results:y,focusedIndex:O,focusedChildIndex:b,focused:S}=i,k=N.useRef(null),x=Object.entries(y).filter(([E,R])=>R.visibility!=="closed");N.useEffect(()=>{if(t){r(g.trim().length>=1);const E=setTimeout(()=>{g.trim().length>=1&&k.current&&(l(d),r(!1))},2e3);return()=>clearTimeout(E)}else e(!0)},[g]);const _=N.useCallback((E,R)=>{u(d,E,R.visibility==="open"&&b===null?"flattened":"open")},[O,b]),I=N.useCallback(E=>{u(d,E,"closed")},[]),M=N.useCallback((E,R)=>{a(E),f(R,null)},[]),P=E=>{if(E.preventDefault(),x.length===0)return;const R=x[O][1].matches.length;switch(E.key){case"Tab":f(O,null);break;case"ArrowUp":if(O==0&&b==null)break;if(b===null||R==0){const H=x[O-1][1].matches.length;f(O-1,H>0?H-1:null)}else b===0?f(O,null):f(O,b-1);break;case"ArrowDown":if(O==x.length-1&&b==R-1)break;b===null&&R>0?f(O,0):b==R-1||R==0?f(O+1,null):f(O,b+1);break;case"ArrowLeft":b!==null?f(O,null):_(x[O][0],x[O][1]);break;case"ArrowRight":x[O][1].visibility!=="open"?_(x[O][0],x[O][1]):b===null&&R!==0&&f(O,0);break;case"Enter":case" ":const A=x[O][0];if(p({fileId:A,isTransient:!0}),a(A),b!==null){const H=x[O][1].matches[b].line,W=x[O][1].matches[b].index,Z=vm(A,s);h.has(Z)&&tQ(h.get(Z).editor,g,H,W)}break}const T=x[O][0],L=document.getElementById("sidebar-view-container");if(L)if(b===null){const A=document.getElementById(T);nQ(L,A)||A.scrollIntoView({block:"center"})}else{const A=x[O][1].matches[b].line,H=document.getElementById(T+"-"+A);nQ(L,H)||H.scrollIntoView({block:"center"})}};return N.useEffect(()=>{k.current&&k.current.focus()},[S]),q.jsxs("div",{children:[q.jsx(Ir.Group,{className:"sidebar-search-form mb-3",controlId:"searchName",children:q.jsx(Ir.Control,{type:"text",value:g,onChange:E=>o(E.target.value),ref:k,spellCheck:"false"})}),Object.keys(y).length>=1&&g.trim().length>=1?q.jsx("div",{onKeyDown:P,tabIndex:0,className:"search-results",children:x.map(([E,R],T)=>{const L=R.matches;return q.jsxs("div",{className:"search-result",children:[q.jsxs("div",{onClick:()=>M(E,T),id:E,className:`search-file-heading
378
+ `);_.length===1&&_[0]===""&&(O.preventDefault(),l())}},[n,a,l]),g=N.useCallback(()=>{f&&h(),n()},[n,f,h]),y=N.useCallback(O=>{e(O.target.value),u()},[e,u]);return q.jsxs("div",{className:"ai-chat-input-container",children:[W1e,q.jsxs(Ir.Group,{className:"ai-chat-input-group",children:[q.jsx(Ir.Control,{as:"textarea",rows:5,value:t,onChange:y,onKeyDown:p,ref:c,placeholder:o==="edit"?"Ask me to make code changes...":"Ask me anything about your code...",spellCheck:"false",disabled:r,"aria-label":"Chat message input"}),q.jsxs("div",{className:"ai-chat-input-footer",children:[q.jsx("span",{className:"ai-chat-hint",children:t?"Press Enter to send":""}),q.jsxs("div",{style:{display:"flex",gap:"8px"},children:[q.jsx(Il,{variant:f?"danger":"outline-secondary",size:"sm",onClick:d,disabled:r,"aria-label":f?"Stop voice typing":"Start voice typing",title:f?"Stop voice typing":"Start voice typing",style:{borderColor:f?void 0:"#dee2e6",borderRadius:"0.375rem",borderWidth:"1px",borderStyle:"solid"},children:f?q.jsx(MOe,{}):q.jsx(AOe,{})}),q.jsx(Il,{variant:t.trim()?"primary":"outline-secondary",onClick:g,disabled:!t.trim()||r,className:"ai-chat-send-button","aria-label":"Send message",title:"Send message (Enter)",children:"Send"})]})]})]})]})},J_e=N.memo(K_e),eQ=!1,ePe=!1,tPe=()=>{const{aiChatFocused:t,content:e,aiChatMode:n,aiChatMessage:r,isLoading:i,currentChatId:o,selectedChatId:s,setSelectedChatId:a,aiErrorMessage:l,setAIChatMode:u,clearStoredAIPrompt:c,getStoredAIPrompt:f,setAIChatMessage:d,handleSendMessage:h,setAIErrorMessage:p,navigateMessageHistoryUp:g,navigateMessageHistoryDown:y,resetMessageHistoryNavigation:O}=N.useContext(Lr),b=s,S=b?e?.chats?.[b]:null,k=S?.messages||[];S?.aiStatus;const x=S?.aiScratchpad,_=N.useMemo(()=>k.map((T,L)=>({...T,id:T.id||`msg-${L}`})),[k]),I=!s||k.length===0,M=e?.chats||{},E=Object.values(M).filter(T=>T.messages.length>0).length>0,R=N.useCallback(()=>(s||a(o),h()),[s,a,o,h]);return N.useEffect(()=>{if(f){const T=f();T&&(d(T.prompt),u(T.modelName==="ask"?"ask":"edit"))}},[f,d,u]),q.jsxs("div",{className:"ai-chat-container",children:[q.jsx("div",{className:"ai-chat-content",children:q.jsxs("div",{className:"ai-chat-messages-container",children:[I?q.jsxs("div",{className:"ai-chat-empty",children:[q.jsx("div",{className:"ai-chat-empty-icon",children:"✨"}),q.jsx("h3",{className:"ai-chat-empty-title",children:"Edit with AI"}),q.jsx("div",{className:"ai-chat-empty-text",children:"How can I help you?"}),E&&ePe,eQ,eQ]}):q.jsx(Y_e,{messages:_,isLoading:i,chatId:s||o,aiScratchpad:x}),l&&q.jsx("div",{className:"ai-chat-error",children:q.jsxs("div",{className:"ai-chat-error-content",children:[q.jsx("span",{className:"ai-chat-error-icon",children:"⚠️"}),q.jsx("span",{className:"ai-chat-error-message",children:l}),q.jsx("button",{className:"ai-chat-error-dismiss",onClick:()=>p(null),"aria-label":"Dismiss error",children:"×"})]})})]})}),q.jsx("div",{className:"ai-chat-input-fixed",children:q.jsx(J_e,{aiChatMessage:r,setAIChatMessage:d,onSendMessage:R,isLoading:i,focused:t,aiChatMode:n,setAIChatMode:u,navigateMessageHistoryUp:g,navigateMessageHistoryDown:y,resetMessageHistoryNavigation:O})})]})};function nPe(t){const e=t.split(".");switch(e[e.length-1]){case"jsx":case"tsx":return q.jsx(_Oe,{});case"js":return q.jsx(kOe,{});case"ts":return q.jsx(xOe,{});case"json":return q.jsx(TOe,{});case"md":return q.jsx(ROe,{});case"html":return q.jsx(COe,{});case"css":return q.jsx(EOe,{});case"svelte":return q.jsx(POe,{});default:return q.jsx(KV,{})}}const pR=({name:t})=>q.jsx("i",{className:"file-icon",children:N.useMemo(()=>nPe(t),[t])}),hW=({show:t,onClose:e,onConfirm:n,isDirectory:r,name:i})=>{const o=N.useCallback(s=>{s.key==="Enter"&&n()},[n]);return N.useEffect(()=>(t?window.addEventListener("keydown",o):window.removeEventListener("keydown",o),()=>{window.removeEventListener("keydown",o)}),[t,o]),q.jsxs($r,{show:t,onHide:e,centered:!0,children:[q.jsx($r.Header,{closeButton:!0,onClick:e,children:q.jsxs($r.Title,{children:["Delete"," ",i==="all files"?"All Files":r?"Directory":"File"]})}),q.jsx($r.Body,{children:q.jsx("p",{children:i==="all files"?"This will delete all files in the project.":q.jsxs(q.Fragment,{children:["This will delete the"," ",r?"directory":"file"," ",q.jsx("strong",{children:i}),"."]})})}),q.jsxs($r.Footer,{children:[q.jsx(Il,{variant:"secondary",type:"button",onClick:e,children:"Cancel"}),q.jsx(Il,{variant:"primary",onClick:n,children:"Delete"})]})]})},pW=({id:t,name:e,children:n,handleClick:r,handleDoubleClick:i,handleRenameClick:o,handleDeleteClick:s,isDirectory:a=!1,isActive:l=!1,renameFileTooltipText:u=a?"Rename Directory":"Rename File",deleteFileTooltipText:c=a?"Delete Directory":"Delete File"})=>{const{hoveredItemId:f,setHoveredItemId:d}=N.useContext(Lr),h=f===t,p=N.useCallback(H=>{d(H?t:null)},[t,d]),[g,y]=N.useState(!1),[O,b]=N.useState(""),[S,k]=N.useState(!1),x=N.useRef(null),_=N.useCallback(H=>{H.key==="Escape"?y(!1):H.key==="Enter"&&x.current.blur()},[]),I=N.useCallback(()=>{y(!1),x.current.value.trim()===""?k(!0):o(x.current.value)},[o]),M=N.useCallback(H=>{H.stopPropagation(),y(!g),b(e)},[e,g]);N.useEffect(()=>{g&&x.current.focus()},[g]);const P=N.useCallback(H=>{H.stopPropagation(),k(!0)},[]),E=N.useCallback(()=>{k(!1)},[]),R=N.useCallback(H=>{H?.stopPropagation(),k(!1),s()},[s]),T=N.useCallback(()=>{p(!0)},[]),L=N.useCallback(()=>{p(!1)},[]),A=N.useCallback(()=>{b(x.current.value)},[]);return q.jsxs("div",{className:`file-or-directory user-select-none ${l?"active-file":""}`,onClick:g?null:r,onDoubleClick:g||!i?null:i,onMouseEnter:T,onMouseLeave:L,children:[q.jsx("div",{className:"name",children:g?q.jsxs(q.Fragment,{children:[q.jsx(pR,{name:O}),q.jsx("input",{className:"rename-input",ref:x,type:"text","aria-label":"Field name",value:O,onKeyDown:_,onBlur:I,onChange:A})]}):n}),h&&!g?q.jsxs("div",{className:"utils",style:{position:"relative"},children:[q.jsx(ho,{placement:"top",overlay:q.jsx(po,{id:"rename-file-tooltip",children:u}),children:q.jsx("i",{onClick:M,className:"icon-button icon-button-dark",children:q.jsx(hOe,{})})}),q.jsx(ho,{placement:"top",overlay:q.jsx(po,{id:"delete-file-tooltip",children:c}),children:q.jsx("i",{onClick:P,className:"icon-button icon-button-dark",children:q.jsx(gOe,{})})})]}):null,S&&q.jsx(hW,{show:S,onClose:E,onConfirm:R,isDirectory:a,name:e})]})},rPe=({name:t,path:e,children:n,handleFileClick:r,handleFileDoubleClick:i})=>{const{renameDirectory:o,deleteDirectory:s,isDirectoryOpen:a,toggleDirectory:l}=N.useContext(Lr),u=N.useCallback(()=>{l(e)},[l,e]),c=N.useCallback(()=>{s(e)},[s,e]),f=N.useCallback(h=>{o(e,t,h)},[o,e,t]),d=N.useMemo(()=>a(e),[a,e]);return q.jsxs(q.Fragment,{children:[q.jsxs(pW,{id:e,name:t,handleClick:u,handleDeleteClick:c,handleRenameClick:f,isDirectory:!0,children:[q.jsx("div",{className:"arrow-wrapper",style:{transform:`rotate(${d?90:0}deg)`},children:q.jsx(JV,{})}),q.jsx("div",{className:"name",children:t})]}),n&&d?q.jsx("div",{className:"indentation",children:n.map(h=>{const{fileId:p}=h,{path:g}=h;return q.jsx(mW,{entity:h,handleFileClick:r,handleFileDoubleClick:i},p||g)})}):null]})},iPe=({presence:t})=>q.jsx("div",{className:"presence-indicators",children:t.map((e,n)=>{const i=`rgb(${Q8(e.username)})`;return q.jsx("div",{className:"presence-indicator",style:{backgroundColor:i},children:e.username[0]},n)})}),oPe=({name:t,fileId:e,handleFileClick:n,handleFileDoubleClick:r,isActive:i,presence:o})=>{const{renameFile:s,deleteFile:a}=N.useContext(Lr),l=N.useCallback(()=>{n(e)},[e,n]),u=N.useCallback(()=>{r(e)},[e,r]),c=N.useCallback(()=>{a(e)},[e,a]),f=N.useCallback(d=>{s(e,d)},[e,s]);return q.jsxs(pW,{id:e,name:t,handleClick:l,handleDoubleClick:u,handleDeleteClick:c,handleRenameClick:f,isActive:i,children:[q.jsx(iPe,{presence:o}),q.jsx(pR,{name:t}),t]})},mW=({entity:t,handleFileClick:e,handleFileDoubleClick:n})=>{const{activePane:r,sidebarPresenceIndicators:i}=N.useContext(Lr),{name:o,file:s,fileId:a}=t,{path:l,children:u}=t,c=i?.filter(f=>f.fileId===a)||[];return s?q.jsx(oPe,{fileId:a,name:o,handleFileClick:e,handleFileDoubleClick:n,isActive:a===r.activeFileId,presence:c}):q.jsx(rPe,{name:o,path:l,children:u,handleFileClick:e,handleFileDoubleClick:n})};function tQ(t,e,n,r){const i=t.state.doc.line(n).from+r;t.dispatch({selection:{anchor:i,head:i+e.length},scrollIntoView:!0,effects:kt.scrollIntoView(i,{y:"center"})})}function nQ(t,e){const n=t.scrollTop,r=n+t.clientHeight,i=e.offsetTop-t.offsetTop,o=i+e.clientHeight;return i>=n+100&&o<=r-100}const sPe=()=>{const[t,e]=N.useState(!1),[n,r]=N.useState(!1),{search:i,setSearch:o,activePaneId:s,setActiveFileId:a,setSearchResults:l,setSearchFileVisibility:u,setSearchLineVisibility:c,setSearchFocusedIndex:f,shareDBDoc:d,editorCache:h,openTab:p}=N.useContext(Lr),{pattern:g,results:y,focusedIndex:O,focusedChildIndex:b,focused:S}=i,k=N.useRef(null),x=Object.entries(y).filter(([E,R])=>R.visibility!=="closed");N.useEffect(()=>{if(t){r(g.trim().length>=1);const E=setTimeout(()=>{g.trim().length>=1&&k.current&&(l(d),r(!1))},2e3);return()=>clearTimeout(E)}else e(!0)},[g]);const _=N.useCallback((E,R)=>{u(d,E,R.visibility==="open"&&b===null?"flattened":"open")},[O,b]),I=N.useCallback(E=>{u(d,E,"closed")},[]),M=N.useCallback((E,R)=>{a(E),f(R,null)},[]),P=E=>{if(E.preventDefault(),x.length===0)return;const R=x[O][1].matches.length;switch(E.key){case"Tab":f(O,null);break;case"ArrowUp":if(O==0&&b==null)break;if(b===null||R==0){const H=x[O-1][1].matches.length;f(O-1,H>0?H-1:null)}else b===0?f(O,null):f(O,b-1);break;case"ArrowDown":if(O==x.length-1&&b==R-1)break;b===null&&R>0?f(O,0):b==R-1||R==0?f(O+1,null):f(O,b+1);break;case"ArrowLeft":b!==null?f(O,null):_(x[O][0],x[O][1]);break;case"ArrowRight":x[O][1].visibility!=="open"?_(x[O][0],x[O][1]):b===null&&R!==0&&f(O,0);break;case"Enter":case" ":const A=x[O][0];if(p({fileId:A,isTransient:!0}),a(A),b!==null){const H=x[O][1].matches[b].line,W=x[O][1].matches[b].index,Z=vm(A,s);h.has(Z)&&tQ(h.get(Z).editor,g,H,W)}break}const T=x[O][0],L=document.getElementById("sidebar-view-container");if(L)if(b===null){const A=document.getElementById(T);nQ(L,A)||A.scrollIntoView({block:"center"})}else{const A=x[O][1].matches[b].line,H=document.getElementById(T+"-"+A);nQ(L,H)||H.scrollIntoView({block:"center"})}};return N.useEffect(()=>{k.current&&k.current.focus()},[S]),q.jsxs("div",{children:[q.jsx(Ir.Group,{className:"sidebar-search-form mb-3",controlId:"searchName",children:q.jsx(Ir.Control,{type:"text",value:g,onChange:E=>o(E.target.value),ref:k,spellCheck:"false"})}),Object.keys(y).length>=1&&g.trim().length>=1?q.jsx("div",{onKeyDown:P,tabIndex:0,className:"search-results",children:x.map(([E,R],T)=>{const L=R.matches;return q.jsxs("div",{className:"search-result",children:[q.jsxs("div",{onClick:()=>M(E,T),id:E,className:`search-file-heading
379
379
  ${O==T&&b==null?"active":""}`,children:[q.jsxs("div",{className:"search-file-title",children:[q.jsx("div",{className:"arrow-wrapper",onClick:()=>_(E,R),style:{transform:`rotate(${R.visibility==="open"?90:0}deg)`},children:q.jsx(JV,{})}),q.jsxs("div",{className:"search-file-name",children:[q.jsx(pR,{name:R.name}),q.jsx("h5",{children:R.name})]})]}),q.jsx("div",{className:"search-file-info",children:T==O&&b==null?q.jsx("span",{className:"search-file-close",onClick:A=>{A.stopPropagation(),I(E),f(Math.max(0,T-1),null)},children:q.jsx(VO,{})}):q.jsx("h6",{className:"search-file-count",children:L.length})})]}),q.jsx("div",{className:"search-file-lines",children:(R.visibility==="open"||R.visibility==="flattened"&&T==O&&b!==null)&&R.matches.map((A,H)=>{const W=A.text.substring(0,A.index),Z=A.text.substring(A.index,A.index+g.length),G=A.text.substring(A.index+g.length),K=R.name+"-"+A.line;return q.jsxs("div",{tabIndex:T==O?0:-1,id:E+"-"+A.line,className:`search-line
380
380
  ${O==T&&b==H?"active":""}`,children:[q.jsxs("p",{onClick:()=>{f(T,H),p({fileId:E,isTransient:!0}),a(E);const U=vm(E,s);h.has(U)&&tQ(h.get(U).editor,g,A.line,A.index)},children:[W,q.jsx("span",{className:"search-pattern",children:Z}),G]},R.name+" - "+A.line+" - "+A.index),O==T&&b===H&&q.jsx("span",{className:"search-file-close",onClick:U=>{U.stopPropagation(),c(d,E,A.line),H==0&&f(T,null)},children:q.jsx(VO,{})})]},K)})})]},R.name)})}):q.jsx("div",{className:"search-state",children:q.jsx("h6",{children:n?"Searching...":"No Results"})})]})},Ys=!1,aPe=()=>{const[t,e]=N.useState(!1),[n,r]=N.useState(!1),{createFile:i}=N.useContext(Lr),o=N.useCallback(p=>{p.preventDefault(),p.stopPropagation(),e(!0)},[]),s=N.useCallback(p=>{p.preventDefault(),p.stopPropagation(),t||e(!0)},[t]),a=N.useCallback(p=>{p.preventDefault(),p.stopPropagation(),e(!1)},[]),l=p=>["text/","application/json","application/javascript","application/typescript","application/xml","application/x-httpd-php"].some(O=>p.type.startsWith(O))||p.name.match(/\.(txt|js|jsx|ts|tsx|md|css|scss|html|xml|json|php|py|rb|java|c|cpp|h|hpp)$/i)!==null,u=p=>["image/"].some(O=>p.type.startsWith(O))||p.name.match(/\.(png|jpg|jpeg|gif|bmp|svg|webp)$/i)!==null,c=p=>new Promise((g,y)=>{if(!l(p)){y(new Error(`File ${p.name} is not a text file`));return}const O=new FileReader;O.onload=b=>{b.target?.result?g(b.target.result):y(new Error(`Failed to read file ${p.name}`))},O.onerror=()=>{y(new Error(`Error reading file ${p.name}`))},O.readAsText(p)}),f=p=>new Promise((g,y)=>{if(!u(p)){y(new Error(`File ${p.name} is not an image file`));return}if(p.type==="image/svg+xml"||p.name.toLowerCase().endsWith(".svg")){const b=new FileReader;b.onload=S=>{S.target?.result?g(S.target.result):y(new Error(`Failed to read SVG file ${p.name}`))},b.onerror=()=>y(new Error(`Error reading SVG file ${p.name}`)),b.readAsText(p);return}const O=new FileReader;O.onload=b=>{if(b.target?.result){const S=b.target.result.split(",")[1];g(S)}else y(new Error(`Failed to read image file ${p.name}`))},O.onerror=()=>{y(new Error(`Error reading image file ${p.name}`))},O.readAsDataURL(p)}),d=async(p,g)=>{try{if(Ys&&console.log(`[useDragAndDrop] Processing entry: ${p.name} at path: ${g}`),p.isFile)Ys&&console.log(`[useDragAndDrop] Processing file: ${p.name}`),p.file(async y=>{try{if(u(y)){const O=await f(y);Ys&&console.log(`[useDragAndDrop] Creating image file: ${g}${y.name}`),i(`${g}${y.name}`,O)}else{const O=await c(y);Ys&&console.log(`[useDragAndDrop] Creating text file: ${g}${y.name}`),i(`${g}${y.name}`,O)}}catch(O){console.error(`Error processing file ${y.name}:`,O)}});else if(p.isDirectory)return Ys&&console.log(`[useDragAndDrop] Processing directory: ${p.name}`),new Promise(y=>{const O=p.createReader(),b=()=>{O.readEntries(async S=>{if(S.length===0){Ys&&console.log(`[useDragAndDrop] Finished reading directory: ${p.name}`),y();return}const k=`${g}${p.name}/`;Ys&&console.log(`[useDragAndDrop] Reading ${S.length} entries in directory: ${k}`),await Promise.all(S.map(x=>d(x,k))),b()})};b()})}catch(y){console.error(`Error processing entry ${p.name}:`,y)}},h=N.useCallback(async p=>{p.preventDefault(),p.stopPropagation(),e(!1),r(!0);try{const g=p.dataTransfer.items;Ys&&console.log(`[useDragAndDrop] Processing ${g.length} dropped items`);const y=[];for(const O of Array.from(g)){const b=O.webkitGetAsEntry?.()||O.getAsEntry?.()||O.createEntry?.();if(b)Ys&&console.log(`[useDragAndDrop] Got entry for: ${b.name}`),y.push(b);else if(O.kind==="file"){const S=O.getAsFile();if(S){Ys&&console.log(`[useDragAndDrop] Processing dropped file: ${S.name}`);try{if(u(S)){const k=await f(S);i(S.name,k)}else{const k=await c(S);i(S.name,k)}}catch(k){console.error(`Error processing file ${S.name}:`,k)}}}}Ys&&console.log(`[useDragAndDrop] Processing ${y.length} entries`),await Promise.all(y.map(O=>d(O,"")))}catch(g){console.error("Error processing dropped items:",g)}finally{r(!1)}},[i]);return{isDragOver:t,isProcessing:n,handleDragEnter:o,handleDragOver:s,handleDragLeave:a,handleDrop:h}};function lPe(t,e){const n={},d=[{regex:/^\s*###\s*`([^`]+)`\s*\n```(?:\w+)?\n([\s\S]*?)```/gm,format:"Backtick-Heading Format",key:"backtick-heading"},{regex:/^\s*###\s*File:\s*\*\*(.+?)\*\*\s*\n```(?:\w+)?\n([\s\S]*?)```/gm,format:"File Bold Format",key:"file-bold"},{regex:/^\s*###\s*\d+\.\s*`([^`]+)`(?:[^\n]*\n)*?\s*```(?:\w+)?\n([\s\S]*?)```/gm,format:"Numbered Backtick Format",key:"numbered-backtick"},{regex:/^### \*\*([^\n`]+?)\*\*\s*\n```(?:\w+)?\n([\s\S]*?)```/gm,format:"Heading Bold Format",key:"heading-bold"},{regex:/^\s*###\s*(?!`|File:|\d+\.)\s*([^\n`]+?)\s*\n```(?:\w+)?\n([\s\S]*?)```/gm,format:"Standard Heading Format",key:"standard-heading"},{regex:/^\s*(?!###|\*\*|`)([^\n#*`]+?):\s*\n```(?:\w+)?\n([\s\S]*?)```/gm,format:"Colon Format",key:"colon"},{regex:/^\s*(?!###)\*\*([^\n*`]+?)\*\*(?:[^\n]*)\s*\n```(?:\w+)?\n([\s\S]*?)```/gm,format:"Bold Format",key:"bold"},{regex:/^\s*# ([^\n`]+?)\s*\n```(?:\w+)?\n([\s\S]*?)```/gm,format:"Hash Format",key:"hash"},{regex:/^\s*\d+\.\s*\*\*([^\n`]+?)\*\*[\s\S]*?\n```(?:\w+)?\n([\s\S]*?)```/gm,format:"Numbered Bold Format",key:"numbered-bold"}];let h=d;{const g=d.find(y=>y.key===e);if(!g)throw new Error(`Unsupported format: ${e}`);h=[g]}let p="Unknown Format";for(const{regex:g,format:y}of h){g.lastIndex=0;const O={};let b;for(;(b=g.exec(t))!==null;){let S=b[1].trim();y==="Bold Format"&&(S=S.replace(/\s*\([^)]*\).*$/,"").trim());const k=b[2].trim();O[S]=k}if(Object.keys(O).length>0){Object.assign(n,O),p=y;break}}return{files:n,format:p}}const uPe=t=>t.endsWith(".html")?"html":t.endsWith(".js")?"javascript":t.endsWith(".css")?"css":"",cPe=t=>Object.entries(t).map(([e,n])=>[`**${e}**
381
381
  `,"```"+uPe(e),n,"```\n"].join(`
@@ -433,7 +433,7 @@ ${i}`;t.FORMAT_INSTRUCTIONS={whole:[`## Formatting Instructions
433
433
  `,`+// line to be added
434
434
  `,"```\n"].join("")};function r({filesContext:i,prompt:o,editFormat:s="whole"}){const a=t.FORMAT_INSTRUCTIONS[s];return[e(o),n(i),a].join(`
435
435
 
436
- `)}}($x)),$x}var Hv={},lQ;function gPe(){if(lQ)return Hv;lQ=1,Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.getGenerationMetadata=t;async function t({apiKey:e,generationId:n}){const r=`https://openrouter.ai/api/v1/generation?id=${n}`,i={Authorization:`Bearer ${e}`},o=10,s=1e3;for(let a=1;a<=o;a++){const l=await fetch(r,{method:"GET",headers:i});if(l.ok){const u=await l.json(),f=u.data.total_cost*100,d=u.data.provider_name,h=u.data.tokens_prompt,p=u.data.tokens_completion;return{upstreamCostCents:f,provider:d,inputTokens:h,outputTokens:p}}else if(await l.text(),a<o)await new Promise(u=>setTimeout(u,s));else throw new Error(`HTTP error! Status: ${l.status} after ${o} attempts.`)}throw new Error("Failed to get generation metadata.")}return Hv}var Gs={},Nx={},uQ;function vPe(){return uQ||(uQ=1,function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=d=>d.length!==32||!/^[0-9a-f]{32}$/i.test(d)?!1:d[12]==="4",n=()=>typeof globalThis.crypto<"u"?globalThis.crypto:Wde.webcrypto,r=n(),i=()=>{const d=new Uint8Array(16);return r.getRandomValues(d),d[6]=d[6]&15|64,d[8]=d[8]&63|128,Array.from(d,h=>h.toString(16).padStart(2,"0")).join("")},o=()=>i().substring(0,8),s=o,a=(d,h)=>{if(d&&d.files)for(const p of Object.keys(d.files)){const g=d.files[p];if(g.name===h)return g.text}return null},l=d=>{const h={};if(!d)return h;for(const p of Object.values(d))h[p.name]=p.text;return h},u=d=>Object.entries(d).reduce((h,[p,g])=>(h[o()]={name:p,text:g},h),{}),c=d=>Math.floor(d.getTime()/1e3),f=d=>new Date(d*1e3);t.dateToTimestamp=c,t.fileCollectionToVizFiles=u,t.generateRunId=s,t.generateVizFileId=o,t.generateVizId=i,t.getFileText=a,t.isVizId=e,t.timestampToDate=f,t.vizFilesToFileCollection=l}(Nx)),Nx}var cQ;function yPe(){if(cQ)return Gs;cQ=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.shouldDeleteFile=e,Gs.prepareFilesForPrompt=n,Gs.mergeFileChanges=r,Gs.parseDiffs=i,Gs.applyDiffs=o,Gs.parseDiffFenced=s,Gs.parseUdiffs=a,Gs.applyUdiffs=l;const t=vPe();function e(u){return u?u.text.trim()==="":!1}function n(u){const c={};return Object.values(u).forEach(f=>{c[f.name]=f.text.split(`
436
+ `)}}($x)),$x}var Hv={},lQ;function gPe(){if(lQ)return Hv;lQ=1,Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.getGenerationMetadata=t;async function t({apiKey:e,generationId:n}){const r=`https://openrouter.ai/api/v1/generation?id=${n}`,i={Authorization:`Bearer ${e}`},o=10,s=1e3;for(let a=1;a<=o;a++){const l=await fetch(r,{method:"GET",headers:i});if(l.ok){const u=await l.json(),f=u.data.total_cost*100,d=u.data.provider_name,h=u.data.tokens_prompt,p=u.data.tokens_completion;return{upstreamCostCents:f,provider:d,inputTokens:h,outputTokens:p}}else if(await l.text(),a<o)await new Promise(u=>setTimeout(u,s));else throw new Error(`HTTP error! Status: ${l.status} after ${o} attempts.`)}throw new Error("Failed to get generation metadata.")}return Hv}var Gs={},Nx={},uQ;function vPe(){return uQ||(uQ=1,function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=p=>p.length!==32||!/^[0-9a-f]{32}$/i.test(p)?!1:p[12]==="4",n=p=>!p||typeof p!="string"||p.trim()===""?!1:/^.+\.(png|jpg|jpeg|gif|bmp|svg|webp)$/i.test(p),r=()=>typeof globalThis.crypto<"u"?globalThis.crypto:Wde.webcrypto,i=r(),o=()=>{const p=new Uint8Array(16);return i.getRandomValues(p),p[6]=p[6]&15|64,p[8]=p[8]&63|128,Array.from(p,g=>g.toString(16).padStart(2,"0")).join("")},s=()=>o().substring(0,8),a=s,l=(p,g)=>{if(p&&p.files){for(const y of Object.keys(p.files))if(p.files[y].name===g)return y}return null},u=(p,g)=>{const y=l(p,g);return y&&p&&p.files?p.files[y].text:null},c=p=>{const g={};if(!p)return g;for(const y of Object.values(p))g[y.name]=y.text;return g},f=p=>Object.entries(p).reduce((g,[y,O])=>(g[s()]={name:y,text:O},g),{}),d=p=>Math.floor(p.getTime()/1e3),h=p=>new Date(p*1e3);t.dateToTimestamp=d,t.fileCollectionToVizFiles=f,t.generateRunId=a,t.generateVizFileId=s,t.generateVizId=o,t.getFileId=l,t.getFileText=u,t.isImageFileName=n,t.isVizId=e,t.timestampToDate=h,t.vizFilesToFileCollection=c}(Nx)),Nx}var cQ;function yPe(){if(cQ)return Gs;cQ=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.shouldDeleteFile=e,Gs.prepareFilesForPrompt=n,Gs.mergeFileChanges=r,Gs.parseDiffs=i,Gs.applyDiffs=o,Gs.parseDiffFenced=s,Gs.parseUdiffs=a,Gs.applyUdiffs=l;const t=vPe();function e(u){return u?u.text.trim()==="":!1}function n(u){const c={};return Object.values(u).forEach(f=>{c[f.name]=f.text.split(`
437
437
  `).slice(0,f.name.endsWith(".csv")||f.name.endsWith(".json")?50:500).map(d=>d.slice(0,200)).join(`
438
438
  `)}),c}function r(u,c){let f=Object.keys(u).reduce((d,h)=>{const p=u[h],g=c[p.name],y=g!==void 0?{name:p.name,text:g}:void 0;return e(y)||(d[h]={...p,text:y?y.text:p.text}),d},{});return Object.entries(c).forEach(([d,h])=>{if(!Object.values(f).find(g=>g.name===d)&&h.trim()!==""){const g=(0,t.generateVizFileId)();f[g]={name:d,text:h}}}),f}function i(u){const c=[],f=/^(.+)\n```\n<<<<<<< SEARCH\n([\s\S]*?)\n=======\n([\s\S]*?)\n>>>>>>> REPLACE\n```/gm,d=u.matchAll(f);for(const h of d){const[p,g,y,O]=h;c.push({fileName:g.trim(),search:y,replace:O})}return c}function o(u,c){const f=JSON.parse(JSON.stringify(u));for(const d of c){const h=Object.keys(f).find(g=>f[g].name===d.fileName);if(!h)throw new Error(`File not found: ${d.fileName}`);const p=f[h];if(!p.text.includes(d.search))throw new Error(`Search block not found in file: ${d.fileName}`);p.text=p.text.replace(d.search,d.replace)}return f}function s(u){const c=[],f=/^```\n(.+)\n<<<<<<< SEARCH\n([\s\S]*?)\n=======\n([\s\S]*?)\n>>>>>>> REPLACE\n```/gm,d=u.matchAll(f);for(const h of d){const[p,g,y,O]=h;c.push({fileName:g.trim(),search:y,replace:O})}return c}function a(u){const c=[],f=/```diff\n--- (.+?)\n\+\+\+ \1\n([\s\S]+?)```/g;let d;for(;(d=f.exec(u))!==null;){const h=d[1].trim(),g=d[2].split(/^@@ .* @@$/m).slice(1);for(const y of g){if(y.trim()==="")continue;const O=y.trim().split(`
439
439
  `),b=[],S=[];for(const k of O)if(k.startsWith("+"))S.push(k.substring(1));else if(k.startsWith("-"))b.push(k.substring(1));else{const x=k.startsWith(" ")?k.substring(1):k;b.push(x),S.push(x)}c.push({fileName:h,original:b.join(`
@@ -453,5 +453,5 @@ https://github.com/nodeca/pako/blob/main/LICENSE
453
453
 
454
454
  `+dQ.FORMAT_INSTRUCTIONS.whole;await navigator.clipboard.writeText(u),n("Copied!"),setTimeout(()=>n("Copy for AI"),2e3)}catch(l){console.error("Failed to copy files for AI:",l),n("Error"),setTimeout(()=>n("Copy for AI"),2e3)}},handlePasteForAI:async()=>{if(e)try{const u=(await navigator.clipboard.readText()).replace(/\r\n?/g,`
455
455
  `);if(!u.trim()){r("Empty clipboard"),setTimeout(()=>r("Paste for AI"),2e3);return}const c=u.split("## Formatting Instructions")[0].trim(),f=lPe(c,"bold");if(f.files&&Object.keys(f.files).length>0){const d=dQ.mergeFileChanges(t||{},f.files);e(h=>({...h,files:d,runId:i7()})),r("Pasted!"),setTimeout(()=>r("Paste for AI"),2e3)}else r("No files found"),setTimeout(()=>r("Paste for AI"),2e3)}catch(l){console.error("Failed to paste files from AI:",l),r("Error"),setTimeout(()=>r("Paste for AI"),2e3)}},handleExportToZip:async()=>{if(!t||Object.keys(t).length===0){i("No files to export"),setTimeout(()=>i("Export to ZIP"),2e3);return}try{const l=new SPe;Object.entries(t).forEach(([d,h])=>{const p=h.name||d,g=h.text||"";l.file(p,g)});const u=await l.generateAsync({type:"blob"}),c=URL.createObjectURL(u),f=document.createElement("a");f.href=c,f.download="viz-files.zip",f.click(),URL.revokeObjectURL(c),i("Exported!"),setTimeout(()=>i("Export to ZIP"),2e3)}catch(l){console.error("Failed to export files to ZIP:",l),i("Error"),setTimeout(()=>i("Export to ZIP"),2e3)}}}),Yv=({children:t})=>q.jsx("div",{className:"empty-state",children:t}),xPe="config.json",_Pe=(t,e,n)=>(t-e)/(n-e)*100,PPe=(t,e,n)=>{const r=n-e,i=r<10?2:r<100?1:0;return Number(t).toFixed(i)},CPe=()=>{const{files:t,submitOperation:e}=N.useContext(Lr),[n,r]=N.useState({}),[i,o]=N.useState(null);let s=null;for(const g in t)if(t[g].name===xPe){s=g;break}const a=N.useMemo(()=>{try{return JSON.parse(t[s].text)}catch(g){return console.error("Error parsing config.json:",g),null}},[t?.[s]?.text]),l=N.useCallback(g=>y=>{const O=parseFloat(y.currentTarget.value);r(S=>({...S,[g]:O}));const b={...a,[g]:O};e(S=>({...S,files:{...t,[s]:{name:"config.json",text:JSON.stringify(b,null,2)}}}))},[a,t,s,r]),u=N.useCallback(g=>y=>{const O=y.currentTarget.checked;r(S=>({...S,[g]:O}));const b={...a,[g]:O};e(S=>({...S,files:{...t,[s]:{name:"config.json",text:JSON.stringify(b,null,2)}}}))},[a,t,s,r]),c=N.useCallback(g=>y=>{const O=y.currentTarget.value;r(S=>({...S,[g]:O}));const b={...a,[g]:O};e(S=>({...S,files:{...t,[s]:{name:"config.json",text:JSON.stringify(b,null,2)}}}))},[a,t,s,r]),f=N.useCallback((g,y)=>{r(b=>({...b,[g]:y}));const O={...a,[g]:y};e(b=>({...b,files:{...t,[s]:{name:"config.json",text:JSON.stringify(O,null,2)}}}))},[a,t,s,r]),d=N.useCallback(g=>{o(y=>y===g?null:g)},[]),h=N.useCallback((g,y)=>{f(g,y),o(null)},[f]);N.useEffect(()=>{const g=y=>{i&&(y.target.closest(".visual-editor-dropdown")||o(null))};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[i]);const p=a?.visualEditorWidgets??[];return N.useEffect(()=>{const g={};p.forEach(y=>{(y.type==="slider"||y.type==="checkbox"||y.type==="textInput"||y.type==="dropdown")&&(g[y.property]=a[y.property])}),r(g)},[a]),s===null?q.jsx(Yv,{children:"To begin using the visual editor, create a config.json."}):a?a&&!("visualEditorWidgets"in a)?q.jsx(Yv,{children:'To begin using the visual editor, make sure your config.json has a key called "visualEditorWidgets", whose value is the config for the visual editor.'}):a&&!Array.isArray(a.visualEditorWidgets)?q.jsx(Yv,{children:'Your config.json file has "visualEditorWidgets" but it is not an array. Please make sure "visualEditorWidgets" is an array of widget configurations.'}):q.jsx("div",{className:"visual-editor",children:p.map((g,y)=>{if(g.type==="slider"){const O=n[g.property]??a[g.property],b=_Pe(O,g.min,g.max);return q.jsxs("div",{className:"visual-editor-slider",children:[q.jsxs("div",{className:"slider-header",children:[q.jsx("label",{htmlFor:g.property,className:"slider-label",children:g.label}),q.jsx("span",{className:"slider-value",children:PPe(O,g.min,g.max)})]}),q.jsxs("div",{className:"slider-container",children:[q.jsx("input",{type:"range",id:g.property,className:"slider-input",min:g.min,max:g.max,step:g.step,value:O,onChange:l(g.property)}),q.jsx("div",{className:"slider-track-fill",style:{width:`${b}%`}})]}),q.jsxs("div",{className:"slider-bounds",children:[q.jsx("span",{className:"min-value",children:g.min}),q.jsx("span",{className:"max-value",children:g.max})]})]},g.property)}else if(g.type==="checkbox"){const O=n[g.property]??a[g.property];return q.jsxs("div",{className:"visual-editor-checkbox",children:[q.jsxs("div",{className:"checkbox-header",children:[q.jsx("label",{htmlFor:g.property,className:"checkbox-label",children:g.label}),q.jsx("span",{className:"checkbox-value",children:O?"On":"Off"})]}),q.jsxs("div",{className:"checkbox-container",children:[q.jsx("input",{type:"checkbox",id:g.property,className:"checkbox-input",checked:O,onChange:u(g.property)}),q.jsx("div",{className:"checkbox-visual",children:q.jsx("div",{className:`checkbox-indicator ${O?"checked":""}`})})]})]},g.property)}else if(g.type==="textInput"){const O=n[g.property]??a[g.property];return q.jsxs("div",{className:"visual-editor-text-input",children:[q.jsx("div",{className:"text-input-header",children:q.jsx("label",{htmlFor:g.property,className:"text-input-label",children:g.label})}),q.jsx("div",{className:"text-input-container",children:q.jsx("input",{type:"text",id:g.property,className:"text-input-field",value:O||"",onChange:c(g.property)})})]},g.property)}else if(g.type==="dropdown"){const O=n[g.property]??a[g.property],b=i===g.property;return q.jsxs("div",{className:"visual-editor-dropdown",children:[q.jsx("div",{className:"dropdown-header",children:q.jsx("label",{htmlFor:g.property,className:"dropdown-label",children:g.label})}),q.jsxs("div",{className:"dropdown-container",children:[q.jsxs("button",{type:"button",className:`dropdown-button ${b?"open":""}`,onClick:()=>d(g.property),"aria-expanded":b,"aria-haspopup":"listbox",children:[q.jsx("span",{className:"dropdown-button-text",children:O}),q.jsx("div",{className:`dropdown-arrow ${b?"open":""}`,children:q.jsx("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:q.jsx("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),b&&q.jsx("div",{className:"dropdown-options",children:g.options.map(S=>q.jsx("button",{type:"button",className:`dropdown-option ${S===O?"selected":""}`,onClick:()=>h(g.property,S),children:S},S))})]})]},g.property)}})}):q.jsx(Yv,{children:"Your config.json file is not valid json."})},EPe=({createFileTooltipText:t=q.jsxs(q.Fragment,{children:[q.jsx("strong",{children:"New file"}),q.jsx("div",{children:"(Alt + N or Ctrl + Shift + N)"})]}),createDirTooltipText:e=q.jsxs("div",{children:[q.jsx("strong",{children:"New Directory"}),q.jsx("div",{children:"(Ctrl + Shift + D)"})]}),openSettingsTooltipText:n=q.jsxs("div",{children:[q.jsx("strong",{children:"Open Settings"}),q.jsx("div",{children:"(Ctrl + Shift + S or Ctrl + ,)"})]}),openKeyboardShortcuts:r=q.jsxs("div",{children:[q.jsx("strong",{children:"Keyboard Shortcuts"}),q.jsx("div",{children:"(Ctrl + Shift + K)"})]}),reportBugTooltipText:i=q.jsx("div",{children:q.jsx("strong",{children:"Report Bug"})}),searchToolTipText:o=q.jsxs("div",{children:[q.jsx("strong",{children:"Search"}),q.jsx("div",{children:"(Ctrl + Shift + F)"})]}),filesToolTipText:s=q.jsxs("div",{children:[q.jsx("strong",{children:"Files"}),q.jsx("div",{children:"(Ctrl + Shift + E)"})]}),enableAutoFollowTooltipText:a=q.jsxs("div",{children:[q.jsx("strong",{children:"Enable Auto Follow"}),q.jsx("div",{children:"(Ctrl + Shift + A)"})]}),disableAutoFollowTooltipText:l=q.jsxs("div",{children:[q.jsx("strong",{children:"Disable Auto Follow"}),q.jsx("div",{children:"(Ctrl + Shift + A)"})]}),voiceChatToolTipText:u=q.jsx("div",{children:q.jsx("strong",{children:"Open Voice Chat Menu"})}),aiChatToolTipText:c=q.jsx("div",{children:q.jsx("strong",{children:"Edit with AI"})}),visualEditorToolTipText:f=q.jsx("div",{children:q.jsx("strong",{children:"Visual Editor"})})})=>{const{files:d,openTab:h,setIsSettingsOpen:p,setIsDocOpen:g,isSearchOpen:y,setIsSearchOpen:O,isVisualEditorOpen:b,setIsVisualEditorOpen:S,isAIChatOpen:k,setIsAIChatOpen:x,handleOpenCreateFileModal:_,handleOpenCreateDirModal:I,connected:M,pending:P,sidebarRef:E,enableAutoFollow:R,toggleAutoFollow:T,docPresence:L,updatePresenceIndicator:A,setVoiceChatModalOpen:H,submitOperation:W,deleteAllFiles:Z}=N.useContext(Lr),G=N.useMemo(()=>d?ez(dOe(d)):null,[d]),K=N.useCallback(()=>{g(!0)},[]),U=N.useCallback(()=>{p(!0)},[]),[B,Y]=N.useState("Copy for AI"),[j,ne]=N.useState("Paste for AI"),[ee,ue]=N.useState("Export to ZIP"),[z,X]=N.useState(!1),{handleCopyForAI:J,handlePasteForAI:fe,handleExportToZip:we}=N.useMemo(()=>kPe(d,W,Y,ne,ue),[d,W]),Te=N.useCallback(()=>{X(!0)},[]),Re=N.useCallback(()=>{X(!1)},[]),Q=N.useCallback(()=>{X(!1),Z()},[Z]),{sidebarWidth:ve,setSidebarView:ge}=N.useContext(l0),ie=N.useCallback(st=>{h({fileId:st,isTransient:!0})},[h]),oe=N.useCallback(st=>{h({fileId:st,isTransient:!1})},[h]),me=G&&G.children&&G.children.length>0,{isDragOver:$e,handleDragEnter:Fe,handleDragOver:Pe,handleDragLeave:V,handleDrop:ye}=aPe();N.useEffect(()=>{},[]),N.useEffect(()=>{if(L){const st=(Le,at)=>{if(!at)return;const We={username:at.username,fileId:at.start[1]};A(We)};return L.on("receive",st),()=>{L.off("receive",st)}}},[L]);const[_e,de]=N.useState(!1),[Se,Me]=N.useState(!0),et=N.useRef(P);return N.useEffect(()=>{Se&&M&&Me(!1)},[M,Se]),N.useEffect(()=>{if(et.current&&!P&&M&&!Se){de(!0);const st=setTimeout(()=>{de(!1)},1500);return()=>clearTimeout(st)}et.current=P},[P,M,Se]),N.useEffect(()=>{ge(k)},[k,ge]),q.jsxs("div",{className:"vz-sidebar",style:{width:ve+"px"},children:[q.jsxs("div",{className:"full-box",ref:E,tabIndex:-1,children:[q.jsxs("div",{className:"sidebar-section-buttons",children:[q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"ai-chat-tooltip",children:c}),children:q.jsx("i",{id:"ai-chat-icon",className:"icon-button icon-button-dark",onClick:()=>{x(!0),O(!1),ge(!0)},children:q.jsx(RO,{})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"files-tooltip",children:s}),children:q.jsx("i",{id:"files-icon",className:"icon-button icon-button-dark",onClick:()=>{O(!1),x(!1),S(!1),ge(!1)},children:q.jsx(wOe,{})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"search-tooltip",children:o}),children:q.jsx("i",{id:"search-icon",className:"icon-button icon-button-dark",onClick:()=>{O(!0),x(!1),S(!1),ge(!1)},children:q.jsx(SOe,{})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"ai-chat-tooltip",children:c}),children:q.jsx("i",{id:"ai-chat-icon",className:"icon-button icon-button-dark",onClick:()=>{x(!0),O(!1),S(!1)},children:q.jsx(RO,{})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"visual-editor-tooltip",children:f}),children:q.jsx("i",{id:"visual-editor-icon",className:"icon-button icon-button-dark",onClick:()=>{S(!0),x(!1),O(!1)},children:q.jsx(DOe,{})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"open-keyboard-shortcuts",children:r}),children:q.jsx("i",{id:"shortcut-icon",className:"icon-button icon-button-dark",onClick:K,children:q.jsx(OOe,{})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"report-bug-tooltip",children:i}),children:q.jsx("a",{href:"https://github.com/vizhub-core/vzcode/issues/new",target:"_blank",rel:"noopener noreferrer",children:q.jsx("i",{id:"bug-icon",className:"icon-button icon-button-dark",children:q.jsx(vOe,{})})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"open-settings-tooltip",children:n}),children:q.jsx("i",{id:"settings-icon",className:"icon-button icon-button-dark",onClick:U,children:q.jsx(mOe,{})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"create-file-tooltip",children:t}),children:q.jsx("i",{id:"new-file-icon",className:"icon-button icon-button-dark",onClick:_,children:q.jsx(pOe,{})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"create-dir-tooltip",children:e}),children:q.jsx("i",{id:"new-directory-icon",className:"icon-button icon-button-dark",onClick:I,children:q.jsx(KV,{})})}),q.jsx(ho,{placement:"right",overlay:q.jsx(po,{id:"toggle-auto-follow",children:R?l:a}),children:q.jsxs("i",{id:"auto-focus-icon",className:`icon-button icon-button-dark${R?" vh-color-success-01":""}`,onClick:T,children:[q.jsx("i",{}),q.jsx(bOe,{})]})}),xV]}),q.jsx("div",{className:"files",id:"sidebar-view-container",onDragEnter:Fe,onDragOver:Pe,onDragLeave:V,onDrop:ye,children:k?q.jsx("div",{className:"sidebar-ai-chat",children:q.jsx(tPe,{})}):y?q.jsx("div",{className:"sidebar-search",children:q.jsx(sPe,{})}):b?q.jsx("div",{className:"sidebar-visual-editor",children:q.jsx(CPe,{})}):q.jsx("div",{className:"sidebar-files",children:$e?q.jsxs("div",{className:"empty drag-over",children:[q.jsx("div",{className:"empty-text",children:`It looks like you don't have any files yet! Click the "Create file" button above to create your first file.`}),q.jsx("div",{className:"empty-text",children:"Drop files here!"})]}):me?G.children.map(st=>{const{fileId:Le}=st,{path:at}=st,We=Le||at;return q.jsx(mW,{entity:st,handleFileClick:ie,handleFileDoubleClick:oe},We)}):q.jsxs("div",{className:"empty",children:[q.jsx("div",{className:"empty-text",children:`It looks like you don't have any files yet! Click the "Create file" button above to create your first file.`}),q.jsx("div",{className:"empty-text",children:"Drop files here!"})]})})})]}),!k&&!y&&q.jsxs("div",{className:"ai-buttons",children:[me&&q.jsxs("button",{className:"ai-button export-button",onClick:we,title:"Export files to ZIP",children:[q.jsx("i",{className:"bi bi-download"}),ee]}),me&&q.jsxs("button",{className:"ai-button copy-button",onClick:J,title:"Copy files formatted for AI",children:[q.jsx("i",{className:"bi bi-clipboard"}),B]}),q.jsxs("button",{className:"ai-button paste-button",onClick:fe,title:"Paste files from AI",children:[q.jsx("i",{className:"bi bi-clipboard-plus"}),j]}),me&&q.jsxs("button",{className:"ai-button delete-all-button",onClick:Te,title:"Delete all files",children:[q.jsx("i",{className:"bi bi-trash"}),"delete all"]})]}),q.jsxs("div",{className:"connection-status",children:[Se?"Connecting...":M?P?"Saving...":_e?"Saved.":"Connected":"Connection Lost",q.jsx("div",{className:"connection",children:q.jsx("div",{className:`connection-status-indicator ${Se?"pending":M?P?"pending":"connected":"disconnected"}`})})]}),z&&q.jsx(hW,{show:z,onClose:Re,onConfirm:Q,isDirectory:!1,name:"all files"})]})},TPe=({initialFileName:t=""})=>{const[e,n]=N.useState(t),r=N.useRef(null),{files:i,isCreateDirModalOpen:o,handleCloseCreateDirModal:s,handleCreateDirClick:a}=N.useContext(Lr);N.useEffect(()=>{o&&r.current&&r.current.focus()},[o]);const l=N.useCallback(d=>{n(d.target.value)},[]),u=N.useCallback(()=>{a(e),n("")},[e,a]),c=N.useCallback(d=>{let h;h=/^[a-zA-Z0-9](?:[a-zA-Z0-9 ./+=_-]*[a-zA-Z0-9])?$/.test(d);for(const g in i)d+"/"===i[g].name&&(h=!1);return h},[i]),f=N.useCallback(d=>{d.key==="Enter"&&c(e)&&(d.ctrlKey||d.shiftKey||!d.altKey&&!d.metaKey)&&u()},[u,c,e]);return o?q.jsxs($r,{show:o,onHide:s,animation:!1,onKeyDown:f,children:[q.jsx($r.Header,{closeButton:!0,children:q.jsx($r.Title,{children:"Create Directory"})}),q.jsx($r.Body,{children:q.jsxs(Ir.Group,{className:"mb-3",controlId:"fileName",children:[q.jsx(Ir.Label,{children:"Directory Name"}),q.jsx(Ir.Control,{type:"text",value:e,onChange:l,ref:r,spellCheck:"false"}),q.jsx(Ir.Text,{className:"text-muted",children:"Enter the name for your file"})]})}),q.jsx($r.Footer,{children:q.jsx(Il,{variant:"primary",onClick:u,disabled:!c(e),children:"Create Directory"})})]}):null},RPe=({initialFileName:t=""})=>{const[e,n]=N.useState(t),r=N.useRef(null),{files:i,isCreateFileModalOpen:o,handleCloseCreateFileModal:s,handleCreateFileClick:a}=N.useContext(Lr);N.useEffect(()=>{o&&r.current&&r.current.focus()},[o]);const l=N.useCallback(d=>{n(d.target.value)},[]),u=N.useCallback(()=>{a(e),n("")},[e,a]),c=N.useCallback(d=>{let h;h=/^[a-zA-Z0-9](?:[a-zA-Z0-9 ./+=_-]*[a-zA-Z0-9])?$/.test(d);for(const g in i)d===i[g].name&&(h=!1);return h},[i]),f=N.useCallback(d=>{d.key==="Enter"&&c(e)&&(d.ctrlKey||d.shiftKey||!d.altKey&&!d.metaKey)&&u()},[u,c,e]);return o?q.jsxs($r,{show:o,onHide:s,animation:!1,onKeyDown:f,children:[q.jsx($r.Header,{closeButton:!0,children:q.jsx($r.Title,{children:"Create File"})}),q.jsx($r.Body,{children:q.jsxs(Ir.Group,{className:"mb-3",controlId:"fileName",children:[q.jsx(Ir.Label,{children:"File Name"}),q.jsx(Ir.Control,{type:"text",value:e,onChange:l,ref:r,spellCheck:"false"}),q.jsx(Ir.Text,{className:"text-muted",children:"Enter the name for your file"})]})}),q.jsx($r.Footer,{children:q.jsx(Il,{variant:"primary",onClick:u,disabled:!c(e),children:"Create File"})})]}):null},APe=({enableUsernameField:t=!0})=>q.jsxs("div",{className:"left",children:[q.jsx(EPe,{}),q.jsx(fOe,{enableUsernameField:t}),q.jsx(aOe,{enableUsernameField:t}),q.jsx(RPe,{}),q.jsx(TPe,{}),xV]}),MPe=t=>{const e=t.split("/");return e.length===1?e[e.length-1]:e[e.length-2]+"/"+e[e.length-1]},DPe=({fileId:t,isTransient:e,isActive:n,setActiveFileId:r,openTab:i,closeTabs:o,fileName:s})=>{const a=N.useCallback(f=>{f.stopPropagation(),o([t])},[o,t]),l=N.useMemo(()=>MPe(s),[s]),u=N.useCallback(()=>{r(t)},[t,r]),c=N.useCallback(()=>{i({fileId:t})},[t,i]);return q.jsxs("div",{className:`tab user-select-none ${n?"active":""} ${e?"transient":""}`,onClick:u,onDoubleClick:c,children:[l,q.jsx("i",{className:"icon-button icon-button-dark",onClick:a,children:q.jsx(VO,{})})]})},IPe=({activeFileId:t,tabList:e})=>{const{files:n,setActiveFileId:r,openTab:i,closeTabs:o}=N.useContext(Lr);return q.jsx("div",{className:"vz-tab-list",children:n&&e.filter(s=>s.fileId in n).map(s=>q.jsx(DPe,{fileId:s.fileId,isTransient:s.isTransient,isActive:s.fileId===t,setActiveFileId:r,openTab:i,closeTabs:o,fileName:n[s.fileId].name},s.fileId))})},pQ=["files"],$Pe=({customInteractRules:t,aiCopilotEndpoint:e,esLintSource:n})=>{const{activePane:r,shareDBDoc:i,content:o,submitOperation:s,localPresence:a,docPresence:l,username:u,editorCache:c,editorWantsFocus:f,editorNoLongerWantsFocus:d,theme:h,codeEditorRef:p,enableAutoFollow:g,setIsAIChatOpen:y,handleSendMessage:O}=N.useContext(Lr),b=N.useRef(null),S=N.useCallback(()=>{b.current?clearTimeout(b.current):s(M=>({...M,isInteracting:!0})),b.current=setTimeout(()=>{b.current=null,s(({isInteracting:M,...P})=>({...P}))},800)},[s]),k=N.useRef(u);k.current=u;const x=N.useRef(g);N.useEffect(()=>{x.current=g},[g]);const[_,I]=N.useState(null);return N.useEffect(()=>{if(!i)return;let M=!0;return(async()=>{const E=await ehe({fileId:r.activeFileId,shareDBDoc:i,filesPath:pQ,localPresence:a,docPresence:l,theme:h,onInteract:S,editorCache:c,usernameRef:k,customInteractRules:t,enableAutoFollowRef:x,aiCopilotEndpoint:e,esLintSource:n,setIsAIChatOpen:y,handleSendMessage:O});M&&I(E)})(),()=>{M=!1}},[r,i,pQ,a,l,h,S,c,k,e,n]),N.useLayoutEffect(()=>{if(p.current&&o&&_)return p.current.appendChild(_.editor.dom),_.editor.scrollDOM.scrollTo({top:_.scrollPosition??0}),()=>{_&&p.current?.contains(_.editor.dom)&&(_.scrollPosition=_.editor.scrollDOM.scrollTop,p.current.removeChild(_.editor.dom))}},[i,_]),N.useEffect(()=>{f&&_&&(_.editor.focus(),d())},[f,_,d]),q.jsx("div",{className:"vz-code-editor",ref:p,tabIndex:-1})},NPe=()=>{const{activePane:t,content:e}=N.useContext(Lr),n=t?.activeFileId,r=n&&e?.files?.[n];if(!r)return q.jsx("div",{className:"image-viewer-error",children:"No file selected"});if(!r.name.match(/\.(png|jpg|jpeg|gif|bmp|svg|webp)$/i))return q.jsx("div",{className:"image-viewer-error",children:"Not an image file"});const s=(u=>{switch(u.split(".").pop()?.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif";case"bmp":return"image/bmp";case"svg":return"image/svg+xml";case"webp":return"image/webp";default:return"image/png"}})(r.name),l=r.name.split(".").pop()?.toLowerCase()==="svg"&&!r.text.startsWith("PHN2Zw")?`data:${s};utf8,${encodeURIComponent(r.text)}`:`data:${s};base64,${r.text}`;return q.jsx("div",{className:"image-viewer",children:q.jsx("div",{className:"image-viewer-content",children:q.jsx("img",{src:l,alt:r.name,className:"image-viewer-img",onError:u=>{console.error("Failed to load image:",r.name),u.target.style.display="none"}})})})},LPe=({errorMessage:t,content:e})=>{const[n,r]=N.useState(!0);N.useEffect(()=>{t!==null&&r(!0)},[t]);const i=N.useCallback(()=>{r(!1)},[]);return N.useEffect(()=>{const o=s=>{s.key==="Escape"&&i()};return document.addEventListener("keydown",o,!0),()=>{document.removeEventListener("keydown",o,!0)}},[i]),n&&t!==null?q.jsxs("div",{className:"vz-code-error-overlay",children:[q.jsx("pre",{children:t}),q.jsx("i",{className:"icon-button icon-button-dark error-dismiss-button",onClick:i,children:q.jsx(VO,{})})]}):null},mQ=t=>{const[e]=t.split("-");return parseInt(e,36)},jPe=(t,e)=>{const n=mQ(t),r=mQ(e);return n>r},QPe=(t,e,n,r)=>{n.current.has(t)?n.current.set(t,e):(n.current.set(t,e),r(i=>[...i,{user:e,join:!0,presenceId:t}]))},FPe=(t,e,n)=>{const r=e.current.get(t);r&&(e.current.delete(t),n(i=>[...i,{user:r,join:!1,presenceId:t}]))},BPe=({docPresence:t,localPresence:e})=>{const[n,r]=N.useState([]),i=N.useRef(new Map);return N.useEffect(()=>{if(t){const o=(s,a)=>{const l=a!==null;if(jPe(s,e.presenceId)){if(l){const c=t.remotePresences[s]?.username;QPe(s,c,i,r)}else FPe(s,i,r);const u=setTimeout(()=>{r(c=>c.slice(1))},5e3);return()=>{clearTimeout(u)}}};return t.on("receive",o),()=>{t.off("receive",o)}}},[t,e]),n.length>0?q.jsx("div",{className:"vz-notification",children:n.map(({user:o,join:s,presenceId:a})=>q.jsx("div",{className:"vz-notification-item",children:s?`${o} has joined the session.`:`${o} has left the session.`},a))}):null},UPe=()=>(Math.random()+"").slice(2),qPe=100,VPe=2e3,zPe=(t,e=!0)=>{const n=t.name?.substring(0,qPe).trim(),r=(e?t.text?.substring(0,VPe):t.text).trim();return["`"+n+"`:","```",r,"```"].join(`
456
- `)},WPe="/ai-assist",ZPe=async({view:t,shareDBDoc:e,fileId:n,tabList:r,aiAssistEndpoint:i=WPe,aiAssistOptions:o={},aiStreamId:s})=>{const a=e.data.files[n].name,l=t.state.sliceDoc(0,t.state.selection.main.from),u=t.state.sliceDoc(t.state.selection.main.to),c=l+"<FILL_ME>"+u,f={name:a,text:c},d=t.state.selection.main.to;let h=zPe(f,!1);const g=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...o,inputText:h,fileId:n,insertionCursor:d,aiStreamId:s})})).json();g.error&&console.error("[startAIAssist] error from server:",g.error)},XPe=[{x:40,y:0,r:4},{x:28.28,y:28.28,r:4.85},{x:0,y:40,r:5.71},{x:-28.29,y:28.28,r:6.57},{x:-40,y:0,r:7.42},{x:-28.29,y:-28.29,r:8.28},{x:-.01,y:-40,r:9.14},{x:28.28,y:-28.29,r:10}],HPe=({height:t=40,fill:e="currentcolor",fadeIn:n=!0})=>{const[r,i]=N.useState(!1);return N.useEffect(()=>{i(!0)},[]),r&&q.jsx("div",{className:`vh-spinner${n?" fade-in":""}`,children:q.jsx("svg",{height:t,viewBox:"0 0 100 100",style:{opacity:1},children:q.jsx("g",{transform:"translate(50, 50)",fill:e,children:q.jsx("g",{className:"vh-spinner-dots",children:XPe.map(({x:o,y:s,r:a},l)=>q.jsx("circle",{cx:o,cy:s,r:a},l))})})})})},YPe=({aiAssistEndpoint:t,aiAssistOptions:e,aiAssistTooltipText:n="Start AI Assist",aiAssistClickOverride:r,activeFileId:i,tabList:o,paneId:s})=>{const{shareDBDoc:a,editorCache:l,runPrettierRef:u,runCodeRef:c}=N.useContext(Lr),[f,d]=N.useState(null),h=N.useCallback(async()=>{if(!(f!==null)){const y=UPe();d(y),await ZPe({view:l.get(vm(i,s)).editor,shareDBDoc:a,fileId:i,tabList:o,aiStreamId:y,aiAssistEndpoint:t,aiAssistOptions:e}),await new Promise(S=>setTimeout(S,1e3));const O=u.current;O!==null&&O();const b=c.current;b!==null&&b(),d(S=>S===y?null:S)}},[i,s,f]),p=f===null;return q.jsx("div",{className:"vz-code-ai-assist-widget",children:f?q.jsx(HPe,{}):p&&q.jsx(ho,{placement:"left",overlay:q.jsx(po,{id:"ai-assist-widget-tooltip",children:n}),children:q.jsx("i",{className:"icon-button icon-button-dark",onClick:r||h,children:q.jsx(RO,{})})})})},GPe=!1,KPe=({runCodeWidgetTooltipText:t=q.jsxs(q.Fragment,{children:[q.jsx("strong",{children:"Run Code"}),q.jsx("div",{children:"(Shift + Enter or Ctrl + s)"})]})})=>{const{runCodeRef:e,runPrettierRef:n,splitCurrentPane:r}=N.useContext(Lr),[i,o]=N.useState(!1),s=N.useCallback(a=>{o(!0);const l=n.current;l!==null&&l();const u=e.current;u!==null&&u(),setTimeout(()=>o(!1),1e3)},[e,n]);return N.useCallback(()=>{r()},[r]),N.useEffect(()=>{const a=l=>{(l.ctrlKey&&l.key==="s"||l.shiftKey&&l.key==="Enter")&&(l.preventDefault(),s())};return window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}},[s]),q.jsxs("div",{children:[q.jsx("div",{className:"vz-code-split-view-widget",children:GPe}),q.jsx("div",{className:"vz-code-run-code-widget",children:q.jsx(ho,{placement:"bottom",overlay:q.jsx(po,{id:"run-code-widget-tooltip",children:t}),children:q.jsx("i",{className:`icon-button icon-button-dark ${i?"rotate-icon":""}`,onClick:s,children:q.jsx(yOe,{})})})})]})},JPe=t=>t.match(/\.(png|jpg|jpeg|gif|bmp|svg|webp)$/i)!==null,eCe=({pane:t,content:e,customInteractRules:n,enableAIAssist:r,aiAssistEndpoint:i,aiAssistOptions:o,aiAssistTooltipText:s,aiAssistClickOverride:a,aiCopilotEndpoint:l,esLintSource:u})=>{const[c,f]=N.useState(!1);return N.useEffect(()=>{f(!0)},[]),q.jsxs(q.Fragment,{children:[q.jsx(IPe,{activeFileId:t.activeFileId,tabList:t.tabList}),c&&e&&t.activeFileId&&(()=>{const d=e.files[t.activeFileId];return d&&JPe(d.name)?q.jsx(NPe,{}):q.jsx($Pe,{customInteractRules:n,aiCopilotEndpoint:l,esLintSource:u})})(),c&&r&&e&&t.activeFileId?q.jsx(YPe,{aiAssistEndpoint:i,aiAssistOptions:o,aiAssistTooltipText:s,aiAssistClickOverride:a,paneId:t.id,activeFileId:t.activeFileId,tabList:t.tabList}):null,q.jsx(KPe,{})]})},tCe=({enableAIAssist:t=!1,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:o,customInteractRules:s,esLintSource:a})=>{const{codeEditorWidth:l}=N.useContext(l0),{content:u,localPresence:c,docPresence:f,pane:d,activePane:h,errorMessage:p}=N.useContext(Lr);if(h.type!=="leafPane")throw new Error("Expected leafPane");return h.activeFileId!==null?q.jsxs("div",{className:"middle",style:{width:l+"px"},children:[q.jsx(eCe,{pane:d,content:u,customInteractRules:s,enableAIAssist:t,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:o,esLintSource:a}),q.jsx(LPe,{errorMessage:p,content:u}),q.jsx(BPe,{docPresence:f,localPresence:c})]}):null},nCe=20,rCe=200,gQ=4,vQ=({side:t,isSidebarVisible:e=!0})=>{const{sidebarWidth:n,codeEditorWidth:r,moveSplitPane:i,isDraggingRight:o,isDraggingLeft:s,setIsDragging:a}=N.useContext(l0),{activePane:l}=N.useContext(Lr),u=t==="left"||l.activeFileId,c=N.useRef(0),f=N.useCallback(O=>{O.preventDefault(),c.current=O.clientX,a(!0,t),document.body.style.cursor="col-resize"},[a,t]),d=N.useCallback(O=>{O.preventDefault();const b=O.clientX-c.current;c.current=O.clientX,i(b,t)},[i,t]),h=N.useCallback(()=>{a(!1,t),document.body.style.cursor="default"},[a,t]),p=t==="left"&&s||t==="right"&&o;N.useEffect(()=>{if(p)return document.addEventListener("mousemove",d),document.addEventListener("mouseup",h),()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h)}},[p,d,h]);const g=p?rCe:nCe,y=(t==="left"?n:e?n+r:r)-g/2;return u?q.jsx("div",{className:"vz-resizer",onMouseDown:f,style:{left:y+g/2-1.5,width:g},children:q.jsx("div",{className:"vz-resizer-thumb",style:{left:gQ/2-1.5,width:gQ}})}):null};var An;(function(t){t[t.NONE=0]="NONE";const n=1;t[t._abstract=n]="_abstract";const r=n+1;t[t._accessor=r]="_accessor";const i=r+1;t[t._as=i]="_as";const o=i+1;t[t._assert=o]="_assert";const s=o+1;t[t._asserts=s]="_asserts";const a=s+1;t[t._async=a]="_async";const l=a+1;t[t._await=l]="_await";const u=l+1;t[t._checks=u]="_checks";const c=u+1;t[t._constructor=c]="_constructor";const f=c+1;t[t._declare=f]="_declare";const d=f+1;t[t._enum=d]="_enum";const h=d+1;t[t._exports=h]="_exports";const p=h+1;t[t._from=p]="_from";const g=p+1;t[t._get=g]="_get";const y=g+1;t[t._global=y]="_global";const O=y+1;t[t._implements=O]="_implements";const b=O+1;t[t._infer=b]="_infer";const S=b+1;t[t._interface=S]="_interface";const k=S+1;t[t._is=k]="_is";const x=k+1;t[t._keyof=x]="_keyof";const _=x+1;t[t._mixins=_]="_mixins";const I=_+1;t[t._module=I]="_module";const M=I+1;t[t._namespace=M]="_namespace";const P=M+1;t[t._of=P]="_of";const E=P+1;t[t._opaque=E]="_opaque";const R=E+1;t[t._out=R]="_out";const T=R+1;t[t._override=T]="_override";const L=T+1;t[t._private=L]="_private";const A=L+1;t[t._protected=A]="_protected";const H=A+1;t[t._proto=H]="_proto";const W=H+1;t[t._public=W]="_public";const Z=W+1;t[t._readonly=Z]="_readonly";const G=Z+1;t[t._require=G]="_require";const K=G+1;t[t._satisfies=K]="_satisfies";const U=K+1;t[t._set=U]="_set";const B=U+1;t[t._static=B]="_static";const Y=B+1;t[t._symbol=Y]="_symbol";const j=Y+1;t[t._type=j]="_type";const ne=j+1;t[t._unique=ne]="_unique";const ee=ne+1;t[t._using=ee]="_using"})(An||(An={}));var $n;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const r=32;t[t.IS_ASSIGN=r]="IS_ASSIGN";const i=64;t[t.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const o=128;t[t.IS_PREFIX=o]="IS_PREFIX";const s=256;t[t.IS_POSTFIX=s]="IS_POSTFIX";const a=512;t[t.IS_EXPRESSION_START=a]="IS_EXPRESSION_START";const l=512;t[t.num=l]="num";const u=1536;t[t.bigint=u]="bigint";const c=2560;t[t.decimal=c]="decimal";const f=3584;t[t.regexp=f]="regexp";const d=4608;t[t.string=d]="string";const h=5632;t[t.name=h]="name";const p=6144;t[t.eof=p]="eof";const g=7680;t[t.bracketL=g]="bracketL";const y=8192;t[t.bracketR=y]="bracketR";const O=9728;t[t.braceL=O]="braceL";const b=10752;t[t.braceBarL=b]="braceBarL";const S=11264;t[t.braceR=S]="braceR";const k=12288;t[t.braceBarR=k]="braceBarR";const x=13824;t[t.parenL=x]="parenL";const _=14336;t[t.parenR=_]="parenR";const I=15360;t[t.comma=I]="comma";const M=16384;t[t.semi=M]="semi";const P=17408;t[t.colon=P]="colon";const E=18432;t[t.doubleColon=E]="doubleColon";const R=19456;t[t.dot=R]="dot";const T=20480;t[t.question=T]="question";const L=21504;t[t.questionDot=L]="questionDot";const A=22528;t[t.arrow=A]="arrow";const H=23552;t[t.template=H]="template";const W=24576;t[t.ellipsis=W]="ellipsis";const Z=25600;t[t.backQuote=Z]="backQuote";const G=27136;t[t.dollarBraceL=G]="dollarBraceL";const K=27648;t[t.at=K]="at";const U=29184;t[t.hash=U]="hash";const B=29728;t[t.eq=B]="eq";const Y=30752;t[t.assign=Y]="assign";const j=32640;t[t.preIncDec=j]="preIncDec";const ne=33664;t[t.postIncDec=ne]="postIncDec";const ee=34432;t[t.bang=ee]="bang";const ue=35456;t[t.tilde=ue]="tilde";const z=35841;t[t.pipeline=z]="pipeline";const X=36866;t[t.nullishCoalescing=X]="nullishCoalescing";const J=37890;t[t.logicalOR=J]="logicalOR";const fe=38915;t[t.logicalAND=fe]="logicalAND";const we=39940;t[t.bitwiseOR=we]="bitwiseOR";const Te=40965;t[t.bitwiseXOR=Te]="bitwiseXOR";const Re=41990;t[t.bitwiseAND=Re]="bitwiseAND";const Q=43015;t[t.equality=Q]="equality";const ve=44040;t[t.lessThan=ve]="lessThan";const ge=45064;t[t.greaterThan=ge]="greaterThan";const ie=46088;t[t.relationalOrEqual=ie]="relationalOrEqual";const oe=47113;t[t.bitShiftL=oe]="bitShiftL";const me=48137;t[t.bitShiftR=me]="bitShiftR";const $e=49802;t[t.plus=$e]="plus";const Fe=50826;t[t.minus=Fe]="minus";const Pe=51723;t[t.modulo=Pe]="modulo";const V=52235;t[t.star=V]="star";const ye=53259;t[t.slash=ye]="slash";const _e=54348;t[t.exponent=_e]="exponent";const de=55296;t[t.jsxName=de]="jsxName";const Se=56320;t[t.jsxText=Se]="jsxText";const Me=57344;t[t.jsxEmptyText=Me]="jsxEmptyText";const et=58880;t[t.jsxTagStart=et]="jsxTagStart";const st=59392;t[t.jsxTagEnd=st]="jsxTagEnd";const Le=60928;t[t.typeParameterStart=Le]="typeParameterStart";const at=61440;t[t.nonNullAssertion=at]="nonNullAssertion";const We=62480;t[t._break=We]="_break";const dt=63504;t[t._case=dt]="_case";const wt=64528;t[t._catch=wt]="_catch";const pt=65552;t[t._continue=pt]="_continue";const It=66576;t[t._debugger=It]="_debugger";const nt=67600;t[t._default=nt]="_default";const Rt=68624;t[t._do=Rt]="_do";const un=69648;t[t._else=un]="_else";const Tt=70672;t[t._finally=Tt]="_finally";const qt=71696;t[t._for=qt]="_for";const On=73232;t[t._function=On]="_function";const Tn=73744;t[t._if=Tn]="_if";const bn=74768;t[t._return=bn]="_return";const Rn=75792;t[t._switch=Rn]="_switch";const ir=77456;t[t._throw=ir]="_throw";const pe=77840;t[t._try=pe]="_try";const Ee=78864;t[t._var=Ee]="_var";const De=79888;t[t._let=De]="_let";const rt=80912;t[t._const=rt]="_const";const ct=81936;t[t._while=ct]="_while";const ht=82960;t[t._with=ht]="_with";const Ve=84496;t[t._new=Ve]="_new";const Ye=85520;t[t._this=Ye]="_this";const Je=86544;t[t._super=Je]="_super";const Ze=87568;t[t._class=Ze]="_class";const Ne=88080;t[t._extends=Ne]="_extends";const lt=89104;t[t._export=lt]="_export";const Pt=90640;t[t._import=Pt]="_import";const Nt=91664;t[t._yield=Nt]="_yield";const hn=92688;t[t._null=hn]="_null";const cn=93712;t[t._true=cn]="_true";const Kt=94736;t[t._false=Kt]="_false";const sn=95256;t[t._in=sn]="_in";const nn=96280;t[t._instanceof=nn]="_instanceof";const Yt=97936;t[t._typeof=Yt]="_typeof";const Ct=98960;t[t._void=Ct]="_void";const ln=99984;t[t._delete=ln]="_delete";const or=100880;t[t._async=or]="_async";const wn=101904;t[t._get=wn]="_get";const fr=102928;t[t._set=fr]="_set";const lr=103952;t[t._declare=lr]="_declare";const ce=104976;t[t._readonly=ce]="_readonly";const le=106e3;t[t._abstract=le]="_abstract";const Oe=107024;t[t._static=Oe]="_static";const Xe=107536;t[t._public=Xe]="_public";const Ae=108560;t[t._private=Ae]="_private";const ze=109584;t[t._protected=ze]="_protected";const bt=110608;t[t._override=bt]="_override";const ot=112144;t[t._as=ot]="_as";const yt=113168;t[t._enum=yt]="_enum";const zt=114192;t[t._type=zt]="_type";const At=115216;t[t._implements=At]="_implements"})($n||($n={}));var Bc;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const r=9;t[t.tab=r]="tab";const i=13;t[t.carriageReturn=i]="carriageReturn";const o=14;t[t.shiftOut=o]="shiftOut";const s=32;t[t.space=s]="space";const a=33;t[t.exclamationMark=a]="exclamationMark";const l=34;t[t.quotationMark=l]="quotationMark";const u=35;t[t.numberSign=u]="numberSign";const c=36;t[t.dollarSign=c]="dollarSign";const f=37;t[t.percentSign=f]="percentSign";const d=38;t[t.ampersand=d]="ampersand";const h=39;t[t.apostrophe=h]="apostrophe";const p=40;t[t.leftParenthesis=p]="leftParenthesis";const g=41;t[t.rightParenthesis=g]="rightParenthesis";const y=42;t[t.asterisk=y]="asterisk";const O=43;t[t.plusSign=O]="plusSign";const b=44;t[t.comma=b]="comma";const S=45;t[t.dash=S]="dash";const k=46;t[t.dot=k]="dot";const x=47;t[t.slash=x]="slash";const _=48;t[t.digit0=_]="digit0";const I=49;t[t.digit1=I]="digit1";const M=50;t[t.digit2=M]="digit2";const P=51;t[t.digit3=P]="digit3";const E=52;t[t.digit4=E]="digit4";const R=53;t[t.digit5=R]="digit5";const T=54;t[t.digit6=T]="digit6";const L=55;t[t.digit7=L]="digit7";const A=56;t[t.digit8=A]="digit8";const H=57;t[t.digit9=H]="digit9";const W=58;t[t.colon=W]="colon";const Z=59;t[t.semicolon=Z]="semicolon";const G=60;t[t.lessThan=G]="lessThan";const K=61;t[t.equalsTo=K]="equalsTo";const U=62;t[t.greaterThan=U]="greaterThan";const B=63;t[t.questionMark=B]="questionMark";const Y=64;t[t.atSign=Y]="atSign";const j=65;t[t.uppercaseA=j]="uppercaseA";const ne=66;t[t.uppercaseB=ne]="uppercaseB";const ee=67;t[t.uppercaseC=ee]="uppercaseC";const ue=68;t[t.uppercaseD=ue]="uppercaseD";const z=69;t[t.uppercaseE=z]="uppercaseE";const X=70;t[t.uppercaseF=X]="uppercaseF";const J=71;t[t.uppercaseG=J]="uppercaseG";const fe=72;t[t.uppercaseH=fe]="uppercaseH";const we=73;t[t.uppercaseI=we]="uppercaseI";const Te=74;t[t.uppercaseJ=Te]="uppercaseJ";const Re=75;t[t.uppercaseK=Re]="uppercaseK";const Q=76;t[t.uppercaseL=Q]="uppercaseL";const ve=77;t[t.uppercaseM=ve]="uppercaseM";const ge=78;t[t.uppercaseN=ge]="uppercaseN";const ie=79;t[t.uppercaseO=ie]="uppercaseO";const oe=80;t[t.uppercaseP=oe]="uppercaseP";const me=81;t[t.uppercaseQ=me]="uppercaseQ";const $e=82;t[t.uppercaseR=$e]="uppercaseR";const Fe=83;t[t.uppercaseS=Fe]="uppercaseS";const Pe=84;t[t.uppercaseT=Pe]="uppercaseT";const V=85;t[t.uppercaseU=V]="uppercaseU";const ye=86;t[t.uppercaseV=ye]="uppercaseV";const _e=87;t[t.uppercaseW=_e]="uppercaseW";const de=88;t[t.uppercaseX=de]="uppercaseX";const Se=89;t[t.uppercaseY=Se]="uppercaseY";const Me=90;t[t.uppercaseZ=Me]="uppercaseZ";const et=91;t[t.leftSquareBracket=et]="leftSquareBracket";const st=92;t[t.backslash=st]="backslash";const Le=93;t[t.rightSquareBracket=Le]="rightSquareBracket";const at=94;t[t.caret=at]="caret";const We=95;t[t.underscore=We]="underscore";const dt=96;t[t.graveAccent=dt]="graveAccent";const wt=97;t[t.lowercaseA=wt]="lowercaseA";const pt=98;t[t.lowercaseB=pt]="lowercaseB";const It=99;t[t.lowercaseC=It]="lowercaseC";const nt=100;t[t.lowercaseD=nt]="lowercaseD";const Rt=101;t[t.lowercaseE=Rt]="lowercaseE";const un=102;t[t.lowercaseF=un]="lowercaseF";const Tt=103;t[t.lowercaseG=Tt]="lowercaseG";const qt=104;t[t.lowercaseH=qt]="lowercaseH";const On=105;t[t.lowercaseI=On]="lowercaseI";const Tn=106;t[t.lowercaseJ=Tn]="lowercaseJ";const bn=107;t[t.lowercaseK=bn]="lowercaseK";const Rn=108;t[t.lowercaseL=Rn]="lowercaseL";const ir=109;t[t.lowercaseM=ir]="lowercaseM";const pe=110;t[t.lowercaseN=pe]="lowercaseN";const Ee=111;t[t.lowercaseO=Ee]="lowercaseO";const De=112;t[t.lowercaseP=De]="lowercaseP";const rt=113;t[t.lowercaseQ=rt]="lowercaseQ";const ct=114;t[t.lowercaseR=ct]="lowercaseR";const ht=115;t[t.lowercaseS=ht]="lowercaseS";const Ve=116;t[t.lowercaseT=Ve]="lowercaseT";const Ye=117;t[t.lowercaseU=Ye]="lowercaseU";const Je=118;t[t.lowercaseV=Je]="lowercaseV";const Ze=119;t[t.lowercaseW=Ze]="lowercaseW";const Ne=120;t[t.lowercaseX=Ne]="lowercaseX";const lt=121;t[t.lowercaseY=lt]="lowercaseY";const Pt=122;t[t.lowercaseZ=Pt]="lowercaseZ";const Nt=123;t[t.leftCurlyBrace=Nt]="leftCurlyBrace";const hn=124;t[t.verticalBar=hn]="verticalBar";const cn=125;t[t.rightCurlyBrace=cn]="rightCurlyBrace";const Kt=126;t[t.tilde=Kt]="tilde";const sn=160;t[t.nonBreakingSpace=sn]="nonBreakingSpace";const nn=5760;t[t.oghamSpaceMark=nn]="oghamSpaceMark";const Yt=8232;t[t.lineSeparator=Yt]="lineSeparator";const Ct=8233;t[t.paragraphSeparator=Ct]="paragraphSeparator"})(Bc||(Bc={}));const gW=[9,11,12,Bc.space,Bc.nonBreakingSpace,Bc.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],iCe=new Uint8Array(65536);for(const t of gW)iCe[t]=1;function oCe(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const uh=new Uint8Array(65536);for(let t=0;t<128;t++)uh[t]=oCe(t)?1:0;for(let t=128;t<65536;t++)uh[t]=1;for(const t of gW)uh[t]=0;uh[8232]=0;uh[8233]=0;const sCe=uh.slice();for(let t=Bc.digit0;t<=Bc.digit9;t++)sCe[t]=0;new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,An._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,An._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,An._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,An._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,An._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._break<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._case<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._catch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,An._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,($n._class<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,($n._const<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,An._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._continue<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,($n._debugger<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,($n._default<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._delete<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._do<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._else<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,($n._export<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,An._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,($n._extends<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._false<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,($n._finally<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,($n._for<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._function<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,An._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,($n._if<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,An._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,($n._import<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._in<<1)+1,-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,An._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._instanceof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,($n._let<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,An._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,($n._new<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._null<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,An._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,An._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,An._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._return<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,An._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,An._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,($n._super<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._switch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,($n._this<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,($n._throw<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._true<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._try<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._typeof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,($n._var<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._void<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var yQ;(function(t){t[t.Access=0]="Access";const n=1;t[t.ExportAccess=n]="ExportAccess";const r=n+1;t[t.TopLevelDeclaration=r]="TopLevelDeclaration";const i=r+1;t[t.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const o=i+1;t[t.BlockScopedDeclaration=o]="BlockScopedDeclaration";const s=o+1;t[t.ObjectShorthandTopLevelDeclaration=s]="ObjectShorthandTopLevelDeclaration";const a=s+1;t[t.ObjectShorthandFunctionScopedDeclaration=a]="ObjectShorthandFunctionScopedDeclaration";const l=a+1;t[t.ObjectShorthandBlockScopedDeclaration=l]="ObjectShorthandBlockScopedDeclaration";const u=l+1;t[t.ObjectShorthand=u]="ObjectShorthand";const c=u+1;t[t.ImportDeclaration=c]="ImportDeclaration";const f=c+1;t[t.ObjectKey=f]="ObjectKey";const d=f+1;t[t.ImportAccess=d]="ImportAccess"})(yQ||(yQ={}));var OQ;(function(t){t[t.NoChildren=0]="NoChildren";const n=1;t[t.OneChild=n]="OneChild";const r=n+1;t[t.StaticChildren=r]="StaticChildren";const i=r+1;t[t.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(OQ||(OQ={}));var $p={exports:{}},aCe=$p.exports,bQ;function lCe(){return bQ||(bQ=1,function(t,e){(function(n,r){r(e)})(aCe,function(n){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),a=new Uint8Array(128);for(let R=0;R<o.length;R++){const T=o.charCodeAt(R);s[R]=T,a[T]=R}function l(R,T){let L=0,A=0,H=0;do{const Z=R.next();H=a[Z],L|=(H&31)<<A,A+=5}while(H&32);const W=L&1;return L>>>=1,W&&(L=-2147483648|-L),T+L}function u(R,T,L){let A=T-L;A=A<0?-A<<1|1:A<<1;do{let H=A&31;A>>>=5,A>0&&(H|=32),R.write(s[H])}while(A>0);return T}function c(R,T){return R.pos>=T?!1:R.peek()!==44}const f=1024*16,d=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(R){return Buffer.from(R.buffer,R.byteOffset,R.byteLength).toString()}}:{decode(R){let T="";for(let L=0;L<R.length;L++)T+=String.fromCharCode(R[L]);return T}};class h{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(f)}write(T){const{buffer:L}=this;L[this.pos++]=T,this.pos===f&&(this.out+=d.decode(L),this.pos=0)}flush(){const{buffer:T,out:L,pos:A}=this;return A>0?L+d.decode(T.subarray(0,A)):L}}class p{constructor(T){this.pos=0,this.buffer=T}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(T){const{buffer:L,pos:A}=this,H=L.indexOf(T,A);return H===-1?L.length:H}}const g=[];function y(R){const{length:T}=R,L=new p(R),A=[],H=[];let W=0;for(;L.pos<T;L.pos++){W=l(L,W);const Z=l(L,0);if(!c(L,T)){const j=H.pop();j[2]=W,j[3]=Z;continue}const G=l(L,0),B=l(L,0)&1?[W,Z,0,0,G,l(L,0)]:[W,Z,0,0,G];let Y=g;if(c(L,T)){Y=[];do{const j=l(L,0);Y.push(j)}while(c(L,T))}B.vars=Y,A.push(B),H.push(B)}return A}function O(R){const T=new h;for(let L=0;L<R.length;)L=b(R,L,T,[0]);return T.flush()}function b(R,T,L,A){const H=R[T],{0:W,1:Z,2:G,3:K,4:U,vars:B}=H;T>0&&L.write(44),A[0]=u(L,W,A[0]),u(L,Z,0),u(L,U,0);const Y=H.length===6?1:0;u(L,Y,0),H.length===6&&u(L,H[5],0);for(const j of B)u(L,j,0);for(T++;T<R.length;){const j=R[T],{0:ne,1:ee}=j;if(ne>G||ne===G&&ee>=K)break;T=b(R,T,L,A)}return L.write(44),A[0]=u(L,G,A[0]),u(L,K,0),T}function S(R){const{length:T}=R,L=new p(R),A=[],H=[];let W=0,Z=0,G=0,K=0,U=0,B=0,Y=0,j=0;do{const ne=L.indexOf(";");let ee=0;for(;L.pos<ne;L.pos++){if(ee=l(L,ee),!c(L,ne)){const Re=H.pop();Re[2]=W,Re[3]=ee;continue}const ue=l(L,0),z=ue&1,X=ue&2,J=ue&4;let fe=null,we=g,Te;if(z){const Re=l(L,Z);G=l(L,Z===Re?G:0),Z=Re,Te=[W,ee,0,0,Re,G]}else Te=[W,ee,0,0];if(Te.isScope=!!J,X){const Re=K,Q=U;K=l(L,K);const ve=Re===K;U=l(L,ve?U:0),B=l(L,ve&&Q===U?B:0),fe=[K,U,B]}if(Te.callsite=fe,c(L,ne)){we=[];do{Y=W,j=ee;const Re=l(L,0);let Q;if(Re<-1){Q=[[l(L,0)]];for(let ve=-1;ve>Re;ve--){const ge=Y;Y=l(L,Y),j=l(L,Y===ge?j:0);const ie=l(L,0);Q.push([ie,Y,j])}}else Q=[[Re]];we.push(Q)}while(c(L,ne))}Te.bindings=we,A.push(Te),H.push(Te)}W++,L.pos=ne+1}while(L.pos<T);return A}function k(R){if(R.length===0)return"";const T=new h;for(let L=0;L<R.length;)L=x(R,L,T,[0,0,0,0,0,0,0]);return T.flush()}function x(R,T,L,A){const H=R[T],{0:W,1:Z,2:G,3:K,isScope:U,callsite:B,bindings:Y}=H;A[0]<W?(_(L,A[0],W),A[0]=W,A[1]=0):T>0&&L.write(44),A[1]=u(L,H[1],A[1]);const j=(H.length===6?1:0)|(B?2:0)|(U?4:0);if(u(L,j,0),H.length===6){const{4:ne,5:ee}=H;ne!==A[2]&&(A[3]=0),A[2]=u(L,ne,A[2]),A[3]=u(L,ee,A[3])}if(B){const{0:ne,1:ee,2:ue}=H.callsite;ne!==A[4]?(A[5]=0,A[6]=0):ee!==A[5]&&(A[6]=0),A[4]=u(L,ne,A[4]),A[5]=u(L,ee,A[5]),A[6]=u(L,ue,A[6])}if(Y)for(const ne of Y){ne.length>1&&u(L,-ne.length,0);const ee=ne[0][0];u(L,ee,0);let ue=W,z=Z;for(let X=1;X<ne.length;X++){const J=ne[X];ue=u(L,J[1],ue),z=u(L,J[2],z),u(L,J[0],0)}}for(T++;T<R.length;){const ne=R[T],{0:ee,1:ue}=ne;if(ee>G||ee===G&&ue>=K)break;T=x(R,T,L,A)}return A[0]<G?(_(L,A[0],G),A[0]=G,A[1]=0):L.write(44),A[1]=u(L,K,A[1]),T}function _(R,T,L){do R.write(59);while(++T<L)}function I(R){const{length:T}=R,L=new p(R),A=[];let H=0,W=0,Z=0,G=0,K=0;do{const U=L.indexOf(";"),B=[];let Y=!0,j=0;for(H=0;L.pos<U;){let ne;H=l(L,H),H<j&&(Y=!1),j=H,c(L,U)?(W=l(L,W),Z=l(L,Z),G=l(L,G),c(L,U)?(K=l(L,K),ne=[H,W,Z,G,K]):ne=[H,W,Z,G]):ne=[H],B.push(ne),L.pos++}Y||M(B),A.push(B),L.pos=U+1}while(L.pos<=T);return A}function M(R){R.sort(P)}function P(R,T){return R[0]-T[0]}function E(R){const T=new h;let L=0,A=0,H=0,W=0;for(let Z=0;Z<R.length;Z++){const G=R[Z];if(Z>0&&T.write(59),G.length===0)continue;let K=0;for(let U=0;U<G.length;U++){const B=G[U];U>0&&T.write(44),K=u(T,B[0],K),B.length!==1&&(L=u(T,B[1],L),A=u(T,B[2],A),H=u(T,B[3],H),B.length!==4&&(W=u(T,B[4],W)))}}return T.flush()}n.decode=I,n.decodeGeneratedRanges=S,n.decodeOriginalScopes=y,n.encode=E,n.encodeGeneratedRanges=k,n.encodeOriginalScopes=O,Object.defineProperty(n,"__esModule",{value:!0})})}($p,$p.exports)),$p.exports}lCe();var jy={exports:{}},uCe=jy.exports,wQ;function cCe(){return wQ||(wQ=1,function(t,e){(function(n,r){t.exports=r()})(uCe,function(){const n=/^[\w+.-]+:\/\//,r=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o(b){return n.test(b)}function s(b){return b.startsWith("//")}function a(b){return b.startsWith("/")}function l(b){return b.startsWith("file:")}function u(b){return/^[.?#]/.test(b)}function c(b){const S=r.exec(b);return d(S[1],S[2]||"",S[3],S[4]||"",S[5]||"/",S[6]||"",S[7]||"")}function f(b){const S=i.exec(b),k=S[2];return d("file:","",S[1]||"","",a(k)?k:"/"+k,S[3]||"",S[4]||"")}function d(b,S,k,x,_,I,M){return{scheme:b,user:S,host:k,port:x,path:_,query:I,hash:M,type:7}}function h(b){if(s(b)){const k=c("http:"+b);return k.scheme="",k.type=6,k}if(a(b)){const k=c("http://foo.com"+b);return k.scheme="",k.host="",k.type=5,k}if(l(b))return f(b);if(o(b))return c(b);const S=c("http://foo.com/"+b);return S.scheme="",S.host="",S.type=b?b.startsWith("?")?3:b.startsWith("#")?2:4:1,S}function p(b){if(b.endsWith("/.."))return b;const S=b.lastIndexOf("/");return b.slice(0,S+1)}function g(b,S){y(S,S.type),b.path==="/"?b.path=S.path:b.path=p(S.path)+b.path}function y(b,S){const k=S<=4,x=b.path.split("/");let _=1,I=0,M=!1;for(let E=1;E<x.length;E++){const R=x[E];if(!R){M=!0;continue}if(M=!1,R!=="."){if(R===".."){I?(M=!0,I--,_--):k&&(x[_++]=R);continue}x[_++]=R,I++}}let P="";for(let E=1;E<_;E++)P+="/"+x[E];(!P||M&&!P.endsWith("/.."))&&(P+="/"),b.path=P}function O(b,S){if(!b&&!S)return"";const k=h(b);let x=k.type;if(S&&x!==7){const I=h(S),M=I.type;switch(x){case 1:k.hash=I.hash;case 2:k.query=I.query;case 3:case 4:g(k,I);case 5:k.user=I.user,k.host=I.host,k.port=I.port;case 6:k.scheme=I.scheme}M>x&&(x=M)}y(k,x);const _=k.query+k.hash;switch(x){case 2:case 3:return _;case 4:{const I=k.path.slice(1);return I?u(S||b)&&!u(I)?"./"+I+_:I+_:_||"."}case 5:return k.path+_;default:return k.scheme+"//"+k.user+k.host+k.port+k.path+_}}return O})}(jy)),jy.exports}cCe();var kp={},xp={},Ks={},SQ;function wC(){if(SQ)return Ks;SQ=1;var t=Ks&&Ks.__extends||function(){var o=function(s,a){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var c in u)u.hasOwnProperty(c)&&(l[c]=u[c])},o(s,a)};return function(s,a){o(s,a);function l(){this.constructor=s}s.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.DetailContext=Ks.NoopContext=Ks.VError=void 0;var e=function(o){t(s,o);function s(a,l){var u=o.call(this,l)||this;return u.path=a,Object.setPrototypeOf(u,s.prototype),u}return s}(Error);Ks.VError=e;var n=function(){function o(){}return o.prototype.fail=function(s,a,l){return!1},o.prototype.unionResolver=function(){return this},o.prototype.createContext=function(){return this},o.prototype.resolveUnion=function(s){},o}();Ks.NoopContext=n;var r=function(){function o(){this._propNames=[""],this._messages=[null],this._score=0}return o.prototype.fail=function(s,a,l){return this._propNames.push(s),this._messages.push(a),this._score+=l,!1},o.prototype.unionResolver=function(){return new i},o.prototype.resolveUnion=function(s){for(var a,l,u=s,c=null,f=0,d=u.contexts;f<d.length;f++){var h=d[f];(!c||h._score>=c._score)&&(c=h)}c&&c._score>0&&((a=this._propNames).push.apply(a,c._propNames),(l=this._messages).push.apply(l,c._messages))},o.prototype.getError=function(s){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];s+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push(s+" "+c)}return new e(s,a.join("; "))},o.prototype.getErrorDetail=function(s){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];s+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push({path:s,message:c})}for(var f=null,l=a.length-1;l>=0;l--)f&&(a[l].nested=[f]),f=a[l];return f},o}();Ks.DetailContext=r;var i=function(){function o(){this.contexts=[]}return o.prototype.createContext=function(){var s=new r;return this.contexts.push(s),s},o}();return Ks}var kQ;function xQ(){return kQ||(kQ=1,function(t){var e=xp&&xp.__extends||function(){var ee=function(ue,z){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,J){X.__proto__=J}||function(X,J){for(var fe in J)J.hasOwnProperty(fe)&&(X[fe]=J[fe])},ee(ue,z)};return function(ue,z){ee(ue,z);function X(){this.constructor=ue}ue.prototype=z===null?Object.create(z):(X.prototype=z.prototype,new X)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var n=wC(),r=function(){function ee(){}return ee}();t.TType=r;function i(ee){return typeof ee=="string"?s(ee):ee}function o(ee,ue){var z=ee[ue];if(!z)throw new Error("Unknown type "+ue);return z}function s(ee){return new a(ee)}t.name=s;var a=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.name=z,X._failMsg="is not a "+z,X}return ue.prototype.getChecker=function(z,X,J){var fe=this,we=o(z,this.name),Te=we.getChecker(z,X,J);return we instanceof G||we instanceof ue?Te:function(Re,Q){return Te(Re,Q)?!0:Q.fail(null,fe._failMsg,0)}},ue}(r);t.TName=a;function l(ee){return new u(ee)}t.lit=l;var u=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.value=z,X.name=JSON.stringify(z),X._failMsg="is not "+X.name,X}return ue.prototype.getChecker=function(z,X){var J=this;return function(fe,we){return fe===J.value?!0:we.fail(null,J._failMsg,-1)}},ue}(r);t.TLiteral=u;function c(ee){return new f(i(ee))}t.array=c;var f=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.ttype=z,X}return ue.prototype.getChecker=function(z,X){var J=this.ttype.getChecker(z,X);return function(fe,we){if(!Array.isArray(fe))return we.fail(null,"is not an array",0);for(var Te=0;Te<fe.length;Te++){var Re=J(fe[Te],we);if(!Re)return we.fail(Te,null,1)}return!0}},ue}(r);t.TArray=f;function d(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new h(ee.map(function(z){return i(z)}))}t.tuple=d;var h=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.ttypes=z,X}return ue.prototype.getChecker=function(z,X){var J=this.ttypes.map(function(we){return we.getChecker(z,X)}),fe=function(we,Te){if(!Array.isArray(we))return Te.fail(null,"is not an array",0);for(var Re=0;Re<J.length;Re++){var Q=J[Re](we[Re],Te);if(!Q)return Te.fail(Re,null,1)}return!0};return X?function(we,Te){return fe(we,Te)?we.length<=J.length?!0:Te.fail(J.length,"is extraneous",2):!1}:fe},ue}(r);t.TTuple=h;function p(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new g(ee.map(function(z){return i(z)}))}t.union=p;var g=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;X.ttypes=z;var J=z.map(function(we){return we instanceof a||we instanceof u?we.name:null}).filter(function(we){return we}),fe=z.length-J.length;return J.length?(fe>0&&J.push(fe+" more"),X._failMsg="is none of "+J.join(", ")):X._failMsg="is none of "+fe+" types",X}return ue.prototype.getChecker=function(z,X){var J=this,fe=this.ttypes.map(function(we){return we.getChecker(z,X)});return function(we,Te){for(var Re=Te.unionResolver(),Q=0;Q<fe.length;Q++){var ve=fe[Q](we,Re.createContext());if(ve)return!0}return Te.resolveUnion(Re),Te.fail(null,J._failMsg,0)}},ue}(r);t.TUnion=g;function y(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new O(ee.map(function(z){return i(z)}))}t.intersection=y;var O=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.ttypes=z,X}return ue.prototype.getChecker=function(z,X){var J=new Set,fe=this.ttypes.map(function(we){return we.getChecker(z,X,J)});return function(we,Te){var Re=fe.every(function(Q){return Q(we,Te)});return Re?!0:Te.fail(null,null,0)}},ue}(r);t.TIntersection=O;function b(ee){return new S(ee)}t.enumtype=b;var S=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.members=z,X.validValues=new Set,X._failMsg="is not a valid enum value",X.validValues=new Set(Object.keys(z).map(function(J){return z[J]})),X}return ue.prototype.getChecker=function(z,X){var J=this;return function(fe,we){return J.validValues.has(fe)?!0:we.fail(null,J._failMsg,0)}},ue}(r);t.TEnumType=S;function k(ee,ue){return new x(ee,ue)}t.enumlit=k;var x=function(ee){e(ue,ee);function ue(z,X){var J=ee.call(this)||this;return J.enumName=z,J.prop=X,J._failMsg="is not "+z+"."+X,J}return ue.prototype.getChecker=function(z,X){var J=this,fe=o(z,this.enumName);if(!(fe instanceof S))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var we=fe.members[this.prop];if(!fe.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(Te,Re){return Te===we?!0:Re.fail(null,J._failMsg,-1)}},ue}(r);t.TEnumLiteral=x;function _(ee){return Object.keys(ee).map(function(ue){return I(ue,ee[ue])})}function I(ee,ue){return ue instanceof R?new T(ee,ue.ttype,!0):new T(ee,i(ue),!1)}function M(ee,ue){return new P(ee,_(ue))}t.iface=M;var P=function(ee){e(ue,ee);function ue(z,X){var J=ee.call(this)||this;return J.bases=z,J.props=X,J.propSet=new Set(X.map(function(fe){return fe.name})),J}return ue.prototype.getChecker=function(z,X,J){var fe=this,we=this.bases.map(function(ie){return o(z,ie).getChecker(z,X)}),Te=this.props.map(function(ie){return ie.ttype.getChecker(z,X)}),Re=new n.NoopContext,Q=this.props.map(function(ie,oe){return!ie.isOpt&&!Te[oe](void 0,Re)}),ve=function(ie,oe){if(typeof ie!="object"||ie===null)return oe.fail(null,"is not an object",0);for(var me=0;me<we.length;me++)if(!we[me](ie,oe))return!1;for(var me=0;me<Te.length;me++){var $e=fe.props[me].name,Fe=ie[$e];if(Fe===void 0){if(Q[me])return oe.fail($e,"is missing",1)}else{var Pe=Te[me](Fe,oe);if(!Pe)return oe.fail($e,null,1)}}return!0};if(!X)return ve;var ge=this.propSet;return J&&(this.propSet.forEach(function(ie){return J.add(ie)}),ge=J),function(ie,oe){if(!ve(ie,oe))return!1;for(var me in ie)if(!ge.has(me))return oe.fail(me,"is extraneous",2);return!0}},ue}(r);t.TIface=P;function E(ee){return new R(i(ee))}t.opt=E;var R=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.ttype=z,X}return ue.prototype.getChecker=function(z,X){var J=this.ttype.getChecker(z,X);return function(fe,we){return fe===void 0||J(fe,we)}},ue}(r);t.TOptional=R;var T=function(){function ee(ue,z,X){this.name=ue,this.ttype=z,this.isOpt=X}return ee}();t.TProp=T;function L(ee){for(var ue=[],z=1;z<arguments.length;z++)ue[z-1]=arguments[z];return new A(new Z(ue),i(ee))}t.func=L;var A=function(ee){e(ue,ee);function ue(z,X){var J=ee.call(this)||this;return J.paramList=z,J.result=X,J}return ue.prototype.getChecker=function(z,X){return function(J,fe){return typeof J=="function"?!0:fe.fail(null,"is not a function",0)}},ue}(r);t.TFunc=A;function H(ee,ue,z){return new W(ee,i(ue),!!z)}t.param=H;var W=function(){function ee(ue,z,X){this.name=ue,this.ttype=z,this.isOpt=X}return ee}();t.TParam=W;var Z=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.params=z,X}return ue.prototype.getChecker=function(z,X){var J=this,fe=this.params.map(function(Q){return Q.ttype.getChecker(z,X)}),we=new n.NoopContext,Te=this.params.map(function(Q,ve){return!Q.isOpt&&!fe[ve](void 0,we)}),Re=function(Q,ve){if(!Array.isArray(Q))return ve.fail(null,"is not an array",0);for(var ge=0;ge<fe.length;ge++){var ie=J.params[ge];if(Q[ge]===void 0){if(Te[ge])return ve.fail(ie.name,"is missing",1)}else{var oe=fe[ge](Q[ge],ve);if(!oe)return ve.fail(ie.name,null,1)}}return!0};return X?function(Q,ve){return Re(Q,ve)?Q.length<=fe.length?!0:ve.fail(fe.length,"is extraneous",2):!1}:Re},ue}(r);t.TParamList=Z;var G=function(ee){e(ue,ee);function ue(z,X){var J=ee.call(this)||this;return J.validator=z,J.message=X,J}return ue.prototype.getChecker=function(z,X){var J=this;return function(fe,we){return J.validator(fe)?!0:we.fail(null,J.message,0)}},ue}(r);t.BasicType=G,t.basicTypes={any:new G(function(ee){return!0},"is invalid"),number:new G(function(ee){return typeof ee=="number"},"is not a number"),object:new G(function(ee){return typeof ee=="object"&&ee},"is not an object"),boolean:new G(function(ee){return typeof ee=="boolean"},"is not a boolean"),string:new G(function(ee){return typeof ee=="string"},"is not a string"),symbol:new G(function(ee){return typeof ee=="symbol"},"is not a symbol"),void:new G(function(ee){return ee==null},"is not void"),undefined:new G(function(ee){return ee===void 0},"is not undefined"),null:new G(function(ee){return ee===null},"is not null"),never:new G(function(ee){return!1},"is unexpected"),Date:new G(U("[object Date]"),"is not a Date"),RegExp:new G(U("[object RegExp]"),"is not a RegExp")};var K=Object.prototype.toString;function U(ee){return function(ue){return typeof ue=="object"&&ue&&K.call(ue)===ee}}typeof Buffer<"u"&&(t.basicTypes.Buffer=new G(function(ee){return Buffer.isBuffer(ee)},"is not a Buffer"));for(var B=function(ee){t.basicTypes[ee.name]=new G(function(ue){return ue instanceof ee},"is not a "+ee.name)},Y=0,j=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];Y<j.length;Y++){var ne=j[Y];B(ne)}}(xp)),xp}var _Q;function fCe(){return _Q||(_Q=1,function(t){var e=kp&&kp.__spreadArrays||function(){for(var l=0,u=0,c=arguments.length;u<c;u++)l+=arguments[u].length;for(var f=Array(l),d=0,u=0;u<c;u++)for(var h=arguments[u],p=0,g=h.length;p<g;p++,d++)f[d]=h[p];return f};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var n=xQ(),r=wC(),i=xQ();Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var o=wC();Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return o.VError}});function s(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];for(var c=Object.assign.apply(Object,e([{},n.basicTypes],l)),f={},d=0,h=l;d<h.length;d++)for(var p=h[d],g=0,y=Object.keys(p);g<y.length;g++){var O=y[g];f[O]=new a(c,p[O])}return f}t.createCheckers=s;var a=function(){function l(u,c,f){if(f===void 0&&(f="value"),this.suite=u,this.ttype=c,this._path=f,this.props=new Map,c instanceof n.TIface)for(var d=0,h=c.props;d<h.length;d++){var p=h[d];this.props.set(p.name,p.ttype)}this.checkerPlain=this.ttype.getChecker(u,!1),this.checkerStrict=this.ttype.getChecker(u,!0)}return l.prototype.setReportedPath=function(u){this._path=u},l.prototype.check=function(u){return this._doCheck(this.checkerPlain,u)},l.prototype.test=function(u){return this.checkerPlain(u,new r.NoopContext)},l.prototype.validate=function(u){return this._doValidate(this.checkerPlain,u)},l.prototype.strictCheck=function(u){return this._doCheck(this.checkerStrict,u)},l.prototype.strictTest=function(u){return this.checkerStrict(u,new r.NoopContext)},l.prototype.strictValidate=function(u){return this._doValidate(this.checkerStrict,u)},l.prototype.getProp=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);return new l(this.suite,c,this._path+"."+u)},l.prototype.methodArgs=function(u){var c=this._getMethod(u);return new l(this.suite,c.paramList)},l.prototype.methodResult=function(u){var c=this._getMethod(u);return new l(this.suite,c.result)},l.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new l(this.suite,this.ttype.paramList)},l.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new l(this.suite,this.ttype.result)},l.prototype.getType=function(){return this.ttype},l.prototype._doCheck=function(u,c){var f=new r.NoopContext;if(!u(c,f)){var d=new r.DetailContext;throw u(c,d),d.getError(this._path)}},l.prototype._doValidate=function(u,c){var f=new r.NoopContext;if(u(c,f))return null;var d=new r.DetailContext;return u(c,d),d.getErrorDetail(this._path)},l.prototype._getMethod=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);if(!(c instanceof n.TFunc))throw new Error("Property "+u+" is not a method");return c},l}();t.Checker=a}(kp)),kp}var dr=fCe();const dCe=dr.union(dr.lit("jsx"),dr.lit("typescript"),dr.lit("flow"),dr.lit("imports"),dr.lit("react-hot-loader"),dr.lit("jest")),hCe=dr.iface([],{compiledFilename:"string"}),pCe=dr.iface([],{transforms:dr.array("Transform"),disableESTransforms:dr.opt("boolean"),jsxRuntime:dr.opt(dr.union(dr.lit("classic"),dr.lit("automatic"),dr.lit("preserve"))),production:dr.opt("boolean"),jsxImportSource:dr.opt("string"),jsxPragma:dr.opt("string"),jsxFragmentPragma:dr.opt("string"),keepUnusedImports:dr.opt("boolean"),preserveDynamicImport:dr.opt("boolean"),injectCreateRequireForImportRequire:dr.opt("boolean"),enableLegacyTypeScriptModuleInterop:dr.opt("boolean"),enableLegacyBabel5ModuleInterop:dr.opt("boolean"),sourceMapOptions:dr.opt("SourceMapOptions"),filePath:dr.opt("string")}),mCe={Transform:dCe,SourceMapOptions:hCe,Options:pCe},{Options:eEe}=dr.createCheckers(mCe);var PQ;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=1;t[t.TSConstructorType=n]="TSConstructorType";const r=n+1;t[t.TSAbstractConstructorType=r]="TSAbstractConstructorType"})(PQ||(PQ={}));var jx={},CQ;function gCe(){return CQ||(CQ=1,function(t){t.__esModule=!0,t.LinesAndColumns=void 0;var e=`
457
- `,n="\r",r=function(){function i(o){this.string=o;for(var s=[0],a=0;a<o.length;)switch(o[a]){case e:a+=e.length,s.push(a);break;case n:a+=n.length,o[a]===e&&(a+=e.length),s.push(a);break;default:a++;break}this.offsets=s}return i.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var s=0,a=this.offsets;a[s+1]<=o;)s++;var l=o-a[s];return{line:s,column:l}},i.prototype.indexForLocation=function(o){var s=o.line,a=o.column;return s<0||s>=this.offsets.length||a<0||a>this.lengthOfLine(s)?null:this.offsets[s]+a},i.prototype.lengthOfLine=function(o){var s=this.offsets[o],a=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return a-s},i}();t.LinesAndColumns=r,t.default=r}(jx)),jx}gCe();const vW=()=>(Math.random()+"").slice(2),vCe=t=>async e=>{const n=vW();return new Promise(r=>{const i=o=>{o.data.type==="invalidateVizCacheResponse"&&o.data.requestId===n&&(t.removeEventListener("message",i),r())};t.addEventListener("message",i),t.postMessage({type:"invalidateVizCacheRequest",changedVizIds:e,requestId:n})})},yCe=({worker:t,setBuildErrorMessage:e})=>({files:n,enableSourcemap:r,vizId:i})=>{const o=vW();return new Promise(s=>{const a=u=>{const c=u.data;if(c.type==="buildResponse"&&c.requestId===o){t.removeEventListener("message",a);const f=c.buildResult,d=c.error;e?.(d||null),s(f)}};t.addEventListener("message",a);const l={type:"buildRequest",files:n,enableSourcemap:r,requestId:o,vizId:i};t.postMessage(l)})},Qx="IDLE",Fx="ENQUEUED",EQ="PENDING_CLEAN",Bx="PENDING_DIRTY",OCe=({iframe:t,worker:e,setBuildErrorMessage:n,getLatestContent:r,resolveSlugKey:i,writeFile:o,handleRuntimeError:s})=>{let a=Qx,l=null;const u=yCe({worker:e,setBuildErrorMessage:n}),c=({data:g})=>{if(g.type==="contentRequest"&&r){const{vizId:y}=g;r(y).then(O=>{e.postMessage({type:"contentResponse",vizId:y,content:O})})}else if(g.type==="resolveSlugRequest"){const{slugKey:y,requestId:O}=g;if(i)i(y).then(b=>{const S={type:"resolveSlugResponse",vizId:b,requestId:O};e.postMessage(S)});else{const b={type:"resolveSlugResponse",vizId:null,requestId:O};e.postMessage(b)}}};e.addEventListener("message",c);const f=g=>{const y=g.data;(y.type==="runDone"||y.type==="runError")&&y.type==="runError"&&n&&n(y.error.message),y.type==="runtimeError"&&s&&s(y.formattedErrorMessage),y.type==="writeFile"&&o&&y.fileName&&y.content&&o(y.fileName,y.content)};window.addEventListener("message",f);const d=()=>{e.removeEventListener("message",c),window.removeEventListener("message",f)},h=async({files:g,enableHotReloading:y=!1,enableSourcemap:O=!1,vizId:b,clearConsole:S=!0})=>{a=EQ;const k=await u({files:g,enableSourcemap:O,vizId:b});if(k){const{html:x,runtimeVersion:_,js:I,css:M}=k;if(S&&console.clear(),y&&(_==="v3"||_==="v4")){if(M){const P={type:"runCSS",css:M};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage(P,window.location.origin)}if(I){const P={type:"runJS",js:I};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage(P,window.location.origin)}}else t.srcdoc=x||""}a===Bx?(requestAnimationFrame(()=>{if(!l)throw new Error("latestFiles is not defined and state is PENDING_DIRTY - this should never happen");h({files:l,enableHotReloading:y,enableSourcemap:O,vizId:b,clearConsole:S})}),a=Fx):a=Qx},p=({files:g,enableHotReloading:y=!1,enableSourcemap:O=!1,vizId:b=void 0,clearConsole:S=!0})=>{if(l=null,a===Qx)a=Fx,h({files:g,enableHotReloading:y,enableSourcemap:O,vizId:b,clearConsole:S});else if(a===EQ)l=g,a=Bx;else if(a===Bx)l=g;else if(a===Fx)l=g;else throw new Error(`Unexpected state: ${a}`)};return{invalidateVizCache:vCe(e),run:p,cleanup:d}};function bCe(t){return new Worker("/assets/buildWorker-wLkQ0yz1.js",{name:t?.name})}const wCe=()=>{const t=N.useRef(null),e=N.useRef(!0),n=N.useRef(void 0),{content:r,handleRuntimeError:i,clearRuntimeError:o,iframeRef:s}=N.useContext(Lr),a=N.useMemo(()=>r?o7(r.files):null,[r?.files]),l=r?.isInteracting||!1,u=r?.runId,c=r?.hardRerun||!1,f=u!==n.current;return f&&(n.current=u),N.useEffect(()=>{if(a){if(!t.current&&s.current){const d=new bCe;t.current=OCe({iframe:s.current,worker:d,setBuildErrorMessage:h=>{h&&console.error("Build error:",h)},handleRuntimeError:i})}(e.current||l||f)&&(o(),t.current?.run({files:a,enableHotReloading:l,enableSourcemap:!0,vizId:"example-viz"}),e.current=!1)}},[a,l,f,c]),q.jsx("div",{className:"right",children:q.jsx("iframe",{ref:s})})},SCe="vzCodeUsername",kCe="Anonymous",xCe=()=>{let t=kCe;if(typeof window<"u"){const e=window.localStorage.getItem(SCe);e!==null&&(t=e)}return t},_Ce=t=>{const e=N.useRef(t);N.useEffect(()=>{e.current!==t&&(e.current=t,window.localStorage.setItem("vzCodeUsername",t))},[t])},PCe=t=>e=>{const n=t.data,r=OX(n,e(n));r&&t&&t.submitOp(r)},CCe=t=>N.useCallback(()=>PCe(t),[t])(),ECe=1e3,TCe=t=>{const e=N.useRef(),[n,r]=N.useState(!1),i=N.useCallback(()=>{t&&t.whenNothingPending(()=>{r(!1)})},[t,r]);return N.useEffect(()=>{t&&t.on("before op",()=>{r(!0),clearTimeout(e.current),e.current=setTimeout(()=>{i()},ECe)})},[t,i]),n},RCe=({connection:t})=>{const[e,n]=N.useState(null),[r,i]=N.useState(null),[o,s]=N.useState(null),[a,l]=N.useState(null),[u,c]=N.useState(!1);N.useEffect(()=>{t.on("connected",()=>{c(!0)}),t.on("disconnected",()=>{c(!1)});const h="documents",p="1",g=t.get(h,p);return g.subscribe(()=>{n(g),l(g.data),g.on("op",()=>{l(g.data)});const y=t.getDocPresence(h,p);y.subscribe(function(b){if(b)throw b});const O=()=>{const b=Date.now().toString(36),S=_P();return`${b}-${S}`};i(y.create(O())),s(y)}),()=>{}},[]);const f=TCe(e),d=CCe(e);return{shareDBDoc:e,content:a,localPresence:r,docPresence:o,submitOperation:d,connected:u,pending:f}};function ACe(t){return new Worker("/assets/worker-DHxSPM7N.js",{name:t?.name})}let MCe=0;const Ux=new Map,DCe=()=>{const[t,e]=N.useState(null);return N.useEffect(()=>{e(new ACe)},[]),N.useEffect(()=>{if(!t)return;const r=i=>{const{diagnostics:o,requestId:s,error:a}=i.data;a&&console.error("[ESLint] Error:",a);const l=Ux.get(s);l&&(l(o),Ux.delete(s))};return t.addEventListener("message",r),()=>{t.removeEventListener("message",r),t.terminate()}},[t]),{esLintSource:N.useCallback(async r=>{const i=r.state.field(t7);try{const o=r.state.doc.toString(),s=MCe++;return new Promise(a=>{Ux.set(s,a),t.postMessage({code:o,requestId:s,fileName:i})})}catch(o){return console.error("[ESLint] Error in linter:",o),[]}},[t])}},ICe=new bX;RQ.types.register(KO.type);const{Connection:$Ce}=RQ,NCe=window.location.protocol==="https:"?"wss://":"ws://",LCe=new WebSocket(NCe+window.location.host+"/ws"),jCe=new $Ce(LCe),QCe=()=>{const{username:t}=N.useContext(Lr);return _Ce(t),null};function FCe(){const{shareDBDoc:t,content:e,localPresence:n,docPresence:r,submitOperation:i,connected:o,pending:s}=RCe({connection:jCe}),[a,l]=N.useState(void 0),[u,c]=N.useState(fB()),[f,d]=N.useState(!1),{esLintSource:h}=DCe(),p=xCe();return q.jsx(QJ,{children:q.jsx(z1e,{content:e,shareDBDoc:t,submitOperation:i,localPresence:n,docPresence:r,prettierWorker:ICe,initialUsername:p,connected:o,pending:s,liveKitRoomName:u,setLiveKitRoom:c,liveKitToken:a,setLiveKitToken:l,liveKitConnection:f,setLiveKitConnection:d,aiChatEndpoint:"/ai-chat-message",aiChatOptions:{},children:q.jsxs(kJ,{audio:!0,token:a,serverUrl:void 0,connect:f,style:{height:"100%"},children:[q.jsxs("div",{className:"app",children:[q.jsx(APe,{}),q.jsx(tCe,{aiCopilotEndpoint:null,esLintSource:h}),q.jsx(wCe,{}),q.jsx(vQ,{side:"left"}),q.jsx(vQ,{side:"right"})]}),q.jsx(QCe,{}),q.jsx(RJ,{})]})})})}TQ.createRoot(document.getElementById("root")).render(q.jsx(X9,{children:q.jsx(FCe,{})}));
456
+ `)},WPe="/ai-assist",ZPe=async({view:t,shareDBDoc:e,fileId:n,tabList:r,aiAssistEndpoint:i=WPe,aiAssistOptions:o={},aiStreamId:s})=>{const a=e.data.files[n].name,l=t.state.sliceDoc(0,t.state.selection.main.from),u=t.state.sliceDoc(t.state.selection.main.to),c=l+"<FILL_ME>"+u,f={name:a,text:c},d=t.state.selection.main.to;let h=zPe(f,!1);const g=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...o,inputText:h,fileId:n,insertionCursor:d,aiStreamId:s})})).json();g.error&&console.error("[startAIAssist] error from server:",g.error)},XPe=[{x:40,y:0,r:4},{x:28.28,y:28.28,r:4.85},{x:0,y:40,r:5.71},{x:-28.29,y:28.28,r:6.57},{x:-40,y:0,r:7.42},{x:-28.29,y:-28.29,r:8.28},{x:-.01,y:-40,r:9.14},{x:28.28,y:-28.29,r:10}],HPe=({height:t=40,fill:e="currentcolor",fadeIn:n=!0})=>{const[r,i]=N.useState(!1);return N.useEffect(()=>{i(!0)},[]),r&&q.jsx("div",{className:`vh-spinner${n?" fade-in":""}`,children:q.jsx("svg",{height:t,viewBox:"0 0 100 100",style:{opacity:1},children:q.jsx("g",{transform:"translate(50, 50)",fill:e,children:q.jsx("g",{className:"vh-spinner-dots",children:XPe.map(({x:o,y:s,r:a},l)=>q.jsx("circle",{cx:o,cy:s,r:a},l))})})})})},YPe=({aiAssistEndpoint:t,aiAssistOptions:e,aiAssistTooltipText:n="Start AI Assist",aiAssistClickOverride:r,activeFileId:i,tabList:o,paneId:s})=>{const{shareDBDoc:a,editorCache:l,runPrettierRef:u,runCodeRef:c}=N.useContext(Lr),[f,d]=N.useState(null),h=N.useCallback(async()=>{if(!(f!==null)){const y=UPe();d(y),await ZPe({view:l.get(vm(i,s)).editor,shareDBDoc:a,fileId:i,tabList:o,aiStreamId:y,aiAssistEndpoint:t,aiAssistOptions:e}),await new Promise(S=>setTimeout(S,1e3));const O=u.current;O!==null&&O();const b=c.current;b!==null&&b(),d(S=>S===y?null:S)}},[i,s,f]),p=f===null;return q.jsx("div",{className:"vz-code-ai-assist-widget",children:f?q.jsx(HPe,{}):p&&q.jsx(ho,{placement:"left",overlay:q.jsx(po,{id:"ai-assist-widget-tooltip",children:n}),children:q.jsx("i",{className:"icon-button icon-button-dark",onClick:r||h,children:q.jsx(RO,{})})})})},GPe=!1,KPe=({runCodeWidgetTooltipText:t=q.jsxs(q.Fragment,{children:[q.jsx("strong",{children:"Run Code"}),q.jsx("div",{children:"(Shift + Enter or Ctrl + s)"})]})})=>{const{runCodeRef:e,runPrettierRef:n,splitCurrentPane:r}=N.useContext(Lr),[i,o]=N.useState(!1),s=N.useCallback(a=>{o(!0);const l=n.current;l!==null&&l();const u=e.current;u!==null&&u(),setTimeout(()=>o(!1),1e3)},[e,n]);return N.useCallback(()=>{r()},[r]),N.useEffect(()=>{const a=l=>{(l.ctrlKey&&l.key==="s"||l.shiftKey&&l.key==="Enter")&&(l.preventDefault(),s())};return window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}},[s]),q.jsxs("div",{children:[q.jsx("div",{className:"vz-code-split-view-widget",children:GPe}),q.jsx("div",{className:"vz-code-run-code-widget",children:q.jsx(ho,{placement:"bottom",overlay:q.jsx(po,{id:"run-code-widget-tooltip",children:t}),children:q.jsx("i",{className:`icon-button icon-button-dark ${i?"rotate-icon":""}`,onClick:s,children:q.jsx(yOe,{})})})})]})},JPe=t=>t.match(/\.(png|jpg|jpeg|gif|bmp|svg|webp)$/i)!==null,eCe=({pane:t,content:e,customInteractRules:n,enableAIAssist:r,aiAssistEndpoint:i,aiAssistOptions:o,aiAssistTooltipText:s,aiAssistClickOverride:a,aiCopilotEndpoint:l,esLintSource:u})=>{const[c,f]=N.useState(!1);return N.useEffect(()=>{f(!0)},[]),q.jsxs(q.Fragment,{children:[q.jsx(IPe,{activeFileId:t.activeFileId,tabList:t.tabList}),c&&e&&t.activeFileId&&(()=>{const d=e.files[t.activeFileId];return d&&JPe(d.name)?q.jsx(NPe,{}):q.jsx($Pe,{customInteractRules:n,aiCopilotEndpoint:l,esLintSource:u})})(),c&&r&&e&&t.activeFileId?q.jsx(YPe,{aiAssistEndpoint:i,aiAssistOptions:o,aiAssistTooltipText:s,aiAssistClickOverride:a,paneId:t.id,activeFileId:t.activeFileId,tabList:t.tabList}):null,q.jsx(KPe,{})]})},tCe=({enableAIAssist:t=!1,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:o,customInteractRules:s,esLintSource:a})=>{const{codeEditorWidth:l}=N.useContext(l0),{content:u,localPresence:c,docPresence:f,pane:d,activePane:h,errorMessage:p}=N.useContext(Lr);if(h.type!=="leafPane")throw new Error("Expected leafPane");return h.activeFileId!==null?q.jsxs("div",{className:"middle",style:{width:l+"px"},children:[q.jsx(eCe,{pane:d,content:u,customInteractRules:s,enableAIAssist:t,aiAssistEndpoint:e,aiAssistOptions:n,aiAssistTooltipText:r,aiAssistClickOverride:i,aiCopilotEndpoint:o,esLintSource:a}),q.jsx(LPe,{errorMessage:p,content:u}),q.jsx(BPe,{docPresence:f,localPresence:c})]}):null},nCe=20,rCe=200,gQ=4,vQ=({side:t,isSidebarVisible:e=!0})=>{const{sidebarWidth:n,codeEditorWidth:r,moveSplitPane:i,isDraggingRight:o,isDraggingLeft:s,setIsDragging:a}=N.useContext(l0),{activePane:l}=N.useContext(Lr),u=t==="left"||l.activeFileId,c=N.useRef(0),f=N.useCallback(O=>{O.preventDefault(),c.current=O.clientX,a(!0,t),document.body.style.cursor="col-resize"},[a,t]),d=N.useCallback(O=>{O.preventDefault();const b=O.clientX-c.current;c.current=O.clientX,i(b,t)},[i,t]),h=N.useCallback(()=>{a(!1,t),document.body.style.cursor="default"},[a,t]),p=t==="left"&&s||t==="right"&&o;N.useEffect(()=>{if(p)return document.addEventListener("mousemove",d),document.addEventListener("mouseup",h),()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h)}},[p,d,h]);const g=p?rCe:nCe,y=(t==="left"?n:e?n+r:r)-g/2;return u?q.jsx("div",{className:"vz-resizer",onMouseDown:f,style:{left:y+g/2-1.5,width:g},children:q.jsx("div",{className:"vz-resizer-thumb",style:{left:gQ/2-1.5,width:gQ}})}):null};var An;(function(t){t[t.NONE=0]="NONE";const n=1;t[t._abstract=n]="_abstract";const r=n+1;t[t._accessor=r]="_accessor";const i=r+1;t[t._as=i]="_as";const o=i+1;t[t._assert=o]="_assert";const s=o+1;t[t._asserts=s]="_asserts";const a=s+1;t[t._async=a]="_async";const l=a+1;t[t._await=l]="_await";const u=l+1;t[t._checks=u]="_checks";const c=u+1;t[t._constructor=c]="_constructor";const f=c+1;t[t._declare=f]="_declare";const d=f+1;t[t._enum=d]="_enum";const h=d+1;t[t._exports=h]="_exports";const p=h+1;t[t._from=p]="_from";const g=p+1;t[t._get=g]="_get";const y=g+1;t[t._global=y]="_global";const O=y+1;t[t._implements=O]="_implements";const b=O+1;t[t._infer=b]="_infer";const S=b+1;t[t._interface=S]="_interface";const k=S+1;t[t._is=k]="_is";const x=k+1;t[t._keyof=x]="_keyof";const _=x+1;t[t._mixins=_]="_mixins";const I=_+1;t[t._module=I]="_module";const M=I+1;t[t._namespace=M]="_namespace";const P=M+1;t[t._of=P]="_of";const E=P+1;t[t._opaque=E]="_opaque";const R=E+1;t[t._out=R]="_out";const T=R+1;t[t._override=T]="_override";const L=T+1;t[t._private=L]="_private";const A=L+1;t[t._protected=A]="_protected";const H=A+1;t[t._proto=H]="_proto";const W=H+1;t[t._public=W]="_public";const Z=W+1;t[t._readonly=Z]="_readonly";const G=Z+1;t[t._require=G]="_require";const K=G+1;t[t._satisfies=K]="_satisfies";const U=K+1;t[t._set=U]="_set";const B=U+1;t[t._static=B]="_static";const Y=B+1;t[t._symbol=Y]="_symbol";const j=Y+1;t[t._type=j]="_type";const ne=j+1;t[t._unique=ne]="_unique";const ee=ne+1;t[t._using=ee]="_using"})(An||(An={}));var $n;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const r=32;t[t.IS_ASSIGN=r]="IS_ASSIGN";const i=64;t[t.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const o=128;t[t.IS_PREFIX=o]="IS_PREFIX";const s=256;t[t.IS_POSTFIX=s]="IS_POSTFIX";const a=512;t[t.IS_EXPRESSION_START=a]="IS_EXPRESSION_START";const l=512;t[t.num=l]="num";const u=1536;t[t.bigint=u]="bigint";const c=2560;t[t.decimal=c]="decimal";const f=3584;t[t.regexp=f]="regexp";const d=4608;t[t.string=d]="string";const h=5632;t[t.name=h]="name";const p=6144;t[t.eof=p]="eof";const g=7680;t[t.bracketL=g]="bracketL";const y=8192;t[t.bracketR=y]="bracketR";const O=9728;t[t.braceL=O]="braceL";const b=10752;t[t.braceBarL=b]="braceBarL";const S=11264;t[t.braceR=S]="braceR";const k=12288;t[t.braceBarR=k]="braceBarR";const x=13824;t[t.parenL=x]="parenL";const _=14336;t[t.parenR=_]="parenR";const I=15360;t[t.comma=I]="comma";const M=16384;t[t.semi=M]="semi";const P=17408;t[t.colon=P]="colon";const E=18432;t[t.doubleColon=E]="doubleColon";const R=19456;t[t.dot=R]="dot";const T=20480;t[t.question=T]="question";const L=21504;t[t.questionDot=L]="questionDot";const A=22528;t[t.arrow=A]="arrow";const H=23552;t[t.template=H]="template";const W=24576;t[t.ellipsis=W]="ellipsis";const Z=25600;t[t.backQuote=Z]="backQuote";const G=27136;t[t.dollarBraceL=G]="dollarBraceL";const K=27648;t[t.at=K]="at";const U=29184;t[t.hash=U]="hash";const B=29728;t[t.eq=B]="eq";const Y=30752;t[t.assign=Y]="assign";const j=32640;t[t.preIncDec=j]="preIncDec";const ne=33664;t[t.postIncDec=ne]="postIncDec";const ee=34432;t[t.bang=ee]="bang";const ue=35456;t[t.tilde=ue]="tilde";const z=35841;t[t.pipeline=z]="pipeline";const X=36866;t[t.nullishCoalescing=X]="nullishCoalescing";const J=37890;t[t.logicalOR=J]="logicalOR";const fe=38915;t[t.logicalAND=fe]="logicalAND";const we=39940;t[t.bitwiseOR=we]="bitwiseOR";const Te=40965;t[t.bitwiseXOR=Te]="bitwiseXOR";const Re=41990;t[t.bitwiseAND=Re]="bitwiseAND";const Q=43015;t[t.equality=Q]="equality";const ve=44040;t[t.lessThan=ve]="lessThan";const ge=45064;t[t.greaterThan=ge]="greaterThan";const ie=46088;t[t.relationalOrEqual=ie]="relationalOrEqual";const oe=47113;t[t.bitShiftL=oe]="bitShiftL";const me=48137;t[t.bitShiftR=me]="bitShiftR";const $e=49802;t[t.plus=$e]="plus";const Fe=50826;t[t.minus=Fe]="minus";const Pe=51723;t[t.modulo=Pe]="modulo";const V=52235;t[t.star=V]="star";const ye=53259;t[t.slash=ye]="slash";const _e=54348;t[t.exponent=_e]="exponent";const de=55296;t[t.jsxName=de]="jsxName";const Se=56320;t[t.jsxText=Se]="jsxText";const Me=57344;t[t.jsxEmptyText=Me]="jsxEmptyText";const et=58880;t[t.jsxTagStart=et]="jsxTagStart";const st=59392;t[t.jsxTagEnd=st]="jsxTagEnd";const Le=60928;t[t.typeParameterStart=Le]="typeParameterStart";const at=61440;t[t.nonNullAssertion=at]="nonNullAssertion";const We=62480;t[t._break=We]="_break";const dt=63504;t[t._case=dt]="_case";const wt=64528;t[t._catch=wt]="_catch";const pt=65552;t[t._continue=pt]="_continue";const It=66576;t[t._debugger=It]="_debugger";const nt=67600;t[t._default=nt]="_default";const Rt=68624;t[t._do=Rt]="_do";const un=69648;t[t._else=un]="_else";const Tt=70672;t[t._finally=Tt]="_finally";const qt=71696;t[t._for=qt]="_for";const On=73232;t[t._function=On]="_function";const Tn=73744;t[t._if=Tn]="_if";const bn=74768;t[t._return=bn]="_return";const Rn=75792;t[t._switch=Rn]="_switch";const ir=77456;t[t._throw=ir]="_throw";const pe=77840;t[t._try=pe]="_try";const Ee=78864;t[t._var=Ee]="_var";const De=79888;t[t._let=De]="_let";const rt=80912;t[t._const=rt]="_const";const ct=81936;t[t._while=ct]="_while";const ht=82960;t[t._with=ht]="_with";const Ve=84496;t[t._new=Ve]="_new";const Ye=85520;t[t._this=Ye]="_this";const Je=86544;t[t._super=Je]="_super";const Ze=87568;t[t._class=Ze]="_class";const Ne=88080;t[t._extends=Ne]="_extends";const lt=89104;t[t._export=lt]="_export";const Pt=90640;t[t._import=Pt]="_import";const Nt=91664;t[t._yield=Nt]="_yield";const hn=92688;t[t._null=hn]="_null";const cn=93712;t[t._true=cn]="_true";const Kt=94736;t[t._false=Kt]="_false";const sn=95256;t[t._in=sn]="_in";const nn=96280;t[t._instanceof=nn]="_instanceof";const Yt=97936;t[t._typeof=Yt]="_typeof";const Ct=98960;t[t._void=Ct]="_void";const ln=99984;t[t._delete=ln]="_delete";const or=100880;t[t._async=or]="_async";const wn=101904;t[t._get=wn]="_get";const fr=102928;t[t._set=fr]="_set";const lr=103952;t[t._declare=lr]="_declare";const ce=104976;t[t._readonly=ce]="_readonly";const le=106e3;t[t._abstract=le]="_abstract";const Oe=107024;t[t._static=Oe]="_static";const Xe=107536;t[t._public=Xe]="_public";const Ae=108560;t[t._private=Ae]="_private";const ze=109584;t[t._protected=ze]="_protected";const bt=110608;t[t._override=bt]="_override";const ot=112144;t[t._as=ot]="_as";const yt=113168;t[t._enum=yt]="_enum";const Vt=114192;t[t._type=Vt]="_type";const At=115216;t[t._implements=At]="_implements"})($n||($n={}));var Bc;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const r=9;t[t.tab=r]="tab";const i=13;t[t.carriageReturn=i]="carriageReturn";const o=14;t[t.shiftOut=o]="shiftOut";const s=32;t[t.space=s]="space";const a=33;t[t.exclamationMark=a]="exclamationMark";const l=34;t[t.quotationMark=l]="quotationMark";const u=35;t[t.numberSign=u]="numberSign";const c=36;t[t.dollarSign=c]="dollarSign";const f=37;t[t.percentSign=f]="percentSign";const d=38;t[t.ampersand=d]="ampersand";const h=39;t[t.apostrophe=h]="apostrophe";const p=40;t[t.leftParenthesis=p]="leftParenthesis";const g=41;t[t.rightParenthesis=g]="rightParenthesis";const y=42;t[t.asterisk=y]="asterisk";const O=43;t[t.plusSign=O]="plusSign";const b=44;t[t.comma=b]="comma";const S=45;t[t.dash=S]="dash";const k=46;t[t.dot=k]="dot";const x=47;t[t.slash=x]="slash";const _=48;t[t.digit0=_]="digit0";const I=49;t[t.digit1=I]="digit1";const M=50;t[t.digit2=M]="digit2";const P=51;t[t.digit3=P]="digit3";const E=52;t[t.digit4=E]="digit4";const R=53;t[t.digit5=R]="digit5";const T=54;t[t.digit6=T]="digit6";const L=55;t[t.digit7=L]="digit7";const A=56;t[t.digit8=A]="digit8";const H=57;t[t.digit9=H]="digit9";const W=58;t[t.colon=W]="colon";const Z=59;t[t.semicolon=Z]="semicolon";const G=60;t[t.lessThan=G]="lessThan";const K=61;t[t.equalsTo=K]="equalsTo";const U=62;t[t.greaterThan=U]="greaterThan";const B=63;t[t.questionMark=B]="questionMark";const Y=64;t[t.atSign=Y]="atSign";const j=65;t[t.uppercaseA=j]="uppercaseA";const ne=66;t[t.uppercaseB=ne]="uppercaseB";const ee=67;t[t.uppercaseC=ee]="uppercaseC";const ue=68;t[t.uppercaseD=ue]="uppercaseD";const z=69;t[t.uppercaseE=z]="uppercaseE";const X=70;t[t.uppercaseF=X]="uppercaseF";const J=71;t[t.uppercaseG=J]="uppercaseG";const fe=72;t[t.uppercaseH=fe]="uppercaseH";const we=73;t[t.uppercaseI=we]="uppercaseI";const Te=74;t[t.uppercaseJ=Te]="uppercaseJ";const Re=75;t[t.uppercaseK=Re]="uppercaseK";const Q=76;t[t.uppercaseL=Q]="uppercaseL";const ve=77;t[t.uppercaseM=ve]="uppercaseM";const ge=78;t[t.uppercaseN=ge]="uppercaseN";const ie=79;t[t.uppercaseO=ie]="uppercaseO";const oe=80;t[t.uppercaseP=oe]="uppercaseP";const me=81;t[t.uppercaseQ=me]="uppercaseQ";const $e=82;t[t.uppercaseR=$e]="uppercaseR";const Fe=83;t[t.uppercaseS=Fe]="uppercaseS";const Pe=84;t[t.uppercaseT=Pe]="uppercaseT";const V=85;t[t.uppercaseU=V]="uppercaseU";const ye=86;t[t.uppercaseV=ye]="uppercaseV";const _e=87;t[t.uppercaseW=_e]="uppercaseW";const de=88;t[t.uppercaseX=de]="uppercaseX";const Se=89;t[t.uppercaseY=Se]="uppercaseY";const Me=90;t[t.uppercaseZ=Me]="uppercaseZ";const et=91;t[t.leftSquareBracket=et]="leftSquareBracket";const st=92;t[t.backslash=st]="backslash";const Le=93;t[t.rightSquareBracket=Le]="rightSquareBracket";const at=94;t[t.caret=at]="caret";const We=95;t[t.underscore=We]="underscore";const dt=96;t[t.graveAccent=dt]="graveAccent";const wt=97;t[t.lowercaseA=wt]="lowercaseA";const pt=98;t[t.lowercaseB=pt]="lowercaseB";const It=99;t[t.lowercaseC=It]="lowercaseC";const nt=100;t[t.lowercaseD=nt]="lowercaseD";const Rt=101;t[t.lowercaseE=Rt]="lowercaseE";const un=102;t[t.lowercaseF=un]="lowercaseF";const Tt=103;t[t.lowercaseG=Tt]="lowercaseG";const qt=104;t[t.lowercaseH=qt]="lowercaseH";const On=105;t[t.lowercaseI=On]="lowercaseI";const Tn=106;t[t.lowercaseJ=Tn]="lowercaseJ";const bn=107;t[t.lowercaseK=bn]="lowercaseK";const Rn=108;t[t.lowercaseL=Rn]="lowercaseL";const ir=109;t[t.lowercaseM=ir]="lowercaseM";const pe=110;t[t.lowercaseN=pe]="lowercaseN";const Ee=111;t[t.lowercaseO=Ee]="lowercaseO";const De=112;t[t.lowercaseP=De]="lowercaseP";const rt=113;t[t.lowercaseQ=rt]="lowercaseQ";const ct=114;t[t.lowercaseR=ct]="lowercaseR";const ht=115;t[t.lowercaseS=ht]="lowercaseS";const Ve=116;t[t.lowercaseT=Ve]="lowercaseT";const Ye=117;t[t.lowercaseU=Ye]="lowercaseU";const Je=118;t[t.lowercaseV=Je]="lowercaseV";const Ze=119;t[t.lowercaseW=Ze]="lowercaseW";const Ne=120;t[t.lowercaseX=Ne]="lowercaseX";const lt=121;t[t.lowercaseY=lt]="lowercaseY";const Pt=122;t[t.lowercaseZ=Pt]="lowercaseZ";const Nt=123;t[t.leftCurlyBrace=Nt]="leftCurlyBrace";const hn=124;t[t.verticalBar=hn]="verticalBar";const cn=125;t[t.rightCurlyBrace=cn]="rightCurlyBrace";const Kt=126;t[t.tilde=Kt]="tilde";const sn=160;t[t.nonBreakingSpace=sn]="nonBreakingSpace";const nn=5760;t[t.oghamSpaceMark=nn]="oghamSpaceMark";const Yt=8232;t[t.lineSeparator=Yt]="lineSeparator";const Ct=8233;t[t.paragraphSeparator=Ct]="paragraphSeparator"})(Bc||(Bc={}));const gW=[9,11,12,Bc.space,Bc.nonBreakingSpace,Bc.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],iCe=new Uint8Array(65536);for(const t of gW)iCe[t]=1;function oCe(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const uh=new Uint8Array(65536);for(let t=0;t<128;t++)uh[t]=oCe(t)?1:0;for(let t=128;t<65536;t++)uh[t]=1;for(const t of gW)uh[t]=0;uh[8232]=0;uh[8233]=0;const sCe=uh.slice();for(let t=Bc.digit0;t<=Bc.digit9;t++)sCe[t]=0;new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,An._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,An._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,An._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,An._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,An._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._break<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._case<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._catch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,An._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,($n._class<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,($n._const<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,An._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._continue<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,($n._debugger<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,($n._default<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._delete<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._do<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._else<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,($n._export<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,An._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,($n._extends<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._false<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,($n._finally<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,($n._for<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._function<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,An._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,($n._if<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,An._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,($n._import<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._in<<1)+1,-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,An._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._instanceof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,($n._let<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,An._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,($n._new<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._null<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,An._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,An._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,An._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._return<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,An._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,An._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,($n._super<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._switch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,($n._this<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,($n._throw<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._true<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._try<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._typeof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,An._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,($n._var<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._void<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,($n._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var yQ;(function(t){t[t.Access=0]="Access";const n=1;t[t.ExportAccess=n]="ExportAccess";const r=n+1;t[t.TopLevelDeclaration=r]="TopLevelDeclaration";const i=r+1;t[t.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const o=i+1;t[t.BlockScopedDeclaration=o]="BlockScopedDeclaration";const s=o+1;t[t.ObjectShorthandTopLevelDeclaration=s]="ObjectShorthandTopLevelDeclaration";const a=s+1;t[t.ObjectShorthandFunctionScopedDeclaration=a]="ObjectShorthandFunctionScopedDeclaration";const l=a+1;t[t.ObjectShorthandBlockScopedDeclaration=l]="ObjectShorthandBlockScopedDeclaration";const u=l+1;t[t.ObjectShorthand=u]="ObjectShorthand";const c=u+1;t[t.ImportDeclaration=c]="ImportDeclaration";const f=c+1;t[t.ObjectKey=f]="ObjectKey";const d=f+1;t[t.ImportAccess=d]="ImportAccess"})(yQ||(yQ={}));var OQ;(function(t){t[t.NoChildren=0]="NoChildren";const n=1;t[t.OneChild=n]="OneChild";const r=n+1;t[t.StaticChildren=r]="StaticChildren";const i=r+1;t[t.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(OQ||(OQ={}));var $p={exports:{}},aCe=$p.exports,bQ;function lCe(){return bQ||(bQ=1,function(t,e){(function(n,r){r(e)})(aCe,function(n){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),a=new Uint8Array(128);for(let R=0;R<o.length;R++){const T=o.charCodeAt(R);s[R]=T,a[T]=R}function l(R,T){let L=0,A=0,H=0;do{const Z=R.next();H=a[Z],L|=(H&31)<<A,A+=5}while(H&32);const W=L&1;return L>>>=1,W&&(L=-2147483648|-L),T+L}function u(R,T,L){let A=T-L;A=A<0?-A<<1|1:A<<1;do{let H=A&31;A>>>=5,A>0&&(H|=32),R.write(s[H])}while(A>0);return T}function c(R,T){return R.pos>=T?!1:R.peek()!==44}const f=1024*16,d=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(R){return Buffer.from(R.buffer,R.byteOffset,R.byteLength).toString()}}:{decode(R){let T="";for(let L=0;L<R.length;L++)T+=String.fromCharCode(R[L]);return T}};class h{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(f)}write(T){const{buffer:L}=this;L[this.pos++]=T,this.pos===f&&(this.out+=d.decode(L),this.pos=0)}flush(){const{buffer:T,out:L,pos:A}=this;return A>0?L+d.decode(T.subarray(0,A)):L}}class p{constructor(T){this.pos=0,this.buffer=T}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(T){const{buffer:L,pos:A}=this,H=L.indexOf(T,A);return H===-1?L.length:H}}const g=[];function y(R){const{length:T}=R,L=new p(R),A=[],H=[];let W=0;for(;L.pos<T;L.pos++){W=l(L,W);const Z=l(L,0);if(!c(L,T)){const j=H.pop();j[2]=W,j[3]=Z;continue}const G=l(L,0),B=l(L,0)&1?[W,Z,0,0,G,l(L,0)]:[W,Z,0,0,G];let Y=g;if(c(L,T)){Y=[];do{const j=l(L,0);Y.push(j)}while(c(L,T))}B.vars=Y,A.push(B),H.push(B)}return A}function O(R){const T=new h;for(let L=0;L<R.length;)L=b(R,L,T,[0]);return T.flush()}function b(R,T,L,A){const H=R[T],{0:W,1:Z,2:G,3:K,4:U,vars:B}=H;T>0&&L.write(44),A[0]=u(L,W,A[0]),u(L,Z,0),u(L,U,0);const Y=H.length===6?1:0;u(L,Y,0),H.length===6&&u(L,H[5],0);for(const j of B)u(L,j,0);for(T++;T<R.length;){const j=R[T],{0:ne,1:ee}=j;if(ne>G||ne===G&&ee>=K)break;T=b(R,T,L,A)}return L.write(44),A[0]=u(L,G,A[0]),u(L,K,0),T}function S(R){const{length:T}=R,L=new p(R),A=[],H=[];let W=0,Z=0,G=0,K=0,U=0,B=0,Y=0,j=0;do{const ne=L.indexOf(";");let ee=0;for(;L.pos<ne;L.pos++){if(ee=l(L,ee),!c(L,ne)){const Re=H.pop();Re[2]=W,Re[3]=ee;continue}const ue=l(L,0),z=ue&1,X=ue&2,J=ue&4;let fe=null,we=g,Te;if(z){const Re=l(L,Z);G=l(L,Z===Re?G:0),Z=Re,Te=[W,ee,0,0,Re,G]}else Te=[W,ee,0,0];if(Te.isScope=!!J,X){const Re=K,Q=U;K=l(L,K);const ve=Re===K;U=l(L,ve?U:0),B=l(L,ve&&Q===U?B:0),fe=[K,U,B]}if(Te.callsite=fe,c(L,ne)){we=[];do{Y=W,j=ee;const Re=l(L,0);let Q;if(Re<-1){Q=[[l(L,0)]];for(let ve=-1;ve>Re;ve--){const ge=Y;Y=l(L,Y),j=l(L,Y===ge?j:0);const ie=l(L,0);Q.push([ie,Y,j])}}else Q=[[Re]];we.push(Q)}while(c(L,ne))}Te.bindings=we,A.push(Te),H.push(Te)}W++,L.pos=ne+1}while(L.pos<T);return A}function k(R){if(R.length===0)return"";const T=new h;for(let L=0;L<R.length;)L=x(R,L,T,[0,0,0,0,0,0,0]);return T.flush()}function x(R,T,L,A){const H=R[T],{0:W,1:Z,2:G,3:K,isScope:U,callsite:B,bindings:Y}=H;A[0]<W?(_(L,A[0],W),A[0]=W,A[1]=0):T>0&&L.write(44),A[1]=u(L,H[1],A[1]);const j=(H.length===6?1:0)|(B?2:0)|(U?4:0);if(u(L,j,0),H.length===6){const{4:ne,5:ee}=H;ne!==A[2]&&(A[3]=0),A[2]=u(L,ne,A[2]),A[3]=u(L,ee,A[3])}if(B){const{0:ne,1:ee,2:ue}=H.callsite;ne!==A[4]?(A[5]=0,A[6]=0):ee!==A[5]&&(A[6]=0),A[4]=u(L,ne,A[4]),A[5]=u(L,ee,A[5]),A[6]=u(L,ue,A[6])}if(Y)for(const ne of Y){ne.length>1&&u(L,-ne.length,0);const ee=ne[0][0];u(L,ee,0);let ue=W,z=Z;for(let X=1;X<ne.length;X++){const J=ne[X];ue=u(L,J[1],ue),z=u(L,J[2],z),u(L,J[0],0)}}for(T++;T<R.length;){const ne=R[T],{0:ee,1:ue}=ne;if(ee>G||ee===G&&ue>=K)break;T=x(R,T,L,A)}return A[0]<G?(_(L,A[0],G),A[0]=G,A[1]=0):L.write(44),A[1]=u(L,K,A[1]),T}function _(R,T,L){do R.write(59);while(++T<L)}function I(R){const{length:T}=R,L=new p(R),A=[];let H=0,W=0,Z=0,G=0,K=0;do{const U=L.indexOf(";"),B=[];let Y=!0,j=0;for(H=0;L.pos<U;){let ne;H=l(L,H),H<j&&(Y=!1),j=H,c(L,U)?(W=l(L,W),Z=l(L,Z),G=l(L,G),c(L,U)?(K=l(L,K),ne=[H,W,Z,G,K]):ne=[H,W,Z,G]):ne=[H],B.push(ne),L.pos++}Y||M(B),A.push(B),L.pos=U+1}while(L.pos<=T);return A}function M(R){R.sort(P)}function P(R,T){return R[0]-T[0]}function E(R){const T=new h;let L=0,A=0,H=0,W=0;for(let Z=0;Z<R.length;Z++){const G=R[Z];if(Z>0&&T.write(59),G.length===0)continue;let K=0;for(let U=0;U<G.length;U++){const B=G[U];U>0&&T.write(44),K=u(T,B[0],K),B.length!==1&&(L=u(T,B[1],L),A=u(T,B[2],A),H=u(T,B[3],H),B.length!==4&&(W=u(T,B[4],W)))}}return T.flush()}n.decode=I,n.decodeGeneratedRanges=S,n.decodeOriginalScopes=y,n.encode=E,n.encodeGeneratedRanges=k,n.encodeOriginalScopes=O,Object.defineProperty(n,"__esModule",{value:!0})})}($p,$p.exports)),$p.exports}lCe();var jy={exports:{}},uCe=jy.exports,wQ;function cCe(){return wQ||(wQ=1,function(t,e){(function(n,r){t.exports=r()})(uCe,function(){const n=/^[\w+.-]+:\/\//,r=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o(b){return n.test(b)}function s(b){return b.startsWith("//")}function a(b){return b.startsWith("/")}function l(b){return b.startsWith("file:")}function u(b){return/^[.?#]/.test(b)}function c(b){const S=r.exec(b);return d(S[1],S[2]||"",S[3],S[4]||"",S[5]||"/",S[6]||"",S[7]||"")}function f(b){const S=i.exec(b),k=S[2];return d("file:","",S[1]||"","",a(k)?k:"/"+k,S[3]||"",S[4]||"")}function d(b,S,k,x,_,I,M){return{scheme:b,user:S,host:k,port:x,path:_,query:I,hash:M,type:7}}function h(b){if(s(b)){const k=c("http:"+b);return k.scheme="",k.type=6,k}if(a(b)){const k=c("http://foo.com"+b);return k.scheme="",k.host="",k.type=5,k}if(l(b))return f(b);if(o(b))return c(b);const S=c("http://foo.com/"+b);return S.scheme="",S.host="",S.type=b?b.startsWith("?")?3:b.startsWith("#")?2:4:1,S}function p(b){if(b.endsWith("/.."))return b;const S=b.lastIndexOf("/");return b.slice(0,S+1)}function g(b,S){y(S,S.type),b.path==="/"?b.path=S.path:b.path=p(S.path)+b.path}function y(b,S){const k=S<=4,x=b.path.split("/");let _=1,I=0,M=!1;for(let E=1;E<x.length;E++){const R=x[E];if(!R){M=!0;continue}if(M=!1,R!=="."){if(R===".."){I?(M=!0,I--,_--):k&&(x[_++]=R);continue}x[_++]=R,I++}}let P="";for(let E=1;E<_;E++)P+="/"+x[E];(!P||M&&!P.endsWith("/.."))&&(P+="/"),b.path=P}function O(b,S){if(!b&&!S)return"";const k=h(b);let x=k.type;if(S&&x!==7){const I=h(S),M=I.type;switch(x){case 1:k.hash=I.hash;case 2:k.query=I.query;case 3:case 4:g(k,I);case 5:k.user=I.user,k.host=I.host,k.port=I.port;case 6:k.scheme=I.scheme}M>x&&(x=M)}y(k,x);const _=k.query+k.hash;switch(x){case 2:case 3:return _;case 4:{const I=k.path.slice(1);return I?u(S||b)&&!u(I)?"./"+I+_:I+_:_||"."}case 5:return k.path+_;default:return k.scheme+"//"+k.user+k.host+k.port+k.path+_}}return O})}(jy)),jy.exports}cCe();var kp={},xp={},Ks={},SQ;function wC(){if(SQ)return Ks;SQ=1;var t=Ks&&Ks.__extends||function(){var o=function(s,a){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var c in u)u.hasOwnProperty(c)&&(l[c]=u[c])},o(s,a)};return function(s,a){o(s,a);function l(){this.constructor=s}s.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.DetailContext=Ks.NoopContext=Ks.VError=void 0;var e=function(o){t(s,o);function s(a,l){var u=o.call(this,l)||this;return u.path=a,Object.setPrototypeOf(u,s.prototype),u}return s}(Error);Ks.VError=e;var n=function(){function o(){}return o.prototype.fail=function(s,a,l){return!1},o.prototype.unionResolver=function(){return this},o.prototype.createContext=function(){return this},o.prototype.resolveUnion=function(s){},o}();Ks.NoopContext=n;var r=function(){function o(){this._propNames=[""],this._messages=[null],this._score=0}return o.prototype.fail=function(s,a,l){return this._propNames.push(s),this._messages.push(a),this._score+=l,!1},o.prototype.unionResolver=function(){return new i},o.prototype.resolveUnion=function(s){for(var a,l,u=s,c=null,f=0,d=u.contexts;f<d.length;f++){var h=d[f];(!c||h._score>=c._score)&&(c=h)}c&&c._score>0&&((a=this._propNames).push.apply(a,c._propNames),(l=this._messages).push.apply(l,c._messages))},o.prototype.getError=function(s){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];s+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push(s+" "+c)}return new e(s,a.join("; "))},o.prototype.getErrorDetail=function(s){for(var a=[],l=this._propNames.length-1;l>=0;l--){var u=this._propNames[l];s+=typeof u=="number"?"["+u+"]":u?"."+u:"";var c=this._messages[l];c&&a.push({path:s,message:c})}for(var f=null,l=a.length-1;l>=0;l--)f&&(a[l].nested=[f]),f=a[l];return f},o}();Ks.DetailContext=r;var i=function(){function o(){this.contexts=[]}return o.prototype.createContext=function(){var s=new r;return this.contexts.push(s),s},o}();return Ks}var kQ;function xQ(){return kQ||(kQ=1,function(t){var e=xp&&xp.__extends||function(){var ee=function(ue,z){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,J){X.__proto__=J}||function(X,J){for(var fe in J)J.hasOwnProperty(fe)&&(X[fe]=J[fe])},ee(ue,z)};return function(ue,z){ee(ue,z);function X(){this.constructor=ue}ue.prototype=z===null?Object.create(z):(X.prototype=z.prototype,new X)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var n=wC(),r=function(){function ee(){}return ee}();t.TType=r;function i(ee){return typeof ee=="string"?s(ee):ee}function o(ee,ue){var z=ee[ue];if(!z)throw new Error("Unknown type "+ue);return z}function s(ee){return new a(ee)}t.name=s;var a=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.name=z,X._failMsg="is not a "+z,X}return ue.prototype.getChecker=function(z,X,J){var fe=this,we=o(z,this.name),Te=we.getChecker(z,X,J);return we instanceof G||we instanceof ue?Te:function(Re,Q){return Te(Re,Q)?!0:Q.fail(null,fe._failMsg,0)}},ue}(r);t.TName=a;function l(ee){return new u(ee)}t.lit=l;var u=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.value=z,X.name=JSON.stringify(z),X._failMsg="is not "+X.name,X}return ue.prototype.getChecker=function(z,X){var J=this;return function(fe,we){return fe===J.value?!0:we.fail(null,J._failMsg,-1)}},ue}(r);t.TLiteral=u;function c(ee){return new f(i(ee))}t.array=c;var f=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.ttype=z,X}return ue.prototype.getChecker=function(z,X){var J=this.ttype.getChecker(z,X);return function(fe,we){if(!Array.isArray(fe))return we.fail(null,"is not an array",0);for(var Te=0;Te<fe.length;Te++){var Re=J(fe[Te],we);if(!Re)return we.fail(Te,null,1)}return!0}},ue}(r);t.TArray=f;function d(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new h(ee.map(function(z){return i(z)}))}t.tuple=d;var h=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.ttypes=z,X}return ue.prototype.getChecker=function(z,X){var J=this.ttypes.map(function(we){return we.getChecker(z,X)}),fe=function(we,Te){if(!Array.isArray(we))return Te.fail(null,"is not an array",0);for(var Re=0;Re<J.length;Re++){var Q=J[Re](we[Re],Te);if(!Q)return Te.fail(Re,null,1)}return!0};return X?function(we,Te){return fe(we,Te)?we.length<=J.length?!0:Te.fail(J.length,"is extraneous",2):!1}:fe},ue}(r);t.TTuple=h;function p(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new g(ee.map(function(z){return i(z)}))}t.union=p;var g=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;X.ttypes=z;var J=z.map(function(we){return we instanceof a||we instanceof u?we.name:null}).filter(function(we){return we}),fe=z.length-J.length;return J.length?(fe>0&&J.push(fe+" more"),X._failMsg="is none of "+J.join(", ")):X._failMsg="is none of "+fe+" types",X}return ue.prototype.getChecker=function(z,X){var J=this,fe=this.ttypes.map(function(we){return we.getChecker(z,X)});return function(we,Te){for(var Re=Te.unionResolver(),Q=0;Q<fe.length;Q++){var ve=fe[Q](we,Re.createContext());if(ve)return!0}return Te.resolveUnion(Re),Te.fail(null,J._failMsg,0)}},ue}(r);t.TUnion=g;function y(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee[ue]=arguments[ue];return new O(ee.map(function(z){return i(z)}))}t.intersection=y;var O=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.ttypes=z,X}return ue.prototype.getChecker=function(z,X){var J=new Set,fe=this.ttypes.map(function(we){return we.getChecker(z,X,J)});return function(we,Te){var Re=fe.every(function(Q){return Q(we,Te)});return Re?!0:Te.fail(null,null,0)}},ue}(r);t.TIntersection=O;function b(ee){return new S(ee)}t.enumtype=b;var S=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.members=z,X.validValues=new Set,X._failMsg="is not a valid enum value",X.validValues=new Set(Object.keys(z).map(function(J){return z[J]})),X}return ue.prototype.getChecker=function(z,X){var J=this;return function(fe,we){return J.validValues.has(fe)?!0:we.fail(null,J._failMsg,0)}},ue}(r);t.TEnumType=S;function k(ee,ue){return new x(ee,ue)}t.enumlit=k;var x=function(ee){e(ue,ee);function ue(z,X){var J=ee.call(this)||this;return J.enumName=z,J.prop=X,J._failMsg="is not "+z+"."+X,J}return ue.prototype.getChecker=function(z,X){var J=this,fe=o(z,this.enumName);if(!(fe instanceof S))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var we=fe.members[this.prop];if(!fe.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(Te,Re){return Te===we?!0:Re.fail(null,J._failMsg,-1)}},ue}(r);t.TEnumLiteral=x;function _(ee){return Object.keys(ee).map(function(ue){return I(ue,ee[ue])})}function I(ee,ue){return ue instanceof R?new T(ee,ue.ttype,!0):new T(ee,i(ue),!1)}function M(ee,ue){return new P(ee,_(ue))}t.iface=M;var P=function(ee){e(ue,ee);function ue(z,X){var J=ee.call(this)||this;return J.bases=z,J.props=X,J.propSet=new Set(X.map(function(fe){return fe.name})),J}return ue.prototype.getChecker=function(z,X,J){var fe=this,we=this.bases.map(function(ie){return o(z,ie).getChecker(z,X)}),Te=this.props.map(function(ie){return ie.ttype.getChecker(z,X)}),Re=new n.NoopContext,Q=this.props.map(function(ie,oe){return!ie.isOpt&&!Te[oe](void 0,Re)}),ve=function(ie,oe){if(typeof ie!="object"||ie===null)return oe.fail(null,"is not an object",0);for(var me=0;me<we.length;me++)if(!we[me](ie,oe))return!1;for(var me=0;me<Te.length;me++){var $e=fe.props[me].name,Fe=ie[$e];if(Fe===void 0){if(Q[me])return oe.fail($e,"is missing",1)}else{var Pe=Te[me](Fe,oe);if(!Pe)return oe.fail($e,null,1)}}return!0};if(!X)return ve;var ge=this.propSet;return J&&(this.propSet.forEach(function(ie){return J.add(ie)}),ge=J),function(ie,oe){if(!ve(ie,oe))return!1;for(var me in ie)if(!ge.has(me))return oe.fail(me,"is extraneous",2);return!0}},ue}(r);t.TIface=P;function E(ee){return new R(i(ee))}t.opt=E;var R=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.ttype=z,X}return ue.prototype.getChecker=function(z,X){var J=this.ttype.getChecker(z,X);return function(fe,we){return fe===void 0||J(fe,we)}},ue}(r);t.TOptional=R;var T=function(){function ee(ue,z,X){this.name=ue,this.ttype=z,this.isOpt=X}return ee}();t.TProp=T;function L(ee){for(var ue=[],z=1;z<arguments.length;z++)ue[z-1]=arguments[z];return new A(new Z(ue),i(ee))}t.func=L;var A=function(ee){e(ue,ee);function ue(z,X){var J=ee.call(this)||this;return J.paramList=z,J.result=X,J}return ue.prototype.getChecker=function(z,X){return function(J,fe){return typeof J=="function"?!0:fe.fail(null,"is not a function",0)}},ue}(r);t.TFunc=A;function H(ee,ue,z){return new W(ee,i(ue),!!z)}t.param=H;var W=function(){function ee(ue,z,X){this.name=ue,this.ttype=z,this.isOpt=X}return ee}();t.TParam=W;var Z=function(ee){e(ue,ee);function ue(z){var X=ee.call(this)||this;return X.params=z,X}return ue.prototype.getChecker=function(z,X){var J=this,fe=this.params.map(function(Q){return Q.ttype.getChecker(z,X)}),we=new n.NoopContext,Te=this.params.map(function(Q,ve){return!Q.isOpt&&!fe[ve](void 0,we)}),Re=function(Q,ve){if(!Array.isArray(Q))return ve.fail(null,"is not an array",0);for(var ge=0;ge<fe.length;ge++){var ie=J.params[ge];if(Q[ge]===void 0){if(Te[ge])return ve.fail(ie.name,"is missing",1)}else{var oe=fe[ge](Q[ge],ve);if(!oe)return ve.fail(ie.name,null,1)}}return!0};return X?function(Q,ve){return Re(Q,ve)?Q.length<=fe.length?!0:ve.fail(fe.length,"is extraneous",2):!1}:Re},ue}(r);t.TParamList=Z;var G=function(ee){e(ue,ee);function ue(z,X){var J=ee.call(this)||this;return J.validator=z,J.message=X,J}return ue.prototype.getChecker=function(z,X){var J=this;return function(fe,we){return J.validator(fe)?!0:we.fail(null,J.message,0)}},ue}(r);t.BasicType=G,t.basicTypes={any:new G(function(ee){return!0},"is invalid"),number:new G(function(ee){return typeof ee=="number"},"is not a number"),object:new G(function(ee){return typeof ee=="object"&&ee},"is not an object"),boolean:new G(function(ee){return typeof ee=="boolean"},"is not a boolean"),string:new G(function(ee){return typeof ee=="string"},"is not a string"),symbol:new G(function(ee){return typeof ee=="symbol"},"is not a symbol"),void:new G(function(ee){return ee==null},"is not void"),undefined:new G(function(ee){return ee===void 0},"is not undefined"),null:new G(function(ee){return ee===null},"is not null"),never:new G(function(ee){return!1},"is unexpected"),Date:new G(U("[object Date]"),"is not a Date"),RegExp:new G(U("[object RegExp]"),"is not a RegExp")};var K=Object.prototype.toString;function U(ee){return function(ue){return typeof ue=="object"&&ue&&K.call(ue)===ee}}typeof Buffer<"u"&&(t.basicTypes.Buffer=new G(function(ee){return Buffer.isBuffer(ee)},"is not a Buffer"));for(var B=function(ee){t.basicTypes[ee.name]=new G(function(ue){return ue instanceof ee},"is not a "+ee.name)},Y=0,j=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];Y<j.length;Y++){var ne=j[Y];B(ne)}}(xp)),xp}var _Q;function fCe(){return _Q||(_Q=1,function(t){var e=kp&&kp.__spreadArrays||function(){for(var l=0,u=0,c=arguments.length;u<c;u++)l+=arguments[u].length;for(var f=Array(l),d=0,u=0;u<c;u++)for(var h=arguments[u],p=0,g=h.length;p<g;p++,d++)f[d]=h[p];return f};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var n=xQ(),r=wC(),i=xQ();Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var o=wC();Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return o.VError}});function s(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];for(var c=Object.assign.apply(Object,e([{},n.basicTypes],l)),f={},d=0,h=l;d<h.length;d++)for(var p=h[d],g=0,y=Object.keys(p);g<y.length;g++){var O=y[g];f[O]=new a(c,p[O])}return f}t.createCheckers=s;var a=function(){function l(u,c,f){if(f===void 0&&(f="value"),this.suite=u,this.ttype=c,this._path=f,this.props=new Map,c instanceof n.TIface)for(var d=0,h=c.props;d<h.length;d++){var p=h[d];this.props.set(p.name,p.ttype)}this.checkerPlain=this.ttype.getChecker(u,!1),this.checkerStrict=this.ttype.getChecker(u,!0)}return l.prototype.setReportedPath=function(u){this._path=u},l.prototype.check=function(u){return this._doCheck(this.checkerPlain,u)},l.prototype.test=function(u){return this.checkerPlain(u,new r.NoopContext)},l.prototype.validate=function(u){return this._doValidate(this.checkerPlain,u)},l.prototype.strictCheck=function(u){return this._doCheck(this.checkerStrict,u)},l.prototype.strictTest=function(u){return this.checkerStrict(u,new r.NoopContext)},l.prototype.strictValidate=function(u){return this._doValidate(this.checkerStrict,u)},l.prototype.getProp=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);return new l(this.suite,c,this._path+"."+u)},l.prototype.methodArgs=function(u){var c=this._getMethod(u);return new l(this.suite,c.paramList)},l.prototype.methodResult=function(u){var c=this._getMethod(u);return new l(this.suite,c.result)},l.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new l(this.suite,this.ttype.paramList)},l.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new l(this.suite,this.ttype.result)},l.prototype.getType=function(){return this.ttype},l.prototype._doCheck=function(u,c){var f=new r.NoopContext;if(!u(c,f)){var d=new r.DetailContext;throw u(c,d),d.getError(this._path)}},l.prototype._doValidate=function(u,c){var f=new r.NoopContext;if(u(c,f))return null;var d=new r.DetailContext;return u(c,d),d.getErrorDetail(this._path)},l.prototype._getMethod=function(u){var c=this.props.get(u);if(!c)throw new Error("Type has no property "+u);if(!(c instanceof n.TFunc))throw new Error("Property "+u+" is not a method");return c},l}();t.Checker=a}(kp)),kp}var dr=fCe();const dCe=dr.union(dr.lit("jsx"),dr.lit("typescript"),dr.lit("flow"),dr.lit("imports"),dr.lit("react-hot-loader"),dr.lit("jest")),hCe=dr.iface([],{compiledFilename:"string"}),pCe=dr.iface([],{transforms:dr.array("Transform"),disableESTransforms:dr.opt("boolean"),jsxRuntime:dr.opt(dr.union(dr.lit("classic"),dr.lit("automatic"),dr.lit("preserve"))),production:dr.opt("boolean"),jsxImportSource:dr.opt("string"),jsxPragma:dr.opt("string"),jsxFragmentPragma:dr.opt("string"),keepUnusedImports:dr.opt("boolean"),preserveDynamicImport:dr.opt("boolean"),injectCreateRequireForImportRequire:dr.opt("boolean"),enableLegacyTypeScriptModuleInterop:dr.opt("boolean"),enableLegacyBabel5ModuleInterop:dr.opt("boolean"),sourceMapOptions:dr.opt("SourceMapOptions"),filePath:dr.opt("string")}),mCe={Transform:dCe,SourceMapOptions:hCe,Options:pCe},{Options:eEe}=dr.createCheckers(mCe);var PQ;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=1;t[t.TSConstructorType=n]="TSConstructorType";const r=n+1;t[t.TSAbstractConstructorType=r]="TSAbstractConstructorType"})(PQ||(PQ={}));var jx={},CQ;function gCe(){return CQ||(CQ=1,function(t){t.__esModule=!0,t.LinesAndColumns=void 0;var e=`
457
+ `,n="\r",r=function(){function i(o){this.string=o;for(var s=[0],a=0;a<o.length;)switch(o[a]){case e:a+=e.length,s.push(a);break;case n:a+=n.length,o[a]===e&&(a+=e.length),s.push(a);break;default:a++;break}this.offsets=s}return i.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var s=0,a=this.offsets;a[s+1]<=o;)s++;var l=o-a[s];return{line:s,column:l}},i.prototype.indexForLocation=function(o){var s=o.line,a=o.column;return s<0||s>=this.offsets.length||a<0||a>this.lengthOfLine(s)?null:this.offsets[s]+a},i.prototype.lengthOfLine=function(o){var s=this.offsets[o],a=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return a-s},i}();t.LinesAndColumns=r,t.default=r}(jx)),jx}gCe();const vW=()=>(Math.random()+"").slice(2),vCe=t=>async e=>{const n=vW();return new Promise(r=>{const i=o=>{o.data.type==="invalidateVizCacheResponse"&&o.data.requestId===n&&(t.removeEventListener("message",i),r())};t.addEventListener("message",i),t.postMessage({type:"invalidateVizCacheRequest",changedVizIds:e,requestId:n})})},yCe=({worker:t,setBuildErrorMessage:e})=>({files:n,enableSourcemap:r,vizId:i})=>{const o=vW();return new Promise(s=>{const a=u=>{const c=u.data;if(c.type==="buildResponse"&&c.requestId===o){t.removeEventListener("message",a);const f=c.buildResult,d=c.error;e?.(d||null),s(f)}};t.addEventListener("message",a);const l={type:"buildRequest",files:n,enableSourcemap:r,requestId:o,vizId:i};t.postMessage(l)})},Qx="IDLE",Fx="ENQUEUED",EQ="PENDING_CLEAN",Bx="PENDING_DIRTY",OCe=({iframe:t,worker:e,setBuildErrorMessage:n,getLatestContent:r,resolveSlugKey:i,writeFile:o,handleRuntimeError:s})=>{let a=Qx,l=null;const u=yCe({worker:e,setBuildErrorMessage:n}),c=({data:g})=>{if(g.type==="contentRequest"&&r){const{vizId:y}=g;r(y).then(O=>{e.postMessage({type:"contentResponse",vizId:y,content:O})})}else if(g.type==="resolveSlugRequest"){const{slugKey:y,requestId:O}=g;if(i)i(y).then(b=>{const S={type:"resolveSlugResponse",vizId:b,requestId:O};e.postMessage(S)});else{const b={type:"resolveSlugResponse",vizId:null,requestId:O};e.postMessage(b)}}};e.addEventListener("message",c);const f=g=>{const y=g.data;(y.type==="runDone"||y.type==="runError")&&y.type==="runError"&&n&&n(y.error.message),y.type==="runtimeError"&&s&&s(y.formattedErrorMessage),y.type==="writeFile"&&o&&y.fileName&&y.content&&o(y.fileName,y.content)};window.addEventListener("message",f);const d=()=>{e.removeEventListener("message",c),window.removeEventListener("message",f)},h=async({files:g,enableHotReloading:y=!1,enableSourcemap:O=!1,vizId:b,clearConsole:S=!0})=>{a=EQ;const k=await u({files:g,enableSourcemap:O,vizId:b});if(k){const{html:x,runtimeVersion:_,js:I,css:M}=k;if(S&&console.clear(),y&&(_==="v3"||_==="v4")){if(M){const P={type:"runCSS",css:M};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage(P,window.location.origin)}if(I){const P={type:"runJS",js:I};if(!t.contentWindow)throw new Error("iframe.contentWindow is null - this should never happen");t.contentWindow.postMessage(P,window.location.origin)}}else t.srcdoc=x||""}a===Bx?(requestAnimationFrame(()=>{if(!l)throw new Error("latestFiles is not defined and state is PENDING_DIRTY - this should never happen");h({files:l,enableHotReloading:y,enableSourcemap:O,vizId:b,clearConsole:S})}),a=Fx):a=Qx},p=({files:g,enableHotReloading:y=!1,enableSourcemap:O=!1,vizId:b=void 0,clearConsole:S=!0})=>{if(l=null,a===Qx)a=Fx,h({files:g,enableHotReloading:y,enableSourcemap:O,vizId:b,clearConsole:S});else if(a===EQ)l=g,a=Bx;else if(a===Bx)l=g;else if(a===Fx)l=g;else throw new Error(`Unexpected state: ${a}`)};return{invalidateVizCache:vCe(e),run:p,cleanup:d}};function bCe(t){return new Worker("/assets/buildWorker-D4WATavZ.js",{name:t?.name})}const wCe=()=>{const t=N.useRef(null),e=N.useRef(!0),n=N.useRef(void 0),{content:r,handleRuntimeError:i,clearRuntimeError:o,iframeRef:s}=N.useContext(Lr),a=N.useMemo(()=>r?o7(r.files):null,[r?.files]),l=r?.isInteracting||!1,u=r?.runId,c=r?.hardRerun||!1,f=u!==n.current;return f&&(n.current=u),N.useEffect(()=>{if(a){if(!t.current&&s.current){const d=new bCe;t.current=OCe({iframe:s.current,worker:d,setBuildErrorMessage:h=>{h&&console.error("Build error:",h)},handleRuntimeError:i})}(e.current||l||f)&&(o(),t.current?.run({files:a,enableHotReloading:l,enableSourcemap:!0,vizId:"example-viz"}),e.current=!1)}},[a,l,f,c]),q.jsx("div",{className:"right",children:q.jsx("iframe",{ref:s})})},SCe="vzCodeUsername",kCe="Anonymous",xCe=()=>{let t=kCe;if(typeof window<"u"){const e=window.localStorage.getItem(SCe);e!==null&&(t=e)}return t},_Ce=t=>{const e=N.useRef(t);N.useEffect(()=>{e.current!==t&&(e.current=t,window.localStorage.setItem("vzCodeUsername",t))},[t])},PCe=t=>e=>{const n=t.data,r=OX(n,e(n));r&&t&&t.submitOp(r)},CCe=t=>N.useCallback(()=>PCe(t),[t])(),ECe=1e3,TCe=t=>{const e=N.useRef(),[n,r]=N.useState(!1),i=N.useCallback(()=>{t&&t.whenNothingPending(()=>{r(!1)})},[t,r]);return N.useEffect(()=>{t&&t.on("before op",()=>{r(!0),clearTimeout(e.current),e.current=setTimeout(()=>{i()},ECe)})},[t,i]),n},RCe=({connection:t})=>{const[e,n]=N.useState(null),[r,i]=N.useState(null),[o,s]=N.useState(null),[a,l]=N.useState(null),[u,c]=N.useState(!1);N.useEffect(()=>{t.on("connected",()=>{c(!0)}),t.on("disconnected",()=>{c(!1)});const h="documents",p="1",g=t.get(h,p);return g.subscribe(()=>{n(g),l(g.data),g.on("op",()=>{l(g.data)});const y=t.getDocPresence(h,p);y.subscribe(function(b){if(b)throw b});const O=()=>{const b=Date.now().toString(36),S=_P();return`${b}-${S}`};i(y.create(O())),s(y)}),()=>{}},[]);const f=TCe(e),d=CCe(e);return{shareDBDoc:e,content:a,localPresence:r,docPresence:o,submitOperation:d,connected:u,pending:f}};function ACe(t){return new Worker("/assets/worker-DHxSPM7N.js",{name:t?.name})}let MCe=0;const Ux=new Map,DCe=()=>{const[t,e]=N.useState(null);return N.useEffect(()=>{e(new ACe)},[]),N.useEffect(()=>{if(!t)return;const r=i=>{const{diagnostics:o,requestId:s,error:a}=i.data;a&&console.error("[ESLint] Error:",a);const l=Ux.get(s);l&&(l(o),Ux.delete(s))};return t.addEventListener("message",r),()=>{t.removeEventListener("message",r),t.terminate()}},[t]),{esLintSource:N.useCallback(async r=>{const i=r.state.field(t7);try{const o=r.state.doc.toString(),s=MCe++;return new Promise(a=>{Ux.set(s,a),t.postMessage({code:o,requestId:s,fileName:i})})}catch(o){return console.error("[ESLint] Error in linter:",o),[]}},[t])}},ICe=new bX;RQ.types.register(KO.type);const{Connection:$Ce}=RQ,NCe=window.location.protocol==="https:"?"wss://":"ws://",LCe=new WebSocket(NCe+window.location.host+"/ws"),jCe=new $Ce(LCe),QCe=()=>{const{username:t}=N.useContext(Lr);return _Ce(t),null};function FCe(){const{shareDBDoc:t,content:e,localPresence:n,docPresence:r,submitOperation:i,connected:o,pending:s}=RCe({connection:jCe}),[a,l]=N.useState(void 0),[u,c]=N.useState(fB()),[f,d]=N.useState(!1),{esLintSource:h}=DCe(),p=xCe();return q.jsx(QJ,{children:q.jsx(z1e,{content:e,shareDBDoc:t,submitOperation:i,localPresence:n,docPresence:r,prettierWorker:ICe,initialUsername:p,connected:o,pending:s,liveKitRoomName:u,setLiveKitRoom:c,liveKitToken:a,setLiveKitToken:l,liveKitConnection:f,setLiveKitConnection:d,aiChatEndpoint:"/ai-chat-message",aiChatOptions:{},children:q.jsxs(kJ,{audio:!0,token:a,serverUrl:void 0,connect:f,style:{height:"100%"},children:[q.jsxs("div",{className:"app",children:[q.jsx(APe,{}),q.jsx(tCe,{aiCopilotEndpoint:null,esLintSource:h}),q.jsx(wCe,{}),q.jsx(vQ,{side:"left"}),q.jsx(vQ,{side:"right"})]}),q.jsx(QCe,{}),q.jsx(RJ,{})]})})})}TQ.createRoot(document.getElementById("root")).render(q.jsx(X9,{children:q.jsx(FCe,{})}));